@kl1/contracts 1.2.29-uat → 1.2.31-uat

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/api-contracts/src/chat/index.d.ts +683 -484
  2. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  3. package/dist/api-contracts/src/chat/schema.d.ts +120 -120
  4. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  5. package/dist/api-contracts/src/chat/validation.d.ts +259 -60
  6. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  7. package/dist/api-contracts/src/contract.d.ts +528 -528
  8. package/dist/api-contracts/src/cx-log/schema.d.ts +97 -0
  9. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  10. package/dist/api-contracts/src/facebook-feed/index.d.ts +60 -60
  11. package/dist/api-contracts/src/hold-label/index.d.ts +108 -0
  12. package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
  13. package/dist/api-contracts/src/hold-label/schema.d.ts +38 -0
  14. package/dist/api-contracts/src/hold-label/schema.d.ts.map +1 -1
  15. package/dist/api-contracts/src/index.d.ts +0 -1
  16. package/dist/api-contracts/src/index.d.ts.map +1 -1
  17. package/dist/api-contracts/src/instagram/index.d.ts +60 -60
  18. package/dist/api-contracts/src/line/index.d.ts +60 -60
  19. package/dist/api-contracts/src/mail/mail-contract.d.ts +495 -0
  20. package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
  21. package/dist/api-contracts/src/mail/room-contract.d.ts +495 -0
  22. package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
  23. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +165 -0
  24. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  25. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +131 -0
  26. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
  27. package/dist/api-contracts/src/messenger/index.d.ts +60 -60
  28. package/dist/api-contracts/src/telegram/index.d.ts +60 -60
  29. package/dist/api-contracts/src/viber/index.d.ts +60 -60
  30. package/dist/api-contracts/src/webchat/index.d.ts +60 -60
  31. package/dist/api-contracts/src/whatsapp/index.d.ts +60 -60
  32. package/dist/api-contracts/src/workflow-rule/index.d.ts +48 -48
  33. package/dist/index.js +326 -352
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.mjs +326 -351
  36. package/dist/index.mjs.map +1 -1
  37. package/package.json +1 -1
@@ -3363,17 +3363,17 @@ export declare const whatsappContract: {
3363
3363
  }>;
3364
3364
  cxlog: z.ZodObject<{
3365
3365
  id: z.ZodString;
3366
- channel: z.ZodNullable<z.ZodString>;
3367
- direction: z.ZodNullable<z.ZodString>;
3368
3366
  createdAt: z.ZodDate;
3369
3367
  updatedAt: z.ZodDate;
3370
3368
  deletedAt: z.ZodNullable<z.ZodDate>;
3371
- entityId: z.ZodString;
3372
- queueId: z.ZodNullable<z.ZodString>;
3373
- contactId: z.ZodNullable<z.ZodString>;
3374
3369
  caseId: z.ZodNumber;
3370
+ entityId: z.ZodString;
3375
3371
  entityName: z.ZodString;
3372
+ contactId: z.ZodNullable<z.ZodString>;
3373
+ channel: z.ZodNullable<z.ZodString>;
3374
+ queueId: z.ZodNullable<z.ZodString>;
3376
3375
  agentId: z.ZodNullable<z.ZodString>;
3376
+ direction: z.ZodNullable<z.ZodString>;
3377
3377
  startedDate: z.ZodNullable<z.ZodDate>;
3378
3378
  handledTime: z.ZodNullable<z.ZodNumber>;
3379
3379
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
@@ -3643,7 +3643,7 @@ export declare const whatsappContract: {
3643
3643
  dateValue: Date | null;
3644
3644
  }[] | null | undefined;
3645
3645
  }>>;
3646
- holdLogs: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
3646
+ holdLogs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3647
3647
  id: z.ZodString;
3648
3648
  createdAt: z.ZodDate;
3649
3649
  updatedAt: z.ZodDate;
