@kl1/contracts 1.0.66 → 1.0.68

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 +2328 -2331
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2328 -2331
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/app/index.d.ts +17 -0
  6. package/dist/src/app/index.d.ts.map +1 -0
  7. package/dist/src/call-log/schema.d.ts +4 -4
  8. package/dist/src/call-log/validation.d.ts +2 -2
  9. package/dist/src/channel/index.d.ts +67 -707
  10. package/dist/src/channel/index.d.ts.map +1 -1
  11. package/dist/src/channel/validation.d.ts +19 -0
  12. package/dist/src/channel/validation.d.ts.map +1 -1
  13. package/dist/src/chat/index.d.ts +600 -600
  14. package/dist/src/chat/schema.d.ts +74 -74
  15. package/dist/src/chat/validation.d.ts +128 -128
  16. package/dist/src/comment/index.d.ts +609 -609
  17. package/dist/src/comment/schema.d.ts +144 -144
  18. package/dist/src/contract.d.ts +3401 -4062
  19. package/dist/src/contract.d.ts.map +1 -1
  20. package/dist/src/cx-log/index.d.ts +90 -90
  21. package/dist/src/cx-log/schema.d.ts +62 -62
  22. package/dist/src/dashboard/index.d.ts +16 -31
  23. package/dist/src/dashboard/index.d.ts.map +1 -1
  24. package/dist/src/dashboard/schema.d.ts +6 -15
  25. package/dist/src/dashboard/schema.d.ts.map +1 -1
  26. package/dist/src/instagram/index.d.ts +78 -78
  27. package/dist/src/line/index.d.ts +96 -96
  28. package/dist/src/line/schema.d.ts +19 -19
  29. package/dist/src/line/schema.d.ts.map +1 -1
  30. package/dist/src/mail/mail-contract.d.ts +24 -24
  31. package/dist/src/mail/mail-server.d.ts +216 -0
  32. package/dist/src/mail/mail-server.d.ts.map +1 -0
  33. package/dist/src/mail/room-contract.d.ts +24 -24
  34. package/dist/src/mail/schemas/room-validation.schema.d.ts +8 -8
  35. package/dist/src/mail/schemas/room.schema.d.ts +4 -4
  36. package/dist/src/messenger/index.d.ts +78 -78
  37. package/dist/src/platform-contact/schema.d.ts +30 -0
  38. package/dist/src/platform-contact/schema.d.ts.map +1 -0
  39. package/dist/src/telephony-cdr/index.d.ts +38 -38
  40. package/dist/src/telephony-cdr/schema.d.ts +6 -6
  41. package/dist/src/telephony-cdr/validation.d.ts +5 -5
  42. package/dist/src/telephony-cdr/validation.d.ts.map +1 -1
  43. package/dist/src/ticket/index.d.ts +1084 -1084
  44. package/dist/src/ticket/schema.d.ts +72 -72
  45. package/dist/src/ticket/validation.d.ts +12 -12
  46. package/dist/src/user-presence-status-log/index.d.ts +4 -9
  47. package/dist/src/user-presence-status-log/index.d.ts.map +1 -1
  48. package/dist/src/user-presence-status-log/validation.d.ts +7 -0
  49. package/dist/src/user-presence-status-log/validation.d.ts.map +1 -1
  50. package/dist/src/wrap-up-form/index.d.ts +19 -19
  51. package/dist/src/wrap-up-form/schema.d.ts +2 -2
  52. package/dist/src/wrap-up-form/validation.d.ts +3 -3
  53. package/package.json +1 -1
@@ -844,7 +844,6 @@ export declare const receiveMessageContract: {
844
844
  createdAt: string;
845
845
  updatedAt: string;
846
846
  deletedAt: string | null;
847
- channelId: string;
848
847
  contact: {
849
848
  id: string;
850
849
  channel: string | null;
@@ -949,6 +948,7 @@ export declare const receiveMessageContract: {
949
948
  };
950
949
  }[] | undefined;
951
950
  };
951
+ channelId: string;
952
952
  socialPlatformId: string;
953
953
  }, {
954
954
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -962,7 +962,6 @@ export declare const receiveMessageContract: {
962
962
  createdAt: string;
963
963
  updatedAt: string;
964
964
  deletedAt: string | null;
965
- channelId: string;
966
965
  contact: {
967
966
  id: string;
968
967
  channel: string | null;
@@ -1067,6 +1066,7 @@ export declare const receiveMessageContract: {
1067
1066
  };
1068
1067
  }[] | undefined;
1069
1068
  };
1069
+ channelId: string;
1070
1070
  socialPlatformId: string;
1071
1071
  }>>;
1072
1072
  actor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -1626,9 +1626,9 @@ export declare const receiveMessageContract: {
1626
1626
  updatedAt: Date;
1627
1627
  deletedAt: Date | null;
1628
1628
  }[];
1629
+ note: string | null;
1629
1630
  callFrom: string | null;
1630
1631
  callTo: string | null;
1631
- note: string | null;
1632
1632
  }, {
1633
1633
  id: string;
1634
1634
  disposition: string | null;
@@ -1642,9 +1642,9 @@ export declare const receiveMessageContract: {
1642
1642
  updatedAt: Date;
1643
1643
  deletedAt: Date | null;
1644
1644
  }[];
1645
+ note: string | null;
1645
1646
  callFrom: string | null;
1646
1647
  callTo: string | null;
1647
- note: string | null;
1648
1648
  }>>;
