diff --git a/src/api/routes/chat.router.ts b/src/api/routes/chat.router.ts index 5cec98f0..68ed1d35 100644 --- a/src/api/routes/chat.router.ts +++ b/src/api/routes/chat.router.ts @@ -115,6 +115,7 @@ export class ChatRouter extends RouterBroker { return res.status(HttpStatus.CREATED).json(response); }) + // TODO: corrigir updateMessage para medias tambem .post(this.routerPath('updateMessage'), ...guards, async (req, res) => { const response = await this.dataValidate({ request: req, @@ -145,6 +146,7 @@ export class ChatRouter extends RouterBroker { return res.status(HttpStatus.CREATED).json(response); }) + // TODO: realizar filtro pelo postgres corretamente .post(this.routerPath('findContacts'), ...guards, async (req, res) => { const response = await this.dataValidate>({ request: req, @@ -155,6 +157,7 @@ export class ChatRouter extends RouterBroker { return res.status(HttpStatus.OK).json(response); }) + // TODO: realizar filtro pelo postgres corretamente .post(this.routerPath('findMessages'), ...guards, async (req, res) => { const response = await this.dataValidate>({ request: req, @@ -165,6 +168,7 @@ export class ChatRouter extends RouterBroker { return res.status(HttpStatus.OK).json(response); }) + // TODO: realizar filtro pelo postgres corretamente .post(this.routerPath('findStatusMessage'), ...guards, async (req, res) => { const response = await this.dataValidate>({ request: req, @@ -175,6 +179,7 @@ export class ChatRouter extends RouterBroker { return res.status(HttpStatus.OK).json(response); }) + // TODO: realizar filtro pelo postgres corretamente .get(this.routerPath('findChats'), ...guards, async (req, res) => { const response = await this.dataValidate({ request: req, diff --git a/src/validate/validate.schema.ts b/src/validate/validate.schema.ts index 4855d8bb..b2771e1f 100644 --- a/src/validate/validate.schema.ts +++ b/src/validate/validate.schema.ts @@ -1,6 +1,7 @@ import { JSONSchema7 } from 'json-schema'; // Integrations Schema +// TODO: rever todas as integrações e garantir o funcionamento perfeito export * from '../api/integrations/chatwoot/validate/chatwoot.schema'; export * from '../api/integrations/rabbitmq/validate/rabbitmq.schema'; export * from '../api/integrations/sqs/validate/sqs.schema';