@@ -3651,7 +3651,7 @@ export declare const whatsappContract: {
3651
3651
  startedAt: z.ZodString;
3652
3652
  endedAt: z.ZodNullable<z.ZodString>;
3653
3653
  duration: z.ZodNullable<z.ZodNumber>;
3654
- holdLabel: z.ZodObject<{
3654
+ holdLabel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3655
3655
  id: z.ZodString;
3656
3656
  createdAt: z.ZodDate;
3657
3657
  updatedAt: z.ZodDate;
@@ -3672,7 +3672,7 @@ export declare const whatsappContract: {
3672
3672
  createdAt: Date;
3673
3673
  updatedAt: Date;
3674
3674
  deletedAt: Date | null;
3675
- }>;
3675
+ }>>>;
3676
3676
  }, "strip", z.ZodTypeAny, {
3677
3677
  id: string;
3678
3678
  createdAt: Date;
@@ -3681,14 +3681,14 @@ export declare const whatsappContract: {
3681
3681
  startedAt: string;
3682
3682
  endedAt: string | null;
3683
3683
  duration: number | null;
3684
- holdLabel: {
3684
+ holdLabel?: {
3685
3685
  id: string;
3686
3686
  name: string;
3687
3687
  position: number;
3688
3688
  createdAt: Date;
3689
3689
  updatedAt: Date;
3690
3690
  deletedAt: Date | null;
3691
- };
3691
+ } | null | undefined;
3692
3692
  }, {
3693
3693
  id: string;
3694
3694
  createdAt: Date;
@@ -3697,14 +3697,14 @@ export declare const whatsappContract: {
3697
3697
  startedAt: string;
3698
3698
  endedAt: string | null;
3699
3699
  duration: number | null;
3700
- holdLabel: {
3700
+ holdLabel?: {
3701
3701
  id: string;
3702
3702
  name: string;
3703
3703
  position: number;
3704
3704
  createdAt: Date;
3705
3705
  updatedAt: Date;
3706
3706
  deletedAt: Date | null;
3707
- };
3707
+ } | null | undefined;
3708
3708
  }>, "many">>>;
3709
3709
  }, "strip", z.ZodTypeAny, {
3710
3710
  id: string;
@@ -3782,14 +3782,14 @@ export declare const whatsappContract: {
3782
3782
  startedAt: string;
3783
3783
  endedAt: string | null;
3784
3784
  duration: number | null;
3785
- holdLabel: {
3785
+ holdLabel?: {
3786
3786
  id: string;
3787
3787
  name: string;
3788
3788
  position: number;
3789
3789
  createdAt: Date;
3790
3790
  updatedAt: Date;
3791
3791
  deletedAt: Date | null;
3792
- };
3792
+ } | null | undefined;
3793
3793
  }[] | null | undefined;
3794
3794
  }, {
3795
3795
  id: string;
@@ -3867,14 +3867,14 @@ export declare const whatsappContract: {
3867
3867
  startedAt: string;
3868
3868
  endedAt: string | null;
3869
3869
  duration: number | null;
3870
- holdLabel: {
3870
+ holdLabel?: {
3871
3871
  id: string;
3872
3872
  name: string;
3873
3873
  position: number;
3874
3874
  createdAt: Date;
3875
3875
  updatedAt: Date;
3876
3876
  deletedAt: Date | null;
3877
- };
3877
+ } | null | undefined;
3878
3878
  }[] | null | undefined;
3879
3879
  }>;
3880
3880
  workflowRule: z.ZodObject<{
@@ -4301,14 +4301,14 @@ export declare const whatsappContract: {
4301
4301
  startedAt: string;
4302
4302
  endedAt: string | null;
4303
4303
  duration: number | null;
4304
- holdLabel: {
4304
+ holdLabel?: {
4305
4305
  id: string;
4306
4306
  name: string;
4307
4307
  position: number;
4308
4308
  createdAt: Date;
4309
4309
  updatedAt: Date;
4310
4310
  deletedAt: Date | null;
4311
- };
4311
+ } | null | undefined;
4312
4312
  }[] | null | undefined;
4313
4313
  };
4314
4314
  workflowRule: {
@@ -4719,14 +4719,14 @@ export declare const whatsappContract: {
4719
4719
  startedAt: string;
4720
4720
  endedAt: string | null;
4721
4721
  duration: number | null;
4722
- holdLabel: {
4722
+ holdLabel?: {
4723
4723
  id: string;
4724
4724
  name: string;
4725
4725
  position: number;
4726
4726
  createdAt: Date;
4727
4727
  updatedAt: Date;
4728
4728
  deletedAt: Date | null;
4729
- };
4729
+ } | null | undefined;
4730
4730
  }[] | null | undefined;
4731
4731
  };
4732
4732
  workflowRule: {
@@ -7977,17 +7977,17 @@ export declare const whatsappContract: {
7977
7977
  }>;
7978
7978
  cxlog: z.ZodObject<{
7979
7979
  id: z.ZodString;
7980
- channel: z.ZodNullable<z.ZodString>;
7981
- direction: z.ZodNullable<z.ZodString>;
7982
7980
  createdAt: z.ZodDate;
7983
7981
  updatedAt: z.ZodDate;
7984
7982
  deletedAt: z.ZodNullable<z.ZodDate>;
7985
- entityId: z.ZodString;
7986
- queueId: z.ZodNullable<z.ZodString>;
7987
- contactId: z.ZodNullable<z.ZodString>;
7988
7983
  caseId: z.ZodNumber;
7984
+ entityId: z.ZodString;
7989
7985
  entityName: z.ZodString;
7986
+ contactId: z.ZodNullable<z.ZodString>;
7987
+ channel: z.ZodNullable<z.ZodString>;
7988
+ queueId: z.ZodNullable<z.ZodString>;
7990
7989
  agentId: z.ZodNullable<z.ZodString>;
7990
+ direction: z.ZodNullable<z.ZodString>;
7991
7991
  startedDate: z.ZodNullable<z.ZodDate>;
7992
7992
  handledTime: z.ZodNullable<z.ZodNumber>;
7993
7993
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
@@ -8257,7 +8257,7 @@ export declare const whatsappContract: {
8257
8257
  dateValue: Date | null;
8258
8258
  }[] | null | undefined;
8259
8259
  }>>;
8260
- holdLogs: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
8260
+ holdLogs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
8261
8261
  id: z.ZodString;
8262
8262
  createdAt: z.ZodDate;
8263
8263
  updatedAt: z.ZodDate;
@@ -8265,7 +8265,7 @@ export declare const whatsappContract: {
8265
8265
  startedAt: z.ZodString;
8266
8266
  endedAt: z.ZodNullable<z.ZodString>;
8267
8267
  duration: z.ZodNullable<z.ZodNumber>;
8268
- holdLabel: z.ZodObject<{
8268
+ holdLabel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8269
8269
  id: z.ZodString;
8270
8270
  createdAt: z.ZodDate;
8271
8271
  updatedAt: z.ZodDate;
@@ -8286,7 +8286,7 @@ export declare const whatsappContract: {
8286
8286
  createdAt: Date;
8287
8287
  updatedAt: Date;
8288
8288
  deletedAt: Date | null;
8289
- }>;
8289
+ }>>>;
8290
8290
  }, "strip", z.ZodTypeAny, {
8291
8291
  id: string;
8292
8292
  createdAt: Date;
@@ -8295,14 +8295,14 @@ export declare const whatsappContract: {
8295
8295
  startedAt: string;
8296
8296
  endedAt: string | null;
8297
8297
  duration: number | null;
8298
- holdLabel: {
8298
+ holdLabel?: {
8299
8299
  id: string;
8300
8300
  name: string;
8301
8301
  position: number;
8302
8302
  createdAt: Date;
8303
8303
  updatedAt: Date;
8304
8304
  deletedAt: Date | null;
8305
- };
8305
+ } | null | undefined;
8306
8306
  }, {
8307
8307
  id: string;
8308
8308
  createdAt: Date;
@@ -8311,14 +8311,14 @@ export declare const whatsappContract: {
8311
8311
  startedAt: string;
8312
8312
  endedAt: string | null;
8313
8313
  duration: number | null;
8314
- holdLabel: {
8314
+ holdLabel?: {
8315
8315
  id: string;
8316
8316
  name: string;
8317
8317
  position: number;
8318
8318
  createdAt: Date;
8319
8319
  updatedAt: Date;
8320
8320
  deletedAt: Date | null;
8321
- };
8321
+ } | null | undefined;
8322
8322
  }>, "many">>>;
8323
8323
  }, "strip", z.ZodTypeAny, {
8324
8324
  id: string;
@@ -8396,14 +8396,14 @@ export declare const whatsappContract: {
8396
8396
  startedAt: string;
8397
8397
  endedAt: string | null;
8398
8398
  duration: number | null;
8399
- holdLabel: {
8399
+ holdLabel?: {
8400
8400
  id: string;
8401
8401
  name: string;
8402
8402
  position: number;
8403
8403
  createdAt: Date;
8404
8404
  updatedAt: Date;
8405
8405
  deletedAt: Date | null;
8406
- };
8406
+ } | null | undefined;
8407
8407
  }[] | null | undefined;
8408
8408
  }, {
8409
8409
  id: string;
@@ -8481,14 +8481,14 @@ export declare const whatsappContract: {
8481
8481
  startedAt: string;
8482
8482
  endedAt: string | null;
8483
8483
  duration: number | null;
8484
- holdLabel: {
8484
+ holdLabel?: {
8485
8485
  id: string;
8486
8486
  name: string;
8487
8487
  position: number;
8488
8488
  createdAt: Date;
8489
8489
  updatedAt: Date;
8490
8490
  deletedAt: Date | null;
8491
- };
8491
+ } | null | undefined;
8492
8492
  }[] | null | undefined;
8493
8493
  }>;
8494
8494
  workflowRule: z.ZodObject<{
@@ -8915,14 +8915,14 @@ export declare const whatsappContract: {
8915
8915
  startedAt: string;
8916
8916
  endedAt: string | null;
8917
8917
  duration: number | null;
8918
- holdLabel: {
8918
+ holdLabel?: {
8919
8919
  id: string;
8920
8920
  name: string;
8921
8921
  position: number;
8922
8922
  createdAt: Date;
8923
8923
  updatedAt: Date;
8924
8924
  deletedAt: Date | null;
8925
- };
8925
+ } | null | undefined;
8926
8926
  }[] | null | undefined;
8927
8927
  };
8928
8928
  workflowRule: {
@@ -9333,14 +9333,14 @@ export declare const whatsappContract: {
9333
9333
  startedAt: string;
9334
9334
  endedAt: string | null;
9335
9335
  duration: number | null;
9336
- holdLabel: {
9336
+ holdLabel?: {
9337
9337
  id: string;
9338
9338
  name: string;
9339
9339
  position: number;
9340
9340
  createdAt: Date;
9341
9341
  updatedAt: Date;
9342
9342
  deletedAt: Date | null;
9343
- };
9343
+ } | null | undefined;
9344
9344
  }[] | null | undefined;
9345
9345
  };
9346
9346
  workflowRule: {
@@ -11524,14 +11524,14 @@ export declare const whatsappContract: {
11524
11524
  startedAt: string;
11525
11525
  endedAt: string | null;
11526
11526
  duration: number | null;
11527
- holdLabel: {
11527
+ holdLabel?: {
11528
11528
  id: string;
11529
11529
  name: string;
11530
11530
  position: number;
11531
11531
  createdAt: Date;
11532
11532
  updatedAt: Date;
11533
11533
  deletedAt: Date | null;
11534
- };
11534
+ } | null | undefined;
11535
11535
  }[] | null | undefined;
11536
11536
  };
11537
11537
  workflowRule: {
@@ -12279,14 +12279,14 @@ export declare const whatsappContract: {
12279
12279
  startedAt: string;
12280
12280
  endedAt: string | null;
12281
12281
  duration: number | null;
12282
- holdLabel: {
12282
+ holdLabel?: {
12283
12283
  id: string;
12284
12284
  name: string;
12285
12285
  position: number;
12286
12286
  createdAt: Date;
12287
12287
  updatedAt: Date;
12288
12288
  deletedAt: Date | null;
12289
- };
12289
+ } | null | undefined;
12290
12290
  }[] | null | undefined;
12291
12291
  };
12292
12292
  workflowRule: {
@@ -13035,14 +13035,14 @@ export declare const whatsappContract: {
13035
13035
  startedAt: string;
13036
13036
  endedAt: string | null;
13037
13037
  duration: number | null;
13038
- holdLabel: {
13038
+ holdLabel?: {
13039
13039
  id: string;
13040
13040
  name: string;
13041
13041
  position: number;
13042
13042
  createdAt: Date;
13043
13043
  updatedAt: Date;
13044
13044
  deletedAt: Date | null;
13045
- };
13045
+ } | null | undefined;
13046
13046
  }[] | null | undefined;
13047
13047
  };
13048
13048
  workflowRule: {
@@ -13790,14 +13790,14 @@ export declare const whatsappContract: {
13790
13790
  startedAt: string;
13791
13791
  endedAt: string | null;
13792
13792
  duration: number | null;
13793
- holdLabel: {
13793
+ holdLabel?: {
13794
13794
  id: string;
13795
13795
  name: string;
13796
13796
  position: number;
13797
13797
  createdAt: Date;
13798
13798
  updatedAt: Date;
13799
13799
  deletedAt: Date | null;
13800
- };
13800
+ } | null | undefined;
13801
13801
  }[] | null | undefined;
13802
13802
  };
13803
13803
  workflowRule: {
@@ -14546,14 +14546,14 @@ export declare const whatsappContract: {
14546
14546
  startedAt: string;
14547
14547
  endedAt: string | null;
14548
14548
  duration: number | null;
14549
- holdLabel: {
14549
+ holdLabel?: {
14550
14550
  id: string;
14551
14551
  name: string;
14552
14552
  position: number;
14553
14553
  createdAt: Date;
14554
14554
  updatedAt: Date;
14555
14555
  deletedAt: Date | null;
14556
- };
14556
+ } | null | undefined;
14557
14557
  }[] | null | undefined;
14558
14558
  };
14559
14559
  workflowRule: {
@@ -15301,14 +15301,14 @@ export declare const whatsappContract: {
15301
15301
  startedAt: string;
15302
15302
  endedAt: string | null;
15303
15303
  duration: number | null;
15304
- holdLabel: {
15304
+ holdLabel?: {
15305
15305
  id: string;
15306
15306
  name: string;
15307
15307
  position: number;
15308
15308
  createdAt: Date;
15309
15309
  updatedAt: Date;
15310
15310
  deletedAt: Date | null;
15311
- };
15311
+ } | null | undefined;
15312
15312
  }[] | null | undefined;
15313
15313
  };
15314
15314
  workflowRule: {
@@ -16059,14 +16059,14 @@ export declare const whatsappContract: {
16059
16059
  startedAt: string;
16060
16060
  endedAt: string | null;
16061
16061
  duration: number | null;
16062
- holdLabel: {
16062
+ holdLabel?: {
16063
16063
  id: string;
16064
16064
  name: string;
16065
16065
  position: number;
16066
16066
  createdAt: Date;
16067
16067
  updatedAt: Date;
16068
16068
  deletedAt: Date | null;
16069
- };
16069
+ } | null | undefined;
16070
16070
  }[] | null | undefined;
16071
16071
  };
16072
16072
  workflowRule: {
@@ -16814,14 +16814,14 @@ export declare const whatsappContract: {
16814
16814
  startedAt: string;
16815
16815
  endedAt: string | null;
16816
16816
  duration: number | null;
16817
- holdLabel: {
16817
+ holdLabel?: {
16818
16818
  id: string;
16819
16819
  name: string;
16820
16820
  position: number;
16821
16821
  createdAt: Date;
16822
16822
  updatedAt: Date;
16823
16823
  deletedAt: Date | null;
16824
- };
16824
+ } | null | undefined;
16825
16825
  }[] | null | undefined;
16826
16826
  };
16827
16827
  workflowRule: {
@@ -17573,14 +17573,14 @@ export declare const whatsappContract: {
17573
17573
  startedAt: string;
17574
17574
  endedAt: string | null;
17575
17575
  duration: number | null;
17576
- holdLabel: {
17576
+ holdLabel?: {
17577
17577
  id: string;
17578
17578
  name: string;
17579
17579
  position: number;
17580
17580
  createdAt: Date;
17581
17581
  updatedAt: Date;
17582
17582
  deletedAt: Date | null;
17583
- };
17583
+ } | null | undefined;
17584
17584
  }[] | null | undefined;
17585
17585
  };
17586
17586
  workflowRule: {
@@ -18328,14 +18328,14 @@ export declare const whatsappContract: {
18328
18328
  startedAt: string;
18329
18329
  endedAt: string | null;
18330
18330
  duration: number | null;
18331
- holdLabel: {
18331
+ holdLabel?: {
18332
18332
  id: string;
18333
18333
  name: string;
18334
18334
  position: number;
18335
18335
  createdAt: Date;
18336
18336
  updatedAt: Date;
18337
18337
  deletedAt: Date | null;
18338
- };
18338
+ } | null | undefined;
18339
18339
  }[] | null | undefined;
18340
18340
  };
18341
18341
  workflowRule: {