1649
1649
  }, "strip", z.ZodTypeAny, {
1650
1650
  id: string;
@@ -1655,14 +1655,14 @@ export declare const receiveMessageContract: {
1655
1655
  updatedAt: Date;
1656
1656
  deletedAt: Date | null;
1657
1657
  entityId: string;
1658
- queueId: string | null;
1659
- contactId: string | null;
1658
+ firstResponseTime: number | null;
1660
1659
  caseId: number;
1661
1660
  entityName: string;
1661
+ contactId: string | null;
1662
+ queueId: string | null;
1662
1663
  agentId: string | null;
1663
1664
  startedDate: Date | null;
1664
1665
  handledTime: number | null;
1665
- firstResponseTime: number | null;
1666
1666
  wrapUpForm: {
1667
1667
  id: string;
1668
1668
  disposition: string | null;
@@ -1676,9 +1676,9 @@ export declare const receiveMessageContract: {
1676
1676
  updatedAt: Date;
1677
1677
  deletedAt: Date | null;
1678
1678
  }[];
1679
+ note: string | null;
1679
1680
  callFrom: string | null;
1680
1681
  callTo: string | null;
1681
- note: string | null;
1682
1682
  } | null;
1683
1683
  }, {
1684
1684
  id: string;
@@ -1689,14 +1689,14 @@ export declare const receiveMessageContract: {
1689
1689
  updatedAt: Date;
1690
1690
  deletedAt: Date | null;
1691
1691
  entityId: string;
1692
- queueId: string | null;
1693
- contactId: string | null;
1692
+ firstResponseTime: number | null;
1694
1693
  caseId: number;
1695
1694
  entityName: string;
1695
+ contactId: string | null;
1696
+ queueId: string | null;
1696
1697
  agentId: string | null;
1697
1698
  startedDate: Date | null;
1698
1699
  handledTime: number | null;
1699
- firstResponseTime: number | null;
1700
1700
  wrapUpForm: {
1701
1701
  id: string;
1702
1702
  disposition: string | null;
@@ -1710,9 +1710,9 @@ export declare const receiveMessageContract: {
1710
1710
  updatedAt: Date;
1711
1711
  deletedAt: Date | null;
1712
1712
  }[];
1713
+ note: string | null;
1713
1714
  callFrom: string | null;
1714
1715
  callTo: string | null;
1715
- note: string | null;
1716
1716
  } | null;
1717
1717
  }>>;
1718
1718
  }, "strip", z.ZodTypeAny, {
@@ -1740,7 +1740,6 @@ export declare const receiveMessageContract: {
1740
1740
  createdAt: string;
1741
1741
  updatedAt: string;
1742
1742
  deletedAt: string | null;
1743
- channelId: string;
1744
1743
  contact: {
1745
1744
  id: string;
1746
1745
  channel: string | null;
@@ -1845,6 +1844,7 @@ export declare const receiveMessageContract: {
1845
1844
  };
1846
1845
  }[] | undefined;
1847
1846
  };
1847
+ channelId: string;
1848
1848
  socialPlatformId: string;
1849
1849
  } | undefined;
1850
1850
  actor?: {
@@ -1967,14 +1967,14 @@ export declare const receiveMessageContract: {
1967
1967
  updatedAt: Date;
1968
1968
  deletedAt: Date | null;
1969
1969
  entityId: string;
1970
- queueId: string | null;
1971
- contactId: string | null;
1970
+ firstResponseTime: number | null;
1972
1971
  caseId: number;
1973
1972
  entityName: string;
1973
+ contactId: string | null;
1974
+ queueId: string | null;
1974
1975
  agentId: string | null;
1975
1976
  startedDate: Date | null;
1976
1977
  handledTime: number | null;
1977
- firstResponseTime: number | null;
1978
1978
  wrapUpForm: {
1979
1979
  id: string;
1980
1980
  disposition: string | null;
@@ -1988,9 +1988,9 @@ export declare const receiveMessageContract: {
1988
1988
  updatedAt: Date;
1989
1989
  deletedAt: Date | null;
1990
1990
  }[];
1991
+ note: string | null;
1991
1992
  callFrom: string | null;
1992
1993
  callTo: string | null;
1993
- note: string | null;
1994
1994
  } | null;
1995
1995
  } | undefined;
1996
1996
  }, {
@@ -2018,7 +2018,6 @@ export declare const receiveMessageContract: {
2018
2018
  createdAt: string;
2019
2019
  updatedAt: string;
2020
2020
  deletedAt: string | null;
2021
- channelId: string;
2022
2021
  contact: {
2023
2022
  id: string;
2024
2023
  channel: string | null;
@@ -2123,6 +2122,7 @@ export declare const receiveMessageContract: {
2123
2122
  };
2124
2123
  }[] | undefined;
2125
2124
  };
2125
+ channelId: string;
2126
2126
  socialPlatformId: string;
2127
2127
  } | undefined;
2128
2128
  actor?: {
@@ -2245,14 +2245,14 @@ export declare const receiveMessageContract: {
2245
2245
  updatedAt: Date;
2246
2246
  deletedAt: Date | null;
2247
2247
  entityId: string;
2248
- queueId: string | null;
2249
- contactId: string | null;
2248
+ firstResponseTime: number | null;
2250
2249
  caseId: number;
2251
2250
  entityName: string;
2251
+ contactId: string | null;
2252
+ queueId: string | null;
2252
2253
  agentId: string | null;
2253
2254
  startedDate: Date | null;
2254
2255
  handledTime: number | null;
2255
- firstResponseTime: number | null;
2256
2256
  wrapUpForm: {
2257
2257
  id: string;
2258
2258
  disposition: string | null;
@@ -2266,9 +2266,9 @@ export declare const receiveMessageContract: {
2266
2266
  updatedAt: Date;
2267
2267
  deletedAt: Date | null;
2268
2268
  }[];
2269
+ note: string | null;
2269
2270
  callFrom: string | null;
2270
2271
  callTo: string | null;
2271
- note: string | null;
2272
2272
  } | null;
2273
2273
  } | undefined;
2274
2274
  }>>;
@@ -2926,6 +2926,8 @@ export declare const receiveMessageContract: {
2926
2926
  updatedAt: string;
2927
2927
  deletedAt: string | null;
2928
2928
  platformId: string;
2929
+ platformMessageId: string;
2930
+ locale: "" | "th" | "mm" | "en" | null;
2929
2931
  room: {
2930
2932
  id?: string | undefined;
2931
2933
  createdAt?: string | undefined;
@@ -2951,7 +2953,6 @@ export declare const receiveMessageContract: {
2951
2953
  createdAt: string;
2952
2954
  updatedAt: string;
2953
2955
  deletedAt: string | null;
2954
- channelId: string;
2955
2956
  contact: {
2956
2957
  id: string;
2957
2958
  channel: string | null;
@@ -3056,6 +3057,7 @@ export declare const receiveMessageContract: {
3056
3057
  };
3057
3058
  }[] | undefined;
3058
3059
  };
3060
+ channelId: string;
3059
3061
  socialPlatformId: string;
3060
3062
  } | undefined;
3061
3063
  actor?: {
@@ -3178,14 +3180,14 @@ export declare const receiveMessageContract: {
3178
3180
  updatedAt: Date;
3179
3181
  deletedAt: Date | null;
3180
3182
  entityId: string;
3181
- queueId: string | null;
3182
- contactId: string | null;
3183
+ firstResponseTime: number | null;
3183
3184
  caseId: number;
3184
3185
  entityName: string;
3186
+ contactId: string | null;
3187
+ queueId: string | null;
3185
3188
  agentId: string | null;
3186
3189
  startedDate: Date | null;
3187
3190
  handledTime: number | null;
3188
- firstResponseTime: number | null;
3189
3191
  wrapUpForm: {
3190
3192
  id: string;
3191
3193
  disposition: string | null;
@@ -3199,14 +3201,12 @@ export declare const receiveMessageContract: {
3199
3201
  updatedAt: Date;
3200
3202
  deletedAt: Date | null;
3201
3203
  }[];
3204
+ note: string | null;
3202
3205
  callFrom: string | null;
3203
3206
  callTo: string | null;
3204
- note: string | null;
3205
3207
  } | null;
3206
3208
  } | undefined;
3207
3209
  } | null;
3208
- platformMessageId: string;
3209
- locale: "" | "th" | "mm" | "en" | null;
3210
3210
  message?: string | undefined;
3211
3211
  metadata?: any;
3212
3212
  replyPlatformMessageId?: string | undefined;
@@ -3366,6 +3366,8 @@ export declare const receiveMessageContract: {
3366
3366
  updatedAt: string;
3367
3367
  deletedAt: string | null;
3368
3368
  platformId: string;
3369
+ platformMessageId: string;
3370
+ locale: "" | "th" | "mm" | "en" | null;
3369
3371
  room: {
3370
3372
  id?: string | undefined;
3371
3373
  createdAt?: string | undefined;
@@ -3391,7 +3393,6 @@ export declare const receiveMessageContract: {
3391
3393
  createdAt: string;
3392
3394
  updatedAt: string;
3393
3395
  deletedAt: string | null;
3394
- channelId: string;
3395
3396
  contact: {
3396
3397
  id: string;
3397
3398
  channel: string | null;
@@ -3496,6 +3497,7 @@ export declare const receiveMessageContract: {
3496
3497
  };
3497
3498
  }[] | undefined;
3498
3499
  };
3500
+ channelId: string;
3499
3501
  socialPlatformId: string;
3500
3502
  } | undefined;
3501
3503
  actor?: {
@@ -3618,14 +3620,14 @@ export declare const receiveMessageContract: {
3618
3620
  updatedAt: Date;
3619
3621
  deletedAt: Date | null;
3620
3622
  entityId: string;
3621
- queueId: string | null;
3622
- contactId: string | null;
3623
+ firstResponseTime: number | null;
3623
3624
  caseId: number;
3624
3625
  entityName: string;
3626
+ contactId: string | null;
3627
+ queueId: string | null;
3625
3628
  agentId: string | null;
3626
3629
  startedDate: Date | null;
3627
3630
  handledTime: number | null;
3628
- firstResponseTime: number | null;
3629
3631
  wrapUpForm: {
3630
3632
  id: string;
3631
3633
  disposition: string | null;
@@ -3639,14 +3641,12 @@ export declare const receiveMessageContract: {
3639
3641
  updatedAt: Date;
3640
3642
  deletedAt: Date | null;
3641
3643
  }[];
3644
+ note: string | null;
3642
3645
  callFrom: string | null;
3643
3646
  callTo: string | null;
3644
- note: string | null;
3645
3647
  } | null;
3646
3648
  } | undefined;
3647
3649
  } | null;
3648
- platformMessageId: string;
3649
- locale: "" | "th" | "mm" | "en" | null;
3650
3650
  message?: string | undefined;
3651
3651
  metadata?: any;
3652
3652
  replyPlatformMessageId?: string | undefined;
@@ -3808,6 +3808,8 @@ export declare const receiveMessageContract: {
3808
3808
  updatedAt: string;
3809
3809
  deletedAt: string | null;
3810
3810
  platformId: string;
3811
+ platformMessageId: string;
3812
+ locale: "" | "th" | "mm" | "en" | null;
3811
3813
  room: {
3812
3814
  id?: string | undefined;
3813
3815
  createdAt?: string | undefined;
@@ -3833,7 +3835,6 @@ export declare const receiveMessageContract: {
3833
3835
  createdAt: string;
3834
3836
  updatedAt: string;
3835
3837
  deletedAt: string | null;
3836
- channelId: string;
3837
3838
  contact: {
3838
3839
  id: string;
3839
3840
  channel: string | null;
@@ -3938,6 +3939,7 @@ export declare const receiveMessageContract: {
3938
3939
  };
3939
3940
  }[] | undefined;
3940
3941
  };
3942
+ channelId: string;
3941
3943
  socialPlatformId: string;
3942
3944
  } | undefined;
3943
3945
  actor?: {
@@ -4060,14 +4062,14 @@ export declare const receiveMessageContract: {
4060
4062
  updatedAt: Date;
4061
4063
  deletedAt: Date | null;
4062
4064
  entityId: string;
4063
- queueId: string | null;
4064
- contactId: string | null;
4065
+ firstResponseTime: number | null;
4065
4066
  caseId: number;
4066
4067
  entityName: string;
4068
+ contactId: string | null;
4069
+ queueId: string | null;
4067
4070
  agentId: string | null;
4068
4071
  startedDate: Date | null;
4069
4072
  handledTime: number | null;
4070
- firstResponseTime: number | null;
4071
4073
  wrapUpForm: {
4072
4074
  id: string;
4073
4075
  disposition: string | null;
@@ -4081,14 +4083,12 @@ export declare const receiveMessageContract: {
4081
4083
  updatedAt: Date;
4082
4084
  deletedAt: Date | null;
4083
4085
  }[];
4086
+ note: string | null;
4084
4087
  callFrom: string | null;
4085
4088
  callTo: string | null;
4086
- note: string | null;
4087
4089
  } | null;
4088
4090
  } | undefined;
4089
4091
  } | null;
4090
- platformMessageId: string;
4091
- locale: "" | "th" | "mm" | "en" | null;
4092
4092
  message?: string | undefined;
4093
4093
  metadata?: any;
4094
4094
  replyPlatformMessageId?: string | undefined;
@@ -4250,6 +4250,8 @@ export declare const receiveMessageContract: {
4250
4250
  updatedAt: string;
4251
4251
  deletedAt: string | null;
4252
4252
  platformId: string;
4253
+ platformMessageId: string;
4254
+ locale: "" | "th" | "mm" | "en" | null;
4253
4255
  room: {
4254
4256
  id?: string | undefined;
4255
4257
  createdAt?: string | undefined;
@@ -4275,7 +4277,6 @@ export declare const receiveMessageContract: {
4275
4277
  createdAt: string;
4276
4278
  updatedAt: string;
4277
4279
  deletedAt: string | null;
4278
- channelId: string;
4279
4280
  contact: {
4280
4281
  id: string;
4281
4282
  channel: string | null;
@@ -4380,6 +4381,7 @@ export declare const receiveMessageContract: {
4380
4381
  };
4381
4382
  }[] | undefined;
4382
4383
  };
4384
+ channelId: string;
4383
4385
  socialPlatformId: string;
4384
4386
  } | undefined;
4385
4387
  actor?: {
@@ -4502,14 +4504,14 @@ export declare const receiveMessageContract: {
4502
4504
  updatedAt: Date;
4503
4505
  deletedAt: Date | null;
4504
4506
  entityId: string;
4505
- queueId: string | null;
4506
- contactId: string | null;
4507
+ firstResponseTime: number | null;
4507
4508
  caseId: number;
4508
4509
  entityName: string;
4510
+ contactId: string | null;
4511
+ queueId: string | null;
4509
4512
  agentId: string | null;
4510
4513
  startedDate: Date | null;
4511
4514
  handledTime: number | null;
4512
- firstResponseTime: number | null;
4513
4515
  wrapUpForm: {
4514
4516
  id: string;
4515
4517
  disposition: string | null;
@@ -4523,14 +4525,12 @@ export declare const receiveMessageContract: {
4523
4525
  updatedAt: Date;
4524
4526
  deletedAt: Date | null;
4525
4527
  }[];
4528
+ note: string | null;
4526
4529
  callFrom: string | null;
4527
4530
  callTo: string | null;
4528
- note: string | null;
4529
4531
  } | null;
4530
4532
  } | undefined;
4531
4533
  } | null;
4532
- platformMessageId: string;
4533
- locale: "" | "th" | "mm" | "en" | null;
4534
4534
  message?: string | undefined;
4535
4535
  metadata?: any;
4536
4536
  replyPlatformMessageId?: string | undefined;
@@ -5651,7 +5651,6 @@ export declare const mainChatContract: {
5651
5651
  createdAt: Date;
5652
5652
  updatedAt: Date;
5653
5653
  deletedAt: Date | null;
5654
- channelId: string;
5655
5654
  contact: {
5656
5655
  id: string;
5657
5656
  channel: string | null;
@@ -5756,6 +5755,7 @@ export declare const mainChatContract: {
5756
5755
  };
5757
5756
  }[] | undefined;
5758
5757
  };
5758
+ channelId: string;
5759
5759
  socialPlatformId: string;
5760
5760
  }, {
5761
5761
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -5769,7 +5769,6 @@ export declare const mainChatContract: {
5769
5769
  createdAt: Date;
5770
5770
  updatedAt: Date;
5771
5771
  deletedAt: Date | null;
5772
- channelId: string;
5773
5772
  contact: {
5774
5773
  id: string;
5775
5774
  channel: string | null;
@@ -5874,6 +5873,7 @@ export declare const mainChatContract: {
5874
5873
  };
5875
5874
  }[] | undefined;
5876
5875
  };
5876
+ channelId: string;
5877
5877
  socialPlatformId: string;
5878
5878
  }>;
5879
5879
  actor: z.ZodObject<{
@@ -6707,9 +6707,9 @@ export declare const mainChatContract: {
6707
6707
  updatedAt: Date;
6708
6708
  deletedAt: Date | null;
6709
6709
  }[];
6710
+ note: string | null;
6710
6711
  callFrom: string | null;
6711
6712
  callTo: string | null;
6712
- note: string | null;
6713
6713
  }, {
6714
6714
  id: string;
6715
6715
  disposition: string | null;
@@ -6723,9 +6723,9 @@ export declare const mainChatContract: {
6723
6723
  updatedAt: Date;
6724
6724
  deletedAt: Date | null;
6725
6725
  }[];
6726
+ note: string | null;
6726
6727
  callFrom: string | null;
6727
6728
  callTo: string | null;
6728
- note: string | null;
6729
6729
  }>>;
6730
6730
  }, "strip", z.ZodTypeAny, {
6731
6731
  id: string;
@@ -6736,14 +6736,14 @@ export declare const mainChatContract: {
6736
6736
  updatedAt: Date;
6737
6737
  deletedAt: Date | null;
6738
6738
  entityId: string;
6739
- queueId: string | null;
6740
- contactId: string | null;
6739
+ firstResponseTime: number | null;
6741
6740
  caseId: number;
6742
6741
  entityName: string;
6742
+ contactId: string | null;
6743
+ queueId: string | null;
6743
6744
  agentId: string | null;
6744
6745
  startedDate: Date | null;
6745
6746
  handledTime: number | null;
6746
- firstResponseTime: number | null;
6747
6747
  wrapUpForm: {
6748
6748
  id: string;
6749
6749
  disposition: string | null;
@@ -6757,9 +6757,9 @@ export declare const mainChatContract: {
6757
6757
  updatedAt: Date;
6758
6758
  deletedAt: Date | null;
6759
6759
  }[];
6760
+ note: string | null;
6760
6761
  callFrom: string | null;
6761
6762
  callTo: string | null;
6762
- note: string | null;
6763
6763
  } | null;
6764
6764
  }, {
6765
6765
  id: string;
@@ -6770,14 +6770,14 @@ export declare const mainChatContract: {
6770
6770
  updatedAt: Date;
6771
6771
  deletedAt: Date | null;
6772
6772
  entityId: string;
6773
- queueId: string | null;
6774
- contactId: string | null;
6773
+ firstResponseTime: number | null;
6775
6774
  caseId: number;
6776
6775
  entityName: string;
6776
+ contactId: string | null;
6777
+ queueId: string | null;
6777
6778
  agentId: string | null;
6778
6779
  startedDate: Date | null;
6779
6780
  handledTime: number | null;
6780
- firstResponseTime: number | null;
6781
6781
  wrapUpForm: {
6782
6782
  id: string;
6783
6783
  disposition: string | null;
@@ -6791,9 +6791,9 @@ export declare const mainChatContract: {
6791
6791
  updatedAt: Date;
6792
6792
  deletedAt: Date | null;
6793
6793
  }[];
6794
+ note: string | null;
6794
6795
  callFrom: string | null;
6795
6796
  callTo: string | null;
6796
- note: string | null;
6797
6797
  } | null;
6798
6798
  }>;
6799
6799
  }, "strip", z.ZodTypeAny, {
@@ -6846,12 +6846,12 @@ export declare const mainChatContract: {
6846
6846
  telephonySignature: string | null;
6847
6847
  };
6848
6848
  };
6849
- firstResponseTime: number;
6850
6849
  lastMessage: string;
6851
6850
  handleTime: number;
6852
6851
  closeAt: Date;
6853
6852
  unreadCount: number;
6854
6853
  firstResponseAt: Date;
6854
+ firstResponseTime: number;
6855
6855
  isLatest: boolean;
6856
6856
  platformContact: {
6857
6857
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -6865,7 +6865,6 @@ export declare const mainChatContract: {
6865
6865
  createdAt: Date;
6866
6866
  updatedAt: Date;
6867
6867
  deletedAt: Date | null;
6868
- channelId: string;
6869
6868
  contact: {
6870
6869
  id: string;
6871
6870
  channel: string | null;
@@ -6970,6 +6969,7 @@ export declare const mainChatContract: {
6970
6969
  };
6971
6970
  }[] | undefined;
6972
6971
  };
6972
+ channelId: string;
6973
6973
  socialPlatformId: string;
6974
6974
  };
6975
6975
  assignee: {
@@ -7025,14 +7025,14 @@ export declare const mainChatContract: {
7025
7025
  updatedAt: Date;
7026
7026
  deletedAt: Date | null;
7027
7027
  entityId: string;
7028
- queueId: string | null;
7029
- contactId: string | null;
7028
+ firstResponseTime: number | null;
7030
7029
  caseId: number;
7031
7030
  entityName: string;
7031
+ contactId: string | null;
7032
+ queueId: string | null;
7032
7033
  agentId: string | null;
7033
7034
  startedDate: Date | null;
7034
7035
  handledTime: number | null;
7035
- firstResponseTime: number | null;
7036
7036
  wrapUpForm: {
7037
7037
  id: string;
7038
7038
  disposition: string | null;
@@ -7046,9 +7046,9 @@ export declare const mainChatContract: {
7046
7046
  updatedAt: Date;
7047
7047
  deletedAt: Date | null;
7048
7048
  }[];
7049
+ note: string | null;
7049
7050
  callFrom: string | null;
7050
7051
  callTo: string | null;
7051
- note: string | null;
7052
7052
  } | null;
7053
7053
  };
7054
7054
  channel?: {
@@ -7166,12 +7166,12 @@ export declare const mainChatContract: {
7166
7166
  telephonySignature: string | null;
7167
7167
  };
7168
7168
  };
7169
- firstResponseTime: number;
7170
7169
  lastMessage: string;
7171
7170
  handleTime: number;
7172
7171
  closeAt: Date;
7173
7172
  unreadCount: number;
7174
7173
  firstResponseAt: Date;
7174
+ firstResponseTime: number;
7175
7175
  isLatest: boolean;
7176
7176
  platformContact: {
7177
7177
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -7185,7 +7185,6 @@ export declare const mainChatContract: {
7185
7185
  createdAt: Date;
7186
7186
  updatedAt: Date;
7187
7187
  deletedAt: Date | null;
7188
- channelId: string;
7189
7188
  contact: {
7190
7189
  id: string;
7191
7190
  channel: string | null;
@@ -7290,6 +7289,7 @@ export declare const mainChatContract: {
7290
7289
  };
7291
7290
  }[] | undefined;
7292
7291
  };
7292
+ channelId: string;
7293
7293
  socialPlatformId: string;
7294
7294
  };
7295
7295
  assignee: {
@@ -7345,14 +7345,14 @@ export declare const mainChatContract: {
7345
7345
  updatedAt: Date;
7346
7346
  deletedAt: Date | null;
7347
7347
  entityId: string;
7348
- queueId: string | null;
7349
- contactId: string | null;
7348
+ firstResponseTime: number | null;
7350
7349
  caseId: number;
7351
7350
  entityName: string;
7351
+ contactId: string | null;
7352
+ queueId: string | null;
7352
7353
  agentId: string | null;
7353
7354
  startedDate: Date | null;
7354
7355
  handledTime: number | null;
7355
- firstResponseTime: number | null;
7356
7356
  wrapUpForm: {
7357
7357
  id: string;
7358
7358
  disposition: string | null;
@@ -7366,9 +7366,9 @@ export declare const mainChatContract: {
7366
7366
  updatedAt: Date;
7367
7367
  deletedAt: Date | null;
7368
7368
  }[];
7369
+ note: string | null;
7369
7370
  callFrom: string | null;
7370
7371
  callTo: string | null;
7371
- note: string | null;
7372
7372
  } | null;
7373
7373
  };
7374
7374
  channel?: {
@@ -7498,12 +7498,12 @@ export declare const mainChatContract: {
7498
7498
  telephonySignature: string | null;
7499
7499
  };
7500
7500
  };
7501
- firstResponseTime: number;
7502
7501
  lastMessage: string;
7503
7502
  handleTime: number;
7504
7503
  closeAt: Date;
7505
7504
  unreadCount: number;
7506
7505
  firstResponseAt: Date;
7506
+ firstResponseTime: number;
7507
7507
  isLatest: boolean;
7508
7508
  platformContact: {
7509
7509
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -7517,7 +7517,6 @@ export declare const mainChatContract: {
7517
7517
  createdAt: Date;
7518
7518
  updatedAt: Date;
7519
7519
  deletedAt: Date | null;
7520
- channelId: string;
7521
7520
  contact: {
7522
7521
  id: string;
7523
7522
  channel: string | null;
@@ -7622,6 +7621,7 @@ export declare const mainChatContract: {
7622
7621
  };
7623
7622
  }[] | undefined;
7624
7623
  };
7624
+ channelId: string;
7625
7625
  socialPlatformId: string;
7626
7626
  };
7627
7627
  assignee: {
@@ -7677,14 +7677,14 @@ export declare const mainChatContract: {
7677
7677
  updatedAt: Date;
7678
7678
  deletedAt: Date | null;
7679
7679
  entityId: string;
7680
- queueId: string | null;
7681
- contactId: string | null;
7680
+ firstResponseTime: number | null;
7682
7681
  caseId: number;
7683
7682
  entityName: string;
7683
+ contactId: string | null;
7684
+ queueId: string | null;
7684
7685
  agentId: string | null;
7685
7686
  startedDate: Date | null;
7686
7687
  handledTime: number | null;
7687
- firstResponseTime: number | null;
7688
7688
  wrapUpForm: {
7689
7689
  id: string;
7690
7690
  disposition: string | null;
@@ -7698,9 +7698,9 @@ export declare const mainChatContract: {
7698
7698
  updatedAt: Date;
7699
7699
  deletedAt: Date | null;
7700
7700
  }[];
7701
+ note: string | null;
7701
7702
  callFrom: string | null;
7702
7703
  callTo: string | null;
7703
- note: string | null;
7704
7704
  } | null;
7705
7705
  };
7706
7706
  channel?: {
@@ -7828,12 +7828,12 @@ export declare const mainChatContract: {
7828
7828
  telephonySignature: string | null;
7829
7829
  };
7830
7830
  };
7831
- firstResponseTime: number;
7832
7831
  lastMessage: string;
7833
7832
  handleTime: number;
7834
7833
  closeAt: Date;
7835
7834
  unreadCount: number;
7836
7835
  firstResponseAt: Date;
7836
+ firstResponseTime: number;
7837
7837
  isLatest: boolean;
7838
7838
  platformContact: {
7839
7839
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -7847,7 +7847,6 @@ export declare const mainChatContract: {
7847
7847
  createdAt: Date;
7848
7848
  updatedAt: Date;
7849
7849
  deletedAt: Date | null;
7850
- channelId: string;
7851
7850
  contact: {
7852
7851
  id: string;
7853
7852
  channel: string | null;
@@ -7952,6 +7951,7 @@ export declare const mainChatContract: {
7952
7951
  };
7953
7952
  }[] | undefined;
7954
7953
  };
7954
+ channelId: string;
7955
7955
  socialPlatformId: string;
7956
7956
  };
7957
7957
  assignee: {
@@ -8007,14 +8007,14 @@ export declare const mainChatContract: {
8007
8007
  updatedAt: Date;
8008
8008
  deletedAt: Date | null;
8009
8009
  entityId: string;
8010
- queueId: string | null;
8011
- contactId: string | null;
8010
+ firstResponseTime: number | null;
8012
8011
  caseId: number;
8013
8012
  entityName: string;
8013
+ contactId: string | null;
8014
+ queueId: string | null;
8014
8015
  agentId: string | null;
8015
8016
  startedDate: Date | null;
8016
8017
  handledTime: number | null;
8017
- firstResponseTime: number | null;
8018
8018
  wrapUpForm: {
8019
8019
  id: string;
8020
8020
  disposition: string | null;
@@ -8028,9 +8028,9 @@ export declare const mainChatContract: {
8028
8028
  updatedAt: Date;
8029
8029
  deletedAt: Date | null;
8030
8030
  }[];
8031
+ note: string | null;
8031
8032
  callFrom: string | null;
8032
8033
  callTo: string | null;
8033
- note: string | null;
8034
8034
  } | null;
8035
8035
  };
8036
8036
  channel?: {
@@ -9996,7 +9996,6 @@ export declare const mainChatContract: {
9996
9996
  createdAt: Date;
9997
9997
  updatedAt: Date;
9998
9998
  deletedAt: Date | null;
9999
- channelId: string;
10000
9999
  contact: {
10001
10000
  id: string;
10002
10001
  channel: string | null;
@@ -10101,6 +10100,7 @@ export declare const mainChatContract: {
10101
10100
  };
10102
10101
  }[] | undefined;
10103
10102
  };
10103
+ channelId: string;
10104
10104
  socialPlatformId: string;
10105
10105
  }, {
10106
10106
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -10114,7 +10114,6 @@ export declare const mainChatContract: {
10114
10114
  createdAt: Date;
10115
10115
  updatedAt: Date;
10116
10116
  deletedAt: Date | null;
10117
- channelId: string;
10118
10117
  contact: {
10119
10118
  id: string;
10120
10119
  channel: string | null;
@@ -10219,6 +10218,7 @@ export declare const mainChatContract: {
10219
10218
  };
10220
10219
  }[] | undefined;
10221
10220
  };
10221
+ channelId: string;
10222
10222
  socialPlatformId: string;
10223
10223
  }>;
10224
10224
  actor: z.ZodObject<{
@@ -11052,9 +11052,9 @@ export declare const mainChatContract: {
11052
11052
  updatedAt: Date;
11053
11053
  deletedAt: Date | null;
11054
11054
  }[];
11055
+ note: string | null;
11055
11056
  callFrom: string | null;
11056
11057
  callTo: string | null;
11057
- note: string | null;
11058
11058
  }, {
11059
11059
  id: string;
11060
11060
  disposition: string | null;
@@ -11068,9 +11068,9 @@ export declare const mainChatContract: {
11068
11068
  updatedAt: Date;
11069
11069
  deletedAt: Date | null;
11070
11070
  }[];
11071
+ note: string | null;
11071
11072
  callFrom: string | null;
11072
11073
  callTo: string | null;
11073
- note: string | null;
11074
11074
  }>>;
11075
11075
  }, "strip", z.ZodTypeAny, {
11076
11076
  id: string;
@@ -11081,14 +11081,14 @@ export declare const mainChatContract: {
11081
11081
  updatedAt: Date;
11082
11082
  deletedAt: Date | null;
11083
11083
  entityId: string;
11084
- queueId: string | null;
11085
- contactId: string | null;
11084
+ firstResponseTime: number | null;
11086
11085
  caseId: number;
11087
11086
  entityName: string;
11087
+ contactId: string | null;
11088
+ queueId: string | null;
11088
11089
  agentId: string | null;
11089
11090
  startedDate: Date | null;
11090
11091
  handledTime: number | null;
11091
- firstResponseTime: number | null;
11092
11092
  wrapUpForm: {
11093
11093
  id: string;
11094
11094
  disposition: string | null;
@@ -11102,9 +11102,9 @@ export declare const mainChatContract: {
11102
11102
  updatedAt: Date;
11103
11103
  deletedAt: Date | null;
11104
11104
  }[];
11105
+ note: string | null;
11105
11106
  callFrom: string | null;
11106
11107
  callTo: string | null;
11107
- note: string | null;
11108
11108
  } | null;
11109
11109
  }, {
11110
11110
  id: string;
@@ -11115,14 +11115,14 @@ export declare const mainChatContract: {
11115
11115
  updatedAt: Date;
11116
11116
  deletedAt: Date | null;
11117
11117
  entityId: string;
11118
- queueId: string | null;
11119
- contactId: string | null;
11118
+ firstResponseTime: number | null;
11120
11119
  caseId: number;
11121
11120
  entityName: string;
11121
+ contactId: string | null;
11122
+ queueId: string | null;
11122
11123
  agentId: string | null;
11123
11124
  startedDate: Date | null;
11124
11125
  handledTime: number | null;
11125
- firstResponseTime: number | null;
11126
11126
  wrapUpForm: {
11127
11127
  id: string;
11128
11128
  disposition: string | null;
@@ -11136,9 +11136,9 @@ export declare const mainChatContract: {
11136
11136
  updatedAt: Date;
11137
11137
  deletedAt: Date | null;
11138
11138
  }[];
11139
+ note: string | null;
11139
11140
  callFrom: string | null;
11140
11141
  callTo: string | null;
11141
- note: string | null;
11142
11142
  } | null;
11143
11143
  }>;
11144
11144
  }, "strip", z.ZodTypeAny, {
@@ -11191,12 +11191,12 @@ export declare const mainChatContract: {
11191
11191
  telephonySignature: string | null;
11192
11192
  };
11193
11193
  };
11194
- firstResponseTime: number;
11195
11194
  lastMessage: string;
11196
11195
  handleTime: number;
11197
11196
  closeAt: Date;
11198
11197
  unreadCount: number;
11199
11198
  firstResponseAt: Date;
11199
+ firstResponseTime: number;
11200
11200
  isLatest: boolean;
11201
11201
  platformContact: {
11202
11202
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -11210,7 +11210,6 @@ export declare const mainChatContract: {
11210
11210
  createdAt: Date;
11211
11211
  updatedAt: Date;
11212
11212
  deletedAt: Date | null;
11213
- channelId: string;
11214
11213
  contact: {
11215
11214
  id: string;
11216
11215
  channel: string | null;
@@ -11315,6 +11314,7 @@ export declare const mainChatContract: {
11315
11314
  };
11316
11315
  }[] | undefined;
11317
11316
  };
11317
+ channelId: string;
11318
11318
  socialPlatformId: string;
11319
11319
  };
11320
11320
  assignee: {
@@ -11370,14 +11370,14 @@ export declare const mainChatContract: {
11370
11370
  updatedAt: Date;
11371
11371
  deletedAt: Date | null;
11372
11372
  entityId: string;
11373
- queueId: string | null;
11374
- contactId: string | null;
11373
+ firstResponseTime: number | null;
11375
11374
  caseId: number;
11376
11375
  entityName: string;
11376
+ contactId: string | null;
11377
+ queueId: string | null;
11377
11378
  agentId: string | null;
11378
11379
  startedDate: Date | null;
11379
11380
  handledTime: number | null;
11380
- firstResponseTime: number | null;
11381
11381
  wrapUpForm: {
11382
11382
  id: string;
11383
11383
  disposition: string | null;
@@ -11391,9 +11391,9 @@ export declare const mainChatContract: {
11391
11391
  updatedAt: Date;
11392
11392
  deletedAt: Date | null;
11393
11393
  }[];
11394
+ note: string | null;
11394
11395
  callFrom: string | null;
11395
11396
  callTo: string | null;
11396
- note: string | null;
11397
11397
  } | null;
11398
11398
  };
11399
11399
  channel?: {
@@ -11511,12 +11511,12 @@ export declare const mainChatContract: {
11511
11511
  telephonySignature: string | null;
11512
11512
  };
11513
11513
  };
11514
- firstResponseTime: number;
11515
11514
  lastMessage: string;
11516
11515
  handleTime: number;
11517
11516
  closeAt: Date;
11518
11517
  unreadCount: number;
11519
11518
  firstResponseAt: Date;
11519
+ firstResponseTime: number;
11520
11520
  isLatest: boolean;
11521
11521
  platformContact: {
11522
11522
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -11530,7 +11530,6 @@ export declare const mainChatContract: {
11530
11530
  createdAt: Date;
11531
11531
  updatedAt: Date;
11532
11532
  deletedAt: Date | null;
11533
- channelId: string;
11534
11533
  contact: {
11535
11534
  id: string;
11536
11535
  channel: string | null;
@@ -11635,6 +11634,7 @@ export declare const mainChatContract: {
11635
11634
  };
11636
11635
  }[] | undefined;
11637
11636
  };
11637
+ channelId: string;
11638
11638
  socialPlatformId: string;
11639
11639
  };
11640
11640
  assignee: {
@@ -11690,14 +11690,14 @@ export declare const mainChatContract: {
11690
11690
  updatedAt: Date;
11691
11691
  deletedAt: Date | null;
11692
11692
  entityId: string;
11693
- queueId: string | null;
11694
- contactId: string | null;
11693
+ firstResponseTime: number | null;
11695
11694
  caseId: number;
11696
11695
  entityName: string;
11696
+ contactId: string | null;
11697
+ queueId: string | null;
11697
11698
  agentId: string | null;
11698
11699
  startedDate: Date | null;
11699
11700
  handledTime: number | null;
11700
- firstResponseTime: number | null;
11701
11701
  wrapUpForm: {
11702
11702
  id: string;
11703
11703
  disposition: string | null;
@@ -11711,9 +11711,9 @@ export declare const mainChatContract: {
11711
11711
  updatedAt: Date;
11712
11712
  deletedAt: Date | null;
11713
11713
  }[];
11714
+ note: string | null;
11714
11715
  callFrom: string | null;
11715
11716
  callTo: string | null;
11716
- note: string | null;
11717
11717
  } | null;
11718
11718
  };
11719
11719
  channel?: {
@@ -11833,12 +11833,12 @@ export declare const mainChatContract: {
11833
11833
  telephonySignature: string | null;
11834
11834
  };
11835
11835
  };
11836
- firstResponseTime: number;
11837
11836
  lastMessage: string;
11838
11837
  handleTime: number;
11839
11838
  closeAt: Date;
11840
11839
  unreadCount: number;
11841
11840
  firstResponseAt: Date;
11841
+ firstResponseTime: number;
11842
11842
  isLatest: boolean;
11843
11843
  platformContact: {
11844
11844
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -11852,7 +11852,6 @@ export declare const mainChatContract: {
11852
11852
  createdAt: Date;
11853
11853
  updatedAt: Date;
11854
11854
  deletedAt: Date | null;
11855
- channelId: string;
11856
11855
  contact: {
11857
11856
  id: string;
11858
11857
  channel: string | null;
@@ -11957,6 +11956,7 @@ export declare const mainChatContract: {
11957
11956
  };
11958
11957
  }[] | undefined;
11959
11958
  };
11959
+ channelId: string;
11960
11960
  socialPlatformId: string;
11961
11961
  };
11962
11962
  assignee: {
@@ -12012,14 +12012,14 @@ export declare const mainChatContract: {
12012
12012
  updatedAt: Date;
12013
12013
  deletedAt: Date | null;
12014
12014
  entityId: string;
12015
- queueId: string | null;
12016
- contactId: string | null;
12015
+ firstResponseTime: number | null;
12017
12016
  caseId: number;
12018
12017
  entityName: string;
12018
+ contactId: string | null;
12019
+ queueId: string | null;
12019
12020
  agentId: string | null;
12020
12021
  startedDate: Date | null;
12021
12022
  handledTime: number | null;
12022
- firstResponseTime: number | null;
12023
12023
  wrapUpForm: {
12024
12024
  id: string;
12025
12025
  disposition: string | null;
@@ -12033,9 +12033,9 @@ export declare const mainChatContract: {
12033
12033
  updatedAt: Date;
12034
12034
  deletedAt: Date | null;
12035
12035
  }[];
12036
+ note: string | null;
12036
12037
  callFrom: string | null;
12037
12038
  callTo: string | null;
12038
- note: string | null;
12039
12039
  } | null;
12040
12040
  };
12041
12041
  channel?: {
@@ -12156,12 +12156,12 @@ export declare const mainChatContract: {
12156
12156
  telephonySignature: string | null;
12157
12157
  };
12158
12158
  };
12159
- firstResponseTime: number;
12160
12159
  lastMessage: string;
12161
12160
  handleTime: number;
12162
12161
  closeAt: Date;
12163
12162
  unreadCount: number;
12164
12163
  firstResponseAt: Date;
12164
+ firstResponseTime: number;
12165
12165
  isLatest: boolean;
12166
12166
  platformContact: {
12167
12167
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -12175,7 +12175,6 @@ export declare const mainChatContract: {
12175
12175
  createdAt: Date;
12176
12176
  updatedAt: Date;
12177
12177
  deletedAt: Date | null;
12178
- channelId: string;
12179
12178
  contact: {
12180
12179
  id: string;
12181
12180
  channel: string | null;
@@ -12280,6 +12279,7 @@ export declare const mainChatContract: {
12280
12279
  };
12281
12280
  }[] | undefined;
12282
12281
  };
12282
+ channelId: string;
12283
12283
  socialPlatformId: string;
12284
12284
  };
12285
12285
  assignee: {
@@ -12335,14 +12335,14 @@ export declare const mainChatContract: {
12335
12335
  updatedAt: Date;
12336
12336
  deletedAt: Date | null;
12337
12337
  entityId: string;
12338
- queueId: string | null;
12339
- contactId: string | null;
12338
+ firstResponseTime: number | null;
12340
12339
  caseId: number;
12341
12340
  entityName: string;
12341
+ contactId: string | null;
12342
+ queueId: string | null;
12342
12343
  agentId: string | null;
12343
12344
  startedDate: Date | null;
12344
12345
  handledTime: number | null;
12345
- firstResponseTime: number | null;
12346
12346
  wrapUpForm: {
12347
12347
  id: string;
12348
12348
  disposition: string | null;
@@ -12356,9 +12356,9 @@ export declare const mainChatContract: {
12356
12356
  updatedAt: Date;
12357
12357
  deletedAt: Date | null;
12358
12358
  }[];
12359
+ note: string | null;
12359
12360
  callFrom: string | null;
12360
12361
  callTo: string | null;
12361
- note: string | null;
12362
12362
  } | null;
12363
12363
  };
12364
12364
  channel?: {
@@ -13648,7 +13648,6 @@ export declare const mainChatContract: {
13648
13648
  createdAt: Date;
13649
13649
  updatedAt: Date;
13650
13650
  deletedAt: Date | null;
13651
- channelId: string;
13652
13651
  contact: {
13653
13652
  id: string;
13654
13653
  channel: string | null;
@@ -13753,6 +13752,7 @@ export declare const mainChatContract: {
13753
13752
  };
13754
13753
  }[] | undefined;
13755
13754
  };
13755
+ channelId: string;
13756
13756
  socialPlatformId: string;
13757
13757
  }, {
13758
13758
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -13766,7 +13766,6 @@ export declare const mainChatContract: {
13766
13766
  createdAt: Date;
13767
13767
  updatedAt: Date;
13768
13768
  deletedAt: Date | null;
13769
- channelId: string;
13770
13769
  contact: {
13771
13770
  id: string;
13772
13771
  channel: string | null;
@@ -13871,6 +13870,7 @@ export declare const mainChatContract: {
13871
13870
  };
13872
13871
  }[] | undefined;
13873
13872
  };
13873
+ channelId: string;
13874
13874
  socialPlatformId: string;
13875
13875
  }>;
13876
13876
  actor: z.ZodObject<{
@@ -14704,9 +14704,9 @@ export declare const mainChatContract: {
14704
14704
  updatedAt: Date;
14705
14705
  deletedAt: Date | null;
14706
14706
  }[];
14707
+ note: string | null;
14707
14708
  callFrom: string | null;
14708
14709
  callTo: string | null;
14709
- note: string | null;
14710
14710
  }, {
14711
14711
  id: string;
14712
14712
  disposition: string | null;
@@ -14720,9 +14720,9 @@ export declare const mainChatContract: {
14720
14720
  updatedAt: Date;
14721
14721
  deletedAt: Date | null;
14722
14722
  }[];
14723
+ note: string | null;
14723
14724
  callFrom: string | null;
14724
14725
  callTo: string | null;
14725
- note: string | null;
14726
14726
  }>>;
14727
14727
  }, "strip", z.ZodTypeAny, {
14728
14728
  id: string;
@@ -14733,14 +14733,14 @@ export declare const mainChatContract: {
14733
14733
  updatedAt: Date;
14734
14734
  deletedAt: Date | null;
14735
14735
  entityId: string;
14736
- queueId: string | null;
14737
- contactId: string | null;
14736
+ firstResponseTime: number | null;
14738
14737
  caseId: number;
14739
14738
  entityName: string;
14739
+ contactId: string | null;
14740
+ queueId: string | null;
14740
14741
  agentId: string | null;
14741
14742
  startedDate: Date | null;
14742
14743
  handledTime: number | null;
14743
- firstResponseTime: number | null;
14744
14744
  wrapUpForm: {
14745
14745
  id: string;
14746
14746
  disposition: string | null;
@@ -14754,9 +14754,9 @@ export declare const mainChatContract: {
14754
14754
  updatedAt: Date;
14755
14755
  deletedAt: Date | null;
14756
14756
  }[];
14757
+ note: string | null;
14757
14758
  callFrom: string | null;
14758
14759
  callTo: string | null;
14759
- note: string | null;
14760
14760
  } | null;
14761
14761
  }, {
14762
14762
  id: string;
@@ -14767,14 +14767,14 @@ export declare const mainChatContract: {
14767
14767
  updatedAt: Date;
14768
14768
  deletedAt: Date | null;
14769
14769
  entityId: string;
14770
- queueId: string | null;
14771
- contactId: string | null;
14770
+ firstResponseTime: number | null;
14772
14771
  caseId: number;
14773
14772
  entityName: string;
14773
+ contactId: string | null;
14774
+ queueId: string | null;
14774
14775
  agentId: string | null;
14775
14776
  startedDate: Date | null;
14776
14777
  handledTime: number | null;
14777
- firstResponseTime: number | null;
14778
14778
  wrapUpForm: {
14779
14779
  id: string;
14780
14780
  disposition: string | null;
@@ -14788,9 +14788,9 @@ export declare const mainChatContract: {
14788
14788
  updatedAt: Date;
14789
14789
  deletedAt: Date | null;
14790
14790
  }[];
14791
+ note: string | null;
14791
14792
  callFrom: string | null;
14792
14793
  callTo: string | null;
14793
- note: string | null;
14794
14794
  } | null;
14795
14795
  }>;
14796
14796
  }, "strip", z.ZodTypeAny, {
@@ -14843,12 +14843,12 @@ export declare const mainChatContract: {
14843
14843
  telephonySignature: string | null;
14844
14844
  };
14845
14845
  };
14846
- firstResponseTime: number;
14847
14846
  lastMessage: string;
14848
14847
  handleTime: number;
14849
14848
  closeAt: Date;
14850
14849
  unreadCount: number;
14851
14850
  firstResponseAt: Date;
14851
+ firstResponseTime: number;
14852
14852
  isLatest: boolean;
14853
14853
  platformContact: {
14854
14854
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -14862,7 +14862,6 @@ export declare const mainChatContract: {
14862
14862
  createdAt: Date;
14863
14863
  updatedAt: Date;
14864
14864
  deletedAt: Date | null;
14865
- channelId: string;
14866
14865
  contact: {
14867
14866
  id: string;
14868
14867
  channel: string | null;
@@ -14967,6 +14966,7 @@ export declare const mainChatContract: {
14967
14966
  };
14968
14967
  }[] | undefined;
14969
14968
  };
14969
+ channelId: string;
14970
14970
  socialPlatformId: string;
14971
14971
  };
14972
14972
  assignee: {
@@ -15022,14 +15022,14 @@ export declare const mainChatContract: {
15022
15022
  updatedAt: Date;
15023
15023
  deletedAt: Date | null;
15024
15024
  entityId: string;
15025
- queueId: string | null;
15026
- contactId: string | null;
15025
+ firstResponseTime: number | null;
15027
15026
  caseId: number;
15028
15027
  entityName: string;
15028
+ contactId: string | null;
15029
+ queueId: string | null;
15029
15030
  agentId: string | null;
15030
15031
  startedDate: Date | null;
15031
15032
  handledTime: number | null;
15032
- firstResponseTime: number | null;
15033
15033
  wrapUpForm: {
15034
15034
  id: string;
15035
15035
  disposition: string | null;
@@ -15043,9 +15043,9 @@ export declare const mainChatContract: {
15043
15043
  updatedAt: Date;
15044
15044
  deletedAt: Date | null;
15045
15045
  }[];
15046
+ note: string | null;
15046
15047
  callFrom: string | null;
15047
15048
  callTo: string | null;
15048
- note: string | null;
15049
15049
  } | null;
15050
15050
  };
15051
15051
  channel?: {
@@ -15163,12 +15163,12 @@ export declare const mainChatContract: {
15163
15163
  telephonySignature: string | null;
15164
15164
  };
15165
15165
  };
15166
- firstResponseTime: number;
15167
15166
  lastMessage: string;
15168
15167
  handleTime: number;
15169
15168
  closeAt: Date;
15170
15169
  unreadCount: number;
15171
15170
  firstResponseAt: Date;
15171
+ firstResponseTime: number;
15172
15172
  isLatest: boolean;
15173
15173
  platformContact: {
15174
15174
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -15182,7 +15182,6 @@ export declare const mainChatContract: {
15182
15182
  createdAt: Date;
15183
15183
  updatedAt: Date;
15184
15184
  deletedAt: Date | null;
15185
- channelId: string;
15186
15185
  contact: {
15187
15186
  id: string;
15188
15187
  channel: string | null;
@@ -15287,6 +15286,7 @@ export declare const mainChatContract: {
15287
15286
  };
15288
15287
  }[] | undefined;
15289
15288
  };
15289
+ channelId: string;
15290
15290
  socialPlatformId: string;
15291
15291
  };
15292
15292
  assignee: {
@@ -15342,14 +15342,14 @@ export declare const mainChatContract: {
15342
15342
  updatedAt: Date;
15343
15343
  deletedAt: Date | null;
15344
15344
  entityId: string;
15345
- queueId: string | null;
15346
- contactId: string | null;
15345
+ firstResponseTime: number | null;
15347
15346
  caseId: number;
15348
15347
  entityName: string;
15348
+ contactId: string | null;
15349
+ queueId: string | null;
15349
15350
  agentId: string | null;
15350
15351
  startedDate: Date | null;
15351
15352
  handledTime: number | null;
15352
- firstResponseTime: number | null;
15353
15353
  wrapUpForm: {
15354
15354
  id: string;
15355
15355
  disposition: string | null;
@@ -15363,9 +15363,9 @@ export declare const mainChatContract: {
15363
15363
  updatedAt: Date;
15364
15364
  deletedAt: Date | null;
15365
15365
  }[];
15366
+ note: string | null;
15366
15367
  callFrom: string | null;
15367
15368
  callTo: string | null;
15368
- note: string | null;
15369
15369
  } | null;
15370
15370
  };
15371
15371
  channel?: {
@@ -16190,6 +16190,12 @@ export declare const mainChatContract: {
16190
16190
  telephonySignature: string | null;
16191
16191
  };
16192
16192
  };
16193
+ readAt: Date;
16194
+ platformMessageId: string;
16195
+ replyPlatformMessageId: string;
16196
+ locale: "" | "th" | "mm" | "en";
16197
+ previewUrl: string;
16198
+ imageSetId: string;
16193
16199
  room: {
16194
16200
  id: string;
16195
16201
  direction: "incoming" | "outgoing" | "system";
@@ -16240,12 +16246,12 @@ export declare const mainChatContract: {
16240
16246
  telephonySignature: string | null;
16241
16247
  };
16242
16248
  };
16243
- firstResponseTime: number;
16244
16249
  lastMessage: string;
16245
16250
  handleTime: number;
16246
16251
  closeAt: Date;
16247
16252
  unreadCount: number;
16248
16253
  firstResponseAt: Date;
16254
+ firstResponseTime: number;
16249
16255
  isLatest: boolean;
16250
16256
  platformContact: {
16251
16257
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -16259,7 +16265,6 @@ export declare const mainChatContract: {
16259
16265
  createdAt: Date;
16260
16266
  updatedAt: Date;
16261
16267
  deletedAt: Date | null;
16262
- channelId: string;
16263
16268
  contact: {
16264
16269
  id: string;
16265
16270
  channel: string | null;
@@ -16364,6 +16369,7 @@ export declare const mainChatContract: {
16364
16369
  };
16365
16370
  }[] | undefined;
16366
16371
  };
16372
+ channelId: string;
16367
16373
  socialPlatformId: string;
16368
16374
  };
16369
16375
  assignee: {
@@ -16419,14 +16425,14 @@ export declare const mainChatContract: {
16419
16425
  updatedAt: Date;
16420
16426
  deletedAt: Date | null;
16421
16427
  entityId: string;
16422
- queueId: string | null;
16423
- contactId: string | null;
16428
+ firstResponseTime: number | null;
16424
16429
  caseId: number;
16425
16430
  entityName: string;
16431
+ contactId: string | null;
16432
+ queueId: string | null;
16426
16433
  agentId: string | null;
16427
16434
  startedDate: Date | null;
16428
16435
  handledTime: number | null;
16429
- firstResponseTime: number | null;
16430
16436
  wrapUpForm: {
16431
16437
  id: string;
16432
16438
  disposition: string | null;
@@ -16440,9 +16446,9 @@ export declare const mainChatContract: {
16440
16446
  updatedAt: Date;
16441
16447
  deletedAt: Date | null;
16442
16448
  }[];
16449
+ note: string | null;
16443
16450
  callFrom: string | null;
16444
16451
  callTo: string | null;
16445
- note: string | null;
16446
16452
  } | null;
16447
16453
  };
16448
16454
  channel?: {
@@ -16511,12 +16517,6 @@ export declare const mainChatContract: {
16511
16517
  } | undefined;
16512
16518
  } | undefined;
16513
16519
  };
16514
- readAt: Date;
16515
- platformMessageId: string;
16516
- replyPlatformMessageId: string;
16517
- locale: "" | "th" | "mm" | "en";
16518
- previewUrl: string;
16519
- imageSetId: string;
16520
16520
  sender: {
16521
16521
  id: string;
16522
16522
  address: string | null;
@@ -16673,6 +16673,12 @@ export declare const mainChatContract: {
16673
16673
  telephonySignature: string | null;
16674
16674
  };
16675
16675
  };
16676
+ readAt: Date;
16677
+ platformMessageId: string;
16678
+ replyPlatformMessageId: string;
16679
+ locale: "" | "th" | "mm" | "en";
16680
+ previewUrl: string;
16681
+ imageSetId: string;
16676
16682
  room: {
16677
16683
  id: string;
16678
16684
  direction: "incoming" | "outgoing" | "system";
@@ -16723,12 +16729,12 @@ export declare const mainChatContract: {
16723
16729
  telephonySignature: string | null;
16724
16730
  };
16725
16731
  };
16726
- firstResponseTime: number;
16727
16732
  lastMessage: string;
16728
16733
  handleTime: number;
16729
16734
  closeAt: Date;
16730
16735
  unreadCount: number;
16731
16736
  firstResponseAt: Date;
16737
+ firstResponseTime: number;
16732
16738
  isLatest: boolean;
16733
16739
  platformContact: {
16734
16740
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -16742,7 +16748,6 @@ export declare const mainChatContract: {
16742
16748
  createdAt: Date;
16743
16749
  updatedAt: Date;
16744
16750
  deletedAt: Date | null;
16745
- channelId: string;
16746
16751
  contact: {
16747
16752
  id: string;
16748
16753
  channel: string | null;
@@ -16847,6 +16852,7 @@ export declare const mainChatContract: {
16847
16852
  };
16848
16853
  }[] | undefined;
16849
16854
  };
16855
+ channelId: string;
16850
16856
  socialPlatformId: string;
16851
16857
  };
16852
16858
  assignee: {
@@ -16902,14 +16908,14 @@ export declare const mainChatContract: {
16902
16908
  updatedAt: Date;
16903
16909
  deletedAt: Date | null;
16904
16910
  entityId: string;
16905
- queueId: string | null;
16906
- contactId: string | null;
16911
+ firstResponseTime: number | null;
16907
16912
  caseId: number;
16908
16913
  entityName: string;
16914
+ contactId: string | null;
16915
+ queueId: string | null;
16909
16916
  agentId: string | null;
16910
16917
  startedDate: Date | null;
16911
16918
  handledTime: number | null;
16912
- firstResponseTime: number | null;
16913
16919
  wrapUpForm: {
16914
16920
  id: string;
16915
16921
  disposition: string | null;
@@ -16923,9 +16929,9 @@ export declare const mainChatContract: {
16923
16929
  updatedAt: Date;
16924
16930
  deletedAt: Date | null;
16925
16931
  }[];
16932
+ note: string | null;
16926
16933
  callFrom: string | null;
16927
16934
  callTo: string | null;
16928
- note: string | null;
16929
16935
  } | null;
16930
16936
  };
16931
16937
  channel?: {
@@ -16994,12 +17000,6 @@ export declare const mainChatContract: {
16994
17000
  } | undefined;
16995
17001
  } | undefined;
16996
17002
  };
16997
- readAt: Date;
16998
- platformMessageId: string;
16999
- replyPlatformMessageId: string;
17000
- locale: "" | "th" | "mm" | "en";
17001
- previewUrl: string;
17002
- imageSetId: string;
17003
17003
  sender: {
17004
17004
  id: string;
17005
17005
  address: string | null;
@@ -17158,6 +17158,12 @@ export declare const mainChatContract: {
17158
17158
  telephonySignature: string | null;
17159
17159
  };
17160
17160
  };
17161
+ readAt: Date;
17162
+ platformMessageId: string;
17163
+ replyPlatformMessageId: string;
17164
+ locale: "" | "th" | "mm" | "en";
17165
+ previewUrl: string;
17166
+ imageSetId: string;
17161
17167
  room: {
17162
17168
  id: string;
17163
17169
  direction: "incoming" | "outgoing" | "system";
@@ -17208,12 +17214,12 @@ export declare const mainChatContract: {
17208
17214
  telephonySignature: string | null;
17209
17215
  };
17210
17216
  };
17211
- firstResponseTime: number;
17212
17217
  lastMessage: string;
17213
17218
  handleTime: number;
17214
17219
  closeAt: Date;
17215
17220
  unreadCount: number;
17216
17221
  firstResponseAt: Date;
17222
+ firstResponseTime: number;
17217
17223
  isLatest: boolean;
17218
17224
  platformContact: {
17219
17225
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -17227,7 +17233,6 @@ export declare const mainChatContract: {
17227
17233
  createdAt: Date;
17228
17234
  updatedAt: Date;
17229
17235
  deletedAt: Date | null;
17230
- channelId: string;
17231
17236
  contact: {
17232
17237
  id: string;
17233
17238
  channel: string | null;
@@ -17332,6 +17337,7 @@ export declare const mainChatContract: {
17332
17337
  };
17333
17338
  }[] | undefined;
17334
17339
  };
17340
+ channelId: string;
17335
17341
  socialPlatformId: string;
17336
17342
  };
17337
17343
  assignee: {
@@ -17387,14 +17393,14 @@ export declare const mainChatContract: {
17387
17393
  updatedAt: Date;
17388
17394
  deletedAt: Date | null;
17389
17395
  entityId: string;
17390
- queueId: string | null;
17391
- contactId: string | null;
17396
+ firstResponseTime: number | null;
17392
17397
  caseId: number;
17393
17398
  entityName: string;
17399
+ contactId: string | null;
17400
+ queueId: string | null;
17394
17401
  agentId: string | null;
17395
17402
  startedDate: Date | null;
17396
17403
  handledTime: number | null;
17397
- firstResponseTime: number | null;
17398
17404
  wrapUpForm: {
17399
17405
  id: string;
17400
17406
  disposition: string | null;
@@ -17408,9 +17414,9 @@ export declare const mainChatContract: {
17408
17414
  updatedAt: Date;
17409
17415
  deletedAt: Date | null;
17410
17416
  }[];
17417
+ note: string | null;
17411
17418
  callFrom: string | null;
17412
17419
  callTo: string | null;
17413
- note: string | null;
17414
17420
  } | null;
17415
17421
  };
17416
17422
  channel?: {
@@ -17479,12 +17485,6 @@ export declare const mainChatContract: {
17479
17485
  } | undefined;
17480
17486
  } | undefined;
17481
17487
  };
17482
- readAt: Date;
17483
- platformMessageId: string;
17484
- replyPlatformMessageId: string;
17485
- locale: "" | "th" | "mm" | "en";
17486
- previewUrl: string;
17487
- imageSetId: string;
17488
17488
  sender: {
17489
17489
  id: string;
17490
17490
  address: string | null;
@@ -17644,6 +17644,12 @@ export declare const mainChatContract: {
17644
17644
  telephonySignature: string | null;
17645
17645
  };
17646
17646
  };
17647
+ readAt: Date;
17648
+ platformMessageId: string;
17649
+ replyPlatformMessageId: string;
17650
+ locale: "" | "th" | "mm" | "en";
17651
+ previewUrl: string;
17652
+ imageSetId: string;
17647
17653
  room: {
17648
17654
  id: string;
17649
17655
  direction: "incoming" | "outgoing" | "system";
@@ -17694,12 +17700,12 @@ export declare const mainChatContract: {
17694
17700
  telephonySignature: string | null;
17695
17701
  };
17696
17702
  };
17697
- firstResponseTime: number;
17698
17703
  lastMessage: string;
17699
17704
  handleTime: number;
17700
17705
  closeAt: Date;
17701
17706
  unreadCount: number;
17702
17707
  firstResponseAt: Date;
17708
+ firstResponseTime: number;
17703
17709
  isLatest: boolean;
17704
17710
  platformContact: {
17705
17711
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -17713,7 +17719,6 @@ export declare const mainChatContract: {
17713
17719
  createdAt: Date;
17714
17720
  updatedAt: Date;
17715
17721
  deletedAt: Date | null;
17716
- channelId: string;
17717
17722
  contact: {
17718
17723
  id: string;
17719
17724
  channel: string | null;
@@ -17818,6 +17823,7 @@ export declare const mainChatContract: {
17818
17823
  };
17819
17824
  }[] | undefined;
17820
17825
  };
17826
+ channelId: string;
17821
17827
  socialPlatformId: string;
17822
17828
  };
17823
17829
  assignee: {
@@ -17873,14 +17879,14 @@ export declare const mainChatContract: {
17873
17879
  updatedAt: Date;
17874
17880
  deletedAt: Date | null;
17875
17881
  entityId: string;
17876
- queueId: string | null;
17877
- contactId: string | null;
17882
+ firstResponseTime: number | null;
17878
17883
  caseId: number;
17879
17884
  entityName: string;
17885
+ contactId: string | null;
17886
+ queueId: string | null;
17880
17887
  agentId: string | null;
17881
17888
  startedDate: Date | null;
17882
17889
  handledTime: number | null;
17883
- firstResponseTime: number | null;
17884
17890
  wrapUpForm: {
17885
17891
  id: string;
17886
17892
  disposition: string | null;
@@ -17894,9 +17900,9 @@ export declare const mainChatContract: {
17894
17900
  updatedAt: Date;
17895
17901
  deletedAt: Date | null;
17896
17902
  }[];
17903
+ note: string | null;
17897
17904
  callFrom: string | null;
17898
17905
  callTo: string | null;
17899
- note: string | null;
17900
17906
  } | null;
17901
17907
  };
17902
17908
  channel?: {
@@ -17965,12 +17971,6 @@ export declare const mainChatContract: {
17965
17971
  } | undefined;
17966
17972
  } | undefined;
17967
17973
  };
17968
- readAt: Date;
17969
- platformMessageId: string;
17970
- replyPlatformMessageId: string;
17971
- locale: "" | "th" | "mm" | "en";
17972
- previewUrl: string;
17973
- imageSetId: string;
17974
17974
  sender: {
17975
17975
  id: string;
17976
17976
  address: string | null;
@@ -18962,7 +18962,6 @@ export declare const mainChatContract: {
18962
18962
  createdAt: Date;
18963
18963
  updatedAt: Date;
18964
18964
  deletedAt: Date | null;
18965
- channelId: string;
18966
18965
  contact: {
18967
18966
  id: string;
18968
18967
  channel: string | null;
@@ -19067,6 +19066,7 @@ export declare const mainChatContract: {
19067
19066
  };
19068
19067
  }[] | undefined;
19069
19068
  };
19069
+ channelId: string;
19070
19070
  socialPlatformId: string;
19071
19071
  }, {
19072
19072
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -19080,7 +19080,6 @@ export declare const mainChatContract: {
19080
19080
  createdAt: Date;
19081
19081
  updatedAt: Date;
19082
19082
  deletedAt: Date | null;
19083
- channelId: string;
19084
19083
  contact: {
19085
19084
  id: string;
19086
19085
  channel: string | null;
@@ -19185,6 +19184,7 @@ export declare const mainChatContract: {
19185
19184
  };
19186
19185
  }[] | undefined;
19187
19186
  };
19187
+ channelId: string;
19188
19188
  socialPlatformId: string;
19189
19189
  }>;
19190
19190
  actor: z.ZodObject<{
@@ -20018,9 +20018,9 @@ export declare const mainChatContract: {
20018
20018
  updatedAt: Date;
20019
20019
  deletedAt: Date | null;
20020
20020
  }[];
20021
+ note: string | null;
20021
20022
  callFrom: string | null;
20022
20023
  callTo: string | null;
20023
- note: string | null;
20024
20024
  }, {
20025
20025
  id: string;
20026
20026
  disposition: string | null;
@@ -20034,9 +20034,9 @@ export declare const mainChatContract: {
20034
20034
  updatedAt: Date;
20035
20035
  deletedAt: Date | null;
20036
20036
  }[];
20037
+ note: string | null;
20037
20038
  callFrom: string | null;
20038
20039
  callTo: string | null;
20039
- note: string | null;
20040
20040
  }>>;
20041
20041
  }, "strip", z.ZodTypeAny, {
20042
20042
  id: string;
@@ -20047,14 +20047,14 @@ export declare const mainChatContract: {
20047
20047
  updatedAt: Date;
20048
20048
  deletedAt: Date | null;
20049
20049
  entityId: string;
20050
- queueId: string | null;
20051
- contactId: string | null;
20050
+ firstResponseTime: number | null;
20052
20051
  caseId: number;
20053
20052
  entityName: string;
20053
+ contactId: string | null;
20054
+ queueId: string | null;
20054
20055
  agentId: string | null;
20055
20056
  startedDate: Date | null;
20056
20057
  handledTime: number | null;
20057
- firstResponseTime: number | null;
20058
20058
  wrapUpForm: {
20059
20059
  id: string;
20060
20060
  disposition: string | null;
@@ -20068,9 +20068,9 @@ export declare const mainChatContract: {
20068
20068
  updatedAt: Date;
20069
20069
  deletedAt: Date | null;
20070
20070
  }[];
20071
+ note: string | null;
20071
20072
  callFrom: string | null;
20072
20073
  callTo: string | null;
20073
- note: string | null;
20074
20074
  } | null;
20075
20075
  }, {
20076
20076
  id: string;
@@ -20081,14 +20081,14 @@ export declare const mainChatContract: {
20081
20081
  updatedAt: Date;
20082
20082
  deletedAt: Date | null;
20083
20083
  entityId: string;
20084
- queueId: string | null;
20085
- contactId: string | null;
20084
+ firstResponseTime: number | null;
20086
20085
  caseId: number;
20087
20086
  entityName: string;
20087
+ contactId: string | null;
20088
+ queueId: string | null;
20088
20089
  agentId: string | null;
20089
20090
  startedDate: Date | null;
20090
20091
  handledTime: number | null;
20091
- firstResponseTime: number | null;
20092
20092
  wrapUpForm: {
20093
20093
  id: string;
20094
20094
  disposition: string | null;
@@ -20102,9 +20102,9 @@ export declare const mainChatContract: {
20102
20102
  updatedAt: Date;
20103
20103
  deletedAt: Date | null;
20104
20104
  }[];
20105
+ note: string | null;
20105
20106
  callFrom: string | null;
20106
20107
  callTo: string | null;
20107
- note: string | null;
20108
20108
  } | null;
20109
20109
  }>;
20110
20110
  }, "strip", z.ZodTypeAny, {
@@ -20157,12 +20157,12 @@ export declare const mainChatContract: {
20157
20157
  telephonySignature: string | null;
20158
20158
  };
20159
20159
  };
20160
- firstResponseTime: number;
20161
20160
  lastMessage: string;
20162
20161
  handleTime: number;
20163
20162
  closeAt: Date;
20164
20163
  unreadCount: number;
20165
20164
  firstResponseAt: Date;
20165
+ firstResponseTime: number;
20166
20166
  isLatest: boolean;
20167
20167
  platformContact: {
20168
20168
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -20176,7 +20176,6 @@ export declare const mainChatContract: {
20176
20176
  createdAt: Date;
20177
20177
  updatedAt: Date;
20178
20178
  deletedAt: Date | null;
20179
- channelId: string;
20180
20179
  contact: {
20181
20180
  id: string;
20182
20181
  channel: string | null;
@@ -20281,6 +20280,7 @@ export declare const mainChatContract: {
20281
20280
  };
20282
20281
  }[] | undefined;
20283
20282
  };
20283
+ channelId: string;
20284
20284
  socialPlatformId: string;
20285
20285
  };
20286
20286
  assignee: {
@@ -20336,14 +20336,14 @@ export declare const mainChatContract: {
20336
20336
  updatedAt: Date;
20337
20337
  deletedAt: Date | null;
20338
20338
  entityId: string;
20339
- queueId: string | null;
20340
- contactId: string | null;
20339
+ firstResponseTime: number | null;
20341
20340
  caseId: number;
20342
20341
  entityName: string;
20342
+ contactId: string | null;
20343
+ queueId: string | null;
20343
20344
  agentId: string | null;
20344
20345
  startedDate: Date | null;
20345
20346
  handledTime: number | null;
20346
- firstResponseTime: number | null;
20347
20347
  wrapUpForm: {
20348
20348
  id: string;
20349
20349
  disposition: string | null;
@@ -20357,9 +20357,9 @@ export declare const mainChatContract: {
20357
20357
  updatedAt: Date;
20358
20358
  deletedAt: Date | null;
20359
20359
  }[];
20360
+ note: string | null;
20360
20361
  callFrom: string | null;
20361
20362
  callTo: string | null;
20362
- note: string | null;
20363
20363
  } | null;
20364
20364
  };
20365
20365
  channel?: {
@@ -20477,12 +20477,12 @@ export declare const mainChatContract: {
20477
20477
  telephonySignature: string | null;
20478
20478
  };
20479
20479
  };
20480
- firstResponseTime: number;
20481
20480
  lastMessage: string;
20482
20481
  handleTime: number;
20483
20482
  closeAt: Date;
20484
20483
  unreadCount: number;
20485
20484
  firstResponseAt: Date;
20485
+ firstResponseTime: number;
20486
20486
  isLatest: boolean;
20487
20487
  platformContact: {
20488
20488
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -20496,7 +20496,6 @@ export declare const mainChatContract: {
20496
20496
  createdAt: Date;
20497
20497
  updatedAt: Date;
20498
20498
  deletedAt: Date | null;
20499
- channelId: string;
20500
20499
  contact: {
20501
20500
  id: string;
20502
20501
  channel: string | null;
@@ -20601,6 +20600,7 @@ export declare const mainChatContract: {
20601
20600
  };
20602
20601
  }[] | undefined;
20603
20602
  };
20603
+ channelId: string;
20604
20604
  socialPlatformId: string;
20605
20605
  };
20606
20606
  assignee: {
@@ -20656,14 +20656,14 @@ export declare const mainChatContract: {
20656
20656
  updatedAt: Date;
20657
20657
  deletedAt: Date | null;
20658
20658
  entityId: string;
20659
- queueId: string | null;
20660
- contactId: string | null;
20659
+ firstResponseTime: number | null;
20661
20660
  caseId: number;
20662
20661
  entityName: string;
20662
+ contactId: string | null;
20663
+ queueId: string | null;
20663
20664
  agentId: string | null;
20664
20665
  startedDate: Date | null;
20665
20666
  handledTime: number | null;
20666
- firstResponseTime: number | null;
20667
20667
  wrapUpForm: {
20668
20668
  id: string;
20669
20669
  disposition: string | null;
@@ -20677,9 +20677,9 @@ export declare const mainChatContract: {
20677
20677
  updatedAt: Date;
20678
20678
  deletedAt: Date | null;
20679
20679
  }[];
20680
+ note: string | null;
20680
20681
  callFrom: string | null;
20681
20682
  callTo: string | null;
20682
- note: string | null;
20683
20683
  } | null;
20684
20684
  };
20685
20685
  channel?: {
@@ -21504,6 +21504,12 @@ export declare const mainChatContract: {
21504
21504
  telephonySignature: string | null;
21505
21505
  };
21506
21506
  };
21507
+ readAt: Date;
21508
+ platformMessageId: string;
21509
+ replyPlatformMessageId: string;
21510
+ locale: "" | "th" | "mm" | "en";
21511
+ previewUrl: string;
21512
+ imageSetId: string;
21507
21513
  room: {
21508
21514
  id: string;
21509
21515
  direction: "incoming" | "outgoing" | "system";
@@ -21554,12 +21560,12 @@ export declare const mainChatContract: {
21554
21560
  telephonySignature: string | null;
21555
21561
  };
21556
21562
  };
21557
- firstResponseTime: number;
21558
21563
  lastMessage: string;
21559
21564
  handleTime: number;
21560
21565
  closeAt: Date;
21561
21566
  unreadCount: number;
21562
21567
  firstResponseAt: Date;
21568
+ firstResponseTime: number;
21563
21569
  isLatest: boolean;
21564
21570
  platformContact: {
21565
21571
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -21573,7 +21579,6 @@ export declare const mainChatContract: {
21573
21579
  createdAt: Date;
21574
21580
  updatedAt: Date;
21575
21581
  deletedAt: Date | null;
21576
- channelId: string;
21577
21582
  contact: {
21578
21583
  id: string;
21579
21584
  channel: string | null;
@@ -21678,6 +21683,7 @@ export declare const mainChatContract: {
21678
21683
  };
21679
21684
  }[] | undefined;
21680
21685
  };
21686
+ channelId: string;
21681
21687
  socialPlatformId: string;
21682
21688
  };
21683
21689
  assignee: {
@@ -21733,14 +21739,14 @@ export declare const mainChatContract: {
21733
21739
  updatedAt: Date;
21734
21740
  deletedAt: Date | null;
21735
21741
  entityId: string;
21736
- queueId: string | null;
21737
- contactId: string | null;
21742
+ firstResponseTime: number | null;
21738
21743
  caseId: number;
21739
21744
  entityName: string;
21745
+ contactId: string | null;
21746
+ queueId: string | null;
21740
21747
  agentId: string | null;
21741
21748
  startedDate: Date | null;
21742
21749
  handledTime: number | null;
21743
- firstResponseTime: number | null;
21744
21750
  wrapUpForm: {
21745
21751
  id: string;
21746
21752
  disposition: string | null;
@@ -21754,9 +21760,9 @@ export declare const mainChatContract: {
21754
21760
  updatedAt: Date;
21755
21761
  deletedAt: Date | null;
21756
21762
  }[];
21763
+ note: string | null;
21757
21764
  callFrom: string | null;
21758
21765
  callTo: string | null;
21759
- note: string | null;
21760
21766
  } | null;
21761
21767
  };
21762
21768
  channel?: {
@@ -21825,12 +21831,6 @@ export declare const mainChatContract: {
21825
21831
  } | undefined;
21826
21832
  } | undefined;
21827
21833
  };
21828
- readAt: Date;
21829
- platformMessageId: string;
21830
- replyPlatformMessageId: string;
21831
- locale: "" | "th" | "mm" | "en";
21832
- previewUrl: string;
21833
- imageSetId: string;
21834
21834
  sender: {
21835
21835
  id: string;
21836
21836
  address: string | null;
@@ -21987,6 +21987,12 @@ export declare const mainChatContract: {
21987
21987
  telephonySignature: string | null;
21988
21988
  };
21989
21989
  };
21990
+ readAt: Date;
21991
+ platformMessageId: string;
21992
+ replyPlatformMessageId: string;
21993
+ locale: "" | "th" | "mm" | "en";
21994
+ previewUrl: string;
21995
+ imageSetId: string;
21990
21996
  room: {
21991
21997
  id: string;
21992
21998
  direction: "incoming" | "outgoing" | "system";
@@ -22037,12 +22043,12 @@ export declare const mainChatContract: {
22037
22043
  telephonySignature: string | null;
22038
22044
  };
22039
22045
  };
22040
- firstResponseTime: number;
22041
22046
  lastMessage: string;
22042
22047
  handleTime: number;
22043
22048
  closeAt: Date;
22044
22049
  unreadCount: number;
22045
22050
  firstResponseAt: Date;
22051
+ firstResponseTime: number;
22046
22052
  isLatest: boolean;
22047
22053
  platformContact: {
22048
22054
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -22056,7 +22062,6 @@ export declare const mainChatContract: {
22056
22062
  createdAt: Date;
22057
22063
  updatedAt: Date;
22058
22064
  deletedAt: Date | null;
22059
- channelId: string;
22060
22065
  contact: {
22061
22066
  id: string;
22062
22067
  channel: string | null;
@@ -22161,6 +22166,7 @@ export declare const mainChatContract: {
22161
22166
  };
22162
22167
  }[] | undefined;
22163
22168
  };
22169
+ channelId: string;
22164
22170
  socialPlatformId: string;
22165
22171
  };
22166
22172
  assignee: {
@@ -22216,14 +22222,14 @@ export declare const mainChatContract: {
22216
22222
  updatedAt: Date;
22217
22223
  deletedAt: Date | null;
22218
22224
  entityId: string;
22219
- queueId: string | null;
22220
- contactId: string | null;
22225
+ firstResponseTime: number | null;
22221
22226
  caseId: number;
22222
22227
  entityName: string;
22228
+ contactId: string | null;
22229
+ queueId: string | null;
22223
22230
  agentId: string | null;
22224
22231
  startedDate: Date | null;
22225
22232
  handledTime: number | null;
22226
- firstResponseTime: number | null;
22227
22233
  wrapUpForm: {
22228
22234
  id: string;
22229
22235
  disposition: string | null;
@@ -22237,9 +22243,9 @@ export declare const mainChatContract: {
22237
22243
  updatedAt: Date;
22238
22244
  deletedAt: Date | null;
22239
22245
  }[];
22246
+ note: string | null;
22240
22247
  callFrom: string | null;
22241
22248
  callTo: string | null;
22242
- note: string | null;
22243
22249
  } | null;
22244
22250
  };
22245
22251
  channel?: {
@@ -22308,12 +22314,6 @@ export declare const mainChatContract: {
22308
22314
  } | undefined;
22309
22315
  } | undefined;
22310
22316
  };
22311
- readAt: Date;
22312
- platformMessageId: string;
22313
- replyPlatformMessageId: string;
22314
- locale: "" | "th" | "mm" | "en";
22315
- previewUrl: string;
22316
- imageSetId: string;
22317
22317
  sender: {
22318
22318
  id: string;
22319
22319
  address: string | null;
@@ -22472,6 +22472,12 @@ export declare const mainChatContract: {
22472
22472
  telephonySignature: string | null;
22473
22473
  };
22474
22474
  };
22475
+ readAt: Date;
22476
+ platformMessageId: string;
22477
+ replyPlatformMessageId: string;
22478
+ locale: "" | "th" | "mm" | "en";
22479
+ previewUrl: string;
22480
+ imageSetId: string;
22475
22481
  room: {
22476
22482
  id: string;
22477
22483
  direction: "incoming" | "outgoing" | "system";
@@ -22522,12 +22528,12 @@ export declare const mainChatContract: {
22522
22528
  telephonySignature: string | null;
22523
22529
  };
22524
22530
  };
22525
- firstResponseTime: number;
22526
22531
  lastMessage: string;
22527
22532
  handleTime: number;
22528
22533
  closeAt: Date;
22529
22534
  unreadCount: number;
22530
22535
  firstResponseAt: Date;
22536
+ firstResponseTime: number;
22531
22537
  isLatest: boolean;
22532
22538
  platformContact: {
22533
22539
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -22541,7 +22547,6 @@ export declare const mainChatContract: {
22541
22547
  createdAt: Date;
22542
22548
  updatedAt: Date;
22543
22549
  deletedAt: Date | null;
22544
- channelId: string;
22545
22550
  contact: {
22546
22551
  id: string;
22547
22552
  channel: string | null;
@@ -22646,6 +22651,7 @@ export declare const mainChatContract: {
22646
22651
  };
22647
22652
  }[] | undefined;
22648
22653
  };
22654
+ channelId: string;
22649
22655
  socialPlatformId: string;
22650
22656
  };
22651
22657
  assignee: {
@@ -22701,14 +22707,14 @@ export declare const mainChatContract: {
22701
22707
  updatedAt: Date;
22702
22708
  deletedAt: Date | null;
22703
22709
  entityId: string;
22704
- queueId: string | null;
22705
- contactId: string | null;
22710
+ firstResponseTime: number | null;
22706
22711
  caseId: number;
22707
22712
  entityName: string;
22713
+ contactId: string | null;
22714
+ queueId: string | null;
22708
22715
  agentId: string | null;
22709
22716
  startedDate: Date | null;
22710
22717
  handledTime: number | null;
22711
- firstResponseTime: number | null;
22712
22718
  wrapUpForm: {
22713
22719
  id: string;
22714
22720
  disposition: string | null;
@@ -22722,9 +22728,9 @@ export declare const mainChatContract: {
22722
22728
  updatedAt: Date;
22723
22729
  deletedAt: Date | null;
22724
22730
  }[];
22731
+ note: string | null;
22725
22732
  callFrom: string | null;
22726
22733
  callTo: string | null;
22727
- note: string | null;
22728
22734
  } | null;
22729
22735
  };
22730
22736
  channel?: {
@@ -22793,12 +22799,6 @@ export declare const mainChatContract: {
22793
22799
  } | undefined;
22794
22800
  } | undefined;
22795
22801
  };
22796
- readAt: Date;
22797
- platformMessageId: string;
22798
- replyPlatformMessageId: string;
22799
- locale: "" | "th" | "mm" | "en";
22800
- previewUrl: string;
22801
- imageSetId: string;
22802
22802
  sender: {
22803
22803
  id: string;
22804
22804
  address: string | null;
@@ -22961,6 +22961,12 @@ export declare const mainChatContract: {
22961
22961
  telephonySignature: string | null;
22962
22962
  };
22963
22963
  };
22964
+ readAt: Date;
22965
+ platformMessageId: string;
22966
+ replyPlatformMessageId: string;
22967
+ locale: "" | "th" | "mm" | "en";
22968
+ previewUrl: string;
22969
+ imageSetId: string;
22964
22970
  room: {
22965
22971
  id: string;
22966
22972
  direction: "incoming" | "outgoing" | "system";
@@ -23011,12 +23017,12 @@ export declare const mainChatContract: {
23011
23017
  telephonySignature: string | null;
23012
23018
  };
23013
23019
  };
23014
- firstResponseTime: number;
23015
23020
  lastMessage: string;
23016
23021
  handleTime: number;
23017
23022
  closeAt: Date;
23018
23023
  unreadCount: number;
23019
23024
  firstResponseAt: Date;
23025
+ firstResponseTime: number;
23020
23026
  isLatest: boolean;
23021
23027
  platformContact: {
23022
23028
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -23030,7 +23036,6 @@ export declare const mainChatContract: {
23030
23036
  createdAt: Date;
23031
23037
  updatedAt: Date;
23032
23038
  deletedAt: Date | null;
23033
- channelId: string;
23034
23039
  contact: {
23035
23040
  id: string;
23036
23041
  channel: string | null;
@@ -23135,6 +23140,7 @@ export declare const mainChatContract: {
23135
23140
  };
23136
23141
  }[] | undefined;
23137
23142
  };
23143
+ channelId: string;
23138
23144
  socialPlatformId: string;
23139
23145
  };
23140
23146
  assignee: {
@@ -23190,14 +23196,14 @@ export declare const mainChatContract: {
23190
23196
  updatedAt: Date;
23191
23197
  deletedAt: Date | null;
23192
23198
  entityId: string;
23193
- queueId: string | null;
23194
- contactId: string | null;
23199
+ firstResponseTime: number | null;
23195
23200
  caseId: number;
23196
23201
  entityName: string;
23202
+ contactId: string | null;
23203
+ queueId: string | null;
23197
23204
  agentId: string | null;
23198
23205
  startedDate: Date | null;
23199
23206
  handledTime: number | null;
23200
- firstResponseTime: number | null;
23201
23207
  wrapUpForm: {
23202
23208
  id: string;
23203
23209
  disposition: string | null;
@@ -23211,9 +23217,9 @@ export declare const mainChatContract: {
23211
23217
  updatedAt: Date;
23212
23218
  deletedAt: Date | null;
23213
23219
  }[];
23220
+ note: string | null;
23214
23221
  callFrom: string | null;
23215
23222
  callTo: string | null;
23216
- note: string | null;
23217
23223
  } | null;
23218
23224
  };
23219
23225
  channel?: {
@@ -23282,12 +23288,6 @@ export declare const mainChatContract: {
23282
23288
  } | undefined;
23283
23289
  } | undefined;
23284
23290
  };
23285
- readAt: Date;
23286
- platformMessageId: string;
23287
- replyPlatformMessageId: string;
23288
- locale: "" | "th" | "mm" | "en";
23289
- previewUrl: string;
23290
- imageSetId: string;
23291
23291
  sender: {
23292
23292
  id: string;
23293
23293
  address: string | null;
@@ -23950,12 +23950,12 @@ export declare const mainChatContract: {
23950
23950
  telephonySignature: string | null;
23951
23951
  };
23952
23952
  }>;
23953
- firstResponseTime: z.ZodNumber;
23954
23953
  lastMessage: z.ZodString;
23955
23954
  handleTime: z.ZodNumber;
23956
23955
  closeAt: z.ZodDate;
23957
23956
  unreadCount: z.ZodNumber;
23958
23957
  firstResponseAt: z.ZodDate;
23958
+ firstResponseTime: z.ZodNumber;
23959
23959
  isLatest: z.ZodBoolean;
23960
23960
  platformContact: z.ZodObject<{
23961
23961
  id: z.ZodString;
@@ -24751,7 +24751,6 @@ export declare const mainChatContract: {
24751
24751
  createdAt: Date;
24752
24752
  updatedAt: Date;
24753
24753
  deletedAt: Date | null;
24754
- channelId: string;
24755
24754
  contact: {
24756
24755
  id: string;
24757
24756
  channel: string | null;
@@ -24856,6 +24855,7 @@ export declare const mainChatContract: {
24856
24855
  };
24857
24856
  }[] | undefined;
24858
24857
  };
24858
+ channelId: string;
24859
24859
  socialPlatformId: string;
24860
24860
  }, {
24861
24861
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -24869,7 +24869,6 @@ export declare const mainChatContract: {
24869
24869
  createdAt: Date;
24870
24870
  updatedAt: Date;
24871
24871
  deletedAt: Date | null;
24872
- channelId: string;
24873
24872
  contact: {
24874
24873
  id: string;
24875
24874
  channel: string | null;
@@ -24974,6 +24973,7 @@ export declare const mainChatContract: {
24974
24973
  };
24975
24974
  }[] | undefined;
24976
24975
  };
24976
+ channelId: string;
24977
24977
  socialPlatformId: string;
24978
24978
  }>;
24979
24979
  assignee: z.ZodObject<{
@@ -25238,9 +25238,9 @@ export declare const mainChatContract: {
25238
25238
  updatedAt: Date;
25239
25239
  deletedAt: Date | null;
25240
25240
  }[];
25241
+ note: string | null;
25241
25242
  callFrom: string | null;
25242
25243
  callTo: string | null;
25243
- note: string | null;
25244
25244
  }, {
25245
25245
  id: string;
25246
25246
  disposition: string | null;
@@ -25254,9 +25254,9 @@ export declare const mainChatContract: {
25254
25254
  updatedAt: Date;
25255
25255
  deletedAt: Date | null;
25256
25256
  }[];
25257
+ note: string | null;
25257
25258
  callFrom: string | null;
25258
25259
  callTo: string | null;
25259
- note: string | null;
25260
25260
  }>>;
25261
25261
  }, "strip", z.ZodTypeAny, {
25262
25262
  id: string;
@@ -25267,14 +25267,14 @@ export declare const mainChatContract: {
25267
25267
  updatedAt: Date;
25268
25268
  deletedAt: Date | null;
25269
25269
  entityId: string;
25270
- queueId: string | null;
25271
- contactId: string | null;
25270
+ firstResponseTime: number | null;
25272
25271
  caseId: number;
25273
25272
  entityName: string;
25273
+ contactId: string | null;
25274
+ queueId: string | null;
25274
25275
  agentId: string | null;
25275
25276
  startedDate: Date | null;
25276
25277
  handledTime: number | null;
25277
- firstResponseTime: number | null;
25278
25278
  wrapUpForm: {
25279
25279
  id: string;
25280
25280
  disposition: string | null;
@@ -25288,9 +25288,9 @@ export declare const mainChatContract: {
25288
25288
  updatedAt: Date;
25289
25289
  deletedAt: Date | null;
25290
25290
  }[];
25291
+ note: string | null;
25291
25292
  callFrom: string | null;
25292
25293
  callTo: string | null;
25293
- note: string | null;
25294
25294
  } | null;
25295
25295
  }, {
25296
25296
  id: string;
@@ -25301,14 +25301,14 @@ export declare const mainChatContract: {
25301
25301
  updatedAt: Date;
25302
25302
  deletedAt: Date | null;
25303
25303
  entityId: string;
25304
- queueId: string | null;
25305
- contactId: string | null;
25304
+ firstResponseTime: number | null;
25306
25305
  caseId: number;
25307
25306
  entityName: string;
25307
+ contactId: string | null;
25308
+ queueId: string | null;
25308
25309
  agentId: string | null;
25309
25310
  startedDate: Date | null;
25310
25311
  handledTime: number | null;
25311
- firstResponseTime: number | null;
25312
25312
  wrapUpForm: {
25313
25313
  id: string;
25314
25314
  disposition: string | null;
@@ -25322,9 +25322,9 @@ export declare const mainChatContract: {
25322
25322
  updatedAt: Date;
25323
25323
  deletedAt: Date | null;
25324
25324
  }[];
25325
+ note: string | null;
25325
25326
  callFrom: string | null;
25326
25327
  callTo: string | null;
25327
- note: string | null;
25328
25328
  } | null;
25329
25329
  }>;
25330
25330
  solveMessage: z.ZodString;
@@ -25378,12 +25378,12 @@ export declare const mainChatContract: {
25378
25378
  telephonySignature: string | null;
25379
25379
  };
25380
25380
  };
25381
- firstResponseTime: number;
25382
25381
  lastMessage: string;
25383
25382
  handleTime: number;
25384
25383
  closeAt: Date;
25385
25384
  unreadCount: number;
25386
25385
  firstResponseAt: Date;
25386
+ firstResponseTime: number;
25387
25387
  isLatest: boolean;
25388
25388
  platformContact: {
25389
25389
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -25397,7 +25397,6 @@ export declare const mainChatContract: {
25397
25397
  createdAt: Date;
25398
25398
  updatedAt: Date;
25399
25399
  deletedAt: Date | null;
25400
- channelId: string;
25401
25400
  contact: {
25402
25401
  id: string;
25403
25402
  channel: string | null;
@@ -25502,6 +25501,7 @@ export declare const mainChatContract: {
25502
25501
  };
25503
25502
  }[] | undefined;
25504
25503
  };
25504
+ channelId: string;
25505
25505
  socialPlatformId: string;
25506
25506
  };
25507
25507
  assignee: {
@@ -25557,14 +25557,14 @@ export declare const mainChatContract: {
25557
25557
  updatedAt: Date;
25558
25558
  deletedAt: Date | null;
25559
25559
  entityId: string;
25560
- queueId: string | null;
25561
- contactId: string | null;
25560
+ firstResponseTime: number | null;
25562
25561
  caseId: number;
25563
25562
  entityName: string;
25563
+ contactId: string | null;
25564
+ queueId: string | null;
25564
25565
  agentId: string | null;
25565
25566
  startedDate: Date | null;
25566
25567
  handledTime: number | null;
25567
- firstResponseTime: number | null;
25568
25568
  wrapUpForm: {
25569
25569
  id: string;
25570
25570
  disposition: string | null;
@@ -25578,9 +25578,9 @@ export declare const mainChatContract: {
25578
25578
  updatedAt: Date;
25579
25579
  deletedAt: Date | null;
25580
25580
  }[];
25581
+ note: string | null;
25581
25582
  callFrom: string | null;
25582
25583
  callTo: string | null;
25583
- note: string | null;
25584
25584
  } | null;
25585
25585
  };
25586
25586
  solveMessage: string;
@@ -25699,12 +25699,12 @@ export declare const mainChatContract: {
25699
25699
  telephonySignature: string | null;
25700
25700
  };
25701
25701
  };
25702
- firstResponseTime: number;
25703
25702
  lastMessage: string;
25704
25703
  handleTime: number;
25705
25704
  closeAt: Date;
25706
25705
  unreadCount: number;
25707
25706
  firstResponseAt: Date;
25707
+ firstResponseTime: number;
25708
25708
  isLatest: boolean;
25709
25709
  platformContact: {
25710
25710
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -25718,7 +25718,6 @@ export declare const mainChatContract: {
25718
25718
  createdAt: Date;
25719
25719
  updatedAt: Date;
25720
25720
  deletedAt: Date | null;
25721
- channelId: string;
25722
25721
  contact: {
25723
25722
  id: string;
25724
25723
  channel: string | null;
@@ -25823,6 +25822,7 @@ export declare const mainChatContract: {
25823
25822
  };
25824
25823
  }[] | undefined;
25825
25824
  };
25825
+ channelId: string;
25826
25826
  socialPlatformId: string;
25827
25827
  };
25828
25828
  assignee: {
@@ -25878,14 +25878,14 @@ export declare const mainChatContract: {
25878
25878
  updatedAt: Date;
25879
25879
  deletedAt: Date | null;
25880
25880
  entityId: string;
25881
- queueId: string | null;
25882
- contactId: string | null;
25881
+ firstResponseTime: number | null;
25883
25882
  caseId: number;
25884
25883
  entityName: string;
25884
+ contactId: string | null;
25885
+ queueId: string | null;
25885
25886
  agentId: string | null;
25886
25887
  startedDate: Date | null;
25887
25888
  handledTime: number | null;
25888
- firstResponseTime: number | null;
25889
25889
  wrapUpForm: {
25890
25890
  id: string;
25891
25891
  disposition: string | null;
@@ -25899,9 +25899,9 @@ export declare const mainChatContract: {
25899
25899
  updatedAt: Date;
25900
25900
  deletedAt: Date | null;
25901
25901
  }[];
25902
+ note: string | null;
25902
25903
  callFrom: string | null;
25903
25904
  callTo: string | null;
25904
- note: string | null;
25905
25905
  } | null;
25906
25906
  };
25907
25907
  solveMessage: string;
@@ -26022,12 +26022,12 @@ export declare const mainChatContract: {
26022
26022
  telephonySignature: string | null;
26023
26023
  };
26024
26024
  };
26025
- firstResponseTime: number;
26026
26025
  lastMessage: string;
26027
26026
  handleTime: number;
26028
26027
  closeAt: Date;
26029
26028
  unreadCount: number;
26030
26029
  firstResponseAt: Date;
26030
+ firstResponseTime: number;
26031
26031
  isLatest: boolean;
26032
26032
  platformContact: {
26033
26033
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -26041,7 +26041,6 @@ export declare const mainChatContract: {
26041
26041
  createdAt: Date;
26042
26042
  updatedAt: Date;
26043
26043
  deletedAt: Date | null;
26044
- channelId: string;
26045
26044
  contact: {
26046
26045
  id: string;
26047
26046
  channel: string | null;
@@ -26146,6 +26145,7 @@ export declare const mainChatContract: {
26146
26145
  };
26147
26146
  }[] | undefined;
26148
26147
  };
26148
+ channelId: string;
26149
26149
  socialPlatformId: string;
26150
26150
  };
26151
26151
  assignee: {
@@ -26201,14 +26201,14 @@ export declare const mainChatContract: {
26201
26201
  updatedAt: Date;
26202
26202
  deletedAt: Date | null;
26203
26203
  entityId: string;
26204
- queueId: string | null;
26205
- contactId: string | null;
26204
+ firstResponseTime: number | null;
26206
26205
  caseId: number;
26207
26206
  entityName: string;
26207
+ contactId: string | null;
26208
+ queueId: string | null;
26208
26209
  agentId: string | null;
26209
26210
  startedDate: Date | null;
26210
26211
  handledTime: number | null;
26211
- firstResponseTime: number | null;
26212
26212
  wrapUpForm: {
26213
26213
  id: string;
26214
26214
  disposition: string | null;
@@ -26222,9 +26222,9 @@ export declare const mainChatContract: {
26222
26222
  updatedAt: Date;
26223
26223
  deletedAt: Date | null;
26224
26224
  }[];
26225
+ note: string | null;
26225
26226
  callFrom: string | null;
26226
26227
  callTo: string | null;
26227
- note: string | null;
26228
26228
  } | null;
26229
26229
  };
26230
26230
  solveMessage: string;
@@ -26346,12 +26346,12 @@ export declare const mainChatContract: {
26346
26346
  telephonySignature: string | null;
26347
26347
  };
26348
26348
  };
26349
- firstResponseTime: number;
26350
26349
  lastMessage: string;
26351
26350
  handleTime: number;
26352
26351
  closeAt: Date;
26353
26352
  unreadCount: number;
26354
26353
  firstResponseAt: Date;
26354
+ firstResponseTime: number;
26355
26355
  isLatest: boolean;
26356
26356
  platformContact: {
26357
26357
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -26365,7 +26365,6 @@ export declare const mainChatContract: {
26365
26365
  createdAt: Date;
26366
26366
  updatedAt: Date;
26367
26367
  deletedAt: Date | null;
26368
- channelId: string;
26369
26368
  contact: {
26370
26369
  id: string;
26371
26370
  channel: string | null;
@@ -26470,6 +26469,7 @@ export declare const mainChatContract: {
26470
26469
  };
26471
26470
  }[] | undefined;
26472
26471
  };
26472
+ channelId: string;
26473
26473
  socialPlatformId: string;
26474
26474
  };
26475
26475
  assignee: {
@@ -26525,14 +26525,14 @@ export declare const mainChatContract: {
26525
26525
  updatedAt: Date;
26526
26526
  deletedAt: Date | null;
26527
26527
  entityId: string;
26528
- queueId: string | null;
26529
- contactId: string | null;
26528
+ firstResponseTime: number | null;
26530
26529
  caseId: number;
26531
26530
  entityName: string;
26531
+ contactId: string | null;
26532
+ queueId: string | null;
26532
26533
  agentId: string | null;
26533
26534
  startedDate: Date | null;
26534
26535
  handledTime: number | null;
26535
- firstResponseTime: number | null;
26536
26536
  wrapUpForm: {
26537
26537
  id: string;
26538
26538
  disposition: string | null;
@@ -26546,9 +26546,9 @@ export declare const mainChatContract: {
26546
26546
  updatedAt: Date;
26547
26547
  deletedAt: Date | null;
26548
26548
  }[];
26549
+ note: string | null;
26549
26550
  callFrom: string | null;
26550
26551
  callTo: string | null;
26551
- note: string | null;
26552
26552
  } | null;
26553
26553
  };
26554
26554
  solveMessage: string;
@@ -27472,7 +27472,6 @@ export declare const mainChatContract: {
27472
27472
  createdAt: Date;
27473
27473
  updatedAt: Date;
27474
27474
  deletedAt: Date | null;
27475
- channelId: string;
27476
27475
  contact: {
27477
27476
  id: string;
27478
27477
  channel: string | null;
@@ -27577,6 +27576,7 @@ export declare const mainChatContract: {
27577
27576
  };
27578
27577
  }[] | undefined;
27579
27578
  };
27579
+ channelId: string;
27580
27580
  socialPlatformId: string;
27581
27581
  }, {
27582
27582
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -27590,7 +27590,6 @@ export declare const mainChatContract: {
27590
27590
  createdAt: Date;
27591
27591
  updatedAt: Date;
27592
27592
  deletedAt: Date | null;
27593
- channelId: string;
27594
27593
  contact: {
27595
27594
  id: string;
27596
27595
  channel: string | null;
@@ -27695,6 +27694,7 @@ export declare const mainChatContract: {
27695
27694
  };
27696
27695
  }[] | undefined;
27697
27696
  };
27697
+ channelId: string;
27698
27698
  socialPlatformId: string;
27699
27699
  }>;
27700
27700
  actor: z.ZodObject<{
@@ -28528,9 +28528,9 @@ export declare const mainChatContract: {
28528
28528
  updatedAt: Date;
28529
28529
  deletedAt: Date | null;
28530
28530
  }[];
28531
+ note: string | null;
28531
28532
  callFrom: string | null;
28532
28533
  callTo: string | null;
28533
- note: string | null;
28534
28534
  }, {
28535
28535
  id: string;
28536
28536
  disposition: string | null;
@@ -28544,9 +28544,9 @@ export declare const mainChatContract: {
28544
28544
  updatedAt: Date;
28545
28545
  deletedAt: Date | null;
28546
28546
  }[];
28547
+ note: string | null;
28547
28548
  callFrom: string | null;
28548
28549
  callTo: string | null;
28549
- note: string | null;
28550
28550
  }>>;
28551
28551
  }, "strip", z.ZodTypeAny, {
28552
28552
  id: string;
@@ -28557,14 +28557,14 @@ export declare const mainChatContract: {
28557
28557
  updatedAt: Date;
28558
28558
  deletedAt: Date | null;
28559
28559
  entityId: string;
28560
- queueId: string | null;
28561
- contactId: string | null;
28560
+ firstResponseTime: number | null;
28562
28561
  caseId: number;
28563
28562
  entityName: string;
28563
+ contactId: string | null;
28564
+ queueId: string | null;
28564
28565
  agentId: string | null;
28565
28566
  startedDate: Date | null;
28566
28567
  handledTime: number | null;
28567
- firstResponseTime: number | null;
28568
28568
  wrapUpForm: {
28569
28569
  id: string;
28570
28570
  disposition: string | null;
@@ -28578,9 +28578,9 @@ export declare const mainChatContract: {
28578
28578
  updatedAt: Date;
28579
28579
  deletedAt: Date | null;
28580
28580
  }[];
28581
+ note: string | null;
28581
28582
  callFrom: string | null;
28582
28583
  callTo: string | null;
28583
- note: string | null;
28584
28584
  } | null;
28585
28585
  }, {
28586
28586
  id: string;
@@ -28591,14 +28591,14 @@ export declare const mainChatContract: {
28591
28591
  updatedAt: Date;
28592
28592
  deletedAt: Date | null;
28593
28593
  entityId: string;
28594
- queueId: string | null;
28595
- contactId: string | null;
28594
+ firstResponseTime: number | null;
28596
28595
  caseId: number;
28597
28596
  entityName: string;
28597
+ contactId: string | null;
28598
+ queueId: string | null;
28598
28599
  agentId: string | null;
28599
28600
  startedDate: Date | null;
28600
28601
  handledTime: number | null;
28601
- firstResponseTime: number | null;
28602
28602
  wrapUpForm: {
28603
28603
  id: string;
28604
28604
  disposition: string | null;
@@ -28612,9 +28612,9 @@ export declare const mainChatContract: {
28612
28612
  updatedAt: Date;
28613
28613
  deletedAt: Date | null;
28614
28614
  }[];
28615
+ note: string | null;
28615
28616
  callFrom: string | null;
28616
28617
  callTo: string | null;
28617
- note: string | null;
28618
28618
  } | null;
28619
28619
  }>;
28620
28620
  }, "strip", z.ZodTypeAny, {
@@ -28667,12 +28667,12 @@ export declare const mainChatContract: {
28667
28667
  telephonySignature: string | null;
28668
28668
  };
28669
28669
  };
28670
- firstResponseTime: number;
28671
28670
  lastMessage: string;
28672
28671
  handleTime: number;
28673
28672
  closeAt: Date;
28674
28673
  unreadCount: number;
28675
28674
  firstResponseAt: Date;
28675
+ firstResponseTime: number;
28676
28676
  isLatest: boolean;
28677
28677
  platformContact: {
28678
28678
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -28686,7 +28686,6 @@ export declare const mainChatContract: {
28686
28686
  createdAt: Date;
28687
28687
  updatedAt: Date;
28688
28688
  deletedAt: Date | null;
28689
- channelId: string;
28690
28689
  contact: {
28691
28690
  id: string;
28692
28691
  channel: string | null;
@@ -28791,6 +28790,7 @@ export declare const mainChatContract: {
28791
28790
  };
28792
28791
  }[] | undefined;
28793
28792
  };
28793
+ channelId: string;
28794
28794
  socialPlatformId: string;
28795
28795
  };
28796
28796
  assignee: {
@@ -28846,14 +28846,14 @@ export declare const mainChatContract: {
28846
28846
  updatedAt: Date;
28847
28847
  deletedAt: Date | null;
28848
28848
  entityId: string;
28849
- queueId: string | null;
28850
- contactId: string | null;
28849
+ firstResponseTime: number | null;
28851
28850
  caseId: number;
28852
28851
  entityName: string;
28852
+ contactId: string | null;
28853
+ queueId: string | null;
28853
28854
  agentId: string | null;
28854
28855
  startedDate: Date | null;
28855
28856
  handledTime: number | null;
28856
- firstResponseTime: number | null;
28857
28857
  wrapUpForm: {
28858
28858
  id: string;
28859
28859
  disposition: string | null;
@@ -28867,9 +28867,9 @@ export declare const mainChatContract: {
28867
28867
  updatedAt: Date;
28868
28868
  deletedAt: Date | null;
28869
28869
  }[];
28870
+ note: string | null;
28870
28871
  callFrom: string | null;
28871
28872
  callTo: string | null;
28872
- note: string | null;
28873
28873
  } | null;
28874
28874
  };
28875
28875
  channel?: {
@@ -28987,12 +28987,12 @@ export declare const mainChatContract: {
28987
28987
  telephonySignature: string | null;
28988
28988
  };
28989
28989
  };
28990
- firstResponseTime: number;
28991
28990
  lastMessage: string;
28992
28991
  handleTime: number;
28993
28992
  closeAt: Date;
28994
28993
  unreadCount: number;
28995
28994
  firstResponseAt: Date;
28995
+ firstResponseTime: number;
28996
28996
  isLatest: boolean;
28997
28997
  platformContact: {
28998
28998
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -29006,7 +29006,6 @@ export declare const mainChatContract: {
29006
29006
  createdAt: Date;
29007
29007
  updatedAt: Date;
29008
29008
  deletedAt: Date | null;
29009
- channelId: string;
29010
29009
  contact: {
29011
29010
  id: string;
29012
29011
  channel: string | null;
@@ -29111,6 +29110,7 @@ export declare const mainChatContract: {
29111
29110
  };
29112
29111
  }[] | undefined;
29113
29112
  };
29113
+ channelId: string;
29114
29114
  socialPlatformId: string;
29115
29115
  };
29116
29116
  assignee: {
@@ -29166,14 +29166,14 @@ export declare const mainChatContract: {
29166
29166
  updatedAt: Date;
29167
29167
  deletedAt: Date | null;
29168
29168
  entityId: string;
29169
- queueId: string | null;
29170
- contactId: string | null;
29169
+ firstResponseTime: number | null;
29171
29170
  caseId: number;
29172
29171
  entityName: string;
29172
+ contactId: string | null;
29173
+ queueId: string | null;
29173
29174
  agentId: string | null;
29174
29175
  startedDate: Date | null;
29175
29176
  handledTime: number | null;
29176
- firstResponseTime: number | null;
29177
29177
  wrapUpForm: {
29178
29178
  id: string;
29179
29179
  disposition: string | null;
@@ -29187,9 +29187,9 @@ export declare const mainChatContract: {
29187
29187
  updatedAt: Date;
29188
29188
  deletedAt: Date | null;
29189
29189
  }[];
29190
+ note: string | null;
29190
29191
  callFrom: string | null;
29191
29192
  callTo: string | null;
29192
- note: string | null;
29193
29193
  } | null;
29194
29194
  };
29195
29195
  channel?: {
@@ -29309,12 +29309,12 @@ export declare const mainChatContract: {
29309
29309
  telephonySignature: string | null;
29310
29310
  };
29311
29311
  };
29312
- firstResponseTime: number;
29313
29312
  lastMessage: string;
29314
29313
  handleTime: number;
29315
29314
  closeAt: Date;
29316
29315
  unreadCount: number;
29317
29316
  firstResponseAt: Date;
29317
+ firstResponseTime: number;
29318
29318
  isLatest: boolean;
29319
29319
  platformContact: {
29320
29320
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -29328,7 +29328,6 @@ export declare const mainChatContract: {
29328
29328
  createdAt: Date;
29329
29329
  updatedAt: Date;
29330
29330
  deletedAt: Date | null;
29331
- channelId: string;
29332
29331
  contact: {
29333
29332
  id: string;
29334
29333
  channel: string | null;
@@ -29433,6 +29432,7 @@ export declare const mainChatContract: {
29433
29432
  };
29434
29433
  }[] | undefined;
29435
29434
  };
29435
+ channelId: string;
29436
29436
  socialPlatformId: string;
29437
29437
  };
29438
29438
  assignee: {
@@ -29488,14 +29488,14 @@ export declare const mainChatContract: {
29488
29488
  updatedAt: Date;
29489
29489
  deletedAt: Date | null;
29490
29490
  entityId: string;
29491
- queueId: string | null;
29492
- contactId: string | null;
29491
+ firstResponseTime: number | null;
29493
29492
  caseId: number;
29494
29493
  entityName: string;
29494
+ contactId: string | null;
29495
+ queueId: string | null;
29495
29496
  agentId: string | null;
29496
29497
  startedDate: Date | null;
29497
29498
  handledTime: number | null;
29498
- firstResponseTime: number | null;
29499
29499
  wrapUpForm: {
29500
29500
  id: string;
29501
29501
  disposition: string | null;
@@ -29509,9 +29509,9 @@ export declare const mainChatContract: {
29509
29509
  updatedAt: Date;
29510
29510
  deletedAt: Date | null;
29511
29511
  }[];
29512
+ note: string | null;
29512
29513
  callFrom: string | null;
29513
29514
  callTo: string | null;
29514
- note: string | null;
29515
29515
  } | null;
29516
29516
  };
29517
29517
  channel?: {
@@ -29632,12 +29632,12 @@ export declare const mainChatContract: {
29632
29632
  telephonySignature: string | null;
29633
29633
  };
29634
29634
  };
29635
- firstResponseTime: number;
29636
29635
  lastMessage: string;
29637
29636
  handleTime: number;
29638
29637
  closeAt: Date;
29639
29638
  unreadCount: number;
29640
29639
  firstResponseAt: Date;
29640
+ firstResponseTime: number;
29641
29641
  isLatest: boolean;
29642
29642
  platformContact: {
29643
29643
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -29651,7 +29651,6 @@ export declare const mainChatContract: {
29651
29651
  createdAt: Date;
29652
29652
  updatedAt: Date;
29653
29653
  deletedAt: Date | null;
29654
- channelId: string;
29655
29654
  contact: {
29656
29655
  id: string;
29657
29656
  channel: string | null;
@@ -29756,6 +29755,7 @@ export declare const mainChatContract: {
29756
29755
  };
29757
29756
  }[] | undefined;
29758
29757
  };
29758
+ channelId: string;
29759
29759
  socialPlatformId: string;
29760
29760
  };
29761
29761
  assignee: {
@@ -29811,14 +29811,14 @@ export declare const mainChatContract: {
29811
29811
  updatedAt: Date;
29812
29812
  deletedAt: Date | null;
29813
29813
  entityId: string;
29814
- queueId: string | null;
29815
- contactId: string | null;
29814
+ firstResponseTime: number | null;
29816
29815
  caseId: number;
29817
29816
  entityName: string;
29817
+ contactId: string | null;
29818
+ queueId: string | null;
29818
29819
  agentId: string | null;
29819
29820
  startedDate: Date | null;
29820
29821
  handledTime: number | null;
29821
- firstResponseTime: number | null;
29822
29822
  wrapUpForm: {
29823
29823
  id: string;
29824
29824
  disposition: string | null;
@@ -29832,9 +29832,9 @@ export declare const mainChatContract: {
29832
29832
  updatedAt: Date;
29833
29833
  deletedAt: Date | null;
29834
29834
  }[];
29835
+ note: string | null;
29835
29836
  callFrom: string | null;
29836
29837
  callTo: string | null;
29837
- note: string | null;
29838
29838
  } | null;
29839
29839
  };
29840
29840
  channel?: {
@@ -30744,7 +30744,6 @@ export declare const mainChatContract: {
30744
30744
  createdAt: Date;
30745
30745
  updatedAt: Date;
30746
30746
  deletedAt: Date | null;
30747
- channelId: string;
30748
30747
  contact: {
30749
30748
  id: string;
30750
30749
  channel: string | null;
@@ -30849,6 +30848,7 @@ export declare const mainChatContract: {
30849
30848
  };
30850
30849
  }[] | undefined;
30851
30850
  };
30851
+ channelId: string;
30852
30852
  socialPlatformId: string;
30853
30853
  }, {
30854
30854
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -30862,7 +30862,6 @@ export declare const mainChatContract: {
30862
30862
  createdAt: Date;
30863
30863
  updatedAt: Date;
30864
30864
  deletedAt: Date | null;
30865
- channelId: string;
30866
30865
  contact: {
30867
30866
  id: string;
30868
30867
  channel: string | null;
@@ -30967,6 +30966,7 @@ export declare const mainChatContract: {
30967
30966
  };
30968
30967
  }[] | undefined;
30969
30968
  };
30969
+ channelId: string;
30970
30970
  socialPlatformId: string;
30971
30971
  }>;
30972
30972
  actor: z.ZodObject<{
@@ -31800,9 +31800,9 @@ export declare const mainChatContract: {
31800
31800
  updatedAt: Date;
31801
31801
  deletedAt: Date | null;
31802
31802
  }[];
31803
+ note: string | null;
31803
31804
  callFrom: string | null;
31804
31805
  callTo: string | null;
31805
- note: string | null;
31806
31806
  }, {
31807
31807
  id: string;
31808
31808
  disposition: string | null;
@@ -31816,9 +31816,9 @@ export declare const mainChatContract: {
31816
31816
  updatedAt: Date;
31817
31817
  deletedAt: Date | null;
31818
31818
  }[];
31819
+ note: string | null;
31819
31820
  callFrom: string | null;
31820
31821
  callTo: string | null;
31821
- note: string | null;
31822
31822
  }>>;
31823
31823
  }, "strip", z.ZodTypeAny, {
31824
31824
  id: string;
@@ -31829,14 +31829,14 @@ export declare const mainChatContract: {
31829
31829
  updatedAt: Date;
31830
31830
  deletedAt: Date | null;
31831
31831
  entityId: string;
31832
- queueId: string | null;
31833
- contactId: string | null;
31832
+ firstResponseTime: number | null;
31834
31833
  caseId: number;
31835
31834
  entityName: string;
31835
+ contactId: string | null;
31836
+ queueId: string | null;
31836
31837
  agentId: string | null;
31837
31838
  startedDate: Date | null;
31838
31839
  handledTime: number | null;
31839
- firstResponseTime: number | null;
31840
31840
  wrapUpForm: {
31841
31841
  id: string;
31842
31842
  disposition: string | null;
@@ -31850,9 +31850,9 @@ export declare const mainChatContract: {
31850
31850
  updatedAt: Date;
31851
31851
  deletedAt: Date | null;
31852
31852
  }[];
31853
+ note: string | null;
31853
31854
  callFrom: string | null;
31854
31855
  callTo: string | null;
31855
- note: string | null;
31856
31856
  } | null;
31857
31857
  }, {
31858
31858
  id: string;
@@ -31863,14 +31863,14 @@ export declare const mainChatContract: {
31863
31863
  updatedAt: Date;
31864
31864
  deletedAt: Date | null;
31865
31865
  entityId: string;
31866
- queueId: string | null;
31867
- contactId: string | null;
31866
+ firstResponseTime: number | null;
31868
31867
  caseId: number;
31869
31868
  entityName: string;
31869
+ contactId: string | null;
31870
+ queueId: string | null;
31870
31871
  agentId: string | null;
31871
31872
  startedDate: Date | null;
31872
31873
  handledTime: number | null;
31873
- firstResponseTime: number | null;
31874
31874
  wrapUpForm: {
31875
31875
  id: string;
31876
31876
  disposition: string | null;
@@ -31884,9 +31884,9 @@ export declare const mainChatContract: {
31884
31884
  updatedAt: Date;
31885
31885
  deletedAt: Date | null;
31886
31886
  }[];
31887
+ note: string | null;
31887
31888
  callFrom: string | null;
31888
31889
  callTo: string | null;
31889
- note: string | null;
31890
31890
  } | null;
31891
31891
  }>;
31892
31892
  }, "strip", z.ZodTypeAny, {
@@ -31939,12 +31939,12 @@ export declare const mainChatContract: {
31939
31939
  telephonySignature: string | null;
31940
31940
  };
31941
31941
  };
31942
- firstResponseTime: number;
31943
31942
  lastMessage: string;
31944
31943
  handleTime: number;
31945
31944
  closeAt: Date;
31946
31945
  unreadCount: number;
31947
31946
  firstResponseAt: Date;
31947
+ firstResponseTime: number;
31948
31948
  isLatest: boolean;
31949
31949
  platformContact: {
31950
31950
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -31958,7 +31958,6 @@ export declare const mainChatContract: {
31958
31958
  createdAt: Date;
31959
31959
  updatedAt: Date;
31960
31960
  deletedAt: Date | null;
31961
- channelId: string;
31962
31961
  contact: {
31963
31962
  id: string;
31964
31963
  channel: string | null;
@@ -32063,6 +32062,7 @@ export declare const mainChatContract: {
32063
32062
  };
32064
32063
  }[] | undefined;
32065
32064
  };
32065
+ channelId: string;
32066
32066
  socialPlatformId: string;
32067
32067
  };
32068
32068
  assignee: {
@@ -32118,14 +32118,14 @@ export declare const mainChatContract: {
32118
32118
  updatedAt: Date;
32119
32119
  deletedAt: Date | null;
32120
32120
  entityId: string;
32121
- queueId: string | null;
32122
- contactId: string | null;
32121
+ firstResponseTime: number | null;
32123
32122
  caseId: number;
32124
32123
  entityName: string;
32124
+ contactId: string | null;
32125
+ queueId: string | null;
32125
32126
  agentId: string | null;
32126
32127
  startedDate: Date | null;
32127
32128
  handledTime: number | null;
32128
- firstResponseTime: number | null;
32129
32129
  wrapUpForm: {
32130
32130
  id: string;
32131
32131
  disposition: string | null;
@@ -32139,9 +32139,9 @@ export declare const mainChatContract: {
32139
32139
  updatedAt: Date;
32140
32140
  deletedAt: Date | null;
32141
32141
  }[];
32142
+ note: string | null;
32142
32143
  callFrom: string | null;
32143
32144
  callTo: string | null;
32144
- note: string | null;
32145
32145
  } | null;
32146
32146
  };
32147
32147
  channel?: {
@@ -32259,12 +32259,12 @@ export declare const mainChatContract: {
32259
32259
  telephonySignature: string | null;
32260
32260
  };
32261
32261
  };
32262
- firstResponseTime: number;
32263
32262
  lastMessage: string;
32264
32263
  handleTime: number;
32265
32264
  closeAt: Date;
32266
32265
  unreadCount: number;
32267
32266
  firstResponseAt: Date;
32267
+ firstResponseTime: number;
32268
32268
  isLatest: boolean;
32269
32269
  platformContact: {
32270
32270
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -32278,7 +32278,6 @@ export declare const mainChatContract: {
32278
32278
  createdAt: Date;
32279
32279
  updatedAt: Date;
32280
32280
  deletedAt: Date | null;
32281
- channelId: string;
32282
32281
  contact: {
32283
32282
  id: string;
32284
32283
  channel: string | null;
@@ -32383,6 +32382,7 @@ export declare const mainChatContract: {
32383
32382
  };
32384
32383
  }[] | undefined;
32385
32384
  };
32385
+ channelId: string;
32386
32386
  socialPlatformId: string;
32387
32387
  };
32388
32388
  assignee: {
@@ -32438,14 +32438,14 @@ export declare const mainChatContract: {
32438
32438
  updatedAt: Date;
32439
32439
  deletedAt: Date | null;
32440
32440
  entityId: string;
32441
- queueId: string | null;
32442
- contactId: string | null;
32441
+ firstResponseTime: number | null;
32443
32442
  caseId: number;
32444
32443
  entityName: string;
32444
+ contactId: string | null;
32445
+ queueId: string | null;
32445
32446
  agentId: string | null;
32446
32447
  startedDate: Date | null;
32447
32448
  handledTime: number | null;
32448
- firstResponseTime: number | null;
32449
32449
  wrapUpForm: {
32450
32450
  id: string;
32451
32451
  disposition: string | null;
@@ -32459,9 +32459,9 @@ export declare const mainChatContract: {
32459
32459
  updatedAt: Date;
32460
32460
  deletedAt: Date | null;
32461
32461
  }[];
32462
+ note: string | null;
32462
32463
  callFrom: string | null;
32463
32464
  callTo: string | null;
32464
- note: string | null;
32465
32465
  } | null;
32466
32466
  };
32467
32467
  channel?: {
@@ -32581,12 +32581,12 @@ export declare const mainChatContract: {
32581
32581
  telephonySignature: string | null;
32582
32582
  };
32583
32583
  };
32584
- firstResponseTime: number;
32585
32584
  lastMessage: string;
32586
32585
  handleTime: number;
32587
32586
  closeAt: Date;
32588
32587
  unreadCount: number;
32589
32588
  firstResponseAt: Date;
32589
+ firstResponseTime: number;
32590
32590
  isLatest: boolean;
32591
32591
  platformContact: {
32592
32592
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -32600,7 +32600,6 @@ export declare const mainChatContract: {
32600
32600
  createdAt: Date;
32601
32601
  updatedAt: Date;
32602
32602
  deletedAt: Date | null;
32603
- channelId: string;
32604
32603
  contact: {
32605
32604
  id: string;
32606
32605
  channel: string | null;
@@ -32705,6 +32704,7 @@ export declare const mainChatContract: {
32705
32704
  };
32706
32705
  }[] | undefined;
32707
32706
  };
32707
+ channelId: string;
32708
32708
  socialPlatformId: string;
32709
32709
  };
32710
32710
  assignee: {
@@ -32760,14 +32760,14 @@ export declare const mainChatContract: {
32760
32760
  updatedAt: Date;
32761
32761
  deletedAt: Date | null;
32762
32762
  entityId: string;
32763
- queueId: string | null;
32764
- contactId: string | null;
32763
+ firstResponseTime: number | null;
32765
32764
  caseId: number;
32766
32765
  entityName: string;
32766
+ contactId: string | null;
32767
+ queueId: string | null;
32767
32768
  agentId: string | null;
32768
32769
  startedDate: Date | null;
32769
32770
  handledTime: number | null;
32770
- firstResponseTime: number | null;
32771
32771
  wrapUpForm: {
32772
32772
  id: string;
32773
32773
  disposition: string | null;
@@ -32781,9 +32781,9 @@ export declare const mainChatContract: {
32781
32781
  updatedAt: Date;
32782
32782
  deletedAt: Date | null;
32783
32783
  }[];
32784
+ note: string | null;
32784
32785
  callFrom: string | null;
32785
32786
  callTo: string | null;
32786
- note: string | null;
32787
32787
  } | null;
32788
32788
  };
32789
32789
  channel?: {
@@ -32904,12 +32904,12 @@ export declare const mainChatContract: {
32904
32904
  telephonySignature: string | null;
32905
32905
  };
32906
32906
  };
32907
- firstResponseTime: number;
32908
32907
  lastMessage: string;
32909
32908
  handleTime: number;
32910
32909
  closeAt: Date;
32911
32910
  unreadCount: number;
32912
32911
  firstResponseAt: Date;
32912
+ firstResponseTime: number;
32913
32913
  isLatest: boolean;
32914
32914
  platformContact: {
32915
32915
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -32923,7 +32923,6 @@ export declare const mainChatContract: {
32923
32923
  createdAt: Date;
32924
32924
  updatedAt: Date;
32925
32925
  deletedAt: Date | null;
32926
- channelId: string;
32927
32926
  contact: {
32928
32927
  id: string;
32929
32928
  channel: string | null;
@@ -33028,6 +33027,7 @@ export declare const mainChatContract: {
33028
33027
  };
33029
33028
  }[] | undefined;
33030
33029
  };
33030
+ channelId: string;
33031
33031
  socialPlatformId: string;
33032
33032
  };
33033
33033
  assignee: {
@@ -33083,14 +33083,14 @@ export declare const mainChatContract: {
33083
33083
  updatedAt: Date;
33084
33084
  deletedAt: Date | null;
33085
33085
  entityId: string;
33086
- queueId: string | null;
33087
- contactId: string | null;
33086
+ firstResponseTime: number | null;
33088
33087
  caseId: number;
33089
33088
  entityName: string;
33089
+ contactId: string | null;
33090
+ queueId: string | null;
33090
33091
  agentId: string | null;
33091
33092
  startedDate: Date | null;
33092
33093
  handledTime: number | null;
33093
- firstResponseTime: number | null;
33094
33094
  wrapUpForm: {
33095
33095
  id: string;
33096
33096
  disposition: string | null;
@@ -33104,9 +33104,9 @@ export declare const mainChatContract: {
33104
33104
  updatedAt: Date;
33105
33105
  deletedAt: Date | null;
33106
33106
  }[];
33107
+ note: string | null;
33107
33108
  callFrom: string | null;
33108
33109
  callTo: string | null;
33109
- note: string | null;
33110
33110
  } | null;
33111
33111
  };
33112
33112
  channel?: {
@@ -33795,12 +33795,12 @@ export declare const mainChatContract: {
33795
33795
  telephonySignature: string | null;
33796
33796
  };
33797
33797
  }>;
33798
- firstResponseTime: z.ZodNumber;
33799
33798
  lastMessage: z.ZodString;
33800
33799
  handleTime: z.ZodNumber;
33801
33800
  closeAt: z.ZodDate;
33802
33801
  unreadCount: z.ZodNumber;
33803
33802
  firstResponseAt: z.ZodDate;
33803
+ firstResponseTime: z.ZodNumber;
33804
33804
  isLatest: z.ZodBoolean;
33805
33805
  platformContact: z.ZodObject<{
33806
33806
  id: z.ZodString;
@@ -34596,7 +34596,6 @@ export declare const mainChatContract: {
34596
34596
  createdAt: Date;
34597
34597
  updatedAt: Date;
34598
34598
  deletedAt: Date | null;
34599
- channelId: string;
34600
34599
  contact: {
34601
34600
  id: string;
34602
34601
  channel: string | null;
@@ -34701,6 +34700,7 @@ export declare const mainChatContract: {
34701
34700
  };
34702
34701
  }[] | undefined;
34703
34702
  };
34703
+ channelId: string;
34704
34704
  socialPlatformId: string;
34705
34705
  }, {
34706
34706
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -34714,7 +34714,6 @@ export declare const mainChatContract: {
34714
34714
  createdAt: Date;
34715
34715
  updatedAt: Date;
34716
34716
  deletedAt: Date | null;
34717
- channelId: string;
34718
34717
  contact: {
34719
34718
  id: string;
34720
34719
  channel: string | null;
@@ -34819,6 +34818,7 @@ export declare const mainChatContract: {
34819
34818
  };
34820
34819
  }[] | undefined;
34821
34820
  };
34821
+ channelId: string;
34822
34822
  socialPlatformId: string;
34823
34823
  }>;
34824
34824
  assignee: z.ZodObject<{
@@ -35083,9 +35083,9 @@ export declare const mainChatContract: {
35083
35083
  updatedAt: Date;
35084
35084
  deletedAt: Date | null;
35085
35085
  }[];
35086
+ note: string | null;
35086
35087
  callFrom: string | null;
35087
35088
  callTo: string | null;
35088
- note: string | null;
35089
35089
  }, {
35090
35090
  id: string;
35091
35091
  disposition: string | null;
@@ -35099,9 +35099,9 @@ export declare const mainChatContract: {
35099
35099
  updatedAt: Date;
35100
35100
  deletedAt: Date | null;
35101
35101
  }[];
35102
+ note: string | null;
35102
35103
  callFrom: string | null;
35103
35104
  callTo: string | null;
35104
- note: string | null;
35105
35105
  }>>;
35106
35106
  }, "strip", z.ZodTypeAny, {
35107
35107
  id: string;
@@ -35112,14 +35112,14 @@ export declare const mainChatContract: {
35112
35112
  updatedAt: Date;
35113
35113
  deletedAt: Date | null;
35114
35114
  entityId: string;
35115
- queueId: string | null;
35116
- contactId: string | null;
35115
+ firstResponseTime: number | null;
35117
35116
  caseId: number;
35118
35117
  entityName: string;
35118
+ contactId: string | null;
35119
+ queueId: string | null;
35119
35120
  agentId: string | null;
35120
35121
  startedDate: Date | null;
35121
35122
  handledTime: number | null;
35122
- firstResponseTime: number | null;
35123
35123
  wrapUpForm: {
35124
35124
  id: string;
35125
35125
  disposition: string | null;
@@ -35133,9 +35133,9 @@ export declare const mainChatContract: {
35133
35133
  updatedAt: Date;
35134
35134
  deletedAt: Date | null;
35135
35135
  }[];
35136
+ note: string | null;
35136
35137
  callFrom: string | null;
35137
35138
  callTo: string | null;
35138
- note: string | null;
35139
35139
  } | null;
35140
35140
  }, {
35141
35141
  id: string;
@@ -35146,14 +35146,14 @@ export declare const mainChatContract: {
35146
35146
  updatedAt: Date;
35147
35147
  deletedAt: Date | null;
35148
35148
  entityId: string;
35149
- queueId: string | null;
35150
- contactId: string | null;
35149
+ firstResponseTime: number | null;
35151
35150
  caseId: number;
35152
35151
  entityName: string;
35152
+ contactId: string | null;
35153
+ queueId: string | null;
35153
35154
  agentId: string | null;
35154
35155
  startedDate: Date | null;
35155
35156
  handledTime: number | null;
35156
- firstResponseTime: number | null;
35157
35157
  wrapUpForm: {
35158
35158
  id: string;
35159
35159
  disposition: string | null;
@@ -35167,9 +35167,9 @@ export declare const mainChatContract: {
35167
35167
  updatedAt: Date;
35168
35168
  deletedAt: Date | null;
35169
35169
  }[];
35170
+ note: string | null;
35170
35171
  callFrom: string | null;
35171
35172
  callTo: string | null;
35172
- note: string | null;
35173
35173
  } | null;
35174
35174
  }>;
35175
35175
  contact: z.ZodObject<{
@@ -36085,12 +36085,12 @@ export declare const mainChatContract: {
36085
36085
  };
36086
36086
  }[] | undefined;
36087
36087
  };
36088
- firstResponseTime: number;
36089
36088
  lastMessage: string;
36090
36089
  handleTime: number;
36091
36090
  closeAt: Date;
36092
36091
  unreadCount: number;
36093
36092
  firstResponseAt: Date;
36093
+ firstResponseTime: number;
36094
36094
  isLatest: boolean;
36095
36095
  platformContact: {
36096
36096
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -36104,7 +36104,6 @@ export declare const mainChatContract: {
36104
36104
  createdAt: Date;
36105
36105
  updatedAt: Date;
36106
36106
  deletedAt: Date | null;
36107
- channelId: string;
36108
36107
  contact: {
36109
36108
  id: string;
36110
36109
  channel: string | null;
@@ -36209,6 +36208,7 @@ export declare const mainChatContract: {
36209
36208
  };
36210
36209
  }[] | undefined;
36211
36210
  };
36211
+ channelId: string;
36212
36212
  socialPlatformId: string;
36213
36213
  };
36214
36214
  assignee: {
@@ -36264,14 +36264,14 @@ export declare const mainChatContract: {
36264
36264
  updatedAt: Date;
36265
36265
  deletedAt: Date | null;
36266
36266
  entityId: string;
36267
- queueId: string | null;
36268
- contactId: string | null;
36267
+ firstResponseTime: number | null;
36269
36268
  caseId: number;
36270
36269
  entityName: string;
36270
+ contactId: string | null;
36271
+ queueId: string | null;
36271
36272
  agentId: string | null;
36272
36273
  startedDate: Date | null;
36273
36274
  handledTime: number | null;
36274
- firstResponseTime: number | null;
36275
36275
  wrapUpForm: {
36276
36276
  id: string;
36277
36277
  disposition: string | null;
@@ -36285,9 +36285,9 @@ export declare const mainChatContract: {
36285
36285
  updatedAt: Date;
36286
36286
  deletedAt: Date | null;
36287
36287
  }[];
36288
+ note: string | null;
36288
36289
  callFrom: string | null;
36289
36290
  callTo: string | null;
36290
- note: string | null;
36291
36291
  } | null;
36292
36292
  };
36293
36293
  openMessage: string;
@@ -36510,12 +36510,12 @@ export declare const mainChatContract: {
36510
36510
  };
36511
36511
  }[] | undefined;
36512
36512
  };
36513
- firstResponseTime: number;
36514
36513
  lastMessage: string;
36515
36514
  handleTime: number;
36516
36515
  closeAt: Date;
36517
36516
  unreadCount: number;
36518
36517
  firstResponseAt: Date;
36518
+ firstResponseTime: number;
36519
36519
  isLatest: boolean;
36520
36520
  platformContact: {
36521
36521
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -36529,7 +36529,6 @@ export declare const mainChatContract: {
36529
36529
  createdAt: Date;
36530
36530
  updatedAt: Date;
36531
36531
  deletedAt: Date | null;
36532
- channelId: string;
36533
36532
  contact: {
36534
36533
  id: string;
36535
36534
  channel: string | null;
@@ -36634,6 +36633,7 @@ export declare const mainChatContract: {
36634
36633
  };
36635
36634
  }[] | undefined;
36636
36635
  };
36636
+ channelId: string;
36637
36637
  socialPlatformId: string;
36638
36638
  };
36639
36639
  assignee: {
@@ -36689,14 +36689,14 @@ export declare const mainChatContract: {
36689
36689
  updatedAt: Date;
36690
36690
  deletedAt: Date | null;
36691
36691
  entityId: string;
36692
- queueId: string | null;
36693
- contactId: string | null;
36692
+ firstResponseTime: number | null;
36694
36693
  caseId: number;
36695
36694
  entityName: string;
36695
+ contactId: string | null;
36696
+ queueId: string | null;
36696
36697
  agentId: string | null;
36697
36698
  startedDate: Date | null;
36698
36699
  handledTime: number | null;
36699
- firstResponseTime: number | null;
36700
36700
  wrapUpForm: {
36701
36701
  id: string;
36702
36702
  disposition: string | null;
@@ -36710,9 +36710,9 @@ export declare const mainChatContract: {
36710
36710
  updatedAt: Date;
36711
36711
  deletedAt: Date | null;
36712
36712
  }[];
36713
+ note: string | null;
36713
36714
  callFrom: string | null;
36714
36715
  callTo: string | null;
36715
- note: string | null;
36716
36716
  } | null;
36717
36717
  };
36718
36718
  openMessage: string;
@@ -36937,12 +36937,12 @@ export declare const mainChatContract: {
36937
36937
  };
36938
36938
  }[] | undefined;
36939
36939
  };
36940
- firstResponseTime: number;
36941
36940
  lastMessage: string;
36942
36941
  handleTime: number;
36943
36942
  closeAt: Date;
36944
36943
  unreadCount: number;
36945
36944
  firstResponseAt: Date;
36945
+ firstResponseTime: number;
36946
36946
  isLatest: boolean;
36947
36947
  platformContact: {
36948
36948
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -36956,7 +36956,6 @@ export declare const mainChatContract: {
36956
36956
  createdAt: Date;
36957
36957
  updatedAt: Date;
36958
36958
  deletedAt: Date | null;
36959
- channelId: string;
36960
36959
  contact: {
36961
36960
  id: string;
36962
36961
  channel: string | null;
@@ -37061,6 +37060,7 @@ export declare const mainChatContract: {
37061
37060
  };
37062
37061
  }[] | undefined;
37063
37062
  };
37063
+ channelId: string;
37064
37064
  socialPlatformId: string;
37065
37065
  };
37066
37066
  assignee: {
@@ -37116,14 +37116,14 @@ export declare const mainChatContract: {
37116
37116
  updatedAt: Date;
37117
37117
  deletedAt: Date | null;
37118
37118
  entityId: string;
37119
- queueId: string | null;
37120
- contactId: string | null;
37119
+ firstResponseTime: number | null;
37121
37120
  caseId: number;
37122
37121
  entityName: string;
37122
+ contactId: string | null;
37123
+ queueId: string | null;
37123
37124
  agentId: string | null;
37124
37125
  startedDate: Date | null;
37125
37126
  handledTime: number | null;
37126
- firstResponseTime: number | null;
37127
37127
  wrapUpForm: {
37128
37128
  id: string;
37129
37129
  disposition: string | null;
@@ -37137,9 +37137,9 @@ export declare const mainChatContract: {
37137
37137
  updatedAt: Date;
37138
37138
  deletedAt: Date | null;
37139
37139
  }[];
37140
+ note: string | null;
37140
37141
  callFrom: string | null;
37141
37142
  callTo: string | null;
37142
- note: string | null;
37143
37143
  } | null;
37144
37144
  };
37145
37145
  openMessage: string;
@@ -37365,12 +37365,12 @@ export declare const mainChatContract: {
37365
37365
  };
37366
37366
  }[] | undefined;
37367
37367
  };
37368
- firstResponseTime: number;
37369
37368
  lastMessage: string;
37370
37369
  handleTime: number;
37371
37370
  closeAt: Date;
37372
37371
  unreadCount: number;
37373
37372
  firstResponseAt: Date;
37373
+ firstResponseTime: number;
37374
37374
  isLatest: boolean;
37375
37375
  platformContact: {
37376
37376
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -37384,7 +37384,6 @@ export declare const mainChatContract: {
37384
37384
  createdAt: Date;
37385
37385
  updatedAt: Date;
37386
37386
  deletedAt: Date | null;
37387
- channelId: string;
37388
37387
  contact: {
37389
37388
  id: string;
37390
37389
  channel: string | null;
@@ -37489,6 +37488,7 @@ export declare const mainChatContract: {
37489
37488
  };
37490
37489
  }[] | undefined;
37491
37490
  };
37491
+ channelId: string;
37492
37492
  socialPlatformId: string;
37493
37493
  };
37494
37494
  assignee: {
@@ -37544,14 +37544,14 @@ export declare const mainChatContract: {
37544
37544
  updatedAt: Date;
37545
37545
  deletedAt: Date | null;
37546
37546
  entityId: string;
37547
- queueId: string | null;
37548
- contactId: string | null;
37547
+ firstResponseTime: number | null;
37549
37548
  caseId: number;
37550
37549
  entityName: string;
37550
+ contactId: string | null;
37551
+ queueId: string | null;
37551
37552
  agentId: string | null;
37552
37553
  startedDate: Date | null;
37553
37554
  handledTime: number | null;
37554
- firstResponseTime: number | null;
37555
37555
  wrapUpForm: {
37556
37556
  id: string;
37557
37557
  disposition: string | null;
@@ -37565,9 +37565,9 @@ export declare const mainChatContract: {
37565
37565
  updatedAt: Date;
37566
37566
  deletedAt: Date | null;
37567
37567
  }[];
37568
+ note: string | null;
37568
37569
  callFrom: string | null;
37569
37570
  callTo: string | null;
37570
- note: string | null;
37571
37571
  } | null;
37572
37572
  };
37573
37573
  openMessage: string;
@@ -38247,12 +38247,12 @@ export declare const mainChatContract: {
38247
38247
  telephonySignature: string | null;
38248
38248
  };
38249
38249
  }>;
38250
- firstResponseTime: z.ZodNumber;
38251
38250
  lastMessage: z.ZodString;
38252
38251
  handleTime: z.ZodNumber;
38253
38252
  closeAt: z.ZodDate;
38254
38253
  unreadCount: z.ZodNumber;
38255
38254
  firstResponseAt: z.ZodDate;
38255
+ firstResponseTime: z.ZodNumber;
38256
38256
  isLatest: z.ZodBoolean;
38257
38257
  platformContact: z.ZodObject<{
38258
38258
  id: z.ZodString;
@@ -39048,7 +39048,124 @@ export declare const mainChatContract: {
39048
39048
  createdAt: Date;
39049
39049
  updatedAt: Date;
39050
39050
  deletedAt: Date | null;
39051
+ contact: {
39052
+ id: string;
39053
+ channel: string | null;
39054
+ address: string | null;
39055
+ name: string;
39056
+ createdAt: Date;
39057
+ updatedAt: Date;
39058
+ deletedAt: Date | null;
39059
+ customFields: {
39060
+ id: string;
39061
+ createdAt: Date;
39062
+ updatedAt: Date;
39063
+ deletedAt: Date | null;
39064
+ attribute: {
39065
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
39066
+ id: string;
39067
+ position: number;
39068
+ createdAt: Date;
39069
+ updatedAt: Date;
39070
+ deletedAt: Date | null;
39071
+ systemName: string;
39072
+ displayName: string;
39073
+ isDefault: boolean;
39074
+ isArchived: boolean;
39075
+ isRequired: boolean;
39076
+ isUnique: boolean;
39077
+ };
39078
+ textValue: string | null;
39079
+ booleanValue: boolean | null;
39080
+ numberValue: number | null;
39081
+ dateValue: Date | null;
39082
+ uploads: {
39083
+ id: string;
39084
+ createdAt: Date;
39085
+ updatedAt: Date;
39086
+ deletedAt: Date | null;
39087
+ customFieldId: string;
39088
+ upload: {
39089
+ id: string;
39090
+ createdAt: Date;
39091
+ updatedAt: Date;
39092
+ deletedAt: Date | null;
39093
+ fileName: string;
39094
+ fileKey: string;
39095
+ bucketName: string;
39096
+ fileSize: number;
39097
+ fileUrl: string | null;
39098
+ status?: string | undefined;
39099
+ };
39100
+ }[];
39101
+ }[];
39102
+ company: {
39103
+ id: string;
39104
+ createdAt: Date;
39105
+ updatedAt: Date;
39106
+ deletedAt: Date | null;
39107
+ address?: string | null | undefined;
39108
+ name?: string | undefined;
39109
+ phone?: string | null | undefined;
39110
+ industry?: string | null | undefined;
39111
+ } | null;
39112
+ notes: string | null;
39113
+ contactProfile: string | null;
39114
+ socialProfileUrl: string | null;
39115
+ tags: {
39116
+ id: string;
39117
+ name: string;
39118
+ createdAt: Date;
39119
+ updatedAt: Date;
39120
+ deletedAt: Date | null;
39121
+ }[];
39122
+ contactEmails: {
39123
+ id: string;
39124
+ isPrimary: boolean;
39125
+ email: string;
39126
+ createdAt: Date;
39127
+ updatedAt: Date;
39128
+ deletedAt: Date | null;
39129
+ }[];
39130
+ contactPhones: {
39131
+ id: string;
39132
+ isPrimary: boolean;
39133
+ createdAt: Date;
39134
+ updatedAt: Date;
39135
+ deletedAt: Date | null;
39136
+ phone: string;
39137
+ }[];
39138
+ activityLogs?: {
39139
+ id: string;
39140
+ description: string;
39141
+ createdAt: Date;
39142
+ updatedAt: Date;
39143
+ deletedAt: Date | null;
39144
+ entityId: string;
39145
+ entityType: {
39146
+ id: string;
39147
+ description: string | null;
39148
+ createdAt: Date;
39149
+ updatedAt: Date;
39150
+ deletedAt: Date | null;
39151
+ entity: string;
39152
+ };
39153
+ }[] | undefined;
39154
+ };
39051
39155
  channelId: string;
39156
+ socialPlatformId: string;
39157
+ }, {
39158
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
39159
+ id: string;
39160
+ metadata: {
39161
+ id: string;
39162
+ name: string;
39163
+ picture?: string | undefined;
39164
+ additionalCredentials?: any;
39165
+ };
39166
+ createdAt: Date;
39167
+ updatedAt: Date;
39168
+ deletedAt: Date | null;
39052
39169
  contact: {
39053
39170
  id: string;
39054
39171
  channel: string | null;
@@ -39153,124 +39270,7 @@ export declare const mainChatContract: {
39153
39270
  };
39154
39271
  }[] | undefined;
39155
39272
  };
39156
- socialPlatformId: string;
39157
- }, {
39158
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
39159
- id: string;
39160
- metadata: {
39161
- id: string;
39162
- name: string;
39163
- picture?: string | undefined;
39164
- additionalCredentials?: any;
39165
- };
39166
- createdAt: Date;
39167
- updatedAt: Date;
39168
- deletedAt: Date | null;
39169
39273
  channelId: string;
39170
- contact: {
39171
- id: string;
39172
- channel: string | null;
39173
- address: string | null;
39174
- name: string;
39175
- createdAt: Date;
39176
- updatedAt: Date;
39177
- deletedAt: Date | null;
39178
- customFields: {
39179
- id: string;
39180
- createdAt: Date;
39181
- updatedAt: Date;
39182
- deletedAt: Date | null;
39183
- attribute: {
39184
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
39185
- id: string;
39186
- position: number;
39187
- createdAt: Date;
39188
- updatedAt: Date;
39189
- deletedAt: Date | null;
39190
- systemName: string;
39191
- displayName: string;
39192
- isDefault: boolean;
39193
- isArchived: boolean;
39194
- isRequired: boolean;
39195
- isUnique: boolean;
39196
- };
39197
- textValue: string | null;
39198
- booleanValue: boolean | null;
39199
- numberValue: number | null;
39200
- dateValue: Date | null;
39201
- uploads: {
39202
- id: string;
39203
- createdAt: Date;
39204
- updatedAt: Date;
39205
- deletedAt: Date | null;
39206
- customFieldId: string;
39207
- upload: {
39208
- id: string;
39209
- createdAt: Date;
39210
- updatedAt: Date;
39211
- deletedAt: Date | null;
39212
- fileName: string;
39213
- fileKey: string;
39214
- bucketName: string;
39215
- fileSize: number;
39216
- fileUrl: string | null;
39217
- status?: string | undefined;
39218
- };
39219
- }[];
39220
- }[];
39221
- company: {
39222
- id: string;
39223
- createdAt: Date;
39224
- updatedAt: Date;
39225
- deletedAt: Date | null;
39226
- address?: string | null | undefined;
39227
- name?: string | undefined;
39228
- phone?: string | null | undefined;
39229
- industry?: string | null | undefined;
39230
- } | null;
39231
- notes: string | null;
39232
- contactProfile: string | null;
39233
- socialProfileUrl: string | null;
39234
- tags: {
39235
- id: string;
39236
- name: string;
39237
- createdAt: Date;
39238
- updatedAt: Date;
39239
- deletedAt: Date | null;
39240
- }[];
39241
- contactEmails: {
39242
- id: string;
39243
- isPrimary: boolean;
39244
- email: string;
39245
- createdAt: Date;
39246
- updatedAt: Date;
39247
- deletedAt: Date | null;
39248
- }[];
39249
- contactPhones: {
39250
- id: string;
39251
- isPrimary: boolean;
39252
- createdAt: Date;
39253
- updatedAt: Date;
39254
- deletedAt: Date | null;
39255
- phone: string;
39256
- }[];
39257
- activityLogs?: {
39258
- id: string;
39259
- description: string;
39260
- createdAt: Date;
39261
- updatedAt: Date;
39262
- deletedAt: Date | null;
39263
- entityId: string;
39264
- entityType: {
39265
- id: string;
39266
- description: string | null;
39267
- createdAt: Date;
39268
- updatedAt: Date;
39269
- deletedAt: Date | null;
39270
- entity: string;
39271
- };
39272
- }[] | undefined;
39273
- };
39274
39274
  socialPlatformId: string;
39275
39275
  }>;
39276
39276
  assignee: z.ZodObject<{
@@ -39535,9 +39535,9 @@ export declare const mainChatContract: {
39535
39535
  updatedAt: Date;
39536
39536
  deletedAt: Date | null;
39537
39537
  }[];
39538
+ note: string | null;
39538
39539
  callFrom: string | null;
39539
39540
  callTo: string | null;
39540
- note: string | null;
39541
39541
  }, {
39542
39542
  id: string;
39543
39543
  disposition: string | null;
@@ -39551,9 +39551,9 @@ export declare const mainChatContract: {
39551
39551
  updatedAt: Date;
39552
39552
  deletedAt: Date | null;
39553
39553
  }[];
39554
+ note: string | null;
39554
39555
  callFrom: string | null;
39555
39556
  callTo: string | null;
39556
- note: string | null;
39557
39557
  }>>;
39558
39558
  }, "strip", z.ZodTypeAny, {
39559
39559
  id: string;
@@ -39564,14 +39564,14 @@ export declare const mainChatContract: {
39564
39564
  updatedAt: Date;
39565
39565
  deletedAt: Date | null;
39566
39566
  entityId: string;
39567
- queueId: string | null;
39568
- contactId: string | null;
39567
+ firstResponseTime: number | null;
39569
39568
  caseId: number;
39570
39569
  entityName: string;
39570
+ contactId: string | null;
39571
+ queueId: string | null;
39571
39572
  agentId: string | null;
39572
39573
  startedDate: Date | null;
39573
39574
  handledTime: number | null;
39574
- firstResponseTime: number | null;
39575
39575
  wrapUpForm: {
39576
39576
  id: string;
39577
39577
  disposition: string | null;
@@ -39585,9 +39585,9 @@ export declare const mainChatContract: {
39585
39585
  updatedAt: Date;
39586
39586
  deletedAt: Date | null;
39587
39587
  }[];
39588
+ note: string | null;
39588
39589
  callFrom: string | null;
39589
39590
  callTo: string | null;
39590
- note: string | null;
39591
39591
  } | null;
39592
39592
  }, {
39593
39593
  id: string;
@@ -39598,14 +39598,14 @@ export declare const mainChatContract: {
39598
39598
  updatedAt: Date;
39599
39599
  deletedAt: Date | null;
39600
39600
  entityId: string;
39601
- queueId: string | null;
39602
- contactId: string | null;
39601
+ firstResponseTime: number | null;
39603
39602
  caseId: number;
39604
39603
  entityName: string;
39604
+ contactId: string | null;
39605
+ queueId: string | null;
39605
39606
  agentId: string | null;
39606
39607
  startedDate: Date | null;
39607
39608
  handledTime: number | null;
39608
- firstResponseTime: number | null;
39609
39609
  wrapUpForm: {
39610
39610
  id: string;
39611
39611
  disposition: string | null;
@@ -39619,9 +39619,9 @@ export declare const mainChatContract: {
39619
39619
  updatedAt: Date;
39620
39620
  deletedAt: Date | null;
39621
39621
  }[];
39622
+ note: string | null;
39622
39623
  callFrom: string | null;
39623
39624
  callTo: string | null;
39624
- note: string | null;
39625
39625
  } | null;
39626
39626
  }>;
39627
39627
  description: z.ZodNullable<z.ZodString>;
@@ -39676,12 +39676,12 @@ export declare const mainChatContract: {
39676
39676
  telephonySignature: string | null;
39677
39677
  };
39678
39678
  };
39679
- firstResponseTime: number;
39680
39679
  lastMessage: string;
39681
39680
  handleTime: number;
39682
39681
  closeAt: Date;
39683
39682
  unreadCount: number;
39684
39683
  firstResponseAt: Date;
39684
+ firstResponseTime: number;
39685
39685
  isLatest: boolean;
39686
39686
  platformContact: {
39687
39687
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -39695,7 +39695,6 @@ export declare const mainChatContract: {
39695
39695
  createdAt: Date;
39696
39696
  updatedAt: Date;
39697
39697
  deletedAt: Date | null;
39698
- channelId: string;
39699
39698
  contact: {
39700
39699
  id: string;
39701
39700
  channel: string | null;
@@ -39800,6 +39799,7 @@ export declare const mainChatContract: {
39800
39799
  };
39801
39800
  }[] | undefined;
39802
39801
  };
39802
+ channelId: string;
39803
39803
  socialPlatformId: string;
39804
39804
  };
39805
39805
  assignee: {
@@ -39855,14 +39855,14 @@ export declare const mainChatContract: {
39855
39855
  updatedAt: Date;
39856
39856
  deletedAt: Date | null;
39857
39857
  entityId: string;
39858
- queueId: string | null;
39859
- contactId: string | null;
39858
+ firstResponseTime: number | null;
39860
39859
  caseId: number;
39861
39860
  entityName: string;
39861
+ contactId: string | null;
39862
+ queueId: string | null;
39862
39863
  agentId: string | null;
39863
39864
  startedDate: Date | null;
39864
39865
  handledTime: number | null;
39865
- firstResponseTime: number | null;
39866
39866
  wrapUpForm: {
39867
39867
  id: string;
39868
39868
  disposition: string | null;
@@ -39876,9 +39876,9 @@ export declare const mainChatContract: {
39876
39876
  updatedAt: Date;
39877
39877
  deletedAt: Date | null;
39878
39878
  }[];
39879
+ note: string | null;
39879
39880
  callFrom: string | null;
39880
39881
  callTo: string | null;
39881
- note: string | null;
39882
39882
  } | null;
39883
39883
  };
39884
39884
  channel?: {
@@ -39997,12 +39997,12 @@ export declare const mainChatContract: {
39997
39997
  telephonySignature: string | null;
39998
39998
  };
39999
39999
  };
40000
- firstResponseTime: number;
40001
40000
  lastMessage: string;
40002
40001
  handleTime: number;
40003
40002
  closeAt: Date;
40004
40003
  unreadCount: number;
40005
40004
  firstResponseAt: Date;
40005
+ firstResponseTime: number;
40006
40006
  isLatest: boolean;
40007
40007
  platformContact: {
40008
40008
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -40016,7 +40016,6 @@ export declare const mainChatContract: {
40016
40016
  createdAt: Date;
40017
40017
  updatedAt: Date;
40018
40018
  deletedAt: Date | null;
40019
- channelId: string;
40020
40019
  contact: {
40021
40020
  id: string;
40022
40021
  channel: string | null;
@@ -40121,6 +40120,7 @@ export declare const mainChatContract: {
40121
40120
  };
40122
40121
  }[] | undefined;
40123
40122
  };
40123
+ channelId: string;
40124
40124
  socialPlatformId: string;
40125
40125
  };
40126
40126
  assignee: {
@@ -40176,14 +40176,14 @@ export declare const mainChatContract: {
40176
40176
  updatedAt: Date;
40177
40177
  deletedAt: Date | null;
40178
40178
  entityId: string;
40179
- queueId: string | null;
40180
- contactId: string | null;
40179
+ firstResponseTime: number | null;
40181
40180
  caseId: number;
40182
40181
  entityName: string;
40182
+ contactId: string | null;
40183
+ queueId: string | null;
40183
40184
  agentId: string | null;
40184
40185
  startedDate: Date | null;
40185
40186
  handledTime: number | null;
40186
- firstResponseTime: number | null;
40187
40187
  wrapUpForm: {
40188
40188
  id: string;
40189
40189
  disposition: string | null;
@@ -40197,9 +40197,9 @@ export declare const mainChatContract: {
40197
40197
  updatedAt: Date;
40198
40198
  deletedAt: Date | null;
40199
40199
  }[];
40200
+ note: string | null;
40200
40201
  callFrom: string | null;
40201
40202
  callTo: string | null;
40202
- note: string | null;
40203
40203
  } | null;
40204
40204
  };
40205
40205
  channel?: {
@@ -40320,12 +40320,12 @@ export declare const mainChatContract: {
40320
40320
  telephonySignature: string | null;
40321
40321
  };
40322
40322
  };
40323
- firstResponseTime: number;
40324
40323
  lastMessage: string;
40325
40324
  handleTime: number;
40326
40325
  closeAt: Date;
40327
40326
  unreadCount: number;
40328
40327
  firstResponseAt: Date;
40328
+ firstResponseTime: number;
40329
40329
  isLatest: boolean;
40330
40330
  platformContact: {
40331
40331
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -40339,7 +40339,6 @@ export declare const mainChatContract: {
40339
40339
  createdAt: Date;
40340
40340
  updatedAt: Date;
40341
40341
  deletedAt: Date | null;
40342
- channelId: string;
40343
40342
  contact: {
40344
40343
  id: string;
40345
40344
  channel: string | null;
@@ -40444,6 +40443,7 @@ export declare const mainChatContract: {
40444
40443
  };
40445
40444
  }[] | undefined;
40446
40445
  };
40446
+ channelId: string;
40447
40447
  socialPlatformId: string;
40448
40448
  };
40449
40449
  assignee: {
@@ -40499,14 +40499,14 @@ export declare const mainChatContract: {
40499
40499
  updatedAt: Date;
40500
40500
  deletedAt: Date | null;
40501
40501
  entityId: string;
40502
- queueId: string | null;
40503
- contactId: string | null;
40502
+ firstResponseTime: number | null;
40504
40503
  caseId: number;
40505
40504
  entityName: string;
40505
+ contactId: string | null;
40506
+ queueId: string | null;
40506
40507
  agentId: string | null;
40507
40508
  startedDate: Date | null;
40508
40509
  handledTime: number | null;
40509
- firstResponseTime: number | null;
40510
40510
  wrapUpForm: {
40511
40511
  id: string;
40512
40512
  disposition: string | null;
@@ -40520,9 +40520,9 @@ export declare const mainChatContract: {
40520
40520
  updatedAt: Date;
40521
40521
  deletedAt: Date | null;
40522
40522
  }[];
40523
+ note: string | null;
40523
40524
  callFrom: string | null;
40524
40525
  callTo: string | null;
40525
- note: string | null;
40526
40526
  } | null;
40527
40527
  };
40528
40528
  channel?: {
@@ -40644,12 +40644,12 @@ export declare const mainChatContract: {
40644
40644
  telephonySignature: string | null;
40645
40645
  };
40646
40646
  };
40647
- firstResponseTime: number;
40648
40647
  lastMessage: string;
40649
40648
  handleTime: number;
40650
40649
  closeAt: Date;
40651
40650
  unreadCount: number;
40652
40651
  firstResponseAt: Date;
40652
+ firstResponseTime: number;
40653
40653
  isLatest: boolean;
40654
40654
  platformContact: {
40655
40655
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -40663,7 +40663,6 @@ export declare const mainChatContract: {
40663
40663
  createdAt: Date;
40664
40664
  updatedAt: Date;
40665
40665
  deletedAt: Date | null;
40666
- channelId: string;
40667
40666
  contact: {
40668
40667
  id: string;
40669
40668
  channel: string | null;
@@ -40768,6 +40767,7 @@ export declare const mainChatContract: {
40768
40767
  };
40769
40768
  }[] | undefined;
40770
40769
  };
40770
+ channelId: string;
40771
40771
  socialPlatformId: string;
40772
40772
  };
40773
40773
  assignee: {
@@ -40823,14 +40823,14 @@ export declare const mainChatContract: {
40823
40823
  updatedAt: Date;
40824
40824
  deletedAt: Date | null;
40825
40825
  entityId: string;
40826
- queueId: string | null;
40827
- contactId: string | null;
40826
+ firstResponseTime: number | null;
40828
40827
  caseId: number;
40829
40828
  entityName: string;
40829
+ contactId: string | null;
40830
+ queueId: string | null;
40830
40831
  agentId: string | null;
40831
40832
  startedDate: Date | null;
40832
40833
  handledTime: number | null;
40833
- firstResponseTime: number | null;
40834
40834
  wrapUpForm: {
40835
40835
  id: string;
40836
40836
  disposition: string | null;
@@ -40844,9 +40844,9 @@ export declare const mainChatContract: {
40844
40844
  updatedAt: Date;
40845
40845
  deletedAt: Date | null;
40846
40846
  }[];
40847
+ note: string | null;
40847
40848
  callFrom: string | null;
40848
40849
  callTo: string | null;
40849
- note: string | null;
40850
40850
  } | null;
40851
40851
  };
40852
40852
  channel?: {
@@ -41768,7 +41768,6 @@ export declare const mainChatContract: {
41768
41768
  createdAt: Date;
41769
41769
  updatedAt: Date;
41770
41770
  deletedAt: Date | null;
41771
- channelId: string;
41772
41771
  contact: {
41773
41772
  id: string;
41774
41773
  channel: string | null;
@@ -41873,6 +41872,7 @@ export declare const mainChatContract: {
41873
41872
  };
41874
41873
  }[] | undefined;
41875
41874
  };
41875
+ channelId: string;
41876
41876
  socialPlatformId: string;
41877
41877
  }, {
41878
41878
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -41886,7 +41886,6 @@ export declare const mainChatContract: {
41886
41886
  createdAt: Date;
41887
41887
  updatedAt: Date;
41888
41888
  deletedAt: Date | null;
41889
- channelId: string;
41890
41889
  contact: {
41891
41890
  id: string;
41892
41891
  channel: string | null;
@@ -41991,6 +41990,7 @@ export declare const mainChatContract: {
41991
41990
  };
41992
41991
  }[] | undefined;
41993
41992
  };
41993
+ channelId: string;
41994
41994
  socialPlatformId: string;
41995
41995
  }>;
41996
41996
  actor: z.ZodObject<{
@@ -42824,9 +42824,9 @@ export declare const mainChatContract: {
42824
42824
  updatedAt: Date;
42825
42825
  deletedAt: Date | null;
42826
42826
  }[];
42827
+ note: string | null;
42827
42828
  callFrom: string | null;
42828
42829
  callTo: string | null;
42829
- note: string | null;
42830
42830
  }, {
42831
42831
  id: string;
42832
42832
  disposition: string | null;
@@ -42840,9 +42840,9 @@ export declare const mainChatContract: {
42840
42840
  updatedAt: Date;
42841
42841
  deletedAt: Date | null;
42842
42842
  }[];
42843
+ note: string | null;
42843
42844
  callFrom: string | null;
42844
42845
  callTo: string | null;
42845
- note: string | null;
42846
42846
  }>>;
42847
42847
  }, "strip", z.ZodTypeAny, {
42848
42848
  id: string;
@@ -42853,14 +42853,14 @@ export declare const mainChatContract: {
42853
42853
  updatedAt: Date;
42854
42854
  deletedAt: Date | null;
42855
42855
  entityId: string;
42856
- queueId: string | null;
42857
- contactId: string | null;
42856
+ firstResponseTime: number | null;
42858
42857
  caseId: number;
42859
42858
  entityName: string;
42859
+ contactId: string | null;
42860
+ queueId: string | null;
42860
42861
  agentId: string | null;
42861
42862
  startedDate: Date | null;
42862
42863
  handledTime: number | null;
42863
- firstResponseTime: number | null;
42864
42864
  wrapUpForm: {
42865
42865
  id: string;
42866
42866
  disposition: string | null;
@@ -42874,9 +42874,9 @@ export declare const mainChatContract: {
42874
42874
  updatedAt: Date;
42875
42875
  deletedAt: Date | null;
42876
42876
  }[];
42877
+ note: string | null;
42877
42878
  callFrom: string | null;
42878
42879
  callTo: string | null;
42879
- note: string | null;
42880
42880
  } | null;
42881
42881
  }, {
42882
42882
  id: string;
@@ -42887,14 +42887,14 @@ export declare const mainChatContract: {
42887
42887
  updatedAt: Date;
42888
42888
  deletedAt: Date | null;
42889
42889
  entityId: string;
42890
- queueId: string | null;
42891
- contactId: string | null;
42890
+ firstResponseTime: number | null;
42892
42891
  caseId: number;
42893
42892
  entityName: string;
42893
+ contactId: string | null;
42894
+ queueId: string | null;
42894
42895
  agentId: string | null;
42895
42896
  startedDate: Date | null;
42896
42897
  handledTime: number | null;
42897
- firstResponseTime: number | null;
42898
42898
  wrapUpForm: {
42899
42899
  id: string;
42900
42900
  disposition: string | null;
@@ -42908,9 +42908,9 @@ export declare const mainChatContract: {
42908
42908
  updatedAt: Date;
42909
42909
  deletedAt: Date | null;
42910
42910
  }[];
42911
+ note: string | null;
42911
42912
  callFrom: string | null;
42912
42913
  callTo: string | null;
42913
- note: string | null;
42914
42914
  } | null;
42915
42915
  }>;
42916
42916
  }, "strip", z.ZodTypeAny, {
@@ -42963,12 +42963,12 @@ export declare const mainChatContract: {
42963
42963
  telephonySignature: string | null;
42964
42964
  };
42965
42965
  };
42966
- firstResponseTime: number;
42967
42966
  lastMessage: string;
42968
42967
  handleTime: number;
42969
42968
  closeAt: Date;
42970
42969
  unreadCount: number;
42971
42970
  firstResponseAt: Date;
42971
+ firstResponseTime: number;
42972
42972
  isLatest: boolean;
42973
42973
  platformContact: {
42974
42974
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -42982,7 +42982,6 @@ export declare const mainChatContract: {
42982
42982
  createdAt: Date;
42983
42983
  updatedAt: Date;
42984
42984
  deletedAt: Date | null;
42985
- channelId: string;
42986
42985
  contact: {
42987
42986
  id: string;
42988
42987
  channel: string | null;
@@ -43087,6 +43086,7 @@ export declare const mainChatContract: {
43087
43086
  };
43088
43087
  }[] | undefined;
43089
43088
  };
43089
+ channelId: string;
43090
43090
  socialPlatformId: string;
43091
43091
  };
43092
43092
  assignee: {
@@ -43142,14 +43142,14 @@ export declare const mainChatContract: {
43142
43142
  updatedAt: Date;
43143
43143
  deletedAt: Date | null;
43144
43144
  entityId: string;
43145
- queueId: string | null;
43146
- contactId: string | null;
43145
+ firstResponseTime: number | null;
43147
43146
  caseId: number;
43148
43147
  entityName: string;
43148
+ contactId: string | null;
43149
+ queueId: string | null;
43149
43150
  agentId: string | null;
43150
43151
  startedDate: Date | null;
43151
43152
  handledTime: number | null;
43152
- firstResponseTime: number | null;
43153
43153
  wrapUpForm: {
43154
43154
  id: string;
43155
43155
  disposition: string | null;
@@ -43163,9 +43163,9 @@ export declare const mainChatContract: {
43163
43163
  updatedAt: Date;
43164
43164
  deletedAt: Date | null;
43165
43165
  }[];
43166
+ note: string | null;
43166
43167
  callFrom: string | null;
43167
43168
  callTo: string | null;
43168
- note: string | null;
43169
43169
  } | null;
43170
43170
  };
43171
43171
  channel?: {
@@ -43283,12 +43283,12 @@ export declare const mainChatContract: {
43283
43283
  telephonySignature: string | null;
43284
43284
  };
43285
43285
  };
43286
- firstResponseTime: number;
43287
43286
  lastMessage: string;
43288
43287
  handleTime: number;
43289
43288
  closeAt: Date;
43290
43289
  unreadCount: number;
43291
43290
  firstResponseAt: Date;
43291
+ firstResponseTime: number;
43292
43292
  isLatest: boolean;
43293
43293
  platformContact: {
43294
43294
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -43302,7 +43302,6 @@ export declare const mainChatContract: {
43302
43302
  createdAt: Date;
43303
43303
  updatedAt: Date;
43304
43304
  deletedAt: Date | null;
43305
- channelId: string;
43306
43305
  contact: {
43307
43306
  id: string;
43308
43307
  channel: string | null;
@@ -43407,6 +43406,7 @@ export declare const mainChatContract: {
43407
43406
  };
43408
43407
  }[] | undefined;
43409
43408
  };
43409
+ channelId: string;
43410
43410
  socialPlatformId: string;
43411
43411
  };
43412
43412
  assignee: {
@@ -43462,14 +43462,14 @@ export declare const mainChatContract: {
43462
43462
  updatedAt: Date;
43463
43463
  deletedAt: Date | null;
43464
43464
  entityId: string;
43465
- queueId: string | null;
43466
- contactId: string | null;
43465
+ firstResponseTime: number | null;
43467
43466
  caseId: number;
43468
43467
  entityName: string;
43468
+ contactId: string | null;
43469
+ queueId: string | null;
43469
43470
  agentId: string | null;
43470
43471
  startedDate: Date | null;
43471
43472
  handledTime: number | null;
43472
- firstResponseTime: number | null;
43473
43473
  wrapUpForm: {
43474
43474
  id: string;
43475
43475
  disposition: string | null;
@@ -43483,9 +43483,9 @@ export declare const mainChatContract: {
43483
43483
  updatedAt: Date;
43484
43484
  deletedAt: Date | null;
43485
43485
  }[];
43486
+ note: string | null;
43486
43487
  callFrom: string | null;
43487
43488
  callTo: string | null;
43488
- note: string | null;
43489
43489
  } | null;
43490
43490
  };
43491
43491
  channel?: {
@@ -43605,12 +43605,12 @@ export declare const mainChatContract: {
43605
43605
  telephonySignature: string | null;
43606
43606
  };
43607
43607
  };
43608
- firstResponseTime: number;
43609
43608
  lastMessage: string;
43610
43609
  handleTime: number;
43611
43610
  closeAt: Date;
43612
43611
  unreadCount: number;
43613
43612
  firstResponseAt: Date;
43613
+ firstResponseTime: number;
43614
43614
  isLatest: boolean;
43615
43615
  platformContact: {
43616
43616
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -43624,7 +43624,6 @@ export declare const mainChatContract: {
43624
43624
  createdAt: Date;
43625
43625
  updatedAt: Date;
43626
43626
  deletedAt: Date | null;
43627
- channelId: string;
43628
43627
  contact: {
43629
43628
  id: string;
43630
43629
  channel: string | null;
@@ -43729,6 +43728,7 @@ export declare const mainChatContract: {
43729
43728
  };
43730
43729
  }[] | undefined;
43731
43730
  };
43731
+ channelId: string;
43732
43732
  socialPlatformId: string;
43733
43733
  };
43734
43734
  assignee: {
@@ -43784,14 +43784,14 @@ export declare const mainChatContract: {
43784
43784
  updatedAt: Date;
43785
43785
  deletedAt: Date | null;
43786
43786
  entityId: string;
43787
- queueId: string | null;
43788
- contactId: string | null;
43787
+ firstResponseTime: number | null;
43789
43788
  caseId: number;
43790
43789
  entityName: string;
43790
+ contactId: string | null;
43791
+ queueId: string | null;
43791
43792
  agentId: string | null;
43792
43793
  startedDate: Date | null;
43793
43794
  handledTime: number | null;
43794
- firstResponseTime: number | null;
43795
43795
  wrapUpForm: {
43796
43796
  id: string;
43797
43797
  disposition: string | null;
@@ -43805,9 +43805,9 @@ export declare const mainChatContract: {
43805
43805
  updatedAt: Date;
43806
43806
  deletedAt: Date | null;
43807
43807
  }[];
43808
+ note: string | null;
43808
43809
  callFrom: string | null;
43809
43810
  callTo: string | null;
43810
- note: string | null;
43811
43811
  } | null;
43812
43812
  };
43813
43813
  channel?: {
@@ -43931,12 +43931,12 @@ export declare const mainChatContract: {
43931
43931
  telephonySignature: string | null;
43932
43932
  };
43933
43933
  };
43934
- firstResponseTime: number;
43935
43934
  lastMessage: string;
43936
43935
  handleTime: number;
43937
43936
  closeAt: Date;
43938
43937
  unreadCount: number;
43939
43938
  firstResponseAt: Date;
43939
+ firstResponseTime: number;
43940
43940
  isLatest: boolean;
43941
43941
  platformContact: {
43942
43942
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -43950,7 +43950,6 @@ export declare const mainChatContract: {
43950
43950
  createdAt: Date;
43951
43951
  updatedAt: Date;
43952
43952
  deletedAt: Date | null;
43953
- channelId: string;
43954
43953
  contact: {
43955
43954
  id: string;
43956
43955
  channel: string | null;
@@ -44055,6 +44054,7 @@ export declare const mainChatContract: {
44055
44054
  };
44056
44055
  }[] | undefined;
44057
44056
  };
44057
+ channelId: string;
44058
44058
  socialPlatformId: string;
44059
44059
  };
44060
44060
  assignee: {
@@ -44110,14 +44110,14 @@ export declare const mainChatContract: {
44110
44110
  updatedAt: Date;
44111
44111
  deletedAt: Date | null;
44112
44112
  entityId: string;
44113
- queueId: string | null;
44114
- contactId: string | null;
44113
+ firstResponseTime: number | null;
44115
44114
  caseId: number;
44116
44115
  entityName: string;
44116
+ contactId: string | null;
44117
+ queueId: string | null;
44117
44118
  agentId: string | null;
44118
44119
  startedDate: Date | null;
44119
44120
  handledTime: number | null;
44120
- firstResponseTime: number | null;
44121
44121
  wrapUpForm: {
44122
44122
  id: string;
44123
44123
  disposition: string | null;
@@ -44131,9 +44131,9 @@ export declare const mainChatContract: {
44131
44131
  updatedAt: Date;
44132
44132
  deletedAt: Date | null;
44133
44133
  }[];
44134
+ note: string | null;
44134
44135
  callFrom: string | null;
44135
44136
  callTo: string | null;
44136
- note: string | null;
44137
44137
  } | null;
44138
44138
  };
44139
44139
  channel?: {