@kl1/contracts 1.0.99-uat → 1.1.0-uat

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 (41) hide show
  1. package/dist/index.js +957 -832
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +956 -832
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/chat/index.d.ts +57 -57
  6. package/dist/src/chat/schema.d.ts +8 -8
  7. package/dist/src/chat/schema.d.ts.map +1 -1
  8. package/dist/src/chat/validation.d.ts +15 -15
  9. package/dist/src/chat/validation.d.ts.map +1 -1
  10. package/dist/src/contract.d.ts +2103 -1260
  11. package/dist/src/contract.d.ts.map +1 -1
  12. package/dist/src/index.d.ts +1 -0
  13. package/dist/src/index.d.ts.map +1 -1
  14. package/dist/src/instagram/index.d.ts +12 -12
  15. package/dist/src/line/index.d.ts +12 -12
  16. package/dist/src/mail/account-contract.d.ts +132 -132
  17. package/dist/src/mail/index.d.ts +10 -0
  18. package/dist/src/mail/index.d.ts.map +1 -1
  19. package/dist/src/mail/mail-contract.d.ts +1612 -1152
  20. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  21. package/dist/src/mail/mail-server-contract.d.ts +477 -18
  22. package/dist/src/mail/mail-server-contract.d.ts.map +1 -1
  23. package/dist/src/mail/message-contract.d.ts +54 -54
  24. package/dist/src/mail/room-contract.d.ts +951 -948
  25. package/dist/src/mail/room-contract.d.ts.map +1 -1
  26. package/dist/src/mail/schemas/account-validation.schema.d.ts +140 -140
  27. package/dist/src/mail/schemas/account-validation.schema.d.ts.map +1 -1
  28. package/dist/src/mail/schemas/account.schema.d.ts +32 -32
  29. package/dist/src/mail/schemas/message.schema.d.ts +42 -42
  30. package/dist/src/mail/schemas/message.schema.d.ts.map +1 -1
  31. package/dist/src/mail/schemas/room-validation.schema.d.ts +319 -316
  32. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  33. package/dist/src/mail/schemas/room.schema.d.ts +683 -259
  34. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  35. package/dist/src/messenger/index.d.ts +12 -12
  36. package/dist/src/user/index.d.ts +388 -4
  37. package/dist/src/user/index.d.ts.map +1 -1
  38. package/dist/src/user/validation.d.ts +7 -0
  39. package/dist/src/user/validation.d.ts.map +1 -1
  40. package/dist/src/viber/index.d.ts +12 -12
  41. package/package.json +1 -1
@@ -9,6 +9,7 @@ export * from './wrap-up-form';
9
9
  export * from './custom-field';
10
10
  export * from './activity-log';
11
11
  export * from './comment';
12
+ export * from './mail';
12
13
  export * from './cx-log';
13
14
  export * from './user';
14
15
  export * from './dashboard';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
@@ -221,7 +221,7 @@ export declare const instagramContract: {
221
221
  phone: string | null;
222
222
  } | undefined;
223
223
  }>;
