feat: minor adjustements

This commit is contained in:
Mohamed Marrouchi
2024-11-27 16:34:52 +01:00
parent cc6e50e5d0
commit eb7d6ebe3c
7 changed files with 112 additions and 63 deletions

View File

@@ -70,6 +70,8 @@ export enum FileType {
export enum PayloadType {
location = 'location',
attachments = 'attachments',
quick_reply = 'quick_reply',
button = 'button',
}
export type StdOutgoingTextMessage = { text: string };

View File

@@ -7,11 +7,7 @@
*/
import { IncomingAttachmentPayload } from './attachment';
export enum PayloadType {
location = 'location',
attachments = 'attachments',
}
import { PayloadType } from './message';
export type Payload =
| {

View File

@@ -13,10 +13,13 @@ import {
import { BlockFull } from '@/chat/schemas/block.schema';
import { FileType } from '@/chat/schemas/types/attachment';
import { ButtonType } from '@/chat/schemas/types/button';
import { OutgoingMessageFormat } from '@/chat/schemas/types/message';
import {
OutgoingMessageFormat,
PayloadType,
} from '@/chat/schemas/types/message';
import { BlockOptions, ContentOptions } from '@/chat/schemas/types/options';
import { Pattern } from '@/chat/schemas/types/pattern';
import { PayloadType, QuickReplyType } from '@/chat/schemas/types/quick-reply';
import { QuickReplyType } from '@/chat/schemas/types/quick-reply';
import { CaptureVar } from '@/chat/validation-rules/is-valid-capture';
import { modelInstance } from './misc';