@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
@@ -827,7 +827,6 @@ export declare const PlatformContactSchema: z.ZodObject<{
827
827
  createdAt: Date;
828
828
  updatedAt: Date;
829
829
  deletedAt: Date | null;
830
- channelId: string;
831
830
  contact: {
832
831
  id: string;
833
832
  channel: string | null;
@@ -932,6 +931,7 @@ export declare const PlatformContactSchema: z.ZodObject<{
932
931
  };
933
932
  }[] | undefined;
934
933
  };
934
+ channelId: string;
935
935
  socialPlatformId: string;
936
936
  }, {
937
937
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -945,7 +945,6 @@ export declare const PlatformContactSchema: z.ZodObject<{
945
945
  createdAt: Date;
946
946
  updatedAt: Date;
947
947
  deletedAt: Date | null;
948
- channelId: string;
949
948
  contact: {
950
949
  id: string;
951
950
  channel: string | null;
@@ -1050,6 +1049,7 @@ export declare const PlatformContactSchema: z.ZodObject<{
1050
1049
  };
1051
1050
  }[] | undefined;
1052
1051
  };
1052
+ channelId: string;
1053
1053
  socialPlatformId: string;
1054
1054
  }>;
1055
1055
  /**
@@ -1862,7 +1862,6 @@ export declare const RoomSchema: z.ZodObject<{
1862
1862
  createdAt: Date;
1863
1863
  updatedAt: Date;
1864
1864
  deletedAt: Date | null;
1865
- channelId: string;
1866
1865
  contact: {
1867
1866
  id: string;
1868
1867
  channel: string | null;
@@ -1967,6 +1966,7 @@ export declare const RoomSchema: z.ZodObject<{
1967
1966
  };
1968
1967
  }[] | undefined;
1969
1968
  };
1969
+ channelId: string;
1970
1970
  socialPlatformId: string;
1971
1971
  }, {
1972
1972
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -1980,7 +1980,6 @@ export declare const RoomSchema: z.ZodObject<{
1980
1980
  createdAt: Date;
1981
1981
  updatedAt: Date;
1982
1982
  deletedAt: Date | null;
1983
- channelId: string;
1984
1983
  contact: {
1985
1984
  id: string;
1986
1985
  channel: string | null;
@@ -2085,6 +2084,7 @@ export declare const RoomSchema: z.ZodObject<{
2085
2084
  };
2086
2085
  }[] | undefined;
2087
2086
  };
2087
+ channelId: string;
2088
2088
  socialPlatformId: string;
2089
2089
  }>;
2090
2090
  actor: z.ZodObject<{
@@ -2918,9 +2918,9 @@ export declare const RoomSchema: z.ZodObject<{
2918
2918
  updatedAt: Date;
2919
2919
  deletedAt: Date | null;
2920
2920
  }[];
2921
+ note: string | null;
2921
2922
  callFrom: string | null;
2922
2923
  callTo: string | null;
2923
- note: string | null;
2924
2924
  }, {
2925
2925
  id: string;
2926
2926
  disposition: string | null;
@@ -2934,9 +2934,9 @@ export declare const RoomSchema: z.ZodObject<{
2934
2934
  updatedAt: Date;
2935
2935
  deletedAt: Date | null;
2936
2936
  }[];
2937
+ note: string | null;
2937
2938
  callFrom: string | null;
2938
2939
  callTo: string | null;
2939
- note: string | null;
2940
2940
  }>>;
2941
2941
  }, "strip", z.ZodTypeAny, {
2942
2942
  id: string;
@@ -2947,14 +2947,14 @@ export declare const RoomSchema: z.ZodObject<{
2947
2947
  updatedAt: Date;
2948
2948
  deletedAt: Date | null;
2949
2949
  entityId: string;
2950
- queueId: string | null;
2951
- contactId: string | null;
2950
+ firstResponseTime: number | null;
2952
2951
  caseId: number;
2953
2952
  entityName: string;
2953
+ contactId: string | null;
2954
+ queueId: string | null;
2954
2955
  agentId: string | null;
2955
2956
  startedDate: Date | null;
2956
2957
  handledTime: number | null;
2957
- firstResponseTime: number | null;
2958
2958
  wrapUpForm: {
2959
2959
  id: string;
2960
2960
  disposition: string | null;
@@ -2968,9 +2968,9 @@ export declare const RoomSchema: z.ZodObject<{
2968
2968
  updatedAt: Date;
2969
2969
  deletedAt: Date | null;
2970
2970
  }[];
2971
+ note: string | null;
2971
2972
  callFrom: string | null;
2972
2973
  callTo: string | null;
2973
- note: string | null;
2974
2974
  } | null;
2975
2975
  }, {
2976
2976
  id: string;
@@ -2981,14 +2981,14 @@ export declare const RoomSchema: z.ZodObject<{
2981
2981
  updatedAt: Date;
2982
2982
  deletedAt: Date | null;
2983
2983
  entityId: string;
2984
- queueId: string | null;
2985
- contactId: string | null;
2984
+ firstResponseTime: number | null;
2986
2985
  caseId: number;
2987
2986
  entityName: string;
2987
+ contactId: string | null;
2988
+ queueId: string | null;
2988
2989
  agentId: string | null;
2989
2990
  startedDate: Date | null;
2990
2991
  handledTime: number | null;
2991
- firstResponseTime: number | null;
2992
2992
  wrapUpForm: {
2993
2993
  id: string;
2994
2994
  disposition: string | null;
@@ -3002,9 +3002,9 @@ export declare const RoomSchema: z.ZodObject<{
3002
3002
  updatedAt: Date;
3003
3003
  deletedAt: Date | null;
3004
3004
  }[];
3005
+ note: string | null;
3005
3006
  callFrom: string | null;
3006
3007
  callTo: string | null;
3007
- note: string | null;
3008
3008
  } | null;
3009
3009
  }>;
3010
3010
  }, "strip", z.ZodTypeAny, {
@@ -3057,12 +3057,12 @@ export declare const RoomSchema: z.ZodObject<{
3057
3057
  telephonySignature: string | null;
3058
3058
  };
3059
3059
  };
3060
- firstResponseTime: number;
3061
3060
  lastMessage: string;
3062
3061
  handleTime: number;
3063
3062
  closeAt: Date;
3064
3063
  unreadCount: number;
3065
3064
  firstResponseAt: Date;
3065
+ firstResponseTime: number;
3066
3066
  isLatest: boolean;
3067
3067
  platformContact: {
3068
3068
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -3076,7 +3076,6 @@ export declare const RoomSchema: z.ZodObject<{
3076
3076
  createdAt: Date;
3077
3077
  updatedAt: Date;
3078
3078
  deletedAt: Date | null;
3079
- channelId: string;
3080
3079
  contact: {
3081
3080
  id: string;
3082
3081
  channel: string | null;
@@ -3181,6 +3180,7 @@ export declare const RoomSchema: z.ZodObject<{
3181
3180
  };
3182
3181
  }[] | undefined;
3183
3182
  };
3183
+ channelId: string;
3184
3184
  socialPlatformId: string;
3185
3185
  };
3186
3186
  assignee: {
@@ -3236,14 +3236,14 @@ export declare const RoomSchema: z.ZodObject<{
3236
3236
  updatedAt: Date;
3237
3237
  deletedAt: Date | null;
3238
3238
  entityId: string;
3239
- queueId: string | null;
3240
- contactId: string | null;
3239
+ firstResponseTime: number | null;
3241
3240
  caseId: number;
3242
3241
  entityName: string;
3242
+ contactId: string | null;
3243
+ queueId: string | null;
3243
3244
  agentId: string | null;
3244
3245
  startedDate: Date | null;
3245
3246
  handledTime: number | null;
3246
- firstResponseTime: number | null;
3247
3247
  wrapUpForm: {
3248
3248
  id: string;
3249
3249
  disposition: string | null;
@@ -3257,9 +3257,9 @@ export declare const RoomSchema: z.ZodObject<{
3257
3257
  updatedAt: Date;
3258
3258
  deletedAt: Date | null;
3259
3259
  }[];
3260
+ note: string | null;
3260
3261
  callFrom: string | null;
3261
3262
  callTo: string | null;
3262
- note: string | null;
3263
3263
  } | null;
3264
3264
  };
3265
3265
  channel?: {
@@ -3377,12 +3377,12 @@ export declare const RoomSchema: z.ZodObject<{
3377
3377
  telephonySignature: string | null;
3378
3378
  };
3379
3379
  };
3380
- firstResponseTime: number;
3381
3380
  lastMessage: string;
3382
3381
  handleTime: number;
3383
3382
  closeAt: Date;
3384
3383
  unreadCount: number;
3385
3384
  firstResponseAt: Date;
3385
+ firstResponseTime: number;
3386
3386
  isLatest: boolean;
3387
3387
  platformContact: {
3388
3388
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -3396,7 +3396,6 @@ export declare const RoomSchema: z.ZodObject<{
3396
3396
  createdAt: Date;
3397
3397
  updatedAt: Date;
3398
3398
  deletedAt: Date | null;
3399
- channelId: string;
3400
3399
  contact: {
3401
3400
  id: string;
3402
3401
  channel: string | null;
@@ -3501,6 +3500,7 @@ export declare const RoomSchema: z.ZodObject<{
3501
3500
  };
3502
3501
  }[] | undefined;
3503
3502
  };
3503
+ channelId: string;
3504
3504
  socialPlatformId: string;
3505
3505
  };
3506
3506
  assignee: {
@@ -3556,14 +3556,14 @@ export declare const RoomSchema: z.ZodObject<{
3556
3556
  updatedAt: Date;
3557
3557
  deletedAt: Date | null;
3558
3558
  entityId: string;
3559
- queueId: string | null;
3560
- contactId: string | null;
3559
+ firstResponseTime: number | null;
3561
3560
  caseId: number;
3562
3561
  entityName: string;
3562
+ contactId: string | null;
3563
+ queueId: string | null;
3563
3564
  agentId: string | null;
3564
3565
  startedDate: Date | null;
3565
3566
  handledTime: number | null;
3566
- firstResponseTime: number | null;
3567
3567
  wrapUpForm: {
3568
3568
  id: string;
3569
3569
  disposition: string | null;
@@ -3577,9 +3577,9 @@ export declare const RoomSchema: z.ZodObject<{
3577
3577
  updatedAt: Date;
3578
3578
  deletedAt: Date | null;
3579
3579
  }[];
3580
+ note: string | null;
3580
3581
  callFrom: string | null;
3581
3582
  callTo: string | null;
3582
- note: string | null;
3583
3583
  } | null;
3584
3584
  };
3585
3585
  channel?: {
@@ -4476,7 +4476,6 @@ export declare const MessageSchema: z.ZodObject<{
4476
4476
  createdAt: Date;
4477
4477
  updatedAt: Date;
4478
4478
  deletedAt: Date | null;
4479
- channelId: string;
4480
4479
  contact: {
4481
4480
  id: string;
4482
4481
  channel: string | null;
@@ -4581,6 +4580,7 @@ export declare const MessageSchema: z.ZodObject<{
4581
4580
  };
4582
4581
  }[] | undefined;
4583
4582
  };
4583
+ channelId: string;
4584
4584
  socialPlatformId: string;
4585
4585
  }, {
4586
4586
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -4594,7 +4594,6 @@ export declare const MessageSchema: z.ZodObject<{
4594
4594
  createdAt: Date;
4595
4595
  updatedAt: Date;
4596
4596
  deletedAt: Date | null;
4597
- channelId: string;
4598
4597
  contact: {
4599
4598
  id: string;
4600
4599
  channel: string | null;
@@ -4699,6 +4698,7 @@ export declare const MessageSchema: z.ZodObject<{
4699
4698
  };
4700
4699
  }[] | undefined;
4701
4700
  };
4701
+ channelId: string;
4702
4702
  socialPlatformId: string;
4703
4703
  }>;
4704
4704
  actor: z.ZodObject<{
@@ -5532,9 +5532,9 @@ export declare const MessageSchema: z.ZodObject<{
5532
5532
  updatedAt: Date;
5533
5533
  deletedAt: Date | null;
5534
5534
  }[];
5535
+ note: string | null;
5535
5536
  callFrom: string | null;
5536
5537
  callTo: string | null;
5537
- note: string | null;
5538
5538
  }, {
5539
5539
  id: string;
5540
5540
  disposition: string | null;
@@ -5548,9 +5548,9 @@ export declare const MessageSchema: z.ZodObject<{
5548
5548
  updatedAt: Date;
5549
5549
  deletedAt: Date | null;
5550
5550
  }[];
5551
+ note: string | null;
5551
5552
  callFrom: string | null;
5552
5553
  callTo: string | null;
5553
- note: string | null;
5554
5554
  }>>;
5555
5555
  }, "strip", z.ZodTypeAny, {
5556
5556
  id: string;
@@ -5561,14 +5561,14 @@ export declare const MessageSchema: z.ZodObject<{
5561
5561
  updatedAt: Date;
5562
5562
  deletedAt: Date | null;
5563
5563
  entityId: string;
5564
- queueId: string | null;
5565
- contactId: string | null;
5564
+ firstResponseTime: number | null;
5566
5565
  caseId: number;
5567
5566
  entityName: string;
5567
+ contactId: string | null;
5568
+ queueId: string | null;
5568
5569
  agentId: string | null;
5569
5570
  startedDate: Date | null;
5570
5571
  handledTime: number | null;
5571
- firstResponseTime: number | null;
5572
5572
  wrapUpForm: {
5573
5573
  id: string;
5574
5574
  disposition: string | null;
@@ -5582,9 +5582,9 @@ export declare const MessageSchema: z.ZodObject<{
5582
5582
  updatedAt: Date;
5583
5583
  deletedAt: Date | null;
5584
5584
  }[];
5585
+ note: string | null;
5585
5586
  callFrom: string | null;
5586
5587
  callTo: string | null;
5587
- note: string | null;
5588
5588
  } | null;
5589
5589
  }, {
5590
5590
  id: string;
@@ -5595,14 +5595,14 @@ export declare const MessageSchema: z.ZodObject<{
5595
5595
  updatedAt: Date;
5596
5596
  deletedAt: Date | null;
5597
5597
  entityId: string;
5598
- queueId: string | null;
5599
- contactId: string | null;
5598
+ firstResponseTime: number | null;
5600
5599
  caseId: number;
5601
5600
  entityName: string;
5601
+ contactId: string | null;
5602
+ queueId: string | null;
5602
5603
  agentId: string | null;
5603
5604
  startedDate: Date | null;
5604
5605
  handledTime: number | null;
5605
- firstResponseTime: number | null;
5606
5606
  wrapUpForm: {
5607
5607
  id: string;
5608
5608
  disposition: string | null;
@@ -5616,9 +5616,9 @@ export declare const MessageSchema: z.ZodObject<{
5616
5616
  updatedAt: Date;
5617
5617
  deletedAt: Date | null;
5618
5618
  }[];
5619
+ note: string | null;
5619
5620
  callFrom: string | null;
5620
5621
  callTo: string | null;
5621
- note: string | null;
5622
5622
  } | null;
5623
5623
  }>;
5624
5624
  }, "strip", z.ZodTypeAny, {
@@ -5671,12 +5671,12 @@ export declare const MessageSchema: z.ZodObject<{
5671
5671
  telephonySignature: string | null;
5672
5672
  };
5673
5673
  };
5674
- firstResponseTime: number;
5675
5674
  lastMessage: string;
5676
5675
  handleTime: number;
5677
5676
  closeAt: Date;
5678
5677
  unreadCount: number;
5679
5678
  firstResponseAt: Date;
5679
+ firstResponseTime: number;
5680
5680
  isLatest: boolean;
5681
5681
  platformContact: {
5682
5682
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -5690,7 +5690,6 @@ export declare const MessageSchema: z.ZodObject<{
5690
5690
  createdAt: Date;
5691
5691
  updatedAt: Date;
5692
5692
  deletedAt: Date | null;
5693
- channelId: string;
5694
5693
  contact: {
5695
5694
  id: string;
5696
5695
  channel: string | null;
@@ -5795,6 +5794,7 @@ export declare const MessageSchema: z.ZodObject<{
5795
5794
  };
5796
5795
  }[] | undefined;
5797
5796
  };
5797
+ channelId: string;
5798
5798
  socialPlatformId: string;
5799
5799
  };
5800
5800
  assignee: {
@@ -5850,14 +5850,14 @@ export declare const MessageSchema: z.ZodObject<{
5850
5850
  updatedAt: Date;
5851
5851
  deletedAt: Date | null;
5852
5852
  entityId: string;
5853
- queueId: string | null;
5854
- contactId: string | null;
5853
+ firstResponseTime: number | null;
5855
5854
  caseId: number;
5856
5855
  entityName: string;
5856
+ contactId: string | null;
5857
+ queueId: string | null;
5857
5858
  agentId: string | null;
5858
5859
  startedDate: Date | null;
5859
5860
  handledTime: number | null;
5860
- firstResponseTime: number | null;
5861
5861
  wrapUpForm: {
5862
5862
  id: string;
5863
5863
  disposition: string | null;
@@ -5871,9 +5871,9 @@ export declare const MessageSchema: z.ZodObject<{
5871
5871
  updatedAt: Date;
5872
5872
  deletedAt: Date | null;
5873
5873
  }[];
5874
+ note: string | null;
5874
5875
  callFrom: string | null;
5875
5876
  callTo: string | null;
5876
- note: string | null;
5877
5877
  } | null;
5878
5878
  };
5879
5879
  channel?: {
@@ -5991,12 +5991,12 @@ export declare const MessageSchema: z.ZodObject<{
5991
5991
  telephonySignature: string | null;
5992
5992
  };
5993
5993
  };
5994
- firstResponseTime: number;
5995
5994
  lastMessage: string;
5996
5995
  handleTime: number;
5997
5996
  closeAt: Date;
5998
5997
  unreadCount: number;
5999
5998
  firstResponseAt: Date;
5999
+ firstResponseTime: number;
6000
6000
  isLatest: boolean;
6001
6001
  platformContact: {
6002
6002
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -6010,7 +6010,6 @@ export declare const MessageSchema: z.ZodObject<{
6010
6010
  createdAt: Date;
6011
6011
  updatedAt: Date;
6012
6012
  deletedAt: Date | null;
6013
- channelId: string;
6014
6013
  contact: {
6015
6014
  id: string;
6016
6015
  channel: string | null;
@@ -6115,6 +6114,7 @@ export declare const MessageSchema: z.ZodObject<{
6115
6114
  };
6116
6115
  }[] | undefined;
6117
6116
  };
6117
+ channelId: string;
6118
6118
  socialPlatformId: string;
6119
6119
  };
6120
6120
  assignee: {
@@ -6170,14 +6170,14 @@ export declare const MessageSchema: z.ZodObject<{
6170
6170
  updatedAt: Date;
6171
6171
  deletedAt: Date | null;
6172
6172
  entityId: string;
6173
- queueId: string | null;
6174
- contactId: string | null;
6173
+ firstResponseTime: number | null;
6175
6174
  caseId: number;
6176
6175
  entityName: string;
6176
+ contactId: string | null;
6177
+ queueId: string | null;
6177
6178
  agentId: string | null;
6178
6179
  startedDate: Date | null;
6179
6180
  handledTime: number | null;
6180
- firstResponseTime: number | null;
6181
6181
  wrapUpForm: {
6182
6182
  id: string;
6183
6183
  disposition: string | null;
@@ -6191,9 +6191,9 @@ export declare const MessageSchema: z.ZodObject<{
6191
6191
  updatedAt: Date;
6192
6192
  deletedAt: Date | null;
6193
6193
  }[];
6194
+ note: string | null;
6194
6195
  callFrom: string | null;
6195
6196
  callTo: string | null;
6196
- note: string | null;
6197
6197
  } | null;
6198
6198
  };
6199
6199
  channel?: {
@@ -7018,6 +7018,12 @@ export declare const MessageSchema: z.ZodObject<{
7018
7018
  telephonySignature: string | null;
7019
7019
  };
7020
7020
  };
7021
+ readAt: Date;
7022
+ platformMessageId: string;
7023
+ replyPlatformMessageId: string;
7024
+ locale: "" | "th" | "mm" | "en";
7025
+ previewUrl: string;
7026
+ imageSetId: string;
7021
7027
  room: {
7022
7028
  id: string;
7023
7029
  direction: "incoming" | "outgoing" | "system";
@@ -7068,12 +7074,12 @@ export declare const MessageSchema: z.ZodObject<{
7068
7074
  telephonySignature: string | null;
7069
7075
  };
7070
7076
  };
7071
- firstResponseTime: number;
7072
7077
  lastMessage: string;
7073
7078
  handleTime: number;
7074
7079
  closeAt: Date;
7075
7080
  unreadCount: number;
7076
7081
  firstResponseAt: Date;
7082
+ firstResponseTime: number;
7077
7083
  isLatest: boolean;
7078
7084
  platformContact: {
7079
7085
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -7087,7 +7093,6 @@ export declare const MessageSchema: z.ZodObject<{
7087
7093
  createdAt: Date;
7088
7094
  updatedAt: Date;
7089
7095
  deletedAt: Date | null;
7090
- channelId: string;
7091
7096
  contact: {
7092
7097
  id: string;
7093
7098
  channel: string | null;
@@ -7192,6 +7197,7 @@ export declare const MessageSchema: z.ZodObject<{
7192
7197
  };
7193
7198
  }[] | undefined;
7194
7199
  };
7200
+ channelId: string;
7195
7201
  socialPlatformId: string;
7196
7202
  };
7197
7203
  assignee: {
@@ -7247,14 +7253,14 @@ export declare const MessageSchema: z.ZodObject<{
7247
7253
  updatedAt: Date;
7248
7254
  deletedAt: Date | null;
7249
7255
  entityId: string;
7250
- queueId: string | null;
7251
- contactId: string | null;
7256
+ firstResponseTime: number | null;
7252
7257
  caseId: number;
7253
7258
  entityName: string;
7259
+ contactId: string | null;
7260
+ queueId: string | null;
7254
7261
  agentId: string | null;
7255
7262
  startedDate: Date | null;
7256
7263
  handledTime: number | null;
7257
- firstResponseTime: number | null;
7258
7264
  wrapUpForm: {
7259
7265
  id: string;
7260
7266
  disposition: string | null;
@@ -7268,9 +7274,9 @@ export declare const MessageSchema: z.ZodObject<{
7268
7274
  updatedAt: Date;
7269
7275
  deletedAt: Date | null;
7270
7276
  }[];
7277
+ note: string | null;
7271
7278
  callFrom: string | null;
7272
7279
  callTo: string | null;
7273
- note: string | null;
7274
7280
  } | null;
7275
7281
  };
7276
7282
  channel?: {
@@ -7339,12 +7345,6 @@ export declare const MessageSchema: z.ZodObject<{
7339
7345
  } | undefined;
7340
7346
  } | undefined;
7341
7347
  };
7342
- readAt: Date;
7343
- platformMessageId: string;
7344
- replyPlatformMessageId: string;
7345
- locale: "" | "th" | "mm" | "en";
7346
- previewUrl: string;
7347
- imageSetId: string;
7348
7348
  sender: {
7349
7349
  id: string;
7350
7350
  address: string | null;
@@ -7501,6 +7501,12 @@ export declare const MessageSchema: z.ZodObject<{
7501
7501
  telephonySignature: string | null;
7502
7502
  };
7503
7503
  };
7504
+ readAt: Date;
7505
+ platformMessageId: string;
7506
+ replyPlatformMessageId: string;
7507
+ locale: "" | "th" | "mm" | "en";
7508
+ previewUrl: string;
7509
+ imageSetId: string;
7504
7510
  room: {
7505
7511
  id: string;
7506
7512
  direction: "incoming" | "outgoing" | "system";
@@ -7551,12 +7557,12 @@ export declare const MessageSchema: z.ZodObject<{
7551
7557
  telephonySignature: string | null;
7552
7558
  };
7553
7559
  };
7554
- firstResponseTime: number;
7555
7560
  lastMessage: string;
7556
7561
  handleTime: number;
7557
7562
  closeAt: Date;
7558
7563
  unreadCount: number;
7559
7564
  firstResponseAt: Date;
7565
+ firstResponseTime: number;
7560
7566
  isLatest: boolean;
7561
7567
  platformContact: {
7562
7568
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -7570,7 +7576,6 @@ export declare const MessageSchema: z.ZodObject<{
7570
7576
  createdAt: Date;
7571
7577
  updatedAt: Date;
7572
7578
  deletedAt: Date | null;
7573
- channelId: string;
7574
7579
  contact: {
7575
7580
  id: string;
7576
7581
  channel: string | null;
@@ -7675,6 +7680,7 @@ export declare const MessageSchema: z.ZodObject<{
7675
7680
  };
7676
7681
  }[] | undefined;
7677
7682
  };
7683
+ channelId: string;
7678
7684
  socialPlatformId: string;
7679
7685
  };
7680
7686
  assignee: {
@@ -7730,14 +7736,14 @@ export declare const MessageSchema: z.ZodObject<{
7730
7736
  updatedAt: Date;
7731
7737
  deletedAt: Date | null;
7732
7738
  entityId: string;
7733
- queueId: string | null;
7734
- contactId: string | null;
7739
+ firstResponseTime: number | null;
7735
7740
  caseId: number;
7736
7741
  entityName: string;
7742
+ contactId: string | null;
7743
+ queueId: string | null;
7737
7744
  agentId: string | null;
7738
7745
  startedDate: Date | null;
7739
7746
  handledTime: number | null;
7740
- firstResponseTime: number | null;
7741
7747
  wrapUpForm: {
7742
7748
  id: string;
7743
7749
  disposition: string | null;
@@ -7751,9 +7757,9 @@ export declare const MessageSchema: z.ZodObject<{
7751
7757
  updatedAt: Date;
7752
7758
  deletedAt: Date | null;
7753
7759
  }[];
7760
+ note: string | null;
7754
7761
  callFrom: string | null;
7755
7762
  callTo: string | null;
7756
- note: string | null;
7757
7763
  } | null;
7758
7764
  };
7759
7765
  channel?: {
@@ -7822,12 +7828,6 @@ export declare const MessageSchema: z.ZodObject<{
7822
7828
  } | undefined;
7823
7829
  } | undefined;
7824
7830
  };
7825
- readAt: Date;
7826
- platformMessageId: string;
7827
- replyPlatformMessageId: string;
7828
- locale: "" | "th" | "mm" | "en";
7829
- previewUrl: string;
7830
- imageSetId: string;
7831
7831
  sender: {
7832
7832
  id: string;
7833
7833
  address: string | null;