224
- messengerTags: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"post_purchase_update">, z.ZodLiteral<"account_update">, z.ZodLiteral<"confirmed_event_update">]>>;
224
+ status: z.ZodNumber;
225
225
  }, "strip", z.ZodTypeAny, {
226
226
  id: string;
227
227
  channel: {
@@ -249,6 +249,7 @@ export declare const instagramContract: {
249
249
  } | undefined;
250
250
  };
251
251
  direction: "incoming" | "outgoing" | "system";
252
+ status: number;
252
253
  createdAt: string;
253
254
  updatedAt: string;
254
255
  actor: {
@@ -286,7 +287,6 @@ export declare const instagramContract: {
286
287
  } | null;
287
288
  lastMessage?: string | undefined;
288
289
  handleTime?: number | undefined;
289
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
290
290
  }, {
291
291
  id: string;
292
292
  channel: {
@@ -314,6 +314,7 @@ export declare const instagramContract: {
314
314
  } | undefined;
315
315
  };
316
316
  direction: "incoming" | "outgoing" | "system";
317
+ status: number;
317
318
  createdAt: string;
318
319
  updatedAt: string;
319
320
  actor: {
@@ -351,7 +352,6 @@ export declare const instagramContract: {
351
352
  } | null;
352
353
  lastMessage?: string | undefined;
353
354
  handleTime?: number | undefined;
354
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
355
355
  }>;
356
356
  message: z.ZodObject<{
357
357
  message: z.ZodOptional<z.ZodString>;
@@ -513,6 +513,7 @@ export declare const instagramContract: {
513
513
  } | undefined;
514
514
  };
515
515
  direction: "incoming" | "outgoing" | "system";
516
+ status: number;
516
517
  createdAt: string;
517
518
  updatedAt: string;
518
519
  actor: {
@@ -550,7 +551,6 @@ export declare const instagramContract: {
550
551
  } | null;
551
552
  lastMessage?: string | undefined;
552
553
  handleTime?: number | undefined;
553
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
554
554
  };
555
555
  }, {
556
556
  message: {
@@ -608,6 +608,7 @@ export declare const instagramContract: {
608
608
  } | undefined;
609
609
  };
610
610
  direction: "incoming" | "outgoing" | "system";
611
+ status: number;
611
612
  createdAt: string;
612
613
  updatedAt: string;
613
614
  actor: {
@@ -645,7 +646,6 @@ export declare const instagramContract: {
645
646
  } | null;
646
647
  lastMessage?: string | undefined;
647
648
  handleTime?: number | undefined;
648
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
649
649
  };
650
650
  }>;
651
651
  method: "POST";
@@ -677,7 +677,7 @@ export declare const instagramContract: {
677
677
  deletedAt: z.ZodNullable<z.ZodDate>;
678
678
  lastMessage: z.ZodString;
679
679
  handleTime: z.ZodNumber;
680
- closedAt: z.ZodDate;
680
+ closeAt: z.ZodDate;
681
681
  lastMessageAt: z.ZodNullable<z.ZodDate>;
682
682
  status: z.ZodNumber;
683
683
  unreadCount: z.ZodNumber;
@@ -2655,6 +2655,7 @@ export declare const instagramContract: {
2655
2655
  firstResponseTime: number;
2656
2656
  lastMessage: string;
2657
2657
  handleTime: number;
2658
+ closeAt: Date;
2658
2659
  unreadCount: number;
2659
2660
  firstResponseAt: Date;
2660
2661
  isLatest: boolean;
@@ -2814,7 +2815,6 @@ export declare const instagramContract: {
2814
2815
  telephonySignature: string | null;
2815
2816
  };
2816
2817
  };
2817
- closedAt: Date;
2818
2818
  lastMessageAt: Date | null;
2819
2819
  cxlog: {
2820
2820
  id: string;
@@ -2969,6 +2969,7 @@ export declare const instagramContract: {
2969
2969
  firstResponseTime: number;
2970
2970
  lastMessage: string;
2971
2971
  handleTime: number;
2972
+ closeAt: Date;
2972
2973
  unreadCount: number;
2973
2974
  firstResponseAt: Date;
2974
2975
  isLatest: boolean;
@@ -3128,7 +3129,6 @@ export declare const instagramContract: {
3128
3129
  telephonySignature: string | null;
3129
3130
  };
3130
3131
  };
3131
- closedAt: Date;
3132
3132
  lastMessageAt: Date | null;
3133
3133
  cxlog: {
3134
3134
  id: string;
@@ -5029,6 +5029,7 @@ export declare const instagramContract: {
5029
5029
  firstResponseTime: number;
5030
5030
  lastMessage: string;
5031
5031
  handleTime: number;
5032
+ closeAt: Date;
5032
5033
  unreadCount: number;
5033
5034
  firstResponseAt: Date;
5034
5035
  isLatest: boolean;
@@ -5188,7 +5189,6 @@ export declare const instagramContract: {
5188
5189
  telephonySignature: string | null;
5189
5190
  };
5190
5191
  };
5191
- closedAt: Date;
5192
5192
  lastMessageAt: Date | null;
5193
5193
  cxlog: {
5194
5194
  id: string;
@@ -5669,6 +5669,7 @@ export declare const instagramContract: {
5669
5669
  firstResponseTime: number;
5670
5670
  lastMessage: string;
5671
5671
  handleTime: number;
5672
+ closeAt: Date;
5672
5673
  unreadCount: number;
5673
5674
  firstResponseAt: Date;
5674
5675
  isLatest: boolean;
@@ -5828,7 +5829,6 @@ export declare const instagramContract: {
5828
5829
  telephonySignature: string | null;
5829
5830
  };
5830
5831
  };
5831
- closedAt: Date;
5832
5832
  lastMessageAt: Date | null;
5833
5833
  cxlog: {
5834
5834
  id: string;
@@ -6311,6 +6311,7 @@ export declare const instagramContract: {
6311
6311
  firstResponseTime: number;
6312
6312
  lastMessage: string;
6313
6313
  handleTime: number;
6314
+ closeAt: Date;
6314
6315
  unreadCount: number;
6315
6316
  firstResponseAt: Date;
6316
6317
  isLatest: boolean;
@@ -6470,7 +6471,6 @@ export declare const instagramContract: {
6470
6471
  telephonySignature: string | null;
6471
6472
  };
6472
6473
  };
6473
- closedAt: Date;
6474
6474
  lastMessageAt: Date | null;
6475
6475
  cxlog: {
6476
6476
  id: string;
@@ -6954,6 +6954,7 @@ export declare const instagramContract: {
6954
6954
  firstResponseTime: number;
6955
6955
  lastMessage: string;
6956
6956
  handleTime: number;
6957
+ closeAt: Date;
6957
6958
  unreadCount: number;
6958
6959
  firstResponseAt: Date;
6959
6960
  isLatest: boolean;
@@ -7113,7 +7114,6 @@ export declare const instagramContract: {
7113
7114
  telephonySignature: string | null;
7114
7115
  };
7115
7116
  };
7116
- closedAt: Date;
7117
7117
  lastMessageAt: Date | null;
7118
7118
  cxlog: {
7119
7119
  id: string;
@@ -1056,7 +1056,7 @@ export declare const lineContract: {
1056
1056
  phone: string | null;
1057
1057
  } | undefined;
1058
1058
  }>;
1059
- messengerTags: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"post_purchase_update">, z.ZodLiteral<"account_update">, z.ZodLiteral<"confirmed_event_update">]>>;
1059
+ status: z.ZodNumber;
1060
1060
  }, "strip", z.ZodTypeAny, {
1061
1061
  id: string;
1062
1062
  channel: {
@@ -1084,6 +1084,7 @@ export declare const lineContract: {
1084
1084
  } | undefined;
1085
1085
  };
1086
1086
  direction: "incoming" | "outgoing" | "system";
1087
+ status: number;
1087
1088
  createdAt: string;
1088
1089
  updatedAt: string;
1089
1090
  actor: {
@@ -1121,7 +1122,6 @@ export declare const lineContract: {
1121
1122
  } | null;
1122
1123
  lastMessage?: string | undefined;
1123
1124
  handleTime?: number | undefined;
1124
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1125
1125
  }, {
1126
1126
  id: string;
1127
1127
  channel: {
@@ -1149,6 +1149,7 @@ export declare const lineContract: {
1149
1149
  } | undefined;
1150
1150
  };
1151
1151
  direction: "incoming" | "outgoing" | "system";
1152
+ status: number;
1152
1153
  createdAt: string;
1153
1154
  updatedAt: string;
1154
1155
  actor: {
@@ -1186,7 +1187,6 @@ export declare const lineContract: {
1186
1187
  } | null;
1187
1188
  lastMessage?: string | undefined;
1188
1189
  handleTime?: number | undefined;
1189
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1190
1190
  }>;
1191
1191
  message: z.ZodObject<{
1192
1192
  message: z.ZodOptional<z.ZodString>;
@@ -1348,6 +1348,7 @@ export declare const lineContract: {
1348
1348
  } | undefined;
1349
1349
  };
1350
1350
  direction: "incoming" | "outgoing" | "system";
1351
+ status: number;
1351
1352
  createdAt: string;
1352
1353
  updatedAt: string;
1353
1354
  actor: {
@@ -1385,7 +1386,6 @@ export declare const lineContract: {
1385
1386
  } | null;
1386
1387
  lastMessage?: string | undefined;
1387
1388
  handleTime?: number | undefined;
1388
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1389
1389
  };
1390
1390
  }, {
1391
1391
  message: {
@@ -1443,6 +1443,7 @@ export declare const lineContract: {
1443
1443
  } | undefined;
1444
1444
  };
1445
1445
  direction: "incoming" | "outgoing" | "system";
1446
+ status: number;
1446
1447
  createdAt: string;
1447
1448
  updatedAt: string;
1448
1449
  actor: {
@@ -1480,7 +1481,6 @@ export declare const lineContract: {
1480
1481
  } | null;
1481
1482
  lastMessage?: string | undefined;
1482
1483
  handleTime?: number | undefined;
1483
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1484
1484
  };
1485
1485
  }>;
1486
1486
  method: "POST";
@@ -1512,7 +1512,7 @@ export declare const lineContract: {
1512
1512
  deletedAt: z.ZodNullable<z.ZodDate>;
1513
1513
  lastMessage: z.ZodString;
1514
1514
  handleTime: z.ZodNumber;
1515
- closedAt: z.ZodDate;
1515
+ closeAt: z.ZodDate;
1516
1516
  lastMessageAt: z.ZodNullable<z.ZodDate>;
1517
1517
  status: z.ZodNumber;
1518
1518
  unreadCount: z.ZodNumber;
@@ -3490,6 +3490,7 @@ export declare const lineContract: {
3490
3490
  firstResponseTime: number;
3491
3491
  lastMessage: string;
3492
3492
  handleTime: number;
3493
+ closeAt: Date;
3493
3494
  unreadCount: number;
3494
3495
  firstResponseAt: Date;
3495
3496
  isLatest: boolean;
@@ -3649,7 +3650,6 @@ export declare const lineContract: {
3649
3650
  telephonySignature: string | null;
3650
3651
  };
3651
3652
  };
3652
- closedAt: Date;
3653
3653
  lastMessageAt: Date | null;
3654
3654
  cxlog: {
3655
3655
  id: string;
@@ -3804,6 +3804,7 @@ export declare const lineContract: {
3804
3804
  firstResponseTime: number;
3805
3805
  lastMessage: string;
3806
3806
  handleTime: number;
3807
+ closeAt: Date;
3807
3808
  unreadCount: number;
3808
3809
  firstResponseAt: Date;
3809
3810
  isLatest: boolean;
@@ -3963,7 +3964,6 @@ export declare const lineContract: {
3963
3964
  telephonySignature: string | null;
3964
3965
  };
3965
3966
  };
3966
- closedAt: Date;
3967
3967
  lastMessageAt: Date | null;
3968
3968
  cxlog: {
3969
3969
  id: string;
@@ -5864,6 +5864,7 @@ export declare const lineContract: {
5864
5864
  firstResponseTime: number;
5865
5865
  lastMessage: string;
5866
5866
  handleTime: number;
5867
+ closeAt: Date;
5867
5868
  unreadCount: number;
5868
5869
  firstResponseAt: Date;
5869
5870
  isLatest: boolean;
@@ -6023,7 +6024,6 @@ export declare const lineContract: {
6023
6024
  telephonySignature: string | null;
6024
6025
  };
6025
6026
  };
6026
- closedAt: Date;
6027
6027
  lastMessageAt: Date | null;
6028
6028
  cxlog: {
6029
6029
  id: string;
@@ -6504,6 +6504,7 @@ export declare const lineContract: {
6504
6504
  firstResponseTime: number;
6505
6505
  lastMessage: string;
6506
6506
  handleTime: number;
6507
+ closeAt: Date;
6507
6508
  unreadCount: number;
6508
6509
  firstResponseAt: Date;
6509
6510
  isLatest: boolean;
@@ -6663,7 +6664,6 @@ export declare const lineContract: {
6663
6664
  telephonySignature: string | null;
6664
6665
  };
6665
6666
  };
6666
- closedAt: Date;
6667
6667
  lastMessageAt: Date | null;
6668
6668
  cxlog: {
6669
6669
  id: string;
@@ -7146,6 +7146,7 @@ export declare const lineContract: {
7146
7146
  firstResponseTime: number;
7147
7147
  lastMessage: string;
7148
7148
  handleTime: number;
7149
+ closeAt: Date;
7149
7150
  unreadCount: number;
7150
7151
  firstResponseAt: Date;
7151
7152
  isLatest: boolean;
@@ -7305,7 +7306,6 @@ export declare const lineContract: {
7305
7306
  telephonySignature: string | null;
7306
7307
  };
7307
7308
  };
7308
- closedAt: Date;
7309
7309
  lastMessageAt: Date | null;
7310
7310
  cxlog: {
7311
7311
  id: string;
@@ -7789,6 +7789,7 @@ export declare const lineContract: {
7789
7789
  firstResponseTime: number;
7790
7790
  lastMessage: string;
7791
7791
  handleTime: number;
7792
+ closeAt: Date;
7792
7793
  unreadCount: number;
7793
7794
  firstResponseAt: Date;
7794
7795
  isLatest: boolean;
@@ -7948,7 +7949,6 @@ export declare const lineContract: {
7948
7949
  telephonySignature: string | null;
7949
7950
  };
7950
7951
  };
7951
- closedAt: Date;
7952
7952
  lastMessageAt: Date | null;
7953
7953
  cxlog: {
7954
7954
  id: string;