feat: added auto_create to the chatwoot set to create the inbox automatically or not

This commit is contained in:
Davidson Gomes
2023-12-11 17:32:07 -03:00
parent 324d46120b
commit 7a24f52782
6 changed files with 18 additions and 11 deletions

View File

@@ -891,6 +891,7 @@ export const chatwootSchema: JSONSchema7 = {
sign_msg: { type: 'boolean', enum: [true, false] },
reopen_conversation: { type: 'boolean', enum: [true, false] },
conversation_pending: { type: 'boolean', enum: [true, false] },
auto_create: { type: 'boolean', enum: [true, false] },
},
required: ['enabled', 'account_id', 'token', 'url', 'sign_msg', 'reopen_conversation', 'conversation_pending'],
...isNotEmpty('account_id', 'token', 'url', 'sign_msg', 'reopen_conversation', 'conversation_pending'),