Merge pull request #377 from Hexastack/376-issue-unify-postback-type

update: unify postback types
This commit is contained in:
Med Marrouchi
2024-11-27 19:48:06 +01:00
committed by GitHub
10 changed files with 216 additions and 235 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';