@kl1/contracts 1.4.18 → 1.4.19

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.
@@ -1132,6 +1132,101 @@ export declare const publicApiContract: {
1132
1132
  };
1133
1133
  path: "api/v1/tags";
1134
1134
  };
1135
+ getAllChannel: {
1136
+ method: "GET";
1137
+ query: z.ZodObject<{
1138
+ page: z.ZodDefault<z.ZodNumber>;
1139
+ pageSize: z.ZodDefault<z.ZodNumber>;
1140
+ keyword: z.ZodOptional<z.ZodString>;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ page: number;
1143
+ pageSize: number;
1144
+ keyword?: string | undefined;
1145
+ }, {
1146
+ page?: number | undefined;
1147
+ pageSize?: number | undefined;
1148
+ keyword?: string | undefined;
1149
+ }>;
1150
+ responses: {
1151
+ 200: z.ZodObject<{
1152
+ requestId: z.ZodString;
1153
+ page: z.ZodNumber;
1154
+ pageSize: z.ZodNumber;
1155
+ total: z.ZodNumber;
1156
+ lastPage: z.ZodNumber;
1157
+ data: z.ZodAny;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ total: number;
1160
+ page: number;
1161
+ pageSize: number;
1162
+ lastPage: number;
1163
+ requestId: string;
1164
+ data?: any;
1165
+ }, {
1166
+ total: number;
1167
+ page: number;
1168
+ pageSize: number;
1169
+ lastPage: number;
1170
+ requestId: string;
1171
+ data?: any;
1172
+ }>;
1173
+ 400: z.ZodObject<{
1174
+ message: z.ZodString;
1175
+ }, "strip", z.ZodTypeAny, {
1176
+ message: string;
1177
+ }, {
1178
+ message: string;
1179
+ }>;
1180
+ 409: z.ZodObject<{
1181
+ message: z.ZodString;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ message: string;
1184
+ }, {
1185
+ message: string;
1186
+ }>;
1187
+ 401: z.ZodObject<{
1188
+ message: z.ZodString;
1189
+ error: z.ZodAny;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ message: string;
1192
+ error?: any;
1193
+ }, {
1194
+ message: string;
1195
+ error?: any;
1196
+ }>;
1197
+ 404: z.ZodObject<{
1198
+ message: z.ZodString;
1199
+ error: z.ZodAny;
1200
+ }, "strip", z.ZodTypeAny, {
1201
+ message: string;
1202
+ error?: any;
1203
+ }, {
1204
+ message: string;
1205
+ error?: any;
1206
+ }>;
1207
+ 422: z.ZodObject<{
1208
+ message: z.ZodString;
1209
+ error: z.ZodAny;
1210
+ }, "strip", z.ZodTypeAny, {
1211
+ message: string;
1212
+ error?: any;
1213
+ }, {
1214
+ message: string;
1215
+ error?: any;
1216
+ }>;
1217
+ 500: z.ZodObject<{
1218
+ message: z.ZodString;
1219
+ error: z.ZodAny;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ message: string;
1222
+ error?: any;
1223
+ }, {
1224
+ message: string;
1225
+ error?: any;
1226
+ }>;
1227
+ };
1228
+ path: "api/v1/channels";
1229
+ };
1135
1230
  getAllContact: {
1136
1231
  summary: "Get all contacts";
1137
1232
  method: "GET";
@@ -2156,6 +2251,968 @@ export declare const publicApiContract: {
2156
2251
  };
2157
2252
  path: "api/v1/contacts";
2158
2253
  };
