fix: reorganization of files and folders

This commit is contained in:
Davidson Gomes
2024-04-12 17:22:11 -03:00
parent eb04c3f113
commit 94f5c130bf
33 changed files with 73 additions and 51 deletions

View File

@@ -2,6 +2,7 @@ import { JSONSchema7, JSONSchema7Definition } from 'json-schema';
import { v4 } from 'uuid';
// Integrations Schema
export * from '../api/integrations/chamaai/validate/chamaai.schema';
export * from '../api/integrations/chatwoot/validate/chatwoot.schema';
export * from '../api/integrations/rabbitmq/validate/rabbitmq.schema';
export * from '../api/integrations/sqs/validate/sqs.schema';
@@ -1046,20 +1047,6 @@ export const proxySchema: JSONSchema7 = {
...isNotEmpty('enabled', 'proxy'),
};
export const chamaaiSchema: JSONSchema7 = {
$id: v4(),
type: 'object',
properties: {
enabled: { type: 'boolean', enum: [true, false] },
url: { type: 'string' },
token: { type: 'string' },
waNumber: { type: 'string' },
answerByAudio: { type: 'boolean', enum: [true, false] },
},
required: ['enabled', 'url', 'token', 'waNumber', 'answerByAudio'],
...isNotEmpty('enabled', 'url', 'token', 'waNumber', 'answerByAudio'),
};
export const handleLabelSchema: JSONSchema7 = {
$id: v4(),
type: 'object',