@kl1/contracts 1.0.18 → 1.0.20

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.
Files changed (53) hide show
  1. package/dist/index.js +1725 -1047
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1725 -1047
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/call-log/schema.d.ts +8 -8
  6. package/dist/src/call-log/validation.d.ts +4 -4
  7. package/dist/src/channel/index.d.ts +23 -23
  8. package/dist/src/channel/schema.d.ts +11 -8
  9. package/dist/src/channel/schema.d.ts.map +1 -1
  10. package/dist/src/channel/validation.d.ts +3 -3
  11. package/dist/src/chat/index.d.ts +4272 -481
  12. package/dist/src/chat/index.d.ts.map +1 -1
  13. package/dist/src/chat/schema.d.ts +348 -56
  14. package/dist/src/chat/schema.d.ts.map +1 -1
  15. package/dist/src/chat/validation.d.ts +5330 -73
  16. package/dist/src/chat/validation.d.ts.map +1 -1
  17. package/dist/src/company/index.d.ts +1803 -0
  18. package/dist/src/company/index.d.ts.map +1 -0
  19. package/dist/src/company/schema.d.ts +5 -5
  20. package/dist/src/company/validation.d.ts +852 -0
  21. package/dist/src/company/validation.d.ts.map +1 -0
  22. package/dist/src/contact/index.d.ts +21 -21
  23. package/dist/src/contact/schema.d.ts +3 -3
  24. package/dist/src/contact/validation.d.ts +21 -21
  25. package/dist/src/contract.d.ts +12941 -5216
  26. package/dist/src/contract.d.ts.map +1 -1
  27. package/dist/src/cx-log/index.d.ts +129 -0
  28. package/dist/src/cx-log/index.d.ts.map +1 -1
  29. package/dist/src/cx-log/schema.d.ts +95 -0
  30. package/dist/src/cx-log/schema.d.ts.map +1 -1
  31. package/dist/src/dashboard/index.d.ts +1852 -0
  32. package/dist/src/dashboard/index.d.ts.map +1 -0
  33. package/dist/src/dashboard/schema.d.ts +885 -0
  34. package/dist/src/dashboard/schema.d.ts.map +1 -0
  35. package/dist/src/dashboard/validation.d.ts +19 -0
  36. package/dist/src/dashboard/validation.d.ts.map +1 -0
  37. package/dist/src/mail/mail-contract.d.ts +12 -12
  38. package/dist/src/mail/room-contract.d.ts +12 -12
  39. package/dist/src/mail/schemas/room-validation.schema.d.ts +4 -4
  40. package/dist/src/mail/schemas/room.schema.d.ts +2 -2
  41. package/dist/src/messenger/index.d.ts +255 -73
  42. package/dist/src/messenger/index.d.ts.map +1 -1
  43. package/dist/src/telephony-cdr/schema.d.ts +4 -4
  44. package/dist/src/telephony-live-queue-call/schema.d.ts +2 -2
  45. package/dist/src/telephony-queue-call-count/schema.d.ts +2 -2
  46. package/dist/src/ticket/index.d.ts +59 -62
  47. package/dist/src/ticket/index.d.ts.map +1 -1
  48. package/dist/src/ticket/validation.d.ts +59 -62
  49. package/dist/src/ticket/validation.d.ts.map +1 -1
  50. package/dist/src/user/index.d.ts.map +1 -1
  51. package/package.json +4 -10
  52. package/dist/src/platform-contact/schema.d.ts +0 -30
  53. package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -3,9 +3,6 @@ export declare const messengerContract: {
3
3
  body: import("zod").ZodObject<{
4
4
  room: import("zod").ZodObject<{
5
5
  id: import("zod").ZodString;
6
- createdAt: import("zod").ZodNullable<import("zod").ZodDate>;
7
- updatedAt: import("zod").ZodNullable<import("zod").ZodDate>;
8
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
9
6
  lastMessage: import("zod").ZodOptional<import("zod").ZodString>;
10
7
  handleTime: import("zod").ZodOptional<import("zod").ZodNumber>;
11
8
  isLatest: import("zod").ZodBoolean;
@@ -13,7 +10,7 @@ export declare const messengerContract: {
13
10
  platformContact: import("zod").ZodObject<{
14
11
  channelId: import("zod").ZodString;
15
12
  socialPlatformId: import("zod").ZodNullable<import("zod").ZodString>;
16
- type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"]>;
13
+ type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
17
14
  metadata: import("zod").ZodObject<{
18
15
  id: import("zod").ZodString;
19
16
  name: import("zod").ZodString;
@@ -53,7 +50,7 @@ export declare const messengerContract: {
53
50
  socialProfileUrl: string | null;
54
51
  }>;
55
52
  }, "strip", import("zod").ZodTypeAny, {
56
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
53
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
57
54
  metadata: {
58
55
  id: string;
59
56
  name: string;
@@ -71,7 +68,7 @@ export declare const messengerContract: {
71
68
  channelId: string;
72
69
  socialPlatformId: string | null;
73
70
  }, {
74
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
71
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
75
72
  metadata: {
76
73
  id: string;
77
74
  name: string;
@@ -107,7 +104,7 @@ export declare const messengerContract: {
107
104
  }>>;
108
105
  channel: import("zod").ZodObject<{
109
106
  name: import("zod").ZodString;
110
- type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"]>;
107
+ type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
111
108
  metadata: import("zod").ZodObject<{
112
109
  id: import("zod").ZodString;
113
110
  name: import("zod").ZodString;
@@ -126,12 +123,12 @@ export declare const messengerContract: {
126
123
  }>;
127
124
  brandName: import("zod").ZodString;
128
125
  platformId: import("zod").ZodString;
129
- status: import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<0>]>;
126
+ status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
130
127
  isReloginRequired: import("zod").ZodBoolean;
131
128
  connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
132
129
  connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
133
130
  }, "strip", import("zod").ZodTypeAny, {
134
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
131
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
135
132
  name: string;
136
133
  metadata: {
137
134
  id: string;
@@ -139,14 +136,14 @@ export declare const messengerContract: {
139
136
  accessToken: string;
140
137
  additionalCredentials?: any;
141
138
  };
142
- status: 0 | 1;
139
+ status: boolean;
143
140
  brandName: string;
144
141
  platformId: string;
145
142
  isReloginRequired: boolean;
146
143
  connectedUserName?: string | null | undefined;
147
144
  connectedUserId?: string | null | undefined;
148
145
  }, {
149
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
146
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
150
147
  name: string;
151
148
  metadata: {
152
149
  id: string;
@@ -154,7 +151,7 @@ export declare const messengerContract: {
154
151
  accessToken: string;
155
152
  additionalCredentials?: any;
156
153
  };
157
- status: 0 | 1;
154
+ status: boolean;
158
155
  brandName: string;
159
156
  platformId: string;
160
157
  isReloginRequired: boolean;
@@ -164,7 +161,7 @@ export declare const messengerContract: {
164
161
  }, "strip", import("zod").ZodTypeAny, {
165
162
  id: string;
166
163
  channel: {
167
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
164
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
168
165
  name: string;
169
166
  metadata: {
170
167
  id: string;
@@ -172,7 +169,7 @@ export declare const messengerContract: {
172
169
  accessToken: string;
173
170
  additionalCredentials?: any;
174
171
  };
175
- status: 0 | 1;
172
+ status: boolean;
176
173
  brandName: string;
177
174
  platformId: string;
178
175
  isReloginRequired: boolean;
@@ -180,9 +177,6 @@ export declare const messengerContract: {
180
177
  connectedUserId?: string | null | undefined;
181
178
  };
182
179
  direction: "incoming" | "outgoing" | "system";
183
- createdAt: Date | null;
184
- updatedAt: Date | null;
185
- deletedAt: Date | null;
186
180
  actor: {
187
181
  address: string | null;
188
182
  name: string;
@@ -191,7 +185,7 @@ export declare const messengerContract: {
191
185
  } | null;
192
186
  isLatest: boolean;
193
187
  platformContact: {
194
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
188
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
195
189
  metadata: {
196
190
  id: string;
197
191
  name: string;
@@ -214,7 +208,7 @@ export declare const messengerContract: {
214
208
  }, {
215
209
  id: string;
216
210
  channel: {
217
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
211
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
218
212
  name: string;
219
213
  metadata: {
220
214
  id: string;
@@ -222,7 +216,7 @@ export declare const messengerContract: {
222
216
  accessToken: string;
223
217
  additionalCredentials?: any;
224
218
  };
225
- status: 0 | 1;
219
+ status: boolean;
226
220
  brandName: string;
227
221
  platformId: string;
228
222
  isReloginRequired: boolean;
@@ -230,9 +224,6 @@ export declare const messengerContract: {
230
224
  connectedUserId?: string | null | undefined;
231
225
  };
232
226
  direction: "incoming" | "outgoing" | "system";
233
- createdAt: Date | null;
234
- updatedAt: Date | null;
235
- deletedAt: Date | null;
236
227
  actor: {
237
228
  address: string | null;
238
229
  name: string;
@@ -241,7 +232,7 @@ export declare const messengerContract: {
241
232
  } | null;
242
233
  isLatest: boolean;
243
234
  platformContact: {
244
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
235
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
245
236
  metadata: {
246
237
  id: string;
247
238
  name: string;
@@ -416,7 +407,7 @@ export declare const messengerContract: {
416
407
  room: {
417
408
  id: string;
418
409
  channel: {
419
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
410
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
420
411
  name: string;
421
412
  metadata: {
422
413
  id: string;
@@ -424,7 +415,7 @@ export declare const messengerContract: {
424
415
  accessToken: string;
425
416
  additionalCredentials?: any;
426
417
  };
427
- status: 0 | 1;
418
+ status: boolean;
428
419
  brandName: string;
429
420
  platformId: string;
430
421
  isReloginRequired: boolean;
@@ -432,9 +423,6 @@ export declare const messengerContract: {
432
423
  connectedUserId?: string | null | undefined;
433
424
  };
434
425
  direction: "incoming" | "outgoing" | "system";
435
- createdAt: Date | null;
436
- updatedAt: Date | null;
437
- deletedAt: Date | null;
438
426
  actor: {
439
427
  address: string | null;
440
428
  name: string;
@@ -443,7 +431,7 @@ export declare const messengerContract: {
443
431
  } | null;
444
432
  isLatest: boolean;
445
433
  platformContact: {
446
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
434
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
447
435
  metadata: {
448
436
  id: string;
449
437
  name: string;
@@ -499,7 +487,7 @@ export declare const messengerContract: {
499
487
  room: {
500
488
  id: string;
501
489
  channel: {
502
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
490
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
503
491
  name: string;
504
492
  metadata: {
505
493
  id: string;
@@ -507,7 +495,7 @@ export declare const messengerContract: {
507
495
  accessToken: string;
508
496
  additionalCredentials?: any;
509
497
  };
510
- status: 0 | 1;
498
+ status: boolean;
511
499
  brandName: string;
512
500
  platformId: string;
513
501
  isReloginRequired: boolean;
@@ -515,9 +503,6 @@ export declare const messengerContract: {
515
503
  connectedUserId?: string | null | undefined;
516
504
  };
517
505
  direction: "incoming" | "outgoing" | "system";
518
- createdAt: Date | null;
519
- updatedAt: Date | null;
520
- deletedAt: Date | null;
521
506
  actor: {
522
507
  address: string | null;
523
508
  name: string;
@@ -526,7 +511,7 @@ export declare const messengerContract: {
526
511
  } | null;
527
512
  isLatest: boolean;
528
513
  platformContact: {
529
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
514
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
530
515
  metadata: {
531
516
  id: string;
532
517
  name: string;
@@ -590,7 +575,7 @@ export declare const messengerContract: {
590
575
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
591
576
  channelId: import("zod").ZodString;
592
577
  socialPlatformId: import("zod").ZodString;
593
- type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"]>;
578
+ type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
594
579
  metadata: import("zod").ZodObject<{
595
580
  id: import("zod").ZodString;
596
581
  name: import("zod").ZodString;
@@ -654,7 +639,7 @@ export declare const messengerContract: {
654
639
  textValue: import("zod").ZodNullable<import("zod").ZodString>;
655
640
  booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
656
641
  numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
657
- dateValue: import("zod").ZodNullable<import("zod").ZodString>;
642
+ dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
658
643
  attribute: import("zod").ZodObject<Omit<{
659
644
  id: import("zod").ZodString;
660
645
  createdAt: import("zod").ZodDate;
@@ -758,7 +743,7 @@ export declare const messengerContract: {
758
743
  textValue: string | null;
759
744
  booleanValue: boolean | null;
760
745
  numberValue: number | null;
761
- dateValue: string | null;
746
+ dateValue: Date | null;
762
747
  }, {
763
748
  id: string;
764
749
  createdAt: Date;
@@ -781,7 +766,7 @@ export declare const messengerContract: {
781
766
  textValue: string | null;
782
767
  booleanValue: boolean | null;
783
768
  numberValue: number | null;
784
- dateValue: string | null;
769
+ dateValue: Date | null;
785
770
  }>, "many">>;
786
771
  }, "customFields">, "strip", import("zod").ZodTypeAny, {
787
772
  id: string;
@@ -1348,7 +1333,7 @@ export declare const messengerContract: {
1348
1333
  }[] | undefined;
1349
1334
  }>;
1350
1335
  }, "strip", import("zod").ZodTypeAny, {
1351
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1336
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1352
1337
  id: string;
1353
1338
  metadata: {
1354
1339
  id: string;
@@ -1464,7 +1449,7 @@ export declare const messengerContract: {
1464
1449
  channelId: string;
1465
1450
  socialPlatformId: string;
1466
1451
  }, {
1467
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1452
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1468
1453
  id: string;
1469
1454
  metadata: {
1470
1455
  id: string;
@@ -1984,7 +1969,7 @@ export declare const messengerContract: {
1984
1969
  updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
1985
1970
  deletedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1986
1971
  name: import("zod").ZodOptional<import("zod").ZodString>;
1987
- type: import("zod").ZodOptional<import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"]>>;
1972
+ type: import("zod").ZodOptional<import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
1988
1973
  metadata: import("zod").ZodOptional<import("zod").ZodObject<{
1989
1974
  id: import("zod").ZodString;
1990
1975
  name: import("zod").ZodString;
@@ -2003,7 +1988,7 @@ export declare const messengerContract: {
2003
1988
  }>>;
2004
1989
  brandName: import("zod").ZodOptional<import("zod").ZodString>;
2005
1990
  platformId: import("zod").ZodOptional<import("zod").ZodString>;
2006
- status: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<0>]>>;
1991
+ status: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>>;
2007
1992
  isReloginRequired: import("zod").ZodOptional<import("zod").ZodBoolean>;
2008
1993
  connectedUserName: import("zod").ZodOptional<import("zod").ZodString>;
2009
1994
  connectedUserId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -2212,7 +2197,7 @@ export declare const messengerContract: {
2212
2197
  updatedAt?: Date | undefined;
2213
2198
  deletedAt?: Date | null | undefined;
2214
2199
  name?: string | undefined;
2215
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
2200
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2216
2201
  metadata?: {
2217
2202
  id: string;
2218
2203
  name: string;
@@ -2221,7 +2206,7 @@ export declare const messengerContract: {
2221
2206
  } | undefined;
2222
2207
  brandName?: string | undefined;
2223
2208
  platformId?: string | undefined;
2224
- status?: 0 | 1 | undefined;
2209
+ status?: boolean | undefined;
2225
2210
  isReloginRequired?: boolean | undefined;
2226
2211
  connectedUserName?: string | undefined;
2227
2212
  connectedUserId?: string | undefined;
@@ -2274,7 +2259,7 @@ export declare const messengerContract: {
2274
2259
  updatedAt?: Date | undefined;
2275
2260
  deletedAt?: Date | null | undefined;
2276
2261
  name?: string | undefined;
2277
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
2262
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2278
2263
  metadata?: {
2279
2264
  id: string;
2280
2265
  name: string;
@@ -2283,7 +2268,7 @@ export declare const messengerContract: {
2283
2268
  } | undefined;
2284
2269
  brandName?: string | undefined;
2285
2270
  platformId?: string | undefined;
2286
- status?: 0 | 1 | undefined;
2271
+ status?: boolean | undefined;
2287
2272
  isReloginRequired?: boolean | undefined;
2288
2273
  connectedUserName?: string | undefined;
2289
2274
  connectedUserId?: string | undefined;
@@ -2331,7 +2316,7 @@ export declare const messengerContract: {
2331
2316
  } | undefined;
2332
2317
  } | undefined;
2333
2318
  }>>;
2334
- cxLog: import("zod").ZodObject<{
2319
+ cxlog: import("zod").ZodObject<{
2335
2320
  id: import("zod").ZodString;
2336
2321
  createdAt: import("zod").ZodDate;
2337
2322
  updatedAt: import("zod").ZodDate;
@@ -2348,6 +2333,67 @@ export declare const messengerContract: {
2348
2333
  handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
2349
2334
  firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
2350
2335
  disposition: import("zod").ZodNullable<import("zod").ZodString>;
2336
+ wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
2337
+ id: import("zod").ZodString;
2338
+ createdAt: import("zod").ZodDate;
2339
+ updatedAt: import("zod").ZodDate;
2340
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2341
+ note: import("zod").ZodNullable<import("zod").ZodString>;
2342
+ disposition: import("zod").ZodNullable<import("zod").ZodString>;
2343
+ callFrom: import("zod").ZodNullable<import("zod").ZodString>;
2344
+ callTo: import("zod").ZodNullable<import("zod").ZodString>;
2345
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
2346
+ id: import("zod").ZodString;
2347
+ createdAt: import("zod").ZodDate;
2348
+ updatedAt: import("zod").ZodDate;
2349
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2350
+ name: import("zod").ZodString;
2351
+ }, "strip", import("zod").ZodTypeAny, {
2352
+ id: string;
2353
+ name: string;
2354
+ createdAt: Date;
2355
+ updatedAt: Date;
2356
+ deletedAt: Date | null;
2357
+ }, {
2358
+ id: string;
2359
+ name: string;
2360
+ createdAt: Date;
2361
+ updatedAt: Date;
2362
+ deletedAt: Date | null;
2363
+ }>, "many">;
2364
+ }, "strip", import("zod").ZodTypeAny, {
2365
+ id: string;
2366
+ disposition: string | null;
2367
+ createdAt: Date;
2368
+ updatedAt: Date;
2369
+ deletedAt: Date | null;
2370
+ tags: {
2371
+ id: string;
2372
+ name: string;
2373
+ createdAt: Date;
2374
+ updatedAt: Date;
2375
+ deletedAt: Date | null;
2376
+ }[];
2377
+ note: string | null;
2378
+ callFrom: string | null;
2379
+ callTo: string | null;
2380
+ }, {
2381
+ id: string;
2382
+ disposition: string | null;
2383
+ createdAt: Date;
2384
+ updatedAt: Date;
2385
+ deletedAt: Date | null;
2386
+ tags: {
2387
+ id: string;
2388
+ name: string;
2389
+ createdAt: Date;
2390
+ updatedAt: Date;
2391
+ deletedAt: Date | null;
2392
+ }[];
2393
+ note: string | null;
2394
+ callFrom: string | null;
2395
+ callTo: string | null;
2396
+ }>>;
2351
2397
  }, "strip", import("zod").ZodTypeAny, {
2352
2398
  id: string;
2353
2399
  channel: string | null;
@@ -2365,6 +2411,23 @@ export declare const messengerContract: {
2365
2411
  startedDate: Date | null;
2366
2412
  handledTime: number | null;
2367
2413
  firstResponseTime: number | null;
2414
+ wrapUpForm: {
2415
+ id: string;
2416
+ disposition: string | null;
2417
+ createdAt: Date;
2418
+ updatedAt: Date;
2419
+ deletedAt: Date | null;
2420
+ tags: {
2421
+ id: string;
2422
+ name: string;
2423
+ createdAt: Date;
2424
+ updatedAt: Date;
2425
+ deletedAt: Date | null;
2426
+ }[];
2427
+ note: string | null;
2428
+ callFrom: string | null;
2429
+ callTo: string | null;
2430
+ } | null;
2368
2431
  }, {
2369
2432
  id: string;
2370
2433
  channel: string | null;
@@ -2382,6 +2445,23 @@ export declare const messengerContract: {
2382
2445
  startedDate: Date | null;
2383
2446
  handledTime: number | null;
2384
2447
  firstResponseTime: number | null;
2448
+ wrapUpForm: {
2449
+ id: string;
2450
+ disposition: string | null;
2451
+ createdAt: Date;
2452
+ updatedAt: Date;
2453
+ deletedAt: Date | null;
2454
+ tags: {
2455
+ id: string;
2456
+ name: string;
2457
+ createdAt: Date;
2458
+ updatedAt: Date;
2459
+ deletedAt: Date | null;
2460
+ }[];
2461
+ note: string | null;
2462
+ callFrom: string | null;
2463
+ callTo: string | null;
2464
+ } | null;
2385
2465
  }>;
2386
2466
  }, "strip", import("zod").ZodTypeAny, {
2387
2467
  id: string;
@@ -2440,7 +2520,7 @@ export declare const messengerContract: {
2440
2520
  firstResponseAt: Date;
2441
2521
  isLatest: boolean;
2442
2522
  platformContact: {
2443
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2523
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
2444
2524
  id: string;
2445
2525
  metadata: {
2446
2526
  id: string;
@@ -2599,7 +2679,7 @@ export declare const messengerContract: {
2599
2679
  telephonySignature: string | null;
2600
2680
  } | undefined;
2601
2681
  };
2602
- cxLog: {
2682
+ cxlog: {
2603
2683
  id: string;
2604
2684
  channel: string | null;
2605
2685
  disposition: string | null;
@@ -2616,6 +2696,23 @@ export declare const messengerContract: {
2616
2696
  startedDate: Date | null;
2617
2697
  handledTime: number | null;
2618
2698
  firstResponseTime: number | null;
2699
+ wrapUpForm: {
2700
+ id: string;
2701
+ disposition: string | null;
2702
+ createdAt: Date;
2703
+ updatedAt: Date;
2704
+ deletedAt: Date | null;
2705
+ tags: {
2706
+ id: string;
2707
+ name: string;
2708
+ createdAt: Date;
2709
+ updatedAt: Date;
2710
+ deletedAt: Date | null;
2711
+ }[];
2712
+ note: string | null;
2713
+ callFrom: string | null;
2714
+ callTo: string | null;
2715
+ } | null;
2619
2716
  };
2620
2717
  channel?: {
2621
2718
  id?: string | undefined;
@@ -2623,7 +2720,7 @@ export declare const messengerContract: {
2623
2720
  updatedAt?: Date | undefined;
2624
2721
  deletedAt?: Date | null | undefined;
2625
2722
  name?: string | undefined;
2626
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
2723
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2627
2724
  metadata?: {
2628
2725
  id: string;
2629
2726
  name: string;
@@ -2632,7 +2729,7 @@ export declare const messengerContract: {
2632
2729
  } | undefined;
2633
2730
  brandName?: string | undefined;
2634
2731
  platformId?: string | undefined;
2635
- status?: 0 | 1 | undefined;
2732
+ status?: boolean | undefined;
2636
2733
  isReloginRequired?: boolean | undefined;
2637
2734
  connectedUserName?: string | undefined;
2638
2735
  connectedUserId?: string | undefined;
@@ -2737,7 +2834,7 @@ export declare const messengerContract: {
2737
2834
  firstResponseAt: Date;
2738
2835
  isLatest: boolean;
2739
2836
  platformContact: {
2740
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2837
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
2741
2838
  id: string;
2742
2839
  metadata: {
2743
2840
  id: string;
@@ -2896,7 +2993,7 @@ export declare const messengerContract: {
2896
2993
  telephonySignature: string | null;
2897
2994
  } | undefined;
2898
2995
  };
2899
- cxLog: {
2996
+ cxlog: {
2900
2997
  id: string;
2901
2998
  channel: string | null;
2902
2999
  disposition: string | null;
@@ -2913,6 +3010,23 @@ export declare const messengerContract: {
2913
3010
  startedDate: Date | null;
2914
3011
  handledTime: number | null;
2915
3012
  firstResponseTime: number | null;
3013
+ wrapUpForm: {
3014
+ id: string;
3015
+ disposition: string | null;
3016
+ createdAt: Date;
3017
+ updatedAt: Date;
3018
+ deletedAt: Date | null;
3019
+ tags: {
3020
+ id: string;
3021
+ name: string;
3022
+ createdAt: Date;
3023
+ updatedAt: Date;
3024
+ deletedAt: Date | null;
3025
+ }[];
3026
+ note: string | null;
3027
+ callFrom: string | null;
3028
+ callTo: string | null;
3029
+ } | null;
2916
3030
  };
2917
3031
  channel?: {
2918
3032
  id?: string | undefined;
@@ -2920,7 +3034,7 @@ export declare const messengerContract: {
2920
3034
  updatedAt?: Date | undefined;
2921
3035
  deletedAt?: Date | null | undefined;
2922
3036
  name?: string | undefined;
2923
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
3037
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2924
3038
  metadata?: {
2925
3039
  id: string;
2926
3040
  name: string;
@@ -2929,7 +3043,7 @@ export declare const messengerContract: {
2929
3043
  } | undefined;
2930
3044
  brandName?: string | undefined;
2931
3045
  platformId?: string | undefined;
2932
- status?: 0 | 1 | undefined;
3046
+ status?: boolean | undefined;
2933
3047
  isReloginRequired?: boolean | undefined;
2934
3048
  connectedUserName?: string | undefined;
2935
3049
  connectedUserId?: string | undefined;
@@ -3772,7 +3886,7 @@ export declare const messengerContract: {
3772
3886
  firstResponseAt: Date;
3773
3887
  isLatest: boolean;
3774
3888
  platformContact: {
3775
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
3889
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
3776
3890
  id: string;
3777
3891
  metadata: {
3778
3892
  id: string;
@@ -3931,7 +4045,7 @@ export declare const messengerContract: {
3931
4045
  telephonySignature: string | null;
3932
4046
  } | undefined;
3933
4047
  };
3934
- cxLog: {
4048
+ cxlog: {
3935
4049
  id: string;
3936
4050
  channel: string | null;
3937
4051
  disposition: string | null;
@@ -3948,6 +4062,23 @@ export declare const messengerContract: {
3948
4062
  startedDate: Date | null;
3949
4063
  handledTime: number | null;
3950
4064
  firstResponseTime: number | null;
4065
+ wrapUpForm: {
4066
+ id: string;
4067
+ disposition: string | null;
4068
+ createdAt: Date;
4069
+ updatedAt: Date;
4070
+ deletedAt: Date | null;
4071
+ tags: {
4072
+ id: string;
4073
+ name: string;
4074
+ createdAt: Date;
4075
+ updatedAt: Date;
4076
+ deletedAt: Date | null;
4077
+ }[];
4078
+ note: string | null;
4079
+ callFrom: string | null;
4080
+ callTo: string | null;
4081
+ } | null;
3951
4082
  };
3952
4083
  channel?: {
3953
4084
  id?: string | undefined;
@@ -3955,7 +4086,7 @@ export declare const messengerContract: {
3955
4086
  updatedAt?: Date | undefined;
3956
4087
  deletedAt?: Date | null | undefined;
3957
4088
  name?: string | undefined;
3958
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
4089
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3959
4090
  metadata?: {
3960
4091
  id: string;
3961
4092
  name: string;
@@ -3964,7 +4095,7 @@ export declare const messengerContract: {
3964
4095
  } | undefined;
3965
4096
  brandName?: string | undefined;
3966
4097
  platformId?: string | undefined;
3967
- status?: 0 | 1 | undefined;
4098
+ status?: boolean | undefined;
3968
4099
  isReloginRequired?: boolean | undefined;
3969
4100
  connectedUserName?: string | undefined;
3970
4101
  connectedUserId?: string | undefined;
@@ -4227,7 +4358,7 @@ export declare const messengerContract: {
4227
4358
  firstResponseAt: Date;
4228
4359
  isLatest: boolean;
4229
4360
  platformContact: {
4230
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
4361
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
4231
4362
  id: string;
4232
4363
  metadata: {
4233
4364
  id: string;
@@ -4386,7 +4517,7 @@ export declare const messengerContract: {
4386
4517
  telephonySignature: string | null;
4387
4518
  } | undefined;
4388
4519
  };
4389
- cxLog: {
4520
+ cxlog: {
4390
4521
  id: string;
4391
4522
  channel: string | null;
4392
4523
  disposition: string | null;
@@ -4403,6 +4534,23 @@ export declare const messengerContract: {
4403
4534
  startedDate: Date | null;
4404
4535
  handledTime: number | null;
4405
4536
  firstResponseTime: number | null;
4537
+ wrapUpForm: {
4538
+ id: string;
4539
+ disposition: string | null;
4540
+ createdAt: Date;
4541
+ updatedAt: Date;
4542
+ deletedAt: Date | null;
4543
+ tags: {
4544
+ id: string;
4545
+ name: string;
4546
+ createdAt: Date;
4547
+ updatedAt: Date;
4548
+ deletedAt: Date | null;
4549
+ }[];
4550
+ note: string | null;
4551
+ callFrom: string | null;
4552
+ callTo: string | null;
4553
+ } | null;
4406
4554
  };
4407
4555
  channel?: {
4408
4556
  id?: string | undefined;
@@ -4410,7 +4558,7 @@ export declare const messengerContract: {
4410
4558
  updatedAt?: Date | undefined;
4411
4559
  deletedAt?: Date | null | undefined;
4412
4560
  name?: string | undefined;
4413
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
4561
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
4414
4562
  metadata?: {
4415
4563
  id: string;
4416
4564
  name: string;
@@ -4419,7 +4567,7 @@ export declare const messengerContract: {
4419
4567
  } | undefined;
4420
4568
  brandName?: string | undefined;
4421
4569
  platformId?: string | undefined;
4422
- status?: 0 | 1 | undefined;
4570
+ status?: boolean | undefined;
4423
4571
  isReloginRequired?: boolean | undefined;
4424
4572
  connectedUserName?: string | undefined;
4425
4573
  connectedUserId?: string | undefined;
@@ -4684,7 +4832,7 @@ export declare const messengerContract: {
4684
4832
  firstResponseAt: Date;
4685
4833
  isLatest: boolean;
4686
4834
  platformContact: {
4687
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
4835
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
4688
4836
  id: string;
4689
4837
  metadata: {
4690
4838
  id: string;
@@ -4843,7 +4991,7 @@ export declare const messengerContract: {
4843
4991
  telephonySignature: string | null;
4844
4992
  } | undefined;
4845
4993
  };
4846
- cxLog: {
4994
+ cxlog: {
4847
4995
  id: string;
4848
4996
  channel: string | null;
4849
4997
  disposition: string | null;
@@ -4860,6 +5008,23 @@ export declare const messengerContract: {
4860
5008
  startedDate: Date | null;
4861
5009
  handledTime: number | null;
4862
5010
  firstResponseTime: number | null;
5011
+ wrapUpForm: {
5012
+ id: string;
5013
+ disposition: string | null;
5014
+ createdAt: Date;
5015
+ updatedAt: Date;
5016
+ deletedAt: Date | null;
5017
+ tags: {
5018
+ id: string;
5019
+ name: string;
5020
+ createdAt: Date;
5021
+ updatedAt: Date;
5022
+ deletedAt: Date | null;
5023
+ }[];
5024
+ note: string | null;
5025
+ callFrom: string | null;
5026
+ callTo: string | null;
5027
+ } | null;
4863
5028
  };
4864
5029
  channel?: {
4865
5030
  id?: string | undefined;
@@ -4867,7 +5032,7 @@ export declare const messengerContract: {
4867
5032
  updatedAt?: Date | undefined;
4868
5033
  deletedAt?: Date | null | undefined;
4869
5034
  name?: string | undefined;
4870
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
5035
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
4871
5036
  metadata?: {
4872
5037
  id: string;
4873
5038
  name: string;
@@ -4876,7 +5041,7 @@ export declare const messengerContract: {
4876
5041
  } | undefined;
4877
5042
  brandName?: string | undefined;
4878
5043
  platformId?: string | undefined;
4879
- status?: 0 | 1 | undefined;
5044
+ status?: boolean | undefined;
4880
5045
  isReloginRequired?: boolean | undefined;
4881
5046
  connectedUserName?: string | undefined;
4882
5047
  connectedUserId?: string | undefined;
@@ -5142,7 +5307,7 @@ export declare const messengerContract: {
5142
5307
  firstResponseAt: Date;
5143
5308
  isLatest: boolean;
5144
5309
  platformContact: {
5145
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
5310
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5146
5311
  id: string;
5147
5312
  metadata: {
5148
5313
  id: string;
@@ -5301,7 +5466,7 @@ export declare const messengerContract: {
5301
5466
  telephonySignature: string | null;
5302
5467
  } | undefined;
5303
5468
  };
5304
- cxLog: {
5469
+ cxlog: {
5305
5470
  id: string;
5306
5471
  channel: string | null;
5307
5472
  disposition: string | null;
@@ -5318,6 +5483,23 @@ export declare const messengerContract: {
5318
5483
  startedDate: Date | null;
5319
5484
  handledTime: number | null;
5320
5485
  firstResponseTime: number | null;
5486
+ wrapUpForm: {
5487
+ id: string;
5488
+ disposition: string | null;
5489
+ createdAt: Date;
5490
+ updatedAt: Date;
5491
+ deletedAt: Date | null;
5492
+ tags: {
5493
+ id: string;
5494
+ name: string;
5495
+ createdAt: Date;
5496
+ updatedAt: Date;
5497
+ deletedAt: Date | null;
5498
+ }[];
5499
+ note: string | null;
5500
+ callFrom: string | null;
5501
+ callTo: string | null;
5502
+ } | null;
5321
5503
  };
5322
5504
  channel?: {
5323
5505
  id?: string | undefined;
@@ -5325,7 +5507,7 @@ export declare const messengerContract: {
5325
5507
  updatedAt?: Date | undefined;
5326
5508
  deletedAt?: Date | null | undefined;
5327
5509
  name?: string | undefined;
5328
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | undefined;
5510
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5329
5511
  metadata?: {
5330
5512
  id: string;
5331
5513
  name: string;
@@ -5334,7 +5516,7 @@ export declare const messengerContract: {
5334
5516
  } | undefined;
5335
5517
  brandName?: string | undefined;
5336
5518
  platformId?: string | undefined;
5337
- status?: 0 | 1 | undefined;
5519
+ status?: boolean | undefined;
5338
5520
  isReloginRequired?: boolean | undefined;
5339
5521
  connectedUserName?: string | undefined;
5340
5522
  connectedUserId?: string | undefined;