2254
+ getContactBySocialPlatformId: {
2255
+ summary: "Get contacts by social platform id.";
2256
+ method: "GET";
2257
+ query: z.ZodObject<{
2258
+ socialPlatformId: z.ZodString;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ socialPlatformId: string;
2261
+ }, {
2262
+ socialPlatformId: string;
2263
+ }>;
2264
+ responses: {
2265
+ 200: z.ZodObject<{
2266
+ status: z.ZodString;
2267
+ message: z.ZodString;
2268
+ data: z.ZodArray<z.ZodObject<{
2269
+ id: z.ZodString;
2270
+ createdAt: z.ZodDate;
2271
+ updatedAt: z.ZodDate;
2272
+ deletedAt: z.ZodNullable<z.ZodDate>;
2273
+ name: z.ZodString;
2274
+ address: z.ZodNullable<z.ZodString>;
2275
+ channel: z.ZodNullable<z.ZodString>;
2276
+ notes: z.ZodNullable<z.ZodString>;
2277
+ contactProfile: z.ZodNullable<z.ZodString>;
2278
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
2279
+ tags: z.ZodArray<z.ZodObject<{
2280
+ id: z.ZodString;
2281
+ createdAt: z.ZodDate;
2282
+ updatedAt: z.ZodDate;
2283
+ deletedAt: z.ZodNullable<z.ZodDate>;
2284
+ name: z.ZodString;
2285
+ }, "strip", z.ZodTypeAny, {
2286
+ name: string;
2287
+ id: string;
2288
+ createdAt: Date;
2289
+ updatedAt: Date;
2290
+ deletedAt: Date | null;
2291
+ }, {
2292
+ name: string;
2293
+ id: string;
2294
+ createdAt: Date;
2295
+ updatedAt: Date;
2296
+ deletedAt: Date | null;
2297
+ }>, "many">;
2298
+ company: z.ZodNullable<z.ZodObject<Omit<{
2299
+ id: z.ZodString;
2300
+ createdAt: z.ZodDate;
2301
+ updatedAt: z.ZodDate;
2302
+ deletedAt: z.ZodNullable<z.ZodDate>;
2303
+ name: z.ZodOptional<z.ZodString>;
2304
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2305
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2306
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2307
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2308
+ id: z.ZodString;
2309
+ createdAt: z.ZodDate;
2310
+ updatedAt: z.ZodDate;
2311
+ deletedAt: z.ZodNullable<z.ZodDate>;
2312
+ textValue: z.ZodNullable<z.ZodString>;
2313
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2314
+ numberValue: z.ZodNullable<z.ZodNumber>;
2315
+ dateValue: z.ZodNullable<z.ZodDate>;
2316
+ attribute: z.ZodObject<Omit<{
2317
+ id: z.ZodString;
2318
+ createdAt: z.ZodDate;
2319
+ updatedAt: z.ZodDate;
2320
+ deletedAt: z.ZodNullable<z.ZodDate>;
2321
+ systemName: z.ZodString;
2322
+ displayName: z.ZodString;
2323
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2324
+ position: z.ZodNumber;
2325
+ isDefault: z.ZodBoolean;
2326
+ isArchived: z.ZodBoolean;
2327
+ isRequired: z.ZodBoolean;
2328
+ isUnique: z.ZodBoolean;
2329
+ options: z.ZodArray<z.ZodObject<{
2330
+ position: z.ZodNumber;
2331
+ value: z.ZodString;
2332
+ label: z.ZodString;
2333
+ isDefault: z.ZodBoolean;
2334
+ id: z.ZodString;
2335
+ }, "strip", z.ZodTypeAny, {
2336
+ id: string;
2337
+ position: number;
2338
+ value: string;
2339
+ label: string;
2340
+ isDefault: boolean;
2341
+ }, {
2342
+ id: string;
2343
+ position: number;
2344
+ value: string;
2345
+ label: string;
2346
+ isDefault: boolean;
2347
+ }>, "many">;
2348
+ group: z.ZodObject<{
2349
+ id: z.ZodString;
2350
+ createdAt: z.ZodDate;
2351
+ updatedAt: z.ZodDate;
2352
+ deletedAt: z.ZodNullable<z.ZodDate>;
2353
+ systemName: z.ZodString;
2354
+ displayName: z.ZodString;
2355
+ }, "strip", z.ZodTypeAny, {
2356
+ id: string;
2357
+ createdAt: Date;
2358
+ updatedAt: Date;
2359
+ deletedAt: Date | null;
2360
+ systemName: string;
2361
+ displayName: string;
2362
+ }, {
2363
+ id: string;
2364
+ createdAt: Date;
2365
+ updatedAt: Date;
2366
+ deletedAt: Date | null;
2367
+ systemName: string;
2368
+ displayName: string;
2369
+ }>;
2370
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2371
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2372
+ id: string;
2373
+ position: number;
2374
+ createdAt: Date;
2375
+ updatedAt: Date;
2376
+ deletedAt: Date | null;
2377
+ systemName: string;
2378
+ displayName: string;
2379
+ isDefault: boolean;
2380
+ isArchived: boolean;
2381
+ isRequired: boolean;
2382
+ isUnique: boolean;
2383
+ }, {
2384
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2385
+ id: string;
2386
+ position: number;
2387
+ createdAt: Date;
2388
+ updatedAt: Date;
2389
+ deletedAt: Date | null;
2390
+ systemName: string;
2391
+ displayName: string;
2392
+ isDefault: boolean;
2393
+ isArchived: boolean;
2394
+ isRequired: boolean;
2395
+ isUnique: boolean;
2396
+ }>;
2397
+ }, "strip", z.ZodTypeAny, {
2398
+ id: string;
2399
+ createdAt: Date;
2400
+ updatedAt: Date;
2401
+ deletedAt: Date | null;
2402
+ attribute: {
2403
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2404
+ id: string;
2405
+ position: number;
2406
+ createdAt: Date;
2407
+ updatedAt: Date;
2408
+ deletedAt: Date | null;
2409
+ systemName: string;
2410
+ displayName: string;
2411
+ isDefault: boolean;
2412
+ isArchived: boolean;
2413
+ isRequired: boolean;
2414
+ isUnique: boolean;
2415
+ };
2416
+ textValue: string | null;
2417
+ booleanValue: boolean | null;
2418
+ numberValue: number | null;
2419
+ dateValue: Date | null;
2420
+ }, {
2421
+ id: string;
2422
+ createdAt: Date;
2423
+ updatedAt: Date;
2424
+ deletedAt: Date | null;
2425
+ attribute: {
2426
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2427
+ id: string;
2428
+ position: number;
2429
+ createdAt: Date;
2430
+ updatedAt: Date;
2431
+ deletedAt: Date | null;
2432
+ systemName: string;
2433
+ displayName: string;
2434
+ isDefault: boolean;
2435
+ isArchived: boolean;
2436
+ isRequired: boolean;
2437
+ isUnique: boolean;
2438
+ };
2439
+ textValue: string | null;
2440
+ booleanValue: boolean | null;
2441
+ numberValue: number | null;
2442
+ dateValue: Date | null;
2443
+ }>, "many">>;
2444
+ }, "customFields">, "strip", z.ZodTypeAny, {
2445
+ id: string;
2446
+ createdAt: Date;
2447
+ updatedAt: Date;
2448
+ deletedAt: Date | null;
2449
+ name?: string | undefined;
2450
+ address?: string | null | undefined;
2451
+ phone?: string | null | undefined;
2452
+ industry?: string | null | undefined;
2453
+ }, {
2454
+ id: string;
2455
+ createdAt: Date;
2456
+ updatedAt: Date;
2457
+ deletedAt: Date | null;
2458
+ name?: string | undefined;
2459
+ address?: string | null | undefined;
2460
+ phone?: string | null | undefined;
2461
+ industry?: string | null | undefined;
2462
+ }>>;
2463
+ customFields: z.ZodArray<z.ZodObject<{
2464
+ id: z.ZodString;
2465
+ createdAt: z.ZodDate;
2466
+ updatedAt: z.ZodDate;
2467
+ deletedAt: z.ZodNullable<z.ZodDate>;
2468
+ textValue: z.ZodNullable<z.ZodString>;
2469
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2470
+ numberValue: z.ZodNullable<z.ZodNumber>;
2471
+ dateValue: z.ZodNullable<z.ZodDate>;
2472
+ attribute: z.ZodObject<Omit<{
2473
+ id: z.ZodString;
2474
+ createdAt: z.ZodDate;
2475
+ updatedAt: z.ZodDate;
2476
+ deletedAt: z.ZodNullable<z.ZodDate>;
2477
+ systemName: z.ZodString;
2478
+ displayName: z.ZodString;
2479
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2480
+ position: z.ZodNumber;
2481
+ isDefault: z.ZodBoolean;
2482
+ isArchived: z.ZodBoolean;
2483
+ isRequired: z.ZodBoolean;
2484
+ isUnique: z.ZodBoolean;
2485
+ options: z.ZodArray<z.ZodObject<{
2486
+ position: z.ZodNumber;
2487
+ value: z.ZodString;
2488
+ label: z.ZodString;
2489
+ isDefault: z.ZodBoolean;
2490
+ id: z.ZodString;
2491
+ }, "strip", z.ZodTypeAny, {
2492
+ id: string;
2493
+ position: number;
2494
+ value: string;
2495
+ label: string;
2496
+ isDefault: boolean;
2497
+ }, {
2498
+ id: string;
2499
+ position: number;
2500
+ value: string;
2501
+ label: string;
2502
+ isDefault: boolean;
2503
+ }>, "many">;
2504
+ group: z.ZodObject<{
2505
+ id: z.ZodString;
2506
+ createdAt: z.ZodDate;
2507
+ updatedAt: z.ZodDate;
2508
+ deletedAt: z.ZodNullable<z.ZodDate>;
2509
+ systemName: z.ZodString;
2510
+ displayName: z.ZodString;
2511
+ }, "strip", z.ZodTypeAny, {
2512
+ id: string;
2513
+ createdAt: Date;
2514
+ updatedAt: Date;
2515
+ deletedAt: Date | null;
2516
+ systemName: string;
2517
+ displayName: string;
2518
+ }, {
2519
+ id: string;
2520
+ createdAt: Date;
2521
+ updatedAt: Date;
2522
+ deletedAt: Date | null;
2523
+ systemName: string;
2524
+ displayName: string;
2525
+ }>;
2526
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2527
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2528
+ id: string;
2529
+ position: number;
2530
+ createdAt: Date;
2531
+ updatedAt: Date;
2532
+ deletedAt: Date | null;
2533
+ systemName: string;
2534
+ displayName: string;
2535
+ isDefault: boolean;
2536
+ isArchived: boolean;
2537
+ isRequired: boolean;
2538
+ isUnique: boolean;
2539
+ }, {
2540
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2541
+ id: string;
2542
+ position: number;
2543
+ createdAt: Date;
2544
+ updatedAt: Date;
2545
+ deletedAt: Date | null;
2546
+ systemName: string;
2547
+ displayName: string;
2548
+ isDefault: boolean;
2549
+ isArchived: boolean;
2550
+ isRequired: boolean;
2551
+ isUnique: boolean;
2552
+ }>;
2553
+ uploads: z.ZodArray<z.ZodObject<{
2554
+ id: z.ZodString;
2555
+ createdAt: z.ZodDate;
2556
+ updatedAt: z.ZodDate;
2557
+ deletedAt: z.ZodNullable<z.ZodDate>;
2558
+ bucketName: z.ZodString;
2559
+ fileName: z.ZodString;
2560
+ fileSize: z.ZodNumber;
2561
+ fileKey: z.ZodString;
2562
+ fileUrl: z.ZodNullable<z.ZodString>;
2563
+ status: z.ZodNullable<z.ZodString>;
2564
+ }, "strip", z.ZodTypeAny, {
2565
+ id: string;
2566
+ status: string | null;
2567
+ createdAt: Date;
2568
+ updatedAt: Date;
2569
+ deletedAt: Date | null;
2570
+ fileName: string;
2571
+ fileKey: string;
2572
+ bucketName: string;
2573
+ fileSize: number;
2574
+ fileUrl: string | null;
2575
+ }, {
2576
+ id: string;
2577
+ status: string | null;
2578
+ createdAt: Date;
2579
+ updatedAt: Date;
2580
+ deletedAt: Date | null;
2581
+ fileName: string;
2582
+ fileKey: string;
2583
+ bucketName: string;
2584
+ fileSize: number;
2585
+ fileUrl: string | null;
2586
+ }>, "many">;
2587
+ }, "strip", z.ZodTypeAny, {
2588
+ id: string;
2589
+ createdAt: Date;
2590
+ updatedAt: Date;
2591
+ deletedAt: Date | null;
2592
+ attribute: {
2593
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2594
+ id: string;
2595
+ position: number;
2596
+ createdAt: Date;
2597
+ updatedAt: Date;
2598
+ deletedAt: Date | null;
2599
+ systemName: string;
2600
+ displayName: string;
2601
+ isDefault: boolean;
2602
+ isArchived: boolean;
2603
+ isRequired: boolean;
2604
+ isUnique: boolean;
2605
+ };
2606
+ textValue: string | null;
2607
+ booleanValue: boolean | null;
2608
+ numberValue: number | null;
2609
+ dateValue: Date | null;
2610
+ uploads: {
2611
+ id: string;
2612
+ status: string | null;
2613
+ createdAt: Date;
2614
+ updatedAt: Date;
2615
+ deletedAt: Date | null;
2616
+ fileName: string;
2617
+ fileKey: string;
2618
+ bucketName: string;
2619
+ fileSize: number;
2620
+ fileUrl: string | null;
2621
+ }[];
2622
+ }, {
2623
+ id: string;
2624
+ createdAt: Date;
2625
+ updatedAt: Date;
2626
+ deletedAt: Date | null;
2627
+ attribute: {
2628
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2629
+ id: string;
2630
+ position: number;
2631
+ createdAt: Date;
2632
+ updatedAt: Date;
2633
+ deletedAt: Date | null;
2634
+ systemName: string;
2635
+ displayName: string;
2636
+ isDefault: boolean;
2637
+ isArchived: boolean;
2638
+ isRequired: boolean;
2639
+ isUnique: boolean;
2640
+ };
2641
+ textValue: string | null;
2642
+ booleanValue: boolean | null;
2643
+ numberValue: number | null;
2644
+ dateValue: Date | null;
2645
+ uploads: {
2646
+ id: string;
2647
+ status: string | null;
2648
+ createdAt: Date;
2649
+ updatedAt: Date;
2650
+ deletedAt: Date | null;
2651
+ fileName: string;
2652
+ fileKey: string;
2653
+ bucketName: string;
2654
+ fileSize: number;
2655
+ fileUrl: string | null;
2656
+ }[];
2657
+ }>, "many">;
2658
+ contactEmails: z.ZodArray<z.ZodObject<{
2659
+ id: z.ZodString;
2660
+ createdAt: z.ZodDate;
2661
+ updatedAt: z.ZodDate;
2662
+ deletedAt: z.ZodNullable<z.ZodDate>;
2663
+ email: z.ZodString;
2664
+ isPrimary: z.ZodBoolean;
2665
+ }, "strip", z.ZodTypeAny, {
2666
+ id: string;
2667
+ isPrimary: boolean;
2668
+ email: string;
2669
+ createdAt: Date;
2670
+ updatedAt: Date;
2671
+ deletedAt: Date | null;
2672
+ }, {
2673
+ id: string;
2674
+ isPrimary: boolean;
2675
+ email: string;
2676
+ createdAt: Date;
2677
+ updatedAt: Date;
2678
+ deletedAt: Date | null;
2679
+ }>, "many">;
2680
+ contactPhones: z.ZodArray<z.ZodObject<{
2681
+ id: z.ZodString;
2682
+ createdAt: z.ZodDate;
2683
+ updatedAt: z.ZodDate;
2684
+ deletedAt: z.ZodNullable<z.ZodDate>;
2685
+ phone: z.ZodString;
2686
+ isPrimary: z.ZodBoolean;
2687
+ }, "strip", z.ZodTypeAny, {
2688
+ id: string;
2689
+ isPrimary: boolean;
2690
+ createdAt: Date;
2691
+ updatedAt: Date;
2692
+ deletedAt: Date | null;
2693
+ phone: string;
2694
+ }, {
2695
+ id: string;
2696
+ isPrimary: boolean;
2697
+ createdAt: Date;
2698
+ updatedAt: Date;
2699
+ deletedAt: Date | null;
2700
+ phone: string;
2701
+ }>, "many">;
2702
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2703
+ id: z.ZodString;
2704
+ createdAt: z.ZodDate;
2705
+ updatedAt: z.ZodDate;
2706
+ deletedAt: z.ZodNullable<z.ZodDate>;
2707
+ entityId: z.ZodString;
2708
+ description: z.ZodString;
2709
+ entityType: z.ZodObject<{
2710
+ id: z.ZodString;
2711
+ createdAt: z.ZodDate;
2712
+ updatedAt: z.ZodDate;
2713
+ deletedAt: z.ZodNullable<z.ZodDate>;
2714
+ entity: z.ZodString;
2715
+ description: z.ZodNullable<z.ZodString>;
2716
+ }, "strip", z.ZodTypeAny, {
2717
+ id: string;
2718
+ description: string | null;
2719
+ createdAt: Date;
2720
+ updatedAt: Date;
2721
+ deletedAt: Date | null;
2722
+ entity: string;
2723
+ }, {
2724
+ id: string;
2725
+ description: string | null;
2726
+ createdAt: Date;
2727
+ updatedAt: Date;
2728
+ deletedAt: Date | null;
2729
+ entity: string;
2730
+ }>;
2731
+ }, "strip", z.ZodTypeAny, {
2732
+ id: string;
2733
+ description: string;
2734
+ createdAt: Date;
2735
+ updatedAt: Date;
2736
+ deletedAt: Date | null;
2737
+ entityId: string;
2738
+ entityType: {
2739
+ id: string;
2740
+ description: string | null;
2741
+ createdAt: Date;
2742
+ updatedAt: Date;
2743
+ deletedAt: Date | null;
2744
+ entity: string;
2745
+ };
2746
+ }, {
2747
+ id: string;
2748
+ description: string;
2749
+ createdAt: Date;
2750
+ updatedAt: Date;
2751
+ deletedAt: Date | null;
2752
+ entityId: string;
2753
+ entityType: {
2754
+ id: string;
2755
+ description: string | null;
2756
+ createdAt: Date;
2757
+ updatedAt: Date;
2758
+ deletedAt: Date | null;
2759
+ entity: string;
2760
+ };
2761
+ }>, "many">>;
2762
+ }, "strip", z.ZodTypeAny, {
2763
+ name: string;
2764
+ id: string;
2765
+ channel: string | null;
2766
+ address: string | null;
2767
+ createdAt: Date;
2768
+ updatedAt: Date;
2769
+ deletedAt: Date | null;
2770
+ customFields: {
2771
+ id: string;
2772
+ createdAt: Date;
2773
+ updatedAt: Date;
2774
+ deletedAt: Date | null;
2775
+ attribute: {
2776
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2777
+ id: string;
2778
+ position: number;
2779
+ createdAt: Date;
2780
+ updatedAt: Date;
2781
+ deletedAt: Date | null;
2782
+ systemName: string;
2783
+ displayName: string;
2784
+ isDefault: boolean;
2785
+ isArchived: boolean;
2786
+ isRequired: boolean;
2787
+ isUnique: boolean;
2788
+ };
2789
+ textValue: string | null;
2790
+ booleanValue: boolean | null;
2791
+ numberValue: number | null;
2792
+ dateValue: Date | null;
2793
+ uploads: {
2794
+ id: string;
2795
+ status: string | null;
2796
+ createdAt: Date;
2797
+ updatedAt: Date;
2798
+ deletedAt: Date | null;
2799
+ fileName: string;
2800
+ fileKey: string;
2801
+ bucketName: string;
2802
+ fileSize: number;
2803
+ fileUrl: string | null;
2804
+ }[];
2805
+ }[];
2806
+ company: {
2807
+ id: string;
2808
+ createdAt: Date;
2809
+ updatedAt: Date;
2810
+ deletedAt: Date | null;
2811
+ name?: string | undefined;
2812
+ address?: string | null | undefined;
2813
+ phone?: string | null | undefined;
2814
+ industry?: string | null | undefined;
2815
+ } | null;
2816
+ notes: string | null;
2817
+ contactProfile: string | null;
2818
+ socialProfileUrl: string | null;
2819
+ tags: {
2820
+ name: string;
2821
+ id: string;
2822
+ createdAt: Date;
2823
+ updatedAt: Date;
2824
+ deletedAt: Date | null;
2825
+ }[];
2826
+ contactEmails: {
2827
+ id: string;
2828
+ isPrimary: boolean;
2829
+ email: string;
2830
+ createdAt: Date;
2831
+ updatedAt: Date;
2832
+ deletedAt: Date | null;
2833
+ }[];
2834
+ contactPhones: {
2835
+ id: string;
2836
+ isPrimary: boolean;
2837
+ createdAt: Date;
2838
+ updatedAt: Date;
2839
+ deletedAt: Date | null;
2840
+ phone: string;
2841
+ }[];
2842
+ activityLogs?: {
2843
+ id: string;
2844
+ description: string;
2845
+ createdAt: Date;
2846
+ updatedAt: Date;
2847
+ deletedAt: Date | null;
2848
+ entityId: string;
2849
+ entityType: {
2850
+ id: string;
2851
+ description: string | null;
2852
+ createdAt: Date;
2853
+ updatedAt: Date;
2854
+ deletedAt: Date | null;
2855
+ entity: string;
2856
+ };
2857
+ }[] | undefined;
2858
+ }, {
2859
+ name: string;
2860
+ id: string;
2861
+ channel: string | null;
2862
+ address: string | null;
2863
+ createdAt: Date;
2864
+ updatedAt: Date;
2865
+ deletedAt: Date | null;
2866
+ customFields: {
2867
+ id: string;
2868
+ createdAt: Date;
2869
+ updatedAt: Date;
2870
+ deletedAt: Date | null;
2871
+ attribute: {
2872
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2873
+ id: string;
2874
+ position: number;
2875
+ createdAt: Date;
2876
+ updatedAt: Date;
2877
+ deletedAt: Date | null;
2878
+ systemName: string;
2879
+ displayName: string;
2880
+ isDefault: boolean;
2881
+ isArchived: boolean;
2882
+ isRequired: boolean;
2883
+ isUnique: boolean;
2884
+ };
2885
+ textValue: string | null;
2886
+ booleanValue: boolean | null;
2887
+ numberValue: number | null;
2888
+ dateValue: Date | null;
2889
+ uploads: {
2890
+ id: string;
2891
+ status: string | null;
2892
+ createdAt: Date;
2893
+ updatedAt: Date;
2894
+ deletedAt: Date | null;
2895
+ fileName: string;
2896
+ fileKey: string;
2897
+ bucketName: string;
2898
+ fileSize: number;
2899
+ fileUrl: string | null;
2900
+ }[];
2901
+ }[];
2902
+ company: {
2903
+ id: string;
2904
+ createdAt: Date;
2905
+ updatedAt: Date;
2906
+ deletedAt: Date | null;
2907
+ name?: string | undefined;
2908
+ address?: string | null | undefined;
2909
+ phone?: string | null | undefined;
2910
+ industry?: string | null | undefined;
2911
+ } | null;
2912
+ notes: string | null;
2913
+ contactProfile: string | null;
2914
+ socialProfileUrl: string | null;
2915
+ tags: {
2916
+ name: string;
2917
+ id: string;
2918
+ createdAt: Date;
2919
+ updatedAt: Date;
2920
+ deletedAt: Date | null;
2921
+ }[];
2922
+ contactEmails: {
2923
+ id: string;
2924
+ isPrimary: boolean;
2925
+ email: string;
2926
+ createdAt: Date;
2927
+ updatedAt: Date;
2928
+ deletedAt: Date | null;
2929
+ }[];
2930
+ contactPhones: {
2931
+ id: string;
2932
+ isPrimary: boolean;
2933
+ createdAt: Date;
2934
+ updatedAt: Date;
2935
+ deletedAt: Date | null;
2936
+ phone: string;
2937
+ }[];
2938
+ activityLogs?: {
2939
+ id: string;
2940
+ description: string;
2941
+ createdAt: Date;
2942
+ updatedAt: Date;
2943
+ deletedAt: Date | null;
2944
+ entityId: string;
2945
+ entityType: {
2946
+ id: string;
2947
+ description: string | null;
2948
+ createdAt: Date;
2949
+ updatedAt: Date;
2950
+ deletedAt: Date | null;
2951
+ entity: string;
2952
+ };
2953
+ }[] | undefined;
2954
+ }>, "many">;
2955
+ requestId: z.ZodString;
2956
+ }, "strip", z.ZodTypeAny, {
2957
+ data: {
2958
+ name: string;
2959
+ id: string;
2960
+ channel: string | null;
2961
+ address: string | null;
2962
+ createdAt: Date;
2963
+ updatedAt: Date;
2964
+ deletedAt: Date | null;
2965
+ customFields: {
2966
+ id: string;
2967
+ createdAt: Date;
2968
+ updatedAt: Date;
2969
+ deletedAt: Date | null;
2970
+ attribute: {
2971
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2972
+ id: string;
2973
+ position: number;
2974
+ createdAt: Date;
2975
+ updatedAt: Date;
2976
+ deletedAt: Date | null;
2977
+ systemName: string;
2978
+ displayName: string;
2979
+ isDefault: boolean;
2980
+ isArchived: boolean;
2981
+ isRequired: boolean;
2982
+ isUnique: boolean;
2983
+ };
2984
+ textValue: string | null;
2985
+ booleanValue: boolean | null;
2986
+ numberValue: number | null;
2987
+ dateValue: Date | null;
2988
+ uploads: {
2989
+ id: string;
2990
+ status: string | null;
2991
+ createdAt: Date;
2992
+ updatedAt: Date;
2993
+ deletedAt: Date | null;
2994
+ fileName: string;
2995
+ fileKey: string;
2996
+ bucketName: string;
2997
+ fileSize: number;
2998
+ fileUrl: string | null;
2999
+ }[];
3000
+ }[];
3001
+ company: {
3002
+ id: string;
3003
+ createdAt: Date;
3004
+ updatedAt: Date;
3005
+ deletedAt: Date | null;
3006
+ name?: string | undefined;
3007
+ address?: string | null | undefined;
3008
+ phone?: string | null | undefined;
3009
+ industry?: string | null | undefined;
3010
+ } | null;
3011
+ notes: string | null;
3012
+ contactProfile: string | null;
3013
+ socialProfileUrl: string | null;
3014
+ tags: {
3015
+ name: string;
3016
+ id: string;
3017
+ createdAt: Date;
3018
+ updatedAt: Date;
3019
+ deletedAt: Date | null;
3020
+ }[];
3021
+ contactEmails: {
3022
+ id: string;
3023
+ isPrimary: boolean;
3024
+ email: string;
3025
+ createdAt: Date;
3026
+ updatedAt: Date;
3027
+ deletedAt: Date | null;
3028
+ }[];
3029
+ contactPhones: {
3030
+ id: string;
3031
+ isPrimary: boolean;
3032
+ createdAt: Date;
3033
+ updatedAt: Date;
3034
+ deletedAt: Date | null;
3035
+ phone: string;
3036
+ }[];
3037
+ activityLogs?: {
3038
+ id: string;
3039
+ description: string;
3040
+ createdAt: Date;
3041
+ updatedAt: Date;
3042
+ deletedAt: Date | null;
3043
+ entityId: string;
3044
+ entityType: {
3045
+ id: string;
3046
+ description: string | null;
3047
+ createdAt: Date;
3048
+ updatedAt: Date;
3049
+ deletedAt: Date | null;
3050
+ entity: string;
3051
+ };
3052
+ }[] | undefined;
3053
+ }[];
3054
+ message: string;
3055
+ status: string;
3056
+ requestId: string;
3057
+ }, {
3058
+ data: {
3059
+ name: string;
3060
+ id: string;
3061
+ channel: string | null;
3062
+ address: string | null;
3063
+ createdAt: Date;
3064
+ updatedAt: Date;
3065
+ deletedAt: Date | null;
3066
+ customFields: {
3067
+ id: string;
3068
+ createdAt: Date;
3069
+ updatedAt: Date;
3070
+ deletedAt: Date | null;
3071
+ attribute: {
3072
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3073
+ id: string;
3074
+ position: number;
3075
+ createdAt: Date;
3076
+ updatedAt: Date;
3077
+ deletedAt: Date | null;
3078
+ systemName: string;
3079
+ displayName: string;
3080
+ isDefault: boolean;
3081
+ isArchived: boolean;
3082
+ isRequired: boolean;
3083
+ isUnique: boolean;
3084
+ };
3085
+ textValue: string | null;
3086
+ booleanValue: boolean | null;
3087
+ numberValue: number | null;
3088
+ dateValue: Date | null;
3089
+ uploads: {
3090
+ id: string;
3091
+ status: string | null;
3092
+ createdAt: Date;
3093
+ updatedAt: Date;
3094
+ deletedAt: Date | null;
3095
+ fileName: string;
3096
+ fileKey: string;
3097
+ bucketName: string;
3098
+ fileSize: number;
3099
+ fileUrl: string | null;
3100
+ }[];
3101
+ }[];
3102
+ company: {
3103
+ id: string;
3104
+ createdAt: Date;
3105
+ updatedAt: Date;
3106
+ deletedAt: Date | null;
3107
+ name?: string | undefined;
3108
+ address?: string | null | undefined;
3109
+ phone?: string | null | undefined;
3110
+ industry?: string | null | undefined;
3111
+ } | null;
3112
+ notes: string | null;
3113
+ contactProfile: string | null;
3114
+ socialProfileUrl: string | null;
3115
+ tags: {
3116
+ name: string;
3117
+ id: string;
3118
+ createdAt: Date;
3119
+ updatedAt: Date;
3120
+ deletedAt: Date | null;
3121
+ }[];
3122
+ contactEmails: {
3123
+ id: string;
3124
+ isPrimary: boolean;
3125
+ email: string;
3126
+ createdAt: Date;
3127
+ updatedAt: Date;
3128
+ deletedAt: Date | null;
3129
+ }[];
3130
+ contactPhones: {
3131
+ id: string;
3132
+ isPrimary: boolean;
3133
+ createdAt: Date;
3134
+ updatedAt: Date;
3135
+ deletedAt: Date | null;
3136
+ phone: string;
3137
+ }[];
3138
+ activityLogs?: {
3139
+ id: string;
3140
+ description: string;
3141
+ createdAt: Date;
3142
+ updatedAt: Date;
3143
+ deletedAt: Date | null;
3144
+ entityId: string;
3145
+ entityType: {
3146
+ id: string;
3147
+ description: string | null;
3148
+ createdAt: Date;
3149
+ updatedAt: Date;
3150
+ deletedAt: Date | null;
3151
+ entity: string;
3152
+ };
3153
+ }[] | undefined;
3154
+ }[];
3155
+ message: string;
3156
+ status: string;
3157
+ requestId: string;
3158
+ }>;
3159
+ 400: z.ZodObject<{
3160
+ message: z.ZodString;
3161
+ }, "strip", z.ZodTypeAny, {
3162
+ message: string;
3163
+ }, {
3164
+ message: string;
3165
+ }>;
3166
+ 409: z.ZodObject<{
3167
+ message: z.ZodString;
3168
+ }, "strip", z.ZodTypeAny, {
3169
+ message: string;
3170
+ }, {
3171
+ message: string;
3172
+ }>;
3173
+ 401: z.ZodObject<{
3174
+ message: z.ZodString;
3175
+ error: z.ZodAny;
3176
+ }, "strip", z.ZodTypeAny, {
3177
+ message: string;
3178
+ error?: any;
3179
+ }, {
3180
+ message: string;
3181
+ error?: any;
3182
+ }>;
3183
+ 404: z.ZodObject<{
3184
+ message: z.ZodString;
3185
+ error: z.ZodAny;
3186
+ }, "strip", z.ZodTypeAny, {
3187
+ message: string;
3188
+ error?: any;
3189
+ }, {
3190
+ message: string;
3191
+ error?: any;
3192
+ }>;
3193
+ 422: z.ZodObject<{
3194
+ message: z.ZodString;
3195
+ error: z.ZodAny;
3196
+ }, "strip", z.ZodTypeAny, {
3197
+ message: string;
3198
+ error?: any;
3199
+ }, {
3200
+ message: string;
3201
+ error?: any;
3202
+ }>;
3203
+ 500: z.ZodObject<{
3204
+ message: z.ZodString;
3205
+ error: z.ZodAny;
3206
+ }, "strip", z.ZodTypeAny, {
3207
+ message: string;
3208
+ error?: any;
3209
+ }, {
3210
+ message: string;
3211
+ error?: any;
3212
+ }>;
3213
+ };
3214
+ path: "api/v1/contacts/social-platform";
3215
+ };
2159
3216
  getContactFields: {
2160
3217
  summary: "Get contact custom fields.";
2161
3218
  method: "GET";