@kl1/contracts 1.0.39 → 1.0.41

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.
@@ -86,10 +86,10 @@ export declare const CxLogSchema: z.ZodObject<{
86
86
  updatedAt: Date;
87
87
  deletedAt: Date | null;
88
88
  entityId: string;
89
+ queueId: string | null;
89
90
  contactId: string | null;
90
91
  caseId: number;
91
92
  entityName: string;
92
- queueId: string | null;
93
93
  agentId: string | null;
94
94
  startedDate: Date | null;
95
95
  handledTime: number | null;
@@ -120,10 +120,10 @@ export declare const CxLogSchema: z.ZodObject<{
120
120
  updatedAt: Date;
121
121
  deletedAt: Date | null;
122
122
  entityId: string;
123
+ queueId: string | null;
123
124
  contactId: string | null;
124
125
  caseId: number;
125
126
  entityName: string;
126
- queueId: string | null;
127
127
  agentId: string | null;
128
128
  startedDate: Date | null;
129
129
  handledTime: number | null;
@@ -2617,254 +2617,1320 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
2617
2617
  talkDuration: z.ZodNullable<z.ZodNumber>;
2618
2618
  srcTrunkName: z.ZodNullable<z.ZodString>;
2619
2619
  dstTrunkName: z.ZodNullable<z.ZodString>;
2620
- pinCode: z.ZodNullable<z.ZodString>;
2621
- status: z.ZodString;
2622
- type: z.ZodString;
2623
- recording: z.ZodNullable<z.ZodString>;
2624
- didNumber: z.ZodNullable<z.ZodString>;
2625
- agentRingTime: z.ZodNullable<z.ZodNumber>;
2626
- uploadId: z.ZodNullable<z.ZodString>;
2627
- upload: z.ZodOptional<z.ZodObject<{
2628
- id: z.ZodString;
2629
- createdAt: z.ZodDate;
2630
- updatedAt: z.ZodDate;
2631
- deletedAt: z.ZodNullable<z.ZodDate>;
2632
- bucketName: z.ZodString;
2633
- fileName: z.ZodString;
2634
- fileSize: z.ZodNumber;
2635
- fileKey: z.ZodString;
2636
- fileUrl: z.ZodNullable<z.ZodString>;
2637
- }, "strip", z.ZodTypeAny, {
2638
- id: string;
2639
- createdAt: Date;
2640
- updatedAt: Date;
2641
- deletedAt: Date | null;
2642
- fileName: string;
2643
- fileKey: string;
2644
- bucketName: string;
2645
- fileSize: number;
2646
- fileUrl: string | null;
2647
- }, {
2648
- id: string;
2649
- createdAt: Date;
2650
- updatedAt: Date;
2651
- deletedAt: Date | null;
2652
- fileName: string;
2653
- fileKey: string;
2654
- bucketName: string;
2655
- fileSize: number;
2656
- fileUrl: string | null;
2657
- }>>;
2658
- serialNumber: z.ZodNullable<z.ZodString>;
2659
- extensionId: z.ZodNullable<z.ZodString>;
2660
- telephonyQueueId: z.ZodNullable<z.ZodString>;
2661
- contactId: z.ZodNullable<z.ZodString>;
2662
- }, "strip", z.ZodTypeAny, {
2663
- type: string;
2664
- id: string;
2665
- recording: string | null;
2666
- status: string;
2667
- createdAt: Date;
2668
- updatedAt: Date;
2669
- deletedAt: Date | null;
2670
- extensionId: string | null;
2671
- uniqueCallId: string;
2672
- timeStart: string;
2673
- callFrom: string;
2674
- callTo: string;
2675
- callDuration: number | null;
2676
- talkDuration: number | null;
2677
- srcTrunkName: string | null;
2678
- dstTrunkName: string | null;
2679
- pinCode: string | null;
2680
- didNumber: string | null;
2681
- agentRingTime: number | null;
2682
- uploadId: string | null;
2683
- serialNumber: string | null;
2684
- telephonyQueueId: string | null;
2685
- contactId: string | null;
2686
- upload?: {
2687
- id: string;
2688
- createdAt: Date;
2689
- updatedAt: Date;
2690
- deletedAt: Date | null;
2691
- fileName: string;
2692
- fileKey: string;
2693
- bucketName: string;
2694
- fileSize: number;
2695
- fileUrl: string | null;
2696
- } | undefined;
2697
- }, {
2698
- type: string;
2699
- id: string;
2700
- recording: string | null;
2701
- status: string;
2702
- createdAt: Date;
2703
- updatedAt: Date;
2704
- deletedAt: Date | null;
2705
- extensionId: string | null;
2706
- uniqueCallId: string;
2707
- timeStart: string;
2708
- callFrom: string;
2709
- callTo: string;
2710
- callDuration: number | null;
2711
- talkDuration: number | null;
2712
- srcTrunkName: string | null;
2713
- dstTrunkName: string | null;
2714
- pinCode: string | null;
2715
- didNumber: string | null;
2716
- agentRingTime: number | null;
2717
- uploadId: string | null;
2718
- serialNumber: string | null;
2719
- telephonyQueueId: string | null;
2720
- contactId: string | null;
2721
- upload?: {
2722
- id: string;
2723
- createdAt: Date;
2724
- updatedAt: Date;
2725
- deletedAt: Date | null;
2726
- fileName: string;
2727
- fileKey: string;
2728
- bucketName: string;
2729
- fileSize: number;
2730
- fileUrl: string | null;
2731
- } | undefined;
2732
- }>>;
2733
- queue: z.ZodNullable<z.ZodObject<{
2734
- queueName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2735
- }, "strip", z.ZodTypeAny, {
2736
- queueName?: string | null | undefined;
2737
- }, {
2738
- queueName?: string | null | undefined;
2739
- }>>;
2740
- contact: z.ZodNullable<z.ZodObject<{
2741
- id: z.ZodString;
2742
- createdAt: z.ZodDate;
2743
- updatedAt: z.ZodDate;
2744
- deletedAt: z.ZodNullable<z.ZodDate>;
2745
- name: z.ZodString;
2746
- address: z.ZodNullable<z.ZodString>;
2747
- channel: z.ZodNullable<z.ZodString>;
2748
- notes: z.ZodNullable<z.ZodString>;
2749
- contactProfile: z.ZodNullable<z.ZodString>;
2750
- socialProfileUrl: z.ZodNullable<z.ZodString>;
2751
- tags: z.ZodArray<z.ZodObject<{
2620
+ contact: z.ZodOptional<z.ZodObject<{
2752
2621
  id: z.ZodString;
2753
2622
  createdAt: z.ZodDate;
2754
2623
  updatedAt: z.ZodDate;
2755
2624
  deletedAt: z.ZodNullable<z.ZodDate>;
2756
2625
  name: z.ZodString;
2757
- }, "strip", z.ZodTypeAny, {
2758
- id: string;
2759
- name: string;
2760
- createdAt: Date;
2761
- updatedAt: Date;
2762
- deletedAt: Date | null;
2763
- }, {
2764
- id: string;
2765
- name: string;
2766
- createdAt: Date;
2767
- updatedAt: Date;
2768
- deletedAt: Date | null;
2769
- }>, "many">;
2770
- company: z.ZodNullable<z.ZodObject<Omit<{
2771
- id: z.ZodString;
2772
- createdAt: z.ZodDate;
2773
- updatedAt: z.ZodDate;
2774
- deletedAt: z.ZodNullable<z.ZodDate>;
2775
- name: z.ZodOptional<z.ZodString>;
2776
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2777
- address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2778
- industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2779
- customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2626
+ address: z.ZodNullable<z.ZodString>;
2627
+ channel: z.ZodNullable<z.ZodString>;
2628
+ notes: z.ZodNullable<z.ZodString>;
2629
+ contactProfile: z.ZodNullable<z.ZodString>;
2630
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
2631
+ tags: z.ZodArray<z.ZodObject<{
2780
2632
  id: z.ZodString;
2781
2633
  createdAt: z.ZodDate;
2782
2634
  updatedAt: z.ZodDate;
2783
2635
  deletedAt: z.ZodNullable<z.ZodDate>;
2784
- textValue: z.ZodNullable<z.ZodString>;
2785
- booleanValue: z.ZodNullable<z.ZodBoolean>;
2786
- numberValue: z.ZodNullable<z.ZodNumber>;
2787
- dateValue: z.ZodNullable<z.ZodDate>;
2788
- attribute: z.ZodObject<Omit<{
2636
+ name: z.ZodString;
2637
+ }, "strip", z.ZodTypeAny, {
2638
+ id: string;
2639
+ name: string;
2640
+ createdAt: Date;
2641
+ updatedAt: Date;
2642
+ deletedAt: Date | null;
2643
+ }, {
2644
+ id: string;
2645
+ name: string;
2646
+ createdAt: Date;
2647
+ updatedAt: Date;
2648
+ deletedAt: Date | null;
2649
+ }>, "many">;
2650
+ company: z.ZodNullable<z.ZodObject<Omit<{
2651
+ id: z.ZodString;
2652
+ createdAt: z.ZodDate;
2653
+ updatedAt: z.ZodDate;
2654
+ deletedAt: z.ZodNullable<z.ZodDate>;
2655
+ name: z.ZodOptional<z.ZodString>;
2656
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2657
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2658
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2659
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2789
2660
  id: z.ZodString;
2790
2661
  createdAt: z.ZodDate;
2791
2662
  updatedAt: z.ZodDate;
2792
2663
  deletedAt: z.ZodNullable<z.ZodDate>;
2793
- systemName: z.ZodString;
2794
- displayName: z.ZodString;
2795
- type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2796
- position: z.ZodNumber;
2797
- isDefault: z.ZodBoolean;
2798
- isArchived: z.ZodBoolean;
2799
- isRequired: z.ZodBoolean;
2800
- isUnique: z.ZodBoolean;
2801
- options: z.ZodArray<z.ZodObject<{
2802
- position: z.ZodNumber;
2803
- value: z.ZodString;
2804
- label: z.ZodString;
2805
- isDefault: z.ZodBoolean;
2806
- id: z.ZodString;
2807
- }, "strip", z.ZodTypeAny, {
2808
- id: string;
2809
- position: number;
2810
- value: string;
2811
- label: string;
2812
- isDefault: boolean;
2813
- }, {
2814
- id: string;
2815
- position: number;
2816
- value: string;
2817
- label: string;
2818
- isDefault: boolean;
2819
- }>, "many">;
2820
- group: z.ZodObject<{
2664
+ textValue: z.ZodNullable<z.ZodString>;
2665
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2666
+ numberValue: z.ZodNullable<z.ZodNumber>;
2667
+ dateValue: z.ZodNullable<z.ZodDate>;
2668
+ attribute: z.ZodObject<Omit<{
2821
2669
  id: z.ZodString;
2822
2670
  createdAt: z.ZodDate;
2823
2671
  updatedAt: z.ZodDate;
2824
2672
  deletedAt: z.ZodNullable<z.ZodDate>;
2825
2673
  systemName: z.ZodString;
2826
2674
  displayName: z.ZodString;
2827
- }, "strip", z.ZodTypeAny, {
2828
- id: string;
2829
- createdAt: Date;
2830
- updatedAt: Date;
2831
- deletedAt: Date | null;
2832
- systemName: string;
2833
- displayName: string;
2834
- }, {
2835
- id: string;
2836
- createdAt: Date;
2837
- updatedAt: Date;
2838
- deletedAt: Date | null;
2839
- systemName: string;
2840
- displayName: string;
2841
- }>;
2842
- }, "options" | "group">, "strip", z.ZodTypeAny, {
2843
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2844
- id: string;
2845
- position: number;
2846
- createdAt: Date;
2847
- updatedAt: Date;
2848
- deletedAt: Date | null;
2849
- isDefault: boolean;
2850
- systemName: string;
2851
- displayName: string;
2852
- isArchived: boolean;
2853
- isRequired: boolean;
2854
- isUnique: boolean;
2855
- }, {
2856
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2857
- id: string;
2858
- position: number;
2859
- createdAt: Date;
2860
- updatedAt: Date;
2861
- deletedAt: Date | null;
2862
- isDefault: boolean;
2863
- systemName: string;
2864
- displayName: string;
2865
- isArchived: boolean;
2866
- isRequired: boolean;
2867
- isUnique: boolean;
2675
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2676
+ position: z.ZodNumber;
2677
+ isDefault: z.ZodBoolean;
2678
+ isArchived: z.ZodBoolean;
2679
+ isRequired: z.ZodBoolean;
2680
+ isUnique: z.ZodBoolean;
2681
+ options: z.ZodArray<z.ZodObject<{
2682
+ position: z.ZodNumber;
2683
+ value: z.ZodString;
2684
+ label: z.ZodString;
2685
+ isDefault: z.ZodBoolean;
2686
+ id: z.ZodString;
2687
+ }, "strip", z.ZodTypeAny, {
2688
+ id: string;
2689
+ position: number;
2690
+ value: string;
2691
+ label: string;
2692
+ isDefault: boolean;
2693
+ }, {
2694
+ id: string;
2695
+ position: number;
2696
+ value: string;
2697
+ label: string;
2698
+ isDefault: boolean;
2699
+ }>, "many">;
2700
+ group: z.ZodObject<{
2701
+ id: z.ZodString;
2702
+ createdAt: z.ZodDate;
2703
+ updatedAt: z.ZodDate;
2704
+ deletedAt: z.ZodNullable<z.ZodDate>;
2705
+ systemName: z.ZodString;
2706
+ displayName: z.ZodString;
2707
+ }, "strip", z.ZodTypeAny, {
2708
+ id: string;
2709
+ createdAt: Date;
2710
+ updatedAt: Date;
2711
+ deletedAt: Date | null;
2712
+ systemName: string;
2713
+ displayName: string;
2714
+ }, {
2715
+ id: string;
2716
+ createdAt: Date;
2717
+ updatedAt: Date;
2718
+ deletedAt: Date | null;
2719
+ systemName: string;
2720
+ displayName: string;
2721
+ }>;
2722
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2723
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2724
+ id: string;
2725
+ position: number;
2726
+ createdAt: Date;
2727
+ updatedAt: Date;
2728
+ deletedAt: Date | null;
2729
+ isDefault: boolean;
2730
+ systemName: string;
2731
+ displayName: string;
2732
+ isArchived: boolean;
2733
+ isRequired: boolean;
2734
+ isUnique: boolean;
2735
+ }, {
2736
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2737
+ id: string;
2738
+ position: number;
2739
+ createdAt: Date;
2740
+ updatedAt: Date;
2741
+ deletedAt: Date | null;
2742
+ isDefault: boolean;
2743
+ systemName: string;
2744
+ displayName: string;
2745
+ isArchived: boolean;
2746
+ isRequired: boolean;
2747
+ isUnique: boolean;
2748
+ }>;
2749
+ }, "strip", z.ZodTypeAny, {
2750
+ id: string;
2751
+ createdAt: Date;
2752
+ updatedAt: Date;
2753
+ deletedAt: Date | null;
2754
+ attribute: {
2755
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2756
+ id: string;
2757
+ position: number;
2758
+ createdAt: Date;
2759
+ updatedAt: Date;
2760
+ deletedAt: Date | null;
2761
+ isDefault: boolean;
2762
+ systemName: string;
2763
+ displayName: string;
2764
+ isArchived: boolean;
2765
+ isRequired: boolean;
2766
+ isUnique: boolean;
2767
+ };
2768
+ textValue: string | null;
2769
+ booleanValue: boolean | null;
2770
+ numberValue: number | null;
2771
+ dateValue: Date | null;
2772
+ }, {
2773
+ id: string;
2774
+ createdAt: Date;
2775
+ updatedAt: Date;
2776
+ deletedAt: Date | null;
2777
+ attribute: {
2778
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2779
+ id: string;
2780
+ position: number;
2781
+ createdAt: Date;
2782
+ updatedAt: Date;
2783
+ deletedAt: Date | null;
2784
+ isDefault: boolean;
2785
+ systemName: string;
2786
+ displayName: string;
2787
+ isArchived: boolean;
2788
+ isRequired: boolean;
2789
+ isUnique: boolean;
2790
+ };
2791
+ textValue: string | null;
2792
+ booleanValue: boolean | null;
2793
+ numberValue: number | null;
2794
+ dateValue: Date | null;
2795
+ }>, "many">>;
2796
+ }, "customFields">, "strip", z.ZodTypeAny, {
2797
+ id: string;
2798
+ createdAt: Date;
2799
+ updatedAt: Date;
2800
+ deletedAt: Date | null;
2801
+ address?: string | null | undefined;
2802
+ name?: string | undefined;
2803
+ phone?: string | null | undefined;
2804
+ industry?: string | null | undefined;
2805
+ }, {
2806
+ id: string;
2807
+ createdAt: Date;
2808
+ updatedAt: Date;
2809
+ deletedAt: Date | null;
2810
+ address?: string | null | undefined;
2811
+ name?: string | undefined;
2812
+ phone?: string | null | undefined;
2813
+ industry?: string | null | undefined;
2814
+ }>>;
2815
+ customFields: z.ZodArray<z.ZodObject<{
2816
+ id: z.ZodString;
2817
+ createdAt: z.ZodDate;
2818
+ updatedAt: z.ZodDate;
2819
+ deletedAt: z.ZodNullable<z.ZodDate>;
2820
+ textValue: z.ZodNullable<z.ZodString>;
2821
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2822
+ numberValue: z.ZodNullable<z.ZodNumber>;
2823
+ dateValue: z.ZodNullable<z.ZodDate>;
2824
+ attribute: z.ZodObject<Omit<{
2825
+ id: z.ZodString;
2826
+ createdAt: z.ZodDate;
2827
+ updatedAt: z.ZodDate;
2828
+ deletedAt: z.ZodNullable<z.ZodDate>;
2829
+ systemName: z.ZodString;
2830
+ displayName: z.ZodString;
2831
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2832
+ position: z.ZodNumber;
2833
+ isDefault: z.ZodBoolean;
2834
+ isArchived: z.ZodBoolean;
2835
+ isRequired: z.ZodBoolean;
2836
+ isUnique: z.ZodBoolean;
2837
+ options: z.ZodArray<z.ZodObject<{
2838
+ position: z.ZodNumber;
2839
+ value: z.ZodString;
2840
+ label: z.ZodString;
2841
+ isDefault: z.ZodBoolean;
2842
+ id: z.ZodString;
2843
+ }, "strip", z.ZodTypeAny, {
2844
+ id: string;
2845
+ position: number;
2846
+ value: string;
2847
+ label: string;
2848
+ isDefault: boolean;
2849
+ }, {
2850
+ id: string;
2851
+ position: number;
2852
+ value: string;
2853
+ label: string;
2854
+ isDefault: boolean;
2855
+ }>, "many">;
2856
+ group: z.ZodObject<{
2857
+ id: z.ZodString;
2858
+ createdAt: z.ZodDate;
2859
+ updatedAt: z.ZodDate;
2860
+ deletedAt: z.ZodNullable<z.ZodDate>;
2861
+ systemName: z.ZodString;
2862
+ displayName: z.ZodString;
2863
+ }, "strip", z.ZodTypeAny, {
2864
+ id: string;
2865
+ createdAt: Date;
2866
+ updatedAt: Date;
2867
+ deletedAt: Date | null;
2868
+ systemName: string;
2869
+ displayName: string;
2870
+ }, {
2871
+ id: string;
2872
+ createdAt: Date;
2873
+ updatedAt: Date;
2874
+ deletedAt: Date | null;
2875
+ systemName: string;
2876
+ displayName: string;
2877
+ }>;
2878
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2879
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2880
+ id: string;
2881
+ position: number;
2882
+ createdAt: Date;
2883
+ updatedAt: Date;
2884
+ deletedAt: Date | null;
2885
+ isDefault: boolean;
2886
+ systemName: string;
2887
+ displayName: string;
2888
+ isArchived: boolean;
2889
+ isRequired: boolean;
2890
+ isUnique: boolean;
2891
+ }, {
2892
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2893
+ id: string;
2894
+ position: number;
2895
+ createdAt: Date;
2896
+ updatedAt: Date;
2897
+ deletedAt: Date | null;
2898
+ isDefault: boolean;
2899
+ systemName: string;
2900
+ displayName: string;
2901
+ isArchived: boolean;
2902
+ isRequired: boolean;
2903
+ isUnique: boolean;
2904
+ }>;
2905
+ uploads: z.ZodArray<z.ZodObject<{
2906
+ id: z.ZodString;
2907
+ createdAt: z.ZodDate;
2908
+ updatedAt: z.ZodDate;
2909
+ deletedAt: z.ZodNullable<z.ZodDate>;
2910
+ customFieldId: z.ZodString;
2911
+ upload: z.ZodObject<{
2912
+ id: z.ZodString;
2913
+ createdAt: z.ZodDate;
2914
+ updatedAt: z.ZodDate;
2915
+ deletedAt: z.ZodNullable<z.ZodDate>;
2916
+ bucketName: z.ZodString;
2917
+ fileName: z.ZodString;
2918
+ fileSize: z.ZodNumber;
2919
+ fileKey: z.ZodString;
2920
+ fileUrl: z.ZodNullable<z.ZodString>;
2921
+ }, "strip", z.ZodTypeAny, {
2922
+ id: string;
2923
+ createdAt: Date;
2924
+ updatedAt: Date;
2925
+ deletedAt: Date | null;
2926
+ fileName: string;
2927
+ fileKey: string;
2928
+ bucketName: string;
2929
+ fileSize: number;
2930
+ fileUrl: string | null;
2931
+ }, {
2932
+ id: string;
2933
+ createdAt: Date;
2934
+ updatedAt: Date;
2935
+ deletedAt: Date | null;
2936
+ fileName: string;
2937
+ fileKey: string;
2938
+ bucketName: string;
2939
+ fileSize: number;
2940
+ fileUrl: string | null;
2941
+ }>;
2942
+ }, "strip", z.ZodTypeAny, {
2943
+ id: string;
2944
+ createdAt: Date;
2945
+ updatedAt: Date;
2946
+ deletedAt: Date | null;
2947
+ customFieldId: string;
2948
+ upload: {
2949
+ id: string;
2950
+ createdAt: Date;
2951
+ updatedAt: Date;
2952
+ deletedAt: Date | null;
2953
+ fileName: string;
2954
+ fileKey: string;
2955
+ bucketName: string;
2956
+ fileSize: number;
2957
+ fileUrl: string | null;
2958
+ };
2959
+ }, {
2960
+ id: string;
2961
+ createdAt: Date;
2962
+ updatedAt: Date;
2963
+ deletedAt: Date | null;
2964
+ customFieldId: string;
2965
+ upload: {
2966
+ id: string;
2967
+ createdAt: Date;
2968
+ updatedAt: Date;
2969
+ deletedAt: Date | null;
2970
+ fileName: string;
2971
+ fileKey: string;
2972
+ bucketName: string;
2973
+ fileSize: number;
2974
+ fileUrl: string | null;
2975
+ };
2976
+ }>, "many">;
2977
+ }, "strip", z.ZodTypeAny, {
2978
+ id: string;
2979
+ createdAt: Date;
2980
+ updatedAt: Date;
2981
+ deletedAt: Date | null;
2982
+ attribute: {
2983
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2984
+ id: string;
2985
+ position: number;
2986
+ createdAt: Date;
2987
+ updatedAt: Date;
2988
+ deletedAt: Date | null;
2989
+ isDefault: boolean;
2990
+ systemName: string;
2991
+ displayName: string;
2992
+ isArchived: boolean;
2993
+ isRequired: boolean;
2994
+ isUnique: boolean;
2995
+ };
2996
+ textValue: string | null;
2997
+ booleanValue: boolean | null;
2998
+ numberValue: number | null;
2999
+ dateValue: Date | null;
3000
+ uploads: {
3001
+ id: string;
3002
+ createdAt: Date;
3003
+ updatedAt: Date;
3004
+ deletedAt: Date | null;
3005
+ customFieldId: string;
3006
+ upload: {
3007
+ id: string;
3008
+ createdAt: Date;
3009
+ updatedAt: Date;
3010
+ deletedAt: Date | null;
3011
+ fileName: string;
3012
+ fileKey: string;
3013
+ bucketName: string;
3014
+ fileSize: number;
3015
+ fileUrl: string | null;
3016
+ };
3017
+ }[];
3018
+ }, {
3019
+ id: string;
3020
+ createdAt: Date;
3021
+ updatedAt: Date;
3022
+ deletedAt: Date | null;
3023
+ attribute: {
3024
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3025
+ id: string;
3026
+ position: number;
3027
+ createdAt: Date;
3028
+ updatedAt: Date;
3029
+ deletedAt: Date | null;
3030
+ isDefault: boolean;
3031
+ systemName: string;
3032
+ displayName: string;
3033
+ isArchived: boolean;
3034
+ isRequired: boolean;
3035
+ isUnique: boolean;
3036
+ };
3037
+ textValue: string | null;
3038
+ booleanValue: boolean | null;
3039
+ numberValue: number | null;
3040
+ dateValue: Date | null;
3041
+ uploads: {
3042
+ id: string;
3043
+ createdAt: Date;
3044
+ updatedAt: Date;
3045
+ deletedAt: Date | null;
3046
+ customFieldId: string;
3047
+ upload: {
3048
+ id: string;
3049
+ createdAt: Date;
3050
+ updatedAt: Date;
3051
+ deletedAt: Date | null;
3052
+ fileName: string;
3053
+ fileKey: string;
3054
+ bucketName: string;
3055
+ fileSize: number;
3056
+ fileUrl: string | null;
3057
+ };
3058
+ }[];
3059
+ }>, "many">;
3060
+ contactEmails: z.ZodArray<z.ZodObject<{
3061
+ id: z.ZodString;
3062
+ createdAt: z.ZodDate;
3063
+ updatedAt: z.ZodDate;
3064
+ deletedAt: z.ZodNullable<z.ZodDate>;
3065
+ email: z.ZodString;
3066
+ isPrimary: z.ZodBoolean;
3067
+ }, "strip", z.ZodTypeAny, {
3068
+ id: string;
3069
+ isPrimary: boolean;
3070
+ email: string;
3071
+ createdAt: Date;
3072
+ updatedAt: Date;
3073
+ deletedAt: Date | null;
3074
+ }, {
3075
+ id: string;
3076
+ isPrimary: boolean;
3077
+ email: string;
3078
+ createdAt: Date;
3079
+ updatedAt: Date;
3080
+ deletedAt: Date | null;
3081
+ }>, "many">;
3082
+ contactPhones: z.ZodArray<z.ZodObject<{
3083
+ id: z.ZodString;
3084
+ createdAt: z.ZodDate;
3085
+ updatedAt: z.ZodDate;
3086
+ deletedAt: z.ZodNullable<z.ZodDate>;
3087
+ phone: z.ZodString;
3088
+ isPrimary: z.ZodBoolean;
3089
+ }, "strip", z.ZodTypeAny, {
3090
+ id: string;
3091
+ isPrimary: boolean;
3092
+ createdAt: Date;
3093
+ updatedAt: Date;
3094
+ deletedAt: Date | null;
3095
+ phone: string;
3096
+ }, {
3097
+ id: string;
3098
+ isPrimary: boolean;
3099
+ createdAt: Date;
3100
+ updatedAt: Date;
3101
+ deletedAt: Date | null;
3102
+ phone: string;
3103
+ }>, "many">;
3104
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3105
+ id: z.ZodString;
3106
+ createdAt: z.ZodDate;
3107
+ updatedAt: z.ZodDate;
3108
+ deletedAt: z.ZodNullable<z.ZodDate>;
3109
+ entityId: z.ZodString;
3110
+ description: z.ZodString;
3111
+ entityType: z.ZodObject<{
3112
+ id: z.ZodString;
3113
+ createdAt: z.ZodDate;
3114
+ updatedAt: z.ZodDate;
3115
+ deletedAt: z.ZodNullable<z.ZodDate>;
3116
+ entity: z.ZodString;
3117
+ description: z.ZodNullable<z.ZodString>;
3118
+ }, "strip", z.ZodTypeAny, {
3119
+ id: string;
3120
+ description: string | null;
3121
+ createdAt: Date;
3122
+ updatedAt: Date;
3123
+ deletedAt: Date | null;
3124
+ entity: string;
3125
+ }, {
3126
+ id: string;
3127
+ description: string | null;
3128
+ createdAt: Date;
3129
+ updatedAt: Date;
3130
+ deletedAt: Date | null;
3131
+ entity: string;
3132
+ }>;
3133
+ }, "strip", z.ZodTypeAny, {
3134
+ id: string;
3135
+ description: string;
3136
+ createdAt: Date;
3137
+ updatedAt: Date;
3138
+ deletedAt: Date | null;
3139
+ entityId: string;
3140
+ entityType: {
3141
+ id: string;
3142
+ description: string | null;
3143
+ createdAt: Date;
3144
+ updatedAt: Date;
3145
+ deletedAt: Date | null;
3146
+ entity: string;
3147
+ };
3148
+ }, {
3149
+ id: string;
3150
+ description: string;
3151
+ createdAt: Date;
3152
+ updatedAt: Date;
3153
+ deletedAt: Date | null;
3154
+ entityId: string;
3155
+ entityType: {
3156
+ id: string;
3157
+ description: string | null;
3158
+ createdAt: Date;
3159
+ updatedAt: Date;
3160
+ deletedAt: Date | null;
3161
+ entity: string;
3162
+ };
3163
+ }>, "many">>;
3164
+ }, "strip", z.ZodTypeAny, {
3165
+ id: string;
3166
+ channel: string | null;
3167
+ address: string | null;
3168
+ name: string;
3169
+ createdAt: Date;
3170
+ updatedAt: Date;
3171
+ deletedAt: Date | null;
3172
+ customFields: {
3173
+ id: string;
3174
+ createdAt: Date;
3175
+ updatedAt: Date;
3176
+ deletedAt: Date | null;
3177
+ attribute: {
3178
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3179
+ id: string;
3180
+ position: number;
3181
+ createdAt: Date;
3182
+ updatedAt: Date;
3183
+ deletedAt: Date | null;
3184
+ isDefault: boolean;
3185
+ systemName: string;
3186
+ displayName: string;
3187
+ isArchived: boolean;
3188
+ isRequired: boolean;
3189
+ isUnique: boolean;
3190
+ };
3191
+ textValue: string | null;
3192
+ booleanValue: boolean | null;
3193
+ numberValue: number | null;
3194
+ dateValue: Date | null;
3195
+ uploads: {
3196
+ id: string;
3197
+ createdAt: Date;
3198
+ updatedAt: Date;
3199
+ deletedAt: Date | null;
3200
+ customFieldId: string;
3201
+ upload: {
3202
+ id: string;
3203
+ createdAt: Date;
3204
+ updatedAt: Date;
3205
+ deletedAt: Date | null;
3206
+ fileName: string;
3207
+ fileKey: string;
3208
+ bucketName: string;
3209
+ fileSize: number;
3210
+ fileUrl: string | null;
3211
+ };
3212
+ }[];
3213
+ }[];
3214
+ notes: string | null;
3215
+ contactProfile: string | null;
3216
+ socialProfileUrl: string | null;
3217
+ tags: {
3218
+ id: string;
3219
+ name: string;
3220
+ createdAt: Date;
3221
+ updatedAt: Date;
3222
+ deletedAt: Date | null;
3223
+ }[];
3224
+ company: {
3225
+ id: string;
3226
+ createdAt: Date;
3227
+ updatedAt: Date;
3228
+ deletedAt: Date | null;
3229
+ address?: string | null | undefined;
3230
+ name?: string | undefined;
3231
+ phone?: string | null | undefined;
3232
+ industry?: string | null | undefined;
3233
+ } | null;
3234
+ contactEmails: {
3235
+ id: string;
3236
+ isPrimary: boolean;
3237
+ email: string;
3238
+ createdAt: Date;
3239
+ updatedAt: Date;
3240
+ deletedAt: Date | null;
3241
+ }[];
3242
+ contactPhones: {
3243
+ id: string;
3244
+ isPrimary: boolean;
3245
+ createdAt: Date;
3246
+ updatedAt: Date;
3247
+ deletedAt: Date | null;
3248
+ phone: string;
3249
+ }[];
3250
+ activityLogs?: {
3251
+ id: string;
3252
+ description: string;
3253
+ createdAt: Date;
3254
+ updatedAt: Date;
3255
+ deletedAt: Date | null;
3256
+ entityId: string;
3257
+ entityType: {
3258
+ id: string;
3259
+ description: string | null;
3260
+ createdAt: Date;
3261
+ updatedAt: Date;
3262
+ deletedAt: Date | null;
3263
+ entity: string;
3264
+ };
3265
+ }[] | undefined;
3266
+ }, {
3267
+ id: string;
3268
+ channel: string | null;
3269
+ address: string | null;
3270
+ name: string;
3271
+ createdAt: Date;
3272
+ updatedAt: Date;
3273
+ deletedAt: Date | null;
3274
+ customFields: {
3275
+ id: string;
3276
+ createdAt: Date;
3277
+ updatedAt: Date;
3278
+ deletedAt: Date | null;
3279
+ attribute: {
3280
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3281
+ id: string;
3282
+ position: number;
3283
+ createdAt: Date;
3284
+ updatedAt: Date;
3285
+ deletedAt: Date | null;
3286
+ isDefault: boolean;
3287
+ systemName: string;
3288
+ displayName: string;
3289
+ isArchived: boolean;
3290
+ isRequired: boolean;
3291
+ isUnique: boolean;
3292
+ };
3293
+ textValue: string | null;
3294
+ booleanValue: boolean | null;
3295
+ numberValue: number | null;
3296
+ dateValue: Date | null;
3297
+ uploads: {
3298
+ id: string;
3299
+ createdAt: Date;
3300
+ updatedAt: Date;
3301
+ deletedAt: Date | null;
3302
+ customFieldId: string;
3303
+ upload: {
3304
+ id: string;
3305
+ createdAt: Date;
3306
+ updatedAt: Date;
3307
+ deletedAt: Date | null;
3308
+ fileName: string;
3309
+ fileKey: string;
3310
+ bucketName: string;
3311
+ fileSize: number;
3312
+ fileUrl: string | null;
3313
+ };
3314
+ }[];
3315
+ }[];
3316
+ notes: string | null;
3317
+ contactProfile: string | null;
3318
+ socialProfileUrl: string | null;
3319
+ tags: {
3320
+ id: string;
3321
+ name: string;
3322
+ createdAt: Date;
3323
+ updatedAt: Date;
3324
+ deletedAt: Date | null;
3325
+ }[];
3326
+ company: {
3327
+ id: string;
3328
+ createdAt: Date;
3329
+ updatedAt: Date;
3330
+ deletedAt: Date | null;
3331
+ address?: string | null | undefined;
3332
+ name?: string | undefined;
3333
+ phone?: string | null | undefined;
3334
+ industry?: string | null | undefined;
3335
+ } | null;
3336
+ contactEmails: {
3337
+ id: string;
3338
+ isPrimary: boolean;
3339
+ email: string;
3340
+ createdAt: Date;
3341
+ updatedAt: Date;
3342
+ deletedAt: Date | null;
3343
+ }[];
3344
+ contactPhones: {
3345
+ id: string;
3346
+ isPrimary: boolean;
3347
+ createdAt: Date;
3348
+ updatedAt: Date;
3349
+ deletedAt: Date | null;
3350
+ phone: string;
3351
+ }[];
3352
+ activityLogs?: {
3353
+ id: string;
3354
+ description: string;
3355
+ createdAt: Date;
3356
+ updatedAt: Date;
3357
+ deletedAt: Date | null;
3358
+ entityId: string;
3359
+ entityType: {
3360
+ id: string;
3361
+ description: string | null;
3362
+ createdAt: Date;
3363
+ updatedAt: Date;
3364
+ deletedAt: Date | null;
3365
+ entity: string;
3366
+ };
3367
+ }[] | undefined;
3368
+ }>>;
3369
+ telephonyQueue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3370
+ id: z.ZodString;
3371
+ createdAt: z.ZodDate;
3372
+ updatedAt: z.ZodDate;
3373
+ deletedAt: z.ZodNullable<z.ZodDate>;
3374
+ queueId: z.ZodNumber;
3375
+ queueName: z.ZodString;
3376
+ queueNumber: z.ZodString;
3377
+ maximumWaitingTime: z.ZodNumber;
3378
+ }, "strip", z.ZodTypeAny, {
3379
+ id: string;
3380
+ createdAt: Date;
3381
+ updatedAt: Date;
3382
+ deletedAt: Date | null;
3383
+ queueId: number;
3384
+ queueName: string;
3385
+ queueNumber: string;
3386
+ maximumWaitingTime: number;
3387
+ }, {
3388
+ id: string;
3389
+ createdAt: Date;
3390
+ updatedAt: Date;
3391
+ deletedAt: Date | null;
3392
+ queueId: number;
3393
+ queueName: string;
3394
+ queueNumber: string;
3395
+ maximumWaitingTime: number;
3396
+ }>>>;
3397
+ pinCode: z.ZodNullable<z.ZodString>;
3398
+ status: z.ZodString;
3399
+ type: z.ZodString;
3400
+ recording: z.ZodNullable<z.ZodString>;
3401
+ didNumber: z.ZodNullable<z.ZodString>;
3402
+ agentRingTime: z.ZodNullable<z.ZodNumber>;
3403
+ uploadId: z.ZodNullable<z.ZodString>;
3404
+ upload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3405
+ id: z.ZodString;
3406
+ createdAt: z.ZodDate;
3407
+ updatedAt: z.ZodDate;
3408
+ deletedAt: z.ZodNullable<z.ZodDate>;
3409
+ bucketName: z.ZodString;
3410
+ fileName: z.ZodString;
3411
+ fileSize: z.ZodNumber;
3412
+ fileKey: z.ZodString;
3413
+ fileUrl: z.ZodNullable<z.ZodString>;
3414
+ }, "strip", z.ZodTypeAny, {
3415
+ id: string;
3416
+ createdAt: Date;
3417
+ updatedAt: Date;
3418
+ deletedAt: Date | null;
3419
+ fileName: string;
3420
+ fileKey: string;
3421
+ bucketName: string;
3422
+ fileSize: number;
3423
+ fileUrl: string | null;
3424
+ }, {
3425
+ id: string;
3426
+ createdAt: Date;
3427
+ updatedAt: Date;
3428
+ deletedAt: Date | null;
3429
+ fileName: string;
3430
+ fileKey: string;
3431
+ bucketName: string;
3432
+ fileSize: number;
3433
+ fileUrl: string | null;
3434
+ }>>>;
3435
+ serialNumber: z.ZodNullable<z.ZodString>;
3436
+ extensionId: z.ZodNullable<z.ZodString>;
3437
+ extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3438
+ id: z.ZodString;
3439
+ createdAt: z.ZodDate;
3440
+ updatedAt: z.ZodDate;
3441
+ deletedAt: z.ZodNullable<z.ZodDate>;
3442
+ userId: z.ZodNullable<z.ZodString>;
3443
+ sipServerUrl: z.ZodString;
3444
+ sipUserName: z.ZodString;
3445
+ webphoneLoginUser: z.ZodString;
3446
+ extensionId: z.ZodNumber;
3447
+ extensionName: z.ZodString;
3448
+ telephonySignature: z.ZodNullable<z.ZodString>;
3449
+ }, "strip", z.ZodTypeAny, {
3450
+ id: string;
3451
+ createdAt: Date;
3452
+ updatedAt: Date;
3453
+ deletedAt: Date | null;
3454
+ userId: string | null;
3455
+ sipServerUrl: string;
3456
+ sipUserName: string;
3457
+ webphoneLoginUser: string;
3458
+ extensionId: number;
3459
+ extensionName: string;
3460
+ telephonySignature: string | null;
3461
+ }, {
3462
+ id: string;
3463
+ createdAt: Date;
3464
+ updatedAt: Date;
3465
+ deletedAt: Date | null;
3466
+ userId: string | null;
3467
+ sipServerUrl: string;
3468
+ sipUserName: string;
3469
+ webphoneLoginUser: string;
3470
+ extensionId: number;
3471
+ extensionName: string;
3472
+ telephonySignature: string | null;
3473
+ }>>>;
3474
+ telephonyQueueId: z.ZodNullable<z.ZodString>;
3475
+ contactId: z.ZodNullable<z.ZodString>;
3476
+ }, "strip", z.ZodTypeAny, {
3477
+ type: string;
3478
+ id: string;
3479
+ recording: string | null;
3480
+ status: string;
3481
+ createdAt: Date;
3482
+ updatedAt: Date;
3483
+ deletedAt: Date | null;
3484
+ extensionId: string | null;
3485
+ uniqueCallId: string;
3486
+ timeStart: string;
3487
+ callFrom: string;
3488
+ callTo: string;
3489
+ callDuration: number | null;
3490
+ talkDuration: number | null;
3491
+ srcTrunkName: string | null;
3492
+ dstTrunkName: string | null;
3493
+ pinCode: string | null;
3494
+ didNumber: string | null;
3495
+ agentRingTime: number | null;
3496
+ uploadId: string | null;
3497
+ serialNumber: string | null;
3498
+ telephonyQueueId: string | null;
3499
+ contactId: string | null;
3500
+ contact?: {
3501
+ id: string;
3502
+ channel: string | null;
3503
+ address: string | null;
3504
+ name: string;
3505
+ createdAt: Date;
3506
+ updatedAt: Date;
3507
+ deletedAt: Date | null;
3508
+ customFields: {
3509
+ id: string;
3510
+ createdAt: Date;
3511
+ updatedAt: Date;
3512
+ deletedAt: Date | null;
3513
+ attribute: {
3514
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3515
+ id: string;
3516
+ position: number;
3517
+ createdAt: Date;
3518
+ updatedAt: Date;
3519
+ deletedAt: Date | null;
3520
+ isDefault: boolean;
3521
+ systemName: string;
3522
+ displayName: string;
3523
+ isArchived: boolean;
3524
+ isRequired: boolean;
3525
+ isUnique: boolean;
3526
+ };
3527
+ textValue: string | null;
3528
+ booleanValue: boolean | null;
3529
+ numberValue: number | null;
3530
+ dateValue: Date | null;
3531
+ uploads: {
3532
+ id: string;
3533
+ createdAt: Date;
3534
+ updatedAt: Date;
3535
+ deletedAt: Date | null;
3536
+ customFieldId: string;
3537
+ upload: {
3538
+ id: string;
3539
+ createdAt: Date;
3540
+ updatedAt: Date;
3541
+ deletedAt: Date | null;
3542
+ fileName: string;
3543
+ fileKey: string;
3544
+ bucketName: string;
3545
+ fileSize: number;
3546
+ fileUrl: string | null;
3547
+ };
3548
+ }[];
3549
+ }[];
3550
+ notes: string | null;
3551
+ contactProfile: string | null;
3552
+ socialProfileUrl: string | null;
3553
+ tags: {
3554
+ id: string;
3555
+ name: string;
3556
+ createdAt: Date;
3557
+ updatedAt: Date;
3558
+ deletedAt: Date | null;
3559
+ }[];
3560
+ company: {
3561
+ id: string;
3562
+ createdAt: Date;
3563
+ updatedAt: Date;
3564
+ deletedAt: Date | null;
3565
+ address?: string | null | undefined;
3566
+ name?: string | undefined;
3567
+ phone?: string | null | undefined;
3568
+ industry?: string | null | undefined;
3569
+ } | null;
3570
+ contactEmails: {
3571
+ id: string;
3572
+ isPrimary: boolean;
3573
+ email: string;
3574
+ createdAt: Date;
3575
+ updatedAt: Date;
3576
+ deletedAt: Date | null;
3577
+ }[];
3578
+ contactPhones: {
3579
+ id: string;
3580
+ isPrimary: boolean;
3581
+ createdAt: Date;
3582
+ updatedAt: Date;
3583
+ deletedAt: Date | null;
3584
+ phone: string;
3585
+ }[];
3586
+ activityLogs?: {
3587
+ id: string;
3588
+ description: string;
3589
+ createdAt: Date;
3590
+ updatedAt: Date;
3591
+ deletedAt: Date | null;
3592
+ entityId: string;
3593
+ entityType: {
3594
+ id: string;
3595
+ description: string | null;
3596
+ createdAt: Date;
3597
+ updatedAt: Date;
3598
+ deletedAt: Date | null;
3599
+ entity: string;
3600
+ };
3601
+ }[] | undefined;
3602
+ } | undefined;
3603
+ telephonyQueue?: {
3604
+ id: string;
3605
+ createdAt: Date;
3606
+ updatedAt: Date;
3607
+ deletedAt: Date | null;
3608
+ queueId: number;
3609
+ queueName: string;
3610
+ queueNumber: string;
3611
+ maximumWaitingTime: number;
3612
+ } | null | undefined;
3613
+ upload?: {
3614
+ id: string;
3615
+ createdAt: Date;
3616
+ updatedAt: Date;
3617
+ deletedAt: Date | null;
3618
+ fileName: string;
3619
+ fileKey: string;
3620
+ bucketName: string;
3621
+ fileSize: number;
3622
+ fileUrl: string | null;
3623
+ } | null | undefined;
3624
+ extension?: {
3625
+ id: string;
3626
+ createdAt: Date;
3627
+ updatedAt: Date;
3628
+ deletedAt: Date | null;
3629
+ userId: string | null;
3630
+ sipServerUrl: string;
3631
+ sipUserName: string;
3632
+ webphoneLoginUser: string;
3633
+ extensionId: number;
3634
+ extensionName: string;
3635
+ telephonySignature: string | null;
3636
+ } | null | undefined;
3637
+ }, {
3638
+ type: string;
3639
+ id: string;
3640
+ recording: string | null;
3641
+ status: string;
3642
+ createdAt: Date;
3643
+ updatedAt: Date;
3644
+ deletedAt: Date | null;
3645
+ extensionId: string | null;
3646
+ uniqueCallId: string;
3647
+ timeStart: string;
3648
+ callFrom: string;
3649
+ callTo: string;
3650
+ callDuration: number | null;
3651
+ talkDuration: number | null;
3652
+ srcTrunkName: string | null;
3653
+ dstTrunkName: string | null;
3654
+ pinCode: string | null;
3655
+ didNumber: string | null;
3656
+ agentRingTime: number | null;
3657
+ uploadId: string | null;
3658
+ serialNumber: string | null;
3659
+ telephonyQueueId: string | null;
3660
+ contactId: string | null;
3661
+ contact?: {
3662
+ id: string;
3663
+ channel: string | null;
3664
+ address: string | null;
3665
+ name: string;
3666
+ createdAt: Date;
3667
+ updatedAt: Date;
3668
+ deletedAt: Date | null;
3669
+ customFields: {
3670
+ id: string;
3671
+ createdAt: Date;
3672
+ updatedAt: Date;
3673
+ deletedAt: Date | null;
3674
+ attribute: {
3675
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3676
+ id: string;
3677
+ position: number;
3678
+ createdAt: Date;
3679
+ updatedAt: Date;
3680
+ deletedAt: Date | null;
3681
+ isDefault: boolean;
3682
+ systemName: string;
3683
+ displayName: string;
3684
+ isArchived: boolean;
3685
+ isRequired: boolean;
3686
+ isUnique: boolean;
3687
+ };
3688
+ textValue: string | null;
3689
+ booleanValue: boolean | null;
3690
+ numberValue: number | null;
3691
+ dateValue: Date | null;
3692
+ uploads: {
3693
+ id: string;
3694
+ createdAt: Date;
3695
+ updatedAt: Date;
3696
+ deletedAt: Date | null;
3697
+ customFieldId: string;
3698
+ upload: {
3699
+ id: string;
3700
+ createdAt: Date;
3701
+ updatedAt: Date;
3702
+ deletedAt: Date | null;
3703
+ fileName: string;
3704
+ fileKey: string;
3705
+ bucketName: string;
3706
+ fileSize: number;
3707
+ fileUrl: string | null;
3708
+ };
3709
+ }[];
3710
+ }[];
3711
+ notes: string | null;
3712
+ contactProfile: string | null;
3713
+ socialProfileUrl: string | null;
3714
+ tags: {
3715
+ id: string;
3716
+ name: string;
3717
+ createdAt: Date;
3718
+ updatedAt: Date;
3719
+ deletedAt: Date | null;
3720
+ }[];
3721
+ company: {
3722
+ id: string;
3723
+ createdAt: Date;
3724
+ updatedAt: Date;
3725
+ deletedAt: Date | null;
3726
+ address?: string | null | undefined;
3727
+ name?: string | undefined;
3728
+ phone?: string | null | undefined;
3729
+ industry?: string | null | undefined;
3730
+ } | null;
3731
+ contactEmails: {
3732
+ id: string;
3733
+ isPrimary: boolean;
3734
+ email: string;
3735
+ createdAt: Date;
3736
+ updatedAt: Date;
3737
+ deletedAt: Date | null;
3738
+ }[];
3739
+ contactPhones: {
3740
+ id: string;
3741
+ isPrimary: boolean;
3742
+ createdAt: Date;
3743
+ updatedAt: Date;
3744
+ deletedAt: Date | null;
3745
+ phone: string;
3746
+ }[];
3747
+ activityLogs?: {
3748
+ id: string;
3749
+ description: string;
3750
+ createdAt: Date;
3751
+ updatedAt: Date;
3752
+ deletedAt: Date | null;
3753
+ entityId: string;
3754
+ entityType: {
3755
+ id: string;
3756
+ description: string | null;
3757
+ createdAt: Date;
3758
+ updatedAt: Date;
3759
+ deletedAt: Date | null;
3760
+ entity: string;
3761
+ };
3762
+ }[] | undefined;
3763
+ } | undefined;
3764
+ telephonyQueue?: {
3765
+ id: string;
3766
+ createdAt: Date;
3767
+ updatedAt: Date;
3768
+ deletedAt: Date | null;
3769
+ queueId: number;
3770
+ queueName: string;
3771
+ queueNumber: string;
3772
+ maximumWaitingTime: number;
3773
+ } | null | undefined;
3774
+ upload?: {
3775
+ id: string;
3776
+ createdAt: Date;
3777
+ updatedAt: Date;
3778
+ deletedAt: Date | null;
3779
+ fileName: string;
3780
+ fileKey: string;
3781
+ bucketName: string;
3782
+ fileSize: number;
3783
+ fileUrl: string | null;
3784
+ } | null | undefined;
3785
+ extension?: {
3786
+ id: string;
3787
+ createdAt: Date;
3788
+ updatedAt: Date;
3789
+ deletedAt: Date | null;
3790
+ userId: string | null;
3791
+ sipServerUrl: string;
3792
+ sipUserName: string;
3793
+ webphoneLoginUser: string;
3794
+ extensionId: number;
3795
+ extensionName: string;
3796
+ telephonySignature: string | null;
3797
+ } | null | undefined;
3798
+ }>>;
3799
+ queue: z.ZodNullable<z.ZodObject<{
3800
+ queueName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3801
+ }, "strip", z.ZodTypeAny, {
3802
+ queueName?: string | null | undefined;
3803
+ }, {
3804
+ queueName?: string | null | undefined;
3805
+ }>>;
3806
+ contact: z.ZodNullable<z.ZodObject<{
3807
+ id: z.ZodString;
3808
+ createdAt: z.ZodDate;
3809
+ updatedAt: z.ZodDate;
3810
+ deletedAt: z.ZodNullable<z.ZodDate>;
3811
+ name: z.ZodString;
3812
+ address: z.ZodNullable<z.ZodString>;
3813
+ channel: z.ZodNullable<z.ZodString>;
3814
+ notes: z.ZodNullable<z.ZodString>;
3815
+ contactProfile: z.ZodNullable<z.ZodString>;
3816
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
3817
+ tags: z.ZodArray<z.ZodObject<{
3818
+ id: z.ZodString;
3819
+ createdAt: z.ZodDate;
3820
+ updatedAt: z.ZodDate;
3821
+ deletedAt: z.ZodNullable<z.ZodDate>;
3822
+ name: z.ZodString;
3823
+ }, "strip", z.ZodTypeAny, {
3824
+ id: string;
3825
+ name: string;
3826
+ createdAt: Date;
3827
+ updatedAt: Date;
3828
+ deletedAt: Date | null;
3829
+ }, {
3830
+ id: string;
3831
+ name: string;
3832
+ createdAt: Date;
3833
+ updatedAt: Date;
3834
+ deletedAt: Date | null;
3835
+ }>, "many">;
3836
+ company: z.ZodNullable<z.ZodObject<Omit<{
3837
+ id: z.ZodString;
3838
+ createdAt: z.ZodDate;
3839
+ updatedAt: z.ZodDate;
3840
+ deletedAt: z.ZodNullable<z.ZodDate>;
3841
+ name: z.ZodOptional<z.ZodString>;
3842
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3843
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3844
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3845
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3846
+ id: z.ZodString;
3847
+ createdAt: z.ZodDate;
3848
+ updatedAt: z.ZodDate;
3849
+ deletedAt: z.ZodNullable<z.ZodDate>;
3850
+ textValue: z.ZodNullable<z.ZodString>;
3851
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
3852
+ numberValue: z.ZodNullable<z.ZodNumber>;
3853
+ dateValue: z.ZodNullable<z.ZodDate>;
3854
+ attribute: z.ZodObject<Omit<{
3855
+ id: z.ZodString;
3856
+ createdAt: z.ZodDate;
3857
+ updatedAt: z.ZodDate;
3858
+ deletedAt: z.ZodNullable<z.ZodDate>;
3859
+ systemName: z.ZodString;
3860
+ displayName: z.ZodString;
3861
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
3862
+ position: z.ZodNumber;
3863
+ isDefault: z.ZodBoolean;
3864
+ isArchived: z.ZodBoolean;
3865
+ isRequired: z.ZodBoolean;
3866
+ isUnique: z.ZodBoolean;
3867
+ options: z.ZodArray<z.ZodObject<{
3868
+ position: z.ZodNumber;
3869
+ value: z.ZodString;
3870
+ label: z.ZodString;
3871
+ isDefault: z.ZodBoolean;
3872
+ id: z.ZodString;
3873
+ }, "strip", z.ZodTypeAny, {
3874
+ id: string;
3875
+ position: number;
3876
+ value: string;
3877
+ label: string;
3878
+ isDefault: boolean;
3879
+ }, {
3880
+ id: string;
3881
+ position: number;
3882
+ value: string;
3883
+ label: string;
3884
+ isDefault: boolean;
3885
+ }>, "many">;
3886
+ group: z.ZodObject<{
3887
+ id: z.ZodString;
3888
+ createdAt: z.ZodDate;
3889
+ updatedAt: z.ZodDate;
3890
+ deletedAt: z.ZodNullable<z.ZodDate>;
3891
+ systemName: z.ZodString;
3892
+ displayName: z.ZodString;
3893
+ }, "strip", z.ZodTypeAny, {
3894
+ id: string;
3895
+ createdAt: Date;
3896
+ updatedAt: Date;
3897
+ deletedAt: Date | null;
3898
+ systemName: string;
3899
+ displayName: string;
3900
+ }, {
3901
+ id: string;
3902
+ createdAt: Date;
3903
+ updatedAt: Date;
3904
+ deletedAt: Date | null;
3905
+ systemName: string;
3906
+ displayName: string;
3907
+ }>;
3908
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
3909
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3910
+ id: string;
3911
+ position: number;
3912
+ createdAt: Date;
3913
+ updatedAt: Date;
3914
+ deletedAt: Date | null;
3915
+ isDefault: boolean;
3916
+ systemName: string;
3917
+ displayName: string;
3918
+ isArchived: boolean;
3919
+ isRequired: boolean;
3920
+ isUnique: boolean;
3921
+ }, {
3922
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3923
+ id: string;
3924
+ position: number;
3925
+ createdAt: Date;
3926
+ updatedAt: Date;
3927
+ deletedAt: Date | null;
3928
+ isDefault: boolean;
3929
+ systemName: string;
3930
+ displayName: string;
3931
+ isArchived: boolean;
3932
+ isRequired: boolean;
3933
+ isUnique: boolean;
2868
3934
  }>;
2869
3935
  }, "strip", z.ZodTypeAny, {
2870
3936
  id: string;
@@ -4143,6 +5209,119 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
4143
5209
  serialNumber: string | null;
4144
5210
  telephonyQueueId: string | null;
4145
5211
  contactId: string | null;
5212
+ contact?: {
5213
+ id: string;
5214
+ channel: string | null;
5215
+ address: string | null;
5216
+ name: string;
5217
+ createdAt: Date;
5218
+ updatedAt: Date;
5219
+ deletedAt: Date | null;
5220
+ customFields: {
5221
+ id: string;
5222
+ createdAt: Date;
5223
+ updatedAt: Date;
5224
+ deletedAt: Date | null;
5225
+ attribute: {
5226
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5227
+ id: string;
5228
+ position: number;
5229
+ createdAt: Date;
5230
+ updatedAt: Date;
5231
+ deletedAt: Date | null;
5232
+ isDefault: boolean;
5233
+ systemName: string;
5234
+ displayName: string;
5235
+ isArchived: boolean;
5236
+ isRequired: boolean;
5237
+ isUnique: boolean;
5238
+ };
5239
+ textValue: string | null;
5240
+ booleanValue: boolean | null;
5241
+ numberValue: number | null;
5242
+ dateValue: Date | null;
5243
+ uploads: {
5244
+ id: string;
5245
+ createdAt: Date;
5246
+ updatedAt: Date;
5247
+ deletedAt: Date | null;
5248
+ customFieldId: string;
5249
+ upload: {
5250
+ id: string;
5251
+ createdAt: Date;
5252
+ updatedAt: Date;
5253
+ deletedAt: Date | null;
5254
+ fileName: string;
5255
+ fileKey: string;
5256
+ bucketName: string;
5257
+ fileSize: number;
5258
+ fileUrl: string | null;
5259
+ };
5260
+ }[];
5261
+ }[];
5262
+ notes: string | null;
5263
+ contactProfile: string | null;
5264
+ socialProfileUrl: string | null;
5265
+ tags: {
5266
+ id: string;
5267
+ name: string;
5268
+ createdAt: Date;
5269
+ updatedAt: Date;
5270
+ deletedAt: Date | null;
5271
+ }[];
5272
+ company: {
5273
+ id: string;
5274
+ createdAt: Date;
5275
+ updatedAt: Date;
5276
+ deletedAt: Date | null;
5277
+ address?: string | null | undefined;
5278
+ name?: string | undefined;
5279
+ phone?: string | null | undefined;
5280
+ industry?: string | null | undefined;
5281
+ } | null;
5282
+ contactEmails: {
5283
+ id: string;
5284
+ isPrimary: boolean;
5285
+ email: string;
5286
+ createdAt: Date;
5287
+ updatedAt: Date;
5288
+ deletedAt: Date | null;
5289
+ }[];
5290
+ contactPhones: {
5291
+ id: string;
5292
+ isPrimary: boolean;
5293
+ createdAt: Date;
5294
+ updatedAt: Date;
5295
+ deletedAt: Date | null;
5296
+ phone: string;
5297
+ }[];
5298
+ activityLogs?: {
5299
+ id: string;
5300
+ description: string;
5301
+ createdAt: Date;
5302
+ updatedAt: Date;
5303
+ deletedAt: Date | null;
5304
+ entityId: string;
5305
+ entityType: {
5306
+ id: string;
5307
+ description: string | null;
5308
+ createdAt: Date;
5309
+ updatedAt: Date;
5310
+ deletedAt: Date | null;
5311
+ entity: string;
5312
+ };
5313
+ }[] | undefined;
5314
+ } | undefined;
5315
+ telephonyQueue?: {
5316
+ id: string;
5317
+ createdAt: Date;
5318
+ updatedAt: Date;
5319
+ deletedAt: Date | null;
5320
+ queueId: number;
5321
+ queueName: string;
5322
+ queueNumber: string;
5323
+ maximumWaitingTime: number;
5324
+ } | null | undefined;
4146
5325
  upload?: {
4147
5326
  id: string;
4148
5327
  createdAt: Date;
@@ -4153,7 +5332,20 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
4153
5332
  bucketName: string;
4154
5333
  fileSize: number;
4155
5334
  fileUrl: string | null;
4156
- } | undefined;
5335
+ } | null | undefined;
5336
+ extension?: {
5337
+ id: string;
5338
+ createdAt: Date;
5339
+ updatedAt: Date;
5340
+ deletedAt: Date | null;
5341
+ userId: string | null;
5342
+ sipServerUrl: string;
5343
+ sipUserName: string;
5344
+ webphoneLoginUser: string;
5345
+ extensionId: number;
5346
+ extensionName: string;
5347
+ telephonySignature: string | null;
5348
+ } | null | undefined;
4157
5349
  } | null;
