feat: Created settings Controller

This commit is contained in:
Davidson Gomes
2023-07-24 09:42:29 -03:00
parent be699d24a1
commit 73d9cd62a5
14 changed files with 301 additions and 2 deletions

View File

@@ -877,3 +877,15 @@ export const chatwootSchema: JSONSchema7 = {
required: ['enabled', 'account_id', 'token', 'url', 'sign_msg'],
...isNotEmpty('account_id', 'token', 'url', 'sign_msg'),
};
export const settingsSchema: JSONSchema7 = {
$id: v4(),
type: 'object',
properties: {
reject_call: { type: 'boolean', enum: [true, false] },
msg_call: { type: 'string' },
groups_ignore: { type: 'boolean', enum: [true, false] },
},
required: ['reject_call'],
...isNotEmpty('reject_call'),
};