@kl1/contracts 1.0.77 → 1.0.79
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 +2391 -2040
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2390 -2040
- 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 +92 -88
- package/dist/src/channel/index.d.ts.map +1 -1
- 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 +7108 -3826
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +3391 -1087
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +1945 -304
- 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 +25050 -10486
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +948 -205
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +920 -263
- 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 +1912 -271
- 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 +2520 -520
- 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 +2376 -404
- package/dist/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/schema.d.ts +839 -63
- 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 +3614 -1248
- 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
- package/dist/src/app/index.d.ts +0 -17
- package/dist/src/app/index.d.ts.map +0 -1
- package/dist/src/mail/mail-server.d.ts +0 -216
- package/dist/src/mail/mail-server.d.ts.map +0 -1
- package/dist/src/platform-contact/schema.d.ts +0 -30
- package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -14,7 +14,7 @@ export declare const instagramContract: {
|
|
14
14
|
platformContact: z.ZodObject<{
|
15
15
|
channelId: z.ZodString;
|
16
16
|
socialPlatformId: z.ZodNullable<z.ZodString>;
|
17
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
17
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
18
18
|
metadata: z.ZodObject<{
|
19
19
|
id: z.ZodString;
|
20
20
|
name: z.ZodString;
|
@@ -54,7 +54,7 @@ export declare const instagramContract: {
|
|
54
54
|
socialProfileUrl: string | null;
|
55
55
|
}>;
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
57
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
57
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
58
58
|
metadata: {
|
59
59
|
id: string;
|
60
60
|
name: string;
|
@@ -72,7 +72,7 @@ export declare const instagramContract: {
|
|
72
72
|
channelId: string;
|
73
73
|
socialPlatformId: string | null;
|
74
74
|
}, {
|
75
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
75
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
76
76
|
metadata: {
|
77
77
|
id: string;
|
78
78
|
name: string;
|
@@ -108,7 +108,7 @@ export declare const instagramContract: {
|
|
108
108
|
}>>;
|
109
109
|
channel: z.ZodObject<{
|
110
110
|
name: z.ZodString;
|
111
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
111
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
112
112
|
metadata: z.ZodObject<{
|
113
113
|
id: z.ZodString;
|
114
114
|
name: z.ZodString;
|
@@ -153,7 +153,7 @@ export declare const instagramContract: {
|
|
153
153
|
phone: string | null;
|
154
154
|
}>>;
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
156
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
156
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
157
157
|
name: string;
|
158
158
|
metadata: {
|
159
159
|
id: string;
|
@@ -175,7 +175,7 @@ export declare const instagramContract: {
|
|
175
175
|
phone: string | null;
|
176
176
|
} | undefined;
|
177
177
|
}, {
|
178
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
178
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
179
179
|
name: string;
|
180
180
|
metadata: {
|
181
181
|
id: string;
|
@@ -200,7 +200,7 @@ export declare const instagramContract: {
|
|
200
200
|
}, "strip", z.ZodTypeAny, {
|
201
201
|
id: string;
|
202
202
|
channel: {
|
203
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
203
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
204
204
|
name: string;
|
205
205
|
metadata: {
|
206
206
|
id: string;
|
@@ -231,7 +231,7 @@ export declare const instagramContract: {
|
|
231
231
|
} | null;
|
232
232
|
isLatest: boolean;
|
233
233
|
platformContact: {
|
234
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
234
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
235
235
|
metadata: {
|
236
236
|
id: string;
|
237
237
|
name: string;
|
@@ -254,7 +254,7 @@ export declare const instagramContract: {
|
|
254
254
|
}, {
|
255
255
|
id: string;
|
256
256
|
channel: {
|
257
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
257
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
258
258
|
name: string;
|
259
259
|
metadata: {
|
260
260
|
id: string;
|
@@ -285,7 +285,7 @@ export declare const instagramContract: {
|
|
285
285
|
} | null;
|
286
286
|
isLatest: boolean;
|
287
287
|
platformContact: {
|
288
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
288
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
289
289
|
metadata: {
|
290
290
|
id: string;
|
291
291
|
name: string;
|
@@ -436,7 +436,7 @@ export declare const instagramContract: {
|
|
436
436
|
room: {
|
437
437
|
id: string;
|
438
438
|
channel: {
|
439
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
439
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
440
440
|
name: string;
|
441
441
|
metadata: {
|
442
442
|
id: string;
|
@@ -467,7 +467,7 @@ export declare const instagramContract: {
|
|
467
467
|
} | null;
|
468
468
|
isLatest: boolean;
|
469
469
|
platformContact: {
|
470
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
470
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
471
471
|
metadata: {
|
472
472
|
id: string;
|
473
473
|
name: string;
|
@@ -519,7 +519,7 @@ export declare const instagramContract: {
|
|
519
519
|
room: {
|
520
520
|
id: string;
|
521
521
|
channel: {
|
522
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
522
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
523
523
|
name: string;
|
524
524
|
metadata: {
|
525
525
|
id: string;
|
@@ -550,7 +550,7 @@ export declare const instagramContract: {
|
|
550
550
|
} | null;
|
551
551
|
isLatest: boolean;
|
552
552
|
platformContact: {
|
553
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
553
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
554
554
|
metadata: {
|
555
555
|
id: string;
|
556
556
|
name: string;
|
@@ -614,7 +614,7 @@ export declare const instagramContract: {
|
|
614
614
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
615
615
|
channelId: z.ZodString;
|
616
616
|
socialPlatformId: z.ZodString;
|
617
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
617
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
618
618
|
metadata: z.ZodObject<{
|
619
619
|
id: z.ZodString;
|
620
620
|
name: z.ZodString;
|
@@ -1319,7 +1319,7 @@ export declare const instagramContract: {
|
|
1319
1319
|
}[] | undefined;
|
1320
1320
|
}>;
|
1321
1321
|
}, "strip", z.ZodTypeAny, {
|
1322
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
1322
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
1323
1323
|
id: string;
|
1324
1324
|
metadata: {
|
1325
1325
|
id: string;
|
@@ -1430,7 +1430,7 @@ export declare const instagramContract: {
|
|
1430
1430
|
channelId: string;
|
1431
1431
|
socialPlatformId: string;
|
1432
1432
|
}, {
|
1433
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
1433
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
1434
1434
|
id: string;
|
1435
1435
|
metadata: {
|
1436
1436
|
id: string;
|
@@ -1955,7 +1955,7 @@ export declare const instagramContract: {
|
|
1955
1955
|
updatedAt: z.ZodDate;
|
1956
1956
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
1957
1957
|
name: z.ZodString;
|
1958
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
1958
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
1959
1959
|
metadata: z.ZodObject<{
|
1960
1960
|
id: z.ZodString;
|
1961
1961
|
name: z.ZodString;
|
@@ -2186,7 +2186,7 @@ export declare const instagramContract: {
|
|
2186
2186
|
};
|
2187
2187
|
}>;
|
2188
2188
|
}, "strip", z.ZodTypeAny, {
|
2189
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
2189
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
2190
2190
|
id: string;
|
2191
2191
|
name: string;
|
2192
2192
|
metadata: {
|
@@ -2250,7 +2250,7 @@ export declare const instagramContract: {
|
|
2250
2250
|
connectedUserName: string;
|
2251
2251
|
connectedUserId: string;
|
2252
2252
|
}, {
|
2253
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
2253
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
2254
2254
|
id: string;
|
2255
2255
|
name: string;
|
2256
2256
|
metadata: {
|
@@ -2371,9 +2371,9 @@ export declare const instagramContract: {
|
|
2371
2371
|
updatedAt: Date;
|
2372
2372
|
deletedAt: Date | null;
|
2373
2373
|
}[];
|
2374
|
-
note: string | null;
|
2375
2374
|
callFrom: string | null;
|
2376
2375
|
callTo: string | null;
|
2376
|
+
note: string | null;
|
2377
2377
|
}, {
|
2378
2378
|
id: string;
|
2379
2379
|
disposition: string | null;
|
@@ -2387,9 +2387,9 @@ export declare const instagramContract: {
|
|
2387
2387
|
updatedAt: Date;
|
2388
2388
|
deletedAt: Date | null;
|
2389
2389
|
}[];
|
2390
|
-
note: string | null;
|
2391
2390
|
callFrom: string | null;
|
2392
2391
|
callTo: string | null;
|
2392
|
+
note: string | null;
|
2393
2393
|
}>>;
|
2394
2394
|
}, "strip", z.ZodTypeAny, {
|
2395
2395
|
id: string;
|
@@ -2399,14 +2399,14 @@ export declare const instagramContract: {
|
|
2399
2399
|
updatedAt: Date;
|
2400
2400
|
deletedAt: Date | null;
|
2401
2401
|
entityId: string;
|
2402
|
-
|
2402
|
+
queueId: string | null;
|
2403
|
+
contactId: string | null;
|
2403
2404
|
caseId: number;
|
2404
2405
|
entityName: string;
|
2405
|
-
contactId: string | null;
|
2406
|
-
queueId: string | null;
|
2407
2406
|
agentId: string | null;
|
2408
2407
|
startedDate: Date | null;
|
2409
2408
|
handledTime: number | null;
|
2409
|
+
firstResponseTime: number | null;
|
2410
2410
|
wrapUpForm: {
|
2411
2411
|
id: string;
|
2412
2412
|
disposition: string | null;
|
@@ -2420,9 +2420,9 @@ export declare const instagramContract: {
|
|
2420
2420
|
updatedAt: Date;
|
2421
2421
|
deletedAt: Date | null;
|
2422
2422
|
}[];
|
2423
|
-
note: string | null;
|
2424
2423
|
callFrom: string | null;
|
2425
2424
|
callTo: string | null;
|
2425
|
+
note: string | null;
|
2426
2426
|
} | null;
|
2427
2427
|
}, {
|
2428
2428
|
id: string;
|
@@ -2432,14 +2432,14 @@ export declare const instagramContract: {
|
|
2432
2432
|
updatedAt: Date;
|
2433
2433
|
deletedAt: Date | null;
|
2434
2434
|
entityId: string;
|
2435
|
-
|
2435
|
+
queueId: string | null;
|
2436
|
+
contactId: string | null;
|
2436
2437
|
caseId: number;
|
2437
2438
|
entityName: string;
|
2438
|
-
contactId: string | null;
|
2439
|
-
queueId: string | null;
|
2440
2439
|
agentId: string | null;
|
2441
2440
|
startedDate: Date | null;
|
2442
2441
|
handledTime: number | null;
|
2442
|
+
firstResponseTime: number | null;
|
2443
2443
|
wrapUpForm: {
|
2444
2444
|
id: string;
|
2445
2445
|
disposition: string | null;
|
@@ -2453,15 +2453,15 @@ export declare const instagramContract: {
|
|
2453
2453
|
updatedAt: Date;
|
2454
2454
|
deletedAt: Date | null;
|
2455
2455
|
}[];
|
2456
|
-
note: string | null;
|
2457
2456
|
callFrom: string | null;
|
2458
2457
|
callTo: string | null;
|
2458
|
+
note: string | null;
|
2459
2459
|
} | null;
|
2460
2460
|
}>;
|
2461
2461
|
}, "strip", z.ZodTypeAny, {
|
2462
2462
|
id: string;
|
2463
2463
|
channel: {
|
2464
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
2464
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
2465
2465
|
id: string;
|
2466
2466
|
name: string;
|
2467
2467
|
metadata: {
|
@@ -2573,15 +2573,15 @@ export declare const instagramContract: {
|
|
2573
2573
|
telephonySignature: string | null;
|
2574
2574
|
};
|
2575
2575
|
};
|
2576
|
+
firstResponseTime: number;
|
2576
2577
|
lastMessage: string;
|
2577
2578
|
handleTime: number;
|
2578
2579
|
closeAt: Date;
|
2579
2580
|
unreadCount: number;
|
2580
2581
|
firstResponseAt: Date;
|
2581
|
-
firstResponseTime: number;
|
2582
2582
|
isLatest: boolean;
|
2583
2583
|
platformContact: {
|
2584
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
2584
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
2585
2585
|
id: string;
|
2586
2586
|
metadata: {
|
2587
2587
|
id: string;
|
@@ -2744,14 +2744,14 @@ export declare const instagramContract: {
|
|
2744
2744
|
updatedAt: Date;
|
2745
2745
|
deletedAt: Date | null;
|
2746
2746
|
entityId: string;
|
2747
|
-
|
2747
|
+
queueId: string | null;
|
2748
|
+
contactId: string | null;
|
2748
2749
|
caseId: number;
|
2749
2750
|
entityName: string;
|
2750
|
-
contactId: string | null;
|
2751
|
-
queueId: string | null;
|
2752
2751
|
agentId: string | null;
|
2753
2752
|
startedDate: Date | null;
|
2754
2753
|
handledTime: number | null;
|
2754
|
+
firstResponseTime: number | null;
|
2755
2755
|
wrapUpForm: {
|
2756
2756
|
id: string;
|
2757
2757
|
disposition: string | null;
|
@@ -2765,15 +2765,15 @@ export declare const instagramContract: {
|
|
2765
2765
|
updatedAt: Date;
|
2766
2766
|
deletedAt: Date | null;
|
2767
2767
|
}[];
|
2768
|
-
note: string | null;
|
2769
2768
|
callFrom: string | null;
|
2770
2769
|
callTo: string | null;
|
2770
|
+
note: string | null;
|
2771
2771
|
} | null;
|
2772
2772
|
};
|
2773
2773
|
}, {
|
2774
2774
|
id: string;
|
2775
2775
|
channel: {
|
2776
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
2776
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
2777
2777
|
id: string;
|
2778
2778
|
name: string;
|
2779
2779
|
metadata: {
|
@@ -2885,15 +2885,15 @@ export declare const instagramContract: {
|
|
2885
2885
|
telephonySignature: string | null;
|
2886
2886
|
};
|
2887
2887
|
};
|
2888
|
+
firstResponseTime: number;
|
2888
2889
|
lastMessage: string;
|
2889
2890
|
handleTime: number;
|
2890
2891
|
closeAt: Date;
|
2891
2892
|
unreadCount: number;
|
2892
2893
|
firstResponseAt: Date;
|
2893
|
-
firstResponseTime: number;
|
2894
2894
|
isLatest: boolean;
|
2895
2895
|
platformContact: {
|
2896
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
2896
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
2897
2897
|
id: string;
|
2898
2898
|
metadata: {
|
2899
2899
|
id: string;
|
@@ -3056,14 +3056,14 @@ export declare const instagramContract: {
|
|
3056
3056
|
updatedAt: Date;
|
3057
3057
|
deletedAt: Date | null;
|
3058
3058
|
entityId: string;
|
3059
|
-
|
3059
|
+
queueId: string | null;
|
3060
|
+
contactId: string | null;
|
3060
3061
|
caseId: number;
|
3061
3062
|
entityName: string;
|
3062
|
-
contactId: string | null;
|
3063
|
-
queueId: string | null;
|
3064
3063
|
agentId: string | null;
|
3065
3064
|
startedDate: Date | null;
|
3066
3065
|
handledTime: number | null;
|
3066
|
+
firstResponseTime: number | null;
|
3067
3067
|
wrapUpForm: {
|
3068
3068
|
id: string;
|
3069
3069
|
disposition: string | null;
|
@@ -3077,9 +3077,9 @@ export declare const instagramContract: {
|
|
3077
3077
|
updatedAt: Date;
|
3078
3078
|
deletedAt: Date | null;
|
3079
3079
|
}[];
|
3080
|
-
note: string | null;
|
3081
3080
|
callFrom: string | null;
|
3082
3081
|
callTo: string | null;
|
3082
|
+
note: string | null;
|
3083
3083
|
} | null;
|
3084
3084
|
};
|
3085
3085
|
}>;
|
@@ -3117,27 +3117,71 @@ export declare const instagramContract: {
|
|
3117
3117
|
fileUrl: string | null;
|
3118
3118
|
status?: string | undefined;
|
3119
3119
|
}>;
|
3120
|
-
|
3120
|
+
repliedMessage: z.ZodLazy<z.ZodObject<{
|
3121
3121
|
id: z.ZodString;
|
3122
3122
|
createdAt: z.ZodDate;
|
3123
3123
|
updatedAt: z.ZodDate;
|
3124
3124
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
3125
|
-
|
3126
|
-
|
3127
|
-
|
3128
|
-
|
3129
|
-
|
3130
|
-
|
3131
|
-
|
3132
|
-
|
3125
|
+
message: z.ZodString;
|
3126
|
+
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
3127
|
+
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
3128
|
+
readAt: z.ZodDate;
|
3129
|
+
metadata: z.ZodAny;
|
3130
|
+
platformId: z.ZodString;
|
3131
|
+
platformMessageId: z.ZodString;
|
3132
|
+
replyPlatformMessageId: z.ZodString;
|
3133
|
+
template: z.ZodAny;
|
3134
|
+
locale: z.ZodEnum<["mm", "en", "th", ""]>;
|
3135
|
+
url: z.ZodString;
|
3136
|
+
previewUrl: z.ZodString;
|
3137
|
+
imageSetId: z.ZodString;
|
3138
|
+
upload: z.ZodObject<{
|
3133
3139
|
id: z.ZodString;
|
3134
3140
|
createdAt: z.ZodDate;
|
3135
3141
|
updatedAt: z.ZodDate;
|
3136
3142
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
3137
|
-
|
3138
|
-
|
3139
|
-
|
3140
|
-
|
3143
|
+
bucketName: z.ZodString;
|
3144
|
+
fileName: z.ZodString;
|
3145
|
+
fileSize: z.ZodNumber;
|
3146
|
+
fileKey: z.ZodString;
|
3147
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
3148
|
+
status: z.ZodOptional<z.ZodString>;
|
3149
|
+
}, "strip", z.ZodTypeAny, {
|
3150
|
+
id: string;
|
3151
|
+
createdAt: Date;
|
3152
|
+
updatedAt: Date;
|
3153
|
+
deletedAt: Date | null;
|
3154
|
+
fileName: string;
|
3155
|
+
fileKey: string;
|
3156
|
+
bucketName: string;
|
3157
|
+
fileSize: number;
|
3158
|
+
fileUrl: string | null;
|
3159
|
+
status?: string | undefined;
|
3160
|
+
}, {
|
3161
|
+
id: string;
|
3162
|
+
createdAt: Date;
|
3163
|
+
updatedAt: Date;
|
3164
|
+
deletedAt: Date | null;
|
3165
|
+
fileName: string;
|
3166
|
+
fileKey: string;
|
3167
|
+
bucketName: string;
|
3168
|
+
fileSize: number;
|
3169
|
+
fileUrl: string | null;
|
3170
|
+
status?: string | undefined;
|
3171
|
+
}>;
|
3172
|
+
actor: z.ZodObject<{
|
3173
|
+
id: z.ZodString;
|
3174
|
+
createdAt: z.ZodDate;
|
3175
|
+
updatedAt: z.ZodDate;
|
3176
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3177
|
+
name: z.ZodString;
|
3178
|
+
email: z.ZodString;
|
3179
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
3180
|
+
password: z.ZodString;
|
3181
|
+
address: z.ZodNullable<z.ZodString>;
|
3182
|
+
phone: z.ZodNullable<z.ZodString>;
|
3183
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
3184
|
+
roles: z.ZodArray<z.ZodObject<{
|
3141
3185
|
id: z.ZodString;
|
3142
3186
|
createdAt: z.ZodDate;
|
3143
3187
|
updatedAt: z.ZodDate;
|
@@ -3145,6 +3189,31 @@ export declare const instagramContract: {
|
|
3145
3189
|
systemName: z.ZodString;
|
3146
3190
|
displayName: z.ZodString;
|
3147
3191
|
description: z.ZodNullable<z.ZodString>;
|
3192
|
+
permissions: z.ZodArray<z.ZodObject<{
|
3193
|
+
id: z.ZodString;
|
3194
|
+
createdAt: z.ZodDate;
|
3195
|
+
updatedAt: z.ZodDate;
|
3196
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3197
|
+
systemName: z.ZodString;
|
3198
|
+
displayName: z.ZodString;
|
3199
|
+
description: z.ZodNullable<z.ZodString>;
|
3200
|
+
}, "strip", z.ZodTypeAny, {
|
3201
|
+
id: string;
|
3202
|
+
description: string | null;
|
3203
|
+
createdAt: Date;
|
3204
|
+
updatedAt: Date;
|
3205
|
+
deletedAt: Date | null;
|
3206
|
+
systemName: string;
|
3207
|
+
displayName: string;
|
3208
|
+
}, {
|
3209
|
+
id: string;
|
3210
|
+
description: string | null;
|
3211
|
+
createdAt: Date;
|
3212
|
+
updatedAt: Date;
|
3213
|
+
deletedAt: Date | null;
|
3214
|
+
systemName: string;
|
3215
|
+
displayName: string;
|
3216
|
+
}>, "many">;
|
3148
3217
|
}, "strip", z.ZodTypeAny, {
|
3149
3218
|
id: string;
|
3150
3219
|
description: string | null;
|
@@ -3153,6 +3222,15 @@ export declare const instagramContract: {
|
|
3153
3222
|
deletedAt: Date | null;
|
3154
3223
|
systemName: string;
|
3155
3224
|
displayName: string;
|
3225
|
+
permissions: {
|
3226
|
+
id: string;
|
3227
|
+
description: string | null;
|
3228
|
+
createdAt: Date;
|
3229
|
+
updatedAt: Date;
|
3230
|
+
deletedAt: Date | null;
|
3231
|
+
systemName: string;
|
3232
|
+
displayName: string;
|
3233
|
+
}[];
|
3156
3234
|
}, {
|
3157
3235
|
id: string;
|
3158
3236
|
description: string | null;
|
@@ -3161,16 +3239,66 @@ export declare const instagramContract: {
|
|
3161
3239
|
deletedAt: Date | null;
|
3162
3240
|
systemName: string;
|
3163
3241
|
displayName: string;
|
3242
|
+
permissions: {
|
3243
|
+
id: string;
|
3244
|
+
description: string | null;
|
3245
|
+
createdAt: Date;
|
3246
|
+
updatedAt: Date;
|
3247
|
+
deletedAt: Date | null;
|
3248
|
+
systemName: string;
|
3249
|
+
displayName: string;
|
3250
|
+
}[];
|
3164
3251
|
}>, "many">;
|
3252
|
+
extension: z.ZodObject<{
|
3253
|
+
id: z.ZodString;
|
3254
|
+
createdAt: z.ZodDate;
|
3255
|
+
updatedAt: z.ZodDate;
|
3256
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3257
|
+
userId: z.ZodNullable<z.ZodString>;
|
3258
|
+
sipServerUrl: z.ZodString;
|
3259
|
+
sipUserName: z.ZodString;
|
3260
|
+
webphoneLoginUser: z.ZodString;
|
3261
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
3262
|
+
extensionName: z.ZodString;
|
3263
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
3264
|
+
}, "strip", z.ZodTypeAny, {
|
3265
|
+
id: string;
|
3266
|
+
createdAt: Date;
|
3267
|
+
updatedAt: Date;
|
3268
|
+
deletedAt: Date | null;
|
3269
|
+
userId: string | null;
|
3270
|
+
sipServerUrl: string;
|
3271
|
+
sipUserName: string;
|
3272
|
+
webphoneLoginUser: string;
|
3273
|
+
extensionId: string | null;
|
3274
|
+
extensionName: string;
|
3275
|
+
telephonySignature: string | null;
|
3276
|
+
}, {
|
3277
|
+
id: string;
|
3278
|
+
createdAt: Date;
|
3279
|
+
updatedAt: Date;
|
3280
|
+
deletedAt: Date | null;
|
3281
|
+
userId: string | null;
|
3282
|
+
sipServerUrl: string;
|
3283
|
+
sipUserName: string;
|
3284
|
+
webphoneLoginUser: string;
|
3285
|
+
extensionId: string | null;
|
3286
|
+
extensionName: string;
|
3287
|
+
telephonySignature: string | null;
|
3288
|
+
}>;
|
3165
3289
|
}, "strip", z.ZodTypeAny, {
|
3166
3290
|
id: string;
|
3167
|
-
|
3291
|
+
address: string | null;
|
3292
|
+
name: string;
|
3293
|
+
email: string;
|
3168
3294
|
createdAt: Date;
|
3169
3295
|
updatedAt: Date;
|
3170
3296
|
deletedAt: Date | null;
|
3171
|
-
|
3172
|
-
|
3173
|
-
|
3297
|
+
emailVerifiedAt: Date | null;
|
3298
|
+
password: string;
|
3299
|
+
phone: string | null;
|
3300
|
+
notificationCount: number | null;
|
3301
|
+
roles: {
|
3174
3302
|
id: string;
|
3175
3303
|
description: string | null;
|
3176
3304
|
createdAt: Date;
|
@@ -3178,16 +3306,42 @@ export declare const instagramContract: {
|
|
3178
3306
|
deletedAt: Date | null;
|
3179
3307
|
systemName: string;
|
3180
3308
|
displayName: string;
|
3309
|
+
permissions: {
|
3310
|
+
id: string;
|
3311
|
+
description: string | null;
|
3312
|
+
createdAt: Date;
|
3313
|
+
updatedAt: Date;
|
3314
|
+
deletedAt: Date | null;
|
3315
|
+
systemName: string;
|
3316
|
+
displayName: string;
|
3317
|
+
}[];
|
3181
3318
|
}[];
|
3319
|
+
extension: {
|
3320
|
+
id: string;
|
3321
|
+
createdAt: Date;
|
3322
|
+
updatedAt: Date;
|
3323
|
+
deletedAt: Date | null;
|
3324
|
+
userId: string | null;
|
3325
|
+
sipServerUrl: string;
|
3326
|
+
sipUserName: string;
|
3327
|
+
webphoneLoginUser: string;
|
3328
|
+
extensionId: string | null;
|
3329
|
+
extensionName: string;
|
3330
|
+
telephonySignature: string | null;
|
3331
|
+
};
|
3182
3332
|
}, {
|
3183
3333
|
id: string;
|
3184
|
-
|
3334
|
+
address: string | null;
|
3335
|
+
name: string;
|
3336
|
+
email: string;
|
3185
3337
|
createdAt: Date;
|
3186
3338
|
updatedAt: Date;
|
3187
3339
|
deletedAt: Date | null;
|
3188
|
-
|
3189
|
-
|
3190
|
-
|
3340
|
+
emailVerifiedAt: Date | null;
|
3341
|
+
password: string;
|
3342
|
+
phone: string | null;
|
3343
|
+
notificationCount: number | null;
|
3344
|
+
roles: {
|
3191
3345
|
id: string;
|
3192
3346
|
description: string | null;
|
3193
3347
|
createdAt: Date;
|
@@ -3195,39 +3349,874 @@ export declare const instagramContract: {
|
|
3195
3349
|
deletedAt: Date | null;
|
3196
3350
|
systemName: string;
|
3197
3351
|
displayName: string;
|
3352
|
+
permissions: {
|
3353
|
+
id: string;
|
3354
|
+
description: string | null;
|
3355
|
+
createdAt: Date;
|
3356
|
+
updatedAt: Date;
|
3357
|
+
deletedAt: Date | null;
|
3358
|
+
systemName: string;
|
3359
|
+
displayName: string;
|
3360
|
+
}[];
|
3198
3361
|
}[];
|
3199
|
-
|
3200
|
-
|
3362
|
+
extension: {
|
3363
|
+
id: string;
|
3364
|
+
createdAt: Date;
|
3365
|
+
updatedAt: Date;
|
3366
|
+
deletedAt: Date | null;
|
3367
|
+
userId: string | null;
|
3368
|
+
sipServerUrl: string;
|
3369
|
+
sipUserName: string;
|
3370
|
+
webphoneLoginUser: string;
|
3371
|
+
extensionId: string | null;
|
3372
|
+
extensionName: string;
|
3373
|
+
telephonySignature: string | null;
|
3374
|
+
};
|
3375
|
+
}>;
|
3376
|
+
assignee: z.ZodObject<{
|
3201
3377
|
id: z.ZodString;
|
3202
3378
|
createdAt: z.ZodDate;
|
3203
3379
|
updatedAt: z.ZodDate;
|
3204
3380
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
3205
|
-
|
3206
|
-
|
3207
|
-
|
3208
|
-
|
3209
|
-
|
3210
|
-
|
3211
|
-
|
3212
|
-
|
3213
|
-
|
3214
|
-
|
3215
|
-
|
3216
|
-
|
3217
|
-
|
3218
|
-
|
3219
|
-
|
3220
|
-
|
3221
|
-
|
3222
|
-
|
3223
|
-
|
3224
|
-
|
3225
|
-
|
3226
|
-
|
3227
|
-
|
3228
|
-
|
3229
|
-
|
3230
|
-
|
3381
|
+
name: z.ZodString;
|
3382
|
+
email: z.ZodString;
|
3383
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
3384
|
+
password: z.ZodString;
|
3385
|
+
address: z.ZodNullable<z.ZodString>;
|
3386
|
+
phone: z.ZodNullable<z.ZodString>;
|
3387
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
3388
|
+
roles: z.ZodArray<z.ZodObject<{
|
3389
|
+
id: z.ZodString;
|
3390
|
+
createdAt: z.ZodDate;
|
3391
|
+
updatedAt: z.ZodDate;
|
3392
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3393
|
+
systemName: z.ZodString;
|
3394
|
+
displayName: z.ZodString;
|
3395
|
+
description: z.ZodNullable<z.ZodString>;
|
3396
|
+
permissions: z.ZodArray<z.ZodObject<{
|
3397
|
+
id: z.ZodString;
|
3398
|
+
createdAt: z.ZodDate;
|
3399
|
+
updatedAt: z.ZodDate;
|
3400
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3401
|
+
systemName: z.ZodString;
|
3402
|
+
displayName: z.ZodString;
|
3403
|
+
description: z.ZodNullable<z.ZodString>;
|
3404
|
+
}, "strip", z.ZodTypeAny, {
|
3405
|
+
id: string;
|
3406
|
+
description: string | null;
|
3407
|
+
createdAt: Date;
|
3408
|
+
updatedAt: Date;
|
3409
|
+
deletedAt: Date | null;
|
3410
|
+
systemName: string;
|
3411
|
+
displayName: string;
|
3412
|
+
}, {
|
3413
|
+
id: string;
|
3414
|
+
description: string | null;
|
3415
|
+
createdAt: Date;
|
3416
|
+
updatedAt: Date;
|
3417
|
+
deletedAt: Date | null;
|
3418
|
+
systemName: string;
|
3419
|
+
displayName: string;
|
3420
|
+
}>, "many">;
|
3421
|
+
}, "strip", z.ZodTypeAny, {
|
3422
|
+
id: string;
|
3423
|
+
description: string | null;
|
3424
|
+
createdAt: Date;
|
3425
|
+
updatedAt: Date;
|
3426
|
+
deletedAt: Date | null;
|
3427
|
+
systemName: string;
|
3428
|
+
displayName: string;
|
3429
|
+
permissions: {
|
3430
|
+
id: string;
|
3431
|
+
description: string | null;
|
3432
|
+
createdAt: Date;
|
3433
|
+
updatedAt: Date;
|
3434
|
+
deletedAt: Date | null;
|
3435
|
+
systemName: string;
|
3436
|
+
displayName: string;
|
3437
|
+
}[];
|
3438
|
+
}, {
|
3439
|
+
id: string;
|
3440
|
+
description: string | null;
|
3441
|
+
createdAt: Date;
|
3442
|
+
updatedAt: Date;
|
3443
|
+
deletedAt: Date | null;
|
3444
|
+
systemName: string;
|
3445
|
+
displayName: string;
|
3446
|
+
permissions: {
|
3447
|
+
id: string;
|
3448
|
+
description: string | null;
|
3449
|
+
createdAt: Date;
|
3450
|
+
updatedAt: Date;
|
3451
|
+
deletedAt: Date | null;
|
3452
|
+
systemName: string;
|
3453
|
+
displayName: string;
|
3454
|
+
}[];
|
3455
|
+
}>, "many">;
|
3456
|
+
extension: z.ZodObject<{
|
3457
|
+
id: z.ZodString;
|
3458
|
+
createdAt: z.ZodDate;
|
3459
|
+
updatedAt: z.ZodDate;
|
3460
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3461
|
+
userId: z.ZodNullable<z.ZodString>;
|
3462
|
+
sipServerUrl: z.ZodString;
|
3463
|
+
sipUserName: z.ZodString;
|
3464
|
+
webphoneLoginUser: z.ZodString;
|
3465
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
3466
|
+
extensionName: z.ZodString;
|
3467
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
3468
|
+
}, "strip", z.ZodTypeAny, {
|
3469
|
+
id: string;
|
3470
|
+
createdAt: Date;
|
3471
|
+
updatedAt: Date;
|
3472
|
+
deletedAt: Date | null;
|
3473
|
+
userId: string | null;
|
3474
|
+
sipServerUrl: string;
|
3475
|
+
sipUserName: string;
|
3476
|
+
webphoneLoginUser: string;
|
3477
|
+
extensionId: string | null;
|
3478
|
+
extensionName: string;
|
3479
|
+
telephonySignature: string | null;
|
3480
|
+
}, {
|
3481
|
+
id: string;
|
3482
|
+
createdAt: Date;
|
3483
|
+
updatedAt: Date;
|
3484
|
+
deletedAt: Date | null;
|
3485
|
+
userId: string | null;
|
3486
|
+
sipServerUrl: string;
|
3487
|
+
sipUserName: string;
|
3488
|
+
webphoneLoginUser: string;
|
3489
|
+
extensionId: string | null;
|
3490
|
+
extensionName: string;
|
3491
|
+
telephonySignature: string | null;
|
3492
|
+
}>;
|
3493
|
+
}, "strip", z.ZodTypeAny, {
|
3494
|
+
id: string;
|
3495
|
+
address: string | null;
|
3496
|
+
name: string;
|
3497
|
+
email: string;
|
3498
|
+
createdAt: Date;
|
3499
|
+
updatedAt: Date;
|
3500
|
+
deletedAt: Date | null;
|
3501
|
+
emailVerifiedAt: Date | null;
|
3502
|
+
password: string;
|
3503
|
+
phone: string | null;
|
3504
|
+
notificationCount: number | null;
|
3505
|
+
roles: {
|
3506
|
+
id: string;
|
3507
|
+
description: string | null;
|
3508
|
+
createdAt: Date;
|
3509
|
+
updatedAt: Date;
|
3510
|
+
deletedAt: Date | null;
|
3511
|
+
systemName: string;
|
3512
|
+
displayName: string;
|
3513
|
+
permissions: {
|
3514
|
+
id: string;
|
3515
|
+
description: string | null;
|
3516
|
+
createdAt: Date;
|
3517
|
+
updatedAt: Date;
|
3518
|
+
deletedAt: Date | null;
|
3519
|
+
systemName: string;
|
3520
|
+
displayName: string;
|
3521
|
+
}[];
|
3522
|
+
}[];
|
3523
|
+
extension: {
|
3524
|
+
id: string;
|
3525
|
+
createdAt: Date;
|
3526
|
+
updatedAt: Date;
|
3527
|
+
deletedAt: Date | null;
|
3528
|
+
userId: string | null;
|
3529
|
+
sipServerUrl: string;
|
3530
|
+
sipUserName: string;
|
3531
|
+
webphoneLoginUser: string;
|
3532
|
+
extensionId: string | null;
|
3533
|
+
extensionName: string;
|
3534
|
+
telephonySignature: string | null;
|
3535
|
+
};
|
3536
|
+
}, {
|
3537
|
+
id: string;
|
3538
|
+
address: string | null;
|
3539
|
+
name: string;
|
3540
|
+
email: string;
|
3541
|
+
createdAt: Date;
|
3542
|
+
updatedAt: Date;
|
3543
|
+
deletedAt: Date | null;
|
3544
|
+
emailVerifiedAt: Date | null;
|
3545
|
+
password: string;
|
3546
|
+
phone: string | null;
|
3547
|
+
notificationCount: number | null;
|
3548
|
+
roles: {
|
3549
|
+
id: string;
|
3550
|
+
description: string | null;
|
3551
|
+
createdAt: Date;
|
3552
|
+
updatedAt: Date;
|
3553
|
+
deletedAt: Date | null;
|
3554
|
+
systemName: string;
|
3555
|
+
displayName: string;
|
3556
|
+
permissions: {
|
3557
|
+
id: string;
|
3558
|
+
description: string | null;
|
3559
|
+
createdAt: Date;
|
3560
|
+
updatedAt: Date;
|
3561
|
+
deletedAt: Date | null;
|
3562
|
+
systemName: string;
|
3563
|
+
displayName: string;
|
3564
|
+
}[];
|
3565
|
+
}[];
|
3566
|
+
extension: {
|
3567
|
+
id: string;
|
3568
|
+
createdAt: Date;
|
3569
|
+
updatedAt: Date;
|
3570
|
+
deletedAt: Date | null;
|
3571
|
+
userId: string | null;
|
3572
|
+
sipServerUrl: string;
|
3573
|
+
sipUserName: string;
|
3574
|
+
webphoneLoginUser: string;
|
3575
|
+
extensionId: string | null;
|
3576
|
+
extensionName: string;
|
3577
|
+
telephonySignature: string | null;
|
3578
|
+
};
|
3579
|
+
}>;
|
3580
|
+
sender: z.ZodObject<{
|
3581
|
+
id: z.ZodString;
|
3582
|
+
createdAt: z.ZodDate;
|
3583
|
+
updatedAt: z.ZodDate;
|
3584
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3585
|
+
name: z.ZodString;
|
3586
|
+
email: z.ZodString;
|
3587
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
3588
|
+
password: z.ZodString;
|
3589
|
+
address: z.ZodNullable<z.ZodString>;
|
3590
|
+
phone: z.ZodNullable<z.ZodString>;
|
3591
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
3592
|
+
roles: z.ZodArray<z.ZodObject<{
|
3593
|
+
id: z.ZodString;
|
3594
|
+
createdAt: z.ZodDate;
|
3595
|
+
updatedAt: z.ZodDate;
|
3596
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3597
|
+
systemName: z.ZodString;
|
3598
|
+
displayName: z.ZodString;
|
3599
|
+
description: z.ZodNullable<z.ZodString>;
|
3600
|
+
permissions: z.ZodArray<z.ZodObject<{
|
3601
|
+
id: z.ZodString;
|
3602
|
+
createdAt: z.ZodDate;
|
3603
|
+
updatedAt: z.ZodDate;
|
3604
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3605
|
+
systemName: z.ZodString;
|
3606
|
+
displayName: z.ZodString;
|
3607
|
+
description: z.ZodNullable<z.ZodString>;
|
3608
|
+
}, "strip", z.ZodTypeAny, {
|
3609
|
+
id: string;
|
3610
|
+
description: string | null;
|
3611
|
+
createdAt: Date;
|
3612
|
+
updatedAt: Date;
|
3613
|
+
deletedAt: Date | null;
|
3614
|
+
systemName: string;
|
3615
|
+
displayName: string;
|
3616
|
+
}, {
|
3617
|
+
id: string;
|
3618
|
+
description: string | null;
|
3619
|
+
createdAt: Date;
|
3620
|
+
updatedAt: Date;
|
3621
|
+
deletedAt: Date | null;
|
3622
|
+
systemName: string;
|
3623
|
+
displayName: string;
|
3624
|
+
}>, "many">;
|
3625
|
+
}, "strip", z.ZodTypeAny, {
|
3626
|
+
id: string;
|
3627
|
+
description: string | null;
|
3628
|
+
createdAt: Date;
|
3629
|
+
updatedAt: Date;
|
3630
|
+
deletedAt: Date | null;
|
3631
|
+
systemName: string;
|
3632
|
+
displayName: string;
|
3633
|
+
permissions: {
|
3634
|
+
id: string;
|
3635
|
+
description: string | null;
|
3636
|
+
createdAt: Date;
|
3637
|
+
updatedAt: Date;
|
3638
|
+
deletedAt: Date | null;
|
3639
|
+
systemName: string;
|
3640
|
+
displayName: string;
|
3641
|
+
}[];
|
3642
|
+
}, {
|
3643
|
+
id: string;
|
3644
|
+
description: string | null;
|
3645
|
+
createdAt: Date;
|
3646
|
+
updatedAt: Date;
|
3647
|
+
deletedAt: Date | null;
|
3648
|
+
systemName: string;
|
3649
|
+
displayName: string;
|
3650
|
+
permissions: {
|
3651
|
+
id: string;
|
3652
|
+
description: string | null;
|
3653
|
+
createdAt: Date;
|
3654
|
+
updatedAt: Date;
|
3655
|
+
deletedAt: Date | null;
|
3656
|
+
systemName: string;
|
3657
|
+
displayName: string;
|
3658
|
+
}[];
|
3659
|
+
}>, "many">;
|
3660
|
+
extension: z.ZodObject<{
|
3661
|
+
id: z.ZodString;
|
3662
|
+
createdAt: z.ZodDate;
|
3663
|
+
updatedAt: z.ZodDate;
|
3664
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3665
|
+
userId: z.ZodNullable<z.ZodString>;
|
3666
|
+
sipServerUrl: z.ZodString;
|
3667
|
+
sipUserName: z.ZodString;
|
3668
|
+
webphoneLoginUser: z.ZodString;
|
3669
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
3670
|
+
extensionName: z.ZodString;
|
3671
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
3672
|
+
}, "strip", z.ZodTypeAny, {
|
3673
|
+
id: string;
|
3674
|
+
createdAt: Date;
|
3675
|
+
updatedAt: Date;
|
3676
|
+
deletedAt: Date | null;
|
3677
|
+
userId: string | null;
|
3678
|
+
sipServerUrl: string;
|
3679
|
+
sipUserName: string;
|
3680
|
+
webphoneLoginUser: string;
|
3681
|
+
extensionId: string | null;
|
3682
|
+
extensionName: string;
|
3683
|
+
telephonySignature: string | null;
|
3684
|
+
}, {
|
3685
|
+
id: string;
|
3686
|
+
createdAt: Date;
|
3687
|
+
updatedAt: Date;
|
3688
|
+
deletedAt: Date | null;
|
3689
|
+
userId: string | null;
|
3690
|
+
sipServerUrl: string;
|
3691
|
+
sipUserName: string;
|
3692
|
+
webphoneLoginUser: string;
|
3693
|
+
extensionId: string | null;
|
3694
|
+
extensionName: string;
|
3695
|
+
telephonySignature: string | null;
|
3696
|
+
}>;
|
3697
|
+
}, "strip", z.ZodTypeAny, {
|
3698
|
+
id: string;
|
3699
|
+
address: string | null;
|
3700
|
+
name: string;
|
3701
|
+
email: string;
|
3702
|
+
createdAt: Date;
|
3703
|
+
updatedAt: Date;
|
3704
|
+
deletedAt: Date | null;
|
3705
|
+
emailVerifiedAt: Date | null;
|
3706
|
+
password: string;
|
3707
|
+
phone: string | null;
|
3708
|
+
notificationCount: number | null;
|
3709
|
+
roles: {
|
3710
|
+
id: string;
|
3711
|
+
description: string | null;
|
3712
|
+
createdAt: Date;
|
3713
|
+
updatedAt: Date;
|
3714
|
+
deletedAt: Date | null;
|
3715
|
+
systemName: string;
|
3716
|
+
displayName: string;
|
3717
|
+
permissions: {
|
3718
|
+
id: string;
|
3719
|
+
description: string | null;
|
3720
|
+
createdAt: Date;
|
3721
|
+
updatedAt: Date;
|
3722
|
+
deletedAt: Date | null;
|
3723
|
+
systemName: string;
|
3724
|
+
displayName: string;
|
3725
|
+
}[];
|
3726
|
+
}[];
|
3727
|
+
extension: {
|
3728
|
+
id: string;
|
3729
|
+
createdAt: Date;
|
3730
|
+
updatedAt: Date;
|
3731
|
+
deletedAt: Date | null;
|
3732
|
+
userId: string | null;
|
3733
|
+
sipServerUrl: string;
|
3734
|
+
sipUserName: string;
|
3735
|
+
webphoneLoginUser: string;
|
3736
|
+
extensionId: string | null;
|
3737
|
+
extensionName: string;
|
3738
|
+
telephonySignature: string | null;
|
3739
|
+
};
|
3740
|
+
}, {
|
3741
|
+
id: string;
|
3742
|
+
address: string | null;
|
3743
|
+
name: string;
|
3744
|
+
email: string;
|
3745
|
+
createdAt: Date;
|
3746
|
+
updatedAt: Date;
|
3747
|
+
deletedAt: Date | null;
|
3748
|
+
emailVerifiedAt: Date | null;
|
3749
|
+
password: string;
|
3750
|
+
phone: string | null;
|
3751
|
+
notificationCount: number | null;
|
3752
|
+
roles: {
|
3753
|
+
id: string;
|
3754
|
+
description: string | null;
|
3755
|
+
createdAt: Date;
|
3756
|
+
updatedAt: Date;
|
3757
|
+
deletedAt: Date | null;
|
3758
|
+
systemName: string;
|
3759
|
+
displayName: string;
|
3760
|
+
permissions: {
|
3761
|
+
id: string;
|
3762
|
+
description: string | null;
|
3763
|
+
createdAt: Date;
|
3764
|
+
updatedAt: Date;
|
3765
|
+
deletedAt: Date | null;
|
3766
|
+
systemName: string;
|
3767
|
+
displayName: string;
|
3768
|
+
}[];
|
3769
|
+
}[];
|
3770
|
+
extension: {
|
3771
|
+
id: string;
|
3772
|
+
createdAt: Date;
|
3773
|
+
updatedAt: Date;
|
3774
|
+
deletedAt: Date | null;
|
3775
|
+
userId: string | null;
|
3776
|
+
sipServerUrl: string;
|
3777
|
+
sipUserName: string;
|
3778
|
+
webphoneLoginUser: string;
|
3779
|
+
extensionId: string | null;
|
3780
|
+
extensionName: string;
|
3781
|
+
telephonySignature: string | null;
|
3782
|
+
};
|
3783
|
+
}>;
|
3784
|
+
}, "strip", z.ZodTypeAny, {
|
3785
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
3786
|
+
message: string;
|
3787
|
+
id: string;
|
3788
|
+
url: string;
|
3789
|
+
direction: "incoming" | "outgoing" | "system";
|
3790
|
+
createdAt: Date;
|
3791
|
+
updatedAt: Date;
|
3792
|
+
deletedAt: Date | null;
|
3793
|
+
actor: {
|
3794
|
+
id: string;
|
3795
|
+
address: string | null;
|
3796
|
+
name: string;
|
3797
|
+
email: string;
|
3798
|
+
createdAt: Date;
|
3799
|
+
updatedAt: Date;
|
3800
|
+
deletedAt: Date | null;
|
3801
|
+
emailVerifiedAt: Date | null;
|
3802
|
+
password: string;
|
3803
|
+
phone: string | null;
|
3804
|
+
notificationCount: number | null;
|
3805
|
+
roles: {
|
3806
|
+
id: string;
|
3807
|
+
description: string | null;
|
3808
|
+
createdAt: Date;
|
3809
|
+
updatedAt: Date;
|
3810
|
+
deletedAt: Date | null;
|
3811
|
+
systemName: string;
|
3812
|
+
displayName: string;
|
3813
|
+
permissions: {
|
3814
|
+
id: string;
|
3815
|
+
description: string | null;
|
3816
|
+
createdAt: Date;
|
3817
|
+
updatedAt: Date;
|
3818
|
+
deletedAt: Date | null;
|
3819
|
+
systemName: string;
|
3820
|
+
displayName: string;
|
3821
|
+
}[];
|
3822
|
+
}[];
|
3823
|
+
extension: {
|
3824
|
+
id: string;
|
3825
|
+
createdAt: Date;
|
3826
|
+
updatedAt: Date;
|
3827
|
+
deletedAt: Date | null;
|
3828
|
+
userId: string | null;
|
3829
|
+
sipServerUrl: string;
|
3830
|
+
sipUserName: string;
|
3831
|
+
webphoneLoginUser: string;
|
3832
|
+
extensionId: string | null;
|
3833
|
+
extensionName: string;
|
3834
|
+
telephonySignature: string | null;
|
3835
|
+
};
|
3836
|
+
};
|
3837
|
+
platformId: string;
|
3838
|
+
assignee: {
|
3839
|
+
id: string;
|
3840
|
+
address: string | null;
|
3841
|
+
name: string;
|
3842
|
+
email: string;
|
3843
|
+
createdAt: Date;
|
3844
|
+
updatedAt: Date;
|
3845
|
+
deletedAt: Date | null;
|
3846
|
+
emailVerifiedAt: Date | null;
|
3847
|
+
password: string;
|
3848
|
+
phone: string | null;
|
3849
|
+
notificationCount: number | null;
|
3850
|
+
roles: {
|
3851
|
+
id: string;
|
3852
|
+
description: string | null;
|
3853
|
+
createdAt: Date;
|
3854
|
+
updatedAt: Date;
|
3855
|
+
deletedAt: Date | null;
|
3856
|
+
systemName: string;
|
3857
|
+
displayName: string;
|
3858
|
+
permissions: {
|
3859
|
+
id: string;
|
3860
|
+
description: string | null;
|
3861
|
+
createdAt: Date;
|
3862
|
+
updatedAt: Date;
|
3863
|
+
deletedAt: Date | null;
|
3864
|
+
systemName: string;
|
3865
|
+
displayName: string;
|
3866
|
+
}[];
|
3867
|
+
}[];
|
3868
|
+
extension: {
|
3869
|
+
id: string;
|
3870
|
+
createdAt: Date;
|
3871
|
+
updatedAt: Date;
|
3872
|
+
deletedAt: Date | null;
|
3873
|
+
userId: string | null;
|
3874
|
+
sipServerUrl: string;
|
3875
|
+
sipUserName: string;
|
3876
|
+
webphoneLoginUser: string;
|
3877
|
+
extensionId: string | null;
|
3878
|
+
extensionName: string;
|
3879
|
+
telephonySignature: string | null;
|
3880
|
+
};
|
3881
|
+
};
|
3882
|
+
readAt: Date;
|
3883
|
+
platformMessageId: string;
|
3884
|
+
replyPlatformMessageId: string;
|
3885
|
+
locale: "" | "th" | "mm" | "en";
|
3886
|
+
previewUrl: string;
|
3887
|
+
imageSetId: string;
|
3888
|
+
upload: {
|
3889
|
+
id: string;
|
3890
|
+
createdAt: Date;
|
3891
|
+
updatedAt: Date;
|
3892
|
+
deletedAt: Date | null;
|
3893
|
+
fileName: string;
|
3894
|
+
fileKey: string;
|
3895
|
+
bucketName: string;
|
3896
|
+
fileSize: number;
|
3897
|
+
fileUrl: string | null;
|
3898
|
+
status?: string | undefined;
|
3899
|
+
};
|
3900
|
+
sender: {
|
3901
|
+
id: string;
|
3902
|
+
address: string | null;
|
3903
|
+
name: string;
|
3904
|
+
email: string;
|
3905
|
+
createdAt: Date;
|
3906
|
+
updatedAt: Date;
|
3907
|
+
deletedAt: Date | null;
|
3908
|
+
emailVerifiedAt: Date | null;
|
3909
|
+
password: string;
|
3910
|
+
phone: string | null;
|
3911
|
+
notificationCount: number | null;
|
3912
|
+
roles: {
|
3913
|
+
id: string;
|
3914
|
+
description: string | null;
|
3915
|
+
createdAt: Date;
|
3916
|
+
updatedAt: Date;
|
3917
|
+
deletedAt: Date | null;
|
3918
|
+
systemName: string;
|
3919
|
+
displayName: string;
|
3920
|
+
permissions: {
|
3921
|
+
id: string;
|
3922
|
+
description: string | null;
|
3923
|
+
createdAt: Date;
|
3924
|
+
updatedAt: Date;
|
3925
|
+
deletedAt: Date | null;
|
3926
|
+
systemName: string;
|
3927
|
+
displayName: string;
|
3928
|
+
}[];
|
3929
|
+
}[];
|
3930
|
+
extension: {
|
3931
|
+
id: string;
|
3932
|
+
createdAt: Date;
|
3933
|
+
updatedAt: Date;
|
3934
|
+
deletedAt: Date | null;
|
3935
|
+
userId: string | null;
|
3936
|
+
sipServerUrl: string;
|
3937
|
+
sipUserName: string;
|
3938
|
+
webphoneLoginUser: string;
|
3939
|
+
extensionId: string | null;
|
3940
|
+
extensionName: string;
|
3941
|
+
telephonySignature: string | null;
|
3942
|
+
};
|
3943
|
+
};
|
3944
|
+
metadata?: any;
|
3945
|
+
template?: any;
|
3946
|
+
}, {
|
3947
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
3948
|
+
message: string;
|
3949
|
+
id: string;
|
3950
|
+
url: string;
|
3951
|
+
direction: "incoming" | "outgoing" | "system";
|
3952
|
+
createdAt: Date;
|
3953
|
+
updatedAt: Date;
|
3954
|
+
deletedAt: Date | null;
|
3955
|
+
actor: {
|
3956
|
+
id: string;
|
3957
|
+
address: string | null;
|
3958
|
+
name: string;
|
3959
|
+
email: string;
|
3960
|
+
createdAt: Date;
|
3961
|
+
updatedAt: Date;
|
3962
|
+
deletedAt: Date | null;
|
3963
|
+
emailVerifiedAt: Date | null;
|
3964
|
+
password: string;
|
3965
|
+
phone: string | null;
|
3966
|
+
notificationCount: number | null;
|
3967
|
+
roles: {
|
3968
|
+
id: string;
|
3969
|
+
description: string | null;
|
3970
|
+
createdAt: Date;
|
3971
|
+
updatedAt: Date;
|
3972
|
+
deletedAt: Date | null;
|
3973
|
+
systemName: string;
|
3974
|
+
displayName: string;
|
3975
|
+
permissions: {
|
3976
|
+
id: string;
|
3977
|
+
description: string | null;
|
3978
|
+
createdAt: Date;
|
3979
|
+
updatedAt: Date;
|
3980
|
+
deletedAt: Date | null;
|
3981
|
+
systemName: string;
|
3982
|
+
displayName: string;
|
3983
|
+
}[];
|
3984
|
+
}[];
|
3985
|
+
extension: {
|
3986
|
+
id: string;
|
3987
|
+
createdAt: Date;
|
3988
|
+
updatedAt: Date;
|
3989
|
+
deletedAt: Date | null;
|
3990
|
+
userId: string | null;
|
3991
|
+
sipServerUrl: string;
|
3992
|
+
sipUserName: string;
|
3993
|
+
webphoneLoginUser: string;
|
3994
|
+
extensionId: string | null;
|
3995
|
+
extensionName: string;
|
3996
|
+
telephonySignature: string | null;
|
3997
|
+
};
|
3998
|
+
};
|
3999
|
+
platformId: string;
|
4000
|
+
assignee: {
|
4001
|
+
id: string;
|
4002
|
+
address: string | null;
|
4003
|
+
name: string;
|
4004
|
+
email: string;
|
4005
|
+
createdAt: Date;
|
4006
|
+
updatedAt: Date;
|
4007
|
+
deletedAt: Date | null;
|
4008
|
+
emailVerifiedAt: Date | null;
|
4009
|
+
password: string;
|
4010
|
+
phone: string | null;
|
4011
|
+
notificationCount: number | null;
|
4012
|
+
roles: {
|
4013
|
+
id: string;
|
4014
|
+
description: string | null;
|
4015
|
+
createdAt: Date;
|
4016
|
+
updatedAt: Date;
|
4017
|
+
deletedAt: Date | null;
|
4018
|
+
systemName: string;
|
4019
|
+
displayName: string;
|
4020
|
+
permissions: {
|
4021
|
+
id: string;
|
4022
|
+
description: string | null;
|
4023
|
+
createdAt: Date;
|
4024
|
+
updatedAt: Date;
|
4025
|
+
deletedAt: Date | null;
|
4026
|
+
systemName: string;
|
4027
|
+
displayName: string;
|
4028
|
+
}[];
|
4029
|
+
}[];
|
4030
|
+
extension: {
|
4031
|
+
id: string;
|
4032
|
+
createdAt: Date;
|
4033
|
+
updatedAt: Date;
|
4034
|
+
deletedAt: Date | null;
|
4035
|
+
userId: string | null;
|
4036
|
+
sipServerUrl: string;
|
4037
|
+
sipUserName: string;
|
4038
|
+
webphoneLoginUser: string;
|
4039
|
+
extensionId: string | null;
|
4040
|
+
extensionName: string;
|
4041
|
+
telephonySignature: string | null;
|
4042
|
+
};
|
4043
|
+
};
|
4044
|
+
readAt: Date;
|
4045
|
+
platformMessageId: string;
|
4046
|
+
replyPlatformMessageId: string;
|
4047
|
+
locale: "" | "th" | "mm" | "en";
|
4048
|
+
previewUrl: string;
|
4049
|
+
imageSetId: string;
|
4050
|
+
upload: {
|
4051
|
+
id: string;
|
4052
|
+
createdAt: Date;
|
4053
|
+
updatedAt: Date;
|
4054
|
+
deletedAt: Date | null;
|
4055
|
+
fileName: string;
|
4056
|
+
fileKey: string;
|
4057
|
+
bucketName: string;
|
4058
|
+
fileSize: number;
|
4059
|
+
fileUrl: string | null;
|
4060
|
+
status?: string | undefined;
|
4061
|
+
};
|
4062
|
+
sender: {
|
4063
|
+
id: string;
|
4064
|
+
address: string | null;
|
4065
|
+
name: string;
|
4066
|
+
email: string;
|
4067
|
+
createdAt: Date;
|
4068
|
+
updatedAt: Date;
|
4069
|
+
deletedAt: Date | null;
|
4070
|
+
emailVerifiedAt: Date | null;
|
4071
|
+
password: string;
|
4072
|
+
phone: string | null;
|
4073
|
+
notificationCount: number | null;
|
4074
|
+
roles: {
|
4075
|
+
id: string;
|
4076
|
+
description: string | null;
|
4077
|
+
createdAt: Date;
|
4078
|
+
updatedAt: Date;
|
4079
|
+
deletedAt: Date | null;
|
4080
|
+
systemName: string;
|
4081
|
+
displayName: string;
|
4082
|
+
permissions: {
|
4083
|
+
id: string;
|
4084
|
+
description: string | null;
|
4085
|
+
createdAt: Date;
|
4086
|
+
updatedAt: Date;
|
4087
|
+
deletedAt: Date | null;
|
4088
|
+
systemName: string;
|
4089
|
+
displayName: string;
|
4090
|
+
}[];
|
4091
|
+
}[];
|
4092
|
+
extension: {
|
4093
|
+
id: string;
|
4094
|
+
createdAt: Date;
|
4095
|
+
updatedAt: Date;
|
4096
|
+
deletedAt: Date | null;
|
4097
|
+
userId: string | null;
|
4098
|
+
sipServerUrl: string;
|
4099
|
+
sipUserName: string;
|
4100
|
+
webphoneLoginUser: string;
|
4101
|
+
extensionId: string | null;
|
4102
|
+
extensionName: string;
|
4103
|
+
telephonySignature: string | null;
|
4104
|
+
};
|
4105
|
+
};
|
4106
|
+
metadata?: any;
|
4107
|
+
template?: any;
|
4108
|
+
}>>;
|
4109
|
+
actor: z.ZodObject<{
|
4110
|
+
id: z.ZodString;
|
4111
|
+
createdAt: z.ZodDate;
|
4112
|
+
updatedAt: z.ZodDate;
|
4113
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4114
|
+
name: z.ZodString;
|
4115
|
+
email: z.ZodString;
|
4116
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
4117
|
+
password: z.ZodString;
|
4118
|
+
address: z.ZodNullable<z.ZodString>;
|
4119
|
+
phone: z.ZodNullable<z.ZodString>;
|
4120
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
4121
|
+
roles: z.ZodArray<z.ZodObject<{
|
4122
|
+
id: z.ZodString;
|
4123
|
+
createdAt: z.ZodDate;
|
4124
|
+
updatedAt: z.ZodDate;
|
4125
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4126
|
+
systemName: z.ZodString;
|
4127
|
+
displayName: z.ZodString;
|
4128
|
+
description: z.ZodNullable<z.ZodString>;
|
4129
|
+
permissions: z.ZodArray<z.ZodObject<{
|
4130
|
+
id: z.ZodString;
|
4131
|
+
createdAt: z.ZodDate;
|
4132
|
+
updatedAt: z.ZodDate;
|
4133
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4134
|
+
systemName: z.ZodString;
|
4135
|
+
displayName: z.ZodString;
|
4136
|
+
description: z.ZodNullable<z.ZodString>;
|
4137
|
+
}, "strip", z.ZodTypeAny, {
|
4138
|
+
id: string;
|
4139
|
+
description: string | null;
|
4140
|
+
createdAt: Date;
|
4141
|
+
updatedAt: Date;
|
4142
|
+
deletedAt: Date | null;
|
4143
|
+
systemName: string;
|
4144
|
+
displayName: string;
|
4145
|
+
}, {
|
4146
|
+
id: string;
|
4147
|
+
description: string | null;
|
4148
|
+
createdAt: Date;
|
4149
|
+
updatedAt: Date;
|
4150
|
+
deletedAt: Date | null;
|
4151
|
+
systemName: string;
|
4152
|
+
displayName: string;
|
4153
|
+
}>, "many">;
|
4154
|
+
}, "strip", z.ZodTypeAny, {
|
4155
|
+
id: string;
|
4156
|
+
description: string | null;
|
4157
|
+
createdAt: Date;
|
4158
|
+
updatedAt: Date;
|
4159
|
+
deletedAt: Date | null;
|
4160
|
+
systemName: string;
|
4161
|
+
displayName: string;
|
4162
|
+
permissions: {
|
4163
|
+
id: string;
|
4164
|
+
description: string | null;
|
4165
|
+
createdAt: Date;
|
4166
|
+
updatedAt: Date;
|
4167
|
+
deletedAt: Date | null;
|
4168
|
+
systemName: string;
|
4169
|
+
displayName: string;
|
4170
|
+
}[];
|
4171
|
+
}, {
|
4172
|
+
id: string;
|
4173
|
+
description: string | null;
|
4174
|
+
createdAt: Date;
|
4175
|
+
updatedAt: Date;
|
4176
|
+
deletedAt: Date | null;
|
4177
|
+
systemName: string;
|
4178
|
+
displayName: string;
|
4179
|
+
permissions: {
|
4180
|
+
id: string;
|
4181
|
+
description: string | null;
|
4182
|
+
createdAt: Date;
|
4183
|
+
updatedAt: Date;
|
4184
|
+
deletedAt: Date | null;
|
4185
|
+
systemName: string;
|
4186
|
+
displayName: string;
|
4187
|
+
}[];
|
4188
|
+
}>, "many">;
|
4189
|
+
extension: z.ZodObject<{
|
4190
|
+
id: z.ZodString;
|
4191
|
+
createdAt: z.ZodDate;
|
4192
|
+
updatedAt: z.ZodDate;
|
4193
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4194
|
+
userId: z.ZodNullable<z.ZodString>;
|
4195
|
+
sipServerUrl: z.ZodString;
|
4196
|
+
sipUserName: z.ZodString;
|
4197
|
+
webphoneLoginUser: z.ZodString;
|
4198
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
4199
|
+
extensionName: z.ZodString;
|
4200
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
4201
|
+
}, "strip", z.ZodTypeAny, {
|
4202
|
+
id: string;
|
4203
|
+
createdAt: Date;
|
4204
|
+
updatedAt: Date;
|
4205
|
+
deletedAt: Date | null;
|
4206
|
+
userId: string | null;
|
4207
|
+
sipServerUrl: string;
|
4208
|
+
sipUserName: string;
|
4209
|
+
webphoneLoginUser: string;
|
4210
|
+
extensionId: string | null;
|
4211
|
+
extensionName: string;
|
4212
|
+
telephonySignature: string | null;
|
4213
|
+
}, {
|
4214
|
+
id: string;
|
4215
|
+
createdAt: Date;
|
4216
|
+
updatedAt: Date;
|
4217
|
+
deletedAt: Date | null;
|
4218
|
+
userId: string | null;
|
4219
|
+
sipServerUrl: string;
|
3231
4220
|
sipUserName: string;
|
3232
4221
|
webphoneLoginUser: string;
|
3233
4222
|
extensionId: string | null;
|
@@ -3827,16 +4816,10 @@ export declare const instagramContract: {
|
|
3827
4816
|
telephonySignature: string | null;
|
3828
4817
|
};
|
3829
4818
|
};
|
3830
|
-
readAt: Date;
|
3831
|
-
platformMessageId: string;
|
3832
|
-
replyPlatformMessageId: string;
|
3833
|
-
locale: "" | "th" | "mm" | "en";
|
3834
|
-
previewUrl: string;
|
3835
|
-
imageSetId: string;
|
3836
4819
|
room: {
|
3837
4820
|
id: string;
|
3838
4821
|
channel: {
|
3839
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
4822
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
3840
4823
|
id: string;
|
3841
4824
|
name: string;
|
3842
4825
|
metadata: {
|
@@ -3948,15 +4931,15 @@ export declare const instagramContract: {
|
|
3948
4931
|
telephonySignature: string | null;
|
3949
4932
|
};
|
3950
4933
|
};
|
4934
|
+
firstResponseTime: number;
|
3951
4935
|
lastMessage: string;
|
3952
4936
|
handleTime: number;
|
3953
4937
|
closeAt: Date;
|
3954
4938
|
unreadCount: number;
|
3955
4939
|
firstResponseAt: Date;
|
3956
|
-
firstResponseTime: number;
|
3957
4940
|
isLatest: boolean;
|
3958
4941
|
platformContact: {
|
3959
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
4942
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
3960
4943
|
id: string;
|
3961
4944
|
metadata: {
|
3962
4945
|
id: string;
|
@@ -4041,32 +5024,183 @@ export declare const instagramContract: {
|
|
4041
5024
|
}[];
|
4042
5025
|
contactPhones: {
|
4043
5026
|
id: string;
|
4044
|
-
isPrimary: boolean;
|
5027
|
+
isPrimary: boolean;
|
5028
|
+
createdAt: Date;
|
5029
|
+
updatedAt: Date;
|
5030
|
+
deletedAt: Date | null;
|
5031
|
+
phone: string;
|
5032
|
+
}[];
|
5033
|
+
activityLogs?: {
|
5034
|
+
id: string;
|
5035
|
+
description: string;
|
5036
|
+
createdAt: Date;
|
5037
|
+
updatedAt: Date;
|
5038
|
+
deletedAt: Date | null;
|
5039
|
+
entityId: string;
|
5040
|
+
entityType: {
|
5041
|
+
id: string;
|
5042
|
+
description: string | null;
|
5043
|
+
createdAt: Date;
|
5044
|
+
updatedAt: Date;
|
5045
|
+
deletedAt: Date | null;
|
5046
|
+
entity: string;
|
5047
|
+
};
|
5048
|
+
}[] | undefined;
|
5049
|
+
};
|
5050
|
+
channelId: string;
|
5051
|
+
socialPlatformId: string;
|
5052
|
+
};
|
5053
|
+
assignee: {
|
5054
|
+
id: string;
|
5055
|
+
address: string | null;
|
5056
|
+
name: string;
|
5057
|
+
email: string;
|
5058
|
+
createdAt: Date;
|
5059
|
+
updatedAt: Date;
|
5060
|
+
deletedAt: Date | null;
|
5061
|
+
emailVerifiedAt: Date | null;
|
5062
|
+
password: string;
|
5063
|
+
phone: string | null;
|
5064
|
+
notificationCount: number | null;
|
5065
|
+
roles: {
|
5066
|
+
id: string;
|
5067
|
+
description: string | null;
|
5068
|
+
createdAt: Date;
|
5069
|
+
updatedAt: Date;
|
5070
|
+
deletedAt: Date | null;
|
5071
|
+
systemName: string;
|
5072
|
+
displayName: string;
|
5073
|
+
permissions: {
|
5074
|
+
id: string;
|
5075
|
+
description: string | null;
|
5076
|
+
createdAt: Date;
|
5077
|
+
updatedAt: Date;
|
5078
|
+
deletedAt: Date | null;
|
5079
|
+
systemName: string;
|
5080
|
+
displayName: string;
|
5081
|
+
}[];
|
5082
|
+
}[];
|
5083
|
+
extension: {
|
5084
|
+
id: string;
|
5085
|
+
createdAt: Date;
|
5086
|
+
updatedAt: Date;
|
5087
|
+
deletedAt: Date | null;
|
5088
|
+
userId: string | null;
|
5089
|
+
sipServerUrl: string;
|
5090
|
+
sipUserName: string;
|
5091
|
+
webphoneLoginUser: string;
|
5092
|
+
extensionId: string | null;
|
5093
|
+
extensionName: string;
|
5094
|
+
telephonySignature: string | null;
|
5095
|
+
};
|
5096
|
+
};
|
5097
|
+
cxlog: {
|
5098
|
+
id: string;
|
5099
|
+
channel: string | null;
|
5100
|
+
direction: string | null;
|
5101
|
+
createdAt: Date;
|
5102
|
+
updatedAt: Date;
|
5103
|
+
deletedAt: Date | null;
|
5104
|
+
entityId: string;
|
5105
|
+
queueId: string | null;
|
5106
|
+
contactId: string | null;
|
5107
|
+
caseId: number;
|
5108
|
+
entityName: string;
|
5109
|
+
agentId: string | null;
|
5110
|
+
startedDate: Date | null;
|
5111
|
+
handledTime: number | null;
|
5112
|
+
firstResponseTime: number | null;
|
5113
|
+
wrapUpForm: {
|
5114
|
+
id: string;
|
5115
|
+
disposition: string | null;
|
5116
|
+
createdAt: Date;
|
5117
|
+
updatedAt: Date;
|
5118
|
+
deletedAt: Date | null;
|
5119
|
+
tags: {
|
5120
|
+
id: string;
|
5121
|
+
name: string;
|
5122
|
+
createdAt: Date;
|
5123
|
+
updatedAt: Date;
|
5124
|
+
deletedAt: Date | null;
|
5125
|
+
}[];
|
5126
|
+
callFrom: string | null;
|
5127
|
+
callTo: string | null;
|
5128
|
+
note: string | null;
|
5129
|
+
} | null;
|
5130
|
+
};
|
5131
|
+
};
|
5132
|
+
readAt: Date;
|
5133
|
+
platformMessageId: string;
|
5134
|
+
replyPlatformMessageId: string;
|
5135
|
+
locale: "" | "th" | "mm" | "en";
|
5136
|
+
previewUrl: string;
|
5137
|
+
imageSetId: string;
|
5138
|
+
upload: {
|
5139
|
+
id: string;
|
5140
|
+
createdAt: Date;
|
5141
|
+
updatedAt: Date;
|
5142
|
+
deletedAt: Date | null;
|
5143
|
+
fileName: string;
|
5144
|
+
fileKey: string;
|
5145
|
+
bucketName: string;
|
5146
|
+
fileSize: number;
|
5147
|
+
fileUrl: string | null;
|
5148
|
+
status?: string | undefined;
|
5149
|
+
};
|
5150
|
+
repliedMessage: {
|
5151
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
5152
|
+
message: string;
|
5153
|
+
id: string;
|
5154
|
+
url: string;
|
5155
|
+
direction: "incoming" | "outgoing" | "system";
|
5156
|
+
createdAt: Date;
|
5157
|
+
updatedAt: Date;
|
5158
|
+
deletedAt: Date | null;
|
5159
|
+
actor: {
|
5160
|
+
id: string;
|
5161
|
+
address: string | null;
|
5162
|
+
name: string;
|
5163
|
+
email: string;
|
5164
|
+
createdAt: Date;
|
5165
|
+
updatedAt: Date;
|
5166
|
+
deletedAt: Date | null;
|
5167
|
+
emailVerifiedAt: Date | null;
|
5168
|
+
password: string;
|
5169
|
+
phone: string | null;
|
5170
|
+
notificationCount: number | null;
|
5171
|
+
roles: {
|
5172
|
+
id: string;
|
5173
|
+
description: string | null;
|
5174
|
+
createdAt: Date;
|
5175
|
+
updatedAt: Date;
|
5176
|
+
deletedAt: Date | null;
|
5177
|
+
systemName: string;
|
5178
|
+
displayName: string;
|
5179
|
+
permissions: {
|
5180
|
+
id: string;
|
5181
|
+
description: string | null;
|
4045
5182
|
createdAt: Date;
|
4046
5183
|
updatedAt: Date;
|
4047
5184
|
deletedAt: Date | null;
|
4048
|
-
|
5185
|
+
systemName: string;
|
5186
|
+
displayName: string;
|
4049
5187
|
}[];
|
4050
|
-
|
4051
|
-
|
4052
|
-
|
4053
|
-
|
4054
|
-
|
4055
|
-
|
4056
|
-
|
4057
|
-
|
4058
|
-
|
4059
|
-
|
4060
|
-
|
4061
|
-
|
4062
|
-
|
4063
|
-
entity: string;
|
4064
|
-
};
|
4065
|
-
}[] | undefined;
|
5188
|
+
}[];
|
5189
|
+
extension: {
|
5190
|
+
id: string;
|
5191
|
+
createdAt: Date;
|
5192
|
+
updatedAt: Date;
|
5193
|
+
deletedAt: Date | null;
|
5194
|
+
userId: string | null;
|
5195
|
+
sipServerUrl: string;
|
5196
|
+
sipUserName: string;
|
5197
|
+
webphoneLoginUser: string;
|
5198
|
+
extensionId: string | null;
|
5199
|
+
extensionName: string;
|
5200
|
+
telephonySignature: string | null;
|
4066
5201
|
};
|
4067
|
-
channelId: string;
|
4068
|
-
socialPlatformId: string;
|
4069
5202
|
};
|
5203
|
+
platformId: string;
|
4070
5204
|
assignee: {
|
4071
5205
|
id: string;
|
4072
5206
|
address: string | null;
|
@@ -4111,52 +5245,70 @@ export declare const instagramContract: {
|
|
4111
5245
|
telephonySignature: string | null;
|
4112
5246
|
};
|
4113
5247
|
};
|
4114
|
-
|
5248
|
+
readAt: Date;
|
5249
|
+
platformMessageId: string;
|
5250
|
+
replyPlatformMessageId: string;
|
5251
|
+
locale: "" | "th" | "mm" | "en";
|
5252
|
+
previewUrl: string;
|
5253
|
+
imageSetId: string;
|
5254
|
+
upload: {
|
4115
5255
|
id: string;
|
4116
|
-
channel: string | null;
|
4117
|
-
direction: string | null;
|
4118
5256
|
createdAt: Date;
|
4119
5257
|
updatedAt: Date;
|
4120
5258
|
deletedAt: Date | null;
|
4121
|
-
|
4122
|
-
|
4123
|
-
|
4124
|
-
|
4125
|
-
|
4126
|
-
|
4127
|
-
|
4128
|
-
|
4129
|
-
|
4130
|
-
|
5259
|
+
fileName: string;
|
5260
|
+
fileKey: string;
|
5261
|
+
bucketName: string;
|
5262
|
+
fileSize: number;
|
5263
|
+
fileUrl: string | null;
|
5264
|
+
status?: string | undefined;
|
5265
|
+
};
|
5266
|
+
sender: {
|
5267
|
+
id: string;
|
5268
|
+
address: string | null;
|
5269
|
+
name: string;
|
5270
|
+
email: string;
|
5271
|
+
createdAt: Date;
|
5272
|
+
updatedAt: Date;
|
5273
|
+
deletedAt: Date | null;
|
5274
|
+
emailVerifiedAt: Date | null;
|
5275
|
+
password: string;
|
5276
|
+
phone: string | null;
|
5277
|
+
notificationCount: number | null;
|
5278
|
+
roles: {
|
4131
5279
|
id: string;
|
4132
|
-
|
5280
|
+
description: string | null;
|
4133
5281
|
createdAt: Date;
|
4134
5282
|
updatedAt: Date;
|
4135
5283
|
deletedAt: Date | null;
|
4136
|
-
|
5284
|
+
systemName: string;
|
5285
|
+
displayName: string;
|
5286
|
+
permissions: {
|
4137
5287
|
id: string;
|
4138
|
-
|
5288
|
+
description: string | null;
|
4139
5289
|
createdAt: Date;
|
4140
5290
|
updatedAt: Date;
|
4141
5291
|
deletedAt: Date | null;
|
5292
|
+
systemName: string;
|
5293
|
+
displayName: string;
|
4142
5294
|
}[];
|
4143
|
-
|
4144
|
-
|
4145
|
-
|
4146
|
-
|
5295
|
+
}[];
|
5296
|
+
extension: {
|
5297
|
+
id: string;
|
5298
|
+
createdAt: Date;
|
5299
|
+
updatedAt: Date;
|
5300
|
+
deletedAt: Date | null;
|
5301
|
+
userId: string | null;
|
5302
|
+
sipServerUrl: string;
|
5303
|
+
sipUserName: string;
|
5304
|
+
webphoneLoginUser: string;
|
5305
|
+
extensionId: string | null;
|
5306
|
+
extensionName: string;
|
5307
|
+
telephonySignature: string | null;
|
5308
|
+
};
|
4147
5309
|
};
|
4148
|
-
|
4149
|
-
|
4150
|
-
id: string;
|
4151
|
-
createdAt: Date;
|
4152
|
-
updatedAt: Date;
|
4153
|
-
deletedAt: Date | null;
|
4154
|
-
fileName: string;
|
4155
|
-
fileKey: string;
|
4156
|
-
bucketName: string;
|
4157
|
-
fileSize: number;
|
4158
|
-
fileUrl: string | null;
|
4159
|
-
status?: string | undefined;
|
5310
|
+
metadata?: any;
|
5311
|
+
template?: any;
|
4160
5312
|
};
|
4161
5313
|
sender: {
|
4162
5314
|
id: string;
|
@@ -4302,16 +5454,10 @@ export declare const instagramContract: {
|
|
4302
5454
|
telephonySignature: string | null;
|
4303
5455
|
};
|
4304
5456
|
};
|
4305
|
-
readAt: Date;
|
4306
|
-
platformMessageId: string;
|
4307
|
-
replyPlatformMessageId: string;
|
4308
|
-
locale: "" | "th" | "mm" | "en";
|
4309
|
-
previewUrl: string;
|
4310
|
-
imageSetId: string;
|
4311
5457
|
room: {
|
4312
5458
|
id: string;
|
4313
5459
|
channel: {
|
4314
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
5460
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
4315
5461
|
id: string;
|
4316
5462
|
name: string;
|
4317
5463
|
metadata: {
|
@@ -4423,15 +5569,15 @@ export declare const instagramContract: {
|
|
4423
5569
|
telephonySignature: string | null;
|
4424
5570
|
};
|
4425
5571
|
};
|
5572
|
+
firstResponseTime: number;
|
4426
5573
|
lastMessage: string;
|
4427
5574
|
handleTime: number;
|
4428
5575
|
closeAt: Date;
|
4429
5576
|
unreadCount: number;
|
4430
5577
|
firstResponseAt: Date;
|
4431
|
-
firstResponseTime: number;
|
4432
5578
|
isLatest: boolean;
|
4433
5579
|
platformContact: {
|
4434
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
5580
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
4435
5581
|
id: string;
|
4436
5582
|
metadata: {
|
4437
5583
|
id: string;
|
@@ -4516,32 +5662,183 @@ export declare const instagramContract: {
|
|
4516
5662
|
}[];
|
4517
5663
|
contactPhones: {
|
4518
5664
|
id: string;
|
4519
|
-
isPrimary: boolean;
|
5665
|
+
isPrimary: boolean;
|
5666
|
+
createdAt: Date;
|
5667
|
+
updatedAt: Date;
|
5668
|
+
deletedAt: Date | null;
|
5669
|
+
phone: string;
|
5670
|
+
}[];
|
5671
|
+
activityLogs?: {
|
5672
|
+
id: string;
|
5673
|
+
description: string;
|
5674
|
+
createdAt: Date;
|
5675
|
+
updatedAt: Date;
|
5676
|
+
deletedAt: Date | null;
|
5677
|
+
entityId: string;
|
5678
|
+
entityType: {
|
5679
|
+
id: string;
|
5680
|
+
description: string | null;
|
5681
|
+
createdAt: Date;
|
5682
|
+
updatedAt: Date;
|
5683
|
+
deletedAt: Date | null;
|
5684
|
+
entity: string;
|
5685
|
+
};
|
5686
|
+
}[] | undefined;
|
5687
|
+
};
|
5688
|
+
channelId: string;
|
5689
|
+
socialPlatformId: string;
|
5690
|
+
};
|
5691
|
+
assignee: {
|
5692
|
+
id: string;
|
5693
|
+
address: string | null;
|
5694
|
+
name: string;
|
5695
|
+
email: string;
|
5696
|
+
createdAt: Date;
|
5697
|
+
updatedAt: Date;
|
5698
|
+
deletedAt: Date | null;
|
5699
|
+
emailVerifiedAt: Date | null;
|
5700
|
+
password: string;
|
5701
|
+
phone: string | null;
|
5702
|
+
notificationCount: number | null;
|
5703
|
+
roles: {
|
5704
|
+
id: string;
|
5705
|
+
description: string | null;
|
5706
|
+
createdAt: Date;
|
5707
|
+
updatedAt: Date;
|
5708
|
+
deletedAt: Date | null;
|
5709
|
+
systemName: string;
|
5710
|
+
displayName: string;
|
5711
|
+
permissions: {
|
5712
|
+
id: string;
|
5713
|
+
description: string | null;
|
5714
|
+
createdAt: Date;
|
5715
|
+
updatedAt: Date;
|
5716
|
+
deletedAt: Date | null;
|
5717
|
+
systemName: string;
|
5718
|
+
displayName: string;
|
5719
|
+
}[];
|
5720
|
+
}[];
|
5721
|
+
extension: {
|
5722
|
+
id: string;
|
5723
|
+
createdAt: Date;
|
5724
|
+
updatedAt: Date;
|
5725
|
+
deletedAt: Date | null;
|
5726
|
+
userId: string | null;
|
5727
|
+
sipServerUrl: string;
|
5728
|
+
sipUserName: string;
|
5729
|
+
webphoneLoginUser: string;
|
5730
|
+
extensionId: string | null;
|
5731
|
+
extensionName: string;
|
5732
|
+
telephonySignature: string | null;
|
5733
|
+
};
|
5734
|
+
};
|
5735
|
+
cxlog: {
|
5736
|
+
id: string;
|
5737
|
+
channel: string | null;
|
5738
|
+
direction: string | null;
|
5739
|
+
createdAt: Date;
|
5740
|
+
updatedAt: Date;
|
5741
|
+
deletedAt: Date | null;
|
5742
|
+
entityId: string;
|
5743
|
+
queueId: string | null;
|
5744
|
+
contactId: string | null;
|
5745
|
+
caseId: number;
|
5746
|
+
entityName: string;
|
5747
|
+
agentId: string | null;
|
5748
|
+
startedDate: Date | null;
|
5749
|
+
handledTime: number | null;
|
5750
|
+
firstResponseTime: number | null;
|
5751
|
+
wrapUpForm: {
|
5752
|
+
id: string;
|
5753
|
+
disposition: string | null;
|
5754
|
+
createdAt: Date;
|
5755
|
+
updatedAt: Date;
|
5756
|
+
deletedAt: Date | null;
|
5757
|
+
tags: {
|
5758
|
+
id: string;
|
5759
|
+
name: string;
|
5760
|
+
createdAt: Date;
|
5761
|
+
updatedAt: Date;
|
5762
|
+
deletedAt: Date | null;
|
5763
|
+
}[];
|
5764
|
+
callFrom: string | null;
|
5765
|
+
callTo: string | null;
|
5766
|
+
note: string | null;
|
5767
|
+
} | null;
|
5768
|
+
};
|
5769
|
+
};
|
5770
|
+
readAt: Date;
|
5771
|
+
platformMessageId: string;
|
5772
|
+
replyPlatformMessageId: string;
|
5773
|
+
locale: "" | "th" | "mm" | "en";
|
5774
|
+
previewUrl: string;
|
5775
|
+
imageSetId: string;
|
5776
|
+
upload: {
|
5777
|
+
id: string;
|
5778
|
+
createdAt: Date;
|
5779
|
+
updatedAt: Date;
|
5780
|
+
deletedAt: Date | null;
|
5781
|
+
fileName: string;
|
5782
|
+
fileKey: string;
|
5783
|
+
bucketName: string;
|
5784
|
+
fileSize: number;
|
5785
|
+
fileUrl: string | null;
|
5786
|
+
status?: string | undefined;
|
5787
|
+
};
|
5788
|
+
repliedMessage: {
|
5789
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
5790
|
+
message: string;
|
5791
|
+
id: string;
|
5792
|
+
url: string;
|
5793
|
+
direction: "incoming" | "outgoing" | "system";
|
5794
|
+
createdAt: Date;
|
5795
|
+
updatedAt: Date;
|
5796
|
+
deletedAt: Date | null;
|
5797
|
+
actor: {
|
5798
|
+
id: string;
|
5799
|
+
address: string | null;
|
5800
|
+
name: string;
|
5801
|
+
email: string;
|
5802
|
+
createdAt: Date;
|
5803
|
+
updatedAt: Date;
|
5804
|
+
deletedAt: Date | null;
|
5805
|
+
emailVerifiedAt: Date | null;
|
5806
|
+
password: string;
|
5807
|
+
phone: string | null;
|
5808
|
+
notificationCount: number | null;
|
5809
|
+
roles: {
|
5810
|
+
id: string;
|
5811
|
+
description: string | null;
|
5812
|
+
createdAt: Date;
|
5813
|
+
updatedAt: Date;
|
5814
|
+
deletedAt: Date | null;
|
5815
|
+
systemName: string;
|
5816
|
+
displayName: string;
|
5817
|
+
permissions: {
|
5818
|
+
id: string;
|
5819
|
+
description: string | null;
|
4520
5820
|
createdAt: Date;
|
4521
5821
|
updatedAt: Date;
|
4522
5822
|
deletedAt: Date | null;
|
4523
|
-
|
5823
|
+
systemName: string;
|
5824
|
+
displayName: string;
|
4524
5825
|
}[];
|
4525
|
-
|
4526
|
-
|
4527
|
-
|
4528
|
-
|
4529
|
-
|
4530
|
-
|
4531
|
-
|
4532
|
-
|
4533
|
-
|
4534
|
-
|
4535
|
-
|
4536
|
-
|
4537
|
-
|
4538
|
-
entity: string;
|
4539
|
-
};
|
4540
|
-
}[] | undefined;
|
5826
|
+
}[];
|
5827
|
+
extension: {
|
5828
|
+
id: string;
|
5829
|
+
createdAt: Date;
|
5830
|
+
updatedAt: Date;
|
5831
|
+
deletedAt: Date | null;
|
5832
|
+
userId: string | null;
|
5833
|
+
sipServerUrl: string;
|
5834
|
+
sipUserName: string;
|
5835
|
+
webphoneLoginUser: string;
|
5836
|
+
extensionId: string | null;
|
5837
|
+
extensionName: string;
|
5838
|
+
telephonySignature: string | null;
|
4541
5839
|
};
|
4542
|
-
channelId: string;
|
4543
|
-
socialPlatformId: string;
|
4544
5840
|
};
|
5841
|
+
platformId: string;
|
4545
5842
|
assignee: {
|
4546
5843
|
id: string;
|
4547
5844
|
address: string | null;
|
@@ -4586,52 +5883,70 @@ export declare const instagramContract: {
|
|
4586
5883
|
telephonySignature: string | null;
|
4587
5884
|
};
|
4588
5885
|
};
|
4589
|
-
|
5886
|
+
readAt: Date;
|
5887
|
+
platformMessageId: string;
|
5888
|
+
replyPlatformMessageId: string;
|
5889
|
+
locale: "" | "th" | "mm" | "en";
|
5890
|
+
previewUrl: string;
|
5891
|
+
imageSetId: string;
|
5892
|
+
upload: {
|
4590
5893
|
id: string;
|
4591
|
-
channel: string | null;
|
4592
|
-
direction: string | null;
|
4593
5894
|
createdAt: Date;
|
4594
5895
|
updatedAt: Date;
|
4595
5896
|
deletedAt: Date | null;
|
4596
|
-
|
4597
|
-
|
4598
|
-
|
4599
|
-
|
4600
|
-
|
4601
|
-
|
4602
|
-
|
4603
|
-
|
4604
|
-
|
4605
|
-
|
5897
|
+
fileName: string;
|
5898
|
+
fileKey: string;
|
5899
|
+
bucketName: string;
|
5900
|
+
fileSize: number;
|
5901
|
+
fileUrl: string | null;
|
5902
|
+
status?: string | undefined;
|
5903
|
+
};
|
5904
|
+
sender: {
|
5905
|
+
id: string;
|
5906
|
+
address: string | null;
|
5907
|
+
name: string;
|
5908
|
+
email: string;
|
5909
|
+
createdAt: Date;
|
5910
|
+
updatedAt: Date;
|
5911
|
+
deletedAt: Date | null;
|
5912
|
+
emailVerifiedAt: Date | null;
|
5913
|
+
password: string;
|
5914
|
+
phone: string | null;
|
5915
|
+
notificationCount: number | null;
|
5916
|
+
roles: {
|
4606
5917
|
id: string;
|
4607
|
-
|
5918
|
+
description: string | null;
|
4608
5919
|
createdAt: Date;
|
4609
5920
|
updatedAt: Date;
|
4610
5921
|
deletedAt: Date | null;
|
4611
|
-
|
5922
|
+
systemName: string;
|
5923
|
+
displayName: string;
|
5924
|
+
permissions: {
|
4612
5925
|
id: string;
|
4613
|
-
|
5926
|
+
description: string | null;
|
4614
5927
|
createdAt: Date;
|
4615
5928
|
updatedAt: Date;
|
4616
5929
|
deletedAt: Date | null;
|
5930
|
+
systemName: string;
|
5931
|
+
displayName: string;
|
4617
5932
|
}[];
|
4618
|
-
|
4619
|
-
|
4620
|
-
|
4621
|
-
|
5933
|
+
}[];
|
5934
|
+
extension: {
|
5935
|
+
id: string;
|
5936
|
+
createdAt: Date;
|
5937
|
+
updatedAt: Date;
|
5938
|
+
deletedAt: Date | null;
|
5939
|
+
userId: string | null;
|
5940
|
+
sipServerUrl: string;
|
5941
|
+
sipUserName: string;
|
5942
|
+
webphoneLoginUser: string;
|
5943
|
+
extensionId: string | null;
|
5944
|
+
extensionName: string;
|
5945
|
+
telephonySignature: string | null;
|
5946
|
+
};
|
4622
5947
|
};
|
4623
|
-
|
4624
|
-
|
4625
|
-
id: string;
|
4626
|
-
createdAt: Date;
|
4627
|
-
updatedAt: Date;
|
4628
|
-
deletedAt: Date | null;
|
4629
|
-
fileName: string;
|
4630
|
-
fileKey: string;
|
4631
|
-
bucketName: string;
|
4632
|
-
fileSize: number;
|
4633
|
-
fileUrl: string | null;
|
4634
|
-
status?: string | undefined;
|
5948
|
+
metadata?: any;
|
5949
|
+
template?: any;
|
4635
5950
|
};
|
4636
5951
|
sender: {
|
4637
5952
|
id: string;
|
@@ -4779,16 +6094,10 @@ export declare const instagramContract: {
|
|
4779
6094
|
telephonySignature: string | null;
|
4780
6095
|
};
|
4781
6096
|
};
|
4782
|
-
readAt: Date;
|
4783
|
-
platformMessageId: string;
|
4784
|
-
replyPlatformMessageId: string;
|
4785
|
-
locale: "" | "th" | "mm" | "en";
|
4786
|
-
previewUrl: string;
|
4787
|
-
imageSetId: string;
|
4788
6097
|
room: {
|
4789
6098
|
id: string;
|
4790
6099
|
channel: {
|
4791
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
6100
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
4792
6101
|
id: string;
|
4793
6102
|
name: string;
|
4794
6103
|
metadata: {
|
@@ -4900,15 +6209,15 @@ export declare const instagramContract: {
|
|
4900
6209
|
telephonySignature: string | null;
|
4901
6210
|
};
|
4902
6211
|
};
|
6212
|
+
firstResponseTime: number;
|
4903
6213
|
lastMessage: string;
|
4904
6214
|
handleTime: number;
|
4905
6215
|
closeAt: Date;
|
4906
6216
|
unreadCount: number;
|
4907
6217
|
firstResponseAt: Date;
|
4908
|
-
firstResponseTime: number;
|
4909
6218
|
isLatest: boolean;
|
4910
6219
|
platformContact: {
|
4911
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
6220
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
4912
6221
|
id: string;
|
4913
6222
|
metadata: {
|
4914
6223
|
id: string;
|
@@ -4993,32 +6302,183 @@ export declare const instagramContract: {
|
|
4993
6302
|
}[];
|
4994
6303
|
contactPhones: {
|
4995
6304
|
id: string;
|
4996
|
-
isPrimary: boolean;
|
6305
|
+
isPrimary: boolean;
|
6306
|
+
createdAt: Date;
|
6307
|
+
updatedAt: Date;
|
6308
|
+
deletedAt: Date | null;
|
6309
|
+
phone: string;
|
6310
|
+
}[];
|
6311
|
+
activityLogs?: {
|
6312
|
+
id: string;
|
6313
|
+
description: string;
|
6314
|
+
createdAt: Date;
|
6315
|
+
updatedAt: Date;
|
6316
|
+
deletedAt: Date | null;
|
6317
|
+
entityId: string;
|
6318
|
+
entityType: {
|
6319
|
+
id: string;
|
6320
|
+
description: string | null;
|
6321
|
+
createdAt: Date;
|
6322
|
+
updatedAt: Date;
|
6323
|
+
deletedAt: Date | null;
|
6324
|
+
entity: string;
|
6325
|
+
};
|
6326
|
+
}[] | undefined;
|
6327
|
+
};
|
6328
|
+
channelId: string;
|
6329
|
+
socialPlatformId: string;
|
6330
|
+
};
|
6331
|
+
assignee: {
|
6332
|
+
id: string;
|
6333
|
+
address: string | null;
|
6334
|
+
name: string;
|
6335
|
+
email: string;
|
6336
|
+
createdAt: Date;
|
6337
|
+
updatedAt: Date;
|
6338
|
+
deletedAt: Date | null;
|
6339
|
+
emailVerifiedAt: Date | null;
|
6340
|
+
password: string;
|
6341
|
+
phone: string | null;
|
6342
|
+
notificationCount: number | null;
|
6343
|
+
roles: {
|
6344
|
+
id: string;
|
6345
|
+
description: string | null;
|
6346
|
+
createdAt: Date;
|
6347
|
+
updatedAt: Date;
|
6348
|
+
deletedAt: Date | null;
|
6349
|
+
systemName: string;
|
6350
|
+
displayName: string;
|
6351
|
+
permissions: {
|
6352
|
+
id: string;
|
6353
|
+
description: string | null;
|
6354
|
+
createdAt: Date;
|
6355
|
+
updatedAt: Date;
|
6356
|
+
deletedAt: Date | null;
|
6357
|
+
systemName: string;
|
6358
|
+
displayName: string;
|
6359
|
+
}[];
|
6360
|
+
}[];
|
6361
|
+
extension: {
|
6362
|
+
id: string;
|
6363
|
+
createdAt: Date;
|
6364
|
+
updatedAt: Date;
|
6365
|
+
deletedAt: Date | null;
|
6366
|
+
userId: string | null;
|
6367
|
+
sipServerUrl: string;
|
6368
|
+
sipUserName: string;
|
6369
|
+
webphoneLoginUser: string;
|
6370
|
+
extensionId: string | null;
|
6371
|
+
extensionName: string;
|
6372
|
+
telephonySignature: string | null;
|
6373
|
+
};
|
6374
|
+
};
|
6375
|
+
cxlog: {
|
6376
|
+
id: string;
|
6377
|
+
channel: string | null;
|
6378
|
+
direction: string | null;
|
6379
|
+
createdAt: Date;
|
6380
|
+
updatedAt: Date;
|
6381
|
+
deletedAt: Date | null;
|
6382
|
+
entityId: string;
|
6383
|
+
queueId: string | null;
|
6384
|
+
contactId: string | null;
|
6385
|
+
caseId: number;
|
6386
|
+
entityName: string;
|
6387
|
+
agentId: string | null;
|
6388
|
+
startedDate: Date | null;
|
6389
|
+
handledTime: number | null;
|
6390
|
+
firstResponseTime: number | null;
|
6391
|
+
wrapUpForm: {
|
6392
|
+
id: string;
|
6393
|
+
disposition: string | null;
|
6394
|
+
createdAt: Date;
|
6395
|
+
updatedAt: Date;
|
6396
|
+
deletedAt: Date | null;
|
6397
|
+
tags: {
|
6398
|
+
id: string;
|
6399
|
+
name: string;
|
6400
|
+
createdAt: Date;
|
6401
|
+
updatedAt: Date;
|
6402
|
+
deletedAt: Date | null;
|
6403
|
+
}[];
|
6404
|
+
callFrom: string | null;
|
6405
|
+
callTo: string | null;
|
6406
|
+
note: string | null;
|
6407
|
+
} | null;
|
6408
|
+
};
|
6409
|
+
};
|
6410
|
+
readAt: Date;
|
6411
|
+
platformMessageId: string;
|
6412
|
+
replyPlatformMessageId: string;
|
6413
|
+
locale: "" | "th" | "mm" | "en";
|
6414
|
+
previewUrl: string;
|
6415
|
+
imageSetId: string;
|
6416
|
+
upload: {
|
6417
|
+
id: string;
|
6418
|
+
createdAt: Date;
|
6419
|
+
updatedAt: Date;
|
6420
|
+
deletedAt: Date | null;
|
6421
|
+
fileName: string;
|
6422
|
+
fileKey: string;
|
6423
|
+
bucketName: string;
|
6424
|
+
fileSize: number;
|
6425
|
+
fileUrl: string | null;
|
6426
|
+
status?: string | undefined;
|
6427
|
+
};
|
6428
|
+
repliedMessage: {
|
6429
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
6430
|
+
message: string;
|
6431
|
+
id: string;
|
6432
|
+
url: string;
|
6433
|
+
direction: "incoming" | "outgoing" | "system";
|
6434
|
+
createdAt: Date;
|
6435
|
+
updatedAt: Date;
|
6436
|
+
deletedAt: Date | null;
|
6437
|
+
actor: {
|
6438
|
+
id: string;
|
6439
|
+
address: string | null;
|
6440
|
+
name: string;
|
6441
|
+
email: string;
|
6442
|
+
createdAt: Date;
|
6443
|
+
updatedAt: Date;
|
6444
|
+
deletedAt: Date | null;
|
6445
|
+
emailVerifiedAt: Date | null;
|
6446
|
+
password: string;
|
6447
|
+
phone: string | null;
|
6448
|
+
notificationCount: number | null;
|
6449
|
+
roles: {
|
6450
|
+
id: string;
|
6451
|
+
description: string | null;
|
6452
|
+
createdAt: Date;
|
6453
|
+
updatedAt: Date;
|
6454
|
+
deletedAt: Date | null;
|
6455
|
+
systemName: string;
|
6456
|
+
displayName: string;
|
6457
|
+
permissions: {
|
6458
|
+
id: string;
|
6459
|
+
description: string | null;
|
4997
6460
|
createdAt: Date;
|
4998
6461
|
updatedAt: Date;
|
4999
6462
|
deletedAt: Date | null;
|
5000
|
-
|
6463
|
+
systemName: string;
|
6464
|
+
displayName: string;
|
5001
6465
|
}[];
|
5002
|
-
|
5003
|
-
|
5004
|
-
|
5005
|
-
|
5006
|
-
|
5007
|
-
|
5008
|
-
|
5009
|
-
|
5010
|
-
|
5011
|
-
|
5012
|
-
|
5013
|
-
|
5014
|
-
|
5015
|
-
entity: string;
|
5016
|
-
};
|
5017
|
-
}[] | undefined;
|
6466
|
+
}[];
|
6467
|
+
extension: {
|
6468
|
+
id: string;
|
6469
|
+
createdAt: Date;
|
6470
|
+
updatedAt: Date;
|
6471
|
+
deletedAt: Date | null;
|
6472
|
+
userId: string | null;
|
6473
|
+
sipServerUrl: string;
|
6474
|
+
sipUserName: string;
|
6475
|
+
webphoneLoginUser: string;
|
6476
|
+
extensionId: string | null;
|
6477
|
+
extensionName: string;
|
6478
|
+
telephonySignature: string | null;
|
5018
6479
|
};
|
5019
|
-
channelId: string;
|
5020
|
-
socialPlatformId: string;
|
5021
6480
|
};
|
6481
|
+
platformId: string;
|
5022
6482
|
assignee: {
|
5023
6483
|
id: string;
|
5024
6484
|
address: string | null;
|
@@ -5063,52 +6523,70 @@ export declare const instagramContract: {
|
|
5063
6523
|
telephonySignature: string | null;
|
5064
6524
|
};
|
5065
6525
|
};
|
5066
|
-
|
6526
|
+
readAt: Date;
|
6527
|
+
platformMessageId: string;
|
6528
|
+
replyPlatformMessageId: string;
|
6529
|
+
locale: "" | "th" | "mm" | "en";
|
6530
|
+
previewUrl: string;
|
6531
|
+
imageSetId: string;
|
6532
|
+
upload: {
|
5067
6533
|
id: string;
|
5068
|
-
channel: string | null;
|
5069
|
-
direction: string | null;
|
5070
6534
|
createdAt: Date;
|
5071
6535
|
updatedAt: Date;
|
5072
6536
|
deletedAt: Date | null;
|
5073
|
-
|
5074
|
-
|
5075
|
-
|
5076
|
-
|
5077
|
-
|
5078
|
-
|
5079
|
-
|
5080
|
-
|
5081
|
-
|
5082
|
-
|
6537
|
+
fileName: string;
|
6538
|
+
fileKey: string;
|
6539
|
+
bucketName: string;
|
6540
|
+
fileSize: number;
|
6541
|
+
fileUrl: string | null;
|
6542
|
+
status?: string | undefined;
|
6543
|
+
};
|
6544
|
+
sender: {
|
6545
|
+
id: string;
|
6546
|
+
address: string | null;
|
6547
|
+
name: string;
|
6548
|
+
email: string;
|
6549
|
+
createdAt: Date;
|
6550
|
+
updatedAt: Date;
|
6551
|
+
deletedAt: Date | null;
|
6552
|
+
emailVerifiedAt: Date | null;
|
6553
|
+
password: string;
|
6554
|
+
phone: string | null;
|
6555
|
+
notificationCount: number | null;
|
6556
|
+
roles: {
|
5083
6557
|
id: string;
|
5084
|
-
|
6558
|
+
description: string | null;
|
5085
6559
|
createdAt: Date;
|
5086
6560
|
updatedAt: Date;
|
5087
6561
|
deletedAt: Date | null;
|
5088
|
-
|
6562
|
+
systemName: string;
|
6563
|
+
displayName: string;
|
6564
|
+
permissions: {
|
5089
6565
|
id: string;
|
5090
|
-
|
6566
|
+
description: string | null;
|
5091
6567
|
createdAt: Date;
|
5092
6568
|
updatedAt: Date;
|
5093
6569
|
deletedAt: Date | null;
|
6570
|
+
systemName: string;
|
6571
|
+
displayName: string;
|
5094
6572
|
}[];
|
5095
|
-
|
5096
|
-
|
5097
|
-
|
5098
|
-
|
6573
|
+
}[];
|
6574
|
+
extension: {
|
6575
|
+
id: string;
|
6576
|
+
createdAt: Date;
|
6577
|
+
updatedAt: Date;
|
6578
|
+
deletedAt: Date | null;
|
6579
|
+
userId: string | null;
|
6580
|
+
sipServerUrl: string;
|
6581
|
+
sipUserName: string;
|
6582
|
+
webphoneLoginUser: string;
|
6583
|
+
extensionId: string | null;
|
6584
|
+
extensionName: string;
|
6585
|
+
telephonySignature: string | null;
|
6586
|
+
};
|
5099
6587
|
};
|
5100
|
-
|
5101
|
-
|
5102
|
-
id: string;
|
5103
|
-
createdAt: Date;
|
5104
|
-
updatedAt: Date;
|
5105
|
-
deletedAt: Date | null;
|
5106
|
-
fileName: string;
|
5107
|
-
fileKey: string;
|
5108
|
-
bucketName: string;
|
5109
|
-
fileSize: number;
|
5110
|
-
fileUrl: string | null;
|
5111
|
-
status?: string | undefined;
|
6588
|
+
metadata?: any;
|
6589
|
+
template?: any;
|
5112
6590
|
};
|
5113
6591
|
sender: {
|
5114
6592
|
id: string;
|
@@ -5257,16 +6735,10 @@ export declare const instagramContract: {
|
|
5257
6735
|
telephonySignature: string | null;
|
5258
6736
|
};
|
5259
6737
|
};
|
5260
|
-
readAt: Date;
|
5261
|
-
platformMessageId: string;
|
5262
|
-
replyPlatformMessageId: string;
|
5263
|
-
locale: "" | "th" | "mm" | "en";
|
5264
|
-
previewUrl: string;
|
5265
|
-
imageSetId: string;
|
5266
6738
|
room: {
|
5267
6739
|
id: string;
|
5268
6740
|
channel: {
|
5269
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
6741
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5270
6742
|
id: string;
|
5271
6743
|
name: string;
|
5272
6744
|
metadata: {
|
@@ -5378,15 +6850,15 @@ export declare const instagramContract: {
|
|
5378
6850
|
telephonySignature: string | null;
|
5379
6851
|
};
|
5380
6852
|
};
|
6853
|
+
firstResponseTime: number;
|
5381
6854
|
lastMessage: string;
|
5382
6855
|
handleTime: number;
|
5383
6856
|
closeAt: Date;
|
5384
6857
|
unreadCount: number;
|
5385
6858
|
firstResponseAt: Date;
|
5386
|
-
firstResponseTime: number;
|
5387
6859
|
isLatest: boolean;
|
5388
6860
|
platformContact: {
|
5389
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
6861
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5390
6862
|
id: string;
|
5391
6863
|
metadata: {
|
5392
6864
|
id: string;
|
@@ -5494,9 +6966,160 @@ export declare const instagramContract: {
|
|
5494
6966
|
};
|
5495
6967
|
}[] | undefined;
|
5496
6968
|
};
|
5497
|
-
channelId: string;
|
5498
|
-
socialPlatformId: string;
|
6969
|
+
channelId: string;
|
6970
|
+
socialPlatformId: string;
|
6971
|
+
};
|
6972
|
+
assignee: {
|
6973
|
+
id: string;
|
6974
|
+
address: string | null;
|
6975
|
+
name: string;
|
6976
|
+
email: string;
|
6977
|
+
createdAt: Date;
|
6978
|
+
updatedAt: Date;
|
6979
|
+
deletedAt: Date | null;
|
6980
|
+
emailVerifiedAt: Date | null;
|
6981
|
+
password: string;
|
6982
|
+
phone: string | null;
|
6983
|
+
notificationCount: number | null;
|
6984
|
+
roles: {
|
6985
|
+
id: string;
|
6986
|
+
description: string | null;
|
6987
|
+
createdAt: Date;
|
6988
|
+
updatedAt: Date;
|
6989
|
+
deletedAt: Date | null;
|
6990
|
+
systemName: string;
|
6991
|
+
displayName: string;
|
6992
|
+
permissions: {
|
6993
|
+
id: string;
|
6994
|
+
description: string | null;
|
6995
|
+
createdAt: Date;
|
6996
|
+
updatedAt: Date;
|
6997
|
+
deletedAt: Date | null;
|
6998
|
+
systemName: string;
|
6999
|
+
displayName: string;
|
7000
|
+
}[];
|
7001
|
+
}[];
|
7002
|
+
extension: {
|
7003
|
+
id: string;
|
7004
|
+
createdAt: Date;
|
7005
|
+
updatedAt: Date;
|
7006
|
+
deletedAt: Date | null;
|
7007
|
+
userId: string | null;
|
7008
|
+
sipServerUrl: string;
|
7009
|
+
sipUserName: string;
|
7010
|
+
webphoneLoginUser: string;
|
7011
|
+
extensionId: string | null;
|
7012
|
+
extensionName: string;
|
7013
|
+
telephonySignature: string | null;
|
7014
|
+
};
|
7015
|
+
};
|
7016
|
+
cxlog: {
|
7017
|
+
id: string;
|
7018
|
+
channel: string | null;
|
7019
|
+
direction: string | null;
|
7020
|
+
createdAt: Date;
|
7021
|
+
updatedAt: Date;
|
7022
|
+
deletedAt: Date | null;
|
7023
|
+
entityId: string;
|
7024
|
+
queueId: string | null;
|
7025
|
+
contactId: string | null;
|
7026
|
+
caseId: number;
|
7027
|
+
entityName: string;
|
7028
|
+
agentId: string | null;
|
7029
|
+
startedDate: Date | null;
|
7030
|
+
handledTime: number | null;
|
7031
|
+
firstResponseTime: number | null;
|
7032
|
+
wrapUpForm: {
|
7033
|
+
id: string;
|
7034
|
+
disposition: string | null;
|
7035
|
+
createdAt: Date;
|
7036
|
+
updatedAt: Date;
|
7037
|
+
deletedAt: Date | null;
|
7038
|
+
tags: {
|
7039
|
+
id: string;
|
7040
|
+
name: string;
|
7041
|
+
createdAt: Date;
|
7042
|
+
updatedAt: Date;
|
7043
|
+
deletedAt: Date | null;
|
7044
|
+
}[];
|
7045
|
+
callFrom: string | null;
|
7046
|
+
callTo: string | null;
|
7047
|
+
note: string | null;
|
7048
|
+
} | null;
|
7049
|
+
};
|
7050
|
+
};
|
7051
|
+
readAt: Date;
|
7052
|
+
platformMessageId: string;
|
7053
|
+
replyPlatformMessageId: string;
|
7054
|
+
locale: "" | "th" | "mm" | "en";
|
7055
|
+
previewUrl: string;
|
7056
|
+
imageSetId: string;
|
7057
|
+
upload: {
|
7058
|
+
id: string;
|
7059
|
+
createdAt: Date;
|
7060
|
+
updatedAt: Date;
|
7061
|
+
deletedAt: Date | null;
|
7062
|
+
fileName: string;
|
7063
|
+
fileKey: string;
|
7064
|
+
bucketName: string;
|
7065
|
+
fileSize: number;
|
7066
|
+
fileUrl: string | null;
|
7067
|
+
status?: string | undefined;
|
7068
|
+
};
|
7069
|
+
repliedMessage: {
|
7070
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
7071
|
+
message: string;
|
7072
|
+
id: string;
|
7073
|
+
url: string;
|
7074
|
+
direction: "incoming" | "outgoing" | "system";
|
7075
|
+
createdAt: Date;
|
7076
|
+
updatedAt: Date;
|
7077
|
+
deletedAt: Date | null;
|
7078
|
+
actor: {
|
7079
|
+
id: string;
|
7080
|
+
address: string | null;
|
7081
|
+
name: string;
|
7082
|
+
email: string;
|
7083
|
+
createdAt: Date;
|
7084
|
+
updatedAt: Date;
|
7085
|
+
deletedAt: Date | null;
|
7086
|
+
emailVerifiedAt: Date | null;
|
7087
|
+
password: string;
|
7088
|
+
phone: string | null;
|
7089
|
+
notificationCount: number | null;
|
7090
|
+
roles: {
|
7091
|
+
id: string;
|
7092
|
+
description: string | null;
|
7093
|
+
createdAt: Date;
|
7094
|
+
updatedAt: Date;
|
7095
|
+
deletedAt: Date | null;
|
7096
|
+
systemName: string;
|
7097
|
+
displayName: string;
|
7098
|
+
permissions: {
|
7099
|
+
id: string;
|
7100
|
+
description: string | null;
|
7101
|
+
createdAt: Date;
|
7102
|
+
updatedAt: Date;
|
7103
|
+
deletedAt: Date | null;
|
7104
|
+
systemName: string;
|
7105
|
+
displayName: string;
|
7106
|
+
}[];
|
7107
|
+
}[];
|
7108
|
+
extension: {
|
7109
|
+
id: string;
|
7110
|
+
createdAt: Date;
|
7111
|
+
updatedAt: Date;
|
7112
|
+
deletedAt: Date | null;
|
7113
|
+
userId: string | null;
|
7114
|
+
sipServerUrl: string;
|
7115
|
+
sipUserName: string;
|
7116
|
+
webphoneLoginUser: string;
|
7117
|
+
extensionId: string | null;
|
7118
|
+
extensionName: string;
|
7119
|
+
telephonySignature: string | null;
|
7120
|
+
};
|
5499
7121
|
};
|
7122
|
+
platformId: string;
|
5500
7123
|
assignee: {
|
5501
7124
|
id: string;
|
5502
7125
|
address: string | null;
|
@@ -5541,52 +7164,70 @@ export declare const instagramContract: {
|
|
5541
7164
|
telephonySignature: string | null;
|
5542
7165
|
};
|
5543
7166
|
};
|
5544
|
-
|
7167
|
+
readAt: Date;
|
7168
|
+
platformMessageId: string;
|
7169
|
+
replyPlatformMessageId: string;
|
7170
|
+
locale: "" | "th" | "mm" | "en";
|
7171
|
+
previewUrl: string;
|
7172
|
+
imageSetId: string;
|
7173
|
+
upload: {
|
5545
7174
|
id: string;
|
5546
|
-
channel: string | null;
|
5547
|
-
direction: string | null;
|
5548
7175
|
createdAt: Date;
|
5549
7176
|
updatedAt: Date;
|
5550
7177
|
deletedAt: Date | null;
|
5551
|
-
|
5552
|
-
|
5553
|
-
|
5554
|
-
|
5555
|
-
|
5556
|
-
|
5557
|
-
|
5558
|
-
|
5559
|
-
|
5560
|
-
|
7178
|
+
fileName: string;
|
7179
|
+
fileKey: string;
|
7180
|
+
bucketName: string;
|
7181
|
+
fileSize: number;
|
7182
|
+
fileUrl: string | null;
|
7183
|
+
status?: string | undefined;
|
7184
|
+
};
|
7185
|
+
sender: {
|
7186
|
+
id: string;
|
7187
|
+
address: string | null;
|
7188
|
+
name: string;
|
7189
|
+
email: string;
|
7190
|
+
createdAt: Date;
|
7191
|
+
updatedAt: Date;
|
7192
|
+
deletedAt: Date | null;
|
7193
|
+
emailVerifiedAt: Date | null;
|
7194
|
+
password: string;
|
7195
|
+
phone: string | null;
|
7196
|
+
notificationCount: number | null;
|
7197
|
+
roles: {
|
5561
7198
|
id: string;
|
5562
|
-
|
7199
|
+
description: string | null;
|
5563
7200
|
createdAt: Date;
|
5564
7201
|
updatedAt: Date;
|
5565
7202
|
deletedAt: Date | null;
|
5566
|
-
|
7203
|
+
systemName: string;
|
7204
|
+
displayName: string;
|
7205
|
+
permissions: {
|
5567
7206
|
id: string;
|
5568
|
-
|
7207
|
+
description: string | null;
|
5569
7208
|
createdAt: Date;
|
5570
7209
|
updatedAt: Date;
|
5571
7210
|
deletedAt: Date | null;
|
7211
|
+
systemName: string;
|
7212
|
+
displayName: string;
|
5572
7213
|
}[];
|
5573
|
-
|
5574
|
-
|
5575
|
-
|
5576
|
-
|
7214
|
+
}[];
|
7215
|
+
extension: {
|
7216
|
+
id: string;
|
7217
|
+
createdAt: Date;
|
7218
|
+
updatedAt: Date;
|
7219
|
+
deletedAt: Date | null;
|
7220
|
+
userId: string | null;
|
7221
|
+
sipServerUrl: string;
|
7222
|
+
sipUserName: string;
|
7223
|
+
webphoneLoginUser: string;
|
7224
|
+
extensionId: string | null;
|
7225
|
+
extensionName: string;
|
7226
|
+
telephonySignature: string | null;
|
7227
|
+
};
|
5577
7228
|
};
|
5578
|
-
|
5579
|
-
|
5580
|
-
id: string;
|
5581
|
-
createdAt: Date;
|
5582
|
-
updatedAt: Date;
|
5583
|
-
deletedAt: Date | null;
|
5584
|
-
fileName: string;
|
5585
|
-
fileKey: string;
|
5586
|
-
bucketName: string;
|
5587
|
-
fileSize: number;
|
5588
|
-
fileUrl: string | null;
|
5589
|
-
status?: string | undefined;
|
7229
|
+
metadata?: any;
|
7230
|
+
template?: any;
|
5590
7231
|
};
|
5591
7232
|
sender: {
|
5592
7233
|
id: string;
|
@@ -5653,7 +7294,7 @@ export declare const instagramContract: {
|
|
5653
7294
|
connectToService: {
|
5654
7295
|
body: z.ZodObject<{
|
5655
7296
|
name: z.ZodString;
|
5656
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
7297
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
5657
7298
|
metadata: z.ZodObject<{
|
5658
7299
|
id: z.ZodString;
|
5659
7300
|
name: z.ZodString;
|
@@ -5698,7 +7339,7 @@ export declare const instagramContract: {
|
|
5698
7339
|
phone: string | null;
|
5699
7340
|
}>>;
|
5700
7341
|
}, "strip", z.ZodTypeAny, {
|
5701
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7342
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5702
7343
|
name: string;
|
5703
7344
|
metadata: {
|
5704
7345
|
id: string;
|
@@ -5720,7 +7361,7 @@ export declare const instagramContract: {
|
|
5720
7361
|
phone: string | null;
|
5721
7362
|
} | undefined;
|
5722
7363
|
}, {
|
5723
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7364
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5724
7365
|
name: string;
|
5725
7366
|
metadata: {
|
5726
7367
|
id: string;
|
@@ -5748,7 +7389,7 @@ export declare const instagramContract: {
|
|
5748
7389
|
requestId: z.ZodString;
|
5749
7390
|
data: z.ZodObject<{
|
5750
7391
|
name: z.ZodString;
|
5751
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
7392
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
5752
7393
|
metadata: z.ZodObject<{
|
5753
7394
|
id: z.ZodString;
|
5754
7395
|
name: z.ZodString;
|
@@ -5793,7 +7434,7 @@ export declare const instagramContract: {
|
|
5793
7434
|
phone: string | null;
|
5794
7435
|
}>>;
|
5795
7436
|
}, "strip", z.ZodTypeAny, {
|
5796
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7437
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5797
7438
|
name: string;
|
5798
7439
|
metadata: {
|
5799
7440
|
id: string;
|
@@ -5815,7 +7456,7 @@ export declare const instagramContract: {
|
|
5815
7456
|
phone: string | null;
|
5816
7457
|
} | undefined;
|
5817
7458
|
}, {
|
5818
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7459
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5819
7460
|
name: string;
|
5820
7461
|
metadata: {
|
5821
7462
|
id: string;
|
@@ -5839,7 +7480,7 @@ export declare const instagramContract: {
|
|
5839
7480
|
}>;
|
5840
7481
|
}, "strip", z.ZodTypeAny, {
|
5841
7482
|
data: {
|
5842
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7483
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5843
7484
|
name: string;
|
5844
7485
|
metadata: {
|
5845
7486
|
id: string;
|
@@ -5864,7 +7505,7 @@ export declare const instagramContract: {
|
|
5864
7505
|
requestId: string;
|
5865
7506
|
}, {
|
5866
7507
|
data: {
|
5867
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7508
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
5868
7509
|
name: string;
|
5869
7510
|
metadata: {
|
5870
7511
|
id: string;
|
@@ -5914,7 +7555,7 @@ export declare const instagramContract: {
|
|
5914
7555
|
disconnectToService: {
|
5915
7556
|
body: z.ZodObject<{
|
5916
7557
|
name: z.ZodOptional<z.ZodString>;
|
5917
|
-
type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
7558
|
+
type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>>;
|
5918
7559
|
metadata: z.ZodOptional<z.ZodObject<{
|
5919
7560
|
id: z.ZodString;
|
5920
7561
|
name: z.ZodString;
|
@@ -5960,7 +7601,7 @@ export declare const instagramContract: {
|
|
5960
7601
|
}>>>;
|
5961
7602
|
}, "strip", z.ZodTypeAny, {
|
5962
7603
|
name?: string | undefined;
|
5963
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7604
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
|
5964
7605
|
metadata?: {
|
5965
7606
|
id: string;
|
5966
7607
|
name: string;
|
@@ -5982,7 +7623,7 @@ export declare const instagramContract: {
|
|
5982
7623
|
} | undefined;
|
5983
7624
|
}, {
|
5984
7625
|
name?: string | undefined;
|
5985
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7626
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
|
5986
7627
|
metadata?: {
|
5987
7628
|
id: string;
|
5988
7629
|
name: string;
|
@@ -6009,7 +7650,7 @@ export declare const instagramContract: {
|
|
6009
7650
|
requestId: z.ZodString;
|
6010
7651
|
data: z.ZodObject<{
|
6011
7652
|
name: z.ZodString;
|
6012
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
7653
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
6013
7654
|
metadata: z.ZodObject<{
|
6014
7655
|
id: z.ZodString;
|
6015
7656
|
name: z.ZodString;
|
@@ -6054,7 +7695,7 @@ export declare const instagramContract: {
|
|
6054
7695
|
phone: string | null;
|
6055
7696
|
}>>;
|
6056
7697
|
}, "strip", z.ZodTypeAny, {
|
6057
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7698
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6058
7699
|
name: string;
|
6059
7700
|
metadata: {
|
6060
7701
|
id: string;
|
@@ -6076,7 +7717,7 @@ export declare const instagramContract: {
|
|
6076
7717
|
phone: string | null;
|
6077
7718
|
} | undefined;
|
6078
7719
|
}, {
|
6079
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7720
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6080
7721
|
name: string;
|
6081
7722
|
metadata: {
|
6082
7723
|
id: string;
|
@@ -6100,7 +7741,7 @@ export declare const instagramContract: {
|
|
6100
7741
|
}>;
|
6101
7742
|
}, "strip", z.ZodTypeAny, {
|
6102
7743
|
data: {
|
6103
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7744
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6104
7745
|
name: string;
|
6105
7746
|
metadata: {
|
6106
7747
|
id: string;
|
@@ -6125,7 +7766,7 @@ export declare const instagramContract: {
|
|
6125
7766
|
requestId: string;
|
6126
7767
|
}, {
|
6127
7768
|
data: {
|
6128
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7769
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6129
7770
|
name: string;
|
6130
7771
|
metadata: {
|
6131
7772
|
id: string;
|
@@ -6175,7 +7816,7 @@ export declare const instagramContract: {
|
|
6175
7816
|
relogin: {
|
6176
7817
|
body: z.ZodObject<{
|
6177
7818
|
name: z.ZodOptional<z.ZodString>;
|
6178
|
-
type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
7819
|
+
type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>>;
|
6179
7820
|
metadata: z.ZodOptional<z.ZodObject<{
|
6180
7821
|
id: z.ZodString;
|
6181
7822
|
name: z.ZodString;
|
@@ -6221,7 +7862,7 @@ export declare const instagramContract: {
|
|
6221
7862
|
}>>>;
|
6222
7863
|
}, "strip", z.ZodTypeAny, {
|
6223
7864
|
name?: string | undefined;
|
6224
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7865
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
|
6225
7866
|
metadata?: {
|
6226
7867
|
id: string;
|
6227
7868
|
name: string;
|
@@ -6243,7 +7884,7 @@ export declare const instagramContract: {
|
|
6243
7884
|
} | undefined;
|
6244
7885
|
}, {
|
6245
7886
|
name?: string | undefined;
|
6246
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7887
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
|
6247
7888
|
metadata?: {
|
6248
7889
|
id: string;
|
6249
7890
|
name: string;
|
@@ -6270,7 +7911,7 @@ export declare const instagramContract: {
|
|
6270
7911
|
requestId: z.ZodString;
|
6271
7912
|
data: z.ZodObject<{
|
6272
7913
|
name: z.ZodString;
|
6273
|
-
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"
|
7914
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
6274
7915
|
metadata: z.ZodObject<{
|
6275
7916
|
id: z.ZodString;
|
6276
7917
|
name: z.ZodString;
|
@@ -6315,7 +7956,7 @@ export declare const instagramContract: {
|
|
6315
7956
|
phone: string | null;
|
6316
7957
|
}>>;
|
6317
7958
|
}, "strip", z.ZodTypeAny, {
|
6318
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7959
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6319
7960
|
name: string;
|
6320
7961
|
metadata: {
|
6321
7962
|
id: string;
|
@@ -6337,7 +7978,7 @@ export declare const instagramContract: {
|
|
6337
7978
|
phone: string | null;
|
6338
7979
|
} | undefined;
|
6339
7980
|
}, {
|
6340
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
7981
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6341
7982
|
name: string;
|
6342
7983
|
metadata: {
|
6343
7984
|
id: string;
|
@@ -6361,7 +8002,7 @@ export declare const instagramContract: {
|
|
6361
8002
|
}>;
|
6362
8003
|
}, "strip", z.ZodTypeAny, {
|
6363
8004
|
data: {
|
6364
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
8005
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6365
8006
|
name: string;
|
6366
8007
|
metadata: {
|
6367
8008
|
id: string;
|
@@ -6386,7 +8027,7 @@ export declare const instagramContract: {
|
|
6386
8027
|
requestId: string;
|
6387
8028
|
}, {
|
6388
8029
|
data: {
|
6389
|
-
type: "line" | "whatsapp" | "messenger" | "telegram" | "
|
8030
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
6390
8031
|
name: string;
|
6391
8032
|
metadata: {
|
6392
8033
|
id: string;
|
@@ -6433,6 +8074,184 @@ export declare const instagramContract: {
|
|
6433
8074
|
};
|
6434
8075
|
path: "/relogin";
|
6435
8076
|
};
|
8077
|
+
delete: {
|
8078
|
+
body: null;
|
8079
|
+
method: "DELETE";
|
8080
|
+
pathParams: z.ZodObject<{
|
8081
|
+
channelId: z.ZodString;
|
8082
|
+
}, "strip", z.ZodTypeAny, {
|
8083
|
+
channelId: string;
|
8084
|
+
}, {
|
8085
|
+
channelId: string;
|
8086
|
+
}>;
|
8087
|
+
responses: {
|
8088
|
+
200: z.ZodObject<{
|
8089
|
+
requestId: z.ZodString;
|
8090
|
+
data: z.ZodObject<{
|
8091
|
+
name: z.ZodString;
|
8092
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
|
8093
|
+
metadata: z.ZodObject<{
|
8094
|
+
id: z.ZodString;
|
8095
|
+
name: z.ZodString;
|
8096
|
+
accessToken: z.ZodString;
|
8097
|
+
channelSecret: z.ZodOptional<z.ZodString>;
|
8098
|
+
additionalCredentials: z.ZodOptional<z.ZodAny>;
|
8099
|
+
}, "strip", z.ZodTypeAny, {
|
8100
|
+
id: string;
|
8101
|
+
name: string;
|
8102
|
+
accessToken: string;
|
8103
|
+
channelSecret?: string | undefined;
|
8104
|
+
additionalCredentials?: any;
|
8105
|
+
}, {
|
8106
|
+
id: string;
|
8107
|
+
name: string;
|
8108
|
+
accessToken: string;
|
8109
|
+
channelSecret?: string | undefined;
|
8110
|
+
additionalCredentials?: any;
|
8111
|
+
}>;
|
8112
|
+
platformId: z.ZodString;
|
8113
|
+
brandName: z.ZodString;
|
8114
|
+
status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
|
8115
|
+
connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
8116
|
+
connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
8117
|
+
actor: z.ZodOptional<z.ZodObject<{
|
8118
|
+
id: z.ZodString;
|
8119
|
+
name: z.ZodString;
|
8120
|
+
email: z.ZodString;
|
8121
|
+
address: z.ZodNullable<z.ZodString>;
|
8122
|
+
phone: z.ZodNullable<z.ZodString>;
|
8123
|
+
}, "strip", z.ZodTypeAny, {
|
8124
|
+
id: string;
|
8125
|
+
address: string | null;
|
8126
|
+
name: string;
|
8127
|
+
email: string;
|
8128
|
+
phone: string | null;
|
8129
|
+
}, {
|
8130
|
+
id: string;
|
8131
|
+
address: string | null;
|
8132
|
+
name: string;
|
8133
|
+
email: string;
|
8134
|
+
phone: string | null;
|
8135
|
+
}>>;
|
8136
|
+
}, "strip", z.ZodTypeAny, {
|
8137
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
8138
|
+
name: string;
|
8139
|
+
metadata: {
|
8140
|
+
id: string;
|
8141
|
+
name: string;
|
8142
|
+
accessToken: string;
|
8143
|
+
channelSecret?: string | undefined;
|
8144
|
+
additionalCredentials?: any;
|
8145
|
+
};
|
8146
|
+
status: boolean;
|
8147
|
+
brandName: string;
|
8148
|
+
platformId: string;
|
8149
|
+
connectedUserName?: string | null | undefined;
|
8150
|
+
connectedUserId?: string | null | undefined;
|
8151
|
+
actor?: {
|
8152
|
+
id: string;
|
8153
|
+
address: string | null;
|
8154
|
+
name: string;
|
8155
|
+
email: string;
|
8156
|
+
phone: string | null;
|
8157
|
+
} | undefined;
|
8158
|
+
}, {
|
8159
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
8160
|
+
name: string;
|
8161
|
+
metadata: {
|
8162
|
+
id: string;
|
8163
|
+
name: string;
|
8164
|
+
accessToken: string;
|
8165
|
+
channelSecret?: string | undefined;
|
8166
|
+
additionalCredentials?: any;
|
8167
|
+
};
|
8168
|
+
status: boolean;
|
8169
|
+
brandName: string;
|
8170
|
+
platformId: string;
|
8171
|
+
connectedUserName?: string | null | undefined;
|
8172
|
+
connectedUserId?: string | null | undefined;
|
8173
|
+
actor?: {
|
8174
|
+
id: string;
|
8175
|
+
address: string | null;
|
8176
|
+
name: string;
|
8177
|
+
email: string;
|
8178
|
+
phone: string | null;
|
8179
|
+
} | undefined;
|
8180
|
+
}>;
|
8181
|
+
}, "strip", z.ZodTypeAny, {
|
8182
|
+
data: {
|
8183
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
8184
|
+
name: string;
|
8185
|
+
metadata: {
|
8186
|
+
id: string;
|
8187
|
+
name: string;
|
8188
|
+
accessToken: string;
|
8189
|
+
channelSecret?: string | undefined;
|
8190
|
+
additionalCredentials?: any;
|
8191
|
+
};
|
8192
|
+
status: boolean;
|
8193
|
+
brandName: string;
|
8194
|
+
platformId: string;
|
8195
|
+
connectedUserName?: string | null | undefined;
|
8196
|
+
connectedUserId?: string | null | undefined;
|
8197
|
+
actor?: {
|
8198
|
+
id: string;
|
8199
|
+
address: string | null;
|
8200
|
+
name: string;
|
8201
|
+
email: string;
|
8202
|
+
phone: string | null;
|
8203
|
+
} | undefined;
|
8204
|
+
};
|
8205
|
+
requestId: string;
|
8206
|
+
}, {
|
8207
|
+
data: {
|
8208
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
|
8209
|
+
name: string;
|
8210
|
+
metadata: {
|
8211
|
+
id: string;
|
8212
|
+
name: string;
|
8213
|
+
accessToken: string;
|
8214
|
+
channelSecret?: string | undefined;
|
8215
|
+
additionalCredentials?: any;
|
8216
|
+
};
|
8217
|
+
status: boolean;
|
8218
|
+
brandName: string;
|
8219
|
+
platformId: string;
|
8220
|
+
connectedUserName?: string | null | undefined;
|
8221
|
+
connectedUserId?: string | null | undefined;
|
8222
|
+
actor?: {
|
8223
|
+
id: string;
|
8224
|
+
address: string | null;
|
8225
|
+
name: string;
|
8226
|
+
email: string;
|
8227
|
+
phone: string | null;
|
8228
|
+
} | undefined;
|
8229
|
+
};
|
8230
|
+
requestId: string;
|
8231
|
+
}>;
|
8232
|
+
500: z.ZodObject<{
|
8233
|
+
message: z.ZodString;
|
8234
|
+
error: z.ZodAny;
|
8235
|
+
}, "strip", z.ZodTypeAny, {
|
8236
|
+
message: string;
|
8237
|
+
error?: any;
|
8238
|
+
}, {
|
8239
|
+
message: string;
|
8240
|
+
error?: any;
|
8241
|
+
}>;
|
8242
|
+
400: z.ZodObject<{
|
8243
|
+
message: z.ZodString;
|
8244
|
+
error: z.ZodAny;
|
8245
|
+
}, "strip", z.ZodTypeAny, {
|
8246
|
+
message: string;
|
8247
|
+
error?: any;
|
8248
|
+
}, {
|
8249
|
+
message: string;
|
8250
|
+
error?: any;
|
8251
|
+
}>;
|
8252
|
+
};
|
8253
|
+
path: "/delete/:channelId";
|
8254
|
+
};
|
6436
8255
|
getInstagramPages: {
|
6437
8256
|
method: "GET";
|
6438
8257
|
query: z.ZodObject<{
|