4158
5350
  queue: {
4159
5351
  queueName?: string | null | undefined;
@@ -4655,6 +5847,119 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
4655
5847
  serialNumber: string | null;
4656
5848
  telephonyQueueId: string | null;
4657
5849
  contactId: string | null;
5850
+ contact?: {
5851
+ id: string;
5852
+ channel: string | null;
5853
+ address: string | null;
5854
+ name: string;
5855
+ createdAt: Date;
5856
+ updatedAt: Date;
5857
+ deletedAt: Date | null;
5858
+ customFields: {
5859
+ id: string;
5860
+ createdAt: Date;
5861
+ updatedAt: Date;
5862
+ deletedAt: Date | null;
5863
+ attribute: {
5864
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5865
+ id: string;
5866
+ position: number;
5867
+ createdAt: Date;
5868
+ updatedAt: Date;
5869
+ deletedAt: Date | null;
5870
+ isDefault: boolean;
5871
+ systemName: string;
5872
+ displayName: string;
5873
+ isArchived: boolean;
5874
+ isRequired: boolean;
5875
+ isUnique: boolean;
5876
+ };
5877
+ textValue: string | null;
5878
+ booleanValue: boolean | null;
5879
+ numberValue: number | null;
5880
+ dateValue: Date | null;
5881
+ uploads: {
5882
+ id: string;
5883
+ createdAt: Date;
5884
+ updatedAt: Date;
5885
+ deletedAt: Date | null;
5886
+ customFieldId: string;
5887
+ upload: {
5888
+ id: string;
5889
+ createdAt: Date;
5890
+ updatedAt: Date;
5891
+ deletedAt: Date | null;
5892
+ fileName: string;
5893
+ fileKey: string;
5894
+ bucketName: string;
5895
+ fileSize: number;
5896
+ fileUrl: string | null;
5897
+ };
5898
+ }[];
5899
+ }[];
5900
+ notes: string | null;
5901
+ contactProfile: string | null;
5902
+ socialProfileUrl: string | null;
5903
+ tags: {
5904
+ id: string;
5905
+ name: string;
5906
+ createdAt: Date;
5907
+ updatedAt: Date;
5908
+ deletedAt: Date | null;
5909
+ }[];
5910
+ company: {
5911
+ id: string;
5912
+ createdAt: Date;
5913
+ updatedAt: Date;
5914
+ deletedAt: Date | null;
5915
+ address?: string | null | undefined;
5916
+ name?: string | undefined;
5917
+ phone?: string | null | undefined;
5918
+ industry?: string | null | undefined;
5919
+ } | null;
5920
+ contactEmails: {
5921
+ id: string;
5922
+ isPrimary: boolean;
5923
+ email: string;
5924
+ createdAt: Date;
5925
+ updatedAt: Date;
5926
+ deletedAt: Date | null;
5927
+ }[];
5928
+ contactPhones: {
5929
+ id: string;
5930
+ isPrimary: boolean;
5931
+ createdAt: Date;
5932
+ updatedAt: Date;
5933
+ deletedAt: Date | null;
5934
+ phone: string;
5935
+ }[];
5936
+ activityLogs?: {
5937
+ id: string;
5938
+ description: string;
5939
+ createdAt: Date;
5940
+ updatedAt: Date;
5941
+ deletedAt: Date | null;
5942
+ entityId: string;
5943
+ entityType: {
5944
+ id: string;
5945
+ description: string | null;
5946
+ createdAt: Date;
5947
+ updatedAt: Date;
5948
+ deletedAt: Date | null;
5949
+ entity: string;
5950
+ };
5951
+ }[] | undefined;
5952
+ } | undefined;
5953
+ telephonyQueue?: {
5954
+ id: string;
5955
+ createdAt: Date;
5956
+ updatedAt: Date;
5957
+ deletedAt: Date | null;
5958
+ queueId: number;
5959
+ queueName: string;
5960
+ queueNumber: string;
5961
+ maximumWaitingTime: number;
5962
+ } | null | undefined;
4658
5963
  upload?: {
4659
5964
  id: string;
4660
5965
  createdAt: Date;
@@ -4665,7 +5970,20 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
4665
5970
  bucketName: string;
4666
5971
  fileSize: number;
4667
5972
  fileUrl: string | null;
4668
- } | undefined;
5973
+ } | null | undefined;
5974
+ extension?: {
5975
+ id: string;
5976
+ createdAt: Date;
5977
+ updatedAt: Date;
5978
+ deletedAt: Date | null;
5979
+ userId: string | null;
5980
+ sipServerUrl: string;
5981
+ sipUserName: string;
5982
+ webphoneLoginUser: string;
5983
+ extensionId: number;
5984
+ extensionName: string;
5985
+ telephonySignature: string | null;
5986
+ } | null | undefined;
4669
5987
  } | null;
4670
5988
  queue: {
4671
5989
  queueName?: string | null | undefined;