@kl1/contracts 1.0.16 → 1.0.18

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 (38) hide show
  1. package/dist/index.js +1217 -564
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1216 -564
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/chat/index.d.ts +8038 -114
  6. package/dist/src/chat/index.d.ts.map +1 -1
  7. package/dist/src/chat/schema.d.ts +28 -28
  8. package/dist/src/chat/schema.d.ts.map +1 -1
  9. package/dist/src/chat/validation.d.ts +415 -7755
  10. package/dist/src/chat/validation.d.ts.map +1 -1
  11. package/dist/src/contact/index.d.ts +1224 -0
  12. package/dist/src/contact/index.d.ts.map +1 -1
  13. package/dist/src/contact/validation.d.ts +833 -0
  14. package/dist/src/contact/validation.d.ts.map +1 -1
  15. package/dist/src/contract.d.ts +21408 -14956
  16. package/dist/src/contract.d.ts.map +1 -1
  17. package/dist/src/index.d.ts +1 -0
  18. package/dist/src/index.d.ts.map +1 -1
  19. package/dist/src/mail/mail-contract.d.ts +1305 -1305
  20. package/dist/src/mail/message-contract.d.ts +56 -56
  21. package/dist/src/mail/room-contract.d.ts +1241 -1241
  22. package/dist/src/mail/schemas/message.schema.d.ts +33 -33
  23. package/dist/src/mail/schemas/room-validation.schema.d.ts +404 -404
  24. package/dist/src/mail/schemas/room.schema.d.ts +268 -268
  25. package/dist/src/messenger/index.d.ts +382 -7729
  26. package/dist/src/messenger/index.d.ts.map +1 -1
  27. package/dist/src/platform-contact/schema.d.ts +2 -2
  28. package/dist/src/ticket/index.d.ts +4661 -0
  29. package/dist/src/ticket/index.d.ts.map +1 -0
  30. package/dist/src/ticket/schema.d.ts +662 -3
  31. package/dist/src/ticket/schema.d.ts.map +1 -1
  32. package/dist/src/ticket/validation.d.ts +732 -0
  33. package/dist/src/ticket/validation.d.ts.map +1 -0
  34. package/package.json +1 -1
  35. package/dist/src/app/index.d.ts +0 -17
  36. package/dist/src/app/index.d.ts.map +0 -1
  37. package/dist/src/mail/mail-server.d.ts +0 -216
  38. package/dist/src/mail/mail-server.d.ts.map +0 -1
@@ -6,6 +6,8 @@ export type CreateContactResponse = z.infer<typeof ContactContractValidationSche
6
6
  export type CreateContactByPhoneRequest = z.infer<typeof ContactContractValidationSchema.createContactByPhone.request>;
7
7
  export type CreateContactByPhoneResponse = z.infer<typeof ContactContractValidationSchema.createContactByPhone.response>;
8
8
  export type GetAllContactRequest = z.infer<typeof ContactContractValidationSchema.getAll.request>;
9
+ export type FilterContactsRequest = z.infer<typeof ContactContractValidationSchema.filterContacts.request>;
10
+ export type AddAttachmentsToContactRequest = z.infer<typeof ContactContractValidationSchema.addAttachments.request>;
9
11
  export type UpdateContactRequest = Partial<CreateContactRequest>;
10
12
  export type UpdateContactFromOngoingCallRequest = Partial<z.infer<typeof ContactContractValidationSchema.updateFromOngoingCall.request>>;
11
13
  export type MergeContactsRequest = z.infer<typeof ContactContractValidationSchema.merge.request>;
