@kl1/contracts 1.0.78 → 1.0.80
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 +1746 -1392
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1745 -1392
- package/dist/index.mjs.map +1 -1
- package/dist/src/call-log/schema.d.ts +6 -6
- package/dist/src/call-log/validation.d.ts +4 -4
- package/dist/src/channel/index.d.ts +59 -59
- package/dist/src/channel/schema.d.ts +4 -4
- package/dist/src/channel/schema.d.ts.map +1 -1
- package/dist/src/channel/validation.d.ts +3 -3
- package/dist/src/chat/index.d.ts +6967 -3685
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +3294 -990
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +1947 -306
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/comment/index.d.ts +584 -584
- package/dist/src/comment/schema.d.ts +144 -144
- package/dist/src/contact/index.d.ts +4 -1
- package/dist/src/contact/index.d.ts.map +1 -1
- package/dist/src/contact/schema.d.ts +156 -0
- package/dist/src/contact/schema.d.ts.map +1 -1
- package/dist/src/contract.d.ts +35549 -20637
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +950 -101
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +810 -71
- package/dist/src/cx-log/schema.d.ts.map +1 -1
- package/dist/src/dashboard/index.d.ts +4 -4
- package/dist/src/dashboard/schema.d.ts +2 -2
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/instagram/index.d.ts +2162 -343
- package/dist/src/instagram/index.d.ts.map +1 -1
- package/dist/src/line/index.d.ts +1919 -278
- package/dist/src/line/index.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +130 -130
- package/dist/src/mail/message-contract.d.ts +6 -6
- package/dist/src/mail/room-contract.d.ts +124 -124
- package/dist/src/mail/schemas/message.schema.d.ts +4 -4
- package/dist/src/mail/schemas/room-validation.schema.d.ts +40 -40
- package/dist/src/mail/schemas/room.schema.d.ts +30 -30
- package/dist/src/messenger/index.d.ts +2516 -516
- package/dist/src/messenger/index.d.ts.map +1 -1
- package/dist/src/messenger/validation.d.ts +1523 -0
- package/dist/src/messenger/validation.d.ts.map +1 -1
- package/dist/src/notification/index.d.ts +742 -0
- package/dist/src/notification/index.d.ts.map +1 -0
- package/dist/src/notification/schema.d.ts +48 -0
- package/dist/src/notification/schema.d.ts.map +1 -0
- package/dist/src/notification/validation.d.ts +148 -0
- package/dist/src/notification/validation.d.ts.map +1 -0
- package/dist/src/telephony-cdr/index.d.ts +3036 -818
- package/dist/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/schema.d.ts +841 -7
- package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
- package/dist/src/telephony-cdr/validation.d.ts +4 -4
- package/dist/src/ticket/index.d.ts +1106 -1106
- package/dist/src/ticket/schema.d.ts +72 -72
- package/dist/src/ticket/validation.d.ts +12 -12
- package/dist/src/viber/index.d.ts +3525 -1159
- package/dist/src/viber/index.d.ts.map +1 -1
- package/dist/src/wrap-up-form/index.d.ts +19 -19
- 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 +1 -1
@@ -646,7 +646,7 @@ export declare const SearchRoomsSchema: z.ZodObject<{
|
|
646
646
|
}>;
|
647
647
|
export declare const ChannelSchema: z.ZodObject<{
|
648
648
|
name: z.ZodString;
|
649
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
649
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
650
650
|
metadata: z.ZodObject<{
|
651
651
|
id: z.ZodString;
|
652
652
|
name: z.ZodString;
|
@@ -691,7 +691,7 @@ export declare const ChannelSchema: z.ZodObject<{
|
|
691
691
|
phone: string | null;
|
692
692
|
}>>;
|
693
693
|
}, "strip", z.ZodTypeAny, {
|
694
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
694
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
695
695
|
name: string;
|
696
696
|
metadata: {
|
697
697
|
id: string;
|
@@ -713,7 +713,7 @@ export declare const ChannelSchema: z.ZodObject<{
|
|
713
713
|
phone: string | null;
|
714
714
|
} | undefined;
|
715
715
|
}, {
|
716
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
716
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
717
717
|
name: string;
|
718
718
|
metadata: {
|
719
719
|
id: string;
|
@@ -736,7 +736,7 @@ export declare const ChannelSchema: z.ZodObject<{
|
|
736
736
|
} | undefined;
|
737
737
|
}>;
|
738
738
|
export declare const ReloginChanelSchema: z.ZodObject<{
|
739
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
739
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
740
740
|
name: z.ZodString;
|
741
741
|
metadata: z.ZodObject<{
|
742
742
|
id: z.ZodString;
|
@@ -784,7 +784,7 @@ export declare const ReloginChanelSchema: z.ZodObject<{
|
|
784
784
|
id: z.ZodString;
|
785
785
|
isReloginRequired: z.ZodBoolean;
|
786
786
|
}, "strip", z.ZodTypeAny, {
|
787
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
787
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
788
788
|
id: string;
|
789
789
|
name: string;
|
790
790
|
metadata: {
|
@@ -808,7 +808,7 @@ export declare const ReloginChanelSchema: z.ZodObject<{
|
|
808
808
|
connectedUserName?: string | null | undefined;
|
809
809
|
connectedUserId?: string | null | undefined;
|
810
810
|
}, {
|
811
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
811
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
812
812
|
id: string;
|
813
813
|
name: string;
|
814
814
|
metadata: {
|
@@ -842,7 +842,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
842
842
|
platformContact: z.ZodObject<{
|
843
843
|
channelId: z.ZodString;
|
844
844
|
socialPlatformId: z.ZodNullable<z.ZodString>;
|
845
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
845
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
846
846
|
metadata: z.ZodObject<{
|
847
847
|
id: z.ZodString;
|
848
848
|
name: z.ZodString;
|
@@ -882,7 +882,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
882
882
|
socialProfileUrl: string | null;
|
883
883
|
}>;
|
884
884
|
}, "strip", z.ZodTypeAny, {
|
885
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
885
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
886
886
|
metadata: {
|
887
887
|
id: string;
|
888
888
|
name: string;
|
@@ -900,7 +900,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
900
900
|
channelId: string;
|
901
901
|
socialPlatformId: string | null;
|
902
902
|
}, {
|
903
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
903
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
904
904
|
metadata: {
|
905
905
|
id: string;
|
906
906
|
name: string;
|
@@ -936,7 +936,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
936
936
|
}>>;
|
937
937
|
channel: z.ZodObject<{
|
938
938
|
name: z.ZodString;
|
939
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
939
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
940
940
|
metadata: z.ZodObject<{
|
941
941
|
id: z.ZodString;
|
942
942
|
name: z.ZodString;
|
@@ -981,7 +981,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
981
981
|
phone: string | null;
|
982
982
|
}>>;
|
983
983
|
}, "strip", z.ZodTypeAny, {
|
984
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
984
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
985
985
|
name: string;
|
986
986
|
metadata: {
|
987
987
|
id: string;
|
@@ -1003,7 +1003,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
1003
1003
|
phone: string | null;
|
1004
1004
|
} | undefined;
|
1005
1005
|
}, {
|
1006
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
1006
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
1007
1007
|
name: string;
|
1008
1008
|
metadata: {
|
1009
1009
|
id: string;
|
@@ -1028,7 +1028,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
1028
1028
|
}, "strip", z.ZodTypeAny, {
|
1029
1029
|
id: string;
|
1030
1030
|
channel: {
|
1031
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
1031
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
1032
1032
|
name: string;
|
1033
1033
|
metadata: {
|
1034
1034
|
id: string;
|
@@ -1059,7 +1059,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
1059
1059
|
} | null;
|
1060
1060
|
isLatest: boolean;
|
1061
1061
|
platformContact: {
|
1062
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
1062
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
1063
1063
|
metadata: {
|
1064
1064
|
id: string;
|
1065
1065
|
name: string;
|
@@ -1082,7 +1082,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
1082
1082
|
}, {
|
1083
1083
|
id: string;
|
1084
1084
|
channel: {
|
1085
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
1085
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
1086
1086
|
name: string;
|
1087
1087
|
metadata: {
|
1088
1088
|
id: string;
|
@@ -1113,7 +1113,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
1113
1113
|
} | null;
|
1114
1114
|
isLatest: boolean;
|
1115
1115
|
platformContact: {
|
1116
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
1116
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
1117
1117
|
metadata: {
|
1118
1118
|
id: string;
|
1119
1119
|
name: string;
|
@@ -1264,7 +1264,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
1264
1264
|
room: {
|
1265
1265
|
id: string;
|
1266
1266
|
channel: {
|
1267
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
1267
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
1268
1268
|
name: string;
|
1269
1269
|
metadata: {
|
1270
1270
|
id: string;
|
@@ -1295,7 +1295,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
1295
1295
|
} | null;
|
1296
1296
|
isLatest: boolean;
|
1297
1297
|
platformContact: {
|
1298
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
1298
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
1299
1299
|
metadata: {
|
1300
1300
|
id: string;
|
1301
1301
|
name: string;
|
@@ -1347,7 +1347,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
1347
1347
|
room: {
|
1348
1348
|
id: string;
|
1349
1349
|
channel: {
|
1350
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
1350
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
1351
1351
|
name: string;
|
1352
1352
|
metadata: {
|
1353
1353
|
id: string;
|
@@ -1378,7 +1378,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
1378
1378
|
} | null;
|
1379
1379
|
isLatest: boolean;
|
1380
1380
|
platformContact: {
|
1381
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
1381
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
1382
1382
|
metadata: {
|
1383
1383
|
id: string;
|
1384
1384
|
name: string;
|
@@ -1440,7 +1440,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
1440
1440
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
1441
1441
|
channelId: z.ZodString;
|
1442
1442
|
socialPlatformId: z.ZodString;
|
1443
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
1443
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
1444
1444
|
metadata: z.ZodObject<{
|
1445
1445
|
id: z.ZodString;
|
1446
1446
|
name: z.ZodString;
|
@@ -2145,7 +2145,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
2145
2145
|
}[] | undefined;
|
2146
2146
|
}>;
|
2147
2147
|
}, "strip", z.ZodTypeAny, {
|
2148
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
2148
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
2149
2149
|
id: string;
|
2150
2150
|
metadata: {
|
2151
2151
|
id: string;
|
@@ -2256,7 +2256,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
2256
2256
|
channelId: string;
|
2257
2257
|
socialPlatformId: string;
|
2258
2258
|
}, {
|
2259
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
2259
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
2260
2260
|
id: string;
|
2261
2261
|
metadata: {
|
2262
2262
|
id: string;
|
@@ -2781,7 +2781,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
2781
2781
|
updatedAt: z.ZodDate;
|
2782
2782
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
2783
2783
|
name: z.ZodString;
|
2784
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
2784
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
2785
2785
|
metadata: z.ZodObject<{
|
2786
2786
|
id: z.ZodString;
|
2787
2787
|
name: z.ZodString;
|
@@ -3012,7 +3012,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3012
3012
|
};
|
3013
3013
|
}>;
|
3014
3014
|
}, "strip", z.ZodTypeAny, {
|
3015
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
3015
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
3016
3016
|
id: string;
|
3017
3017
|
name: string;
|
3018
3018
|
metadata: {
|
@@ -3076,7 +3076,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3076
3076
|
connectedUserName: string;
|
3077
3077
|
connectedUserId: string;
|
3078
3078
|
}, {
|
3079
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
3079
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
3080
3080
|
id: string;
|
3081
3081
|
name: string;
|
3082
3082
|
metadata: {
|
@@ -3197,9 +3197,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3197
3197
|
updatedAt: Date;
|
3198
3198
|
deletedAt: Date | null;
|
3199
3199
|
}[];
|
3200
|
-
note: string | null;
|
3201
3200
|
callFrom: string | null;
|
3202
3201
|
callTo: string | null;
|
3202
|
+
note: string | null;
|
3203
3203
|
}, {
|
3204
3204
|
id: string;
|
3205
3205
|
disposition: string | null;
|
@@ -3213,9 +3213,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3213
3213
|
updatedAt: Date;
|
3214
3214
|
deletedAt: Date | null;
|
3215
3215
|
}[];
|
3216
|
-
note: string | null;
|
3217
3216
|
callFrom: string | null;
|
3218
3217
|
callTo: string | null;
|
3218
|
+
note: string | null;
|
3219
3219
|
}>>;
|
3220
3220
|
}, "strip", z.ZodTypeAny, {
|
3221
3221
|
id: string;
|
@@ -3225,14 +3225,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3225
3225
|
updatedAt: Date;
|
3226
3226
|
deletedAt: Date | null;
|
3227
3227
|
entityId: string;
|
3228
|
-
|
3228
|
+
queueId: string | null;
|
3229
|
+
contactId: string | null;
|
3229
3230
|
caseId: number;
|
3230
3231
|
entityName: string;
|
3231
|
-
contactId: string | null;
|
3232
|
-
queueId: string | null;
|
3233
3232
|
agentId: string | null;
|
3234
3233
|
startedDate: Date | null;
|
3235
3234
|
handledTime: number | null;
|
3235
|
+
firstResponseTime: number | null;
|
3236
3236
|
wrapUpForm: {
|
3237
3237
|
id: string;
|
3238
3238
|
disposition: string | null;
|
@@ -3246,9 +3246,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3246
3246
|
updatedAt: Date;
|
3247
3247
|
deletedAt: Date | null;
|
3248
3248
|
}[];
|
3249
|
-
note: string | null;
|
3250
3249
|
callFrom: string | null;
|
3251
3250
|
callTo: string | null;
|
3251
|
+
note: string | null;
|
3252
3252
|
} | null;
|
3253
3253
|
}, {
|
3254
3254
|
id: string;
|
@@ -3258,14 +3258,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3258
3258
|
updatedAt: Date;
|
3259
3259
|
deletedAt: Date | null;
|
3260
3260
|
entityId: string;
|
3261
|
-
|
3261
|
+
queueId: string | null;
|
3262
|
+
contactId: string | null;
|
3262
3263
|
caseId: number;
|
3263
3264
|
entityName: string;
|
3264
|
-
contactId: string | null;
|
3265
|
-
queueId: string | null;
|
3266
3265
|
agentId: string | null;
|
3267
3266
|
startedDate: Date | null;
|
3268
3267
|
handledTime: number | null;
|
3268
|
+
firstResponseTime: number | null;
|
3269
3269
|
wrapUpForm: {
|
3270
3270
|
id: string;
|
3271
3271
|
disposition: string | null;
|
@@ -3279,15 +3279,15 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3279
3279
|
updatedAt: Date;
|
3280
3280
|
deletedAt: Date | null;
|
3281
3281
|
}[];
|
3282
|
-
note: string | null;
|
3283
3282
|
callFrom: string | null;
|
3284
3283
|
callTo: string | null;
|
3284
|
+
note: string | null;
|
3285
3285
|
} | null;
|
3286
3286
|
}>;
|
3287
3287
|
}, "strip", z.ZodTypeAny, {
|
3288
3288
|
id: string;
|
3289
3289
|
channel: {
|
3290
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
3290
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
3291
3291
|
id: string;
|
3292
3292
|
name: string;
|
3293
3293
|
metadata: {
|
@@ -3399,15 +3399,15 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3399
3399
|
telephonySignature: string | null;
|
3400
3400
|
};
|
3401
3401
|
};
|
3402
|
+
firstResponseTime: number;
|
3402
3403
|
lastMessage: string;
|
3403
3404
|
handleTime: number;
|
3404
3405
|
closeAt: Date;
|
3405
3406
|
unreadCount: number;
|
3406
3407
|
firstResponseAt: Date;
|
3407
|
-
firstResponseTime: number;
|
3408
3408
|
isLatest: boolean;
|
3409
3409
|
platformContact: {
|
3410
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
3410
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
3411
3411
|
id: string;
|
3412
3412
|
metadata: {
|
3413
3413
|
id: string;
|
@@ -3570,14 +3570,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3570
3570
|
updatedAt: Date;
|
3571
3571
|
deletedAt: Date | null;
|
3572
3572
|
entityId: string;
|
3573
|
-
|
3573
|
+
queueId: string | null;
|
3574
|
+
contactId: string | null;
|
3574
3575
|
caseId: number;
|
3575
3576
|
entityName: string;
|
3576
|
-
contactId: string | null;
|
3577
|
-
queueId: string | null;
|
3578
3577
|
agentId: string | null;
|
3579
3578
|
startedDate: Date | null;
|
3580
3579
|
handledTime: number | null;
|
3580
|
+
firstResponseTime: number | null;
|
3581
3581
|
wrapUpForm: {
|
3582
3582
|
id: string;
|
3583
3583
|
disposition: string | null;
|
@@ -3591,15 +3591,15 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3591
3591
|
updatedAt: Date;
|
3592
3592
|
deletedAt: Date | null;
|
3593
3593
|
}[];
|
3594
|
-
note: string | null;
|
3595
3594
|
callFrom: string | null;
|
3596
3595
|
callTo: string | null;
|
3596
|
+
note: string | null;
|
3597
3597
|
} | null;
|
3598
3598
|
};
|
3599
3599
|
}, {
|
3600
3600
|
id: string;
|
3601
3601
|
channel: {
|
3602
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
3602
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
3603
3603
|
id: string;
|
3604
3604
|
name: string;
|
3605
3605
|
metadata: {
|
@@ -3711,15 +3711,15 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3711
3711
|
telephonySignature: string | null;
|
3712
3712
|
};
|
3713
3713
|
};
|
3714
|
+
firstResponseTime: number;
|
3714
3715
|
lastMessage: string;
|
3715
3716
|
handleTime: number;
|
3716
3717
|
closeAt: Date;
|
3717
3718
|
unreadCount: number;
|
3718
3719
|
firstResponseAt: Date;
|
3719
|
-
firstResponseTime: number;
|
3720
3720
|
isLatest: boolean;
|
3721
3721
|
platformContact: {
|
3722
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
3722
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
3723
3723
|
id: string;
|
3724
3724
|
metadata: {
|
3725
3725
|
id: string;
|
@@ -3882,14 +3882,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3882
3882
|
updatedAt: Date;
|
3883
3883
|
deletedAt: Date | null;
|
3884
3884
|
entityId: string;
|
3885
|
-
|
3885
|
+
queueId: string | null;
|
3886
|
+
contactId: string | null;
|
3886
3887
|
caseId: number;
|
3887
3888
|
entityName: string;
|
3888
|
-
contactId: string | null;
|
3889
|
-
queueId: string | null;
|
3890
3889
|
agentId: string | null;
|
3891
3890
|
startedDate: Date | null;
|
3892
3891
|
handledTime: number | null;
|
3892
|
+
firstResponseTime: number | null;
|
3893
3893
|
wrapUpForm: {
|
3894
3894
|
id: string;
|
3895
3895
|
disposition: string | null;
|
@@ -3903,9 +3903,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3903
3903
|
updatedAt: Date;
|
3904
3904
|
deletedAt: Date | null;
|
3905
3905
|
}[];
|
3906
|
-
note: string | null;
|
3907
3906
|
callFrom: string | null;
|
3908
3907
|
callTo: string | null;
|
3908
|
+
note: string | null;
|
3909
3909
|
} | null;
|
3910
3910
|
};
|
3911
3911
|
}>;
|
@@ -3943,27 +3943,71 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3943
3943
|
fileUrl: string | null;
|
3944
3944
|
status?: string | undefined;
|
3945
3945
|
}>;
|
3946
|
-
|
3946
|
+
repliedMessage: z.ZodLazy<z.ZodObject<{
|
3947
3947
|
id: z.ZodString;
|
3948
3948
|
createdAt: z.ZodDate;
|
3949
3949
|
updatedAt: z.ZodDate;
|
3950
3950
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
3951
|
-
|
3952
|
-
|
3953
|
-
|
3954
|
-
|
3955
|
-
|
3956
|
-
|
3957
|
-
|
3958
|
-
|
3951
|
+
message: z.ZodString;
|
3952
|
+
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
3953
|
+
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
3954
|
+
readAt: z.ZodDate;
|
3955
|
+
metadata: z.ZodAny;
|
3956
|
+
platformId: z.ZodString;
|
3957
|
+
platformMessageId: z.ZodString;
|
3958
|
+
replyPlatformMessageId: z.ZodString;
|
3959
|
+
template: z.ZodAny;
|
3960
|
+
locale: z.ZodEnum<["mm", "en", "th", ""]>;
|
3961
|
+
url: z.ZodString;
|
3962
|
+
previewUrl: z.ZodString;
|
3963
|
+
imageSetId: z.ZodString;
|
3964
|
+
upload: z.ZodObject<{
|
3959
3965
|
id: z.ZodString;
|
3960
3966
|
createdAt: z.ZodDate;
|
3961
3967
|
updatedAt: z.ZodDate;
|
3962
3968
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
3963
|
-
|
3964
|
-
|
3965
|
-
|
3966
|
-
|
3969
|
+
bucketName: z.ZodString;
|
3970
|
+
fileName: z.ZodString;
|
3971
|
+
fileSize: z.ZodNumber;
|
3972
|
+
fileKey: z.ZodString;
|
3973
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
3974
|
+
status: z.ZodOptional<z.ZodString>;
|
3975
|
+
}, "strip", z.ZodTypeAny, {
|
3976
|
+
id: string;
|
3977
|
+
createdAt: Date;
|
3978
|
+
updatedAt: Date;
|
3979
|
+
deletedAt: Date | null;
|
3980
|
+
fileName: string;
|
3981
|
+
fileKey: string;
|
3982
|
+
bucketName: string;
|
3983
|
+
fileSize: number;
|
3984
|
+
fileUrl: string | null;
|
3985
|
+
status?: string | undefined;
|
3986
|
+
}, {
|
3987
|
+
id: string;
|
3988
|
+
createdAt: Date;
|
3989
|
+
updatedAt: Date;
|
3990
|
+
deletedAt: Date | null;
|
3991
|
+
fileName: string;
|
3992
|
+
fileKey: string;
|
3993
|
+
bucketName: string;
|
3994
|
+
fileSize: number;
|
3995
|
+
fileUrl: string | null;
|
3996
|
+
status?: string | undefined;
|
3997
|
+
}>;
|
3998
|
+
actor: z.ZodObject<{
|
3999
|
+
id: z.ZodString;
|
4000
|
+
createdAt: z.ZodDate;
|
4001
|
+
updatedAt: z.ZodDate;
|
4002
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4003
|
+
name: z.ZodString;
|
4004
|
+
email: z.ZodString;
|
4005
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
4006
|
+
password: z.ZodString;
|
4007
|
+
address: z.ZodNullable<z.ZodString>;
|
4008
|
+
phone: z.ZodNullable<z.ZodString>;
|
4009
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
4010
|
+
roles: z.ZodArray<z.ZodObject<{
|
3967
4011
|
id: z.ZodString;
|
3968
4012
|
createdAt: z.ZodDate;
|
3969
4013
|
updatedAt: z.ZodDate;
|
@@ -3971,6 +4015,31 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3971
4015
|
systemName: z.ZodString;
|
3972
4016
|
displayName: z.ZodString;
|
3973
4017
|
description: z.ZodNullable<z.ZodString>;
|
4018
|
+
permissions: z.ZodArray<z.ZodObject<{
|
4019
|
+
id: z.ZodString;
|
4020
|
+
createdAt: z.ZodDate;
|
4021
|
+
updatedAt: z.ZodDate;
|
4022
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4023
|
+
systemName: z.ZodString;
|
4024
|
+
displayName: z.ZodString;
|
4025
|
+
description: z.ZodNullable<z.ZodString>;
|
4026
|
+
}, "strip", z.ZodTypeAny, {
|
4027
|
+
id: string;
|
4028
|
+
description: string | null;
|
4029
|
+
createdAt: Date;
|
4030
|
+
updatedAt: Date;
|
4031
|
+
deletedAt: Date | null;
|
4032
|
+
systemName: string;
|
4033
|
+
displayName: string;
|
4034
|
+
}, {
|
4035
|
+
id: string;
|
4036
|
+
description: string | null;
|
4037
|
+
createdAt: Date;
|
4038
|
+
updatedAt: Date;
|
4039
|
+
deletedAt: Date | null;
|
4040
|
+
systemName: string;
|
4041
|
+
displayName: string;
|
4042
|
+
}>, "many">;
|
3974
4043
|
}, "strip", z.ZodTypeAny, {
|
3975
4044
|
id: string;
|
3976
4045
|
description: string | null;
|
@@ -3979,6 +4048,15 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3979
4048
|
deletedAt: Date | null;
|
3980
4049
|
systemName: string;
|
3981
4050
|
displayName: string;
|
4051
|
+
permissions: {
|
4052
|
+
id: string;
|
4053
|
+
description: string | null;
|
4054
|
+
createdAt: Date;
|
4055
|
+
updatedAt: Date;
|
4056
|
+
deletedAt: Date | null;
|
4057
|
+
systemName: string;
|
4058
|
+
displayName: string;
|
4059
|
+
}[];
|
3982
4060
|
}, {
|
3983
4061
|
id: string;
|
3984
4062
|
description: string | null;
|
@@ -3987,16 +4065,66 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
3987
4065
|
deletedAt: Date | null;
|
3988
4066
|
systemName: string;
|
3989
4067
|
displayName: string;
|
4068
|
+
permissions: {
|
4069
|
+
id: string;
|
4070
|
+
description: string | null;
|
4071
|
+
createdAt: Date;
|
4072
|
+
updatedAt: Date;
|
4073
|
+
deletedAt: Date | null;
|
4074
|
+
systemName: string;
|
4075
|
+
displayName: string;
|
4076
|
+
}[];
|
3990
4077
|
}>, "many">;
|
4078
|
+
extension: z.ZodObject<{
|
4079
|
+
id: z.ZodString;
|
4080
|
+
createdAt: z.ZodDate;
|
4081
|
+
updatedAt: z.ZodDate;
|
4082
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4083
|
+
userId: z.ZodNullable<z.ZodString>;
|
4084
|
+
sipServerUrl: z.ZodString;
|
4085
|
+
sipUserName: z.ZodString;
|
4086
|
+
webphoneLoginUser: z.ZodString;
|
4087
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
4088
|
+
extensionName: z.ZodString;
|
4089
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
4090
|
+
}, "strip", z.ZodTypeAny, {
|
4091
|
+
id: string;
|
4092
|
+
createdAt: Date;
|
4093
|
+
updatedAt: Date;
|
4094
|
+
deletedAt: Date | null;
|
4095
|
+
userId: string | null;
|
4096
|
+
sipServerUrl: string;
|
4097
|
+
sipUserName: string;
|
4098
|
+
webphoneLoginUser: string;
|
4099
|
+
extensionId: string | null;
|
4100
|
+
extensionName: string;
|
4101
|
+
telephonySignature: string | null;
|
4102
|
+
}, {
|
4103
|
+
id: string;
|
4104
|
+
createdAt: Date;
|
4105
|
+
updatedAt: Date;
|
4106
|
+
deletedAt: Date | null;
|
4107
|
+
userId: string | null;
|
4108
|
+
sipServerUrl: string;
|
4109
|
+
sipUserName: string;
|
4110
|
+
webphoneLoginUser: string;
|
4111
|
+
extensionId: string | null;
|
4112
|
+
extensionName: string;
|
4113
|
+
telephonySignature: string | null;
|
4114
|
+
}>;
|
3991
4115
|
}, "strip", z.ZodTypeAny, {
|
3992
4116
|
id: string;
|
3993
|
-
|
4117
|
+
address: string | null;
|
4118
|
+
name: string;
|
4119
|
+
email: string;
|
3994
4120
|
createdAt: Date;
|
3995
4121
|
updatedAt: Date;
|
3996
4122
|
deletedAt: Date | null;
|
3997
|
-
|
3998
|
-
|
3999
|
-
|
4123
|
+
emailVerifiedAt: Date | null;
|
4124
|
+
password: string;
|
4125
|
+
phone: string | null;
|
4126
|
+
notificationCount: number | null;
|
4127
|
+
roles: {
|
4000
4128
|
id: string;
|
4001
4129
|
description: string | null;
|
4002
4130
|
createdAt: Date;
|
@@ -4004,16 +4132,42 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4004
4132
|
deletedAt: Date | null;
|
4005
4133
|
systemName: string;
|
4006
4134
|
displayName: string;
|
4135
|
+
permissions: {
|
4136
|
+
id: string;
|
4137
|
+
description: string | null;
|
4138
|
+
createdAt: Date;
|
4139
|
+
updatedAt: Date;
|
4140
|
+
deletedAt: Date | null;
|
4141
|
+
systemName: string;
|
4142
|
+
displayName: string;
|
4143
|
+
}[];
|
4007
4144
|
}[];
|
4145
|
+
extension: {
|
4146
|
+
id: string;
|
4147
|
+
createdAt: Date;
|
4148
|
+
updatedAt: Date;
|
4149
|
+
deletedAt: Date | null;
|
4150
|
+
userId: string | null;
|
4151
|
+
sipServerUrl: string;
|
4152
|
+
sipUserName: string;
|
4153
|
+
webphoneLoginUser: string;
|
4154
|
+
extensionId: string | null;
|
4155
|
+
extensionName: string;
|
4156
|
+
telephonySignature: string | null;
|
4157
|
+
};
|
4008
4158
|
}, {
|
4009
4159
|
id: string;
|
4010
|
-
|
4160
|
+
address: string | null;
|
4161
|
+
name: string;
|
4162
|
+
email: string;
|
4011
4163
|
createdAt: Date;
|
4012
4164
|
updatedAt: Date;
|
4013
4165
|
deletedAt: Date | null;
|
4014
|
-
|
4015
|
-
|
4016
|
-
|
4166
|
+
emailVerifiedAt: Date | null;
|
4167
|
+
password: string;
|
4168
|
+
phone: string | null;
|
4169
|
+
notificationCount: number | null;
|
4170
|
+
roles: {
|
4017
4171
|
id: string;
|
4018
4172
|
description: string | null;
|
4019
4173
|
createdAt: Date;
|
@@ -4021,38 +4175,873 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4021
4175
|
deletedAt: Date | null;
|
4022
4176
|
systemName: string;
|
4023
4177
|
displayName: string;
|
4178
|
+
permissions: {
|
4179
|
+
id: string;
|
4180
|
+
description: string | null;
|
4181
|
+
createdAt: Date;
|
4182
|
+
updatedAt: Date;
|
4183
|
+
deletedAt: Date | null;
|
4184
|
+
systemName: string;
|
4185
|
+
displayName: string;
|
4186
|
+
}[];
|
4024
4187
|
}[];
|
4025
|
-
|
4026
|
-
|
4188
|
+
extension: {
|
4189
|
+
id: string;
|
4190
|
+
createdAt: Date;
|
4191
|
+
updatedAt: Date;
|
4192
|
+
deletedAt: Date | null;
|
4193
|
+
userId: string | null;
|
4194
|
+
sipServerUrl: string;
|
4195
|
+
sipUserName: string;
|
4196
|
+
webphoneLoginUser: string;
|
4197
|
+
extensionId: string | null;
|
4198
|
+
extensionName: string;
|
4199
|
+
telephonySignature: string | null;
|
4200
|
+
};
|
4201
|
+
}>;
|
4202
|
+
assignee: z.ZodObject<{
|
4027
4203
|
id: z.ZodString;
|
4028
4204
|
createdAt: z.ZodDate;
|
4029
4205
|
updatedAt: z.ZodDate;
|
4030
4206
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
4031
|
-
|
4032
|
-
|
4033
|
-
|
4034
|
-
|
4035
|
-
|
4036
|
-
|
4037
|
-
|
4038
|
-
|
4039
|
-
|
4040
|
-
|
4041
|
-
|
4042
|
-
|
4043
|
-
|
4044
|
-
|
4045
|
-
|
4046
|
-
|
4047
|
-
|
4048
|
-
|
4049
|
-
|
4050
|
-
|
4051
|
-
|
4052
|
-
|
4053
|
-
|
4054
|
-
|
4055
|
-
|
4207
|
+
name: z.ZodString;
|
4208
|
+
email: z.ZodString;
|
4209
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
4210
|
+
password: z.ZodString;
|
4211
|
+
address: z.ZodNullable<z.ZodString>;
|
4212
|
+
phone: z.ZodNullable<z.ZodString>;
|
4213
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
4214
|
+
roles: z.ZodArray<z.ZodObject<{
|
4215
|
+
id: z.ZodString;
|
4216
|
+
createdAt: z.ZodDate;
|
4217
|
+
updatedAt: z.ZodDate;
|
4218
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4219
|
+
systemName: z.ZodString;
|
4220
|
+
displayName: z.ZodString;
|
4221
|
+
description: z.ZodNullable<z.ZodString>;
|
4222
|
+
permissions: z.ZodArray<z.ZodObject<{
|
4223
|
+
id: z.ZodString;
|
4224
|
+
createdAt: z.ZodDate;
|
4225
|
+
updatedAt: z.ZodDate;
|
4226
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4227
|
+
systemName: z.ZodString;
|
4228
|
+
displayName: z.ZodString;
|
4229
|
+
description: z.ZodNullable<z.ZodString>;
|
4230
|
+
}, "strip", z.ZodTypeAny, {
|
4231
|
+
id: string;
|
4232
|
+
description: string | null;
|
4233
|
+
createdAt: Date;
|
4234
|
+
updatedAt: Date;
|
4235
|
+
deletedAt: Date | null;
|
4236
|
+
systemName: string;
|
4237
|
+
displayName: string;
|
4238
|
+
}, {
|
4239
|
+
id: string;
|
4240
|
+
description: string | null;
|
4241
|
+
createdAt: Date;
|
4242
|
+
updatedAt: Date;
|
4243
|
+
deletedAt: Date | null;
|
4244
|
+
systemName: string;
|
4245
|
+
displayName: string;
|
4246
|
+
}>, "many">;
|
4247
|
+
}, "strip", z.ZodTypeAny, {
|
4248
|
+
id: string;
|
4249
|
+
description: string | null;
|
4250
|
+
createdAt: Date;
|
4251
|
+
updatedAt: Date;
|
4252
|
+
deletedAt: Date | null;
|
4253
|
+
systemName: string;
|
4254
|
+
displayName: string;
|
4255
|
+
permissions: {
|
4256
|
+
id: string;
|
4257
|
+
description: string | null;
|
4258
|
+
createdAt: Date;
|
4259
|
+
updatedAt: Date;
|
4260
|
+
deletedAt: Date | null;
|
4261
|
+
systemName: string;
|
4262
|
+
displayName: string;
|
4263
|
+
}[];
|
4264
|
+
}, {
|
4265
|
+
id: string;
|
4266
|
+
description: string | null;
|
4267
|
+
createdAt: Date;
|
4268
|
+
updatedAt: Date;
|
4269
|
+
deletedAt: Date | null;
|
4270
|
+
systemName: string;
|
4271
|
+
displayName: string;
|
4272
|
+
permissions: {
|
4273
|
+
id: string;
|
4274
|
+
description: string | null;
|
4275
|
+
createdAt: Date;
|
4276
|
+
updatedAt: Date;
|
4277
|
+
deletedAt: Date | null;
|
4278
|
+
systemName: string;
|
4279
|
+
displayName: string;
|
4280
|
+
}[];
|
4281
|
+
}>, "many">;
|
4282
|
+
extension: z.ZodObject<{
|
4283
|
+
id: z.ZodString;
|
4284
|
+
createdAt: z.ZodDate;
|
4285
|
+
updatedAt: z.ZodDate;
|
4286
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4287
|
+
userId: z.ZodNullable<z.ZodString>;
|
4288
|
+
sipServerUrl: z.ZodString;
|
4289
|
+
sipUserName: z.ZodString;
|
4290
|
+
webphoneLoginUser: z.ZodString;
|
4291
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
4292
|
+
extensionName: z.ZodString;
|
4293
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
4294
|
+
}, "strip", z.ZodTypeAny, {
|
4295
|
+
id: string;
|
4296
|
+
createdAt: Date;
|
4297
|
+
updatedAt: Date;
|
4298
|
+
deletedAt: Date | null;
|
4299
|
+
userId: string | null;
|
4300
|
+
sipServerUrl: string;
|
4301
|
+
sipUserName: string;
|
4302
|
+
webphoneLoginUser: string;
|
4303
|
+
extensionId: string | null;
|
4304
|
+
extensionName: string;
|
4305
|
+
telephonySignature: string | null;
|
4306
|
+
}, {
|
4307
|
+
id: string;
|
4308
|
+
createdAt: Date;
|
4309
|
+
updatedAt: Date;
|
4310
|
+
deletedAt: Date | null;
|
4311
|
+
userId: string | null;
|
4312
|
+
sipServerUrl: string;
|
4313
|
+
sipUserName: string;
|
4314
|
+
webphoneLoginUser: string;
|
4315
|
+
extensionId: string | null;
|
4316
|
+
extensionName: string;
|
4317
|
+
telephonySignature: string | null;
|
4318
|
+
}>;
|
4319
|
+
}, "strip", z.ZodTypeAny, {
|
4320
|
+
id: string;
|
4321
|
+
address: string | null;
|
4322
|
+
name: string;
|
4323
|
+
email: string;
|
4324
|
+
createdAt: Date;
|
4325
|
+
updatedAt: Date;
|
4326
|
+
deletedAt: Date | null;
|
4327
|
+
emailVerifiedAt: Date | null;
|
4328
|
+
password: string;
|
4329
|
+
phone: string | null;
|
4330
|
+
notificationCount: number | null;
|
4331
|
+
roles: {
|
4332
|
+
id: string;
|
4333
|
+
description: string | null;
|
4334
|
+
createdAt: Date;
|
4335
|
+
updatedAt: Date;
|
4336
|
+
deletedAt: Date | null;
|
4337
|
+
systemName: string;
|
4338
|
+
displayName: string;
|
4339
|
+
permissions: {
|
4340
|
+
id: string;
|
4341
|
+
description: string | null;
|
4342
|
+
createdAt: Date;
|
4343
|
+
updatedAt: Date;
|
4344
|
+
deletedAt: Date | null;
|
4345
|
+
systemName: string;
|
4346
|
+
displayName: string;
|
4347
|
+
}[];
|
4348
|
+
}[];
|
4349
|
+
extension: {
|
4350
|
+
id: string;
|
4351
|
+
createdAt: Date;
|
4352
|
+
updatedAt: Date;
|
4353
|
+
deletedAt: Date | null;
|
4354
|
+
userId: string | null;
|
4355
|
+
sipServerUrl: string;
|
4356
|
+
sipUserName: string;
|
4357
|
+
webphoneLoginUser: string;
|
4358
|
+
extensionId: string | null;
|
4359
|
+
extensionName: string;
|
4360
|
+
telephonySignature: string | null;
|
4361
|
+
};
|
4362
|
+
}, {
|
4363
|
+
id: string;
|
4364
|
+
address: string | null;
|
4365
|
+
name: string;
|
4366
|
+
email: string;
|
4367
|
+
createdAt: Date;
|
4368
|
+
updatedAt: Date;
|
4369
|
+
deletedAt: Date | null;
|
4370
|
+
emailVerifiedAt: Date | null;
|
4371
|
+
password: string;
|
4372
|
+
phone: string | null;
|
4373
|
+
notificationCount: number | null;
|
4374
|
+
roles: {
|
4375
|
+
id: string;
|
4376
|
+
description: string | null;
|
4377
|
+
createdAt: Date;
|
4378
|
+
updatedAt: Date;
|
4379
|
+
deletedAt: Date | null;
|
4380
|
+
systemName: string;
|
4381
|
+
displayName: string;
|
4382
|
+
permissions: {
|
4383
|
+
id: string;
|
4384
|
+
description: string | null;
|
4385
|
+
createdAt: Date;
|
4386
|
+
updatedAt: Date;
|
4387
|
+
deletedAt: Date | null;
|
4388
|
+
systemName: string;
|
4389
|
+
displayName: string;
|
4390
|
+
}[];
|
4391
|
+
}[];
|
4392
|
+
extension: {
|
4393
|
+
id: string;
|
4394
|
+
createdAt: Date;
|
4395
|
+
updatedAt: Date;
|
4396
|
+
deletedAt: Date | null;
|
4397
|
+
userId: string | null;
|
4398
|
+
sipServerUrl: string;
|
4399
|
+
sipUserName: string;
|
4400
|
+
webphoneLoginUser: string;
|
4401
|
+
extensionId: string | null;
|
4402
|
+
extensionName: string;
|
4403
|
+
telephonySignature: string | null;
|
4404
|
+
};
|
4405
|
+
}>;
|
4406
|
+
sender: z.ZodObject<{
|
4407
|
+
id: z.ZodString;
|
4408
|
+
createdAt: z.ZodDate;
|
4409
|
+
updatedAt: z.ZodDate;
|
4410
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4411
|
+
name: z.ZodString;
|
4412
|
+
email: z.ZodString;
|
4413
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
4414
|
+
password: z.ZodString;
|
4415
|
+
address: z.ZodNullable<z.ZodString>;
|
4416
|
+
phone: z.ZodNullable<z.ZodString>;
|
4417
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
4418
|
+
roles: z.ZodArray<z.ZodObject<{
|
4419
|
+
id: z.ZodString;
|
4420
|
+
createdAt: z.ZodDate;
|
4421
|
+
updatedAt: z.ZodDate;
|
4422
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4423
|
+
systemName: z.ZodString;
|
4424
|
+
displayName: z.ZodString;
|
4425
|
+
description: z.ZodNullable<z.ZodString>;
|
4426
|
+
permissions: z.ZodArray<z.ZodObject<{
|
4427
|
+
id: z.ZodString;
|
4428
|
+
createdAt: z.ZodDate;
|
4429
|
+
updatedAt: z.ZodDate;
|
4430
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4431
|
+
systemName: z.ZodString;
|
4432
|
+
displayName: z.ZodString;
|
4433
|
+
description: z.ZodNullable<z.ZodString>;
|
4434
|
+
}, "strip", z.ZodTypeAny, {
|
4435
|
+
id: string;
|
4436
|
+
description: string | null;
|
4437
|
+
createdAt: Date;
|
4438
|
+
updatedAt: Date;
|
4439
|
+
deletedAt: Date | null;
|
4440
|
+
systemName: string;
|
4441
|
+
displayName: string;
|
4442
|
+
}, {
|
4443
|
+
id: string;
|
4444
|
+
description: string | null;
|
4445
|
+
createdAt: Date;
|
4446
|
+
updatedAt: Date;
|
4447
|
+
deletedAt: Date | null;
|
4448
|
+
systemName: string;
|
4449
|
+
displayName: string;
|
4450
|
+
}>, "many">;
|
4451
|
+
}, "strip", z.ZodTypeAny, {
|
4452
|
+
id: string;
|
4453
|
+
description: string | null;
|
4454
|
+
createdAt: Date;
|
4455
|
+
updatedAt: Date;
|
4456
|
+
deletedAt: Date | null;
|
4457
|
+
systemName: string;
|
4458
|
+
displayName: string;
|
4459
|
+
permissions: {
|
4460
|
+
id: string;
|
4461
|
+
description: string | null;
|
4462
|
+
createdAt: Date;
|
4463
|
+
updatedAt: Date;
|
4464
|
+
deletedAt: Date | null;
|
4465
|
+
systemName: string;
|
4466
|
+
displayName: string;
|
4467
|
+
}[];
|
4468
|
+
}, {
|
4469
|
+
id: string;
|
4470
|
+
description: string | null;
|
4471
|
+
createdAt: Date;
|
4472
|
+
updatedAt: Date;
|
4473
|
+
deletedAt: Date | null;
|
4474
|
+
systemName: string;
|
4475
|
+
displayName: string;
|
4476
|
+
permissions: {
|
4477
|
+
id: string;
|
4478
|
+
description: string | null;
|
4479
|
+
createdAt: Date;
|
4480
|
+
updatedAt: Date;
|
4481
|
+
deletedAt: Date | null;
|
4482
|
+
systemName: string;
|
4483
|
+
displayName: string;
|
4484
|
+
}[];
|
4485
|
+
}>, "many">;
|
4486
|
+
extension: z.ZodObject<{
|
4487
|
+
id: z.ZodString;
|
4488
|
+
createdAt: z.ZodDate;
|
4489
|
+
updatedAt: z.ZodDate;
|
4490
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4491
|
+
userId: z.ZodNullable<z.ZodString>;
|
4492
|
+
sipServerUrl: z.ZodString;
|
4493
|
+
sipUserName: z.ZodString;
|
4494
|
+
webphoneLoginUser: z.ZodString;
|
4495
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
4496
|
+
extensionName: z.ZodString;
|
4497
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
4498
|
+
}, "strip", z.ZodTypeAny, {
|
4499
|
+
id: string;
|
4500
|
+
createdAt: Date;
|
4501
|
+
updatedAt: Date;
|
4502
|
+
deletedAt: Date | null;
|
4503
|
+
userId: string | null;
|
4504
|
+
sipServerUrl: string;
|
4505
|
+
sipUserName: string;
|
4506
|
+
webphoneLoginUser: string;
|
4507
|
+
extensionId: string | null;
|
4508
|
+
extensionName: string;
|
4509
|
+
telephonySignature: string | null;
|
4510
|
+
}, {
|
4511
|
+
id: string;
|
4512
|
+
createdAt: Date;
|
4513
|
+
updatedAt: Date;
|
4514
|
+
deletedAt: Date | null;
|
4515
|
+
userId: string | null;
|
4516
|
+
sipServerUrl: string;
|
4517
|
+
sipUserName: string;
|
4518
|
+
webphoneLoginUser: string;
|
4519
|
+
extensionId: string | null;
|
4520
|
+
extensionName: string;
|
4521
|
+
telephonySignature: string | null;
|
4522
|
+
}>;
|
4523
|
+
}, "strip", z.ZodTypeAny, {
|
4524
|
+
id: string;
|
4525
|
+
address: string | null;
|
4526
|
+
name: string;
|
4527
|
+
email: string;
|
4528
|
+
createdAt: Date;
|
4529
|
+
updatedAt: Date;
|
4530
|
+
deletedAt: Date | null;
|
4531
|
+
emailVerifiedAt: Date | null;
|
4532
|
+
password: string;
|
4533
|
+
phone: string | null;
|
4534
|
+
notificationCount: number | null;
|
4535
|
+
roles: {
|
4536
|
+
id: string;
|
4537
|
+
description: string | null;
|
4538
|
+
createdAt: Date;
|
4539
|
+
updatedAt: Date;
|
4540
|
+
deletedAt: Date | null;
|
4541
|
+
systemName: string;
|
4542
|
+
displayName: string;
|
4543
|
+
permissions: {
|
4544
|
+
id: string;
|
4545
|
+
description: string | null;
|
4546
|
+
createdAt: Date;
|
4547
|
+
updatedAt: Date;
|
4548
|
+
deletedAt: Date | null;
|
4549
|
+
systemName: string;
|
4550
|
+
displayName: string;
|
4551
|
+
}[];
|
4552
|
+
}[];
|
4553
|
+
extension: {
|
4554
|
+
id: string;
|
4555
|
+
createdAt: Date;
|
4556
|
+
updatedAt: Date;
|
4557
|
+
deletedAt: Date | null;
|
4558
|
+
userId: string | null;
|
4559
|
+
sipServerUrl: string;
|
4560
|
+
sipUserName: string;
|
4561
|
+
webphoneLoginUser: string;
|
4562
|
+
extensionId: string | null;
|
4563
|
+
extensionName: string;
|
4564
|
+
telephonySignature: string | null;
|
4565
|
+
};
|
4566
|
+
}, {
|
4567
|
+
id: string;
|
4568
|
+
address: string | null;
|
4569
|
+
name: string;
|
4570
|
+
email: string;
|
4571
|
+
createdAt: Date;
|
4572
|
+
updatedAt: Date;
|
4573
|
+
deletedAt: Date | null;
|
4574
|
+
emailVerifiedAt: Date | null;
|
4575
|
+
password: string;
|
4576
|
+
phone: string | null;
|
4577
|
+
notificationCount: number | null;
|
4578
|
+
roles: {
|
4579
|
+
id: string;
|
4580
|
+
description: string | null;
|
4581
|
+
createdAt: Date;
|
4582
|
+
updatedAt: Date;
|
4583
|
+
deletedAt: Date | null;
|
4584
|
+
systemName: string;
|
4585
|
+
displayName: string;
|
4586
|
+
permissions: {
|
4587
|
+
id: string;
|
4588
|
+
description: string | null;
|
4589
|
+
createdAt: Date;
|
4590
|
+
updatedAt: Date;
|
4591
|
+
deletedAt: Date | null;
|
4592
|
+
systemName: string;
|
4593
|
+
displayName: string;
|
4594
|
+
}[];
|
4595
|
+
}[];
|
4596
|
+
extension: {
|
4597
|
+
id: string;
|
4598
|
+
createdAt: Date;
|
4599
|
+
updatedAt: Date;
|
4600
|
+
deletedAt: Date | null;
|
4601
|
+
userId: string | null;
|
4602
|
+
sipServerUrl: string;
|
4603
|
+
sipUserName: string;
|
4604
|
+
webphoneLoginUser: string;
|
4605
|
+
extensionId: string | null;
|
4606
|
+
extensionName: string;
|
4607
|
+
telephonySignature: string | null;
|
4608
|
+
};
|
4609
|
+
}>;
|
4610
|
+
}, "strip", z.ZodTypeAny, {
|
4611
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
4612
|
+
message: string;
|
4613
|
+
id: string;
|
4614
|
+
url: string;
|
4615
|
+
direction: "incoming" | "outgoing" | "system";
|
4616
|
+
createdAt: Date;
|
4617
|
+
updatedAt: Date;
|
4618
|
+
deletedAt: Date | null;
|
4619
|
+
actor: {
|
4620
|
+
id: string;
|
4621
|
+
address: string | null;
|
4622
|
+
name: string;
|
4623
|
+
email: string;
|
4624
|
+
createdAt: Date;
|
4625
|
+
updatedAt: Date;
|
4626
|
+
deletedAt: Date | null;
|
4627
|
+
emailVerifiedAt: Date | null;
|
4628
|
+
password: string;
|
4629
|
+
phone: string | null;
|
4630
|
+
notificationCount: number | null;
|
4631
|
+
roles: {
|
4632
|
+
id: string;
|
4633
|
+
description: string | null;
|
4634
|
+
createdAt: Date;
|
4635
|
+
updatedAt: Date;
|
4636
|
+
deletedAt: Date | null;
|
4637
|
+
systemName: string;
|
4638
|
+
displayName: string;
|
4639
|
+
permissions: {
|
4640
|
+
id: string;
|
4641
|
+
description: string | null;
|
4642
|
+
createdAt: Date;
|
4643
|
+
updatedAt: Date;
|
4644
|
+
deletedAt: Date | null;
|
4645
|
+
systemName: string;
|
4646
|
+
displayName: string;
|
4647
|
+
}[];
|
4648
|
+
}[];
|
4649
|
+
extension: {
|
4650
|
+
id: string;
|
4651
|
+
createdAt: Date;
|
4652
|
+
updatedAt: Date;
|
4653
|
+
deletedAt: Date | null;
|
4654
|
+
userId: string | null;
|
4655
|
+
sipServerUrl: string;
|
4656
|
+
sipUserName: string;
|
4657
|
+
webphoneLoginUser: string;
|
4658
|
+
extensionId: string | null;
|
4659
|
+
extensionName: string;
|
4660
|
+
telephonySignature: string | null;
|
4661
|
+
};
|
4662
|
+
};
|
4663
|
+
platformId: string;
|
4664
|
+
upload: {
|
4665
|
+
id: string;
|
4666
|
+
createdAt: Date;
|
4667
|
+
updatedAt: Date;
|
4668
|
+
deletedAt: Date | null;
|
4669
|
+
fileName: string;
|
4670
|
+
fileKey: string;
|
4671
|
+
bucketName: string;
|
4672
|
+
fileSize: number;
|
4673
|
+
fileUrl: string | null;
|
4674
|
+
status?: string | undefined;
|
4675
|
+
};
|
4676
|
+
assignee: {
|
4677
|
+
id: string;
|
4678
|
+
address: string | null;
|
4679
|
+
name: string;
|
4680
|
+
email: string;
|
4681
|
+
createdAt: Date;
|
4682
|
+
updatedAt: Date;
|
4683
|
+
deletedAt: Date | null;
|
4684
|
+
emailVerifiedAt: Date | null;
|
4685
|
+
password: string;
|
4686
|
+
phone: string | null;
|
4687
|
+
notificationCount: number | null;
|
4688
|
+
roles: {
|
4689
|
+
id: string;
|
4690
|
+
description: string | null;
|
4691
|
+
createdAt: Date;
|
4692
|
+
updatedAt: Date;
|
4693
|
+
deletedAt: Date | null;
|
4694
|
+
systemName: string;
|
4695
|
+
displayName: string;
|
4696
|
+
permissions: {
|
4697
|
+
id: string;
|
4698
|
+
description: string | null;
|
4699
|
+
createdAt: Date;
|
4700
|
+
updatedAt: Date;
|
4701
|
+
deletedAt: Date | null;
|
4702
|
+
systemName: string;
|
4703
|
+
displayName: string;
|
4704
|
+
}[];
|
4705
|
+
}[];
|
4706
|
+
extension: {
|
4707
|
+
id: string;
|
4708
|
+
createdAt: Date;
|
4709
|
+
updatedAt: Date;
|
4710
|
+
deletedAt: Date | null;
|
4711
|
+
userId: string | null;
|
4712
|
+
sipServerUrl: string;
|
4713
|
+
sipUserName: string;
|
4714
|
+
webphoneLoginUser: string;
|
4715
|
+
extensionId: string | null;
|
4716
|
+
extensionName: string;
|
4717
|
+
telephonySignature: string | null;
|
4718
|
+
};
|
4719
|
+
};
|
4720
|
+
readAt: Date;
|
4721
|
+
platformMessageId: string;
|
4722
|
+
replyPlatformMessageId: string;
|
4723
|
+
locale: "" | "th" | "mm" | "en";
|
4724
|
+
previewUrl: string;
|
4725
|
+
imageSetId: string;
|
4726
|
+
sender: {
|
4727
|
+
id: string;
|
4728
|
+
address: string | null;
|
4729
|
+
name: string;
|
4730
|
+
email: string;
|
4731
|
+
createdAt: Date;
|
4732
|
+
updatedAt: Date;
|
4733
|
+
deletedAt: Date | null;
|
4734
|
+
emailVerifiedAt: Date | null;
|
4735
|
+
password: string;
|
4736
|
+
phone: string | null;
|
4737
|
+
notificationCount: number | null;
|
4738
|
+
roles: {
|
4739
|
+
id: string;
|
4740
|
+
description: string | null;
|
4741
|
+
createdAt: Date;
|
4742
|
+
updatedAt: Date;
|
4743
|
+
deletedAt: Date | null;
|
4744
|
+
systemName: string;
|
4745
|
+
displayName: string;
|
4746
|
+
permissions: {
|
4747
|
+
id: string;
|
4748
|
+
description: string | null;
|
4749
|
+
createdAt: Date;
|
4750
|
+
updatedAt: Date;
|
4751
|
+
deletedAt: Date | null;
|
4752
|
+
systemName: string;
|
4753
|
+
displayName: string;
|
4754
|
+
}[];
|
4755
|
+
}[];
|
4756
|
+
extension: {
|
4757
|
+
id: string;
|
4758
|
+
createdAt: Date;
|
4759
|
+
updatedAt: Date;
|
4760
|
+
deletedAt: Date | null;
|
4761
|
+
userId: string | null;
|
4762
|
+
sipServerUrl: string;
|
4763
|
+
sipUserName: string;
|
4764
|
+
webphoneLoginUser: string;
|
4765
|
+
extensionId: string | null;
|
4766
|
+
extensionName: string;
|
4767
|
+
telephonySignature: string | null;
|
4768
|
+
};
|
4769
|
+
};
|
4770
|
+
metadata?: any;
|
4771
|
+
template?: any;
|
4772
|
+
}, {
|
4773
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
4774
|
+
message: string;
|
4775
|
+
id: string;
|
4776
|
+
url: string;
|
4777
|
+
direction: "incoming" | "outgoing" | "system";
|
4778
|
+
createdAt: Date;
|
4779
|
+
updatedAt: Date;
|
4780
|
+
deletedAt: Date | null;
|
4781
|
+
actor: {
|
4782
|
+
id: string;
|
4783
|
+
address: string | null;
|
4784
|
+
name: string;
|
4785
|
+
email: string;
|
4786
|
+
createdAt: Date;
|
4787
|
+
updatedAt: Date;
|
4788
|
+
deletedAt: Date | null;
|
4789
|
+
emailVerifiedAt: Date | null;
|
4790
|
+
password: string;
|
4791
|
+
phone: string | null;
|
4792
|
+
notificationCount: number | null;
|
4793
|
+
roles: {
|
4794
|
+
id: string;
|
4795
|
+
description: string | null;
|
4796
|
+
createdAt: Date;
|
4797
|
+
updatedAt: Date;
|
4798
|
+
deletedAt: Date | null;
|
4799
|
+
systemName: string;
|
4800
|
+
displayName: string;
|
4801
|
+
permissions: {
|
4802
|
+
id: string;
|
4803
|
+
description: string | null;
|
4804
|
+
createdAt: Date;
|
4805
|
+
updatedAt: Date;
|
4806
|
+
deletedAt: Date | null;
|
4807
|
+
systemName: string;
|
4808
|
+
displayName: string;
|
4809
|
+
}[];
|
4810
|
+
}[];
|
4811
|
+
extension: {
|
4812
|
+
id: string;
|
4813
|
+
createdAt: Date;
|
4814
|
+
updatedAt: Date;
|
4815
|
+
deletedAt: Date | null;
|
4816
|
+
userId: string | null;
|
4817
|
+
sipServerUrl: string;
|
4818
|
+
sipUserName: string;
|
4819
|
+
webphoneLoginUser: string;
|
4820
|
+
extensionId: string | null;
|
4821
|
+
extensionName: string;
|
4822
|
+
telephonySignature: string | null;
|
4823
|
+
};
|
4824
|
+
};
|
4825
|
+
platformId: string;
|
4826
|
+
upload: {
|
4827
|
+
id: string;
|
4828
|
+
createdAt: Date;
|
4829
|
+
updatedAt: Date;
|
4830
|
+
deletedAt: Date | null;
|
4831
|
+
fileName: string;
|
4832
|
+
fileKey: string;
|
4833
|
+
bucketName: string;
|
4834
|
+
fileSize: number;
|
4835
|
+
fileUrl: string | null;
|
4836
|
+
status?: string | undefined;
|
4837
|
+
};
|
4838
|
+
assignee: {
|
4839
|
+
id: string;
|
4840
|
+
address: string | null;
|
4841
|
+
name: string;
|
4842
|
+
email: string;
|
4843
|
+
createdAt: Date;
|
4844
|
+
updatedAt: Date;
|
4845
|
+
deletedAt: Date | null;
|
4846
|
+
emailVerifiedAt: Date | null;
|
4847
|
+
password: string;
|
4848
|
+
phone: string | null;
|
4849
|
+
notificationCount: number | null;
|
4850
|
+
roles: {
|
4851
|
+
id: string;
|
4852
|
+
description: string | null;
|
4853
|
+
createdAt: Date;
|
4854
|
+
updatedAt: Date;
|
4855
|
+
deletedAt: Date | null;
|
4856
|
+
systemName: string;
|
4857
|
+
displayName: string;
|
4858
|
+
permissions: {
|
4859
|
+
id: string;
|
4860
|
+
description: string | null;
|
4861
|
+
createdAt: Date;
|
4862
|
+
updatedAt: Date;
|
4863
|
+
deletedAt: Date | null;
|
4864
|
+
systemName: string;
|
4865
|
+
displayName: string;
|
4866
|
+
}[];
|
4867
|
+
}[];
|
4868
|
+
extension: {
|
4869
|
+
id: string;
|
4870
|
+
createdAt: Date;
|
4871
|
+
updatedAt: Date;
|
4872
|
+
deletedAt: Date | null;
|
4873
|
+
userId: string | null;
|
4874
|
+
sipServerUrl: string;
|
4875
|
+
sipUserName: string;
|
4876
|
+
webphoneLoginUser: string;
|
4877
|
+
extensionId: string | null;
|
4878
|
+
extensionName: string;
|
4879
|
+
telephonySignature: string | null;
|
4880
|
+
};
|
4881
|
+
};
|
4882
|
+
readAt: Date;
|
4883
|
+
platformMessageId: string;
|
4884
|
+
replyPlatformMessageId: string;
|
4885
|
+
locale: "" | "th" | "mm" | "en";
|
4886
|
+
previewUrl: string;
|
4887
|
+
imageSetId: string;
|
4888
|
+
sender: {
|
4889
|
+
id: string;
|
4890
|
+
address: string | null;
|
4891
|
+
name: string;
|
4892
|
+
email: string;
|
4893
|
+
createdAt: Date;
|
4894
|
+
updatedAt: Date;
|
4895
|
+
deletedAt: Date | null;
|
4896
|
+
emailVerifiedAt: Date | null;
|
4897
|
+
password: string;
|
4898
|
+
phone: string | null;
|
4899
|
+
notificationCount: number | null;
|
4900
|
+
roles: {
|
4901
|
+
id: string;
|
4902
|
+
description: string | null;
|
4903
|
+
createdAt: Date;
|
4904
|
+
updatedAt: Date;
|
4905
|
+
deletedAt: Date | null;
|
4906
|
+
systemName: string;
|
4907
|
+
displayName: string;
|
4908
|
+
permissions: {
|
4909
|
+
id: string;
|
4910
|
+
description: string | null;
|
4911
|
+
createdAt: Date;
|
4912
|
+
updatedAt: Date;
|
4913
|
+
deletedAt: Date | null;
|
4914
|
+
systemName: string;
|
4915
|
+
displayName: string;
|
4916
|
+
}[];
|
4917
|
+
}[];
|
4918
|
+
extension: {
|
4919
|
+
id: string;
|
4920
|
+
createdAt: Date;
|
4921
|
+
updatedAt: Date;
|
4922
|
+
deletedAt: Date | null;
|
4923
|
+
userId: string | null;
|
4924
|
+
sipServerUrl: string;
|
4925
|
+
sipUserName: string;
|
4926
|
+
webphoneLoginUser: string;
|
4927
|
+
extensionId: string | null;
|
4928
|
+
extensionName: string;
|
4929
|
+
telephonySignature: string | null;
|
4930
|
+
};
|
4931
|
+
};
|
4932
|
+
metadata?: any;
|
4933
|
+
template?: any;
|
4934
|
+
}>>;
|
4935
|
+
actor: z.ZodObject<{
|
4936
|
+
id: z.ZodString;
|
4937
|
+
createdAt: z.ZodDate;
|
4938
|
+
updatedAt: z.ZodDate;
|
4939
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4940
|
+
name: z.ZodString;
|
4941
|
+
email: z.ZodString;
|
4942
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
4943
|
+
password: z.ZodString;
|
4944
|
+
address: z.ZodNullable<z.ZodString>;
|
4945
|
+
phone: z.ZodNullable<z.ZodString>;
|
4946
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
4947
|
+
roles: z.ZodArray<z.ZodObject<{
|
4948
|
+
id: z.ZodString;
|
4949
|
+
createdAt: z.ZodDate;
|
4950
|
+
updatedAt: z.ZodDate;
|
4951
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4952
|
+
systemName: z.ZodString;
|
4953
|
+
displayName: z.ZodString;
|
4954
|
+
description: z.ZodNullable<z.ZodString>;
|
4955
|
+
permissions: z.ZodArray<z.ZodObject<{
|
4956
|
+
id: z.ZodString;
|
4957
|
+
createdAt: z.ZodDate;
|
4958
|
+
updatedAt: z.ZodDate;
|
4959
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4960
|
+
systemName: z.ZodString;
|
4961
|
+
displayName: z.ZodString;
|
4962
|
+
description: z.ZodNullable<z.ZodString>;
|
4963
|
+
}, "strip", z.ZodTypeAny, {
|
4964
|
+
id: string;
|
4965
|
+
description: string | null;
|
4966
|
+
createdAt: Date;
|
4967
|
+
updatedAt: Date;
|
4968
|
+
deletedAt: Date | null;
|
4969
|
+
systemName: string;
|
4970
|
+
displayName: string;
|
4971
|
+
}, {
|
4972
|
+
id: string;
|
4973
|
+
description: string | null;
|
4974
|
+
createdAt: Date;
|
4975
|
+
updatedAt: Date;
|
4976
|
+
deletedAt: Date | null;
|
4977
|
+
systemName: string;
|
4978
|
+
displayName: string;
|
4979
|
+
}>, "many">;
|
4980
|
+
}, "strip", z.ZodTypeAny, {
|
4981
|
+
id: string;
|
4982
|
+
description: string | null;
|
4983
|
+
createdAt: Date;
|
4984
|
+
updatedAt: Date;
|
4985
|
+
deletedAt: Date | null;
|
4986
|
+
systemName: string;
|
4987
|
+
displayName: string;
|
4988
|
+
permissions: {
|
4989
|
+
id: string;
|
4990
|
+
description: string | null;
|
4991
|
+
createdAt: Date;
|
4992
|
+
updatedAt: Date;
|
4993
|
+
deletedAt: Date | null;
|
4994
|
+
systemName: string;
|
4995
|
+
displayName: string;
|
4996
|
+
}[];
|
4997
|
+
}, {
|
4998
|
+
id: string;
|
4999
|
+
description: string | null;
|
5000
|
+
createdAt: Date;
|
5001
|
+
updatedAt: Date;
|
5002
|
+
deletedAt: Date | null;
|
5003
|
+
systemName: string;
|
5004
|
+
displayName: string;
|
5005
|
+
permissions: {
|
5006
|
+
id: string;
|
5007
|
+
description: string | null;
|
5008
|
+
createdAt: Date;
|
5009
|
+
updatedAt: Date;
|
5010
|
+
deletedAt: Date | null;
|
5011
|
+
systemName: string;
|
5012
|
+
displayName: string;
|
5013
|
+
}[];
|
5014
|
+
}>, "many">;
|
5015
|
+
extension: z.ZodObject<{
|
5016
|
+
id: z.ZodString;
|
5017
|
+
createdAt: z.ZodDate;
|
5018
|
+
updatedAt: z.ZodDate;
|
5019
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
5020
|
+
userId: z.ZodNullable<z.ZodString>;
|
5021
|
+
sipServerUrl: z.ZodString;
|
5022
|
+
sipUserName: z.ZodString;
|
5023
|
+
webphoneLoginUser: z.ZodString;
|
5024
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
5025
|
+
extensionName: z.ZodString;
|
5026
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
5027
|
+
}, "strip", z.ZodTypeAny, {
|
5028
|
+
id: string;
|
5029
|
+
createdAt: Date;
|
5030
|
+
updatedAt: Date;
|
5031
|
+
deletedAt: Date | null;
|
5032
|
+
userId: string | null;
|
5033
|
+
sipServerUrl: string;
|
5034
|
+
sipUserName: string;
|
5035
|
+
webphoneLoginUser: string;
|
5036
|
+
extensionId: string | null;
|
5037
|
+
extensionName: string;
|
5038
|
+
telephonySignature: string | null;
|
5039
|
+
}, {
|
5040
|
+
id: string;
|
5041
|
+
createdAt: Date;
|
5042
|
+
updatedAt: Date;
|
5043
|
+
deletedAt: Date | null;
|
5044
|
+
userId: string | null;
|
4056
5045
|
sipServerUrl: string;
|
4057
5046
|
sipUserName: string;
|
4058
5047
|
webphoneLoginUser: string;
|
@@ -4609,6 +5598,18 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4609
5598
|
};
|
4610
5599
|
};
|
4611
5600
|
platformId: string;
|
5601
|
+
upload: {
|
5602
|
+
id: string;
|
5603
|
+
createdAt: Date;
|
5604
|
+
updatedAt: Date;
|
5605
|
+
deletedAt: Date | null;
|
5606
|
+
fileName: string;
|
5607
|
+
fileKey: string;
|
5608
|
+
bucketName: string;
|
5609
|
+
fileSize: number;
|
5610
|
+
fileUrl: string | null;
|
5611
|
+
status?: string | undefined;
|
5612
|
+
};
|
4612
5613
|
assignee: {
|
4613
5614
|
id: string;
|
4614
5615
|
address: string | null;
|
@@ -4653,16 +5654,10 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4653
5654
|
telephonySignature: string | null;
|
4654
5655
|
};
|
4655
5656
|
};
|
4656
|
-
readAt: Date;
|
4657
|
-
platformMessageId: string;
|
4658
|
-
replyPlatformMessageId: string;
|
4659
|
-
locale: "" | "th" | "mm" | "en";
|
4660
|
-
previewUrl: string;
|
4661
|
-
imageSetId: string;
|
4662
5657
|
room: {
|
4663
5658
|
id: string;
|
4664
5659
|
channel: {
|
4665
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
5660
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
4666
5661
|
id: string;
|
4667
5662
|
name: string;
|
4668
5663
|
metadata: {
|
@@ -4774,15 +5769,15 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4774
5769
|
telephonySignature: string | null;
|
4775
5770
|
};
|
4776
5771
|
};
|
5772
|
+
firstResponseTime: number;
|
4777
5773
|
lastMessage: string;
|
4778
5774
|
handleTime: number;
|
4779
5775
|
closeAt: Date;
|
4780
5776
|
unreadCount: number;
|
4781
5777
|
firstResponseAt: Date;
|
4782
|
-
firstResponseTime: number;
|
4783
5778
|
isLatest: boolean;
|
4784
5779
|
platformContact: {
|
4785
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
5780
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
4786
5781
|
id: string;
|
4787
5782
|
metadata: {
|
4788
5783
|
id: string;
|
@@ -4867,31 +5862,182 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4867
5862
|
}[];
|
4868
5863
|
contactPhones: {
|
4869
5864
|
id: string;
|
4870
|
-
isPrimary: boolean;
|
5865
|
+
isPrimary: boolean;
|
5866
|
+
createdAt: Date;
|
5867
|
+
updatedAt: Date;
|
5868
|
+
deletedAt: Date | null;
|
5869
|
+
phone: string;
|
5870
|
+
}[];
|
5871
|
+
activityLogs?: {
|
5872
|
+
id: string;
|
5873
|
+
description: string;
|
5874
|
+
createdAt: Date;
|
5875
|
+
updatedAt: Date;
|
5876
|
+
deletedAt: Date | null;
|
5877
|
+
entityId: string;
|
5878
|
+
entityType: {
|
5879
|
+
id: string;
|
5880
|
+
description: string | null;
|
5881
|
+
createdAt: Date;
|
5882
|
+
updatedAt: Date;
|
5883
|
+
deletedAt: Date | null;
|
5884
|
+
entity: string;
|
5885
|
+
};
|
5886
|
+
}[] | undefined;
|
5887
|
+
};
|
5888
|
+
channelId: string;
|
5889
|
+
socialPlatformId: string;
|
5890
|
+
};
|
5891
|
+
assignee: {
|
5892
|
+
id: string;
|
5893
|
+
address: string | null;
|
5894
|
+
name: string;
|
5895
|
+
email: string;
|
5896
|
+
createdAt: Date;
|
5897
|
+
updatedAt: Date;
|
5898
|
+
deletedAt: Date | null;
|
5899
|
+
emailVerifiedAt: Date | null;
|
5900
|
+
password: string;
|
5901
|
+
phone: string | null;
|
5902
|
+
notificationCount: number | null;
|
5903
|
+
roles: {
|
5904
|
+
id: string;
|
5905
|
+
description: string | null;
|
5906
|
+
createdAt: Date;
|
5907
|
+
updatedAt: Date;
|
5908
|
+
deletedAt: Date | null;
|
5909
|
+
systemName: string;
|
5910
|
+
displayName: string;
|
5911
|
+
permissions: {
|
5912
|
+
id: string;
|
5913
|
+
description: string | null;
|
5914
|
+
createdAt: Date;
|
5915
|
+
updatedAt: Date;
|
5916
|
+
deletedAt: Date | null;
|
5917
|
+
systemName: string;
|
5918
|
+
displayName: string;
|
5919
|
+
}[];
|
5920
|
+
}[];
|
5921
|
+
extension: {
|
5922
|
+
id: string;
|
5923
|
+
createdAt: Date;
|
5924
|
+
updatedAt: Date;
|
5925
|
+
deletedAt: Date | null;
|
5926
|
+
userId: string | null;
|
5927
|
+
sipServerUrl: string;
|
5928
|
+
sipUserName: string;
|
5929
|
+
webphoneLoginUser: string;
|
5930
|
+
extensionId: string | null;
|
5931
|
+
extensionName: string;
|
5932
|
+
telephonySignature: string | null;
|
5933
|
+
};
|
5934
|
+
};
|
5935
|
+
cxlog: {
|
5936
|
+
id: string;
|
5937
|
+
channel: string | null;
|
5938
|
+
direction: string | null;
|
5939
|
+
createdAt: Date;
|
5940
|
+
updatedAt: Date;
|
5941
|
+
deletedAt: Date | null;
|
5942
|
+
entityId: string;
|
5943
|
+
queueId: string | null;
|
5944
|
+
contactId: string | null;
|
5945
|
+
caseId: number;
|
5946
|
+
entityName: string;
|
5947
|
+
agentId: string | null;
|
5948
|
+
startedDate: Date | null;
|
5949
|
+
handledTime: number | null;
|
5950
|
+
firstResponseTime: number | null;
|
5951
|
+
wrapUpForm: {
|
5952
|
+
id: string;
|
5953
|
+
disposition: string | null;
|
5954
|
+
createdAt: Date;
|
5955
|
+
updatedAt: Date;
|
5956
|
+
deletedAt: Date | null;
|
5957
|
+
tags: {
|
5958
|
+
id: string;
|
5959
|
+
name: string;
|
5960
|
+
createdAt: Date;
|
5961
|
+
updatedAt: Date;
|
5962
|
+
deletedAt: Date | null;
|
5963
|
+
}[];
|
5964
|
+
callFrom: string | null;
|
5965
|
+
callTo: string | null;
|
5966
|
+
note: string | null;
|
5967
|
+
} | null;
|
5968
|
+
};
|
5969
|
+
};
|
5970
|
+
readAt: Date;
|
5971
|
+
platformMessageId: string;
|
5972
|
+
replyPlatformMessageId: string;
|
5973
|
+
locale: "" | "th" | "mm" | "en";
|
5974
|
+
previewUrl: string;
|
5975
|
+
imageSetId: string;
|
5976
|
+
repliedMessage: {
|
5977
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
5978
|
+
message: string;
|
5979
|
+
id: string;
|
5980
|
+
url: string;
|
5981
|
+
direction: "incoming" | "outgoing" | "system";
|
5982
|
+
createdAt: Date;
|
5983
|
+
updatedAt: Date;
|
5984
|
+
deletedAt: Date | null;
|
5985
|
+
actor: {
|
5986
|
+
id: string;
|
5987
|
+
address: string | null;
|
5988
|
+
name: string;
|
5989
|
+
email: string;
|
5990
|
+
createdAt: Date;
|
5991
|
+
updatedAt: Date;
|
5992
|
+
deletedAt: Date | null;
|
5993
|
+
emailVerifiedAt: Date | null;
|
5994
|
+
password: string;
|
5995
|
+
phone: string | null;
|
5996
|
+
notificationCount: number | null;
|
5997
|
+
roles: {
|
5998
|
+
id: string;
|
5999
|
+
description: string | null;
|
6000
|
+
createdAt: Date;
|
6001
|
+
updatedAt: Date;
|
6002
|
+
deletedAt: Date | null;
|
6003
|
+
systemName: string;
|
6004
|
+
displayName: string;
|
6005
|
+
permissions: {
|
6006
|
+
id: string;
|
6007
|
+
description: string | null;
|
4871
6008
|
createdAt: Date;
|
4872
6009
|
updatedAt: Date;
|
4873
6010
|
deletedAt: Date | null;
|
4874
|
-
|
6011
|
+
systemName: string;
|
6012
|
+
displayName: string;
|
4875
6013
|
}[];
|
4876
|
-
|
4877
|
-
|
4878
|
-
|
4879
|
-
|
4880
|
-
|
4881
|
-
|
4882
|
-
|
4883
|
-
|
4884
|
-
|
4885
|
-
|
4886
|
-
|
4887
|
-
|
4888
|
-
|
4889
|
-
entity: string;
|
4890
|
-
};
|
4891
|
-
}[] | undefined;
|
6014
|
+
}[];
|
6015
|
+
extension: {
|
6016
|
+
id: string;
|
6017
|
+
createdAt: Date;
|
6018
|
+
updatedAt: Date;
|
6019
|
+
deletedAt: Date | null;
|
6020
|
+
userId: string | null;
|
6021
|
+
sipServerUrl: string;
|
6022
|
+
sipUserName: string;
|
6023
|
+
webphoneLoginUser: string;
|
6024
|
+
extensionId: string | null;
|
6025
|
+
extensionName: string;
|
6026
|
+
telephonySignature: string | null;
|
4892
6027
|
};
|
4893
|
-
|
4894
|
-
|
6028
|
+
};
|
6029
|
+
platformId: string;
|
6030
|
+
upload: {
|
6031
|
+
id: string;
|
6032
|
+
createdAt: Date;
|
6033
|
+
updatedAt: Date;
|
6034
|
+
deletedAt: Date | null;
|
6035
|
+
fileName: string;
|
6036
|
+
fileKey: string;
|
6037
|
+
bucketName: string;
|
6038
|
+
fileSize: number;
|
6039
|
+
fileUrl: string | null;
|
6040
|
+
status?: string | undefined;
|
4895
6041
|
};
|
4896
6042
|
assignee: {
|
4897
6043
|
id: string;
|
@@ -4937,52 +6083,58 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4937
6083
|
telephonySignature: string | null;
|
4938
6084
|
};
|
4939
6085
|
};
|
4940
|
-
|
6086
|
+
readAt: Date;
|
6087
|
+
platformMessageId: string;
|
6088
|
+
replyPlatformMessageId: string;
|
6089
|
+
locale: "" | "th" | "mm" | "en";
|
6090
|
+
previewUrl: string;
|
6091
|
+
imageSetId: string;
|
6092
|
+
sender: {
|
4941
6093
|
id: string;
|
4942
|
-
|
4943
|
-
|
6094
|
+
address: string | null;
|
6095
|
+
name: string;
|
6096
|
+
email: string;
|
4944
6097
|
createdAt: Date;
|
4945
6098
|
updatedAt: Date;
|
4946
6099
|
deletedAt: Date | null;
|
4947
|
-
|
4948
|
-
|
4949
|
-
|
4950
|
-
|
4951
|
-
|
4952
|
-
queueId: string | null;
|
4953
|
-
agentId: string | null;
|
4954
|
-
startedDate: Date | null;
|
4955
|
-
handledTime: number | null;
|
4956
|
-
wrapUpForm: {
|
6100
|
+
emailVerifiedAt: Date | null;
|
6101
|
+
password: string;
|
6102
|
+
phone: string | null;
|
6103
|
+
notificationCount: number | null;
|
6104
|
+
roles: {
|
4957
6105
|
id: string;
|
4958
|
-
|
6106
|
+
description: string | null;
|
4959
6107
|
createdAt: Date;
|
4960
6108
|
updatedAt: Date;
|
4961
6109
|
deletedAt: Date | null;
|
4962
|
-
|
6110
|
+
systemName: string;
|
6111
|
+
displayName: string;
|
6112
|
+
permissions: {
|
4963
6113
|
id: string;
|
4964
|
-
|
6114
|
+
description: string | null;
|
4965
6115
|
createdAt: Date;
|
4966
6116
|
updatedAt: Date;
|
4967
6117
|
deletedAt: Date | null;
|
6118
|
+
systemName: string;
|
6119
|
+
displayName: string;
|
4968
6120
|
}[];
|
4969
|
-
|
4970
|
-
|
4971
|
-
|
4972
|
-
|
6121
|
+
}[];
|
6122
|
+
extension: {
|
6123
|
+
id: string;
|
6124
|
+
createdAt: Date;
|
6125
|
+
updatedAt: Date;
|
6126
|
+
deletedAt: Date | null;
|
6127
|
+
userId: string | null;
|
6128
|
+
sipServerUrl: string;
|
6129
|
+
sipUserName: string;
|
6130
|
+
webphoneLoginUser: string;
|
6131
|
+
extensionId: string | null;
|
6132
|
+
extensionName: string;
|
6133
|
+
telephonySignature: string | null;
|
6134
|
+
};
|
4973
6135
|
};
|
4974
|
-
|
4975
|
-
|
4976
|
-
id: string;
|
4977
|
-
createdAt: Date;
|
4978
|
-
updatedAt: Date;
|
4979
|
-
deletedAt: Date | null;
|
4980
|
-
fileName: string;
|
4981
|
-
fileKey: string;
|
4982
|
-
bucketName: string;
|
4983
|
-
fileSize: number;
|
4984
|
-
fileUrl: string | null;
|
4985
|
-
status?: string | undefined;
|
6136
|
+
metadata?: any;
|
6137
|
+
template?: any;
|
4986
6138
|
};
|
4987
6139
|
sender: {
|
4988
6140
|
id: string;
|
@@ -5084,6 +6236,18 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5084
6236
|
};
|
5085
6237
|
};
|
5086
6238
|
platformId: string;
|
6239
|
+
upload: {
|
6240
|
+
id: string;
|
6241
|
+
createdAt: Date;
|
6242
|
+
updatedAt: Date;
|
6243
|
+
deletedAt: Date | null;
|
6244
|
+
fileName: string;
|
6245
|
+
fileKey: string;
|
6246
|
+
bucketName: string;
|
6247
|
+
fileSize: number;
|
6248
|
+
fileUrl: string | null;
|
6249
|
+
status?: string | undefined;
|
6250
|
+
};
|
5087
6251
|
assignee: {
|
5088
6252
|
id: string;
|
5089
6253
|
address: string | null;
|
@@ -5128,16 +6292,10 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5128
6292
|
telephonySignature: string | null;
|
5129
6293
|
};
|
5130
6294
|
};
|
5131
|
-
readAt: Date;
|
5132
|
-
platformMessageId: string;
|
5133
|
-
replyPlatformMessageId: string;
|
5134
|
-
locale: "" | "th" | "mm" | "en";
|
5135
|
-
previewUrl: string;
|
5136
|
-
imageSetId: string;
|
5137
6295
|
room: {
|
5138
6296
|
id: string;
|
5139
6297
|
channel: {
|
5140
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
6298
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5141
6299
|
id: string;
|
5142
6300
|
name: string;
|
5143
6301
|
metadata: {
|
@@ -5249,15 +6407,15 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5249
6407
|
telephonySignature: string | null;
|
5250
6408
|
};
|
5251
6409
|
};
|
6410
|
+
firstResponseTime: number;
|
5252
6411
|
lastMessage: string;
|
5253
6412
|
handleTime: number;
|
5254
6413
|
closeAt: Date;
|
5255
6414
|
unreadCount: number;
|
5256
6415
|
firstResponseAt: Date;
|
5257
|
-
firstResponseTime: number;
|
5258
6416
|
isLatest: boolean;
|
5259
6417
|
platformContact: {
|
5260
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
6418
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5261
6419
|
id: string;
|
5262
6420
|
metadata: {
|
5263
6421
|
id: string;
|
@@ -5412,52 +6570,209 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5412
6570
|
telephonySignature: string | null;
|
5413
6571
|
};
|
5414
6572
|
};
|
5415
|
-
cxlog: {
|
6573
|
+
cxlog: {
|
6574
|
+
id: string;
|
6575
|
+
channel: string | null;
|
6576
|
+
direction: string | null;
|
6577
|
+
createdAt: Date;
|
6578
|
+
updatedAt: Date;
|
6579
|
+
deletedAt: Date | null;
|
6580
|
+
entityId: string;
|
6581
|
+
queueId: string | null;
|
6582
|
+
contactId: string | null;
|
6583
|
+
caseId: number;
|
6584
|
+
entityName: string;
|
6585
|
+
agentId: string | null;
|
6586
|
+
startedDate: Date | null;
|
6587
|
+
handledTime: number | null;
|
6588
|
+
firstResponseTime: number | null;
|
6589
|
+
wrapUpForm: {
|
6590
|
+
id: string;
|
6591
|
+
disposition: string | null;
|
6592
|
+
createdAt: Date;
|
6593
|
+
updatedAt: Date;
|
6594
|
+
deletedAt: Date | null;
|
6595
|
+
tags: {
|
6596
|
+
id: string;
|
6597
|
+
name: string;
|
6598
|
+
createdAt: Date;
|
6599
|
+
updatedAt: Date;
|
6600
|
+
deletedAt: Date | null;
|
6601
|
+
}[];
|
6602
|
+
callFrom: string | null;
|
6603
|
+
callTo: string | null;
|
6604
|
+
note: string | null;
|
6605
|
+
} | null;
|
6606
|
+
};
|
6607
|
+
};
|
6608
|
+
readAt: Date;
|
6609
|
+
platformMessageId: string;
|
6610
|
+
replyPlatformMessageId: string;
|
6611
|
+
locale: "" | "th" | "mm" | "en";
|
6612
|
+
previewUrl: string;
|
6613
|
+
imageSetId: string;
|
6614
|
+
repliedMessage: {
|
6615
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
6616
|
+
message: string;
|
6617
|
+
id: string;
|
6618
|
+
url: string;
|
6619
|
+
direction: "incoming" | "outgoing" | "system";
|
6620
|
+
createdAt: Date;
|
6621
|
+
updatedAt: Date;
|
6622
|
+
deletedAt: Date | null;
|
6623
|
+
actor: {
|
6624
|
+
id: string;
|
6625
|
+
address: string | null;
|
6626
|
+
name: string;
|
6627
|
+
email: string;
|
6628
|
+
createdAt: Date;
|
6629
|
+
updatedAt: Date;
|
6630
|
+
deletedAt: Date | null;
|
6631
|
+
emailVerifiedAt: Date | null;
|
6632
|
+
password: string;
|
6633
|
+
phone: string | null;
|
6634
|
+
notificationCount: number | null;
|
6635
|
+
roles: {
|
6636
|
+
id: string;
|
6637
|
+
description: string | null;
|
6638
|
+
createdAt: Date;
|
6639
|
+
updatedAt: Date;
|
6640
|
+
deletedAt: Date | null;
|
6641
|
+
systemName: string;
|
6642
|
+
displayName: string;
|
6643
|
+
permissions: {
|
6644
|
+
id: string;
|
6645
|
+
description: string | null;
|
6646
|
+
createdAt: Date;
|
6647
|
+
updatedAt: Date;
|
6648
|
+
deletedAt: Date | null;
|
6649
|
+
systemName: string;
|
6650
|
+
displayName: string;
|
6651
|
+
}[];
|
6652
|
+
}[];
|
6653
|
+
extension: {
|
6654
|
+
id: string;
|
6655
|
+
createdAt: Date;
|
6656
|
+
updatedAt: Date;
|
6657
|
+
deletedAt: Date | null;
|
6658
|
+
userId: string | null;
|
6659
|
+
sipServerUrl: string;
|
6660
|
+
sipUserName: string;
|
6661
|
+
webphoneLoginUser: string;
|
6662
|
+
extensionId: string | null;
|
6663
|
+
extensionName: string;
|
6664
|
+
telephonySignature: string | null;
|
6665
|
+
};
|
6666
|
+
};
|
6667
|
+
platformId: string;
|
6668
|
+
upload: {
|
6669
|
+
id: string;
|
6670
|
+
createdAt: Date;
|
6671
|
+
updatedAt: Date;
|
6672
|
+
deletedAt: Date | null;
|
6673
|
+
fileName: string;
|
6674
|
+
fileKey: string;
|
6675
|
+
bucketName: string;
|
6676
|
+
fileSize: number;
|
6677
|
+
fileUrl: string | null;
|
6678
|
+
status?: string | undefined;
|
6679
|
+
};
|
6680
|
+
assignee: {
|
6681
|
+
id: string;
|
6682
|
+
address: string | null;
|
6683
|
+
name: string;
|
6684
|
+
email: string;
|
6685
|
+
createdAt: Date;
|
6686
|
+
updatedAt: Date;
|
6687
|
+
deletedAt: Date | null;
|
6688
|
+
emailVerifiedAt: Date | null;
|
6689
|
+
password: string;
|
6690
|
+
phone: string | null;
|
6691
|
+
notificationCount: number | null;
|
6692
|
+
roles: {
|
6693
|
+
id: string;
|
6694
|
+
description: string | null;
|
6695
|
+
createdAt: Date;
|
6696
|
+
updatedAt: Date;
|
6697
|
+
deletedAt: Date | null;
|
6698
|
+
systemName: string;
|
6699
|
+
displayName: string;
|
6700
|
+
permissions: {
|
6701
|
+
id: string;
|
6702
|
+
description: string | null;
|
6703
|
+
createdAt: Date;
|
6704
|
+
updatedAt: Date;
|
6705
|
+
deletedAt: Date | null;
|
6706
|
+
systemName: string;
|
6707
|
+
displayName: string;
|
6708
|
+
}[];
|
6709
|
+
}[];
|
6710
|
+
extension: {
|
6711
|
+
id: string;
|
6712
|
+
createdAt: Date;
|
6713
|
+
updatedAt: Date;
|
6714
|
+
deletedAt: Date | null;
|
6715
|
+
userId: string | null;
|
6716
|
+
sipServerUrl: string;
|
6717
|
+
sipUserName: string;
|
6718
|
+
webphoneLoginUser: string;
|
6719
|
+
extensionId: string | null;
|
6720
|
+
extensionName: string;
|
6721
|
+
telephonySignature: string | null;
|
6722
|
+
};
|
6723
|
+
};
|
6724
|
+
readAt: Date;
|
6725
|
+
platformMessageId: string;
|
6726
|
+
replyPlatformMessageId: string;
|
6727
|
+
locale: "" | "th" | "mm" | "en";
|
6728
|
+
previewUrl: string;
|
6729
|
+
imageSetId: string;
|
6730
|
+
sender: {
|
5416
6731
|
id: string;
|
5417
|
-
|
5418
|
-
|
6732
|
+
address: string | null;
|
6733
|
+
name: string;
|
6734
|
+
email: string;
|
5419
6735
|
createdAt: Date;
|
5420
6736
|
updatedAt: Date;
|
5421
6737
|
deletedAt: Date | null;
|
5422
|
-
|
5423
|
-
|
5424
|
-
|
5425
|
-
|
5426
|
-
|
5427
|
-
queueId: string | null;
|
5428
|
-
agentId: string | null;
|
5429
|
-
startedDate: Date | null;
|
5430
|
-
handledTime: number | null;
|
5431
|
-
wrapUpForm: {
|
6738
|
+
emailVerifiedAt: Date | null;
|
6739
|
+
password: string;
|
6740
|
+
phone: string | null;
|
6741
|
+
notificationCount: number | null;
|
6742
|
+
roles: {
|
5432
6743
|
id: string;
|
5433
|
-
|
6744
|
+
description: string | null;
|
5434
6745
|
createdAt: Date;
|
5435
6746
|
updatedAt: Date;
|
5436
6747
|
deletedAt: Date | null;
|
5437
|
-
|
6748
|
+
systemName: string;
|
6749
|
+
displayName: string;
|
6750
|
+
permissions: {
|
5438
6751
|
id: string;
|
5439
|
-
|
6752
|
+
description: string | null;
|
5440
6753
|
createdAt: Date;
|
5441
6754
|
updatedAt: Date;
|
5442
6755
|
deletedAt: Date | null;
|
6756
|
+
systemName: string;
|
6757
|
+
displayName: string;
|
5443
6758
|
}[];
|
5444
|
-
|
5445
|
-
|
5446
|
-
|
5447
|
-
|
6759
|
+
}[];
|
6760
|
+
extension: {
|
6761
|
+
id: string;
|
6762
|
+
createdAt: Date;
|
6763
|
+
updatedAt: Date;
|
6764
|
+
deletedAt: Date | null;
|
6765
|
+
userId: string | null;
|
6766
|
+
sipServerUrl: string;
|
6767
|
+
sipUserName: string;
|
6768
|
+
webphoneLoginUser: string;
|
6769
|
+
extensionId: string | null;
|
6770
|
+
extensionName: string;
|
6771
|
+
telephonySignature: string | null;
|
6772
|
+
};
|
5448
6773
|
};
|
5449
|
-
|
5450
|
-
|
5451
|
-
id: string;
|
5452
|
-
createdAt: Date;
|
5453
|
-
updatedAt: Date;
|
5454
|
-
deletedAt: Date | null;
|
5455
|
-
fileName: string;
|
5456
|
-
fileKey: string;
|
5457
|
-
bucketName: string;
|
5458
|
-
fileSize: number;
|
5459
|
-
fileUrl: string | null;
|
5460
|
-
status?: string | undefined;
|
6774
|
+
metadata?: any;
|
6775
|
+
template?: any;
|
5461
6776
|
};
|
5462
6777
|
sender: {
|
5463
6778
|
id: string;
|
@@ -5561,6 +6876,18 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5561
6876
|
};
|
5562
6877
|
};
|
5563
6878
|
platformId: string;
|
6879
|
+
upload: {
|
6880
|
+
id: string;
|
6881
|
+
createdAt: Date;
|
6882
|
+
updatedAt: Date;
|
6883
|
+
deletedAt: Date | null;
|
6884
|
+
fileName: string;
|
6885
|
+
fileKey: string;
|
6886
|
+
bucketName: string;
|
6887
|
+
fileSize: number;
|
6888
|
+
fileUrl: string | null;
|
6889
|
+
status?: string | undefined;
|
6890
|
+
};
|
5564
6891
|
assignee: {
|
5565
6892
|
id: string;
|
5566
6893
|
address: string | null;
|
@@ -5605,16 +6932,10 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5605
6932
|
telephonySignature: string | null;
|
5606
6933
|
};
|
5607
6934
|
};
|
5608
|
-
readAt: Date;
|
5609
|
-
platformMessageId: string;
|
5610
|
-
replyPlatformMessageId: string;
|
5611
|
-
locale: "" | "th" | "mm" | "en";
|
5612
|
-
previewUrl: string;
|
5613
|
-
imageSetId: string;
|
5614
6935
|
room: {
|
5615
6936
|
id: string;
|
5616
6937
|
channel: {
|
5617
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
6938
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5618
6939
|
id: string;
|
5619
6940
|
name: string;
|
5620
6941
|
metadata: {
|
@@ -5726,15 +7047,15 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5726
7047
|
telephonySignature: string | null;
|
5727
7048
|
};
|
5728
7049
|
};
|
7050
|
+
firstResponseTime: number;
|
5729
7051
|
lastMessage: string;
|
5730
7052
|
handleTime: number;
|
5731
7053
|
closeAt: Date;
|
5732
7054
|
unreadCount: number;
|
5733
7055
|
firstResponseAt: Date;
|
5734
|
-
firstResponseTime: number;
|
5735
7056
|
isLatest: boolean;
|
5736
7057
|
platformContact: {
|
5737
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7058
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5738
7059
|
id: string;
|
5739
7060
|
metadata: {
|
5740
7061
|
id: string;
|
@@ -5897,14 +7218,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5897
7218
|
updatedAt: Date;
|
5898
7219
|
deletedAt: Date | null;
|
5899
7220
|
entityId: string;
|
5900
|
-
|
7221
|
+
queueId: string | null;
|
7222
|
+
contactId: string | null;
|
5901
7223
|
caseId: number;
|
5902
7224
|
entityName: string;
|
5903
|
-
contactId: string | null;
|
5904
|
-
queueId: string | null;
|
5905
7225
|
agentId: string | null;
|
5906
7226
|
startedDate: Date | null;
|
5907
7227
|
handledTime: number | null;
|
7228
|
+
firstResponseTime: number | null;
|
5908
7229
|
wrapUpForm: {
|
5909
7230
|
id: string;
|
5910
7231
|
disposition: string | null;
|
@@ -5918,23 +7239,180 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
5918
7239
|
updatedAt: Date;
|
5919
7240
|
deletedAt: Date | null;
|
5920
7241
|
}[];
|
5921
|
-
note: string | null;
|
5922
7242
|
callFrom: string | null;
|
5923
7243
|
callTo: string | null;
|
7244
|
+
note: string | null;
|
5924
7245
|
} | null;
|
5925
7246
|
};
|
5926
7247
|
};
|
5927
|
-
|
7248
|
+
readAt: Date;
|
7249
|
+
platformMessageId: string;
|
7250
|
+
replyPlatformMessageId: string;
|
7251
|
+
locale: "" | "th" | "mm" | "en";
|
7252
|
+
previewUrl: string;
|
7253
|
+
imageSetId: string;
|
7254
|
+
repliedMessage: {
|
7255
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
7256
|
+
message: string;
|
5928
7257
|
id: string;
|
7258
|
+
url: string;
|
7259
|
+
direction: "incoming" | "outgoing" | "system";
|
5929
7260
|
createdAt: Date;
|
5930
7261
|
updatedAt: Date;
|
5931
7262
|
deletedAt: Date | null;
|
5932
|
-
|
5933
|
-
|
5934
|
-
|
5935
|
-
|
5936
|
-
|
5937
|
-
|
7263
|
+
actor: {
|
7264
|
+
id: string;
|
7265
|
+
address: string | null;
|
7266
|
+
name: string;
|
7267
|
+
email: string;
|
7268
|
+
createdAt: Date;
|
7269
|
+
updatedAt: Date;
|
7270
|
+
deletedAt: Date | null;
|
7271
|
+
emailVerifiedAt: Date | null;
|
7272
|
+
password: string;
|
7273
|
+
phone: string | null;
|
7274
|
+
notificationCount: number | null;
|
7275
|
+
roles: {
|
7276
|
+
id: string;
|
7277
|
+
description: string | null;
|
7278
|
+
createdAt: Date;
|
7279
|
+
updatedAt: Date;
|
7280
|
+
deletedAt: Date | null;
|
7281
|
+
systemName: string;
|
7282
|
+
displayName: string;
|
7283
|
+
permissions: {
|
7284
|
+
id: string;
|
7285
|
+
description: string | null;
|
7286
|
+
createdAt: Date;
|
7287
|
+
updatedAt: Date;
|
7288
|
+
deletedAt: Date | null;
|
7289
|
+
systemName: string;
|
7290
|
+
displayName: string;
|
7291
|
+
}[];
|
7292
|
+
}[];
|
7293
|
+
extension: {
|
7294
|
+
id: string;
|
7295
|
+
createdAt: Date;
|
7296
|
+
updatedAt: Date;
|
7297
|
+
deletedAt: Date | null;
|
7298
|
+
userId: string | null;
|
7299
|
+
sipServerUrl: string;
|
7300
|
+
sipUserName: string;
|
7301
|
+
webphoneLoginUser: string;
|
7302
|
+
extensionId: string | null;
|
7303
|
+
extensionName: string;
|
7304
|
+
telephonySignature: string | null;
|
7305
|
+
};
|
7306
|
+
};
|
7307
|
+
platformId: string;
|
7308
|
+
upload: {
|
7309
|
+
id: string;
|
7310
|
+
createdAt: Date;
|
7311
|
+
updatedAt: Date;
|
7312
|
+
deletedAt: Date | null;
|
7313
|
+
fileName: string;
|
7314
|
+
fileKey: string;
|
7315
|
+
bucketName: string;
|
7316
|
+
fileSize: number;
|
7317
|
+
fileUrl: string | null;
|
7318
|
+
status?: string | undefined;
|
7319
|
+
};
|
7320
|
+
assignee: {
|
7321
|
+
id: string;
|
7322
|
+
address: string | null;
|
7323
|
+
name: string;
|
7324
|
+
email: string;
|
7325
|
+
createdAt: Date;
|
7326
|
+
updatedAt: Date;
|
7327
|
+
deletedAt: Date | null;
|
7328
|
+
emailVerifiedAt: Date | null;
|
7329
|
+
password: string;
|
7330
|
+
phone: string | null;
|
7331
|
+
notificationCount: number | null;
|
7332
|
+
roles: {
|
7333
|
+
id: string;
|
7334
|
+
description: string | null;
|
7335
|
+
createdAt: Date;
|
7336
|
+
updatedAt: Date;
|
7337
|
+
deletedAt: Date | null;
|
7338
|
+
systemName: string;
|
7339
|
+
displayName: string;
|
7340
|
+
permissions: {
|
7341
|
+
id: string;
|
7342
|
+
description: string | null;
|
7343
|
+
createdAt: Date;
|
7344
|
+
updatedAt: Date;
|
7345
|
+
deletedAt: Date | null;
|
7346
|
+
systemName: string;
|
7347
|
+
displayName: string;
|
7348
|
+
}[];
|
7349
|
+
}[];
|
7350
|
+
extension: {
|
7351
|
+
id: string;
|
7352
|
+
createdAt: Date;
|
7353
|
+
updatedAt: Date;
|
7354
|
+
deletedAt: Date | null;
|
7355
|
+
userId: string | null;
|
7356
|
+
sipServerUrl: string;
|
7357
|
+
sipUserName: string;
|
7358
|
+
webphoneLoginUser: string;
|
7359
|
+
extensionId: string | null;
|
7360
|
+
extensionName: string;
|
7361
|
+
telephonySignature: string | null;
|
7362
|
+
};
|
7363
|
+
};
|
7364
|
+
readAt: Date;
|
7365
|
+
platformMessageId: string;
|
7366
|
+
replyPlatformMessageId: string;
|
7367
|
+
locale: "" | "th" | "mm" | "en";
|
7368
|
+
previewUrl: string;
|
7369
|
+
imageSetId: string;
|
7370
|
+
sender: {
|
7371
|
+
id: string;
|
7372
|
+
address: string | null;
|
7373
|
+
name: string;
|
7374
|
+
email: string;
|
7375
|
+
createdAt: Date;
|
7376
|
+
updatedAt: Date;
|
7377
|
+
deletedAt: Date | null;
|
7378
|
+
emailVerifiedAt: Date | null;
|
7379
|
+
password: string;
|
7380
|
+
phone: string | null;
|
7381
|
+
notificationCount: number | null;
|
7382
|
+
roles: {
|
7383
|
+
id: string;
|
7384
|
+
description: string | null;
|
7385
|
+
createdAt: Date;
|
7386
|
+
updatedAt: Date;
|
7387
|
+
deletedAt: Date | null;
|
7388
|
+
systemName: string;
|
7389
|
+
displayName: string;
|
7390
|
+
permissions: {
|
7391
|
+
id: string;
|
7392
|
+
description: string | null;
|
7393
|
+
createdAt: Date;
|
7394
|
+
updatedAt: Date;
|
7395
|
+
deletedAt: Date | null;
|
7396
|
+
systemName: string;
|
7397
|
+
displayName: string;
|
7398
|
+
}[];
|
7399
|
+
}[];
|
7400
|
+
extension: {
|
7401
|
+
id: string;
|
7402
|
+
createdAt: Date;
|
7403
|
+
updatedAt: Date;
|
7404
|
+
deletedAt: Date | null;
|
7405
|
+
userId: string | null;
|
7406
|
+
sipServerUrl: string;
|
7407
|
+
sipUserName: string;
|
7408
|
+
webphoneLoginUser: string;
|
7409
|
+
extensionId: string | null;
|
7410
|
+
extensionName: string;
|
7411
|
+
telephonySignature: string | null;
|
7412
|
+
};
|
7413
|
+
};
|
7414
|
+
metadata?: any;
|
7415
|
+
template?: any;
|
5938
7416
|
};
|
5939
7417
|
sender: {
|
5940
7418
|
id: string;
|
@@ -6038,7 +7516,19 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
6038
7516
|
telephonySignature: string | null;
|
6039
7517
|
};
|
6040
7518
|
};
|
6041
|
-
platformId: string;
|
7519
|
+
platformId: string;
|
7520
|
+
upload: {
|
7521
|
+
id: string;
|
7522
|
+
createdAt: Date;
|
7523
|
+
updatedAt: Date;
|
7524
|
+
deletedAt: Date | null;
|
7525
|
+
fileName: string;
|
7526
|
+
fileKey: string;
|
7527
|
+
bucketName: string;
|
7528
|
+
fileSize: number;
|
7529
|
+
fileUrl: string | null;
|
7530
|
+
status?: string | undefined;
|
7531
|
+
};
|
6042
7532
|
assignee: {
|
6043
7533
|
id: string;
|
6044
7534
|
address: string | null;
|
@@ -6083,16 +7573,10 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
6083
7573
|
telephonySignature: string | null;
|
6084
7574
|
};
|
6085
7575
|
};
|
6086
|
-
readAt: Date;
|
6087
|
-
platformMessageId: string;
|
6088
|
-
replyPlatformMessageId: string;
|
6089
|
-
locale: "" | "th" | "mm" | "en";
|
6090
|
-
previewUrl: string;
|
6091
|
-
imageSetId: string;
|
6092
7576
|
room: {
|
6093
7577
|
id: string;
|
6094
7578
|
channel: {
|
6095
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7579
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6096
7580
|
id: string;
|
6097
7581
|
name: string;
|
6098
7582
|
metadata: {
|
@@ -6204,15 +7688,15 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
6204
7688
|
telephonySignature: string | null;
|
6205
7689
|
};
|
6206
7690
|
};
|
7691
|
+
firstResponseTime: number;
|
6207
7692
|
lastMessage: string;
|
6208
7693
|
handleTime: number;
|
6209
7694
|
closeAt: Date;
|
6210
7695
|
unreadCount: number;
|
6211
7696
|
firstResponseAt: Date;
|
6212
|
-
firstResponseTime: number;
|
6213
7697
|
isLatest: boolean;
|
6214
7698
|
platformContact: {
|
6215
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7699
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6216
7700
|
id: string;
|
6217
7701
|
metadata: {
|
6218
7702
|
id: string;
|
@@ -6375,14 +7859,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
6375
7859
|
updatedAt: Date;
|
6376
7860
|
deletedAt: Date | null;
|
6377
7861
|
entityId: string;
|
6378
|
-
|
7862
|
+
queueId: string | null;
|
7863
|
+
contactId: string | null;
|
6379
7864
|
caseId: number;
|
6380
7865
|
entityName: string;
|
6381
|
-
contactId: string | null;
|
6382
|
-
queueId: string | null;
|
6383
7866
|
agentId: string | null;
|
6384
7867
|
startedDate: Date | null;
|
6385
7868
|
handledTime: number | null;
|
7869
|
+
firstResponseTime: number | null;
|
6386
7870
|
wrapUpForm: {
|
6387
7871
|
id: string;
|
6388
7872
|
disposition: string | null;
|
@@ -6396,23 +7880,180 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
6396
7880
|
updatedAt: Date;
|
6397
7881
|
deletedAt: Date | null;
|
6398
7882
|
}[];
|
6399
|
-
note: string | null;
|
6400
7883
|
callFrom: string | null;
|
6401
7884
|
callTo: string | null;
|
7885
|
+
note: string | null;
|
6402
7886
|
} | null;
|
6403
7887
|
};
|
6404
7888
|
};
|
6405
|
-
|
7889
|
+
readAt: Date;
|
7890
|
+
platformMessageId: string;
|
7891
|
+
replyPlatformMessageId: string;
|
7892
|
+
locale: "" | "th" | "mm" | "en";
|
7893
|
+
previewUrl: string;
|
7894
|
+
imageSetId: string;
|
7895
|
+
repliedMessage: {
|
7896
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
7897
|
+
message: string;
|
6406
7898
|
id: string;
|
7899
|
+
url: string;
|
7900
|
+
direction: "incoming" | "outgoing" | "system";
|
6407
7901
|
createdAt: Date;
|
6408
7902
|
updatedAt: Date;
|
6409
7903
|
deletedAt: Date | null;
|
6410
|
-
|
6411
|
-
|
6412
|
-
|
6413
|
-
|
6414
|
-
|
6415
|
-
|
7904
|
+
actor: {
|
7905
|
+
id: string;
|
7906
|
+
address: string | null;
|
7907
|
+
name: string;
|
7908
|
+
email: string;
|
7909
|
+
createdAt: Date;
|
7910
|
+
updatedAt: Date;
|
7911
|
+
deletedAt: Date | null;
|
7912
|
+
emailVerifiedAt: Date | null;
|
7913
|
+
password: string;
|
7914
|
+
phone: string | null;
|
7915
|
+
notificationCount: number | null;
|
7916
|
+
roles: {
|
7917
|
+
id: string;
|
7918
|
+
description: string | null;
|
7919
|
+
createdAt: Date;
|
7920
|
+
updatedAt: Date;
|
7921
|
+
deletedAt: Date | null;
|
7922
|
+
systemName: string;
|
7923
|
+
displayName: string;
|
7924
|
+
permissions: {
|
7925
|
+
id: string;
|
7926
|
+
description: string | null;
|
7927
|
+
createdAt: Date;
|
7928
|
+
updatedAt: Date;
|
7929
|
+
deletedAt: Date | null;
|
7930
|
+
systemName: string;
|
7931
|
+
displayName: string;
|
7932
|
+
}[];
|
7933
|
+
}[];
|
7934
|
+
extension: {
|
7935
|
+
id: string;
|
7936
|
+
createdAt: Date;
|
7937
|
+
updatedAt: Date;
|
7938
|
+
deletedAt: Date | null;
|
7939
|
+
userId: string | null;
|
7940
|
+
sipServerUrl: string;
|
7941
|
+
sipUserName: string;
|
7942
|
+
webphoneLoginUser: string;
|
7943
|
+
extensionId: string | null;
|
7944
|
+
extensionName: string;
|
7945
|
+
telephonySignature: string | null;
|
7946
|
+
};
|
7947
|
+
};
|
7948
|
+
platformId: string;
|
7949
|
+
upload: {
|
7950
|
+
id: string;
|
7951
|
+
createdAt: Date;
|
7952
|
+
updatedAt: Date;
|
7953
|
+
deletedAt: Date | null;
|
7954
|
+
fileName: string;
|
7955
|
+
fileKey: string;
|
7956
|
+
bucketName: string;
|
7957
|
+
fileSize: number;
|
7958
|
+
fileUrl: string | null;
|
7959
|
+
status?: string | undefined;
|
7960
|
+
};
|
7961
|
+
assignee: {
|
7962
|
+
id: string;
|
7963
|
+
address: string | null;
|
7964
|
+
name: string;
|
7965
|
+
email: string;
|
7966
|
+
createdAt: Date;
|
7967
|
+
updatedAt: Date;
|
7968
|
+
deletedAt: Date | null;
|
7969
|
+
emailVerifiedAt: Date | null;
|
7970
|
+
password: string;
|
7971
|
+
phone: string | null;
|
7972
|
+
notificationCount: number | null;
|
7973
|
+
roles: {
|
7974
|
+
id: string;
|
7975
|
+
description: string | null;
|
7976
|
+
createdAt: Date;
|
7977
|
+
updatedAt: Date;
|
7978
|
+
deletedAt: Date | null;
|
7979
|
+
systemName: string;
|
7980
|
+
displayName: string;
|
7981
|
+
permissions: {
|
7982
|
+
id: string;
|
7983
|
+
description: string | null;
|
7984
|
+
createdAt: Date;
|
7985
|
+
updatedAt: Date;
|
7986
|
+
deletedAt: Date | null;
|
7987
|
+
systemName: string;
|
7988
|
+
displayName: string;
|
7989
|
+
}[];
|
7990
|
+
}[];
|
7991
|
+
extension: {
|
7992
|
+
id: string;
|
7993
|
+
createdAt: Date;
|
7994
|
+
updatedAt: Date;
|
7995
|
+
deletedAt: Date | null;
|
7996
|
+
userId: string | null;
|
7997
|
+
sipServerUrl: string;
|
7998
|
+
sipUserName: string;
|
7999
|
+
webphoneLoginUser: string;
|
8000
|
+
extensionId: string | null;
|
8001
|
+
extensionName: string;
|
8002
|
+
telephonySignature: string | null;
|
8003
|
+
};
|
8004
|
+
};
|
8005
|
+
readAt: Date;
|
8006
|
+
platformMessageId: string;
|
8007
|
+
replyPlatformMessageId: string;
|
8008
|
+
locale: "" | "th" | "mm" | "en";
|
8009
|
+
previewUrl: string;
|
8010
|
+
imageSetId: string;
|
8011
|
+
sender: {
|
8012
|
+
id: string;
|
8013
|
+
address: string | null;
|
8014
|
+
name: string;
|
8015
|
+
email: string;
|
8016
|
+
createdAt: Date;
|
8017
|
+
updatedAt: Date;
|
8018
|
+
deletedAt: Date | null;
|
8019
|
+
emailVerifiedAt: Date | null;
|
8020
|
+
password: string;
|
8021
|
+
phone: string | null;
|
8022
|
+
notificationCount: number | null;
|
8023
|
+
roles: {
|
8024
|
+
id: string;
|
8025
|
+
description: string | null;
|
8026
|
+
createdAt: Date;
|
8027
|
+
updatedAt: Date;
|
8028
|
+
deletedAt: Date | null;
|
8029
|
+
systemName: string;
|
8030
|
+
displayName: string;
|
8031
|
+
permissions: {
|
8032
|
+
id: string;
|
8033
|
+
description: string | null;
|
8034
|
+
createdAt: Date;
|
8035
|
+
updatedAt: Date;
|
8036
|
+
deletedAt: Date | null;
|
8037
|
+
systemName: string;
|
8038
|
+
displayName: string;
|
8039
|
+
}[];
|
8040
|
+
}[];
|
8041
|
+
extension: {
|
8042
|
+
id: string;
|
8043
|
+
createdAt: Date;
|
8044
|
+
updatedAt: Date;
|
8045
|
+
deletedAt: Date | null;
|
8046
|
+
userId: string | null;
|
8047
|
+
sipServerUrl: string;
|
8048
|
+
sipUserName: string;
|
8049
|
+
webphoneLoginUser: string;
|
8050
|
+
extensionId: string | null;
|
8051
|
+
extensionName: string;
|
8052
|
+
telephonySignature: string | null;
|
8053
|
+
};
|
8054
|
+
};
|
8055
|
+
metadata?: any;
|
8056
|
+
template?: any;
|
6416
8057
|
};
|
6417
8058
|
sender: {
|
6418
8059
|
id: string;
|
@@ -6467,7 +8108,7 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
|
|
6467
8108
|
requestId: z.ZodString;
|
6468
8109
|
data: z.ZodObject<{
|
6469
8110
|
name: z.ZodString;
|
6470
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
8111
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
6471
8112
|
metadata: z.ZodObject<{
|
6472
8113
|
id: z.ZodString;
|
6473
8114
|
name: z.ZodString;
|
@@ -6512,7 +8153,7 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
|
|
6512
8153
|
phone: string | null;
|
6513
8154
|
}>>;
|
6514
8155
|
}, "strip", z.ZodTypeAny, {
|
6515
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
8156
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6516
8157
|
name: string;
|
6517
8158
|
metadata: {
|
6518
8159
|
id: string;
|
@@ -6534,7 +8175,7 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
|
|
6534
8175
|
phone: string | null;
|
6535
8176
|
} | undefined;
|
6536
8177
|
}, {
|
6537
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
8178
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6538
8179
|
name: string;
|
6539
8180
|
metadata: {
|
6540
8181
|
id: string;
|
@@ -6558,7 +8199,7 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
|
|
6558
8199
|
}>;
|
6559
8200
|
}, "strip", z.ZodTypeAny, {
|
6560
8201
|
data: {
|
6561
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
8202
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6562
8203
|
name: string;
|
6563
8204
|
metadata: {
|
6564
8205
|
id: string;
|
@@ -6583,7 +8224,7 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
|
|
6583
8224
|
requestId: string;
|
6584
8225
|
}, {
|
6585
8226
|
data: {
|
6586
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
8227
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6587
8228
|
name: string;
|
6588
8229
|
metadata: {
|
6589
8230
|
id: string;
|
@@ -6645,7 +8286,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
6645
8286
|
deletedAt: z.ZodNullable<z.ZodString>;
|
6646
8287
|
channelId: z.ZodString;
|
6647
8288
|
socialPlatformId: z.ZodString;
|
6648
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
8289
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
6649
8290
|
metadata: z.ZodObject<{
|
6650
8291
|
id: z.ZodString;
|
6651
8292
|
name: z.ZodString;
|
@@ -7350,7 +8991,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7350
8991
|
}[] | undefined;
|
7351
8992
|
}>;
|
7352
8993
|
}, "strip", z.ZodTypeAny, {
|
7353
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
8994
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
7354
8995
|
id: string;
|
7355
8996
|
metadata: {
|
7356
8997
|
id: string;
|
@@ -7461,7 +9102,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7461
9102
|
channelId: string;
|
7462
9103
|
socialPlatformId: string;
|
7463
9104
|
}, {
|
7464
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
9105
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
7465
9106
|
id: string;
|
7466
9107
|
metadata: {
|
7467
9108
|
id: string;
|
@@ -7982,7 +9623,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7982
9623
|
}>>>;
|
7983
9624
|
channel: z.ZodOptional<z.ZodObject<{
|
7984
9625
|
name: z.ZodString;
|
7985
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
9626
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
7986
9627
|
metadata: z.ZodObject<{
|
7987
9628
|
id: z.ZodString;
|
7988
9629
|
name: z.ZodString;
|
@@ -8027,7 +9668,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8027
9668
|
phone: string | null;
|
8028
9669
|
}>>;
|
8029
9670
|
}, "strip", z.ZodTypeAny, {
|
8030
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
9671
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
8031
9672
|
name: string;
|
8032
9673
|
metadata: {
|
8033
9674
|
id: string;
|
@@ -8049,7 +9690,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8049
9690
|
phone: string | null;
|
8050
9691
|
} | undefined;
|
8051
9692
|
}, {
|
8052
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
9693
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
8053
9694
|
name: string;
|
8054
9695
|
metadata: {
|
8055
9696
|
id: string;
|
@@ -8128,9 +9769,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8128
9769
|
updatedAt: Date;
|
8129
9770
|
deletedAt: Date | null;
|
8130
9771
|
}[];
|
8131
|
-
note: string | null;
|
8132
9772
|
callFrom: string | null;
|
8133
9773
|
callTo: string | null;
|
9774
|
+
note: string | null;
|
8134
9775
|
}, {
|
8135
9776
|
id: string;
|
8136
9777
|
disposition: string | null;
|
@@ -8144,9 +9785,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8144
9785
|
updatedAt: Date;
|
8145
9786
|
deletedAt: Date | null;
|
8146
9787
|
}[];
|
8147
|
-
note: string | null;
|
8148
9788
|
callFrom: string | null;
|
8149
9789
|
callTo: string | null;
|
9790
|
+
note: string | null;
|
8150
9791
|
}>>;
|
8151
9792
|
}, "strip", z.ZodTypeAny, {
|
8152
9793
|
id: string;
|
@@ -8156,14 +9797,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8156
9797
|
updatedAt: Date;
|
8157
9798
|
deletedAt: Date | null;
|
8158
9799
|
entityId: string;
|
8159
|
-
|
9800
|
+
queueId: string | null;
|
9801
|
+
contactId: string | null;
|
8160
9802
|
caseId: number;
|
8161
9803
|
entityName: string;
|
8162
|
-
contactId: string | null;
|
8163
|
-
queueId: string | null;
|
8164
9804
|
agentId: string | null;
|
8165
9805
|
startedDate: Date | null;
|
8166
9806
|
handledTime: number | null;
|
9807
|
+
firstResponseTime: number | null;
|
8167
9808
|
wrapUpForm: {
|
8168
9809
|
id: string;
|
8169
9810
|
disposition: string | null;
|
@@ -8177,9 +9818,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8177
9818
|
updatedAt: Date;
|
8178
9819
|
deletedAt: Date | null;
|
8179
9820
|
}[];
|
8180
|
-
note: string | null;
|
8181
9821
|
callFrom: string | null;
|
8182
9822
|
callTo: string | null;
|
9823
|
+
note: string | null;
|
8183
9824
|
} | null;
|
8184
9825
|
}, {
|
8185
9826
|
id: string;
|
@@ -8189,14 +9830,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8189
9830
|
updatedAt: Date;
|
8190
9831
|
deletedAt: Date | null;
|
8191
9832
|
entityId: string;
|
8192
|
-
|
9833
|
+
queueId: string | null;
|
9834
|
+
contactId: string | null;
|
8193
9835
|
caseId: number;
|
8194
9836
|
entityName: string;
|
8195
|
-
contactId: string | null;
|
8196
|
-
queueId: string | null;
|
8197
9837
|
agentId: string | null;
|
8198
9838
|
startedDate: Date | null;
|
8199
9839
|
handledTime: number | null;
|
9840
|
+
firstResponseTime: number | null;
|
8200
9841
|
wrapUpForm: {
|
8201
9842
|
id: string;
|
8202
9843
|
disposition: string | null;
|
@@ -8210,9 +9851,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8210
9851
|
updatedAt: Date;
|
8211
9852
|
deletedAt: Date | null;
|
8212
9853
|
}[];
|
8213
|
-
note: string | null;
|
8214
9854
|
callFrom: string | null;
|
8215
9855
|
callTo: string | null;
|
9856
|
+
note: string | null;
|
8216
9857
|
} | null;
|
8217
9858
|
}>>;
|
8218
9859
|
}, "strip", z.ZodTypeAny, {
|
@@ -8229,7 +9870,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8229
9870
|
isLatest?: boolean | undefined;
|
8230
9871
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
8231
9872
|
platformContact?: {
|
8232
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
9873
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
8233
9874
|
id: string;
|
8234
9875
|
metadata: {
|
8235
9876
|
id: string;
|
@@ -8429,7 +10070,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8429
10070
|
} | undefined;
|
8430
10071
|
} | null | undefined;
|
8431
10072
|
channel?: {
|
8432
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
10073
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
8433
10074
|
name: string;
|
8434
10075
|
metadata: {
|
8435
10076
|
id: string;
|
@@ -8459,14 +10100,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8459
10100
|
updatedAt: Date;
|
8460
10101
|
deletedAt: Date | null;
|
8461
10102
|
entityId: string;
|
8462
|
-
|
10103
|
+
queueId: string | null;
|
10104
|
+
contactId: string | null;
|
8463
10105
|
caseId: number;
|
8464
10106
|
entityName: string;
|
8465
|
-
contactId: string | null;
|
8466
|
-
queueId: string | null;
|
8467
10107
|
agentId: string | null;
|
8468
10108
|
startedDate: Date | null;
|
8469
10109
|
handledTime: number | null;
|
10110
|
+
firstResponseTime: number | null;
|
8470
10111
|
wrapUpForm: {
|
8471
10112
|
id: string;
|
8472
10113
|
disposition: string | null;
|
@@ -8480,9 +10121,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8480
10121
|
updatedAt: Date;
|
8481
10122
|
deletedAt: Date | null;
|
8482
10123
|
}[];
|
8483
|
-
note: string | null;
|
8484
10124
|
callFrom: string | null;
|
8485
10125
|
callTo: string | null;
|
10126
|
+
note: string | null;
|
8486
10127
|
} | null;
|
8487
10128
|
} | undefined;
|
8488
10129
|
}, {
|
@@ -8499,7 +10140,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8499
10140
|
isLatest?: boolean | undefined;
|
8500
10141
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
8501
10142
|
platformContact?: {
|
8502
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
10143
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
8503
10144
|
id: string;
|
8504
10145
|
metadata: {
|
8505
10146
|
id: string;
|
@@ -8699,7 +10340,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8699
10340
|
} | undefined;
|
8700
10341
|
} | null | undefined;
|
8701
10342
|
channel?: {
|
8702
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
10343
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
8703
10344
|
name: string;
|
8704
10345
|
metadata: {
|
8705
10346
|
id: string;
|
@@ -8729,14 +10370,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8729
10370
|
updatedAt: Date;
|
8730
10371
|
deletedAt: Date | null;
|
8731
10372
|
entityId: string;
|
8732
|
-
|
10373
|
+
queueId: string | null;
|
10374
|
+
contactId: string | null;
|
8733
10375
|
caseId: number;
|
8734
10376
|
entityName: string;
|
8735
|
-
contactId: string | null;
|
8736
|
-
queueId: string | null;
|
8737
10377
|
agentId: string | null;
|
8738
10378
|
startedDate: Date | null;
|
8739
10379
|
handledTime: number | null;
|
10380
|
+
firstResponseTime: number | null;
|
8740
10381
|
wrapUpForm: {
|
8741
10382
|
id: string;
|
8742
10383
|
disposition: string | null;
|
@@ -8750,9 +10391,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8750
10391
|
updatedAt: Date;
|
8751
10392
|
deletedAt: Date | null;
|
8752
10393
|
}[];
|
8753
|
-
note: string | null;
|
8754
10394
|
callFrom: string | null;
|
8755
10395
|
callTo: string | null;
|
10396
|
+
note: string | null;
|
8756
10397
|
} | null;
|
8757
10398
|
} | undefined;
|
8758
10399
|
}>>;
|
@@ -9410,8 +11051,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9410
11051
|
updatedAt: string;
|
9411
11052
|
deletedAt: string | null;
|
9412
11053
|
platformId: string;
|
9413
|
-
platformMessageId: string;
|
9414
|
-
locale: "" | "th" | "mm" | "en" | null;
|
9415
11054
|
room: {
|
9416
11055
|
id?: string | undefined;
|
9417
11056
|
createdAt?: string | undefined;
|
@@ -9426,7 +11065,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9426
11065
|
isLatest?: boolean | undefined;
|
9427
11066
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
9428
11067
|
platformContact?: {
|
9429
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
11068
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
9430
11069
|
id: string;
|
9431
11070
|
metadata: {
|
9432
11071
|
id: string;
|
@@ -9626,7 +11265,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9626
11265
|
} | undefined;
|
9627
11266
|
} | null | undefined;
|
9628
11267
|
channel?: {
|
9629
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
11268
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
9630
11269
|
name: string;
|
9631
11270
|
metadata: {
|
9632
11271
|
id: string;
|
@@ -9656,14 +11295,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9656
11295
|
updatedAt: Date;
|
9657
11296
|
deletedAt: Date | null;
|
9658
11297
|
entityId: string;
|
9659
|
-
|
11298
|
+
queueId: string | null;
|
11299
|
+
contactId: string | null;
|
9660
11300
|
caseId: number;
|
9661
11301
|
entityName: string;
|
9662
|
-
contactId: string | null;
|
9663
|
-
queueId: string | null;
|
9664
11302
|
agentId: string | null;
|
9665
11303
|
startedDate: Date | null;
|
9666
11304
|
handledTime: number | null;
|
11305
|
+
firstResponseTime: number | null;
|
9667
11306
|
wrapUpForm: {
|
9668
11307
|
id: string;
|
9669
11308
|
disposition: string | null;
|
@@ -9677,12 +11316,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9677
11316
|
updatedAt: Date;
|
9678
11317
|
deletedAt: Date | null;
|
9679
11318
|
}[];
|
9680
|
-
note: string | null;
|
9681
11319
|
callFrom: string | null;
|
9682
11320
|
callTo: string | null;
|
11321
|
+
note: string | null;
|
9683
11322
|
} | null;
|
9684
11323
|
} | undefined;
|
9685
11324
|
} | null;
|
11325
|
+
platformMessageId: string;
|
11326
|
+
locale: "" | "th" | "mm" | "en" | null;
|
9686
11327
|
message?: string | undefined;
|
9687
11328
|
metadata?: any;
|
9688
11329
|
replyPlatformMessageId?: string | undefined;
|
@@ -9842,8 +11483,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9842
11483
|
updatedAt: string;
|
9843
11484
|
deletedAt: string | null;
|
9844
11485
|
platformId: string;
|
9845
|
-
platformMessageId: string;
|
9846
|
-
locale: "" | "th" | "mm" | "en" | null;
|
9847
11486
|
room: {
|
9848
11487
|
id?: string | undefined;
|
9849
11488
|
createdAt?: string | undefined;
|
@@ -9858,7 +11497,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9858
11497
|
isLatest?: boolean | undefined;
|
9859
11498
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
9860
11499
|
platformContact?: {
|
9861
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
11500
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
9862
11501
|
id: string;
|
9863
11502
|
metadata: {
|
9864
11503
|
id: string;
|
@@ -10058,7 +11697,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10058
11697
|
} | undefined;
|
10059
11698
|
} | null | undefined;
|
10060
11699
|
channel?: {
|
10061
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
11700
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
10062
11701
|
name: string;
|
10063
11702
|
metadata: {
|
10064
11703
|
id: string;
|
@@ -10088,14 +11727,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10088
11727
|
updatedAt: Date;
|
10089
11728
|
deletedAt: Date | null;
|
10090
11729
|
entityId: string;
|
10091
|
-
|
11730
|
+
queueId: string | null;
|
11731
|
+
contactId: string | null;
|
10092
11732
|
caseId: number;
|
10093
11733
|
entityName: string;
|
10094
|
-
contactId: string | null;
|
10095
|
-
queueId: string | null;
|
10096
11734
|
agentId: string | null;
|
10097
11735
|
startedDate: Date | null;
|
10098
11736
|
handledTime: number | null;
|
11737
|
+
firstResponseTime: number | null;
|
10099
11738
|
wrapUpForm: {
|
10100
11739
|
id: string;
|
10101
11740
|
disposition: string | null;
|
@@ -10109,12 +11748,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10109
11748
|
updatedAt: Date;
|
10110
11749
|
deletedAt: Date | null;
|
10111
11750
|
}[];
|
10112
|
-
note: string | null;
|
10113
11751
|
callFrom: string | null;
|
10114
11752
|
callTo: string | null;
|
11753
|
+
note: string | null;
|
10115
11754
|
} | null;
|
10116
11755
|
} | undefined;
|
10117
11756
|
} | null;
|
11757
|
+
platformMessageId: string;
|
11758
|
+
locale: "" | "th" | "mm" | "en" | null;
|
10118
11759
|
message?: string | undefined;
|
10119
11760
|
metadata?: any;
|
10120
11761
|
replyPlatformMessageId?: string | undefined;
|
@@ -10276,8 +11917,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10276
11917
|
updatedAt: string;
|
10277
11918
|
deletedAt: string | null;
|
10278
11919
|
platformId: string;
|
10279
|
-
platformMessageId: string;
|
10280
|
-
locale: "" | "th" | "mm" | "en" | null;
|
10281
11920
|
room: {
|
10282
11921
|
id?: string | undefined;
|
10283
11922
|
createdAt?: string | undefined;
|
@@ -10292,7 +11931,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10292
11931
|
isLatest?: boolean | undefined;
|
10293
11932
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
10294
11933
|
platformContact?: {
|
10295
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
11934
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
10296
11935
|
id: string;
|
10297
11936
|
metadata: {
|
10298
11937
|
id: string;
|
@@ -10492,7 +12131,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10492
12131
|
} | undefined;
|
10493
12132
|
} | null | undefined;
|
10494
12133
|
channel?: {
|
10495
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
12134
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
10496
12135
|
name: string;
|
10497
12136
|
metadata: {
|
10498
12137
|
id: string;
|
@@ -10522,14 +12161,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10522
12161
|
updatedAt: Date;
|
10523
12162
|
deletedAt: Date | null;
|
10524
12163
|
entityId: string;
|
10525
|
-
|
12164
|
+
queueId: string | null;
|
12165
|
+
contactId: string | null;
|
10526
12166
|
caseId: number;
|
10527
12167
|
entityName: string;
|
10528
|
-
contactId: string | null;
|
10529
|
-
queueId: string | null;
|
10530
12168
|
agentId: string | null;
|
10531
12169
|
startedDate: Date | null;
|
10532
12170
|
handledTime: number | null;
|
12171
|
+
firstResponseTime: number | null;
|
10533
12172
|
wrapUpForm: {
|
10534
12173
|
id: string;
|
10535
12174
|
disposition: string | null;
|
@@ -10543,12 +12182,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10543
12182
|
updatedAt: Date;
|
10544
12183
|
deletedAt: Date | null;
|
10545
12184
|
}[];
|
10546
|
-
note: string | null;
|
10547
12185
|
callFrom: string | null;
|
10548
12186
|
callTo: string | null;
|
12187
|
+
note: string | null;
|
10549
12188
|
} | null;
|
10550
12189
|
} | undefined;
|
10551
12190
|
} | null;
|
12191
|
+
platformMessageId: string;
|
12192
|
+
locale: "" | "th" | "mm" | "en" | null;
|
10552
12193
|
message?: string | undefined;
|
10553
12194
|
metadata?: any;
|
10554
12195
|
replyPlatformMessageId?: string | undefined;
|
@@ -10710,8 +12351,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10710
12351
|
updatedAt: string;
|
10711
12352
|
deletedAt: string | null;
|
10712
12353
|
platformId: string;
|
10713
|
-
platformMessageId: string;
|
10714
|
-
locale: "" | "th" | "mm" | "en" | null;
|
10715
12354
|
room: {
|
10716
12355
|
id?: string | undefined;
|
10717
12356
|
createdAt?: string | undefined;
|
@@ -10726,7 +12365,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10726
12365
|
isLatest?: boolean | undefined;
|
10727
12366
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
10728
12367
|
platformContact?: {
|
10729
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
12368
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
10730
12369
|
id: string;
|
10731
12370
|
metadata: {
|
10732
12371
|
id: string;
|
@@ -10926,7 +12565,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10926
12565
|
} | undefined;
|
10927
12566
|
} | null | undefined;
|
10928
12567
|
channel?: {
|
10929
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
12568
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
10930
12569
|
name: string;
|
10931
12570
|
metadata: {
|
10932
12571
|
id: string;
|
@@ -10956,14 +12595,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10956
12595
|
updatedAt: Date;
|
10957
12596
|
deletedAt: Date | null;
|
10958
12597
|
entityId: string;
|
10959
|
-
|
12598
|
+
queueId: string | null;
|
12599
|
+
contactId: string | null;
|
10960
12600
|
caseId: number;
|
10961
12601
|
entityName: string;
|
10962
|
-
contactId: string | null;
|
10963
|
-
queueId: string | null;
|
10964
12602
|
agentId: string | null;
|
10965
12603
|
startedDate: Date | null;
|
10966
12604
|
handledTime: number | null;
|
12605
|
+
firstResponseTime: number | null;
|
10967
12606
|
wrapUpForm: {
|
10968
12607
|
id: string;
|
10969
12608
|
disposition: string | null;
|
@@ -10977,12 +12616,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10977
12616
|
updatedAt: Date;
|
10978
12617
|
deletedAt: Date | null;
|
10979
12618
|
}[];
|
10980
|
-
note: string | null;
|
10981
12619
|
callFrom: string | null;
|
10982
12620
|
callTo: string | null;
|
12621
|
+
note: string | null;
|
10983
12622
|
} | null;
|
10984
12623
|
} | undefined;
|
10985
12624
|
} | null;
|
12625
|
+
platformMessageId: string;
|
12626
|
+
locale: "" | "th" | "mm" | "en" | null;
|
10986
12627
|
message?: string | undefined;
|
10987
12628
|
metadata?: any;
|
10988
12629
|
replyPlatformMessageId?: string | undefined;
|