@kl1/contracts 1.1.25 → 1.1.26

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 (58) hide show
  1. package/dist/index.js +935 -924
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +934 -924
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/chat/index.d.ts +4867 -22
  6. package/dist/src/chat/index.d.ts.map +1 -1
  7. package/dist/src/chat/schema.d.ts +773 -22
  8. package/dist/src/chat/schema.d.ts.map +1 -1
  9. package/dist/src/chat/validation.d.ts +975 -5
  10. package/dist/src/chat/validation.d.ts.map +1 -1
  11. package/dist/src/contact/index.d.ts +3 -0
  12. package/dist/src/contact/index.d.ts.map +1 -1
  13. package/dist/src/contact/schema.d.ts.map +1 -1
  14. package/dist/src/contact/validation.d.ts +3 -0
  15. package/dist/src/contact/validation.d.ts.map +1 -1
  16. package/dist/src/contract.d.ts +164160 -131652
  17. package/dist/src/contract.d.ts.map +1 -1
  18. package/dist/src/cx-log/index.d.ts +352 -2
  19. package/dist/src/cx-log/index.d.ts.map +1 -1
  20. package/dist/src/cx-log/schema.d.ts +557 -4
  21. package/dist/src/cx-log/schema.d.ts.map +1 -1
  22. package/dist/src/instagram/index.d.ts +487 -2
  23. package/dist/src/instagram/index.d.ts.map +1 -1
  24. package/dist/src/line/index.d.ts +487 -2
  25. package/dist/src/line/index.d.ts.map +1 -1
  26. package/dist/src/mail/mail-contract.d.ts +30477 -6759
  27. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  28. package/dist/src/mail/message-contract.d.ts +6424 -64
  29. package/dist/src/mail/message-contract.d.ts.map +1 -1
  30. package/dist/src/mail/room-contract.d.ts +19532 -2172
  31. package/dist/src/mail/room-contract.d.ts.map +1 -1
  32. package/dist/src/mail/schemas/message-validation.schema.d.ts +7 -4
  33. package/dist/src/mail/schemas/message-validation.schema.d.ts.map +1 -1
  34. package/dist/src/mail/schemas/message.schema.d.ts +762 -40
  35. package/dist/src/mail/schemas/message.schema.d.ts.map +1 -1
  36. package/dist/src/mail/schemas/room-validation.schema.d.ts +6057 -350
  37. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  38. package/dist/src/mail/schemas/room.schema.d.ts +5984 -308
  39. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  40. package/dist/src/messenger/index.d.ts +487 -2
  41. package/dist/src/messenger/index.d.ts.map +1 -1
  42. package/dist/src/telephony-cdr/call-report.schema.d.ts +62 -62
  43. package/dist/src/telephony-cdr/call-report.schema.d.ts.map +1 -1
  44. package/dist/src/telephony-cdr/index.d.ts +1 -622
  45. package/dist/src/telephony-cdr/index.d.ts.map +1 -1
  46. package/dist/src/viber/index.d.ts +487 -2
  47. package/dist/src/viber/index.d.ts.map +1 -1
  48. package/dist/src/webchat/index.d.ts +487 -2
  49. package/dist/src/webchat/index.d.ts.map +1 -1
  50. package/dist/src/workflow-rule/index.d.ts +834 -4
  51. package/dist/src/workflow-rule/index.d.ts.map +1 -1
  52. package/dist/src/wrap-up-form/index.d.ts +1447 -6
  53. package/dist/src/wrap-up-form/index.d.ts.map +1 -1
  54. package/dist/src/wrap-up-form/schema.d.ts +207 -2
  55. package/dist/src/wrap-up-form/schema.d.ts.map +1 -1
  56. package/dist/src/wrap-up-form/validation.d.ts +29 -0
  57. package/dist/src/wrap-up-form/validation.d.ts.map +1 -1
  58. package/package.json +1 -1
@@ -449,9 +449,7 @@ export declare const PlatformContactSchema: z.ZodObject<{
449
449
  }>, "many">;
