@kl1/contracts 1.0.15 → 1.0.17

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 (39) hide show
  1. package/dist/index.js +1551 -851
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1551 -851
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/app/index.d.ts +17 -0
  6. package/dist/src/app/index.d.ts.map +1 -0
  7. package/dist/src/call-log/schema.d.ts +2 -2
  8. package/dist/src/chat/index.d.ts +1437 -3140
  9. package/dist/src/chat/index.d.ts.map +1 -1
  10. package/dist/src/chat/schema.d.ts +256 -47
  11. package/dist/src/chat/schema.d.ts.map +1 -1
  12. package/dist/src/chat/validation.d.ts +5327 -92
  13. package/dist/src/chat/validation.d.ts.map +1 -1
  14. package/dist/src/contact/index.d.ts +4079 -581
  15. package/dist/src/contact/index.d.ts.map +1 -1
  16. package/dist/src/contact/validation.d.ts +3148 -0
  17. package/dist/src/contact/validation.d.ts.map +1 -1
  18. package/dist/src/contract.d.ts +25332 -13715
  19. package/dist/src/contract.d.ts.map +1 -1
  20. package/dist/src/cx-log/index.d.ts +8 -8
  21. package/dist/src/cx-log/schema.d.ts +4 -4
  22. package/dist/src/mail/mail-contract.d.ts +1316 -1316
  23. package/dist/src/mail/mail-server.d.ts +216 -0
  24. package/dist/src/mail/mail-server.d.ts.map +1 -0
  25. package/dist/src/mail/message-contract.d.ts +56 -56
  26. package/dist/src/mail/room-contract.d.ts +1254 -1254
  27. package/dist/src/mail/schemas/message.schema.d.ts +33 -33
  28. package/dist/src/mail/schemas/room-validation.schema.d.ts +408 -408
  29. package/dist/src/mail/schemas/room.schema.d.ts +270 -270
  30. package/dist/src/messenger/index.d.ts +5232 -54
  31. package/dist/src/messenger/index.d.ts.map +1 -1
  32. package/dist/src/platform-contact/schema.d.ts +2 -2
  33. package/dist/src/ticket/index.d.ts +4662 -0
  34. package/dist/src/ticket/index.d.ts.map +1 -0
  35. package/dist/src/ticket/schema.d.ts +677 -5
  36. package/dist/src/ticket/schema.d.ts.map +1 -1
  37. package/dist/src/ticket/validation.d.ts +637 -0
  38. package/dist/src/ticket/validation.d.ts.map +1 -0
  39. package/package.json +1 -1
@@ -1103,6 +1103,7 @@ export declare const ContactContractValidationSchema: {
1103
1103
  page: z.ZodNumber;
1104
1104
  pageSize: z.ZodNumber;
1105
1105
  total: z.ZodNumber;
1106
+ lastPage: z.ZodNumber;
1106
1107
  data: z.ZodArray<z.ZodObject<{
1107
1108
  id: z.ZodString;
1108
1109
  createdAt: z.ZodDate;
@@ -2594,5 +2595,3152 @@ export declare const ContactContractValidationSchema: {
2594
2595
  }[] | undefined;
2595
2596
  }>;
2596
2597
  };
