@kl1/contracts 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1393 -1300
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1389 -1300
- package/dist/index.mjs.map +1 -1
- package/dist/src/call-log/schema.d.ts +4 -4
- package/dist/src/call-log/validation.d.ts +2 -2
- package/dist/src/chat/index.d.ts +240 -239
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +36 -36
- package/dist/src/chat/validation.d.ts +235 -84
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +7813 -2082
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +5651 -87
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +4724 -5
- package/dist/src/cx-log/schema.d.ts.map +1 -1
- package/dist/src/dashboard/index.d.ts +6 -6
- package/dist/src/dashboard/schema.d.ts +4 -4
- package/dist/src/evaluate-form/schema.d.ts +2 -2
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +106 -106
- package/dist/src/mail/message-contract.d.ts +6 -6
- package/dist/src/mail/room-contract.d.ts +100 -100
- package/dist/src/mail/schemas/message.schema.d.ts +4 -4
- package/dist/src/mail/schemas/room-validation.schema.d.ts +32 -32
- package/dist/src/mail/schemas/room.schema.d.ts +26 -26
- package/dist/src/messenger/index.d.ts +209 -42
- package/dist/src/messenger/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/schema.d.ts +8 -8
- package/dist/src/telephony-cdr/validation.d.ts +4 -4
- package/dist/src/telephony-live-queue-call/schema.d.ts +2 -2
- package/dist/src/telephony-queue-call-count/schema.d.ts +2 -2
- package/dist/src/ticket/index.d.ts +4 -4
- package/dist/src/ticket/validation.d.ts +4 -4
- package/dist/src/ticket/validation.d.ts.map +1 -1
- package/dist/src/user/index.d.ts +2 -0
- package/dist/src/user/index.d.ts.map +1 -1
- package/dist/src/user-presence-status-log/index.d.ts +2 -0
- package/dist/src/user-presence-status-log/index.d.ts.map +1 -1
- package/dist/src/wrap-up-form/index.d.ts +15 -15
- package/dist/src/wrap-up-form/schema.d.ts +2 -2
- package/dist/src/wrap-up-form/validation.d.ts +3 -3
- package/package.json +10 -4
@@ -600,6 +600,62 @@ export declare const SearchRoomsSchema: z.ZodObject<{
|
|
600
600
|
page?: number | undefined;
|
601
601
|
pageSize?: number | undefined;
|
602
602
|
}>;
|
603
|
+
export declare const ChannelSchema: z.ZodObject<{
|
604
|
+
name: z.ZodString;
|
605
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
606
|
+
metadata: z.ZodObject<{
|
607
|
+
id: z.ZodString;
|
608
|
+
name: z.ZodString;
|
609
|
+
accessToken: z.ZodString;
|
610
|
+
additionalCredentials: z.ZodOptional<z.ZodAny>;
|
611
|
+
}, "strip", z.ZodTypeAny, {
|
612
|
+
id: string;
|
613
|
+
name: string;
|
614
|
+
accessToken: string;
|
615
|
+
additionalCredentials?: any;
|
616
|
+
}, {
|
617
|
+
id: string;
|
618
|
+
name: string;
|
619
|
+
accessToken: string;
|
620
|
+
additionalCredentials?: any;
|
621
|
+
}>;
|
622
|
+
brandName: z.ZodString;
|
623
|
+
platformId: z.ZodString;
|
624
|
+
status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
|
625
|
+
isReloginRequired: z.ZodBoolean;
|
626
|
+
connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
627
|
+
connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
628
|
+
}, "strip", z.ZodTypeAny, {
|
629
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
630
|
+
name: string;
|
631
|
+
metadata: {
|
632
|
+
id: string;
|
633
|
+
name: string;
|
634
|
+
accessToken: string;
|
635
|
+
additionalCredentials?: any;
|
636
|
+
};
|
637
|
+
status: boolean;
|
638
|
+
brandName: string;
|
639
|
+
platformId: string;
|
640
|
+
isReloginRequired: boolean;
|
641
|
+
connectedUserName?: string | null | undefined;
|
642
|
+
connectedUserId?: string | null | undefined;
|
643
|
+
}, {
|
644
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
645
|
+
name: string;
|
646
|
+
metadata: {
|
647
|
+
id: string;
|
648
|
+
name: string;
|
649
|
+
accessToken: string;
|
650
|
+
additionalCredentials?: any;
|
651
|
+
};
|
652
|
+
status: boolean;
|
653
|
+
brandName: string;
|
654
|
+
platformId: string;
|
655
|
+
isReloginRequired: boolean;
|
656
|
+
connectedUserName?: string | null | undefined;
|
657
|
+
connectedUserId?: string | null | undefined;
|
658
|
+
}>;
|
603
659
|
export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
604
660
|
room: z.ZodObject<{
|
605
661
|
id: z.ZodString;
|
@@ -2972,9 +3028,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
2972
3028
|
updatedAt: Date;
|
2973
3029
|
deletedAt: Date | null;
|
2974
3030
|
}[];
|
2975
|
-
note: string | null;
|
2976
3031
|
callFrom: string | null;
|
2977
3032
|
callTo: string | null;
|
3033
|
+
note: string | null;
|
2978
3034
|
}, {
|
2979
3035
|
id: string;
|
2980
3036
|
disposition: string | null;
|
@@ -2988,9 +3044,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
2988
3044
|
updatedAt: Date;
|
2989
3045
|
deletedAt: Date | null;
|
2990
3046
|
}[];
|
2991
|
-
note: string | null;
|
2992
3047
|
callFrom: string | null;
|
2993
3048
|
callTo: string | null;
|
3049
|
+
note: string | null;
|
2994
3050
|
}>>;
|
2995
3051
|
}, "strip", z.ZodTypeAny, {
|
2996
3052
|
id: string;
|
@@ -3001,9 +3057,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3001
3057
|
updatedAt: Date;
|
3002
3058
|
deletedAt: Date | null;
|
3003
3059
|
entityId: string;
|
3060
|
+
contactId: string | null;
|
3004
3061
|
caseId: number;
|
3005
3062
|
entityName: string;
|
3006
|
-
contactId: string | null;
|
3007
3063
|
queueId: string | null;
|
3008
3064
|
agentId: string | null;
|
3009
3065
|
startedDate: Date | null;
|
@@ -3022,9 +3078,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3022
3078
|
updatedAt: Date;
|
3023
3079
|
deletedAt: Date | null;
|
3024
3080
|
}[];
|
3025
|
-
note: string | null;
|
3026
3081
|
callFrom: string | null;
|
3027
3082
|
callTo: string | null;
|
3083
|
+
note: string | null;
|
3028
3084
|
} | null;
|
3029
3085
|
}, {
|
3030
3086
|
id: string;
|
@@ -3035,9 +3091,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3035
3091
|
updatedAt: Date;
|
3036
3092
|
deletedAt: Date | null;
|
3037
3093
|
entityId: string;
|
3094
|
+
contactId: string | null;
|
3038
3095
|
caseId: number;
|
3039
3096
|
entityName: string;
|
3040
|
-
contactId: string | null;
|
3041
3097
|
queueId: string | null;
|
3042
3098
|
agentId: string | null;
|
3043
3099
|
startedDate: Date | null;
|
@@ -3056,9 +3112,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3056
3112
|
updatedAt: Date;
|
3057
3113
|
deletedAt: Date | null;
|
3058
3114
|
}[];
|
3059
|
-
note: string | null;
|
3060
3115
|
callFrom: string | null;
|
3061
3116
|
callTo: string | null;
|
3117
|
+
note: string | null;
|
3062
3118
|
} | null;
|
3063
3119
|
}>;
|
3064
3120
|
}, "strip", z.ZodTypeAny, {
|
@@ -3286,9 +3342,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3286
3342
|
updatedAt: Date;
|
3287
3343
|
deletedAt: Date | null;
|
3288
3344
|
entityId: string;
|
3345
|
+
contactId: string | null;
|
3289
3346
|
caseId: number;
|
3290
3347
|
entityName: string;
|
3291
|
-
contactId: string | null;
|
3292
3348
|
queueId: string | null;
|
3293
3349
|
agentId: string | null;
|
3294
3350
|
startedDate: Date | null;
|
@@ -3307,9 +3363,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3307
3363
|
updatedAt: Date;
|
3308
3364
|
deletedAt: Date | null;
|
3309
3365
|
}[];
|
3310
|
-
note: string | null;
|
3311
3366
|
callFrom: string | null;
|
3312
3367
|
callTo: string | null;
|
3368
|
+
note: string | null;
|
3313
3369
|
} | null;
|
3314
3370
|
};
|
3315
3371
|
channel?: {
|
@@ -3600,9 +3656,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3600
3656
|
updatedAt: Date;
|
3601
3657
|
deletedAt: Date | null;
|
3602
3658
|
entityId: string;
|
3659
|
+
contactId: string | null;
|
3603
3660
|
caseId: number;
|
3604
3661
|
entityName: string;
|
3605
|
-
contactId: string | null;
|
3606
3662
|
queueId: string | null;
|
3607
3663
|
agentId: string | null;
|
3608
3664
|
startedDate: Date | null;
|
@@ -3621,9 +3677,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3621
3677
|
updatedAt: Date;
|
3622
3678
|
deletedAt: Date | null;
|
3623
3679
|
}[];
|
3624
|
-
note: string | null;
|
3625
3680
|
callFrom: string | null;
|
3626
3681
|
callTo: string | null;
|
3682
|
+
note: string | null;
|
3627
3683
|
} | null;
|
3628
3684
|
};
|
3629
3685
|
channel?: {
|
@@ -4421,12 +4477,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4421
4477
|
telephonySignature: string | null;
|
4422
4478
|
} | undefined;
|
4423
4479
|
};
|
4424
|
-
readAt: Date;
|
4425
|
-
platformMessageId: string;
|
4426
|
-
replyPlatformMessageId: string;
|
4427
|
-
locale: "" | "th" | "mm" | "en";
|
4428
|
-
previewUrl: string;
|
4429
|
-
imageSetId: string;
|
4430
4480
|
room: {
|
4431
4481
|
id: string;
|
4432
4482
|
direction: "incoming" | "outgoing" | "system";
|
@@ -4652,9 +4702,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4652
4702
|
updatedAt: Date;
|
4653
4703
|
deletedAt: Date | null;
|
4654
4704
|
entityId: string;
|
4705
|
+
contactId: string | null;
|
4655
4706
|
caseId: number;
|
4656
4707
|
entityName: string;
|
4657
|
-
contactId: string | null;
|
4658
4708
|
queueId: string | null;
|
4659
4709
|
agentId: string | null;
|
4660
4710
|
startedDate: Date | null;
|
@@ -4673,9 +4723,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4673
4723
|
updatedAt: Date;
|
4674
4724
|
deletedAt: Date | null;
|
4675
4725
|
}[];
|
4676
|
-
note: string | null;
|
4677
4726
|
callFrom: string | null;
|
4678
4727
|
callTo: string | null;
|
4728
|
+
note: string | null;
|
4679
4729
|
} | null;
|
4680
4730
|
};
|
4681
4731
|
channel?: {
|
@@ -4742,6 +4792,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4742
4792
|
} | undefined;
|
4743
4793
|
} | undefined;
|
4744
4794
|
};
|
4795
|
+
readAt: Date;
|
4796
|
+
platformMessageId: string;
|
4797
|
+
replyPlatformMessageId: string;
|
4798
|
+
locale: "" | "th" | "mm" | "en";
|
4799
|
+
previewUrl: string;
|
4800
|
+
imageSetId: string;
|
4745
4801
|
sender: {
|
4746
4802
|
id: string;
|
4747
4803
|
address: string | null;
|
@@ -4893,12 +4949,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4893
4949
|
telephonySignature: string | null;
|
4894
4950
|
} | undefined;
|
4895
4951
|
};
|
4896
|
-
readAt: Date;
|
4897
|
-
platformMessageId: string;
|
4898
|
-
replyPlatformMessageId: string;
|
4899
|
-
locale: "" | "th" | "mm" | "en";
|
4900
|
-
previewUrl: string;
|
4901
|
-
imageSetId: string;
|
4902
4952
|
room: {
|
4903
4953
|
id: string;
|
4904
4954
|
direction: "incoming" | "outgoing" | "system";
|
@@ -5124,9 +5174,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5124
5174
|
updatedAt: Date;
|
5125
5175
|
deletedAt: Date | null;
|
5126
5176
|
entityId: string;
|
5177
|
+
contactId: string | null;
|
5127
5178
|
caseId: number;
|
5128
5179
|
entityName: string;
|
5129
|
-
contactId: string | null;
|
5130
5180
|
queueId: string | null;
|
5131
5181
|
agentId: string | null;
|
5132
5182
|
startedDate: Date | null;
|
@@ -5145,9 +5195,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5145
5195
|
updatedAt: Date;
|
5146
5196
|
deletedAt: Date | null;
|
5147
5197
|
}[];
|
5148
|
-
note: string | null;
|
5149
5198
|
callFrom: string | null;
|
5150
5199
|
callTo: string | null;
|
5200
|
+
note: string | null;
|
5151
5201
|
} | null;
|
5152
5202
|
};
|
5153
5203
|
channel?: {
|
@@ -5214,6 +5264,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5214
5264
|
} | undefined;
|
5215
5265
|
} | undefined;
|
5216
5266
|
};
|
5267
|
+
readAt: Date;
|
5268
|
+
platformMessageId: string;
|
5269
|
+
replyPlatformMessageId: string;
|
5270
|
+
locale: "" | "th" | "mm" | "en";
|
5271
|
+
previewUrl: string;
|
5272
|
+
imageSetId: string;
|
5217
5273
|
sender: {
|
5218
5274
|
id: string;
|
5219
5275
|
address: string | null;
|
@@ -5367,12 +5423,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5367
5423
|
telephonySignature: string | null;
|
5368
5424
|
} | undefined;
|
5369
5425
|
};
|
5370
|
-
readAt: Date;
|
5371
|
-
platformMessageId: string;
|
5372
|
-
replyPlatformMessageId: string;
|
5373
|
-
locale: "" | "th" | "mm" | "en";
|
5374
|
-
previewUrl: string;
|
5375
|
-
imageSetId: string;
|
5376
5426
|
room: {
|
5377
5427
|
id: string;
|
5378
5428
|
direction: "incoming" | "outgoing" | "system";
|
@@ -5598,9 +5648,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5598
5648
|
updatedAt: Date;
|
5599
5649
|
deletedAt: Date | null;
|
5600
5650
|
entityId: string;
|
5651
|
+
contactId: string | null;
|
5601
5652
|
caseId: number;
|
5602
5653
|
entityName: string;
|
5603
|
-
contactId: string | null;
|
5604
5654
|
queueId: string | null;
|
5605
5655
|
agentId: string | null;
|
5606
5656
|
startedDate: Date | null;
|
@@ -5619,9 +5669,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5619
5669
|
updatedAt: Date;
|
5620
5670
|
deletedAt: Date | null;
|
5621
5671
|
}[];
|
5622
|
-
note: string | null;
|
5623
5672
|
callFrom: string | null;
|
5624
5673
|
callTo: string | null;
|
5674
|
+
note: string | null;
|
5625
5675
|
} | null;
|
5626
5676
|
};
|
5627
5677
|
channel?: {
|
@@ -5688,6 +5738,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5688
5738
|
} | undefined;
|
5689
5739
|
} | undefined;
|
5690
5740
|
};
|
5741
|
+
readAt: Date;
|
5742
|
+
platformMessageId: string;
|
5743
|
+
replyPlatformMessageId: string;
|
5744
|
+
locale: "" | "th" | "mm" | "en";
|
5745
|
+
previewUrl: string;
|
5746
|
+
imageSetId: string;
|
5691
5747
|
sender: {
|
5692
5748
|
id: string;
|
5693
5749
|
address: string | null;
|
@@ -5842,12 +5898,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5842
5898
|
telephonySignature: string | null;
|
5843
5899
|
} | undefined;
|
5844
5900
|
};
|
5845
|
-
readAt: Date;
|
5846
|
-
platformMessageId: string;
|
5847
|
-
replyPlatformMessageId: string;
|
5848
|
-
locale: "" | "th" | "mm" | "en";
|
5849
|
-
previewUrl: string;
|
5850
|
-
imageSetId: string;
|
5851
5901
|
room: {
|
5852
5902
|
id: string;
|
5853
5903
|
direction: "incoming" | "outgoing" | "system";
|
@@ -6073,9 +6123,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
6073
6123
|
updatedAt: Date;
|
6074
6124
|
deletedAt: Date | null;
|
6075
6125
|
entityId: string;
|
6126
|
+
contactId: string | null;
|
6076
6127
|
caseId: number;
|
6077
6128
|
entityName: string;
|
6078
|
-
contactId: string | null;
|
6079
6129
|
queueId: string | null;
|
6080
6130
|
agentId: string | null;
|
6081
6131
|
startedDate: Date | null;
|
@@ -6094,9 +6144,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
6094
6144
|
updatedAt: Date;
|
6095
6145
|
deletedAt: Date | null;
|
6096
6146
|
}[];
|
6097
|
-
note: string | null;
|
6098
6147
|
callFrom: string | null;
|
6099
6148
|
callTo: string | null;
|
6149
|
+
note: string | null;
|
6100
6150
|
} | null;
|
6101
6151
|
};
|
6102
6152
|
channel?: {
|
@@ -6163,6 +6213,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
6163
6213
|
} | undefined;
|
6164
6214
|
} | undefined;
|
6165
6215
|
};
|
6216
|
+
readAt: Date;
|
6217
|
+
platformMessageId: string;
|
6218
|
+
replyPlatformMessageId: string;
|
6219
|
+
locale: "" | "th" | "mm" | "en";
|
6220
|
+
previewUrl: string;
|
6221
|
+
imageSetId: string;
|
6166
6222
|
sender: {
|
6167
6223
|
id: string;
|
6168
6224
|
address: string | null;
|
@@ -6211,6 +6267,101 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
6211
6267
|
};
|
6212
6268
|
requestId: string;
|
6213
6269
|
}>;
|
6270
|
+
export declare const ConnectChannelServiceResponseSchema: z.ZodObject<{
|
6271
|
+
requestId: z.ZodString;
|
6272
|
+
data: z.ZodObject<{
|
6273
|
+
name: z.ZodString;
|
6274
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
6275
|
+
metadata: z.ZodObject<{
|
6276
|
+
id: z.ZodString;
|
6277
|
+
name: z.ZodString;
|
6278
|
+
accessToken: z.ZodString;
|
6279
|
+
additionalCredentials: z.ZodOptional<z.ZodAny>;
|
6280
|
+
}, "strip", z.ZodTypeAny, {
|
6281
|
+
id: string;
|
6282
|
+
name: string;
|
6283
|
+
accessToken: string;
|
6284
|
+
additionalCredentials?: any;
|
6285
|
+
}, {
|
6286
|
+
id: string;
|
6287
|
+
name: string;
|
6288
|
+
accessToken: string;
|
6289
|
+
additionalCredentials?: any;
|
6290
|
+
}>;
|
6291
|
+
brandName: z.ZodString;
|
6292
|
+
platformId: z.ZodString;
|
6293
|
+
status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
|
6294
|
+
isReloginRequired: z.ZodBoolean;
|
6295
|
+
connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
6296
|
+
connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
6297
|
+
}, "strip", z.ZodTypeAny, {
|
6298
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
6299
|
+
name: string;
|
6300
|
+
metadata: {
|
6301
|
+
id: string;
|
6302
|
+
name: string;
|
6303
|
+
accessToken: string;
|
6304
|
+
additionalCredentials?: any;
|
6305
|
+
};
|
6306
|
+
status: boolean;
|
6307
|
+
brandName: string;
|
6308
|
+
platformId: string;
|
6309
|
+
isReloginRequired: boolean;
|
6310
|
+
connectedUserName?: string | null | undefined;
|
6311
|
+
connectedUserId?: string | null | undefined;
|
6312
|
+
}, {
|
6313
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
6314
|
+
name: string;
|
6315
|
+
metadata: {
|
6316
|
+
id: string;
|
6317
|
+
name: string;
|
6318
|
+
accessToken: string;
|
6319
|
+
additionalCredentials?: any;
|
6320
|
+
};
|
6321
|
+
status: boolean;
|
6322
|
+
brandName: string;
|
6323
|
+
platformId: string;
|
6324
|
+
isReloginRequired: boolean;
|
6325
|
+
connectedUserName?: string | null | undefined;
|
6326
|
+
connectedUserId?: string | null | undefined;
|
6327
|
+
}>;
|
6328
|
+
}, "strip", z.ZodTypeAny, {
|
6329
|
+
data: {
|
6330
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
6331
|
+
name: string;
|
6332
|
+
metadata: {
|
6333
|
+
id: string;
|
6334
|
+
name: string;
|
6335
|
+
accessToken: string;
|
6336
|
+
additionalCredentials?: any;
|
6337
|
+
};
|
6338
|
+
status: boolean;
|
6339
|
+
brandName: string;
|
6340
|
+
platformId: string;
|
6341
|
+
isReloginRequired: boolean;
|
6342
|
+
connectedUserName?: string | null | undefined;
|
6343
|
+
connectedUserId?: string | null | undefined;
|
6344
|
+
};
|
6345
|
+
requestId: string;
|
6346
|
+
}, {
|
6347
|
+
data: {
|
6348
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
6349
|
+
name: string;
|
6350
|
+
metadata: {
|
6351
|
+
id: string;
|
6352
|
+
name: string;
|
6353
|
+
accessToken: string;
|
6354
|
+
additionalCredentials?: any;
|
6355
|
+
};
|
6356
|
+
status: boolean;
|
6357
|
+
brandName: string;
|
6358
|
+
platformId: string;
|
6359
|
+
isReloginRequired: boolean;
|
6360
|
+
connectedUserName?: string | null | undefined;
|
6361
|
+
connectedUserId?: string | null | undefined;
|
6362
|
+
};
|
6363
|
+
requestId: string;
|
6364
|
+
}>;
|
6214
6365
|
export declare const ReceiveMessageSchema: z.ZodObject<{
|
6215
6366
|
message: z.ZodObject<{
|
6216
6367
|
id: z.ZodString;
|
@@ -8049,9 +8200,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8049
8200
|
updatedAt: Date;
|
8050
8201
|
deletedAt: Date | null;
|
8051
8202
|
}[];
|
8052
|
-
note: string | null;
|
8053
8203
|
callFrom: string | null;
|
8054
8204
|
callTo: string | null;
|
8205
|
+
note: string | null;
|
8055
8206
|
}, {
|
8056
8207
|
id: string;
|
8057
8208
|
disposition: string | null;
|
@@ -8065,9 +8216,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8065
8216
|
updatedAt: Date;
|
8066
8217
|
deletedAt: Date | null;
|
8067
8218
|
}[];
|
8068
|
-
note: string | null;
|
8069
8219
|
callFrom: string | null;
|
8070
8220
|
callTo: string | null;
|
8221
|
+
note: string | null;
|
8071
8222
|
}>>;
|
8072
8223
|
}, "strip", z.ZodTypeAny, {
|
8073
8224
|
id: string;
|
@@ -8078,9 +8229,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8078
8229
|
updatedAt: Date;
|
8079
8230
|
deletedAt: Date | null;
|
8080
8231
|
entityId: string;
|
8232
|
+
contactId: string | null;
|
8081
8233
|
caseId: number;
|
8082
8234
|
entityName: string;
|
8083
|
-
contactId: string | null;
|
8084
8235
|
queueId: string | null;
|
8085
8236
|
agentId: string | null;
|
8086
8237
|
startedDate: Date | null;
|
@@ -8099,9 +8250,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8099
8250
|
updatedAt: Date;
|
8100
8251
|
deletedAt: Date | null;
|
8101
8252
|
}[];
|
8102
|
-
note: string | null;
|
8103
8253
|
callFrom: string | null;
|
8104
8254
|
callTo: string | null;
|
8255
|
+
note: string | null;
|
8105
8256
|
} | null;
|
8106
8257
|
}, {
|
8107
8258
|
id: string;
|
@@ -8112,9 +8263,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8112
8263
|
updatedAt: Date;
|
8113
8264
|
deletedAt: Date | null;
|
8114
8265
|
entityId: string;
|
8266
|
+
contactId: string | null;
|
8115
8267
|
caseId: number;
|
8116
8268
|
entityName: string;
|
8117
|
-
contactId: string | null;
|
8118
8269
|
queueId: string | null;
|
8119
8270
|
agentId: string | null;
|
8120
8271
|
startedDate: Date | null;
|
@@ -8133,9 +8284,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8133
8284
|
updatedAt: Date;
|
8134
8285
|
deletedAt: Date | null;
|
8135
8286
|
}[];
|
8136
|
-
note: string | null;
|
8137
8287
|
callFrom: string | null;
|
8138
8288
|
callTo: string | null;
|
8289
|
+
note: string | null;
|
8139
8290
|
} | null;
|
8140
8291
|
}>;
|
8141
8292
|
}, "strip", z.ZodTypeAny, {
|
@@ -8363,9 +8514,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8363
8514
|
updatedAt: Date;
|
8364
8515
|
deletedAt: Date | null;
|
8365
8516
|
entityId: string;
|
8517
|
+
contactId: string | null;
|
8366
8518
|
caseId: number;
|
8367
8519
|
entityName: string;
|
8368
|
-
contactId: string | null;
|
8369
8520
|
queueId: string | null;
|
8370
8521
|
agentId: string | null;
|
8371
8522
|
startedDate: Date | null;
|
@@ -8384,9 +8535,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8384
8535
|
updatedAt: Date;
|
8385
8536
|
deletedAt: Date | null;
|
8386
8537
|
}[];
|
8387
|
-
note: string | null;
|
8388
8538
|
callFrom: string | null;
|
8389
8539
|
callTo: string | null;
|
8540
|
+
note: string | null;
|
8390
8541
|
} | null;
|
8391
8542
|
};
|
8392
8543
|
channel?: {
|
@@ -8677,9 +8828,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8677
8828
|
updatedAt: Date;
|
8678
8829
|
deletedAt: Date | null;
|
8679
8830
|
entityId: string;
|
8831
|
+
contactId: string | null;
|
8680
8832
|
caseId: number;
|
8681
8833
|
entityName: string;
|
8682
|
-
contactId: string | null;
|
8683
8834
|
queueId: string | null;
|
8684
8835
|
agentId: string | null;
|
8685
8836
|
startedDate: Date | null;
|
@@ -8698,9 +8849,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8698
8849
|
updatedAt: Date;
|
8699
8850
|
deletedAt: Date | null;
|
8700
8851
|
}[];
|
8701
|
-
note: string | null;
|
8702
8852
|
callFrom: string | null;
|
8703
8853
|
callTo: string | null;
|
8854
|
+
note: string | null;
|
8704
8855
|
} | null;
|
8705
8856
|
};
|
8706
8857
|
channel?: {
|
@@ -9498,12 +9649,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9498
9649
|
telephonySignature: string | null;
|
9499
9650
|
} | undefined;
|
9500
9651
|
};
|
9501
|
-
readAt: Date;
|
9502
|
-
platformMessageId: string;
|
9503
|
-
replyPlatformMessageId: string;
|
9504
|
-
locale: "" | "th" | "mm" | "en";
|
9505
|
-
previewUrl: string;
|
9506
|
-
imageSetId: string;
|
9507
9652
|
room: {
|
9508
9653
|
id: string;
|
9509
9654
|
direction: "incoming" | "outgoing" | "system";
|
@@ -9729,9 +9874,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9729
9874
|
updatedAt: Date;
|
9730
9875
|
deletedAt: Date | null;
|
9731
9876
|
entityId: string;
|
9877
|
+
contactId: string | null;
|
9732
9878
|
caseId: number;
|
9733
9879
|
entityName: string;
|
9734
|
-
contactId: string | null;
|
9735
9880
|
queueId: string | null;
|
9736
9881
|
agentId: string | null;
|
9737
9882
|
startedDate: Date | null;
|
@@ -9750,9 +9895,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9750
9895
|
updatedAt: Date;
|
9751
9896
|
deletedAt: Date | null;
|
9752
9897
|
}[];
|
9753
|
-
note: string | null;
|
9754
9898
|
callFrom: string | null;
|
9755
9899
|
callTo: string | null;
|
9900
|
+
note: string | null;
|
9756
9901
|
} | null;
|
9757
9902
|
};
|
9758
9903
|
channel?: {
|
@@ -9819,6 +9964,12 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9819
9964
|
} | undefined;
|
9820
9965
|
} | undefined;
|
9821
9966
|
};
|
9967
|
+
readAt: Date;
|
9968
|
+
platformMessageId: string;
|
9969
|
+
replyPlatformMessageId: string;
|
9970
|
+
locale: "" | "th" | "mm" | "en";
|
9971
|
+
previewUrl: string;
|
9972
|
+
imageSetId: string;
|
9822
9973
|
sender: {
|
9823
9974
|
id: string;
|
9824
9975
|
address: string | null;
|
@@ -9970,12 +10121,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9970
10121
|
telephonySignature: string | null;
|
9971
10122
|
} | undefined;
|
9972
10123
|
};
|
9973
|
-
readAt: Date;
|
9974
|
-
platformMessageId: string;
|
9975
|
-
replyPlatformMessageId: string;
|
9976
|
-
locale: "" | "th" | "mm" | "en";
|
9977
|
-
previewUrl: string;
|
9978
|
-
imageSetId: string;
|
9979
10124
|
room: {
|
9980
10125
|
id: string;
|
9981
10126
|
direction: "incoming" | "outgoing" | "system";
|
@@ -10201,9 +10346,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10201
10346
|
updatedAt: Date;
|
10202
10347
|
deletedAt: Date | null;
|
10203
10348
|
entityId: string;
|
10349
|
+
contactId: string | null;
|
10204
10350
|
caseId: number;
|
10205
10351
|
entityName: string;
|
10206
|
-
contactId: string | null;
|
10207
10352
|
queueId: string | null;
|
10208
10353
|
agentId: string | null;
|
10209
10354
|
startedDate: Date | null;
|
@@ -10222,9 +10367,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10222
10367
|
updatedAt: Date;
|
10223
10368
|
deletedAt: Date | null;
|
10224
10369
|
}[];
|
10225
|
-
note: string | null;
|
10226
10370
|
callFrom: string | null;
|
10227
10371
|
callTo: string | null;
|
10372
|
+
note: string | null;
|
10228
10373
|
} | null;
|
10229
10374
|
};
|
10230
10375
|
channel?: {
|
@@ -10291,6 +10436,12 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10291
10436
|
} | undefined;
|
10292
10437
|
} | undefined;
|
10293
10438
|
};
|
10439
|
+
readAt: Date;
|
10440
|
+
platformMessageId: string;
|
10441
|
+
replyPlatformMessageId: string;
|
10442
|
+
locale: "" | "th" | "mm" | "en";
|
10443
|
+
previewUrl: string;
|
10444
|
+
imageSetId: string;
|
10294
10445
|
sender: {
|
10295
10446
|
id: string;
|
10296
10447
|
address: string | null;
|
@@ -10444,12 +10595,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10444
10595
|
telephonySignature: string | null;
|
10445
10596
|
} | undefined;
|
10446
10597
|
};
|
10447
|
-
readAt: Date;
|
10448
|
-
platformMessageId: string;
|
10449
|
-
replyPlatformMessageId: string;
|
10450
|
-
locale: "" | "th" | "mm" | "en";
|
10451
|
-
previewUrl: string;
|
10452
|
-
imageSetId: string;
|
10453
10598
|
room: {
|
10454
10599
|
id: string;
|
10455
10600
|
direction: "incoming" | "outgoing" | "system";
|
@@ -10675,9 +10820,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10675
10820
|
updatedAt: Date;
|
10676
10821
|
deletedAt: Date | null;
|
10677
10822
|
entityId: string;
|
10823
|
+
contactId: string | null;
|
10678
10824
|
caseId: number;
|
10679
10825
|
entityName: string;
|
10680
|
-
contactId: string | null;
|
10681
10826
|
queueId: string | null;
|
10682
10827
|
agentId: string | null;
|
10683
10828
|
startedDate: Date | null;
|
@@ -10696,9 +10841,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10696
10841
|
updatedAt: Date;
|
10697
10842
|
deletedAt: Date | null;
|
10698
10843
|
}[];
|
10699
|
-
note: string | null;
|
10700
10844
|
callFrom: string | null;
|
10701
10845
|
callTo: string | null;
|
10846
|
+
note: string | null;
|
10702
10847
|
} | null;
|
10703
10848
|
};
|
10704
10849
|
channel?: {
|
@@ -10765,6 +10910,12 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10765
10910
|
} | undefined;
|
10766
10911
|
} | undefined;
|
10767
10912
|
};
|
10913
|
+
readAt: Date;
|
10914
|
+
platformMessageId: string;
|
10915
|
+
replyPlatformMessageId: string;
|
10916
|
+
locale: "" | "th" | "mm" | "en";
|
10917
|
+
previewUrl: string;
|
10918
|
+
imageSetId: string;
|
10768
10919
|
sender: {
|
10769
10920
|
id: string;
|
10770
10921
|
address: string | null;
|
@@ -10918,12 +11069,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10918
11069
|
telephonySignature: string | null;
|
10919
11070
|
} | undefined;
|
10920
11071
|
};
|
10921
|
-
readAt: Date;
|
10922
|
-
platformMessageId: string;
|
10923
|
-
replyPlatformMessageId: string;
|
10924
|
-
locale: "" | "th" | "mm" | "en";
|
10925
|
-
previewUrl: string;
|
10926
|
-
imageSetId: string;
|
10927
11072
|
room: {
|
10928
11073
|
id: string;
|
10929
11074
|
direction: "incoming" | "outgoing" | "system";
|
@@ -11149,9 +11294,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
11149
11294
|
updatedAt: Date;
|
11150
11295
|
deletedAt: Date | null;
|
11151
11296
|
entityId: string;
|
11297
|
+
contactId: string | null;
|
11152
11298
|
caseId: number;
|
11153
11299
|
entityName: string;
|
11154
|
-
contactId: string | null;
|
11155
11300
|
queueId: string | null;
|
11156
11301
|
agentId: string | null;
|
11157
11302
|
startedDate: Date | null;
|
@@ -11170,9 +11315,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
11170
11315
|
updatedAt: Date;
|
11171
11316
|
deletedAt: Date | null;
|
11172
11317
|
}[];
|
11173
|
-
note: string | null;
|
11174
11318
|
callFrom: string | null;
|
11175
11319
|
callTo: string | null;
|
11320
|
+
note: string | null;
|
11176
11321
|
} | null;
|
11177
11322
|
};
|
11178
11323
|
channel?: {
|
@@ -11239,6 +11384,12 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
11239
11384
|
} | undefined;
|
11240
11385
|
} | undefined;
|
11241
11386
|
};
|
11387
|
+
readAt: Date;
|
11388
|
+
platformMessageId: string;
|
11389
|
+
replyPlatformMessageId: string;
|
11390
|
+
locale: "" | "th" | "mm" | "en";
|
11391
|
+
previewUrl: string;
|
11392
|
+
imageSetId: string;
|
11242
11393
|
sender: {
|
11243
11394
|
id: string;
|
11244
11395
|
address: string | null;
|