chore: Add webhookUrl to Message model, DTOs, and services

Adds webhookUrl field to Message model, SendMessageDto, SendTemplateDto, SendContactDto, and related services to enable sending messages to a specified webhook URL. This change allows for more flexible message handling and delivery options.

Modified files:
- prisma/postgresql-schema.prisma
- src/api/dto/sendMessage.dto.ts
- src/api/services/channels/whatsapp.business.service.ts
- src/validate/message.schema.ts

Untracked files:
- prisma/migrations/20240723200254_add_webhookurl_on_message/
This commit is contained in:
Davidson Gomes
2024-07-23 17:13:37 -03:00
parent 50591e9ed6
commit 4746d3991e
5 changed files with 16 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ export const templateMessageSchema: JSONSchema7 = {
name: { type: 'string' },
language: { type: 'string' },
components: { type: 'array' },
webhookUrl: { type: 'string' },
},
required: ['name', 'language'],
};