450
450
  contactEmails: z.ZodArray<z.ZodObject<{
451
451
  id: z.ZodString;
452
- createdAt: z.ZodDate; /**
453
- * Message Type Enum
454
- */
452
+ createdAt: z.ZodDate;
455
453
  updatedAt: z.ZodDate;
456
454
  deletedAt: z.ZodNullable<z.ZodDate>;
457
455
  email: z.ZodString;
@@ -477,9 +475,6 @@ export declare const PlatformContactSchema: z.ZodObject<{
477
475
  updatedAt: z.ZodDate;
478
476
  deletedAt: z.ZodNullable<z.ZodDate>;
479
477
  phone: z.ZodString;
480
- /**
481
- * Directions Enum
482
- */
483
478
  isPrimary: z.ZodBoolean;
484
479
  }, "strip", z.ZodTypeAny, {
485
480
  id: string;
@@ -1406,9 +1401,7 @@ export declare const RoomSchema: z.ZodObject<{
1406
1401
  }>, "many">;
1407
1402
  contactEmails: z.ZodArray<z.ZodObject<{
1408
1403
  id: z.ZodString;
1409
- createdAt: z.ZodDate; /**
1410
- * Message Type Enum
1411
- */
1404
+ createdAt: z.ZodDate;
1412
1405
  updatedAt: z.ZodDate;
1413
1406
  deletedAt: z.ZodNullable<z.ZodDate>;
1414
1407
  email: z.ZodString;
@@ -1434,9 +1427,6 @@ export declare const RoomSchema: z.ZodObject<{
1434
1427
  updatedAt: z.ZodDate;
1435
1428
  deletedAt: z.ZodNullable<z.ZodDate>;
1436
1429
  phone: z.ZodString;
1437
- /**
1438
- * Directions Enum
1439
- */
1440
1430
  isPrimary: z.ZodBoolean;
1441
1431
  }, "strip", z.ZodTypeAny, {
1442
1432
  id: string;
@@ -2725,8 +2715,7 @@ export declare const RoomSchema: z.ZodObject<{
2725
2715
  deletedAt: z.ZodNullable<z.ZodDate>;
2726
2716
  note: z.ZodNullable<z.ZodString>;
2727
2717
  disposition: z.ZodNullable<z.ZodString>;
2728
- callFrom: z.ZodNullable<z.ZodString>;
2729
- callTo: z.ZodNullable<z.ZodString>;
2718
+ type: z.ZodString;
2730
2719
  tags: z.ZodArray<z.ZodObject<{
2731
2720
  id: z.ZodString;
2732
2721
  createdAt: z.ZodDate;
@@ -2746,12 +2735,174 @@ export declare const RoomSchema: z.ZodObject<{
2746
2735
  updatedAt: Date;
2747
2736
  deletedAt: Date | null;
2748
2737
  }>, "many">;
2738
+ categories: z.ZodArray<z.ZodObject<{
2739
+ id: z.ZodString;
2740
+ createdAt: z.ZodDate;
2741
+ updatedAt: z.ZodDate;
2742
+ deletedAt: z.ZodNullable<z.ZodDate>;
2743
+ value: z.ZodString;
2744
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
2745
+ parentId: z.ZodNullable<z.ZodString>;
2746
+ childCategoryList: z.ZodArray<z.ZodObject<{
2747
+ id: z.ZodString;
2748
+ value: z.ZodString;
2749
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
2750
+ parentId: z.ZodNullable<z.ZodString>;
2751
+ childCategoryList: z.ZodArray<z.ZodObject<{
2752
+ /**
2753
+ * Message Type Enum
2754
+ */
2755
+ id: z.ZodString;
2756
+ value: z.ZodString;
2757
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
2758
+ parentId: z.ZodNullable<z.ZodString>;
2759
+ childCategoryList: z.ZodArray<z.ZodAny, "many">;
2760
+ }, "strip", z.ZodTypeAny, {
2761
+ id: string;
2762
+ value: string;
2763
+ level: 2 | 1 | 3;
2764
+ parentId: string | null;
2765
+ childCategoryList: any[];
2766
+ }, {
2767
+ id: string;
2768
+ value: string;
2769
+ level: 2 | 1 | 3;
2770
+ parentId: string | null;
2771
+ childCategoryList: any[];
2772
+ }>, "many">;
2773
+ }, "strip", z.ZodTypeAny, {
2774
+ id: string;
2775
+ value: string;
2776
+ level: 2 | 1 | 3;
2777
+ parentId: string | null;
2778
+ childCategoryList: {
2779
+ id: string;
2780
+ value: string;
2781
+ level: 2 | 1 | 3;
2782
+ parentId: string | null;
2783
+ childCategoryList: any[];
2784
+ }[];
2785
+ }, {
2786
+ id: string;
2787
+ value: string;
2788
+ level: 2 | 1 | 3;
2789
+ parentId: string | null;
2790
+ childCategoryList: {
2791
+ id: string;
2792
+ value: string;
2793
+ level: 2 | 1 | 3;
2794
+ parentId: string | null;
2795
+ childCategoryList: any[];
2796
+ }[];
2797
+ }>, "many">;
2798
+ }, "strip", z.ZodTypeAny, {
2799
+ id: string;
2800
+ value: string;
2801
+ createdAt: Date;
2802
+ updatedAt: Date;
2803
+ deletedAt: Date | null;
2804
+ level: 2 | 1 | 3;
2805
+ parentId: string | null;
2806
+ childCategoryList: {
2807
+ id: string;
2808
+ value: string;
2809
+ level: 2 | 1 | 3;
2810
+ parentId: string | null;
2811
+ childCategoryList: {
2812
+ id: string;
2813
+ value: string;
2814
+ level: 2 | 1 | 3;
2815
+ parentId: string | null;
2816
+ childCategoryList: any[];
2817
+ }[];
2818
+ }[];
2819
+ }, {
2820
+ id: string;
2821
+ value: string;
2822
+ createdAt: Date;
2823
+ updatedAt: Date;
2824
+ deletedAt: Date | null;
2825
+ level: 2 | 1 | 3;
2826
+ parentId: string | null;
2827
+ childCategoryList: {
2828
+ id: string;
2829
+ value: string;
2830
+ level: 2 | 1 | 3;
2831
+ parentId: string | null;
2832
+ childCategoryList: {
2833
+ id: string;
2834
+ value: string;
2835
+ level: 2 | 1 | 3;
2836
+ parentId: string | null;
2837
+ childCategoryList: any[];
2838
+ }[];
2839
+ }[];
2840
+ }>, "many">;
2841
+ callFrom: z.ZodNullable<z.ZodString>;
2842
+ callTo: z.ZodNullable<z.ZodString>;
2843
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2844
+ id: z.ZodString;
2845
+ createdAt: z.ZodDate;
2846
+ updatedAt: z.ZodDate;
2847
+ deletedAt: z.ZodNullable<z.ZodDate>;
2848
+ textValue: z.ZodNullable<z.ZodString>;
2849
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2850
+ numberValue: z.ZodNullable<z.ZodNumber>;
2851
+ dateValue: z.ZodNullable<z.ZodDate>;
2852
+ entityId: z.ZodString;
2853
+ attributeId: z.ZodString;
2854
+ }, "strip", z.ZodTypeAny, {
2855
+ id: string;
2856
+ createdAt: Date;
2857
+ updatedAt: Date;
2858
+ deletedAt: Date | null;
2859
+ entityId: string;
2860
+ attributeId: string;
2861
+ textValue: string | null;
2862
+ booleanValue: boolean | null;
2863
+ numberValue: number | null;
2864
+ dateValue: Date | null;
2865
+ }, {
2866
+ id: string;
2867
+ createdAt: Date;
2868
+ updatedAt: Date;
2869
+ deletedAt: Date | null;
2870
+ entityId: string;
2871
+ attributeId: string;
2872
+ textValue: string | null;
2873
+ booleanValue: boolean | null;
2874
+ numberValue: number | null;
2875
+ dateValue: Date | null;
2876
+ }>, "many">>>;
2749
2877
  }, "strip", z.ZodTypeAny, {
2878
+ type: string;
2750
2879
  id: string;
2751
2880
  disposition: string | null;
2752
2881
  createdAt: Date;
2753
2882
  updatedAt: Date;
2754
2883
  deletedAt: Date | null;
2884
+ categories: {
2885
+ id: string;
2886
+ value: string;
2887
+ createdAt: Date;
2888
+ updatedAt: Date;
2889
+ deletedAt: Date | null;
2890
+ level: 2 | 1 | 3;
2891
+ parentId: string | null;
2892
+ childCategoryList: {
2893
+ id: string;
2894
+ value: string;
2895
+ level: 2 | 1 | 3;
2896
+ parentId: string | null;
2897
+ childCategoryList: {
2898
+ id: string;
2899
+ value: string;
2900
+ level: 2 | 1 | 3;
2901
+ parentId: string | null;
2902
+ childCategoryList: any[];
2903
+ }[];
2904
+ }[];
2905
+ }[];
2755
2906
  tags: {
2756
2907
  id: string;
2757
2908
  name: string;
@@ -2762,12 +2913,47 @@ export declare const RoomSchema: z.ZodObject<{
2762
2913
  callFrom: string | null;
2763
2914
  callTo: string | null;
2764
2915
  note: string | null;
2916
+ customFields?: {
2917
+ id: string;
2918
+ createdAt: Date;
2919
+ updatedAt: Date;
2920
+ deletedAt: Date | null;
2921
+ entityId: string;
2922
+ attributeId: string;
2923
+ textValue: string | null;
2924
+ booleanValue: boolean | null;
2925
+ numberValue: number | null;
2926
+ dateValue: Date | null;
2927
+ }[] | null | undefined;
2765
2928
  }, {
2929
+ type: string;
2766
2930
  id: string;
2767
2931
  disposition: string | null;
2768
2932
  createdAt: Date;
2769
2933
  updatedAt: Date;
2770
2934
  deletedAt: Date | null;
2935
+ categories: {
2936
+ id: string;
2937
+ value: string;
2938
+ createdAt: Date;
2939
+ updatedAt: Date;
2940
+ deletedAt: Date | null;
2941
+ level: 2 | 1 | 3;
2942
+ parentId: string | null;
2943
+ childCategoryList: {
2944
+ id: string;
2945
+ value: string;
2946
+ level: 2 | 1 | 3;
2947
+ parentId: string | null;
2948
+ childCategoryList: {
2949
+ id: string;
2950
+ value: string;
2951
+ level: 2 | 1 | 3;
2952
+ parentId: string | null;
2953
+ childCategoryList: any[];
2954
+ }[];
2955
+ }[];
2956
+ }[];
2771
2957
  tags: {
2772
2958
  id: string;
2773
2959
  name: string;
@@ -2778,6 +2964,18 @@ export declare const RoomSchema: z.ZodObject<{
2778
2964
  callFrom: string | null;
2779
2965
  callTo: string | null;
2780
2966
  note: string | null;
2967
+ customFields?: {
2968
+ id: string;
2969
+ createdAt: Date;
2970
+ updatedAt: Date;
2971
+ deletedAt: Date | null;
2972
+ entityId: string;
2973
+ attributeId: string;
2974
+ textValue: string | null;
2975
+ booleanValue: boolean | null;
2976
+ numberValue: number | null;
2977
+ dateValue: Date | null;
2978
+ }[] | null | undefined;
2781
2979
  }>>;
2782
2980
  }, "strip", z.ZodTypeAny, {
2783
2981
  id: string;
@@ -2796,11 +2994,34 @@ export declare const RoomSchema: z.ZodObject<{
2796
2994
  handledTime: number | null;
2797
2995
  firstResponseTime: number | null;
2798
2996
  wrapUpForm: {
2997
+ type: string;
2799
2998
  id: string;
2800
2999
  disposition: string | null;
2801
3000
  createdAt: Date;
2802
3001
  updatedAt: Date;
2803
3002
  deletedAt: Date | null;
3003
+ categories: {
3004
+ id: string;
3005
+ value: string;
3006
+ createdAt: Date;
3007
+ updatedAt: Date;
3008
+ deletedAt: Date | null;
3009
+ level: 2 | 1 | 3;
3010
+ parentId: string | null;
3011
+ childCategoryList: {
3012
+ id: string;
3013
+ value: string;
3014
+ level: 2 | 1 | 3;
3015
+ parentId: string | null;
3016
+ childCategoryList: {
3017
+ id: string;
3018
+ value: string;
3019
+ level: 2 | 1 | 3;
3020
+ parentId: string | null;
3021
+ childCategoryList: any[];
3022
+ }[];
3023
+ }[];
3024
+ }[];
2804
3025
  tags: {
2805
3026
  id: string;
2806
3027
  name: string;
@@ -2811,6 +3032,18 @@ export declare const RoomSchema: z.ZodObject<{
2811
3032
  callFrom: string | null;
2812
3033
  callTo: string | null;
2813
3034
  note: string | null;
3035
+ customFields?: {
3036
+ id: string;
3037
+ createdAt: Date;
3038
+ updatedAt: Date;
3039
+ deletedAt: Date | null;
3040
+ entityId: string;
3041
+ attributeId: string;
3042
+ textValue: string | null;
3043
+ booleanValue: boolean | null;
3044
+ numberValue: number | null;
3045
+ dateValue: Date | null;
3046
+ }[] | null | undefined;
2814
3047
  } | null;
2815
3048
  }, {
2816
3049
  id: string;
@@ -2829,11 +3062,34 @@ export declare const RoomSchema: z.ZodObject<{
2829
3062
  handledTime: number | null;
2830
3063
  firstResponseTime: number | null;
2831
3064
  wrapUpForm: {
3065
+ type: string;
2832
3066
  id: string;
2833
3067
  disposition: string | null;
2834
3068
  createdAt: Date;
2835
3069
  updatedAt: Date;
2836
3070
  deletedAt: Date | null;
3071
+ categories: {
3072
+ id: string;
3073
+ value: string;
3074
+ createdAt: Date;
3075
+ updatedAt: Date;
3076
+ deletedAt: Date | null;
3077
+ level: 2 | 1 | 3;
3078
+ parentId: string | null;
3079
+ childCategoryList: {
3080
+ id: string;
3081
+ value: string;
3082
+ level: 2 | 1 | 3;
3083
+ parentId: string | null;
3084
+ childCategoryList: {
3085
+ id: string;
3086
+ value: string;
3087
+ level: 2 | 1 | 3;
3088
+ parentId: string | null;
3089
+ childCategoryList: any[];
3090
+ }[];
3091
+ }[];
3092
+ }[];
2837
3093
  tags: {
2838
3094
  id: string;
2839
3095
  name: string;
@@ -2844,6 +3100,18 @@ export declare const RoomSchema: z.ZodObject<{
2844
3100
  callFrom: string | null;
2845
3101
  callTo: string | null;
2846
3102
  note: string | null;
3103
+ customFields?: {
3104
+ id: string;
3105
+ createdAt: Date;
3106
+ updatedAt: Date;
3107
+ deletedAt: Date | null;
3108
+ entityId: string;
3109
+ attributeId: string;
3110
+ textValue: string | null;
3111
+ booleanValue: boolean | null;
3112
+ numberValue: number | null;
3113
+ dateValue: Date | null;
3114
+ }[] | null | undefined;
2847
3115
  } | null;
2848
3116
  }>;
2849
3117
  workflowRule: z.ZodObject<{
@@ -3168,11 +3436,34 @@ export declare const RoomSchema: z.ZodObject<{
3168
3436
  handledTime: number | null;
3169
3437
  firstResponseTime: number | null;
3170
3438
  wrapUpForm: {
3439
+ type: string;
3171
3440
  id: string;
3172
3441
  disposition: string | null;
3173
3442
  createdAt: Date;
3174
3443
  updatedAt: Date;
3175
3444
  deletedAt: Date | null;
3445
+ categories: {
3446
+ id: string;
3447
+ value: string;
3448
+ createdAt: Date;
3449
+ updatedAt: Date;
3450
+ deletedAt: Date | null;
3451
+ level: 2 | 1 | 3;
3452
+ parentId: string | null;
3453
+ childCategoryList: {
3454
+ id: string;
3455
+ value: string;
3456
+ level: 2 | 1 | 3;
3457
+ parentId: string | null;
3458
+ childCategoryList: {
3459
+ id: string;
3460
+ value: string;
3461
+ level: 2 | 1 | 3;
3462
+ parentId: string | null;
3463
+ childCategoryList: any[];
3464
+ }[];
3465
+ }[];
3466
+ }[];
3176
3467
  tags: {
3177
3468
  id: string;
3178
3469
  name: string;
@@ -3183,6 +3474,18 @@ export declare const RoomSchema: z.ZodObject<{
3183
3474
  callFrom: string | null;
3184
3475
  callTo: string | null;
3185
3476
  note: string | null;
3477
+ customFields?: {
3478
+ id: string;
3479
+ createdAt: Date;
3480
+ updatedAt: Date;
3481
+ deletedAt: Date | null;
3482
+ entityId: string;
3483
+ attributeId: string;
3484
+ textValue: string | null;
3485
+ booleanValue: boolean | null;
3486
+ numberValue: number | null;
3487
+ dateValue: Date | null;
3488
+ }[] | null | undefined;
3186
3489
  } | null;
3187
3490
  };
3188
3491
  workflowRule: {
@@ -3491,11 +3794,34 @@ export declare const RoomSchema: z.ZodObject<{
3491
3794
  handledTime: number | null;
3492
3795
  firstResponseTime: number | null;
3493
3796
  wrapUpForm: {
3797
+ type: string;
3494
3798
  id: string;
3495
3799
  disposition: string | null;
3496
3800
  createdAt: Date;
3497
3801
  updatedAt: Date;
3498
3802
  deletedAt: Date | null;
3803
+ categories: {
3804
+ id: string;
3805
+ value: string;
3806
+ createdAt: Date;
3807
+ updatedAt: Date;
3808
+ deletedAt: Date | null;
3809
+ level: 2 | 1 | 3;
3810
+ parentId: string | null;
3811
+ childCategoryList: {
3812
+ id: string;
3813
+ value: string;
3814
+ level: 2 | 1 | 3;
3815
+ parentId: string | null;
3816
+ childCategoryList: {
3817
+ id: string;
3818
+ value: string;
3819
+ level: 2 | 1 | 3;
3820
+ parentId: string | null;
3821
+ childCategoryList: any[];
3822
+ }[];
3823
+ }[];
3824
+ }[];
3499
3825
  tags: {
3500
3826
  id: string;
3501
3827
  name: string;
@@ -3506,6 +3832,18 @@ export declare const RoomSchema: z.ZodObject<{
3506
3832
  callFrom: string | null;
3507
3833
  callTo: string | null;
3508
3834
  note: string | null;
3835
+ customFields?: {
3836
+ id: string;
3837
+ createdAt: Date;
3838
+ updatedAt: Date;
3839
+ deletedAt: Date | null;
3840
+ entityId: string;
3841
+ attributeId: string;
3842
+ textValue: string | null;
3843
+ booleanValue: boolean | null;
3844
+ numberValue: number | null;
3845
+ dateValue: Date | null;
3846
+ }[] | null | undefined;
3509
3847
  } | null;
3510
3848
  };
3511
3849
  workflowRule: {
@@ -3970,9 +4308,7 @@ export declare const MessageSchema: z.ZodObject<{
3970
4308
  }>, "many">;
3971
4309
  contactEmails: z.ZodArray<z.ZodObject<{
3972
4310
  id: z.ZodString;
3973
- createdAt: z.ZodDate; /**
3974
- * Message Type Enum
3975
- */
4311
+ createdAt: z.ZodDate;
3976
4312
  updatedAt: z.ZodDate;
3977
4313
  deletedAt: z.ZodNullable<z.ZodDate>;
3978
4314
  email: z.ZodString;
@@ -3998,9 +4334,6 @@ export declare const MessageSchema: z.ZodObject<{
3998
4334
  updatedAt: z.ZodDate;
3999
4335
  deletedAt: z.ZodNullable<z.ZodDate>;
4000
4336
  phone: z.ZodString;
4001
- /**
4002
- * Directions Enum
4003
- */
4004
4337
  isPrimary: z.ZodBoolean;
4005
4338
  }, "strip", z.ZodTypeAny, {
4006
4339
  id: string;
@@ -5289,8 +5622,7 @@ export declare const MessageSchema: z.ZodObject<{
5289
5622
  deletedAt: z.ZodNullable<z.ZodDate>;
5290
5623
  note: z.ZodNullable<z.ZodString>;
5291
5624
  disposition: z.ZodNullable<z.ZodString>;
5292
- callFrom: z.ZodNullable<z.ZodString>;
5293
- callTo: z.ZodNullable<z.ZodString>;
5625
+ type: z.ZodString;
5294
5626
  tags: z.ZodArray<z.ZodObject<{
5295
5627
  id: z.ZodString;
5296
5628
  createdAt: z.ZodDate;
@@ -5310,12 +5642,174 @@ export declare const MessageSchema: z.ZodObject<{
5310
5642
  updatedAt: Date;
5311
5643
  deletedAt: Date | null;
5312
5644
  }>, "many">;
5645
+ categories: z.ZodArray<z.ZodObject<{
5646
+ id: z.ZodString;
5647
+ createdAt: z.ZodDate;
5648
+ updatedAt: z.ZodDate;
5649
+ deletedAt: z.ZodNullable<z.ZodDate>;
5650
+ value: z.ZodString;
5651
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
5652
+ parentId: z.ZodNullable<z.ZodString>;
5653
+ childCategoryList: z.ZodArray<z.ZodObject<{
5654
+ id: z.ZodString;
5655
+ value: z.ZodString;
5656
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
5657
+ parentId: z.ZodNullable<z.ZodString>;
5658
+ childCategoryList: z.ZodArray<z.ZodObject<{
5659
+ /**
5660
+ * Message Type Enum
5661
+ */
5662
+ id: z.ZodString;
5663
+ value: z.ZodString;
5664
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
5665
+ parentId: z.ZodNullable<z.ZodString>;
5666
+ childCategoryList: z.ZodArray<z.ZodAny, "many">;
5667
+ }, "strip", z.ZodTypeAny, {
5668
+ id: string;
5669
+ value: string;
5670
+ level: 2 | 1 | 3;
5671
+ parentId: string | null;
5672
+ childCategoryList: any[];
5673
+ }, {
5674
+ id: string;
5675
+ value: string;
5676
+ level: 2 | 1 | 3;
5677
+ parentId: string | null;
5678
+ childCategoryList: any[];
5679
+ }>, "many">;
5680
+ }, "strip", z.ZodTypeAny, {
5681
+ id: string;
5682
+ value: string;
5683
+ level: 2 | 1 | 3;
5684
+ parentId: string | null;
5685
+ childCategoryList: {
5686
+ id: string;
5687
+ value: string;
5688
+ level: 2 | 1 | 3;
5689
+ parentId: string | null;
5690
+ childCategoryList: any[];
5691
+ }[];
5692
+ }, {
5693
+ id: string;
5694
+ value: string;
5695
+ level: 2 | 1 | 3;
5696
+ parentId: string | null;
5697
+ childCategoryList: {
5698
+ id: string;
5699
+ value: string;
5700
+ level: 2 | 1 | 3;
5701
+ parentId: string | null;
5702
+ childCategoryList: any[];
5703
+ }[];
5704
+ }>, "many">;
5705
+ }, "strip", z.ZodTypeAny, {
5706
+ id: string;
5707
+ value: string;
5708
+ createdAt: Date;
5709
+ updatedAt: Date;
5710
+ deletedAt: Date | null;
5711
+ level: 2 | 1 | 3;
5712
+ parentId: string | null;
5713
+ childCategoryList: {
5714
+ id: string;
5715
+ value: string;
5716
+ level: 2 | 1 | 3;
5717
+ parentId: string | null;
5718
+ childCategoryList: {
5719
+ id: string;
5720
+ value: string;
5721
+ level: 2 | 1 | 3;
5722
+ parentId: string | null;
5723
+ childCategoryList: any[];
5724
+ }[];
5725
+ }[];
5726
+ }, {
5727
+ id: string;
5728
+ value: string;
5729
+ createdAt: Date;
5730
+ updatedAt: Date;
5731
+ deletedAt: Date | null;
5732
+ level: 2 | 1 | 3;
5733
+ parentId: string | null;
5734
+ childCategoryList: {
5735
+ id: string;
5736
+ value: string;
5737
+ level: 2 | 1 | 3;
5738
+ parentId: string | null;
5739
+ childCategoryList: {
5740
+ id: string;
5741
+ value: string;
5742
+ level: 2 | 1 | 3;
5743
+ parentId: string | null;
5744
+ childCategoryList: any[];
5745
+ }[];
5746
+ }[];
5747
+ }>, "many">;
5748
+ callFrom: z.ZodNullable<z.ZodString>;
5749
+ callTo: z.ZodNullable<z.ZodString>;
5750
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
5751
+ id: z.ZodString;
5752
+ createdAt: z.ZodDate;
5753
+ updatedAt: z.ZodDate;
5754
+ deletedAt: z.ZodNullable<z.ZodDate>;
5755
+ textValue: z.ZodNullable<z.ZodString>;
5756
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
5757
+ numberValue: z.ZodNullable<z.ZodNumber>;
5758
+ dateValue: z.ZodNullable<z.ZodDate>;
5759
+ entityId: z.ZodString;
5760
+ attributeId: z.ZodString;
5761
+ }, "strip", z.ZodTypeAny, {
5762
+ id: string;
5763
+ createdAt: Date;
5764
+ updatedAt: Date;
5765
+ deletedAt: Date | null;
5766
+ entityId: string;
5767
+ attributeId: string;
5768
+ textValue: string | null;
5769
+ booleanValue: boolean | null;
5770
+ numberValue: number | null;
5771
+ dateValue: Date | null;
5772
+ }, {
5773
+ id: string;
5774
+ createdAt: Date;
5775
+ updatedAt: Date;
5776
+ deletedAt: Date | null;
5777
+ entityId: string;
5778
+ attributeId: string;
5779
+ textValue: string | null;
5780
+ booleanValue: boolean | null;
5781
+ numberValue: number | null;
5782
+ dateValue: Date | null;
5783
+ }>, "many">>>;
5313
5784
  }, "strip", z.ZodTypeAny, {
5785
+ type: string;
5314
5786
  id: string;
5315
5787
  disposition: string | null;
5316
5788
  createdAt: Date;
5317
5789
  updatedAt: Date;
5318
5790
  deletedAt: Date | null;
5791
+ categories: {
5792
+ id: string;
5793
+ value: string;
5794
+ createdAt: Date;
5795
+ updatedAt: Date;
5796
+ deletedAt: Date | null;
5797
+ level: 2 | 1 | 3;
5798
+ parentId: string | null;
5799
+ childCategoryList: {
5800
+ id: string;
5801
+ value: string;
5802
+ level: 2 | 1 | 3;
5803
+ parentId: string | null;
5804
+ childCategoryList: {
5805
+ id: string;
5806
+ value: string;
5807
+ level: 2 | 1 | 3;
5808
+ parentId: string | null;
5809
+ childCategoryList: any[];
5810
+ }[];
5811
+ }[];
5812
+ }[];
5319
5813
  tags: {
5320
5814
  id: string;
5321
5815
  name: string;
@@ -5326,12 +5820,47 @@ export declare const MessageSchema: z.ZodObject<{
5326
5820
  callFrom: string | null;
5327
5821
  callTo: string | null;
5328
5822
  note: string | null;
5823
+ customFields?: {
5824
+ id: string;
5825
+ createdAt: Date;
5826
+ updatedAt: Date;
5827
+ deletedAt: Date | null;
5828
+ entityId: string;
5829
+ attributeId: string;
5830
+ textValue: string | null;
5831
+ booleanValue: boolean | null;
5832
+ numberValue: number | null;
5833
+ dateValue: Date | null;
5834
+ }[] | null | undefined;
5329
5835
  }, {
5836
+ type: string;
5330
5837
  id: string;
5331
5838
  disposition: string | null;
5332
5839
  createdAt: Date;
5333
5840
  updatedAt: Date;
5334
5841
  deletedAt: Date | null;
5842
+ categories: {
5843
+ id: string;
5844
+ value: string;
5845
+ createdAt: Date;
5846
+ updatedAt: Date;
5847
+ deletedAt: Date | null;
5848
+ level: 2 | 1 | 3;
5849
+ parentId: string | null;
5850
+ childCategoryList: {
5851
+ id: string;
5852
+ value: string;
5853
+ level: 2 | 1 | 3;
5854
+ parentId: string | null;
5855
+ childCategoryList: {
5856
+ id: string;
5857
+ value: string;
5858
+ level: 2 | 1 | 3;
5859
+ parentId: string | null;
5860
+ childCategoryList: any[];
5861
+ }[];
5862
+ }[];
5863
+ }[];
5335
5864
  tags: {
5336
5865
  id: string;
5337
5866
  name: string;
@@ -5342,6 +5871,18 @@ export declare const MessageSchema: z.ZodObject<{
5342
5871
  callFrom: string | null;
5343
5872
  callTo: string | null;
5344
5873
  note: string | null;
5874
+ customFields?: {
5875
+ id: string;
5876
+ createdAt: Date;
5877
+ updatedAt: Date;
5878
+ deletedAt: Date | null;
5879
+ entityId: string;
5880
+ attributeId: string;
5881
+ textValue: string | null;
5882
+ booleanValue: boolean | null;
5883
+ numberValue: number | null;
5884
+ dateValue: Date | null;
5885
+ }[] | null | undefined;
5345
5886
  }>>;
5346
5887
  }, "strip", z.ZodTypeAny, {
5347
5888
  id: string;
@@ -5360,11 +5901,34 @@ export declare const MessageSchema: z.ZodObject<{
5360
5901
  handledTime: number | null;
5361
5902
  firstResponseTime: number | null;
5362
5903
  wrapUpForm: {
5904
+ type: string;
5363
5905
  id: string;
5364
5906
  disposition: string | null;
5365
5907
  createdAt: Date;
5366
5908
  updatedAt: Date;
5367
5909
  deletedAt: Date | null;
5910
+ categories: {
5911
+ id: string;
5912
+ value: string;
5913
+ createdAt: Date;
5914
+ updatedAt: Date;
5915
+ deletedAt: Date | null;
5916
+ level: 2 | 1 | 3;
5917
+ parentId: string | null;
5918
+ childCategoryList: {
5919
+ id: string;
5920
+ value: string;
5921
+ level: 2 | 1 | 3;
5922
+ parentId: string | null;
5923
+ childCategoryList: {
5924
+ id: string;
5925
+ value: string;
5926
+ level: 2 | 1 | 3;
5927
+ parentId: string | null;
5928
+ childCategoryList: any[];
5929
+ }[];
5930
+ }[];
5931
+ }[];
5368
5932
  tags: {
5369
5933
  id: string;
5370
5934
  name: string;
@@ -5375,6 +5939,18 @@ export declare const MessageSchema: z.ZodObject<{
5375
5939
  callFrom: string | null;
5376
5940
  callTo: string | null;
5377
5941
  note: string | null;
5942
+ customFields?: {
5943
+ id: string;
5944
+ createdAt: Date;
5945
+ updatedAt: Date;
5946
+ deletedAt: Date | null;
5947
+ entityId: string;
5948
+ attributeId: string;
5949
+ textValue: string | null;
5950
+ booleanValue: boolean | null;
5951
+ numberValue: number | null;
5952
+ dateValue: Date | null;
5953
+ }[] | null | undefined;
5378
5954
  } | null;
5379
5955
  }, {
5380
5956
  id: string;
@@ -5393,11 +5969,34 @@ export declare const MessageSchema: z.ZodObject<{
5393
5969
  handledTime: number | null;
5394
5970
  firstResponseTime: number | null;
5395
5971
  wrapUpForm: {
5972
+ type: string;
5396
5973
  id: string;
5397
5974
  disposition: string | null;
5398
5975
  createdAt: Date;
5399
5976
  updatedAt: Date;
5400
5977
  deletedAt: Date | null;
5978
+ categories: {
5979
+ id: string;
5980
+ value: string;
5981
+ createdAt: Date;
5982
+ updatedAt: Date;
5983
+ deletedAt: Date | null;
5984
+ level: 2 | 1 | 3;
5985
+ parentId: string | null;
5986
+ childCategoryList: {
5987
+ id: string;
5988
+ value: string;
5989
+ level: 2 | 1 | 3;
5990
+ parentId: string | null;
5991
+ childCategoryList: {
5992
+ id: string;
5993
+ value: string;
5994
+ level: 2 | 1 | 3;
5995
+ parentId: string | null;
5996
+ childCategoryList: any[];
5997
+ }[];
5998
+ }[];
5999
+ }[];
5401
6000
  tags: {
5402
6001
  id: string;
5403
6002
  name: string;
@@ -5408,6 +6007,18 @@ export declare const MessageSchema: z.ZodObject<{
5408
6007
  callFrom: string | null;
5409
6008
  callTo: string | null;
5410
6009
  note: string | null;
6010
+ customFields?: {
6011
+ id: string;
6012
+ createdAt: Date;
6013
+ updatedAt: Date;
6014
+ deletedAt: Date | null;
6015
+ entityId: string;
6016
+ attributeId: string;
6017
+ textValue: string | null;
6018
+ booleanValue: boolean | null;
6019
+ numberValue: number | null;
6020
+ dateValue: Date | null;
6021
+ }[] | null | undefined;
5411
6022
  } | null;
5412
6023
  }>;
5413
6024
  workflowRule: z.ZodObject<{
@@ -5732,11 +6343,34 @@ export declare const MessageSchema: z.ZodObject<{
5732
6343
  handledTime: number | null;
5733
6344
  firstResponseTime: number | null;
5734
6345
  wrapUpForm: {
6346
+ type: string;
5735
6347
  id: string;
5736
6348
  disposition: string | null;
5737
6349
  createdAt: Date;
5738
6350
  updatedAt: Date;
5739
6351
  deletedAt: Date | null;
6352
+ categories: {
6353
+ id: string;
6354
+ value: string;
6355
+ createdAt: Date;
6356
+ updatedAt: Date;
6357
+ deletedAt: Date | null;
6358
+ level: 2 | 1 | 3;
6359
+ parentId: string | null;
6360
+ childCategoryList: {
6361
+ id: string;
6362
+ value: string;
6363
+ level: 2 | 1 | 3;
6364
+ parentId: string | null;
6365
+ childCategoryList: {
6366
+ id: string;
6367
+ value: string;
6368
+ level: 2 | 1 | 3;
6369
+ parentId: string | null;
6370
+ childCategoryList: any[];
6371
+ }[];
6372
+ }[];
6373
+ }[];
5740
6374
  tags: {
5741
6375
  id: string;
5742
6376
  name: string;
@@ -5747,6 +6381,18 @@ export declare const MessageSchema: z.ZodObject<{
5747
6381
  callFrom: string | null;
5748
6382
  callTo: string | null;
5749
6383
  note: string | null;
6384
+ customFields?: {
6385
+ id: string;
6386
+ createdAt: Date;
6387
+ updatedAt: Date;
6388
+ deletedAt: Date | null;
6389
+ entityId: string;
6390
+ attributeId: string;
6391
+ textValue: string | null;
6392
+ booleanValue: boolean | null;
6393
+ numberValue: number | null;
6394
+ dateValue: Date | null;
6395
+ }[] | null | undefined;
5750
6396
  } | null;
5751
6397
  };
5752
6398
  workflowRule: {
@@ -6055,11 +6701,34 @@ export declare const MessageSchema: z.ZodObject<{
6055
6701
  handledTime: number | null;
6056
6702
  firstResponseTime: number | null;
6057
6703
  wrapUpForm: {
6704
+ type: string;
6058
6705
  id: string;
6059
6706
  disposition: string | null;
6060
6707
  createdAt: Date;
6061
6708
  updatedAt: Date;
6062
6709
  deletedAt: Date | null;
6710
+ categories: {
6711
+ id: string;
6712
+ value: string;
6713
+ createdAt: Date;
6714
+ updatedAt: Date;
6715
+ deletedAt: Date | null;
6716
+ level: 2 | 1 | 3;
6717
+ parentId: string | null;
6718
+ childCategoryList: {
6719
+ id: string;
6720
+ value: string;
6721
+ level: 2 | 1 | 3;
6722
+ parentId: string | null;
6723
+ childCategoryList: {
6724
+ id: string;
6725
+ value: string;
6726
+ level: 2 | 1 | 3;
6727
+ parentId: string | null;
6728
+ childCategoryList: any[];
6729
+ }[];
6730
+ }[];
6731
+ }[];
6063
6732
  tags: {
6064
6733
  id: string;
6065
6734
  name: string;
@@ -6070,6 +6739,18 @@ export declare const MessageSchema: z.ZodObject<{
6070
6739
  callFrom: string | null;
6071
6740
  callTo: string | null;
6072
6741
  note: string | null;
6742
+ customFields?: {
6743
+ id: string;
6744
+ createdAt: Date;
6745
+ updatedAt: Date;
6746
+ deletedAt: Date | null;
6747
+ entityId: string;
6748
+ attributeId: string;
6749
+ textValue: string | null;
6750
+ booleanValue: boolean | null;
6751
+ numberValue: number | null;
6752
+ dateValue: Date | null;
6753
+ }[] | null | undefined;
6073
6754
  } | null;
6074
6755
  };
6075
6756
  workflowRule: {
@@ -8158,11 +8839,34 @@ export declare const MessageSchema: z.ZodObject<{
8158
8839
  handledTime: number | null;
8159
8840
  firstResponseTime: number | null;
8160
8841
  wrapUpForm: {
8842
+ type: string;
8161
8843
  id: string;
8162
8844
  disposition: string | null;
8163
8845
  createdAt: Date;
8164
8846
  updatedAt: Date;
8165
8847
  deletedAt: Date | null;
8848
+ categories: {
8849
+ id: string;
8850
+ value: string;
8851
+ createdAt: Date;
8852
+ updatedAt: Date;
8853
+ deletedAt: Date | null;
8854
+ level: 2 | 1 | 3;
8855
+ parentId: string | null;
8856
+ childCategoryList: {
8857
+ id: string;
8858
+ value: string;
8859
+ level: 2 | 1 | 3;
8860
+ parentId: string | null;
8861
+ childCategoryList: {
8862
+ id: string;
8863
+ value: string;
8864
+ level: 2 | 1 | 3;
8865
+ parentId: string | null;
8866
+ childCategoryList: any[];
8867
+ }[];
8868
+ }[];
8869
+ }[];
8166
8870
  tags: {
8167
8871
  id: string;
8168
8872
  name: string;
@@ -8173,6 +8877,18 @@ export declare const MessageSchema: z.ZodObject<{
8173
8877
  callFrom: string | null;
8174
8878
  callTo: string | null;
8175
8879
  note: string | null;
8880
+ customFields?: {
8881
+ id: string;
8882
+ createdAt: Date;
8883
+ updatedAt: Date;
8884
+ deletedAt: Date | null;
8885
+ entityId: string;
8886
+ attributeId: string;
8887
+ textValue: string | null;
8888
+ booleanValue: boolean | null;
8889
+ numberValue: number | null;
8890
+ dateValue: Date | null;
8891
+ }[] | null | undefined;
8176
8892
  } | null;
8177
8893
  };
8178
8894
  workflowRule: {
@@ -8816,11 +9532,34 @@ export declare const MessageSchema: z.ZodObject<{
8816
9532
  handledTime: number | null;
8817
9533
  firstResponseTime: number | null;
8818
9534
  wrapUpForm: {
9535
+ type: string;
8819
9536
  id: string;
8820
9537
  disposition: string | null;
8821
9538
  createdAt: Date;
8822
9539
  updatedAt: Date;
8823
9540
  deletedAt: Date | null;
9541
+ categories: {
9542
+ id: string;
9543
+ value: string;
9544
+ createdAt: Date;
9545
+ updatedAt: Date;
9546
+ deletedAt: Date | null;
9547
+ level: 2 | 1 | 3;
9548
+ parentId: string | null;
9549
+ childCategoryList: {
9550
+ id: string;
9551
+ value: string;
9552
+ level: 2 | 1 | 3;
9553
+ parentId: string | null;
9554
+ childCategoryList: {
9555
+ id: string;
9556
+ value: string;
9557
+ level: 2 | 1 | 3;
9558
+ parentId: string | null;
9559
+ childCategoryList: any[];
9560
+ }[];
9561
+ }[];
9562
+ }[];
8824
9563
  tags: {
8825
9564
  id: string;
8826
9565
  name: string;
@@ -8831,6 +9570,18 @@ export declare const MessageSchema: z.ZodObject<{
8831
9570
  callFrom: string | null;
8832
9571
  callTo: string | null;
8833
9572
  note: string | null;
9573
+ customFields?: {
9574
+ id: string;
9575
+ createdAt: Date;
9576
+ updatedAt: Date;
9577
+ deletedAt: Date | null;
9578
+ entityId: string;
9579
+ attributeId: string;
9580
+ textValue: string | null;
9581
+ booleanValue: boolean | null;
9582
+ numberValue: number | null;
9583
+ dateValue: Date | null;
9584
+ }[] | null | undefined;
8834
9585
  } | null;
8835
9586
  };
8836
9587
  workflowRule: {