⚡ (whatsapp) Improve whatsApp management and media collection
Closes #796
This commit is contained in:
@@ -57,6 +57,7 @@ export const typebotSchema = z.preprocess(
|
||||
isArchived: z.boolean(),
|
||||
isClosed: z.boolean(),
|
||||
whatsAppPhoneNumberId: z.string().nullable(),
|
||||
whatsAppCredentialsId: z.string().nullable(),
|
||||
}) satisfies z.ZodType<TypebotPrisma, z.ZodTypeDef, unknown>
|
||||
)
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ const startConditionSchema = z.object({
|
||||
})
|
||||
|
||||
export const whatsAppSettingsSchema = z.object({
|
||||
credentialsId: z.string().optional(),
|
||||
isEnabled: z.boolean().optional(),
|
||||
startCondition: startConditionSchema.optional(),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user