2
0

(whatsapp) Improve whatsApp management and media collection

Closes #796
This commit is contained in:
Baptiste Arnaud
2023-09-22 11:08:41 +02:00
parent 8f4e5b5d63
commit 9e0109f561
22 changed files with 505 additions and 452 deletions

View File

@@ -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>
)

View File

@@ -188,7 +188,7 @@ const startConditionSchema = z.object({
})
export const whatsAppSettingsSchema = z.object({
credentialsId: z.string().optional(),
isEnabled: z.boolean().optional(),
startCondition: startConditionSchema.optional(),
})