2598
+ updateContactByPhone: {
2599
+ request: z.ZodObject<{
2600
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
2601
+ }, "strip", z.ZodTypeAny, {
2602
+ phoneNumber: string;
2603
+ }, {
2604
+ phoneNumber: string;
2605
+ }>;
2606
+ response: z.ZodObject<{
2607
+ id: z.ZodString;
2608
+ createdAt: z.ZodDate;
2609
+ updatedAt: z.ZodDate;
2610
+ deletedAt: z.ZodNullable<z.ZodDate>;
2611
+ name: z.ZodString;
2612
+ address: z.ZodNullable<z.ZodString>;
2613
+ channel: z.ZodNullable<z.ZodString>;
2614
+ notes: z.ZodNullable<z.ZodString>;
2615
+ contactProfile: z.ZodNullable<z.ZodString>;
2616
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
2617
+ tags: z.ZodArray<z.ZodObject<{
2618
+ id: z.ZodString;
2619
+ createdAt: z.ZodDate;
2620
+ updatedAt: z.ZodDate;
2621
+ deletedAt: z.ZodNullable<z.ZodDate>;
2622
+ name: z.ZodString;
2623
+ }, "strip", z.ZodTypeAny, {
2624
+ id: string;
2625
+ name: string;
2626
+ createdAt: Date;
2627
+ updatedAt: Date;
2628
+ deletedAt: Date | null;
2629
+ }, {
2630
+ id: string;
2631
+ name: string;
2632
+ createdAt: Date;
2633
+ updatedAt: Date;
2634
+ deletedAt: Date | null;
2635
+ }>, "many">;
2636
+ company: z.ZodNullable<z.ZodObject<Omit<{
2637
+ id: z.ZodString;
2638
+ createdAt: z.ZodDate;
2639
+ updatedAt: z.ZodDate;
2640
+ deletedAt: z.ZodNullable<z.ZodDate>;
2641
+ name: z.ZodOptional<z.ZodString>;
2642
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2643
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2644
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2645
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2646
+ id: z.ZodString;
2647
+ createdAt: z.ZodDate;
2648
+ updatedAt: z.ZodDate;
2649
+ deletedAt: z.ZodNullable<z.ZodDate>;
2650
+ textValue: z.ZodNullable<z.ZodString>;
2651
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2652
+ numberValue: z.ZodNullable<z.ZodNumber>;
2653
+ dateValue: z.ZodNullable<z.ZodString>;
2654
+ attribute: z.ZodObject<Omit<{
2655
+ id: z.ZodString;
2656
+ createdAt: z.ZodDate;
2657
+ updatedAt: z.ZodDate;
2658
+ deletedAt: z.ZodNullable<z.ZodDate>;
2659
+ systemName: z.ZodString;
2660
+ displayName: z.ZodString;
2661
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2662
+ position: z.ZodNumber;
2663
+ isDefault: z.ZodBoolean;
2664
+ isArchived: z.ZodBoolean;
2665
+ isRequired: z.ZodBoolean;
2666
+ isUnique: z.ZodBoolean;
2667
+ options: z.ZodArray<z.ZodObject<{
2668
+ position: z.ZodNumber;
2669
+ value: z.ZodString;
2670
+ label: z.ZodString;
2671
+ isDefault: z.ZodBoolean;
2672
+ id: z.ZodString;
2673
+ }, "strip", z.ZodTypeAny, {
2674
+ id: string;
2675
+ position: number;
2676
+ value: string;
2677
+ label: string;
2678
+ isDefault: boolean;
2679
+ }, {
2680
+ id: string;
2681
+ position: number;
2682
+ value: string;
2683
+ label: string;
2684
+ isDefault: boolean;
2685
+ }>, "many">;
2686
+ group: z.ZodObject<{
2687
+ id: z.ZodString;
2688
+ createdAt: z.ZodDate;
2689
+ updatedAt: z.ZodDate;
2690
+ deletedAt: z.ZodNullable<z.ZodDate>;
2691
+ systemName: z.ZodString;
2692
+ displayName: z.ZodString;
2693
+ }, "strip", z.ZodTypeAny, {
2694
+ id: string;
2695
+ createdAt: Date;
2696
+ updatedAt: Date;
2697
+ deletedAt: Date | null;
2698
+ systemName: string;
2699
+ displayName: string;
2700
+ }, {
2701
+ id: string;
2702
+ createdAt: Date;
2703
+ updatedAt: Date;
2704
+ deletedAt: Date | null;
2705
+ systemName: string;
2706
+ displayName: string;
2707
+ }>;
2708
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2709
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2710
+ id: string;
2711
+ position: number;
2712
+ createdAt: Date;
2713
+ updatedAt: Date;
2714
+ deletedAt: Date | null;
2715
+ isDefault: boolean;
2716
+ systemName: string;
2717
+ displayName: string;
2718
+ isArchived: boolean;
2719
+ isRequired: boolean;
2720
+ isUnique: boolean;
2721
+ }, {
2722
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2723
+ id: string;
2724
+ position: number;
2725
+ createdAt: Date;
2726
+ updatedAt: Date;
2727
+ deletedAt: Date | null;
2728
+ isDefault: boolean;
2729
+ systemName: string;
2730
+ displayName: string;
2731
+ isArchived: boolean;
2732
+ isRequired: boolean;
2733
+ isUnique: boolean;
2734
+ }>;
2735
+ }, "strip", z.ZodTypeAny, {
2736
+ id: string;
2737
+ createdAt: Date;
2738
+ updatedAt: Date;
2739
+ deletedAt: Date | null;
2740
+ attribute: {
2741
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2742
+ id: string;
2743
+ position: number;
2744
+ createdAt: Date;
2745
+ updatedAt: Date;
2746
+ deletedAt: Date | null;
2747
+ isDefault: boolean;
2748
+ systemName: string;
2749
+ displayName: string;
2750
+ isArchived: boolean;
2751
+ isRequired: boolean;
2752
+ isUnique: boolean;
2753
+ };
2754
+ textValue: string | null;
2755
+ booleanValue: boolean | null;
2756
+ numberValue: number | null;
2757
+ dateValue: string | null;
2758
+ }, {
2759
+ id: string;
2760
+ createdAt: Date;
2761
+ updatedAt: Date;
2762
+ deletedAt: Date | null;
2763
+ attribute: {
2764
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2765
+ id: string;
2766
+ position: number;
2767
+ createdAt: Date;
2768
+ updatedAt: Date;
2769
+ deletedAt: Date | null;
2770
+ isDefault: boolean;
2771
+ systemName: string;
2772
+ displayName: string;
2773
+ isArchived: boolean;
2774
+ isRequired: boolean;
2775
+ isUnique: boolean;
2776
+ };
2777
+ textValue: string | null;
2778
+ booleanValue: boolean | null;
2779
+ numberValue: number | null;
2780
+ dateValue: string | null;
2781
+ }>, "many">>;
2782
+ }, "customFields">, "strip", z.ZodTypeAny, {
2783
+ id: string;
2784
+ createdAt: Date;
2785
+ updatedAt: Date;
2786
+ deletedAt: Date | null;
2787
+ address?: string | null | undefined;
2788
+ name?: string | undefined;
2789
+ phone?: string | null | undefined;
2790
+ industry?: string | null | undefined;
2791
+ }, {
2792
+ id: string;
2793
+ createdAt: Date;
2794
+ updatedAt: Date;
2795
+ deletedAt: Date | null;
2796
+ address?: string | null | undefined;
2797
+ name?: string | undefined;
2798
+ phone?: string | null | undefined;
2799
+ industry?: string | null | undefined;
2800
+ }>>;
2801
+ customFields: z.ZodArray<z.ZodObject<{
2802
+ id: z.ZodString;
2803
+ createdAt: z.ZodDate;
2804
+ updatedAt: z.ZodDate;
2805
+ deletedAt: z.ZodNullable<z.ZodDate>;
2806
+ textValue: z.ZodNullable<z.ZodString>;
2807
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2808
+ numberValue: z.ZodNullable<z.ZodNumber>;
2809
+ dateValue: z.ZodNullable<z.ZodDate>;
2810
+ attribute: z.ZodObject<Omit<{
2811
+ id: z.ZodString;
2812
+ createdAt: z.ZodDate;
2813
+ updatedAt: z.ZodDate;
2814
+ deletedAt: z.ZodNullable<z.ZodDate>;
2815
+ systemName: z.ZodString;
2816
+ displayName: z.ZodString;
2817
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2818
+ position: z.ZodNumber;
2819
+ isDefault: z.ZodBoolean;
2820
+ isArchived: z.ZodBoolean;
2821
+ isRequired: z.ZodBoolean;
2822
+ isUnique: z.ZodBoolean;
2823
+ options: z.ZodArray<z.ZodObject<{
2824
+ position: z.ZodNumber;
2825
+ value: z.ZodString;
2826
+ label: z.ZodString;
2827
+ isDefault: z.ZodBoolean;
2828
+ id: z.ZodString;
2829
+ }, "strip", z.ZodTypeAny, {
2830
+ id: string;
2831
+ position: number;
2832
+ value: string;
2833
+ label: string;
2834
+ isDefault: boolean;
2835
+ }, {
2836
+ id: string;
2837
+ position: number;
2838
+ value: string;
2839
+ label: string;
2840
+ isDefault: boolean;
2841
+ }>, "many">;
2842
+ group: z.ZodObject<{
2843
+ id: z.ZodString;
2844
+ createdAt: z.ZodDate;
2845
+ updatedAt: z.ZodDate;
2846
+ deletedAt: z.ZodNullable<z.ZodDate>;
2847
+ systemName: z.ZodString;
2848
+ displayName: z.ZodString;
2849
+ }, "strip", z.ZodTypeAny, {
2850
+ id: string;
2851
+ createdAt: Date;
2852
+ updatedAt: Date;
2853
+ deletedAt: Date | null;
2854
+ systemName: string;
2855
+ displayName: string;
2856
+ }, {
2857
+ id: string;
2858
+ createdAt: Date;
2859
+ updatedAt: Date;
2860
+ deletedAt: Date | null;
2861
+ systemName: string;
2862
+ displayName: string;
2863
+ }>;
2864
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2865
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2866
+ id: string;
2867
+ position: number;
2868
+ createdAt: Date;
2869
+ updatedAt: Date;
2870
+ deletedAt: Date | null;
2871
+ isDefault: boolean;
2872
+ systemName: string;
2873
+ displayName: string;
2874
+ isArchived: boolean;
2875
+ isRequired: boolean;
2876
+ isUnique: boolean;
2877
+ }, {
2878
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2879
+ id: string;
2880
+ position: number;
2881
+ createdAt: Date;
2882
+ updatedAt: Date;
2883
+ deletedAt: Date | null;
2884
+ isDefault: boolean;
2885
+ systemName: string;
2886
+ displayName: string;
2887
+ isArchived: boolean;
2888
+ isRequired: boolean;
2889
+ isUnique: boolean;
2890
+ }>;
2891
+ uploads: z.ZodArray<z.ZodObject<{
2892
+ id: z.ZodString;
2893
+ createdAt: z.ZodDate;
2894
+ updatedAt: z.ZodDate;
2895
+ deletedAt: z.ZodNullable<z.ZodDate>;
2896
+ customFieldId: z.ZodString;
2897
+ upload: z.ZodObject<{
2898
+ id: z.ZodString;
2899
+ createdAt: z.ZodDate;
2900
+ updatedAt: z.ZodDate;
2901
+ deletedAt: z.ZodNullable<z.ZodDate>;
2902
+ bucketName: z.ZodString;
2903
+ fileName: z.ZodString;
2904
+ fileSize: z.ZodNumber;
2905
+ fileKey: z.ZodString;
2906
+ }, "strip", z.ZodTypeAny, {
2907
+ id: string;
2908
+ createdAt: Date;
2909
+ updatedAt: Date;
2910
+ deletedAt: Date | null;
2911
+ fileName: string;
2912
+ fileKey: string;
2913
+ bucketName: string;
2914
+ fileSize: number;
2915
+ }, {
2916
+ id: string;
2917
+ createdAt: Date;
2918
+ updatedAt: Date;
2919
+ deletedAt: Date | null;
2920
+ fileName: string;
2921
+ fileKey: string;
2922
+ bucketName: string;
2923
+ fileSize: number;
2924
+ }>;
2925
+ }, "strip", z.ZodTypeAny, {
2926
+ id: string;
2927
+ createdAt: Date;
2928
+ updatedAt: Date;
2929
+ deletedAt: Date | null;
2930
+ customFieldId: string;
2931
+ upload: {
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
+ };
2941
+ }, {
2942
+ id: string;
2943
+ createdAt: Date;
2944
+ updatedAt: Date;
2945
+ deletedAt: Date | null;
2946
+ customFieldId: string;
2947
+ upload: {
2948
+ id: string;
2949
+ createdAt: Date;
2950
+ updatedAt: Date;
2951
+ deletedAt: Date | null;
2952
+ fileName: string;
2953
+ fileKey: string;
2954
+ bucketName: string;
2955
+ fileSize: number;
2956
+ };
2957
+ }>, "many">;
2958
+ }, "strip", z.ZodTypeAny, {
2959
+ id: string;
2960
+ createdAt: Date;
2961
+ updatedAt: Date;
2962
+ deletedAt: Date | null;
2963
+ attribute: {
2964
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2965
+ id: string;
2966
+ position: number;
2967
+ createdAt: Date;
2968
+ updatedAt: Date;
2969
+ deletedAt: Date | null;
2970
+ isDefault: boolean;
2971
+ systemName: string;
2972
+ displayName: string;
2973
+ isArchived: boolean;
2974
+ isRequired: boolean;
2975
+ isUnique: boolean;
2976
+ };
2977
+ textValue: string | null;
2978
+ booleanValue: boolean | null;
2979
+ numberValue: number | null;
2980
+ dateValue: Date | null;
2981
+ uploads: {
2982
+ id: string;
2983
+ createdAt: Date;
2984
+ updatedAt: Date;
2985
+ deletedAt: Date | null;
2986
+ customFieldId: string;
2987
+ upload: {
2988
+ id: string;
2989
+ createdAt: Date;
2990
+ updatedAt: Date;
2991
+ deletedAt: Date | null;
2992
+ fileName: string;
2993
+ fileKey: string;
2994
+ bucketName: string;
2995
+ fileSize: number;
2996
+ };
2997
+ }[];
2998
+ }, {
2999
+ id: string;
3000
+ createdAt: Date;
3001
+ updatedAt: Date;
3002
+ deletedAt: Date | null;
3003
+ attribute: {
3004
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3005
+ id: string;
3006
+ position: number;
3007
+ createdAt: Date;
3008
+ updatedAt: Date;
3009
+ deletedAt: Date | null;
3010
+ isDefault: boolean;
3011
+ systemName: string;
3012
+ displayName: string;
3013
+ isArchived: boolean;
3014
+ isRequired: boolean;
3015
+ isUnique: boolean;
3016
+ };
3017
+ textValue: string | null;
3018
+ booleanValue: boolean | null;
3019
+ numberValue: number | null;
3020
+ dateValue: Date | null;
3021
+ uploads: {
3022
+ id: string;
3023
+ createdAt: Date;
3024
+ updatedAt: Date;
3025
+ deletedAt: Date | null;
3026
+ customFieldId: string;
3027
+ upload: {
3028
+ id: string;
3029
+ createdAt: Date;
3030
+ updatedAt: Date;
3031
+ deletedAt: Date | null;
3032
+ fileName: string;
3033
+ fileKey: string;
3034
+ bucketName: string;
3035
+ fileSize: number;
3036
+ };
3037
+ }[];
3038
+ }>, "many">;
3039
+ contactEmails: z.ZodArray<z.ZodObject<{
3040
+ id: z.ZodString;
3041
+ createdAt: z.ZodDate;
3042
+ updatedAt: z.ZodDate;
3043
+ deletedAt: z.ZodNullable<z.ZodDate>;
3044
+ email: z.ZodString;
3045
+ isPrimary: z.ZodBoolean;
3046
+ }, "strip", z.ZodTypeAny, {
3047
+ id: string;
3048
+ isPrimary: boolean;
3049
+ email: string;
3050
+ createdAt: Date;
3051
+ updatedAt: Date;
3052
+ deletedAt: Date | null;
3053
+ }, {
3054
+ id: string;
3055
+ isPrimary: boolean;
3056
+ email: string;
3057
+ createdAt: Date;
3058
+ updatedAt: Date;
3059
+ deletedAt: Date | null;
3060
+ }>, "many">;
3061
+ contactPhones: z.ZodArray<z.ZodObject<{
3062
+ id: z.ZodString;
3063
+ createdAt: z.ZodDate;
3064
+ updatedAt: z.ZodDate;
3065
+ deletedAt: z.ZodNullable<z.ZodDate>;
3066
+ phone: z.ZodString;
3067
+ isPrimary: z.ZodBoolean;
3068
+ }, "strip", z.ZodTypeAny, {
3069
+ id: string;
3070
+ isPrimary: boolean;
3071
+ createdAt: Date;
3072
+ updatedAt: Date;
3073
+ deletedAt: Date | null;
3074
+ phone: string;
3075
+ }, {
3076
+ id: string;
3077
+ isPrimary: boolean;
3078
+ createdAt: Date;
3079
+ updatedAt: Date;
3080
+ deletedAt: Date | null;
3081
+ phone: string;
3082
+ }>, "many">;
3083
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3084
+ id: z.ZodString;
3085
+ createdAt: z.ZodDate;
3086
+ updatedAt: z.ZodDate;
3087
+ deletedAt: z.ZodNullable<z.ZodDate>;
3088
+ entityId: z.ZodString;
3089
+ description: z.ZodString;
3090
+ entityType: z.ZodObject<{
3091
+ id: z.ZodString;
3092
+ createdAt: z.ZodDate;
3093
+ updatedAt: z.ZodDate;
3094
+ deletedAt: z.ZodNullable<z.ZodDate>;
3095
+ entity: z.ZodString;
3096
+ description: z.ZodNullable<z.ZodString>;
3097
+ }, "strip", z.ZodTypeAny, {
3098
+ id: string;
3099
+ description: string | null;
3100
+ createdAt: Date;
3101
+ updatedAt: Date;
3102
+ deletedAt: Date | null;
3103
+ entity: string;
3104
+ }, {
3105
+ id: string;
3106
+ description: string | null;
3107
+ createdAt: Date;
3108
+ updatedAt: Date;
3109
+ deletedAt: Date | null;
3110
+ entity: string;
3111
+ }>;
3112
+ }, "strip", z.ZodTypeAny, {
3113
+ id: string;
3114
+ description: string;
3115
+ createdAt: Date;
3116
+ updatedAt: Date;
3117
+ deletedAt: Date | null;
3118
+ entityId: string;
3119
+ entityType: {
3120
+ id: string;
3121
+ description: string | null;
3122
+ createdAt: Date;
3123
+ updatedAt: Date;
3124
+ deletedAt: Date | null;
3125
+ entity: string;
3126
+ };
3127
+ }, {
3128
+ id: string;
3129
+ description: string;
3130
+ createdAt: Date;
3131
+ updatedAt: Date;
3132
+ deletedAt: Date | null;
3133
+ entityId: string;
3134
+ entityType: {
3135
+ id: string;
3136
+ description: string | null;
3137
+ createdAt: Date;
3138
+ updatedAt: Date;
3139
+ deletedAt: Date | null;
3140
+ entity: string;
3141
+ };
3142
+ }>, "many">>;
3143
+ }, "strip", z.ZodTypeAny, {
3144
+ id: string;
3145
+ channel: string | null;
3146
+ address: string | null;
3147
+ name: string;
3148
+ createdAt: Date;
3149
+ updatedAt: Date;
3150
+ deletedAt: Date | null;
3151
+ customFields: {
3152
+ id: string;
3153
+ createdAt: Date;
3154
+ updatedAt: Date;
3155
+ deletedAt: Date | null;
3156
+ attribute: {
3157
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3158
+ id: string;
3159
+ position: number;
3160
+ createdAt: Date;
3161
+ updatedAt: Date;
3162
+ deletedAt: Date | null;
3163
+ isDefault: boolean;
3164
+ systemName: string;
3165
+ displayName: string;
3166
+ isArchived: boolean;
3167
+ isRequired: boolean;
3168
+ isUnique: boolean;
3169
+ };
3170
+ textValue: string | null;
3171
+ booleanValue: boolean | null;
3172
+ numberValue: number | null;
3173
+ dateValue: Date | null;
3174
+ uploads: {
3175
+ id: string;
3176
+ createdAt: Date;
3177
+ updatedAt: Date;
3178
+ deletedAt: Date | null;
3179
+ customFieldId: string;
3180
+ upload: {
3181
+ id: string;
3182
+ createdAt: Date;
3183
+ updatedAt: Date;
3184
+ deletedAt: Date | null;
3185
+ fileName: string;
3186
+ fileKey: string;
3187
+ bucketName: string;
3188
+ fileSize: number;
3189
+ };
3190
+ }[];
3191
+ }[];
3192
+ notes: string | null;
3193
+ contactProfile: string | null;
3194
+ socialProfileUrl: string | null;
3195
+ tags: {
3196
+ id: string;
3197
+ name: string;
3198
+ createdAt: Date;
3199
+ updatedAt: Date;
3200
+ deletedAt: Date | null;
3201
+ }[];
3202
+ company: {
3203
+ id: string;
3204
+ createdAt: Date;
3205
+ updatedAt: Date;
3206
+ deletedAt: Date | null;
3207
+ address?: string | null | undefined;
3208
+ name?: string | undefined;
3209
+ phone?: string | null | undefined;
3210
+ industry?: string | null | undefined;
3211
+ } | null;
3212
+ contactEmails: {
3213
+ id: string;
3214
+ isPrimary: boolean;
3215
+ email: string;
3216
+ createdAt: Date;
3217
+ updatedAt: Date;
3218
+ deletedAt: Date | null;
3219
+ }[];
3220
+ contactPhones: {
3221
+ id: string;
3222
+ isPrimary: boolean;
3223
+ createdAt: Date;
3224
+ updatedAt: Date;
3225
+ deletedAt: Date | null;
3226
+ phone: string;
3227
+ }[];
3228
+ activityLogs?: {
3229
+ id: string;
3230
+ description: string;
3231
+ createdAt: Date;
3232
+ updatedAt: Date;
3233
+ deletedAt: Date | null;
3234
+ entityId: string;
3235
+ entityType: {
3236
+ id: string;
3237
+ description: string | null;
3238
+ createdAt: Date;
3239
+ updatedAt: Date;
3240
+ deletedAt: Date | null;
3241
+ entity: string;
3242
+ };
3243
+ }[] | undefined;
3244
+ }, {
3245
+ id: string;
3246
+ channel: string | null;
3247
+ address: string | null;
3248
+ name: string;
3249
+ createdAt: Date;
3250
+ updatedAt: Date;
3251
+ deletedAt: Date | null;
3252
+ customFields: {
3253
+ id: string;
3254
+ createdAt: Date;
3255
+ updatedAt: Date;
3256
+ deletedAt: Date | null;
3257
+ attribute: {
3258
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3259
+ id: string;
3260
+ position: number;
3261
+ createdAt: Date;
3262
+ updatedAt: Date;
3263
+ deletedAt: Date | null;
3264
+ isDefault: boolean;
3265
+ systemName: string;
3266
+ displayName: string;
3267
+ isArchived: boolean;
3268
+ isRequired: boolean;
3269
+ isUnique: boolean;
3270
+ };
3271
+ textValue: string | null;
3272
+ booleanValue: boolean | null;
3273
+ numberValue: number | null;
3274
+ dateValue: Date | null;
3275
+ uploads: {
3276
+ id: string;
3277
+ createdAt: Date;
3278
+ updatedAt: Date;
3279
+ deletedAt: Date | null;
3280
+ customFieldId: string;
3281
+ upload: {
3282
+ id: string;
3283
+ createdAt: Date;
3284
+ updatedAt: Date;
3285
+ deletedAt: Date | null;
3286
+ fileName: string;
3287
+ fileKey: string;
3288
+ bucketName: string;
3289
+ fileSize: number;
3290
+ };
3291
+ }[];
3292
+ }[];
3293
+ notes: string | null;
3294
+ contactProfile: string | null;
3295
+ socialProfileUrl: string | null;
3296
+ tags: {
3297
+ id: string;
3298
+ name: string;
3299
+ createdAt: Date;
3300
+ updatedAt: Date;
3301
+ deletedAt: Date | null;
3302
+ }[];
3303
+ company: {
3304
+ id: string;
3305
+ createdAt: Date;
3306
+ updatedAt: Date;
3307
+ deletedAt: Date | null;
3308
+ address?: string | null | undefined;
3309
+ name?: string | undefined;
3310
+ phone?: string | null | undefined;
3311
+ industry?: string | null | undefined;
3312
+ } | null;
3313
+ contactEmails: {
3314
+ id: string;
3315
+ isPrimary: boolean;
3316
+ email: string;
3317
+ createdAt: Date;
3318
+ updatedAt: Date;
3319
+ deletedAt: Date | null;
3320
+ }[];
3321
+ contactPhones: {
3322
+ id: string;
3323
+ isPrimary: boolean;
3324
+ createdAt: Date;
3325
+ updatedAt: Date;
3326
+ deletedAt: Date | null;
3327
+ phone: string;
3328
+ }[];
3329
+ activityLogs?: {
3330
+ id: string;
3331
+ description: string;
3332
+ createdAt: Date;
3333
+ updatedAt: Date;
3334
+ deletedAt: Date | null;
3335
+ entityId: string;
3336
+ entityType: {
3337
+ id: string;
3338
+ description: string | null;
3339
+ createdAt: Date;
3340
+ updatedAt: Date;
3341
+ deletedAt: Date | null;
3342
+ entity: string;
3343
+ };
3344
+ }[] | undefined;
3345
+ }>;
3346
+ };
3347
+ updateFromOngoingCall: {
3348
+ request: z.ZodObject<{
3349
+ name: z.ZodOptional<z.ZodString>;
3350
+ companyId: z.ZodOptional<z.ZodString>;
3351
+ }, "strip", z.ZodTypeAny, {
3352
+ name?: string | undefined;
3353
+ companyId?: string | undefined;
3354
+ }, {
3355
+ name?: string | undefined;
3356
+ companyId?: string | undefined;
3357
+ }>;
3358
+ response: z.ZodObject<{
3359
+ id: z.ZodString;
3360
+ createdAt: z.ZodDate;
3361
+ updatedAt: z.ZodDate;
3362
+ deletedAt: z.ZodNullable<z.ZodDate>;
3363
+ name: z.ZodString;
3364
+ address: z.ZodNullable<z.ZodString>;
3365
+ channel: z.ZodNullable<z.ZodString>;
3366
+ notes: z.ZodNullable<z.ZodString>;
3367
+ contactProfile: z.ZodNullable<z.ZodString>;
3368
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
3369
+ tags: z.ZodArray<z.ZodObject<{
3370
+ id: z.ZodString;
3371
+ createdAt: z.ZodDate;
3372
+ updatedAt: z.ZodDate;
3373
+ deletedAt: z.ZodNullable<z.ZodDate>;
3374
+ name: z.ZodString;
3375
+ }, "strip", z.ZodTypeAny, {
3376
+ id: string;
3377
+ name: string;
3378
+ createdAt: Date;
3379
+ updatedAt: Date;
3380
+ deletedAt: Date | null;
3381
+ }, {
3382
+ id: string;
3383
+ name: string;
3384
+ createdAt: Date;
3385
+ updatedAt: Date;
3386
+ deletedAt: Date | null;
3387
+ }>, "many">;
3388
+ company: z.ZodNullable<z.ZodObject<Omit<{
3389
+ id: z.ZodString;
3390
+ createdAt: z.ZodDate;
3391
+ updatedAt: z.ZodDate;
3392
+ deletedAt: z.ZodNullable<z.ZodDate>;
3393
+ name: z.ZodOptional<z.ZodString>;
3394
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3395
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3396
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3397
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3398
+ id: z.ZodString;
3399
+ createdAt: z.ZodDate;
3400
+ updatedAt: z.ZodDate;
3401
+ deletedAt: z.ZodNullable<z.ZodDate>;
3402
+ textValue: z.ZodNullable<z.ZodString>;
3403
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
3404
+ numberValue: z.ZodNullable<z.ZodNumber>;
3405
+ dateValue: z.ZodNullable<z.ZodString>;
3406
+ attribute: z.ZodObject<Omit<{
3407
+ id: z.ZodString;
3408
+ createdAt: z.ZodDate;
3409
+ updatedAt: z.ZodDate;
3410
+ deletedAt: z.ZodNullable<z.ZodDate>;
3411
+ systemName: z.ZodString;
3412
+ displayName: z.ZodString;
3413
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
3414
+ position: z.ZodNumber;
3415
+ isDefault: z.ZodBoolean;
3416
+ isArchived: z.ZodBoolean;
3417
+ isRequired: z.ZodBoolean;
3418
+ isUnique: z.ZodBoolean;
3419
+ options: z.ZodArray<z.ZodObject<{
3420
+ position: z.ZodNumber;
3421
+ value: z.ZodString;
3422
+ label: z.ZodString;
3423
+ isDefault: z.ZodBoolean;
3424
+ id: z.ZodString;
3425
+ }, "strip", z.ZodTypeAny, {
3426
+ id: string;
3427
+ position: number;
3428
+ value: string;
3429
+ label: string;
3430
+ isDefault: boolean;
3431
+ }, {
3432
+ id: string;
3433
+ position: number;
3434
+ value: string;
3435
+ label: string;
3436
+ isDefault: boolean;
3437
+ }>, "many">;
3438
+ group: z.ZodObject<{
3439
+ id: z.ZodString;
3440
+ createdAt: z.ZodDate;
3441
+ updatedAt: z.ZodDate;
3442
+ deletedAt: z.ZodNullable<z.ZodDate>;
3443
+ systemName: z.ZodString;
3444
+ displayName: z.ZodString;
3445
+ }, "strip", z.ZodTypeAny, {
3446
+ id: string;
3447
+ createdAt: Date;
3448
+ updatedAt: Date;
3449
+ deletedAt: Date | null;
3450
+ systemName: string;
3451
+ displayName: string;
3452
+ }, {
3453
+ id: string;
3454
+ createdAt: Date;
3455
+ updatedAt: Date;
3456
+ deletedAt: Date | null;
3457
+ systemName: string;
3458
+ displayName: string;
3459
+ }>;
3460
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
3461
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3462
+ id: string;
3463
+ position: number;
3464
+ createdAt: Date;
3465
+ updatedAt: Date;
3466
+ deletedAt: Date | null;
3467
+ isDefault: boolean;
3468
+ systemName: string;
3469
+ displayName: string;
3470
+ isArchived: boolean;
3471
+ isRequired: boolean;
3472
+ isUnique: boolean;
3473
+ }, {
3474
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3475
+ id: string;
3476
+ position: number;
3477
+ createdAt: Date;
3478
+ updatedAt: Date;
3479
+ deletedAt: Date | null;
3480
+ isDefault: boolean;
3481
+ systemName: string;
3482
+ displayName: string;
3483
+ isArchived: boolean;
3484
+ isRequired: boolean;
3485
+ isUnique: boolean;
3486
+ }>;
3487
+ }, "strip", z.ZodTypeAny, {
3488
+ id: string;
3489
+ createdAt: Date;
3490
+ updatedAt: Date;
3491
+ deletedAt: Date | null;
3492
+ attribute: {
3493
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3494
+ id: string;
3495
+ position: number;
3496
+ createdAt: Date;
3497
+ updatedAt: Date;
3498
+ deletedAt: Date | null;
3499
+ isDefault: boolean;
3500
+ systemName: string;
3501
+ displayName: string;
3502
+ isArchived: boolean;
3503
+ isRequired: boolean;
3504
+ isUnique: boolean;
3505
+ };
3506
+ textValue: string | null;
3507
+ booleanValue: boolean | null;
3508
+ numberValue: number | null;
3509
+ dateValue: string | null;
3510
+ }, {
3511
+ id: string;
3512
+ createdAt: Date;
3513
+ updatedAt: Date;
3514
+ deletedAt: Date | null;
3515
+ attribute: {
3516
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3517
+ id: string;
3518
+ position: number;
3519
+ createdAt: Date;
3520
+ updatedAt: Date;
3521
+ deletedAt: Date | null;
3522
+ isDefault: boolean;
3523
+ systemName: string;
3524
+ displayName: string;
3525
+ isArchived: boolean;
3526
+ isRequired: boolean;
3527
+ isUnique: boolean;
3528
+ };
3529
+ textValue: string | null;
3530
+ booleanValue: boolean | null;
3531
+ numberValue: number | null;
3532
+ dateValue: string | null;
3533
+ }>, "many">>;
3534
+ }, "customFields">, "strip", z.ZodTypeAny, {
3535
+ id: string;
3536
+ createdAt: Date;
3537
+ updatedAt: Date;
3538
+ deletedAt: Date | null;
3539
+ address?: string | null | undefined;
3540
+ name?: string | undefined;
3541
+ phone?: string | null | undefined;
3542
+ industry?: string | null | undefined;
3543
+ }, {
3544
+ id: string;
3545
+ createdAt: Date;
3546
+ updatedAt: Date;
3547
+ deletedAt: Date | null;
3548
+ address?: string | null | undefined;
3549
+ name?: string | undefined;
3550
+ phone?: string | null | undefined;
3551
+ industry?: string | null | undefined;
3552
+ }>>;
3553
+ customFields: z.ZodArray<z.ZodObject<{
3554
+ id: z.ZodString;
3555
+ createdAt: z.ZodDate;
3556
+ updatedAt: z.ZodDate;
3557
+ deletedAt: z.ZodNullable<z.ZodDate>;
3558
+ textValue: z.ZodNullable<z.ZodString>;
3559
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
3560
+ numberValue: z.ZodNullable<z.ZodNumber>;
3561
+ dateValue: z.ZodNullable<z.ZodDate>;
3562
+ attribute: z.ZodObject<Omit<{
3563
+ id: z.ZodString;
3564
+ createdAt: z.ZodDate;
3565
+ updatedAt: z.ZodDate;
3566
+ deletedAt: z.ZodNullable<z.ZodDate>;
3567
+ systemName: z.ZodString;
3568
+ displayName: z.ZodString;
3569
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
3570
+ position: z.ZodNumber;
3571
+ isDefault: z.ZodBoolean;
3572
+ isArchived: z.ZodBoolean;
3573
+ isRequired: z.ZodBoolean;
3574
+ isUnique: z.ZodBoolean;
3575
+ options: z.ZodArray<z.ZodObject<{
3576
+ position: z.ZodNumber;
3577
+ value: z.ZodString;
3578
+ label: z.ZodString;
3579
+ isDefault: z.ZodBoolean;
3580
+ id: z.ZodString;
3581
+ }, "strip", z.ZodTypeAny, {
3582
+ id: string;
3583
+ position: number;
3584
+ value: string;
3585
+ label: string;
3586
+ isDefault: boolean;
3587
+ }, {
3588
+ id: string;
3589
+ position: number;
3590
+ value: string;
3591
+ label: string;
3592
+ isDefault: boolean;
3593
+ }>, "many">;
3594
+ group: z.ZodObject<{
3595
+ id: z.ZodString;
3596
+ createdAt: z.ZodDate;
3597
+ updatedAt: z.ZodDate;
3598
+ deletedAt: z.ZodNullable<z.ZodDate>;
3599
+ systemName: z.ZodString;
3600
+ displayName: z.ZodString;
3601
+ }, "strip", z.ZodTypeAny, {
3602
+ id: string;
3603
+ createdAt: Date;
3604
+ updatedAt: Date;
3605
+ deletedAt: Date | null;
3606
+ systemName: string;
3607
+ displayName: string;
3608
+ }, {
3609
+ id: string;
3610
+ createdAt: Date;
3611
+ updatedAt: Date;
3612
+ deletedAt: Date | null;
3613
+ systemName: string;
3614
+ displayName: string;
3615
+ }>;
3616
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
3617
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3618
+ id: string;
3619
+ position: number;
3620
+ createdAt: Date;
3621
+ updatedAt: Date;
3622
+ deletedAt: Date | null;
3623
+ isDefault: boolean;
3624
+ systemName: string;
3625
+ displayName: string;
3626
+ isArchived: boolean;
3627
+ isRequired: boolean;
3628
+ isUnique: boolean;
3629
+ }, {
3630
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3631
+ id: string;
3632
+ position: number;
3633
+ createdAt: Date;
3634
+ updatedAt: Date;
3635
+ deletedAt: Date | null;
3636
+ isDefault: boolean;
3637
+ systemName: string;
3638
+ displayName: string;
3639
+ isArchived: boolean;
3640
+ isRequired: boolean;
3641
+ isUnique: boolean;
3642
+ }>;
3643
+ uploads: z.ZodArray<z.ZodObject<{
3644
+ id: z.ZodString;
3645
+ createdAt: z.ZodDate;
3646
+ updatedAt: z.ZodDate;
3647
+ deletedAt: z.ZodNullable<z.ZodDate>;
3648
+ customFieldId: z.ZodString;
3649
+ upload: z.ZodObject<{
3650
+ id: z.ZodString;
3651
+ createdAt: z.ZodDate;
3652
+ updatedAt: z.ZodDate;
3653
+ deletedAt: z.ZodNullable<z.ZodDate>;
3654
+ bucketName: z.ZodString;
3655
+ fileName: z.ZodString;
3656
+ fileSize: z.ZodNumber;
3657
+ fileKey: z.ZodString;
3658
+ }, "strip", z.ZodTypeAny, {
3659
+ id: string;
3660
+ createdAt: Date;
3661
+ updatedAt: Date;
3662
+ deletedAt: Date | null;
3663
+ fileName: string;
3664
+ fileKey: string;
3665
+ bucketName: string;
3666
+ fileSize: number;
3667
+ }, {
3668
+ id: string;
3669
+ createdAt: Date;
3670
+ updatedAt: Date;
3671
+ deletedAt: Date | null;
3672
+ fileName: string;
3673
+ fileKey: string;
3674
+ bucketName: string;
3675
+ fileSize: number;
3676
+ }>;
3677
+ }, "strip", z.ZodTypeAny, {
3678
+ id: string;
3679
+ createdAt: Date;
3680
+ updatedAt: Date;
3681
+ deletedAt: Date | null;
3682
+ customFieldId: string;
3683
+ upload: {
3684
+ id: string;
3685
+ createdAt: Date;
3686
+ updatedAt: Date;
3687
+ deletedAt: Date | null;
3688
+ fileName: string;
3689
+ fileKey: string;
3690
+ bucketName: string;
3691
+ fileSize: number;
3692
+ };
3693
+ }, {
3694
+ id: string;
3695
+ createdAt: Date;
3696
+ updatedAt: Date;
3697
+ deletedAt: Date | null;
3698
+ customFieldId: string;
3699
+ upload: {
3700
+ id: string;
3701
+ createdAt: Date;
3702
+ updatedAt: Date;
3703
+ deletedAt: Date | null;
3704
+ fileName: string;
3705
+ fileKey: string;
3706
+ bucketName: string;
3707
+ fileSize: number;
3708
+ };
3709
+ }>, "many">;
3710
+ }, "strip", z.ZodTypeAny, {
3711
+ id: string;
3712
+ createdAt: Date;
3713
+ updatedAt: Date;
3714
+ deletedAt: Date | null;
3715
+ attribute: {
3716
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3717
+ id: string;
3718
+ position: number;
3719
+ createdAt: Date;
3720
+ updatedAt: Date;
3721
+ deletedAt: Date | null;
3722
+ isDefault: boolean;
3723
+ systemName: string;
3724
+ displayName: string;
3725
+ isArchived: boolean;
3726
+ isRequired: boolean;
3727
+ isUnique: boolean;
3728
+ };
3729
+ textValue: string | null;
3730
+ booleanValue: boolean | null;
3731
+ numberValue: number | null;
3732
+ dateValue: Date | null;
3733
+ uploads: {
3734
+ id: string;
3735
+ createdAt: Date;
3736
+ updatedAt: Date;
3737
+ deletedAt: Date | null;
3738
+ customFieldId: string;
3739
+ upload: {
3740
+ id: string;
3741
+ createdAt: Date;
3742
+ updatedAt: Date;
3743
+ deletedAt: Date | null;
3744
+ fileName: string;
3745
+ fileKey: string;
3746
+ bucketName: string;
3747
+ fileSize: number;
3748
+ };
3749
+ }[];
3750
+ }, {
3751
+ id: string;
3752
+ createdAt: Date;
3753
+ updatedAt: Date;
3754
+ deletedAt: Date | null;
3755
+ attribute: {
3756
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3757
+ id: string;
3758
+ position: number;
3759
+ createdAt: Date;
3760
+ updatedAt: Date;
3761
+ deletedAt: Date | null;
3762
+ isDefault: boolean;
3763
+ systemName: string;
3764
+ displayName: string;
3765
+ isArchived: boolean;
3766
+ isRequired: boolean;
3767
+ isUnique: boolean;
3768
+ };
3769
+ textValue: string | null;
3770
+ booleanValue: boolean | null;
3771
+ numberValue: number | null;
3772
+ dateValue: Date | null;
3773
+ uploads: {
3774
+ id: string;
3775
+ createdAt: Date;
3776
+ updatedAt: Date;
3777
+ deletedAt: Date | null;
3778
+ customFieldId: string;
3779
+ upload: {
3780
+ id: string;
3781
+ createdAt: Date;
3782
+ updatedAt: Date;
3783
+ deletedAt: Date | null;
3784
+ fileName: string;
3785
+ fileKey: string;
3786
+ bucketName: string;
3787
+ fileSize: number;
3788
+ };
3789
+ }[];
3790
+ }>, "many">;
3791
+ contactEmails: z.ZodArray<z.ZodObject<{
3792
+ id: z.ZodString;
3793
+ createdAt: z.ZodDate;
3794
+ updatedAt: z.ZodDate;
3795
+ deletedAt: z.ZodNullable<z.ZodDate>;
3796
+ email: z.ZodString;
3797
+ isPrimary: z.ZodBoolean;
3798
+ }, "strip", z.ZodTypeAny, {
3799
+ id: string;
3800
+ isPrimary: boolean;
3801
+ email: string;
3802
+ createdAt: Date;
3803
+ updatedAt: Date;
3804
+ deletedAt: Date | null;
3805
+ }, {
3806
+ id: string;
3807
+ isPrimary: boolean;
3808
+ email: string;
3809
+ createdAt: Date;
3810
+ updatedAt: Date;
3811
+ deletedAt: Date | null;
3812
+ }>, "many">;
3813
+ contactPhones: z.ZodArray<z.ZodObject<{
3814
+ id: z.ZodString;
3815
+ createdAt: z.ZodDate;
3816
+ updatedAt: z.ZodDate;
3817
+ deletedAt: z.ZodNullable<z.ZodDate>;
3818
+ phone: z.ZodString;
3819
+ isPrimary: z.ZodBoolean;
3820
+ }, "strip", z.ZodTypeAny, {
3821
+ id: string;
3822
+ isPrimary: boolean;
3823
+ createdAt: Date;
3824
+ updatedAt: Date;
3825
+ deletedAt: Date | null;
3826
+ phone: string;
3827
+ }, {
3828
+ id: string;
3829
+ isPrimary: boolean;
3830
+ createdAt: Date;
3831
+ updatedAt: Date;
3832
+ deletedAt: Date | null;
3833
+ phone: string;
3834
+ }>, "many">;
3835
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3836
+ id: z.ZodString;
3837
+ createdAt: z.ZodDate;
3838
+ updatedAt: z.ZodDate;
3839
+ deletedAt: z.ZodNullable<z.ZodDate>;
3840
+ entityId: z.ZodString;
3841
+ description: z.ZodString;
3842
+ entityType: z.ZodObject<{
3843
+ id: z.ZodString;
3844
+ createdAt: z.ZodDate;
3845
+ updatedAt: z.ZodDate;
3846
+ deletedAt: z.ZodNullable<z.ZodDate>;
3847
+ entity: z.ZodString;
3848
+ description: z.ZodNullable<z.ZodString>;
3849
+ }, "strip", z.ZodTypeAny, {
3850
+ id: string;
3851
+ description: string | null;
3852
+ createdAt: Date;
3853
+ updatedAt: Date;
3854
+ deletedAt: Date | null;
3855
+ entity: string;
3856
+ }, {
3857
+ id: string;
3858
+ description: string | null;
3859
+ createdAt: Date;
3860
+ updatedAt: Date;
3861
+ deletedAt: Date | null;
3862
+ entity: string;
3863
+ }>;
3864
+ }, "strip", z.ZodTypeAny, {
3865
+ id: string;
3866
+ description: string;
3867
+ createdAt: Date;
3868
+ updatedAt: Date;
3869
+ deletedAt: Date | null;
3870
+ entityId: string;
3871
+ entityType: {
3872
+ id: string;
3873
+ description: string | null;
3874
+ createdAt: Date;
3875
+ updatedAt: Date;
3876
+ deletedAt: Date | null;
3877
+ entity: string;
3878
+ };
3879
+ }, {
3880
+ id: string;
3881
+ description: string;
3882
+ createdAt: Date;
3883
+ updatedAt: Date;
3884
+ deletedAt: Date | null;
3885
+ entityId: string;
3886
+ entityType: {
3887
+ id: string;
3888
+ description: string | null;
3889
+ createdAt: Date;
3890
+ updatedAt: Date;
3891
+ deletedAt: Date | null;
3892
+ entity: string;
3893
+ };
3894
+ }>, "many">>;
3895
+ }, "strip", z.ZodTypeAny, {
3896
+ id: string;
3897
+ channel: string | null;
3898
+ address: string | null;
3899
+ name: string;
3900
+ createdAt: Date;
3901
+ updatedAt: Date;
3902
+ deletedAt: Date | null;
3903
+ customFields: {
3904
+ id: string;
3905
+ createdAt: Date;
3906
+ updatedAt: Date;
3907
+ deletedAt: Date | null;
3908
+ attribute: {
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
+ textValue: string | null;
3923
+ booleanValue: boolean | null;
3924
+ numberValue: number | null;
3925
+ dateValue: Date | null;
3926
+ uploads: {
3927
+ id: string;
3928
+ createdAt: Date;
3929
+ updatedAt: Date;
3930
+ deletedAt: Date | null;
3931
+ customFieldId: string;
3932
+ upload: {
3933
+ id: string;
3934
+ createdAt: Date;
3935
+ updatedAt: Date;
3936
+ deletedAt: Date | null;
3937
+ fileName: string;
3938
+ fileKey: string;
3939
+ bucketName: string;
3940
+ fileSize: number;
3941
+ };
3942
+ }[];
3943
+ }[];
3944
+ notes: string | null;
3945
+ contactProfile: string | null;
3946
+ socialProfileUrl: string | null;
3947
+ tags: {
3948
+ id: string;
3949
+ name: string;
3950
+ createdAt: Date;
3951
+ updatedAt: Date;
3952
+ deletedAt: Date | null;
3953
+ }[];
3954
+ company: {
3955
+ id: string;
3956
+ createdAt: Date;
3957
+ updatedAt: Date;
3958
+ deletedAt: Date | null;
3959
+ address?: string | null | undefined;
3960
+ name?: string | undefined;
3961
+ phone?: string | null | undefined;
3962
+ industry?: string | null | undefined;
3963
+ } | null;
3964
+ contactEmails: {
3965
+ id: string;
3966
+ isPrimary: boolean;
3967
+ email: string;
3968
+ createdAt: Date;
3969
+ updatedAt: Date;
3970
+ deletedAt: Date | null;
3971
+ }[];
3972
+ contactPhones: {
3973
+ id: string;
3974
+ isPrimary: boolean;
3975
+ createdAt: Date;
3976
+ updatedAt: Date;
3977
+ deletedAt: Date | null;
3978
+ phone: string;
3979
+ }[];
3980
+ activityLogs?: {
3981
+ id: string;
3982
+ description: string;
3983
+ createdAt: Date;
3984
+ updatedAt: Date;
3985
+ deletedAt: Date | null;
3986
+ entityId: string;
3987
+ entityType: {
3988
+ id: string;
3989
+ description: string | null;
3990
+ createdAt: Date;
3991
+ updatedAt: Date;
3992
+ deletedAt: Date | null;
3993
+ entity: string;
3994
+ };
3995
+ }[] | undefined;
3996
+ }, {
3997
+ id: string;
3998
+ channel: string | null;
3999
+ address: string | null;
4000
+ name: string;
4001
+ createdAt: Date;
4002
+ updatedAt: Date;
4003
+ deletedAt: Date | null;
4004
+ customFields: {
4005
+ id: string;
4006
+ createdAt: Date;
4007
+ updatedAt: Date;
4008
+ deletedAt: Date | null;
4009
+ attribute: {
4010
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4011
+ id: string;
4012
+ position: number;
4013
+ createdAt: Date;
4014
+ updatedAt: Date;
4015
+ deletedAt: Date | null;
4016
+ isDefault: boolean;
4017
+ systemName: string;
4018
+ displayName: string;
4019
+ isArchived: boolean;
4020
+ isRequired: boolean;
4021
+ isUnique: boolean;
4022
+ };
4023
+ textValue: string | null;
4024
+ booleanValue: boolean | null;
4025
+ numberValue: number | null;
4026
+ dateValue: Date | null;
4027
+ uploads: {
4028
+ id: string;
4029
+ createdAt: Date;
4030
+ updatedAt: Date;
4031
+ deletedAt: Date | null;
4032
+ customFieldId: string;
4033
+ upload: {
4034
+ id: string;
4035
+ createdAt: Date;
4036
+ updatedAt: Date;
4037
+ deletedAt: Date | null;
4038
+ fileName: string;
4039
+ fileKey: string;
4040
+ bucketName: string;
4041
+ fileSize: number;
4042
+ };
4043
+ }[];
4044
+ }[];
4045
+ notes: string | null;
4046
+ contactProfile: string | null;
4047
+ socialProfileUrl: string | null;
4048
+ tags: {
4049
+ id: string;
4050
+ name: string;
4051
+ createdAt: Date;
4052
+ updatedAt: Date;
4053
+ deletedAt: Date | null;
4054
+ }[];
4055
+ company: {
4056
+ id: string;
4057
+ createdAt: Date;
4058
+ updatedAt: Date;
4059
+ deletedAt: Date | null;
4060
+ address?: string | null | undefined;
4061
+ name?: string | undefined;
4062
+ phone?: string | null | undefined;
4063
+ industry?: string | null | undefined;
4064
+ } | null;
4065
+ contactEmails: {
4066
+ id: string;
4067
+ isPrimary: boolean;
4068
+ email: string;
4069
+ createdAt: Date;
4070
+ updatedAt: Date;
4071
+ deletedAt: Date | null;
4072
+ }[];
4073
+ contactPhones: {
4074
+ id: string;
4075
+ isPrimary: boolean;
4076
+ createdAt: Date;
4077
+ updatedAt: Date;
4078
+ deletedAt: Date | null;
4079
+ phone: string;
4080
+ }[];
4081
+ activityLogs?: {
4082
+ id: string;
4083
+ description: string;
4084
+ createdAt: Date;
4085
+ updatedAt: Date;
4086
+ deletedAt: Date | null;
4087
+ entityId: string;
4088
+ entityType: {
4089
+ id: string;
4090
+ description: string | null;
4091
+ createdAt: Date;
4092
+ updatedAt: Date;
4093
+ deletedAt: Date | null;
4094
+ entity: string;
4095
+ };
4096
+ }[] | undefined;
4097
+ }>;
4098
+ };
4099
+ merge: {
4100
+ request: z.ZodObject<{
4101
+ primaryContactId: z.ZodString;
4102
+ emails: z.ZodArray<z.ZodObject<{
4103
+ email: z.ZodString;
4104
+ isPrimary: z.ZodBoolean;
4105
+ }, "strip", z.ZodTypeAny, {
4106
+ isPrimary: boolean;
4107
+ email: string;
4108
+ }, {
4109
+ isPrimary: boolean;
4110
+ email: string;
4111
+ }>, "many">;
4112
+ phones: z.ZodArray<z.ZodObject<{
4113
+ phone: z.ZodString;
4114
+ isPrimary: z.ZodBoolean;
4115
+ }, "strip", z.ZodTypeAny, {
4116
+ isPrimary: boolean;
4117
+ phone: string;
4118
+ }, {
4119
+ isPrimary: boolean;
4120
+ phone: string;
4121
+ }>, "many">;
4122
+ otherContacts: z.ZodArray<z.ZodString, "many">;
4123
+ }, "strip", z.ZodTypeAny, {
4124
+ primaryContactId: string;
4125
+ emails: {
4126
+ isPrimary: boolean;
4127
+ email: string;
4128
+ }[];
4129
+ phones: {
4130
+ isPrimary: boolean;
4131
+ phone: string;
4132
+ }[];
4133
+ otherContacts: string[];
4134
+ }, {
4135
+ primaryContactId: string;
4136
+ emails: {
4137
+ isPrimary: boolean;
4138
+ email: string;
4139
+ }[];
4140
+ phones: {
4141
+ isPrimary: boolean;
4142
+ phone: string;
4143
+ }[];
4144
+ otherContacts: string[];
4145
+ }>;
4146
+ response: z.ZodObject<{
4147
+ id: z.ZodString;
4148
+ createdAt: z.ZodDate;
4149
+ updatedAt: z.ZodDate;
4150
+ deletedAt: z.ZodNullable<z.ZodDate>;
4151
+ name: z.ZodString;
4152
+ address: z.ZodNullable<z.ZodString>;
4153
+ channel: z.ZodNullable<z.ZodString>;
4154
+ notes: z.ZodNullable<z.ZodString>;
4155
+ contactProfile: z.ZodNullable<z.ZodString>;
4156
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
4157
+ tags: z.ZodArray<z.ZodObject<{
4158
+ id: z.ZodString;
4159
+ createdAt: z.ZodDate;
4160
+ updatedAt: z.ZodDate;
4161
+ deletedAt: z.ZodNullable<z.ZodDate>;
4162
+ name: z.ZodString;
4163
+ }, "strip", z.ZodTypeAny, {
4164
+ id: string;
4165
+ name: string;
4166
+ createdAt: Date;
4167
+ updatedAt: Date;
4168
+ deletedAt: Date | null;
4169
+ }, {
4170
+ id: string;
4171
+ name: string;
4172
+ createdAt: Date;
4173
+ updatedAt: Date;
4174
+ deletedAt: Date | null;
4175
+ }>, "many">;
4176
+ company: z.ZodNullable<z.ZodObject<Omit<{
4177
+ id: z.ZodString;
4178
+ createdAt: z.ZodDate;
4179
+ updatedAt: z.ZodDate;
4180
+ deletedAt: z.ZodNullable<z.ZodDate>;
4181
+ name: z.ZodOptional<z.ZodString>;
4182
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4183
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4184
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4185
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
4186
+ id: z.ZodString;
4187
+ createdAt: z.ZodDate;
4188
+ updatedAt: z.ZodDate;
4189
+ deletedAt: z.ZodNullable<z.ZodDate>;
4190
+ textValue: z.ZodNullable<z.ZodString>;
4191
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4192
+ numberValue: z.ZodNullable<z.ZodNumber>;
4193
+ dateValue: z.ZodNullable<z.ZodString>;
4194
+ attribute: z.ZodObject<Omit<{
4195
+ id: z.ZodString;
4196
+ createdAt: z.ZodDate;
4197
+ updatedAt: z.ZodDate;
4198
+ deletedAt: z.ZodNullable<z.ZodDate>;
4199
+ systemName: z.ZodString;
4200
+ displayName: z.ZodString;
4201
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4202
+ position: z.ZodNumber;
4203
+ isDefault: z.ZodBoolean;
4204
+ isArchived: z.ZodBoolean;
4205
+ isRequired: z.ZodBoolean;
4206
+ isUnique: z.ZodBoolean;
4207
+ options: z.ZodArray<z.ZodObject<{
4208
+ position: z.ZodNumber;
4209
+ value: z.ZodString;
4210
+ label: z.ZodString;
4211
+ isDefault: z.ZodBoolean;
4212
+ id: z.ZodString;
4213
+ }, "strip", z.ZodTypeAny, {
4214
+ id: string;
4215
+ position: number;
4216
+ value: string;
4217
+ label: string;
4218
+ isDefault: boolean;
4219
+ }, {
4220
+ id: string;
4221
+ position: number;
4222
+ value: string;
4223
+ label: string;
4224
+ isDefault: boolean;
4225
+ }>, "many">;
4226
+ group: z.ZodObject<{
4227
+ id: z.ZodString;
4228
+ createdAt: z.ZodDate;
4229
+ updatedAt: z.ZodDate;
4230
+ deletedAt: z.ZodNullable<z.ZodDate>;
4231
+ systemName: z.ZodString;
4232
+ displayName: z.ZodString;
4233
+ }, "strip", z.ZodTypeAny, {
4234
+ id: string;
4235
+ createdAt: Date;
4236
+ updatedAt: Date;
4237
+ deletedAt: Date | null;
4238
+ systemName: string;
4239
+ displayName: string;
4240
+ }, {
4241
+ id: string;
4242
+ createdAt: Date;
4243
+ updatedAt: Date;
4244
+ deletedAt: Date | null;
4245
+ systemName: string;
4246
+ displayName: string;
4247
+ }>;
4248
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
4249
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4250
+ id: string;
4251
+ position: number;
4252
+ createdAt: Date;
4253
+ updatedAt: Date;
4254
+ deletedAt: Date | null;
4255
+ isDefault: boolean;
4256
+ systemName: string;
4257
+ displayName: string;
4258
+ isArchived: boolean;
4259
+ isRequired: boolean;
4260
+ isUnique: boolean;
4261
+ }, {
4262
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4263
+ id: string;
4264
+ position: number;
4265
+ createdAt: Date;
4266
+ updatedAt: Date;
4267
+ deletedAt: Date | null;
4268
+ isDefault: boolean;
4269
+ systemName: string;
4270
+ displayName: string;
4271
+ isArchived: boolean;
4272
+ isRequired: boolean;
4273
+ isUnique: boolean;
4274
+ }>;
4275
+ }, "strip", z.ZodTypeAny, {
4276
+ id: string;
4277
+ createdAt: Date;
4278
+ updatedAt: Date;
4279
+ deletedAt: Date | null;
4280
+ attribute: {
4281
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4282
+ id: string;
4283
+ position: number;
4284
+ createdAt: Date;
4285
+ updatedAt: Date;
4286
+ deletedAt: Date | null;
4287
+ isDefault: boolean;
4288
+ systemName: string;
4289
+ displayName: string;
4290
+ isArchived: boolean;
4291
+ isRequired: boolean;
4292
+ isUnique: boolean;
4293
+ };
4294
+ textValue: string | null;
4295
+ booleanValue: boolean | null;
4296
+ numberValue: number | null;
4297
+ dateValue: string | null;
4298
+ }, {
4299
+ id: string;
4300
+ createdAt: Date;
4301
+ updatedAt: Date;
4302
+ deletedAt: Date | null;
4303
+ attribute: {
4304
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4305
+ id: string;
4306
+ position: number;
4307
+ createdAt: Date;
4308
+ updatedAt: Date;
4309
+ deletedAt: Date | null;
4310
+ isDefault: boolean;
4311
+ systemName: string;
4312
+ displayName: string;
4313
+ isArchived: boolean;
4314
+ isRequired: boolean;
4315
+ isUnique: boolean;
4316
+ };
4317
+ textValue: string | null;
4318
+ booleanValue: boolean | null;
4319
+ numberValue: number | null;
4320
+ dateValue: string | null;
4321
+ }>, "many">>;
4322
+ }, "customFields">, "strip", z.ZodTypeAny, {
4323
+ id: string;
4324
+ createdAt: Date;
4325
+ updatedAt: Date;
4326
+ deletedAt: Date | null;
4327
+ address?: string | null | undefined;
4328
+ name?: string | undefined;
4329
+ phone?: string | null | undefined;
4330
+ industry?: string | null | undefined;
4331
+ }, {
4332
+ id: string;
4333
+ createdAt: Date;
4334
+ updatedAt: Date;
4335
+ deletedAt: Date | null;
4336
+ address?: string | null | undefined;
4337
+ name?: string | undefined;
4338
+ phone?: string | null | undefined;
4339
+ industry?: string | null | undefined;
4340
+ }>>;
4341
+ customFields: z.ZodArray<z.ZodObject<{
4342
+ id: z.ZodString;
4343
+ createdAt: z.ZodDate;
4344
+ updatedAt: z.ZodDate;
4345
+ deletedAt: z.ZodNullable<z.ZodDate>;
4346
+ textValue: z.ZodNullable<z.ZodString>;
4347
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4348
+ numberValue: z.ZodNullable<z.ZodNumber>;
4349
+ dateValue: z.ZodNullable<z.ZodDate>;
4350
+ attribute: z.ZodObject<Omit<{
4351
+ id: z.ZodString;
4352
+ createdAt: z.ZodDate;
4353
+ updatedAt: z.ZodDate;
4354
+ deletedAt: z.ZodNullable<z.ZodDate>;
4355
+ systemName: z.ZodString;
4356
+ displayName: z.ZodString;
4357
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4358
+ position: z.ZodNumber;
4359
+ isDefault: z.ZodBoolean;
4360
+ isArchived: z.ZodBoolean;
4361
+ isRequired: z.ZodBoolean;
4362
+ isUnique: z.ZodBoolean;
4363
+ options: z.ZodArray<z.ZodObject<{
4364
+ position: z.ZodNumber;
4365
+ value: z.ZodString;
4366
+ label: z.ZodString;
4367
+ isDefault: z.ZodBoolean;
4368
+ id: z.ZodString;
4369
+ }, "strip", z.ZodTypeAny, {
4370
+ id: string;
4371
+ position: number;
4372
+ value: string;
4373
+ label: string;
4374
+ isDefault: boolean;
4375
+ }, {
4376
+ id: string;
4377
+ position: number;
4378
+ value: string;
4379
+ label: string;
4380
+ isDefault: boolean;
4381
+ }>, "many">;
4382
+ group: z.ZodObject<{
4383
+ id: z.ZodString;
4384
+ createdAt: z.ZodDate;
4385
+ updatedAt: z.ZodDate;
4386
+ deletedAt: z.ZodNullable<z.ZodDate>;
4387
+ systemName: z.ZodString;
4388
+ displayName: z.ZodString;
4389
+ }, "strip", z.ZodTypeAny, {
4390
+ id: string;
4391
+ createdAt: Date;
4392
+ updatedAt: Date;
4393
+ deletedAt: Date | null;
4394
+ systemName: string;
4395
+ displayName: string;
4396
+ }, {
4397
+ id: string;
4398
+ createdAt: Date;
4399
+ updatedAt: Date;
4400
+ deletedAt: Date | null;
4401
+ systemName: string;
4402
+ displayName: string;
4403
+ }>;
4404
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
4405
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4406
+ id: string;
4407
+ position: number;
4408
+ createdAt: Date;
4409
+ updatedAt: Date;
4410
+ deletedAt: Date | null;
4411
+ isDefault: boolean;
4412
+ systemName: string;
4413
+ displayName: string;
4414
+ isArchived: boolean;
4415
+ isRequired: boolean;
4416
+ isUnique: boolean;
4417
+ }, {
4418
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4419
+ id: string;
4420
+ position: number;
4421
+ createdAt: Date;
4422
+ updatedAt: Date;
4423
+ deletedAt: Date | null;
4424
+ isDefault: boolean;
4425
+ systemName: string;
4426
+ displayName: string;
4427
+ isArchived: boolean;
4428
+ isRequired: boolean;
4429
+ isUnique: boolean;
4430
+ }>;
4431
+ uploads: z.ZodArray<z.ZodObject<{
4432
+ id: z.ZodString;
4433
+ createdAt: z.ZodDate;
4434
+ updatedAt: z.ZodDate;
4435
+ deletedAt: z.ZodNullable<z.ZodDate>;
4436
+ customFieldId: z.ZodString;
4437
+ upload: z.ZodObject<{
4438
+ id: z.ZodString;
4439
+ createdAt: z.ZodDate;
4440
+ updatedAt: z.ZodDate;
4441
+ deletedAt: z.ZodNullable<z.ZodDate>;
4442
+ bucketName: z.ZodString;
4443
+ fileName: z.ZodString;
4444
+ fileSize: z.ZodNumber;
4445
+ fileKey: z.ZodString;
4446
+ }, "strip", z.ZodTypeAny, {
4447
+ id: string;
4448
+ createdAt: Date;
4449
+ updatedAt: Date;
4450
+ deletedAt: Date | null;
4451
+ fileName: string;
4452
+ fileKey: string;
4453
+ bucketName: string;
4454
+ fileSize: number;
4455
+ }, {
4456
+ id: string;
4457
+ createdAt: Date;
4458
+ updatedAt: Date;
4459
+ deletedAt: Date | null;
4460
+ fileName: string;
4461
+ fileKey: string;
4462
+ bucketName: string;
4463
+ fileSize: number;
4464
+ }>;
4465
+ }, "strip", z.ZodTypeAny, {
4466
+ id: string;
4467
+ createdAt: Date;
4468
+ updatedAt: Date;
4469
+ deletedAt: Date | null;
4470
+ customFieldId: string;
4471
+ upload: {
4472
+ id: string;
4473
+ createdAt: Date;
4474
+ updatedAt: Date;
4475
+ deletedAt: Date | null;
4476
+ fileName: string;
4477
+ fileKey: string;
4478
+ bucketName: string;
4479
+ fileSize: number;
4480
+ };
4481
+ }, {
4482
+ id: string;
4483
+ createdAt: Date;
4484
+ updatedAt: Date;
4485
+ deletedAt: Date | null;
4486
+ customFieldId: string;
4487
+ upload: {
4488
+ id: string;
4489
+ createdAt: Date;
4490
+ updatedAt: Date;
4491
+ deletedAt: Date | null;
4492
+ fileName: string;
4493
+ fileKey: string;
4494
+ bucketName: string;
4495
+ fileSize: number;
4496
+ };
4497
+ }>, "many">;
4498
+ }, "strip", z.ZodTypeAny, {
4499
+ id: string;
4500
+ createdAt: Date;
4501
+ updatedAt: Date;
4502
+ deletedAt: Date | null;
4503
+ attribute: {
4504
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4505
+ id: string;
4506
+ position: number;
4507
+ createdAt: Date;
4508
+ updatedAt: Date;
4509
+ deletedAt: Date | null;
4510
+ isDefault: boolean;
4511
+ systemName: string;
4512
+ displayName: string;
4513
+ isArchived: boolean;
4514
+ isRequired: boolean;
4515
+ isUnique: boolean;
4516
+ };
4517
+ textValue: string | null;
4518
+ booleanValue: boolean | null;
4519
+ numberValue: number | null;
4520
+ dateValue: Date | null;
4521
+ uploads: {
4522
+ id: string;
4523
+ createdAt: Date;
4524
+ updatedAt: Date;
4525
+ deletedAt: Date | null;
4526
+ customFieldId: string;
4527
+ upload: {
4528
+ id: string;
4529
+ createdAt: Date;
4530
+ updatedAt: Date;
4531
+ deletedAt: Date | null;
4532
+ fileName: string;
4533
+ fileKey: string;
4534
+ bucketName: string;
4535
+ fileSize: number;
4536
+ };
4537
+ }[];
4538
+ }, {
4539
+ id: string;
4540
+ createdAt: Date;
4541
+ updatedAt: Date;
4542
+ deletedAt: Date | null;
4543
+ attribute: {
4544
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4545
+ id: string;
4546
+ position: number;
4547
+ createdAt: Date;
4548
+ updatedAt: Date;
4549
+ deletedAt: Date | null;
4550
+ isDefault: boolean;
4551
+ systemName: string;
4552
+ displayName: string;
4553
+ isArchived: boolean;
4554
+ isRequired: boolean;
4555
+ isUnique: boolean;
4556
+ };
4557
+ textValue: string | null;
4558
+ booleanValue: boolean | null;
4559
+ numberValue: number | null;
4560
+ dateValue: Date | null;
4561
+ uploads: {
4562
+ id: string;
4563
+ createdAt: Date;
4564
+ updatedAt: Date;
4565
+ deletedAt: Date | null;
4566
+ customFieldId: string;
4567
+ upload: {
4568
+ id: string;
4569
+ createdAt: Date;
4570
+ updatedAt: Date;
4571
+ deletedAt: Date | null;
4572
+ fileName: string;
4573
+ fileKey: string;
4574
+ bucketName: string;
4575
+ fileSize: number;
4576
+ };
4577
+ }[];
4578
+ }>, "many">;
4579
+ contactEmails: z.ZodArray<z.ZodObject<{
4580
+ id: z.ZodString;
4581
+ createdAt: z.ZodDate;
4582
+ updatedAt: z.ZodDate;
4583
+ deletedAt: z.ZodNullable<z.ZodDate>;
4584
+ email: z.ZodString;
4585
+ isPrimary: z.ZodBoolean;
4586
+ }, "strip", z.ZodTypeAny, {
4587
+ id: string;
4588
+ isPrimary: boolean;
4589
+ email: string;
4590
+ createdAt: Date;
4591
+ updatedAt: Date;
4592
+ deletedAt: Date | null;
4593
+ }, {
4594
+ id: string;
4595
+ isPrimary: boolean;
4596
+ email: string;
4597
+ createdAt: Date;
4598
+ updatedAt: Date;
4599
+ deletedAt: Date | null;
4600
+ }>, "many">;
4601
+ contactPhones: z.ZodArray<z.ZodObject<{
4602
+ id: z.ZodString;
4603
+ createdAt: z.ZodDate;
4604
+ updatedAt: z.ZodDate;
4605
+ deletedAt: z.ZodNullable<z.ZodDate>;
4606
+ phone: z.ZodString;
4607
+ isPrimary: z.ZodBoolean;
4608
+ }, "strip", z.ZodTypeAny, {
4609
+ id: string;
4610
+ isPrimary: boolean;
4611
+ createdAt: Date;
4612
+ updatedAt: Date;
4613
+ deletedAt: Date | null;
4614
+ phone: string;
4615
+ }, {
4616
+ id: string;
4617
+ isPrimary: boolean;
4618
+ createdAt: Date;
4619
+ updatedAt: Date;
4620
+ deletedAt: Date | null;
4621
+ phone: string;
4622
+ }>, "many">;
4623
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4624
+ id: z.ZodString;
4625
+ createdAt: z.ZodDate;
4626
+ updatedAt: z.ZodDate;
4627
+ deletedAt: z.ZodNullable<z.ZodDate>;
4628
+ entityId: z.ZodString;
4629
+ description: z.ZodString;
4630
+ entityType: z.ZodObject<{
4631
+ id: z.ZodString;
4632
+ createdAt: z.ZodDate;
4633
+ updatedAt: z.ZodDate;
4634
+ deletedAt: z.ZodNullable<z.ZodDate>;
4635
+ entity: z.ZodString;
4636
+ description: z.ZodNullable<z.ZodString>;
4637
+ }, "strip", z.ZodTypeAny, {
4638
+ id: string;
4639
+ description: string | null;
4640
+ createdAt: Date;
4641
+ updatedAt: Date;
4642
+ deletedAt: Date | null;
4643
+ entity: string;
4644
+ }, {
4645
+ id: string;
4646
+ description: string | null;
4647
+ createdAt: Date;
4648
+ updatedAt: Date;
4649
+ deletedAt: Date | null;
4650
+ entity: string;
4651
+ }>;
4652
+ }, "strip", z.ZodTypeAny, {
4653
+ id: string;
4654
+ description: string;
4655
+ createdAt: Date;
4656
+ updatedAt: Date;
4657
+ deletedAt: Date | null;
4658
+ entityId: string;
4659
+ entityType: {
4660
+ id: string;
4661
+ description: string | null;
4662
+ createdAt: Date;
4663
+ updatedAt: Date;
4664
+ deletedAt: Date | null;
4665
+ entity: string;
4666
+ };
4667
+ }, {
4668
+ id: string;
4669
+ description: string;
4670
+ createdAt: Date;
4671
+ updatedAt: Date;
4672
+ deletedAt: Date | null;
4673
+ entityId: string;
4674
+ entityType: {
4675
+ id: string;
4676
+ description: string | null;
4677
+ createdAt: Date;
4678
+ updatedAt: Date;
4679
+ deletedAt: Date | null;
4680
+ entity: string;
4681
+ };
4682
+ }>, "many">>;
4683
+ }, "strip", z.ZodTypeAny, {
4684
+ id: string;
4685
+ channel: string | null;
4686
+ address: string | null;
4687
+ name: string;
4688
+ createdAt: Date;
4689
+ updatedAt: Date;
4690
+ deletedAt: Date | null;
4691
+ customFields: {
4692
+ id: string;
4693
+ createdAt: Date;
4694
+ updatedAt: Date;
4695
+ deletedAt: Date | null;
4696
+ attribute: {
4697
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4698
+ id: string;
4699
+ position: number;
4700
+ createdAt: Date;
4701
+ updatedAt: Date;
4702
+ deletedAt: Date | null;
4703
+ isDefault: boolean;
4704
+ systemName: string;
4705
+ displayName: string;
4706
+ isArchived: boolean;
4707
+ isRequired: boolean;
4708
+ isUnique: boolean;
4709
+ };
4710
+ textValue: string | null;
4711
+ booleanValue: boolean | null;
4712
+ numberValue: number | null;
4713
+ dateValue: Date | null;
4714
+ uploads: {
4715
+ id: string;
4716
+ createdAt: Date;
4717
+ updatedAt: Date;
4718
+ deletedAt: Date | null;
4719
+ customFieldId: string;
4720
+ upload: {
4721
+ id: string;
4722
+ createdAt: Date;
4723
+ updatedAt: Date;
4724
+ deletedAt: Date | null;
4725
+ fileName: string;
4726
+ fileKey: string;
4727
+ bucketName: string;
4728
+ fileSize: number;
4729
+ };
4730
+ }[];
4731
+ }[];
4732
+ notes: string | null;
4733
+ contactProfile: string | null;
4734
+ socialProfileUrl: string | null;
4735
+ tags: {
4736
+ id: string;
4737
+ name: string;
4738
+ createdAt: Date;
4739
+ updatedAt: Date;
4740
+ deletedAt: Date | null;
4741
+ }[];
4742
+ company: {
4743
+ id: string;
4744
+ createdAt: Date;
4745
+ updatedAt: Date;
4746
+ deletedAt: Date | null;
4747
+ address?: string | null | undefined;
4748
+ name?: string | undefined;
4749
+ phone?: string | null | undefined;
4750
+ industry?: string | null | undefined;
4751
+ } | null;
4752
+ contactEmails: {
4753
+ id: string;
4754
+ isPrimary: boolean;
4755
+ email: string;
4756
+ createdAt: Date;
4757
+ updatedAt: Date;
4758
+ deletedAt: Date | null;
4759
+ }[];
4760
+ contactPhones: {
4761
+ id: string;
4762
+ isPrimary: boolean;
4763
+ createdAt: Date;
4764
+ updatedAt: Date;
4765
+ deletedAt: Date | null;
4766
+ phone: string;
4767
+ }[];
4768
+ activityLogs?: {
4769
+ id: string;
4770
+ description: string;
4771
+ createdAt: Date;
4772
+ updatedAt: Date;
4773
+ deletedAt: Date | null;
4774
+ entityId: string;
4775
+ entityType: {
4776
+ id: string;
4777
+ description: string | null;
4778
+ createdAt: Date;
4779
+ updatedAt: Date;
4780
+ deletedAt: Date | null;
4781
+ entity: string;
4782
+ };
4783
+ }[] | undefined;
4784
+ }, {
4785
+ id: string;
4786
+ channel: string | null;
4787
+ address: string | null;
4788
+ name: string;
4789
+ createdAt: Date;
4790
+ updatedAt: Date;
4791
+ deletedAt: Date | null;
4792
+ customFields: {
4793
+ id: string;
4794
+ createdAt: Date;
4795
+ updatedAt: Date;
4796
+ deletedAt: Date | null;
4797
+ attribute: {
4798
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4799
+ id: string;
4800
+ position: number;
4801
+ createdAt: Date;
4802
+ updatedAt: Date;
4803
+ deletedAt: Date | null;
4804
+ isDefault: boolean;
4805
+ systemName: string;
4806
+ displayName: string;
4807
+ isArchived: boolean;
4808
+ isRequired: boolean;
4809
+ isUnique: boolean;
4810
+ };
4811
+ textValue: string | null;
4812
+ booleanValue: boolean | null;
4813
+ numberValue: number | null;
4814
+ dateValue: Date | null;
4815
+ uploads: {
4816
+ id: string;
4817
+ createdAt: Date;
4818
+ updatedAt: Date;
4819
+ deletedAt: Date | null;
4820
+ customFieldId: string;
4821
+ upload: {
4822
+ id: string;
4823
+ createdAt: Date;
4824
+ updatedAt: Date;
4825
+ deletedAt: Date | null;
4826
+ fileName: string;
4827
+ fileKey: string;
4828
+ bucketName: string;
4829
+ fileSize: number;
4830
+ };
4831
+ }[];
4832
+ }[];
4833
+ notes: string | null;
4834
+ contactProfile: string | null;
4835
+ socialProfileUrl: string | null;
4836
+ tags: {
4837
+ id: string;
4838
+ name: string;
4839
+ createdAt: Date;
4840
+ updatedAt: Date;
4841
+ deletedAt: Date | null;
4842
+ }[];
4843
+ company: {
4844
+ id: string;
4845
+ createdAt: Date;
4846
+ updatedAt: Date;
4847
+ deletedAt: Date | null;
4848
+ address?: string | null | undefined;
4849
+ name?: string | undefined;
4850
+ phone?: string | null | undefined;
4851
+ industry?: string | null | undefined;
4852
+ } | null;
4853
+ contactEmails: {
4854
+ id: string;
4855
+ isPrimary: boolean;
4856
+ email: string;
4857
+ createdAt: Date;
4858
+ updatedAt: Date;
4859
+ deletedAt: Date | null;
4860
+ }[];
4861
+ contactPhones: {
4862
+ id: string;
4863
+ isPrimary: boolean;
4864
+ createdAt: Date;
4865
+ updatedAt: Date;
4866
+ deletedAt: Date | null;
4867
+ phone: string;
4868
+ }[];
4869
+ activityLogs?: {
4870
+ id: string;
4871
+ description: string;
4872
+ createdAt: Date;
4873
+ updatedAt: Date;
4874
+ deletedAt: Date | null;
4875
+ entityId: string;
4876
+ entityType: {
4877
+ id: string;
4878
+ description: string | null;
4879
+ createdAt: Date;
4880
+ updatedAt: Date;
4881
+ deletedAt: Date | null;
4882
+ entity: string;
4883
+ };
4884
+ }[] | undefined;
4885
+ }>;
4886
+ };
4887
+ checkContactPhone: {
4888
+ request: z.ZodObject<{
4889
+ contactId: z.ZodOptional<z.ZodString>;
4890
+ phoneNumber: z.ZodString;
4891
+ }, "strip", z.ZodTypeAny, {
4892
+ phoneNumber: string;
4893
+ contactId?: string | undefined;
4894
+ }, {
4895
+ phoneNumber: string;
4896
+ contactId?: string | undefined;
4897
+ }>;
4898
+ response: z.ZodBoolean;
4899
+ };
4900
+ checkContactEmail: {
4901
+ request: z.ZodObject<{
4902
+ contactId: z.ZodOptional<z.ZodString>;
4903
+ email: z.ZodString;
4904
+ }, "strip", z.ZodTypeAny, {
4905
+ email: string;
4906
+ contactId?: string | undefined;
4907
+ }, {
4908
+ email: string;
4909
+ contactId?: string | undefined;
4910
+ }>;
4911
+ response: z.ZodBoolean;
4912
+ };
4913
+ filterContacts: {
4914
+ request: z.ZodObject<{
4915
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4916
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4917
+ keyword: z.ZodOptional<z.ZodString>;
4918
+ }, "strip", z.ZodTypeAny, {
4919
+ page?: number | undefined;
4920
+ pageSize?: number | undefined;
4921
+ keyword?: string | undefined;
4922
+ }, {
4923
+ page?: number | undefined;
4924
+ pageSize?: number | undefined;
4925
+ keyword?: string | undefined;
4926
+ }>;
4927
+ response: {
4928
+ page: z.ZodNumber;
4929
+ pageSize: z.ZodNumber;
4930
+ total: z.ZodNumber;
4931
+ lastPage: z.ZodNumber;
4932
+ data: z.ZodArray<z.ZodObject<{
4933
+ id: z.ZodString;
4934
+ createdAt: z.ZodDate;
4935
+ updatedAt: z.ZodDate;
4936
+ deletedAt: z.ZodNullable<z.ZodDate>;
4937
+ name: z.ZodString;
4938
+ address: z.ZodNullable<z.ZodString>;
4939
+ channel: z.ZodNullable<z.ZodString>;
4940
+ notes: z.ZodNullable<z.ZodString>;
4941
+ contactProfile: z.ZodNullable<z.ZodString>;
4942
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
4943
+ tags: z.ZodArray<z.ZodObject<{
4944
+ id: z.ZodString;
4945
+ createdAt: z.ZodDate;
4946
+ updatedAt: z.ZodDate;
4947
+ deletedAt: z.ZodNullable<z.ZodDate>;
4948
+ name: z.ZodString;
4949
+ }, "strip", z.ZodTypeAny, {
4950
+ id: string;
4951
+ name: string;
4952
+ createdAt: Date;
4953
+ updatedAt: Date;
4954
+ deletedAt: Date | null;
4955
+ }, {
4956
+ id: string;
4957
+ name: string;
4958
+ createdAt: Date;
4959
+ updatedAt: Date;
4960
+ deletedAt: Date | null;
4961
+ }>, "many">;
4962
+ company: z.ZodNullable<z.ZodObject<Omit<{
4963
+ id: z.ZodString;
4964
+ createdAt: z.ZodDate;
4965
+ updatedAt: z.ZodDate;
4966
+ deletedAt: z.ZodNullable<z.ZodDate>;
4967
+ name: z.ZodOptional<z.ZodString>;
4968
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4969
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4970
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4971
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
4972
+ id: z.ZodString;
4973
+ createdAt: z.ZodDate;
4974
+ updatedAt: z.ZodDate;
4975
+ deletedAt: z.ZodNullable<z.ZodDate>;
4976
+ textValue: z.ZodNullable<z.ZodString>;
4977
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4978
+ numberValue: z.ZodNullable<z.ZodNumber>;
4979
+ dateValue: z.ZodNullable<z.ZodString>;
4980
+ attribute: z.ZodObject<Omit<{
4981
+ id: z.ZodString;
4982
+ createdAt: z.ZodDate;
4983
+ updatedAt: z.ZodDate;
4984
+ deletedAt: z.ZodNullable<z.ZodDate>;
4985
+ systemName: z.ZodString;
4986
+ displayName: z.ZodString;
4987
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4988
+ position: z.ZodNumber;
4989
+ isDefault: z.ZodBoolean;
4990
+ isArchived: z.ZodBoolean;
4991
+ isRequired: z.ZodBoolean;
4992
+ isUnique: z.ZodBoolean;
4993
+ options: z.ZodArray<z.ZodObject<{
4994
+ position: z.ZodNumber;
4995
+ value: z.ZodString;
4996
+ label: z.ZodString;
4997
+ isDefault: z.ZodBoolean;
4998
+ id: z.ZodString;
4999
+ }, "strip", z.ZodTypeAny, {
5000
+ id: string;
5001
+ position: number;
5002
+ value: string;
5003
+ label: string;
5004
+ isDefault: boolean;
5005
+ }, {
5006
+ id: string;
5007
+ position: number;
5008
+ value: string;
5009
+ label: string;
5010
+ isDefault: boolean;
5011
+ }>, "many">;
5012
+ group: z.ZodObject<{
5013
+ id: z.ZodString;
5014
+ createdAt: z.ZodDate;
5015
+ updatedAt: z.ZodDate;
5016
+ deletedAt: z.ZodNullable<z.ZodDate>;
5017
+ systemName: z.ZodString;
5018
+ displayName: z.ZodString;
5019
+ }, "strip", z.ZodTypeAny, {
5020
+ id: string;
5021
+ createdAt: Date;
5022
+ updatedAt: Date;
5023
+ deletedAt: Date | null;
5024
+ systemName: string;
5025
+ displayName: string;
5026
+ }, {
5027
+ id: string;
5028
+ createdAt: Date;
5029
+ updatedAt: Date;
5030
+ deletedAt: Date | null;
5031
+ systemName: string;
5032
+ displayName: string;
5033
+ }>;
5034
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
5035
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5036
+ id: string;
5037
+ position: number;
5038
+ createdAt: Date;
5039
+ updatedAt: Date;
5040
+ deletedAt: Date | null;
5041
+ isDefault: boolean;
5042
+ systemName: string;
5043
+ displayName: string;
5044
+ isArchived: boolean;
5045
+ isRequired: boolean;
5046
+ isUnique: boolean;
5047
+ }, {
5048
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5049
+ id: string;
5050
+ position: number;
5051
+ createdAt: Date;
5052
+ updatedAt: Date;
5053
+ deletedAt: Date | null;
5054
+ isDefault: boolean;
5055
+ systemName: string;
5056
+ displayName: string;
5057
+ isArchived: boolean;
5058
+ isRequired: boolean;
5059
+ isUnique: boolean;
5060
+ }>;
5061
+ }, "strip", z.ZodTypeAny, {
5062
+ id: string;
5063
+ createdAt: Date;
5064
+ updatedAt: Date;
5065
+ deletedAt: Date | null;
5066
+ attribute: {
5067
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5068
+ id: string;
5069
+ position: number;
5070
+ createdAt: Date;
5071
+ updatedAt: Date;
5072
+ deletedAt: Date | null;
5073
+ isDefault: boolean;
5074
+ systemName: string;
5075
+ displayName: string;
5076
+ isArchived: boolean;
5077
+ isRequired: boolean;
5078
+ isUnique: boolean;
5079
+ };
5080
+ textValue: string | null;
5081
+ booleanValue: boolean | null;
5082
+ numberValue: number | null;
5083
+ dateValue: string | null;
5084
+ }, {
5085
+ id: string;
5086
+ createdAt: Date;
5087
+ updatedAt: Date;
5088
+ deletedAt: Date | null;
5089
+ attribute: {
5090
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5091
+ id: string;
5092
+ position: number;
5093
+ createdAt: Date;
5094
+ updatedAt: Date;
5095
+ deletedAt: Date | null;
5096
+ isDefault: boolean;
5097
+ systemName: string;
5098
+ displayName: string;
5099
+ isArchived: boolean;
5100
+ isRequired: boolean;
5101
+ isUnique: boolean;
5102
+ };
5103
+ textValue: string | null;
5104
+ booleanValue: boolean | null;
5105
+ numberValue: number | null;
5106
+ dateValue: string | null;
5107
+ }>, "many">>;
5108
+ }, "customFields">, "strip", z.ZodTypeAny, {
5109
+ id: string;
5110
+ createdAt: Date;
5111
+ updatedAt: Date;
5112
+ deletedAt: Date | null;
5113
+ address?: string | null | undefined;
5114
+ name?: string | undefined;
5115
+ phone?: string | null | undefined;
5116
+ industry?: string | null | undefined;
5117
+ }, {
5118
+ id: string;
5119
+ createdAt: Date;
5120
+ updatedAt: Date;
5121
+ deletedAt: Date | null;
5122
+ address?: string | null | undefined;
5123
+ name?: string | undefined;
5124
+ phone?: string | null | undefined;
5125
+ industry?: string | null | undefined;
5126
+ }>>;
5127
+ customFields: z.ZodArray<z.ZodObject<{
5128
+ id: z.ZodString;
5129
+ createdAt: z.ZodDate;
5130
+ updatedAt: z.ZodDate;
5131
+ deletedAt: z.ZodNullable<z.ZodDate>;
5132
+ textValue: z.ZodNullable<z.ZodString>;
5133
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
5134
+ numberValue: z.ZodNullable<z.ZodNumber>;
5135
+ dateValue: z.ZodNullable<z.ZodDate>;
5136
+ attribute: z.ZodObject<Omit<{
5137
+ id: z.ZodString;
5138
+ createdAt: z.ZodDate;
5139
+ updatedAt: z.ZodDate;
5140
+ deletedAt: z.ZodNullable<z.ZodDate>;
5141
+ systemName: z.ZodString;
5142
+ displayName: z.ZodString;
5143
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
5144
+ position: z.ZodNumber;
5145
+ isDefault: z.ZodBoolean;
5146
+ isArchived: z.ZodBoolean;
5147
+ isRequired: z.ZodBoolean;
5148
+ isUnique: z.ZodBoolean;
5149
+ options: z.ZodArray<z.ZodObject<{
5150
+ position: z.ZodNumber;
5151
+ value: z.ZodString;
5152
+ label: z.ZodString;
5153
+ isDefault: z.ZodBoolean;
5154
+ id: z.ZodString;
5155
+ }, "strip", z.ZodTypeAny, {
5156
+ id: string;
5157
+ position: number;
5158
+ value: string;
5159
+ label: string;
5160
+ isDefault: boolean;
5161
+ }, {
5162
+ id: string;
5163
+ position: number;
5164
+ value: string;
5165
+ label: string;
5166
+ isDefault: boolean;
5167
+ }>, "many">;
5168
+ group: z.ZodObject<{
5169
+ id: z.ZodString;
5170
+ createdAt: z.ZodDate;
5171
+ updatedAt: z.ZodDate;
5172
+ deletedAt: z.ZodNullable<z.ZodDate>;
5173
+ systemName: z.ZodString;
5174
+ displayName: z.ZodString;
5175
+ }, "strip", z.ZodTypeAny, {
5176
+ id: string;
5177
+ createdAt: Date;
5178
+ updatedAt: Date;
5179
+ deletedAt: Date | null;
5180
+ systemName: string;
5181
+ displayName: string;
5182
+ }, {
5183
+ id: string;
5184
+ createdAt: Date;
5185
+ updatedAt: Date;
5186
+ deletedAt: Date | null;
5187
+ systemName: string;
5188
+ displayName: string;
5189
+ }>;
5190
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
5191
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5192
+ id: string;
5193
+ position: number;
5194
+ createdAt: Date;
5195
+ updatedAt: Date;
5196
+ deletedAt: Date | null;
5197
+ isDefault: boolean;
5198
+ systemName: string;
5199
+ displayName: string;
5200
+ isArchived: boolean;
5201
+ isRequired: boolean;
5202
+ isUnique: boolean;
5203
+ }, {
5204
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5205
+ id: string;
5206
+ position: number;
5207
+ createdAt: Date;
5208
+ updatedAt: Date;
5209
+ deletedAt: Date | null;
5210
+ isDefault: boolean;
5211
+ systemName: string;
5212
+ displayName: string;
5213
+ isArchived: boolean;
5214
+ isRequired: boolean;
5215
+ isUnique: boolean;
5216
+ }>;
5217
+ uploads: z.ZodArray<z.ZodObject<{
5218
+ id: z.ZodString;
5219
+ createdAt: z.ZodDate;
5220
+ updatedAt: z.ZodDate;
5221
+ deletedAt: z.ZodNullable<z.ZodDate>;
5222
+ customFieldId: z.ZodString;
5223
+ upload: z.ZodObject<{
5224
+ id: z.ZodString;
5225
+ createdAt: z.ZodDate;
5226
+ updatedAt: z.ZodDate;
5227
+ deletedAt: z.ZodNullable<z.ZodDate>;
5228
+ bucketName: z.ZodString;
5229
+ fileName: z.ZodString;
5230
+ fileSize: z.ZodNumber;
5231
+ fileKey: z.ZodString;
5232
+ }, "strip", z.ZodTypeAny, {
5233
+ id: string;
5234
+ createdAt: Date;
5235
+ updatedAt: Date;
5236
+ deletedAt: Date | null;
5237
+ fileName: string;
5238
+ fileKey: string;
5239
+ bucketName: string;
5240
+ fileSize: number;
5241
+ }, {
5242
+ id: string;
5243
+ createdAt: Date;
5244
+ updatedAt: Date;
5245
+ deletedAt: Date | null;
5246
+ fileName: string;
5247
+ fileKey: string;
5248
+ bucketName: string;
5249
+ fileSize: number;
5250
+ }>;
5251
+ }, "strip", z.ZodTypeAny, {
5252
+ id: string;
5253
+ createdAt: Date;
5254
+ updatedAt: Date;
5255
+ deletedAt: Date | null;
5256
+ customFieldId: string;
5257
+ upload: {
5258
+ id: string;
5259
+ createdAt: Date;
5260
+ updatedAt: Date;
5261
+ deletedAt: Date | null;
5262
+ fileName: string;
5263
+ fileKey: string;
5264
+ bucketName: string;
5265
+ fileSize: number;
5266
+ };
5267
+ }, {
5268
+ id: string;
5269
+ createdAt: Date;
5270
+ updatedAt: Date;
5271
+ deletedAt: Date | null;
5272
+ customFieldId: string;
5273
+ upload: {
5274
+ id: string;
5275
+ createdAt: Date;
5276
+ updatedAt: Date;
5277
+ deletedAt: Date | null;
5278
+ fileName: string;
5279
+ fileKey: string;
5280
+ bucketName: string;
5281
+ fileSize: number;
5282
+ };
5283
+ }>, "many">;
5284
+ }, "strip", z.ZodTypeAny, {
5285
+ id: string;
5286
+ createdAt: Date;
5287
+ updatedAt: Date;
5288
+ deletedAt: Date | null;
5289
+ attribute: {
5290
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5291
+ id: string;
5292
+ position: number;
5293
+ createdAt: Date;
5294
+ updatedAt: Date;
5295
+ deletedAt: Date | null;
5296
+ isDefault: boolean;
5297
+ systemName: string;
5298
+ displayName: string;
5299
+ isArchived: boolean;
5300
+ isRequired: boolean;
5301
+ isUnique: boolean;
5302
+ };
5303
+ textValue: string | null;
5304
+ booleanValue: boolean | null;
5305
+ numberValue: number | null;
5306
+ dateValue: Date | null;
5307
+ uploads: {
5308
+ id: string;
5309
+ createdAt: Date;
5310
+ updatedAt: Date;
5311
+ deletedAt: Date | null;
5312
+ customFieldId: string;
5313
+ upload: {
5314
+ id: string;
5315
+ createdAt: Date;
5316
+ updatedAt: Date;
5317
+ deletedAt: Date | null;
5318
+ fileName: string;
5319
+ fileKey: string;
5320
+ bucketName: string;
5321
+ fileSize: number;
5322
+ };
5323
+ }[];
5324
+ }, {
5325
+ id: string;
5326
+ createdAt: Date;
5327
+ updatedAt: Date;
5328
+ deletedAt: Date | null;
5329
+ attribute: {
5330
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5331
+ id: string;
5332
+ position: number;
5333
+ createdAt: Date;
5334
+ updatedAt: Date;
5335
+ deletedAt: Date | null;
5336
+ isDefault: boolean;
5337
+ systemName: string;
5338
+ displayName: string;
5339
+ isArchived: boolean;
5340
+ isRequired: boolean;
5341
+ isUnique: boolean;
5342
+ };
5343
+ textValue: string | null;
5344
+ booleanValue: boolean | null;
5345
+ numberValue: number | null;
5346
+ dateValue: Date | null;
5347
+ uploads: {
5348
+ id: string;
5349
+ createdAt: Date;
5350
+ updatedAt: Date;
5351
+ deletedAt: Date | null;
5352
+ customFieldId: string;
5353
+ upload: {
5354
+ id: string;
5355
+ createdAt: Date;
5356
+ updatedAt: Date;
5357
+ deletedAt: Date | null;
5358
+ fileName: string;
5359
+ fileKey: string;
5360
+ bucketName: string;
5361
+ fileSize: number;
5362
+ };
5363
+ }[];
5364
+ }>, "many">;
5365
+ contactEmails: z.ZodArray<z.ZodObject<{
5366
+ id: z.ZodString;
5367
+ createdAt: z.ZodDate;
5368
+ updatedAt: z.ZodDate;
5369
+ deletedAt: z.ZodNullable<z.ZodDate>;
5370
+ email: z.ZodString;
5371
+ isPrimary: z.ZodBoolean;
5372
+ }, "strip", z.ZodTypeAny, {
5373
+ id: string;
5374
+ isPrimary: boolean;
5375
+ email: string;
5376
+ createdAt: Date;
5377
+ updatedAt: Date;
5378
+ deletedAt: Date | null;
5379
+ }, {
5380
+ id: string;
5381
+ isPrimary: boolean;
5382
+ email: string;
5383
+ createdAt: Date;
5384
+ updatedAt: Date;
5385
+ deletedAt: Date | null;
5386
+ }>, "many">;
5387
+ contactPhones: z.ZodArray<z.ZodObject<{
5388
+ id: z.ZodString;
5389
+ createdAt: z.ZodDate;
5390
+ updatedAt: z.ZodDate;
5391
+ deletedAt: z.ZodNullable<z.ZodDate>;
5392
+ phone: z.ZodString;
5393
+ isPrimary: z.ZodBoolean;
5394
+ }, "strip", z.ZodTypeAny, {
5395
+ id: string;
5396
+ isPrimary: boolean;
5397
+ createdAt: Date;
5398
+ updatedAt: Date;
5399
+ deletedAt: Date | null;
5400
+ phone: string;
5401
+ }, {
5402
+ id: string;
5403
+ isPrimary: boolean;
5404
+ createdAt: Date;
5405
+ updatedAt: Date;
5406
+ deletedAt: Date | null;
5407
+ phone: string;
5408
+ }>, "many">;
5409
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5410
+ id: z.ZodString;
5411
+ createdAt: z.ZodDate;
5412
+ updatedAt: z.ZodDate;
5413
+ deletedAt: z.ZodNullable<z.ZodDate>;
5414
+ entityId: z.ZodString;
5415
+ description: z.ZodString;
5416
+ entityType: z.ZodObject<{
5417
+ id: z.ZodString;
5418
+ createdAt: z.ZodDate;
5419
+ updatedAt: z.ZodDate;
5420
+ deletedAt: z.ZodNullable<z.ZodDate>;
5421
+ entity: z.ZodString;
5422
+ description: z.ZodNullable<z.ZodString>;
5423
+ }, "strip", z.ZodTypeAny, {
5424
+ id: string;
5425
+ description: string | null;
5426
+ createdAt: Date;
5427
+ updatedAt: Date;
5428
+ deletedAt: Date | null;
5429
+ entity: string;
5430
+ }, {
5431
+ id: string;
5432
+ description: string | null;
5433
+ createdAt: Date;
5434
+ updatedAt: Date;
5435
+ deletedAt: Date | null;
5436
+ entity: string;
5437
+ }>;
5438
+ }, "strip", z.ZodTypeAny, {
5439
+ id: string;
5440
+ description: string;
5441
+ createdAt: Date;
5442
+ updatedAt: Date;
5443
+ deletedAt: Date | null;
5444
+ entityId: string;
5445
+ entityType: {
5446
+ id: string;
5447
+ description: string | null;
5448
+ createdAt: Date;
5449
+ updatedAt: Date;
5450
+ deletedAt: Date | null;
5451
+ entity: string;
5452
+ };
5453
+ }, {
5454
+ id: string;
5455
+ description: string;
5456
+ createdAt: Date;
5457
+ updatedAt: Date;
5458
+ deletedAt: Date | null;
5459
+ entityId: string;
5460
+ entityType: {
5461
+ id: string;
5462
+ description: string | null;
5463
+ createdAt: Date;
5464
+ updatedAt: Date;
5465
+ deletedAt: Date | null;
5466
+ entity: string;
5467
+ };
5468
+ }>, "many">>;
5469
+ }, "strip", z.ZodTypeAny, {
5470
+ id: string;
5471
+ channel: string | null;
5472
+ address: string | null;
5473
+ name: string;
5474
+ createdAt: Date;
5475
+ updatedAt: Date;
5476
+ deletedAt: Date | null;
5477
+ customFields: {
5478
+ id: string;
5479
+ createdAt: Date;
5480
+ updatedAt: Date;
5481
+ deletedAt: Date | null;
5482
+ attribute: {
5483
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5484
+ id: string;
5485
+ position: number;
5486
+ createdAt: Date;
5487
+ updatedAt: Date;
5488
+ deletedAt: Date | null;
5489
+ isDefault: boolean;
5490
+ systemName: string;
5491
+ displayName: string;
5492
+ isArchived: boolean;
5493
+ isRequired: boolean;
5494
+ isUnique: boolean;
5495
+ };
5496
+ textValue: string | null;
5497
+ booleanValue: boolean | null;
5498
+ numberValue: number | null;
5499
+ dateValue: Date | null;
5500
+ uploads: {
5501
+ id: string;
5502
+ createdAt: Date;
5503
+ updatedAt: Date;
5504
+ deletedAt: Date | null;
5505
+ customFieldId: string;
5506
+ upload: {
5507
+ id: string;
5508
+ createdAt: Date;
5509
+ updatedAt: Date;
5510
+ deletedAt: Date | null;
5511
+ fileName: string;
5512
+ fileKey: string;
5513
+ bucketName: string;
5514
+ fileSize: number;
5515
+ };
5516
+ }[];
5517
+ }[];
5518
+ notes: string | null;
5519
+ contactProfile: string | null;
5520
+ socialProfileUrl: string | null;
5521
+ tags: {
5522
+ id: string;
5523
+ name: string;
5524
+ createdAt: Date;
5525
+ updatedAt: Date;
5526
+ deletedAt: Date | null;
5527
+ }[];
5528
+ company: {
5529
+ id: string;
5530
+ createdAt: Date;
5531
+ updatedAt: Date;
5532
+ deletedAt: Date | null;
5533
+ address?: string | null | undefined;
5534
+ name?: string | undefined;
5535
+ phone?: string | null | undefined;
5536
+ industry?: string | null | undefined;
5537
+ } | null;
5538
+ contactEmails: {
5539
+ id: string;
5540
+ isPrimary: boolean;
5541
+ email: string;
5542
+ createdAt: Date;
5543
+ updatedAt: Date;
5544
+ deletedAt: Date | null;
5545
+ }[];
5546
+ contactPhones: {
5547
+ id: string;
5548
+ isPrimary: boolean;
5549
+ createdAt: Date;
5550
+ updatedAt: Date;
5551
+ deletedAt: Date | null;
5552
+ phone: string;
5553
+ }[];
5554
+ activityLogs?: {
5555
+ id: string;
5556
+ description: string;
5557
+ createdAt: Date;
5558
+ updatedAt: Date;
5559
+ deletedAt: Date | null;
5560
+ entityId: string;
5561
+ entityType: {
5562
+ id: string;
5563
+ description: string | null;
5564
+ createdAt: Date;
5565
+ updatedAt: Date;
5566
+ deletedAt: Date | null;
5567
+ entity: string;
5568
+ };
5569
+ }[] | undefined;
5570
+ }, {
5571
+ id: string;
5572
+ channel: string | null;
5573
+ address: string | null;
5574
+ name: string;
5575
+ createdAt: Date;
5576
+ updatedAt: Date;
5577
+ deletedAt: Date | null;
5578
+ customFields: {
5579
+ id: string;
5580
+ createdAt: Date;
5581
+ updatedAt: Date;
5582
+ deletedAt: Date | null;
5583
+ attribute: {
5584
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5585
+ id: string;
5586
+ position: number;
5587
+ createdAt: Date;
5588
+ updatedAt: Date;
5589
+ deletedAt: Date | null;
5590
+ isDefault: boolean;
5591
+ systemName: string;
5592
+ displayName: string;
5593
+ isArchived: boolean;
5594
+ isRequired: boolean;
5595
+ isUnique: boolean;
5596
+ };
5597
+ textValue: string | null;
5598
+ booleanValue: boolean | null;
5599
+ numberValue: number | null;
5600
+ dateValue: Date | null;
5601
+ uploads: {
5602
+ id: string;
5603
+ createdAt: Date;
5604
+ updatedAt: Date;
5605
+ deletedAt: Date | null;
5606
+ customFieldId: string;
5607
+ upload: {
5608
+ id: string;
5609
+ createdAt: Date;
5610
+ updatedAt: Date;
5611
+ deletedAt: Date | null;
5612
+ fileName: string;
5613
+ fileKey: string;
5614
+ bucketName: string;
5615
+ fileSize: number;
5616
+ };
5617
+ }[];
5618
+ }[];
5619
+ notes: string | null;
5620
+ contactProfile: string | null;
5621
+ socialProfileUrl: string | null;
5622
+ tags: {
5623
+ id: string;
5624
+ name: string;
5625
+ createdAt: Date;
5626
+ updatedAt: Date;
5627
+ deletedAt: Date | null;
5628
+ }[];
5629
+ company: {
5630
+ id: string;
5631
+ createdAt: Date;
5632
+ updatedAt: Date;
5633
+ deletedAt: Date | null;
5634
+ address?: string | null | undefined;
5635
+ name?: string | undefined;
5636
+ phone?: string | null | undefined;
5637
+ industry?: string | null | undefined;
5638
+ } | null;
5639
+ contactEmails: {
5640
+ id: string;
5641
+ isPrimary: boolean;
5642
+ email: string;
5643
+ createdAt: Date;
5644
+ updatedAt: Date;
5645
+ deletedAt: Date | null;
5646
+ }[];
5647
+ contactPhones: {
5648
+ id: string;
5649
+ isPrimary: boolean;
5650
+ createdAt: Date;
5651
+ updatedAt: Date;
5652
+ deletedAt: Date | null;
5653
+ phone: string;
5654
+ }[];
5655
+ activityLogs?: {
5656
+ id: string;
5657
+ description: string;
5658
+ createdAt: Date;
5659
+ updatedAt: Date;
5660
+ deletedAt: Date | null;
5661
+ entityId: string;
5662
+ entityType: {
5663
+ id: string;
5664
+ description: string | null;
5665
+ createdAt: Date;
5666
+ updatedAt: Date;
5667
+ deletedAt: Date | null;
5668
+ entity: string;
5669
+ };
5670
+ }[] | undefined;
5671
+ }>, "many">;
5672
+ };
5673
+ };
5674
+ addAttachments: {
5675
+ request: z.ZodObject<{
5676
+ attributeId: z.ZodString;
5677
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
5678
+ bucketName: z.ZodString;
5679
+ fileKey: z.ZodString;
5680
+ fileName: z.ZodString;
5681
+ fileSize: z.ZodNumber;
5682
+ }, "strip", z.ZodTypeAny, {
5683
+ fileName: string;
5684
+ fileKey: string;
5685
+ bucketName: string;
5686
+ fileSize: number;
5687
+ }, {
5688
+ fileName: string;
5689
+ fileKey: string;
5690
+ bucketName: string;
5691
+ fileSize: number;
5692
+ }>, "many">>;
5693
+ }, "strip", z.ZodTypeAny, {
5694
+ attributeId: string;
5695
+ attachments?: {
5696
+ fileName: string;
5697
+ fileKey: string;
5698
+ bucketName: string;
5699
+ fileSize: number;
5700
+ }[] | undefined;
5701
+ }, {
5702
+ attributeId: string;
5703
+ attachments?: {
5704
+ fileName: string;
5705
+ fileKey: string;
5706
+ bucketName: string;
5707
+ fileSize: number;
5708
+ }[] | undefined;
5709
+ }>;
5710
+ response: z.ZodObject<{
5711
+ id: z.ZodString;
5712
+ createdAt: z.ZodDate;
5713
+ updatedAt: z.ZodDate;
5714
+ deletedAt: z.ZodNullable<z.ZodDate>;
5715
+ textValue: z.ZodNullable<z.ZodString>;
5716
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
5717
+ numberValue: z.ZodNullable<z.ZodNumber>;
5718
+ dateValue: z.ZodNullable<z.ZodDate>;
5719
+ entityId: z.ZodString;
5720
+ attributeId: z.ZodString;
5721
+ }, "strip", z.ZodTypeAny, {
5722
+ id: string;
5723
+ createdAt: Date;
5724
+ updatedAt: Date;
5725
+ deletedAt: Date | null;
5726
+ attributeId: string;
5727
+ textValue: string | null;
5728
+ booleanValue: boolean | null;
5729
+ numberValue: number | null;
5730
+ dateValue: Date | null;
5731
+ entityId: string;
5732
+ }, {
5733
+ id: string;
5734
+ createdAt: Date;
5735
+ updatedAt: Date;
5736
+ deletedAt: Date | null;
5737
+ attributeId: string;
5738
+ textValue: string | null;
5739
+ booleanValue: boolean | null;
5740
+ numberValue: number | null;
5741
+ dateValue: Date | null;
5742
+ entityId: string;
5743
+ }>;
5744
+ };
2597
5745
  };
2598
5746
  //# sourceMappingURL=validation.d.ts.map