@@ -1453,6 +1455,7 @@ export declare const contactContract: {
1453
1455
  page: z.ZodNumber;
1454
1456
  pageSize: z.ZodNumber;
1455
1457
  total: z.ZodNumber;
1458
+ lastPage: z.ZodNumber;
1456
1459
  data: z.ZodArray<z.ZodObject<{
1457
1460
  id: z.ZodString;
1458
1461
  createdAt: z.ZodDate;
@@ -2299,6 +2302,7 @@ export declare const contactContract: {
2299
2302
  total: number;
2300
2303
  page: number;
2301
2304
  pageSize: number;
2305
+ lastPage: number;
2302
2306
  requestId: string;
2303
2307
  }, {
2304
2308
  data: {
@@ -2406,6 +2410,7 @@ export declare const contactContract: {
2406
2410
  total: number;
2407
2411
  page: number;
2408
2412
  pageSize: number;
2413
+ lastPage: number;
2409
2414
  requestId: string;
2410
2415
  }>;
2411
2416
  400: z.ZodObject<{
@@ -2472,6 +2477,1050 @@ export declare const contactContract: {
2472
2477
  authorization: string;
2473
2478
  }>>>;
2474
2479
  };
2480
+ filterContacts: {
2481
+ summary: "Get all contacts by filtering with only keyword";
2482
+ method: "GET";
2483
+ query: z.ZodObject<{
2484
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2485
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2486
+ keyword: z.ZodOptional<z.ZodString>;
2487
+ }, "strip", z.ZodTypeAny, {
2488
+ page?: number | undefined;
2489
+ pageSize?: number | undefined;
2490
+ keyword?: string | undefined;
2491
+ }, {
2492
+ page?: number | undefined;
2493
+ pageSize?: number | undefined;
2494
+ keyword?: string | undefined;
2495
+ }>;
2496
+ responses: {
2497
+ 200: z.ZodObject<{
2498
+ requestId: z.ZodString;
2499
+ page: z.ZodNumber;
2500
+ pageSize: z.ZodNumber;
2501
+ total: z.ZodNumber;
2502
+ lastPage: z.ZodNumber;
2503
+ data: z.ZodArray<z.ZodObject<{
2504
+ id: z.ZodString;
2505
+ createdAt: z.ZodDate;
2506
+ updatedAt: z.ZodDate;
2507
+ deletedAt: z.ZodNullable<z.ZodDate>;
2508
+ name: z.ZodString;
2509
+ address: z.ZodNullable<z.ZodString>;
2510
+ channel: z.ZodNullable<z.ZodString>;
2511
+ notes: z.ZodNullable<z.ZodString>;
2512
+ contactProfile: z.ZodNullable<z.ZodString>;
2513
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
2514
+ tags: z.ZodArray<z.ZodObject<{
2515
+ id: z.ZodString;
2516
+ createdAt: z.ZodDate;
2517
+ updatedAt: z.ZodDate;
2518
+ deletedAt: z.ZodNullable<z.ZodDate>;
2519
+ name: z.ZodString;
2520
+ }, "strip", z.ZodTypeAny, {
2521
+ id: string;
2522
+ name: string;
2523
+ createdAt: Date;
2524
+ updatedAt: Date;
2525
+ deletedAt: Date | null;
2526
+ }, {
2527
+ id: string;
2528
+ name: string;
2529
+ createdAt: Date;
2530
+ updatedAt: Date;
2531
+ deletedAt: Date | null;
2532
+ }>, "many">;
2533
+ company: z.ZodNullable<z.ZodObject<Omit<{
2534
+ id: z.ZodString;
2535
+ createdAt: z.ZodDate;
2536
+ updatedAt: z.ZodDate;
2537
+ deletedAt: z.ZodNullable<z.ZodDate>;
2538
+ name: z.ZodOptional<z.ZodString>;
2539
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2540
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2541
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2542
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2543
+ id: z.ZodString;
2544
+ createdAt: z.ZodDate;
2545
+ updatedAt: z.ZodDate;
2546
+ deletedAt: z.ZodNullable<z.ZodDate>;
2547
+ textValue: z.ZodNullable<z.ZodString>;
2548
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2549
+ numberValue: z.ZodNullable<z.ZodNumber>;
2550
+ dateValue: z.ZodNullable<z.ZodString>;
2551
+ attribute: z.ZodObject<Omit<{
2552
+ id: z.ZodString;
2553
+ createdAt: z.ZodDate;
2554
+ updatedAt: z.ZodDate;
2555
+ deletedAt: z.ZodNullable<z.ZodDate>;
2556
+ systemName: z.ZodString;
2557
+ displayName: z.ZodString;
2558
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2559
+ position: z.ZodNumber;
2560
+ isDefault: z.ZodBoolean;
2561
+ isArchived: z.ZodBoolean;
2562
+ isRequired: z.ZodBoolean;
2563
+ isUnique: z.ZodBoolean;
2564
+ options: z.ZodArray<z.ZodObject<{
2565
+ position: z.ZodNumber;
2566
+ value: z.ZodString;
2567
+ label: z.ZodString;
2568
+ isDefault: z.ZodBoolean;
2569
+ id: z.ZodString;
2570
+ }, "strip", z.ZodTypeAny, {
2571
+ id: string;
2572
+ position: number;
2573
+ value: string;
2574
+ label: string;
2575
+ isDefault: boolean;
2576
+ }, {
2577
+ id: string;
2578
+ position: number;
2579
+ value: string;
2580
+ label: string;
2581
+ isDefault: boolean;
2582
+ }>, "many">;
2583
+ group: z.ZodObject<{
2584
+ id: z.ZodString;
2585
+ createdAt: z.ZodDate;
2586
+ updatedAt: z.ZodDate;
2587
+ deletedAt: z.ZodNullable<z.ZodDate>;
2588
+ systemName: z.ZodString;
2589
+ displayName: z.ZodString;
2590
+ }, "strip", z.ZodTypeAny, {
2591
+ id: string;
2592
+ createdAt: Date;
2593
+ updatedAt: Date;
2594
+ deletedAt: Date | null;
2595
+ systemName: string;
2596
+ displayName: string;
2597
+ }, {
2598
+ id: string;
2599
+ createdAt: Date;
2600
+ updatedAt: Date;
2601
+ deletedAt: Date | null;
2602
+ systemName: string;
2603
+ displayName: string;
2604
+ }>;
2605
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2606
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2607
+ id: string;
2608
+ position: number;
2609
+ createdAt: Date;
2610
+ updatedAt: Date;
2611
+ deletedAt: Date | null;
2612
+ isDefault: boolean;
2613
+ systemName: string;
2614
+ displayName: string;
2615
+ isArchived: boolean;
2616
+ isRequired: boolean;
2617
+ isUnique: boolean;
2618
+ }, {
2619
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2620
+ id: string;
2621
+ position: number;
2622
+ createdAt: Date;
2623
+ updatedAt: Date;
2624
+ deletedAt: Date | null;
2625
+ isDefault: boolean;
2626
+ systemName: string;
2627
+ displayName: string;
2628
+ isArchived: boolean;
2629
+ isRequired: boolean;
2630
+ isUnique: boolean;
2631
+ }>;
2632
+ }, "strip", z.ZodTypeAny, {
2633
+ id: string;
2634
+ createdAt: Date;
2635
+ updatedAt: Date;
2636
+ deletedAt: Date | null;
2637
+ attribute: {
2638
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2639
+ id: string;
2640
+ position: number;
2641
+ createdAt: Date;
2642
+ updatedAt: Date;
2643
+ deletedAt: Date | null;
2644
+ isDefault: boolean;
2645
+ systemName: string;
2646
+ displayName: string;
2647
+ isArchived: boolean;
2648
+ isRequired: boolean;
2649
+ isUnique: boolean;
2650
+ };
2651
+ textValue: string | null;
2652
+ booleanValue: boolean | null;
2653
+ numberValue: number | null;
2654
+ dateValue: string | null;
2655
+ }, {
2656
+ id: string;
2657
+ createdAt: Date;
2658
+ updatedAt: Date;
2659
+ deletedAt: Date | null;
2660
+ attribute: {
2661
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2662
+ id: string;
2663
+ position: number;
2664
+ createdAt: Date;
2665
+ updatedAt: Date;
2666
+ deletedAt: Date | null;
2667
+ isDefault: boolean;
2668
+ systemName: string;
2669
+ displayName: string;
2670
+ isArchived: boolean;
2671
+ isRequired: boolean;
2672
+ isUnique: boolean;
2673
+ };
2674
+ textValue: string | null;
2675
+ booleanValue: boolean | null;
2676
+ numberValue: number | null;
2677
+ dateValue: string | null;
2678
+ }>, "many">>;
2679
+ }, "customFields">, "strip", z.ZodTypeAny, {
2680
+ id: string;
2681
+ createdAt: Date;
2682
+ updatedAt: Date;
2683
+ deletedAt: Date | null;
2684
+ address?: string | null | undefined;
2685
+ name?: string | undefined;
2686
+ phone?: string | null | undefined;
2687
+ industry?: string | null | undefined;
2688
+ }, {
2689
+ id: string;
2690
+ createdAt: Date;
2691
+ updatedAt: Date;
2692
+ deletedAt: Date | null;
2693
+ address?: string | null | undefined;
2694
+ name?: string | undefined;
2695
+ phone?: string | null | undefined;
2696
+ industry?: string | null | undefined;
2697
+ }>>;
2698
+ customFields: z.ZodArray<z.ZodObject<{
2699
+ id: z.ZodString;
2700
+ createdAt: z.ZodDate;
2701
+ updatedAt: z.ZodDate;
2702
+ deletedAt: z.ZodNullable<z.ZodDate>;
2703
+ textValue: z.ZodNullable<z.ZodString>;
2704
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2705
+ numberValue: z.ZodNullable<z.ZodNumber>;
2706
+ dateValue: z.ZodNullable<z.ZodDate>;
2707
+ attribute: z.ZodObject<Omit<{
2708
+ id: z.ZodString;
2709
+ createdAt: z.ZodDate;
2710
+ updatedAt: z.ZodDate;
2711
+ deletedAt: z.ZodNullable<z.ZodDate>;
2712
+ systemName: z.ZodString;
2713
+ displayName: z.ZodString;
2714
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2715
+ position: z.ZodNumber;
2716
+ isDefault: z.ZodBoolean;
2717
+ isArchived: z.ZodBoolean;
2718
+ isRequired: z.ZodBoolean;
2719
+ isUnique: z.ZodBoolean;
2720
+ options: z.ZodArray<z.ZodObject<{
2721
+ position: z.ZodNumber;
2722
+ value: z.ZodString;
2723
+ label: z.ZodString;
2724
+ isDefault: z.ZodBoolean;
2725
+ id: z.ZodString;
2726
+ }, "strip", z.ZodTypeAny, {
2727
+ id: string;
2728
+ position: number;
2729
+ value: string;
2730
+ label: string;
2731
+ isDefault: boolean;
2732
+ }, {
2733
+ id: string;
2734
+ position: number;
2735
+ value: string;
2736
+ label: string;
2737
+ isDefault: boolean;
2738
+ }>, "many">;
2739
+ group: z.ZodObject<{
2740
+ id: z.ZodString;
2741
+ createdAt: z.ZodDate;
2742
+ updatedAt: z.ZodDate;
2743
+ deletedAt: z.ZodNullable<z.ZodDate>;
2744
+ systemName: z.ZodString;
2745
+ displayName: z.ZodString;
2746
+ }, "strip", z.ZodTypeAny, {
2747
+ id: string;
2748
+ createdAt: Date;
2749
+ updatedAt: Date;
2750
+ deletedAt: Date | null;
2751
+ systemName: string;
2752
+ displayName: string;
2753
+ }, {
2754
+ id: string;
2755
+ createdAt: Date;
2756
+ updatedAt: Date;
2757
+ deletedAt: Date | null;
2758
+ systemName: string;
2759
+ displayName: string;
2760
+ }>;
2761
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2762
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2763
+ id: string;
2764
+ position: number;
2765
+ createdAt: Date;
2766
+ updatedAt: Date;
2767
+ deletedAt: Date | null;
2768
+ isDefault: boolean;
2769
+ systemName: string;
2770
+ displayName: string;
2771
+ isArchived: boolean;
2772
+ isRequired: boolean;
2773
+ isUnique: boolean;
2774
+ }, {
2775
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2776
+ id: string;
2777
+ position: number;
2778
+ createdAt: Date;
2779
+ updatedAt: Date;
2780
+ deletedAt: Date | null;
2781
+ isDefault: boolean;
2782
+ systemName: string;
2783
+ displayName: string;
2784
+ isArchived: boolean;
2785
+ isRequired: boolean;
2786
+ isUnique: boolean;
2787
+ }>;
2788
+ uploads: z.ZodArray<z.ZodObject<{
2789
+ id: z.ZodString;
2790
+ createdAt: z.ZodDate;
2791
+ updatedAt: z.ZodDate;
2792
+ deletedAt: z.ZodNullable<z.ZodDate>;
2793
+ customFieldId: z.ZodString;
2794
+ upload: z.ZodObject<{
2795
+ id: z.ZodString;
2796
+ createdAt: z.ZodDate;
2797
+ updatedAt: z.ZodDate;
2798
+ deletedAt: z.ZodNullable<z.ZodDate>;
2799
+ bucketName: z.ZodString;
2800
+ fileName: z.ZodString;
2801
+ fileSize: z.ZodNumber;
2802
+ fileKey: z.ZodString;
2803
+ }, "strip", z.ZodTypeAny, {
2804
+ id: string;
2805
+ createdAt: Date;
2806
+ updatedAt: Date;
2807
+ deletedAt: Date | null;
2808
+ fileName: string;
2809
+ fileKey: string;
2810
+ bucketName: string;
2811
+ fileSize: number;
2812
+ }, {
2813
+ id: string;
2814
+ createdAt: Date;
2815
+ updatedAt: Date;
2816
+ deletedAt: Date | null;
2817
+ fileName: string;
2818
+ fileKey: string;
2819
+ bucketName: string;
2820
+ fileSize: number;
2821
+ }>;
2822
+ }, "strip", z.ZodTypeAny, {
2823
+ id: string;
2824
+ createdAt: Date;
2825
+ updatedAt: Date;
2826
+ deletedAt: Date | null;
2827
+ customFieldId: string;
2828
+ upload: {
2829
+ id: string;
2830
+ createdAt: Date;
2831
+ updatedAt: Date;
2832
+ deletedAt: Date | null;
2833
+ fileName: string;
2834
+ fileKey: string;
2835
+ bucketName: string;
2836
+ fileSize: number;
2837
+ };
2838
+ }, {
2839
+ id: string;
2840
+ createdAt: Date;
2841
+ updatedAt: Date;
2842
+ deletedAt: Date | null;
2843
+ customFieldId: string;
2844
+ upload: {
2845
+ id: string;
2846
+ createdAt: Date;
2847
+ updatedAt: Date;
2848
+ deletedAt: Date | null;
2849
+ fileName: string;
2850
+ fileKey: string;
2851
+ bucketName: string;
2852
+ fileSize: number;
2853
+ };
2854
+ }>, "many">;
2855
+ }, "strip", z.ZodTypeAny, {
2856
+ id: string;
2857
+ createdAt: Date;
2858
+ updatedAt: Date;
2859
+ deletedAt: Date | null;
2860
+ attribute: {
2861
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2862
+ id: string;
2863
+ position: number;
2864
+ createdAt: Date;
2865
+ updatedAt: Date;
2866
+ deletedAt: Date | null;
2867
+ isDefault: boolean;
2868
+ systemName: string;
2869
+ displayName: string;
2870
+ isArchived: boolean;
2871
+ isRequired: boolean;
2872
+ isUnique: boolean;
2873
+ };
2874
+ textValue: string | null;
2875
+ booleanValue: boolean | null;
2876
+ numberValue: number | null;
2877
+ dateValue: Date | null;
2878
+ uploads: {
2879
+ id: string;
2880
+ createdAt: Date;
2881
+ updatedAt: Date;
2882
+ deletedAt: Date | null;
2883
+ customFieldId: string;
2884
+ upload: {
2885
+ id: string;
2886
+ createdAt: Date;
2887
+ updatedAt: Date;
2888
+ deletedAt: Date | null;
2889
+ fileName: string;
2890
+ fileKey: string;
2891
+ bucketName: string;
2892
+ fileSize: number;
2893
+ };
2894
+ }[];
2895
+ }, {
2896
+ id: string;
2897
+ createdAt: Date;
2898
+ updatedAt: Date;
2899
+ deletedAt: Date | null;
2900
+ attribute: {
2901
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2902
+ id: string;
2903
+ position: number;
2904
+ createdAt: Date;
2905
+ updatedAt: Date;
2906
+ deletedAt: Date | null;
2907
+ isDefault: boolean;
2908
+ systemName: string;
2909
+ displayName: string;
2910
+ isArchived: boolean;
2911
+ isRequired: boolean;
2912
+ isUnique: boolean;
2913
+ };
2914
+ textValue: string | null;
2915
+ booleanValue: boolean | null;
2916
+ numberValue: number | null;
2917
+ dateValue: Date | null;
2918
+ uploads: {
2919
+ id: string;
2920
+ createdAt: Date;
2921
+ updatedAt: Date;
2922
+ deletedAt: Date | null;
2923
+ customFieldId: string;
2924
+ upload: {
2925
+ id: string;
2926
+ createdAt: Date;
2927
+ updatedAt: Date;
2928
+ deletedAt: Date | null;
2929
+ fileName: string;
2930
+ fileKey: string;
2931
+ bucketName: string;
2932
+ fileSize: number;
2933
+ };
2934
+ }[];
2935
+ }>, "many">;
2936
+ contactEmails: z.ZodArray<z.ZodObject<{
2937
+ id: z.ZodString;
2938
+ createdAt: z.ZodDate;
2939
+ updatedAt: z.ZodDate;
2940
+ deletedAt: z.ZodNullable<z.ZodDate>;
2941
+ email: z.ZodString;
2942
+ isPrimary: z.ZodBoolean;
2943
+ }, "strip", z.ZodTypeAny, {
2944
+ id: string;
2945
+ isPrimary: boolean;
2946
+ email: string;
2947
+ createdAt: Date;
2948
+ updatedAt: Date;
2949
+ deletedAt: Date | null;
2950
+ }, {
2951
+ id: string;
2952
+ isPrimary: boolean;
2953
+ email: string;
2954
+ createdAt: Date;
2955
+ updatedAt: Date;
2956
+ deletedAt: Date | null;
2957
+ }>, "many">;
2958
+ contactPhones: z.ZodArray<z.ZodObject<{
2959
+ id: z.ZodString;
2960
+ createdAt: z.ZodDate;
2961
+ updatedAt: z.ZodDate;
2962
+ deletedAt: z.ZodNullable<z.ZodDate>;
2963
+ phone: z.ZodString;
2964
+ isPrimary: z.ZodBoolean;
2965
+ }, "strip", z.ZodTypeAny, {
2966
+ id: string;
2967
+ isPrimary: boolean;
2968
+ createdAt: Date;
2969
+ updatedAt: Date;
2970
+ deletedAt: Date | null;
2971
+ phone: string;
2972
+ }, {
2973
+ id: string;
2974
+ isPrimary: boolean;
2975
+ createdAt: Date;
2976
+ updatedAt: Date;
2977
+ deletedAt: Date | null;
2978
+ phone: string;
2979
+ }>, "many">;
2980
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2981
+ id: z.ZodString;
2982
+ createdAt: z.ZodDate;
2983
+ updatedAt: z.ZodDate;
2984
+ deletedAt: z.ZodNullable<z.ZodDate>;
2985
+ entityId: z.ZodString;
2986
+ description: z.ZodString;
2987
+ entityType: z.ZodObject<{
2988
+ id: z.ZodString;
2989
+ createdAt: z.ZodDate;
2990
+ updatedAt: z.ZodDate;
2991
+ deletedAt: z.ZodNullable<z.ZodDate>;
2992
+ entity: z.ZodString;
2993
+ description: z.ZodNullable<z.ZodString>;
2994
+ }, "strip", z.ZodTypeAny, {
2995
+ id: string;
2996
+ description: string | null;
2997
+ createdAt: Date;
2998
+ updatedAt: Date;
2999
+ deletedAt: Date | null;
3000
+ entity: string;
3001
+ }, {
3002
+ id: string;
3003
+ description: string | null;
3004
+ createdAt: Date;
3005
+ updatedAt: Date;
3006
+ deletedAt: Date | null;
3007
+ entity: string;
3008
+ }>;
3009
+ }, "strip", z.ZodTypeAny, {
3010
+ id: string;
3011
+ description: string;
3012
+ createdAt: Date;
3013
+ updatedAt: Date;
3014
+ deletedAt: Date | null;
3015
+ entityId: string;
3016
+ entityType: {
3017
+ id: string;
3018
+ description: string | null;
3019
+ createdAt: Date;
3020
+ updatedAt: Date;
3021
+ deletedAt: Date | null;
3022
+ entity: string;
3023
+ };
3024
+ }, {
3025
+ id: string;
3026
+ description: string;
3027
+ createdAt: Date;
3028
+ updatedAt: Date;
3029
+ deletedAt: Date | null;
3030
+ entityId: string;
3031
+ entityType: {
3032
+ id: string;
3033
+ description: string | null;
3034
+ createdAt: Date;
3035
+ updatedAt: Date;
3036
+ deletedAt: Date | null;
3037
+ entity: string;
3038
+ };
3039
+ }>, "many">>;
3040
+ }, "strip", z.ZodTypeAny, {
3041
+ id: string;
3042
+ channel: string | null;
3043
+ address: string | null;
3044
+ name: string;
3045
+ createdAt: Date;
3046
+ updatedAt: Date;
3047
+ deletedAt: Date | null;
3048
+ customFields: {
3049
+ id: string;
3050
+ createdAt: Date;
3051
+ updatedAt: Date;
3052
+ deletedAt: Date | null;
3053
+ attribute: {
3054
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3055
+ id: string;
3056
+ position: number;
3057
+ createdAt: Date;
3058
+ updatedAt: Date;
3059
+ deletedAt: Date | null;
3060
+ isDefault: boolean;
3061
+ systemName: string;
3062
+ displayName: string;
3063
+ isArchived: boolean;
3064
+ isRequired: boolean;
3065
+ isUnique: boolean;
3066
+ };
3067
+ textValue: string | null;
3068
+ booleanValue: boolean | null;
3069
+ numberValue: number | null;
3070
+ dateValue: Date | null;
3071
+ uploads: {
3072
+ id: string;
3073
+ createdAt: Date;
3074
+ updatedAt: Date;
3075
+ deletedAt: Date | null;
3076
+ customFieldId: string;
3077
+ upload: {
3078
+ id: string;
3079
+ createdAt: Date;
3080
+ updatedAt: Date;
3081
+ deletedAt: Date | null;
3082
+ fileName: string;
3083
+ fileKey: string;
3084
+ bucketName: string;
3085
+ fileSize: number;
3086
+ };
3087
+ }[];
3088
+ }[];
3089
+ notes: string | null;
3090
+ contactProfile: string | null;
3091
+ socialProfileUrl: string | null;
3092
+ tags: {
3093
+ id: string;
3094
+ name: string;
3095
+ createdAt: Date;
3096
+ updatedAt: Date;
3097
+ deletedAt: Date | null;
3098
+ }[];
3099
+ company: {
3100
+ id: string;
3101
+ createdAt: Date;
3102
+ updatedAt: Date;
3103
+ deletedAt: Date | null;
3104
+ address?: string | null | undefined;
3105
+ name?: string | undefined;
3106
+ phone?: string | null | undefined;
3107
+ industry?: string | null | undefined;
3108
+ } | null;
3109
+ contactEmails: {
3110
+ id: string;
3111
+ isPrimary: boolean;
3112
+ email: string;
3113
+ createdAt: Date;
3114
+ updatedAt: Date;
3115
+ deletedAt: Date | null;
3116
+ }[];
3117
+ contactPhones: {
3118
+ id: string;
3119
+ isPrimary: boolean;
3120
+ createdAt: Date;
3121
+ updatedAt: Date;
3122
+ deletedAt: Date | null;
3123
+ phone: string;
3124
+ }[];
3125
+ activityLogs?: {
3126
+ id: string;
3127
+ description: string;
3128
+ createdAt: Date;
3129
+ updatedAt: Date;
3130
+ deletedAt: Date | null;
3131
+ entityId: string;
3132
+ entityType: {
3133
+ id: string;
3134
+ description: string | null;
3135
+ createdAt: Date;
3136
+ updatedAt: Date;
3137
+ deletedAt: Date | null;
3138
+ entity: string;
3139
+ };
3140
+ }[] | undefined;
3141
+ }, {
3142
+ id: string;
3143
+ channel: string | null;
3144
+ address: string | null;
3145
+ name: string;
3146
+ createdAt: Date;
3147
+ updatedAt: Date;
3148
+ deletedAt: Date | null;
3149
+ customFields: {
3150
+ id: string;
3151
+ createdAt: Date;
3152
+ updatedAt: Date;
3153
+ deletedAt: Date | null;
3154
+ attribute: {
3155
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3156
+ id: string;
3157
+ position: number;
3158
+ createdAt: Date;
3159
+ updatedAt: Date;
3160
+ deletedAt: Date | null;
3161
+ isDefault: boolean;
3162
+ systemName: string;
3163
+ displayName: string;
3164
+ isArchived: boolean;
3165
+ isRequired: boolean;
3166
+ isUnique: boolean;
3167
+ };
3168
+ textValue: string | null;
3169
+ booleanValue: boolean | null;
3170
+ numberValue: number | null;
3171
+ dateValue: Date | null;
3172
+ uploads: {
3173
+ id: string;
3174
+ createdAt: Date;
3175
+ updatedAt: Date;
3176
+ deletedAt: Date | null;
3177
+ customFieldId: string;
3178
+ upload: {
3179
+ id: string;
3180
+ createdAt: Date;
3181
+ updatedAt: Date;
3182
+ deletedAt: Date | null;
3183
+ fileName: string;
3184
+ fileKey: string;
3185
+ bucketName: string;
3186
+ fileSize: number;
3187
+ };
3188
+ }[];
3189
+ }[];
3190
+ notes: string | null;
3191
+ contactProfile: string | null;
3192
+ socialProfileUrl: string | null;
3193
+ tags: {
3194
+ id: string;
3195
+ name: string;
3196
+ createdAt: Date;
3197
+ updatedAt: Date;
3198
+ deletedAt: Date | null;
3199
+ }[];
3200
+ company: {
3201
+ id: string;
3202
+ createdAt: Date;
3203
+ updatedAt: Date;
3204
+ deletedAt: Date | null;
3205
+ address?: string | null | undefined;
3206
+ name?: string | undefined;
3207
+ phone?: string | null | undefined;
3208
+ industry?: string | null | undefined;
3209
+ } | null;
3210
+ contactEmails: {
3211
+ id: string;
3212
+ isPrimary: boolean;
3213
+ email: string;
3214
+ createdAt: Date;
3215
+ updatedAt: Date;
3216
+ deletedAt: Date | null;
3217
+ }[];
3218
+ contactPhones: {
3219
+ id: string;
3220
+ isPrimary: boolean;
3221
+ createdAt: Date;
3222
+ updatedAt: Date;
3223
+ deletedAt: Date | null;
3224
+ phone: string;
3225
+ }[];
3226
+ activityLogs?: {
3227
+ id: string;
3228
+ description: string;
3229
+ createdAt: Date;
3230
+ updatedAt: Date;
3231
+ deletedAt: Date | null;
3232
+ entityId: string;
3233
+ entityType: {
3234
+ id: string;
3235
+ description: string | null;
3236
+ createdAt: Date;
3237
+ updatedAt: Date;
3238
+ deletedAt: Date | null;
3239
+ entity: string;
3240
+ };
3241
+ }[] | undefined;
3242
+ }>, "many">;
3243
+ }, "strip", z.ZodTypeAny, {
3244
+ data: {
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
+ total: number;
3347
+ page: number;
3348
+ pageSize: number;
3349
+ lastPage: number;
3350
+ requestId: string;
3351
+ }, {
3352
+ data: {
3353
+ id: string;
3354
+ channel: string | null;
3355
+ address: string | null;
3356
+ name: string;
3357
+ createdAt: Date;
3358
+ updatedAt: Date;
3359
+ deletedAt: Date | null;
3360
+ customFields: {
3361
+ id: string;
3362
+ createdAt: Date;
3363
+ updatedAt: Date;
3364
+ deletedAt: Date | null;
3365
+ attribute: {
3366
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3367
+ id: string;
3368
+ position: number;
3369
+ createdAt: Date;
3370
+ updatedAt: Date;
3371
+ deletedAt: Date | null;
3372
+ isDefault: boolean;
3373
+ systemName: string;
3374
+ displayName: string;
3375
+ isArchived: boolean;
3376
+ isRequired: boolean;
3377
+ isUnique: boolean;
3378
+ };
3379
+ textValue: string | null;
3380
+ booleanValue: boolean | null;
3381
+ numberValue: number | null;
3382
+ dateValue: Date | null;
3383
+ uploads: {
3384
+ id: string;
3385
+ createdAt: Date;
3386
+ updatedAt: Date;
3387
+ deletedAt: Date | null;
3388
+ customFieldId: string;
3389
+ upload: {
3390
+ id: string;
3391
+ createdAt: Date;
3392
+ updatedAt: Date;
3393
+ deletedAt: Date | null;
3394
+ fileName: string;
3395
+ fileKey: string;
3396
+ bucketName: string;
3397
+ fileSize: number;
3398
+ };
3399
+ }[];
3400
+ }[];
3401
+ notes: string | null;
3402
+ contactProfile: string | null;
3403
+ socialProfileUrl: string | null;
3404
+ tags: {
3405
+ id: string;
3406
+ name: string;
3407
+ createdAt: Date;
3408
+ updatedAt: Date;
3409
+ deletedAt: Date | null;
3410
+ }[];
3411
+ company: {
3412
+ id: string;
3413
+ createdAt: Date;
3414
+ updatedAt: Date;
3415
+ deletedAt: Date | null;
3416
+ address?: string | null | undefined;
3417
+ name?: string | undefined;
3418
+ phone?: string | null | undefined;
3419
+ industry?: string | null | undefined;
3420
+ } | null;
3421
+ contactEmails: {
3422
+ id: string;
3423
+ isPrimary: boolean;
3424
+ email: string;
3425
+ createdAt: Date;
3426
+ updatedAt: Date;
3427
+ deletedAt: Date | null;
3428
+ }[];
3429
+ contactPhones: {
3430
+ id: string;
3431
+ isPrimary: boolean;
3432
+ createdAt: Date;
3433
+ updatedAt: Date;
3434
+ deletedAt: Date | null;
3435
+ phone: string;
3436
+ }[];
3437
+ activityLogs?: {
3438
+ id: string;
3439
+ description: string;
3440
+ createdAt: Date;
3441
+ updatedAt: Date;
3442
+ deletedAt: Date | null;
3443
+ entityId: string;
3444
+ entityType: {
3445
+ id: string;
3446
+ description: string | null;
3447
+ createdAt: Date;
3448
+ updatedAt: Date;
3449
+ deletedAt: Date | null;
3450
+ entity: string;
3451
+ };
3452
+ }[] | undefined;
3453
+ }[];
3454
+ total: number;
3455
+ page: number;
3456
+ pageSize: number;
3457
+ lastPage: number;
3458
+ requestId: string;
3459
+ }>;
3460
+ 400: z.ZodObject<{
3461
+ message: z.ZodString;
3462
+ }, "strip", z.ZodTypeAny, {
3463
+ message: string;
3464
+ }, {
3465
+ message: string;
3466
+ }>;
3467
+ 409: z.ZodObject<{
3468
+ message: z.ZodString;
3469
+ }, "strip", z.ZodTypeAny, {
3470
+ message: string;
3471
+ }, {
3472
+ message: string;
3473
+ }>;
3474
+ 500: z.ZodObject<{
3475
+ message: z.ZodString;
3476
+ }, "strip", z.ZodTypeAny, {
3477
+ message: string;
3478
+ }, {
3479
+ message: string;
3480
+ }>;
3481
+ 401: z.ZodObject<{
3482
+ message: z.ZodString;
3483
+ error: z.ZodAny;
3484
+ }, "strip", z.ZodTypeAny, {
3485
+ message: string;
3486
+ error?: any;
3487
+ }, {
3488
+ message: string;
3489
+ error?: any;
3490
+ }>;
3491
+ 404: z.ZodObject<{
3492
+ message: z.ZodString;
3493
+ error: z.ZodAny;
3494
+ }, "strip", z.ZodTypeAny, {
3495
+ message: string;
3496
+ error?: any;
3497
+ }, {
3498
+ message: string;
3499
+ error?: any;
3500
+ }>;
3501
+ 422: z.ZodObject<{
3502
+ message: z.ZodString;
3503
+ error: z.ZodAny;
3504
+ }, "strip", z.ZodTypeAny, {
3505
+ message: string;
3506
+ error?: any;
3507
+ }, {
3508
+ message: string;
3509
+ error?: any;
3510
+ }>;
3511
+ };
3512
+ path: "contact/filter";
3513
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3514
+ 'x-tenant': z.ZodString;
3515
+ authorization: z.ZodString;
3516
+ }, "strip", z.ZodTypeAny, {
3517
+ 'x-tenant': string;
3518
+ authorization: string;
3519
+ }, {
3520
+ 'x-tenant': string;
3521
+ authorization: string;
3522
+ }>>>;
3523
+ };
2475
3524
  update: {
2476
3525
  body: z.ZodObject<{
2477
3526
  name: z.ZodOptional<z.ZodObject<{
@@ -7143,5 +8192,180 @@ export declare const contactContract: {
7143
8192
  authorization: string;
7144
8193
  }>>>;
7145
8194
  };
8195
+ addAttachments: {
8196
+ body: z.ZodObject<{
8197
+ attributeId: z.ZodString;
8198
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
8199
+ bucketName: z.ZodString;
8200
+ fileKey: z.ZodString;
8201
+ fileName: z.ZodString;
8202
+ fileSize: z.ZodNumber;
8203
+ }, "strip", z.ZodTypeAny, {
8204
+ fileName: string;
8205
+ fileKey: string;
8206
+ bucketName: string;
8207
+ fileSize: number;
8208
+ }, {
8209
+ fileName: string;
8210
+ fileKey: string;
8211
+ bucketName: string;
8212
+ fileSize: number;
8213
+ }>, "many">>;
8214
+ }, "strip", z.ZodTypeAny, {
8215
+ attributeId: string;
8216
+ attachments?: {
8217
+ fileName: string;
8218
+ fileKey: string;
8219
+ bucketName: string;
8220
+ fileSize: number;
8221
+ }[] | undefined;
8222
+ }, {
8223
+ attributeId: string;
8224
+ attachments?: {
8225
+ fileName: string;
8226
+ fileKey: string;
8227
+ bucketName: string;
8228
+ fileSize: number;
8229
+ }[] | undefined;
8230
+ }>;
8231
+ summary: " attachment information from pre-uploaded files in AWS S3 to contacts.";
8232
+ method: "POST";
8233
+ pathParams: z.ZodObject<{
8234
+ id: z.ZodString;
8235
+ }, "strip", z.ZodTypeAny, {
8236
+ id: string;
8237
+ }, {
8238
+ id: string;
8239
+ }>;
8240
+ responses: {
8241
+ 201: z.ZodObject<{
8242
+ requestId: z.ZodString;
8243
+ message: z.ZodObject<{
8244
+ id: z.ZodString;
8245
+ createdAt: z.ZodDate;
8246
+ updatedAt: z.ZodDate;
8247
+ deletedAt: z.ZodNullable<z.ZodDate>;
8248
+ textValue: z.ZodNullable<z.ZodString>;
8249
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
8250
+ numberValue: z.ZodNullable<z.ZodNumber>;
8251
+ dateValue: z.ZodNullable<z.ZodDate>;
8252
+ entityId: z.ZodString;
8253
+ attributeId: z.ZodString;
8254
+ }, "strip", z.ZodTypeAny, {
8255
+ id: string;
8256
+ createdAt: Date;
8257
+ updatedAt: Date;
8258
+ deletedAt: Date | null;
8259
+ attributeId: string;
8260
+ textValue: string | null;
8261
+ booleanValue: boolean | null;
8262
+ numberValue: number | null;
8263
+ dateValue: Date | null;
8264
+ entityId: string;
8265
+ }, {
8266
+ id: string;
8267
+ createdAt: Date;
8268
+ updatedAt: Date;
8269
+ deletedAt: Date | null;
8270
+ attributeId: string;
8271
+ textValue: string | null;
8272
+ booleanValue: boolean | null;
8273
+ numberValue: number | null;
8274
+ dateValue: Date | null;
8275
+ entityId: string;
8276
+ }>;
8277
+ }, "strip", z.ZodTypeAny, {
8278
+ message: {
8279
+ id: string;
8280
+ createdAt: Date;
8281
+ updatedAt: Date;
8282
+ deletedAt: Date | null;
8283
+ attributeId: string;
8284
+ textValue: string | null;
8285
+ booleanValue: boolean | null;
8286
+ numberValue: number | null;
8287
+ dateValue: Date | null;
8288
+ entityId: string;
8289
+ };
8290
+ requestId: string;
8291
+ }, {
8292
+ message: {
8293
+ id: string;
8294
+ createdAt: Date;
8295
+ updatedAt: Date;
8296
+ deletedAt: Date | null;
8297
+ attributeId: string;
8298
+ textValue: string | null;
8299
+ booleanValue: boolean | null;
8300
+ numberValue: number | null;
8301
+ dateValue: Date | null;
8302
+ entityId: string;
8303
+ };
8304
+ requestId: string;
8305
+ }>;
8306
+ 400: z.ZodObject<{
8307
+ message: z.ZodString;
8308
+ }, "strip", z.ZodTypeAny, {
8309
+ message: string;
8310
+ }, {
8311
+ message: string;
8312
+ }>;
8313
+ 409: z.ZodObject<{
8314
+ message: z.ZodString;
8315
+ }, "strip", z.ZodTypeAny, {
8316
+ message: string;
8317
+ }, {
8318
+ message: string;
8319
+ }>;
8320
+ 500: z.ZodObject<{
8321
+ message: z.ZodString;
8322
+ }, "strip", z.ZodTypeAny, {
8323
+ message: string;
8324
+ }, {
8325
+ message: string;
8326
+ }>;
8327
+ 401: z.ZodObject<{
8328
+ message: z.ZodString;
8329
+ error: z.ZodAny;
8330
+ }, "strip", z.ZodTypeAny, {
8331
+ message: string;
8332
+ error?: any;
8333
+ }, {
8334
+ message: string;
8335
+ error?: any;
8336
+ }>;
8337
+ 404: z.ZodObject<{
8338
+ message: z.ZodString;
8339
+ error: z.ZodAny;
8340
+ }, "strip", z.ZodTypeAny, {
8341
+ message: string;
8342
+ error?: any;
8343
+ }, {
8344
+ message: string;
8345
+ error?: any;
8346
+ }>;
8347
+ 422: z.ZodObject<{
8348
+ message: z.ZodString;
8349
+ error: z.ZodAny;
8350
+ }, "strip", z.ZodTypeAny, {
8351
+ message: string;
8352
+ error?: any;
8353
+ }, {
8354
+ message: string;
8355
+ error?: any;
8356
+ }>;
8357
+ };
8358
+ path: "contact/:id/attachments";
8359
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8360
+ 'x-tenant': z.ZodString;
8361
+ authorization: z.ZodString;
8362
+ }, "strip", z.ZodTypeAny, {
8363
+ 'x-tenant': string;
8364
+ authorization: string;
8365
+ }, {
8366
+ 'x-tenant': string;
8367
+ authorization: string;
8368
+ }>>>;
8369
+ };
7146
8370
  };
7147
8371
  //# sourceMappingURL=index.d.ts.map