@kl1/contracts 1.4.18 → 1.4.20

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.
@@ -279201,74 +279201,1385 @@ export declare const notificationContract: {
279201
279201
  };
279202
279202
  export declare const publicApiContract: {
279203
279203
  publicApi: {
279204
- createContact: {
279204
+ sendLineMessage: {
279205
279205
  body: import("zod").ZodObject<{
279206
- name: import("zod").ZodString;
279207
- email: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
279208
- email: import("zod").ZodString;
279209
- isPrimary: import("zod").ZodBoolean;
279206
+ channelId: import("zod").ZodString;
279207
+ message: import("zod").ZodString;
279208
+ contactId: import("zod").ZodString;
279209
+ }, "strip", import("zod").ZodTypeAny, {
279210
+ message: string;
279211
+ channelId: string;
279212
+ contactId: string;
279213
+ }, {
279214
+ message: string;
279215
+ channelId: string;
279216
+ contactId: string;
279217
+ }>;
279218
+ summary: "Send line message";
279219
+ method: "POST";
279220
+ responses: {
279221
+ 201: import("zod").ZodObject<{
279222
+ status: import("zod").ZodString;
279223
+ channel: import("zod").ZodString;
279224
+ message: import("zod").ZodString;
279225
+ requestId: import("zod").ZodString;
279226
+ }, "strip", import("zod").ZodTypeAny, {
279227
+ message: string;
279228
+ channel: string;
279229
+ status: string;
279230
+ requestId: string;
279231
+ }, {
279232
+ message: string;
279233
+ channel: string;
279234
+ status: string;
279235
+ requestId: string;
279236
+ }>;
279237
+ 400: import("zod").ZodObject<{
279238
+ message: import("zod").ZodString;
279239
+ }, "strip", import("zod").ZodTypeAny, {
279240
+ message: string;
279241
+ }, {
279242
+ message: string;
279243
+ }>;
279244
+ 409: import("zod").ZodObject<{
279245
+ message: import("zod").ZodString;
279246
+ }, "strip", import("zod").ZodTypeAny, {
279247
+ message: string;
279248
+ }, {
279249
+ message: string;
279250
+ }>;
279251
+ 401: import("zod").ZodObject<{
279252
+ message: import("zod").ZodString;
279253
+ error: import("zod").ZodAny;
279254
+ }, "strip", import("zod").ZodTypeAny, {
279255
+ message: string;
279256
+ error?: any;
279257
+ }, {
279258
+ message: string;
279259
+ error?: any;
279260
+ }>;
279261
+ 404: import("zod").ZodObject<{
279262
+ message: import("zod").ZodString;
279263
+ error: import("zod").ZodAny;
279264
+ }, "strip", import("zod").ZodTypeAny, {
279265
+ message: string;
279266
+ error?: any;
279267
+ }, {
279268
+ message: string;
279269
+ error?: any;
279270
+ }>;
279271
+ 422: import("zod").ZodObject<{
279272
+ message: import("zod").ZodString;
279273
+ error: import("zod").ZodAny;
279274
+ }, "strip", import("zod").ZodTypeAny, {
279275
+ message: string;
279276
+ error?: any;
279277
+ }, {
279278
+ message: string;
279279
+ error?: any;
279280
+ }>;
279281
+ 500: import("zod").ZodObject<{
279282
+ message: import("zod").ZodString;
279283
+ error: import("zod").ZodAny;
279284
+ }, "strip", import("zod").ZodTypeAny, {
279285
+ message: string;
279286
+ error?: any;
279287
+ }, {
279288
+ message: string;
279289
+ error?: any;
279290
+ }>;
279291
+ };
279292
+ path: "api/v1/message/line/send";
279293
+ };
279294
+ getAllTags: {
279295
+ method: "GET";
279296
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
279297
+ group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">]>>>;
279298
+ keyword: import("zod").ZodOptional<import("zod").ZodString>;
279299
+ }, "strip", import("zod").ZodTypeAny, {
279300
+ group?: "general" | "contact" | undefined;
279301
+ keyword?: string | undefined;
279302
+ }, {
279303
+ group?: "general" | "contact" | undefined;
279304
+ keyword?: string | undefined;
279305
+ }>>;
279306
+ responses: {
279307
+ 200: import("zod").ZodObject<{
279308
+ requestId: import("zod").ZodString;
279309
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
279310
+ id: import("zod").ZodString;
279311
+ createdAt: import("zod").ZodDate;
279312
+ updatedAt: import("zod").ZodDate;
279313
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279314
+ name: import("zod").ZodString;
279315
+ }, "strip", import("zod").ZodTypeAny, {
279316
+ name: string;
279317
+ id: string;
279318
+ createdAt: Date;
279319
+ updatedAt: Date;
279320
+ deletedAt: Date | null;
279321
+ }, {
279322
+ name: string;
279323
+ id: string;
279324
+ createdAt: Date;
279325
+ updatedAt: Date;
279326
+ deletedAt: Date | null;
279327
+ }>, "many">;
279328
+ }, "strip", import("zod").ZodTypeAny, {
279329
+ requestId: string;
279330
+ tags: {
279331
+ name: string;
279332
+ id: string;
279333
+ createdAt: Date;
279334
+ updatedAt: Date;
279335
+ deletedAt: Date | null;
279336
+ }[];
279337
+ }, {
279338
+ requestId: string;
279339
+ tags: {
279340
+ name: string;
279341
+ id: string;
279342
+ createdAt: Date;
279343
+ updatedAt: Date;
279344
+ deletedAt: Date | null;
279345
+ }[];
279346
+ }>;
279347
+ 400: import("zod").ZodObject<{
279348
+ message: import("zod").ZodString;
279349
+ }, "strip", import("zod").ZodTypeAny, {
279350
+ message: string;
279351
+ }, {
279352
+ message: string;
279353
+ }>;
279354
+ 409: import("zod").ZodObject<{
279355
+ message: import("zod").ZodString;
279356
+ }, "strip", import("zod").ZodTypeAny, {
279357
+ message: string;
279358
+ }, {
279359
+ message: string;
279360
+ }>;
279361
+ 401: import("zod").ZodObject<{
279362
+ message: import("zod").ZodString;
279363
+ error: import("zod").ZodAny;
279364
+ }, "strip", import("zod").ZodTypeAny, {
279365
+ message: string;
279366
+ error?: any;
279367
+ }, {
279368
+ message: string;
279369
+ error?: any;
279370
+ }>;
279371
+ 404: import("zod").ZodObject<{
279372
+ message: import("zod").ZodString;
279373
+ error: import("zod").ZodAny;
279374
+ }, "strip", import("zod").ZodTypeAny, {
279375
+ message: string;
279376
+ error?: any;
279377
+ }, {
279378
+ message: string;
279379
+ error?: any;
279380
+ }>;
279381
+ 422: import("zod").ZodObject<{
279382
+ message: import("zod").ZodString;
279383
+ error: import("zod").ZodAny;
279384
+ }, "strip", import("zod").ZodTypeAny, {
279385
+ message: string;
279386
+ error?: any;
279387
+ }, {
279388
+ message: string;
279389
+ error?: any;
279390
+ }>;
279391
+ 500: import("zod").ZodObject<{
279392
+ message: import("zod").ZodString;
279393
+ error: import("zod").ZodAny;
279394
+ }, "strip", import("zod").ZodTypeAny, {
279395
+ message: string;
279396
+ error?: any;
279397
+ }, {
279398
+ message: string;
279399
+ error?: any;
279400
+ }>;
279401
+ };
279402
+ path: "api/v1/tags";
279403
+ };
279404
+ getAllChannel: {
279405
+ method: "GET";
279406
+ query: import("zod").ZodObject<{
279407
+ page: import("zod").ZodDefault<import("zod").ZodNumber>;
279408
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
279409
+ keyword: import("zod").ZodOptional<import("zod").ZodString>;
279410
+ }, "strip", import("zod").ZodTypeAny, {
279411
+ page: number;
279412
+ pageSize: number;
279413
+ keyword?: string | undefined;
279414
+ }, {
279415
+ page?: number | undefined;
279416
+ pageSize?: number | undefined;
279417
+ keyword?: string | undefined;
279418
+ }>;
279419
+ responses: {
279420
+ 200: import("zod").ZodObject<{
279421
+ requestId: import("zod").ZodString;
279422
+ page: import("zod").ZodNumber;
279423
+ pageSize: import("zod").ZodNumber;
279424
+ total: import("zod").ZodNumber;
279425
+ lastPage: import("zod").ZodNumber;
279426
+ data: import("zod").ZodAny;
279427
+ }, "strip", import("zod").ZodTypeAny, {
279428
+ total: number;
279429
+ page: number;
279430
+ pageSize: number;
279431
+ lastPage: number;
279432
+ requestId: string;
279433
+ data?: any;
279434
+ }, {
279435
+ total: number;
279436
+ page: number;
279437
+ pageSize: number;
279438
+ lastPage: number;
279439
+ requestId: string;
279440
+ data?: any;
279441
+ }>;
279442
+ 400: import("zod").ZodObject<{
279443
+ message: import("zod").ZodString;
279444
+ }, "strip", import("zod").ZodTypeAny, {
279445
+ message: string;
279446
+ }, {
279447
+ message: string;
279448
+ }>;
279449
+ 409: import("zod").ZodObject<{
279450
+ message: import("zod").ZodString;
279451
+ }, "strip", import("zod").ZodTypeAny, {
279452
+ message: string;
279453
+ }, {
279454
+ message: string;
279455
+ }>;
279456
+ 401: import("zod").ZodObject<{
279457
+ message: import("zod").ZodString;
279458
+ error: import("zod").ZodAny;
279459
+ }, "strip", import("zod").ZodTypeAny, {
279460
+ message: string;
279461
+ error?: any;
279462
+ }, {
279463
+ message: string;
279464
+ error?: any;
279465
+ }>;
279466
+ 404: import("zod").ZodObject<{
279467
+ message: import("zod").ZodString;
279468
+ error: import("zod").ZodAny;
279469
+ }, "strip", import("zod").ZodTypeAny, {
279470
+ message: string;
279471
+ error?: any;
279472
+ }, {
279473
+ message: string;
279474
+ error?: any;
279475
+ }>;
279476
+ 422: import("zod").ZodObject<{
279477
+ message: import("zod").ZodString;
279478
+ error: import("zod").ZodAny;
279479
+ }, "strip", import("zod").ZodTypeAny, {
279480
+ message: string;
279481
+ error?: any;
279482
+ }, {
279483
+ message: string;
279484
+ error?: any;
279485
+ }>;
279486
+ 500: import("zod").ZodObject<{
279487
+ message: import("zod").ZodString;
279488
+ error: import("zod").ZodAny;
279489
+ }, "strip", import("zod").ZodTypeAny, {
279490
+ message: string;
279491
+ error?: any;
279492
+ }, {
279493
+ message: string;
279494
+ error?: any;
279495
+ }>;
279496
+ };
279497
+ path: "api/v1/channels";
279498
+ };
279499
+ createContact: {
279500
+ body: import("zod").ZodObject<{
279501
+ name: import("zod").ZodString;
279502
+ email: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
279503
+ email: import("zod").ZodString;
279504
+ isPrimary: import("zod").ZodBoolean;
279505
+ }, "strip", import("zod").ZodTypeAny, {
279506
+ isPrimary: boolean;
279507
+ email: string;
279508
+ }, {
279509
+ isPrimary: boolean;
279510
+ email: string;
279511
+ }>, "many">>;
279512
+ channel: import("zod").ZodOptional<import("zod").ZodString>;
279513
+ address: import("zod").ZodOptional<import("zod").ZodString>;
279514
+ phone: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
279515
+ phone: import("zod").ZodString;
279516
+ isPrimary: import("zod").ZodBoolean;
279517
+ }, "strip", import("zod").ZodTypeAny, {
279518
+ isPrimary: boolean;
279519
+ phone: string;
279520
+ }, {
279521
+ isPrimary: boolean;
279522
+ phone: string;
279523
+ }>, "many">>;
279524
+ notes: import("zod").ZodOptional<import("zod").ZodString>;
279525
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
279526
+ company: import("zod").ZodOptional<import("zod").ZodString>;
279527
+ customFields: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
279528
+ }, "strip", import("zod").ZodTypeAny, {
279529
+ name: string;
279530
+ customFields: Record<string, string>;
279531
+ email?: {
279532
+ isPrimary: boolean;
279533
+ email: string;
279534
+ }[] | undefined;
279535
+ channel?: string | undefined;
279536
+ address?: string | undefined;
279537
+ phone?: {
279538
+ isPrimary: boolean;
279539
+ phone: string;
279540
+ }[] | undefined;
279541
+ notes?: string | undefined;
279542
+ tags?: string[] | undefined;
279543
+ company?: string | undefined;
279544
+ }, {
279545
+ name: string;
279546
+ customFields: Record<string, string>;
279547
+ email?: {
279548
+ isPrimary: boolean;
279549
+ email: string;
279550
+ }[] | undefined;
279551
+ channel?: string | undefined;
279552
+ address?: string | undefined;
279553
+ phone?: {
279554
+ isPrimary: boolean;
279555
+ phone: string;
279556
+ }[] | undefined;
279557
+ notes?: string | undefined;
279558
+ tags?: string[] | undefined;
279559
+ company?: string | undefined;
279560
+ }>;
279561
+ summary: "Create a new contact";
279562
+ method: "POST";
279563
+ responses: {
279564
+ 201: import("zod").ZodObject<{
279565
+ requestId: import("zod").ZodString;
279566
+ data: import("zod").ZodObject<{
279567
+ id: import("zod").ZodString;
279568
+ createdAt: import("zod").ZodDate;
279569
+ updatedAt: import("zod").ZodDate;
279570
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279571
+ name: import("zod").ZodString;
279572
+ address: import("zod").ZodNullable<import("zod").ZodString>;
279573
+ channel: import("zod").ZodNullable<import("zod").ZodString>;
279574
+ notes: import("zod").ZodNullable<import("zod").ZodString>;
279575
+ contactProfile: import("zod").ZodNullable<import("zod").ZodString>;
279576
+ socialProfileUrl: import("zod").ZodNullable<import("zod").ZodString>;
279577
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
279578
+ id: import("zod").ZodString;
279579
+ createdAt: import("zod").ZodDate;
279580
+ updatedAt: import("zod").ZodDate;
279581
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279582
+ name: import("zod").ZodString;
279583
+ }, "strip", import("zod").ZodTypeAny, {
279584
+ name: string;
279585
+ id: string;
279586
+ createdAt: Date;
279587
+ updatedAt: Date;
279588
+ deletedAt: Date | null;
279589
+ }, {
279590
+ name: string;
279591
+ id: string;
279592
+ createdAt: Date;
279593
+ updatedAt: Date;
279594
+ deletedAt: Date | null;
279595
+ }>, "many">;
279596
+ company: import("zod").ZodNullable<import("zod").ZodObject<Omit<{
279597
+ id: import("zod").ZodString;
279598
+ createdAt: import("zod").ZodDate;
279599
+ updatedAt: import("zod").ZodDate;
279600
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279601
+ name: import("zod").ZodOptional<import("zod").ZodString>;
279602
+ phone: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
279603
+ address: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
279604
+ industry: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
279605
+ customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
279606
+ id: import("zod").ZodString;
279607
+ createdAt: import("zod").ZodDate;
279608
+ updatedAt: import("zod").ZodDate;
279609
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279610
+ textValue: import("zod").ZodNullable<import("zod").ZodString>;
279611
+ booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
279612
+ numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
279613
+ dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
279614
+ attribute: import("zod").ZodObject<Omit<{
279615
+ id: import("zod").ZodString;
279616
+ createdAt: import("zod").ZodDate;
279617
+ updatedAt: import("zod").ZodDate;
279618
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279619
+ systemName: import("zod").ZodString;
279620
+ displayName: import("zod").ZodString;
279621
+ type: import("zod").ZodUnion<[import("zod").ZodLiteral<"text">, import("zod").ZodLiteral<"textarea">, import("zod").ZodLiteral<"date">, import("zod").ZodLiteral<"select">, import("zod").ZodLiteral<"link">, import("zod").ZodLiteral<"attachment">]>;
279622
+ position: import("zod").ZodNumber;
279623
+ isDefault: import("zod").ZodBoolean;
279624
+ isArchived: import("zod").ZodBoolean;
279625
+ isRequired: import("zod").ZodBoolean;
279626
+ isUnique: import("zod").ZodBoolean;
279627
+ options: import("zod").ZodArray<import("zod").ZodObject<{
279628
+ position: import("zod").ZodNumber;
279629
+ value: import("zod").ZodString;
279630
+ label: import("zod").ZodString;
279631
+ isDefault: import("zod").ZodBoolean;
279632
+ id: import("zod").ZodString;
279633
+ }, "strip", import("zod").ZodTypeAny, {
279634
+ id: string;
279635
+ position: number;
279636
+ value: string;
279637
+ label: string;
279638
+ isDefault: boolean;
279639
+ }, {
279640
+ id: string;
279641
+ position: number;
279642
+ value: string;
279643
+ label: string;
279644
+ isDefault: boolean;
279645
+ }>, "many">;
279646
+ group: import("zod").ZodObject<{
279647
+ id: import("zod").ZodString;
279648
+ createdAt: import("zod").ZodDate;
279649
+ updatedAt: import("zod").ZodDate;
279650
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279651
+ systemName: import("zod").ZodString;
279652
+ displayName: import("zod").ZodString;
279653
+ }, "strip", import("zod").ZodTypeAny, {
279654
+ id: string;
279655
+ createdAt: Date;
279656
+ updatedAt: Date;
279657
+ deletedAt: Date | null;
279658
+ systemName: string;
279659
+ displayName: string;
279660
+ }, {
279661
+ id: string;
279662
+ createdAt: Date;
279663
+ updatedAt: Date;
279664
+ deletedAt: Date | null;
279665
+ systemName: string;
279666
+ displayName: string;
279667
+ }>;
279668
+ }, "options" | "group">, "strip", import("zod").ZodTypeAny, {
279669
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
279670
+ id: string;
279671
+ position: number;
279672
+ createdAt: Date;
279673
+ updatedAt: Date;
279674
+ deletedAt: Date | null;
279675
+ systemName: string;
279676
+ displayName: string;
279677
+ isDefault: boolean;
279678
+ isArchived: boolean;
279679
+ isRequired: boolean;
279680
+ isUnique: boolean;
279681
+ }, {
279682
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
279683
+ id: string;
279684
+ position: number;
279685
+ createdAt: Date;
279686
+ updatedAt: Date;
279687
+ deletedAt: Date | null;
279688
+ systemName: string;
279689
+ displayName: string;
279690
+ isDefault: boolean;
279691
+ isArchived: boolean;
279692
+ isRequired: boolean;
279693
+ isUnique: boolean;
279694
+ }>;
279695
+ }, "strip", import("zod").ZodTypeAny, {
279696
+ id: string;
279697
+ createdAt: Date;
279698
+ updatedAt: Date;
279699
+ deletedAt: Date | null;
279700
+ attribute: {
279701
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
279702
+ id: string;
279703
+ position: number;
279704
+ createdAt: Date;
279705
+ updatedAt: Date;
279706
+ deletedAt: Date | null;
279707
+ systemName: string;
279708
+ displayName: string;
279709
+ isDefault: boolean;
279710
+ isArchived: boolean;
279711
+ isRequired: boolean;
279712
+ isUnique: boolean;
279713
+ };
279714
+ textValue: string | null;
279715
+ booleanValue: boolean | null;
279716
+ numberValue: number | null;
279717
+ dateValue: Date | null;
279718
+ }, {
279719
+ id: string;
279720
+ createdAt: Date;
279721
+ updatedAt: Date;
279722
+ deletedAt: Date | null;
279723
+ attribute: {
279724
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
279725
+ id: string;
279726
+ position: number;
279727
+ createdAt: Date;
279728
+ updatedAt: Date;
279729
+ deletedAt: Date | null;
279730
+ systemName: string;
279731
+ displayName: string;
279732
+ isDefault: boolean;
279733
+ isArchived: boolean;
279734
+ isRequired: boolean;
279735
+ isUnique: boolean;
279736
+ };
279737
+ textValue: string | null;
279738
+ booleanValue: boolean | null;
279739
+ numberValue: number | null;
279740
+ dateValue: Date | null;
279741
+ }>, "many">>;
279742
+ }, "customFields">, "strip", import("zod").ZodTypeAny, {
279743
+ id: string;
279744
+ createdAt: Date;
279745
+ updatedAt: Date;
279746
+ deletedAt: Date | null;
279747
+ name?: string | undefined;
279748
+ address?: string | null | undefined;
279749
+ phone?: string | null | undefined;
279750
+ industry?: string | null | undefined;
279751
+ }, {
279752
+ id: string;
279753
+ createdAt: Date;
279754
+ updatedAt: Date;
279755
+ deletedAt: Date | null;
279756
+ name?: string | undefined;
279757
+ address?: string | null | undefined;
279758
+ phone?: string | null | undefined;
279759
+ industry?: string | null | undefined;
279760
+ }>>;
279761
+ customFields: import("zod").ZodArray<import("zod").ZodObject<{
279762
+ id: import("zod").ZodString;
279763
+ createdAt: import("zod").ZodDate;
279764
+ updatedAt: import("zod").ZodDate;
279765
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279766
+ textValue: import("zod").ZodNullable<import("zod").ZodString>;
279767
+ booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
279768
+ numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
279769
+ dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
279770
+ attribute: import("zod").ZodObject<Omit<{
279771
+ id: import("zod").ZodString;
279772
+ createdAt: import("zod").ZodDate;
279773
+ updatedAt: import("zod").ZodDate;
279774
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279775
+ systemName: import("zod").ZodString;
279776
+ displayName: import("zod").ZodString;
279777
+ type: import("zod").ZodUnion<[import("zod").ZodLiteral<"text">, import("zod").ZodLiteral<"textarea">, import("zod").ZodLiteral<"date">, import("zod").ZodLiteral<"select">, import("zod").ZodLiteral<"link">, import("zod").ZodLiteral<"attachment">]>;
279778
+ position: import("zod").ZodNumber;
279779
+ isDefault: import("zod").ZodBoolean;
279780
+ isArchived: import("zod").ZodBoolean;
279781
+ isRequired: import("zod").ZodBoolean;
279782
+ isUnique: import("zod").ZodBoolean;
279783
+ options: import("zod").ZodArray<import("zod").ZodObject<{
279784
+ position: import("zod").ZodNumber;
279785
+ value: import("zod").ZodString;
279786
+ label: import("zod").ZodString;
279787
+ isDefault: import("zod").ZodBoolean;
279788
+ id: import("zod").ZodString;
279789
+ }, "strip", import("zod").ZodTypeAny, {
279790
+ id: string;
279791
+ position: number;
279792
+ value: string;
279793
+ label: string;
279794
+ isDefault: boolean;
279795
+ }, {
279796
+ id: string;
279797
+ position: number;
279798
+ value: string;
279799
+ label: string;
279800
+ isDefault: boolean;
279801
+ }>, "many">;
279802
+ group: import("zod").ZodObject<{
279803
+ id: import("zod").ZodString;
279804
+ createdAt: import("zod").ZodDate;
279805
+ updatedAt: import("zod").ZodDate;
279806
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279807
+ systemName: import("zod").ZodString;
279808
+ displayName: import("zod").ZodString;
279809
+ }, "strip", import("zod").ZodTypeAny, {
279810
+ id: string;
279811
+ createdAt: Date;
279812
+ updatedAt: Date;
279813
+ deletedAt: Date | null;
279814
+ systemName: string;
279815
+ displayName: string;
279816
+ }, {
279817
+ id: string;
279818
+ createdAt: Date;
279819
+ updatedAt: Date;
279820
+ deletedAt: Date | null;
279821
+ systemName: string;
279822
+ displayName: string;
279823
+ }>;
279824
+ }, "options" | "group">, "strip", import("zod").ZodTypeAny, {
279825
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
279826
+ id: string;
279827
+ position: number;
279828
+ createdAt: Date;
279829
+ updatedAt: Date;
279830
+ deletedAt: Date | null;
279831
+ systemName: string;
279832
+ displayName: string;
279833
+ isDefault: boolean;
279834
+ isArchived: boolean;
279835
+ isRequired: boolean;
279836
+ isUnique: boolean;
279837
+ }, {
279838
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
279839
+ id: string;
279840
+ position: number;
279841
+ createdAt: Date;
279842
+ updatedAt: Date;
279843
+ deletedAt: Date | null;
279844
+ systemName: string;
279845
+ displayName: string;
279846
+ isDefault: boolean;
279847
+ isArchived: boolean;
279848
+ isRequired: boolean;
279849
+ isUnique: boolean;
279850
+ }>;
279851
+ uploads: import("zod").ZodArray<import("zod").ZodObject<{
279852
+ id: import("zod").ZodString;
279853
+ createdAt: import("zod").ZodDate;
279854
+ updatedAt: import("zod").ZodDate;
279855
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279856
+ bucketName: import("zod").ZodString;
279857
+ fileName: import("zod").ZodString;
279858
+ fileSize: import("zod").ZodNumber;
279859
+ fileKey: import("zod").ZodString;
279860
+ fileUrl: import("zod").ZodNullable<import("zod").ZodString>;
279861
+ status: import("zod").ZodNullable<import("zod").ZodString>;
279862
+ }, "strip", import("zod").ZodTypeAny, {
279863
+ id: string;
279864
+ status: string | null;
279865
+ createdAt: Date;
279866
+ updatedAt: Date;
279867
+ deletedAt: Date | null;
279868
+ fileName: string;
279869
+ fileKey: string;
279870
+ bucketName: string;
279871
+ fileSize: number;
279872
+ fileUrl: string | null;
279873
+ }, {
279874
+ id: string;
279875
+ status: string | null;
279876
+ createdAt: Date;
279877
+ updatedAt: Date;
279878
+ deletedAt: Date | null;
279879
+ fileName: string;
279880
+ fileKey: string;
279881
+ bucketName: string;
279882
+ fileSize: number;
279883
+ fileUrl: string | null;
279884
+ }>, "many">;
279885
+ }, "strip", import("zod").ZodTypeAny, {
279886
+ id: string;
279887
+ createdAt: Date;
279888
+ updatedAt: Date;
279889
+ deletedAt: Date | null;
279890
+ attribute: {
279891
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
279892
+ id: string;
279893
+ position: number;
279894
+ createdAt: Date;
279895
+ updatedAt: Date;
279896
+ deletedAt: Date | null;
279897
+ systemName: string;
279898
+ displayName: string;
279899
+ isDefault: boolean;
279900
+ isArchived: boolean;
279901
+ isRequired: boolean;
279902
+ isUnique: boolean;
279903
+ };
279904
+ textValue: string | null;
279905
+ booleanValue: boolean | null;
279906
+ numberValue: number | null;
279907
+ dateValue: Date | null;
279908
+ uploads: {
279909
+ id: string;
279910
+ status: string | null;
279911
+ createdAt: Date;
279912
+ updatedAt: Date;
279913
+ deletedAt: Date | null;
279914
+ fileName: string;
279915
+ fileKey: string;
279916
+ bucketName: string;
279917
+ fileSize: number;
279918
+ fileUrl: string | null;
279919
+ }[];
279920
+ }, {
279921
+ id: string;
279922
+ createdAt: Date;
279923
+ updatedAt: Date;
279924
+ deletedAt: Date | null;
279925
+ attribute: {
279926
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
279927
+ id: string;
279928
+ position: number;
279929
+ createdAt: Date;
279930
+ updatedAt: Date;
279931
+ deletedAt: Date | null;
279932
+ systemName: string;
279933
+ displayName: string;
279934
+ isDefault: boolean;
279935
+ isArchived: boolean;
279936
+ isRequired: boolean;
279937
+ isUnique: boolean;
279938
+ };
279939
+ textValue: string | null;
279940
+ booleanValue: boolean | null;
279941
+ numberValue: number | null;
279942
+ dateValue: Date | null;
279943
+ uploads: {
279944
+ id: string;
279945
+ status: string | null;
279946
+ createdAt: Date;
279947
+ updatedAt: Date;
279948
+ deletedAt: Date | null;
279949
+ fileName: string;
279950
+ fileKey: string;
279951
+ bucketName: string;
279952
+ fileSize: number;
279953
+ fileUrl: string | null;
279954
+ }[];
279955
+ }>, "many">;
279956
+ contactEmails: import("zod").ZodArray<import("zod").ZodObject<{
279957
+ id: import("zod").ZodString;
279958
+ createdAt: import("zod").ZodDate;
279959
+ updatedAt: import("zod").ZodDate;
279960
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279961
+ email: import("zod").ZodString;
279962
+ isPrimary: import("zod").ZodBoolean;
279963
+ }, "strip", import("zod").ZodTypeAny, {
279964
+ id: string;
279965
+ isPrimary: boolean;
279966
+ email: string;
279967
+ createdAt: Date;
279968
+ updatedAt: Date;
279969
+ deletedAt: Date | null;
279970
+ }, {
279971
+ id: string;
279972
+ isPrimary: boolean;
279973
+ email: string;
279974
+ createdAt: Date;
279975
+ updatedAt: Date;
279976
+ deletedAt: Date | null;
279977
+ }>, "many">;
279978
+ contactPhones: import("zod").ZodArray<import("zod").ZodObject<{
279979
+ id: import("zod").ZodString;
279980
+ createdAt: import("zod").ZodDate;
279981
+ updatedAt: import("zod").ZodDate;
279982
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
279983
+ phone: import("zod").ZodString;
279984
+ isPrimary: import("zod").ZodBoolean;
279985
+ }, "strip", import("zod").ZodTypeAny, {
279986
+ id: string;
279987
+ isPrimary: boolean;
279988
+ createdAt: Date;
279989
+ updatedAt: Date;
279990
+ deletedAt: Date | null;
279991
+ phone: string;
279992
+ }, {
279993
+ id: string;
279994
+ isPrimary: boolean;
279995
+ createdAt: Date;
279996
+ updatedAt: Date;
279997
+ deletedAt: Date | null;
279998
+ phone: string;
279999
+ }>, "many">;
280000
+ activityLogs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
280001
+ id: import("zod").ZodString;
280002
+ createdAt: import("zod").ZodDate;
280003
+ updatedAt: import("zod").ZodDate;
280004
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
280005
+ entityId: import("zod").ZodString;
280006
+ description: import("zod").ZodString;
280007
+ entityType: import("zod").ZodObject<{
280008
+ id: import("zod").ZodString;
280009
+ createdAt: import("zod").ZodDate;
280010
+ updatedAt: import("zod").ZodDate;
280011
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
280012
+ entity: import("zod").ZodString;
280013
+ description: import("zod").ZodNullable<import("zod").ZodString>;
280014
+ }, "strip", import("zod").ZodTypeAny, {
280015
+ id: string;
280016
+ description: string | null;
280017
+ createdAt: Date;
280018
+ updatedAt: Date;
280019
+ deletedAt: Date | null;
280020
+ entity: string;
280021
+ }, {
280022
+ id: string;
280023
+ description: string | null;
280024
+ createdAt: Date;
280025
+ updatedAt: Date;
280026
+ deletedAt: Date | null;
280027
+ entity: string;
280028
+ }>;
280029
+ }, "strip", import("zod").ZodTypeAny, {
280030
+ id: string;
280031
+ description: string;
280032
+ createdAt: Date;
280033
+ updatedAt: Date;
280034
+ deletedAt: Date | null;
280035
+ entityId: string;
280036
+ entityType: {
280037
+ id: string;
280038
+ description: string | null;
280039
+ createdAt: Date;
280040
+ updatedAt: Date;
280041
+ deletedAt: Date | null;
280042
+ entity: string;
280043
+ };
280044
+ }, {
280045
+ id: string;
280046
+ description: string;
280047
+ createdAt: Date;
280048
+ updatedAt: Date;
280049
+ deletedAt: Date | null;
280050
+ entityId: string;
280051
+ entityType: {
280052
+ id: string;
280053
+ description: string | null;
280054
+ createdAt: Date;
280055
+ updatedAt: Date;
280056
+ deletedAt: Date | null;
280057
+ entity: string;
280058
+ };
280059
+ }>, "many">>;
280060
+ }, "strip", import("zod").ZodTypeAny, {
280061
+ name: string;
280062
+ id: string;
280063
+ channel: string | null;
280064
+ address: string | null;
280065
+ createdAt: Date;
280066
+ updatedAt: Date;
280067
+ deletedAt: Date | null;
280068
+ customFields: {
280069
+ id: string;
280070
+ createdAt: Date;
280071
+ updatedAt: Date;
280072
+ deletedAt: Date | null;
280073
+ attribute: {
280074
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
280075
+ id: string;
280076
+ position: number;
280077
+ createdAt: Date;
280078
+ updatedAt: Date;
280079
+ deletedAt: Date | null;
280080
+ systemName: string;
280081
+ displayName: string;
280082
+ isDefault: boolean;
280083
+ isArchived: boolean;
280084
+ isRequired: boolean;
280085
+ isUnique: boolean;
280086
+ };
280087
+ textValue: string | null;
280088
+ booleanValue: boolean | null;
280089
+ numberValue: number | null;
280090
+ dateValue: Date | null;
280091
+ uploads: {
280092
+ id: string;
280093
+ status: string | null;
280094
+ createdAt: Date;
280095
+ updatedAt: Date;
280096
+ deletedAt: Date | null;
280097
+ fileName: string;
280098
+ fileKey: string;
280099
+ bucketName: string;
280100
+ fileSize: number;
280101
+ fileUrl: string | null;
280102
+ }[];
280103
+ }[];
280104
+ company: {
280105
+ id: string;
280106
+ createdAt: Date;
280107
+ updatedAt: Date;
280108
+ deletedAt: Date | null;
280109
+ name?: string | undefined;
280110
+ address?: string | null | undefined;
280111
+ phone?: string | null | undefined;
280112
+ industry?: string | null | undefined;
280113
+ } | null;
280114
+ notes: string | null;
280115
+ contactProfile: string | null;
280116
+ socialProfileUrl: string | null;
280117
+ tags: {
280118
+ name: string;
280119
+ id: string;
280120
+ createdAt: Date;
280121
+ updatedAt: Date;
280122
+ deletedAt: Date | null;
280123
+ }[];
280124
+ contactEmails: {
280125
+ id: string;
280126
+ isPrimary: boolean;
280127
+ email: string;
280128
+ createdAt: Date;
280129
+ updatedAt: Date;
280130
+ deletedAt: Date | null;
280131
+ }[];
280132
+ contactPhones: {
280133
+ id: string;
280134
+ isPrimary: boolean;
280135
+ createdAt: Date;
280136
+ updatedAt: Date;
280137
+ deletedAt: Date | null;
280138
+ phone: string;
280139
+ }[];
280140
+ activityLogs?: {
280141
+ id: string;
280142
+ description: string;
280143
+ createdAt: Date;
280144
+ updatedAt: Date;
280145
+ deletedAt: Date | null;
280146
+ entityId: string;
280147
+ entityType: {
280148
+ id: string;
280149
+ description: string | null;
280150
+ createdAt: Date;
280151
+ updatedAt: Date;
280152
+ deletedAt: Date | null;
280153
+ entity: string;
280154
+ };
280155
+ }[] | undefined;
280156
+ }, {
280157
+ name: string;
280158
+ id: string;
280159
+ channel: string | null;
280160
+ address: string | null;
280161
+ createdAt: Date;
280162
+ updatedAt: Date;
280163
+ deletedAt: Date | null;
280164
+ customFields: {
280165
+ id: string;
280166
+ createdAt: Date;
280167
+ updatedAt: Date;
280168
+ deletedAt: Date | null;
280169
+ attribute: {
280170
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
280171
+ id: string;
280172
+ position: number;
280173
+ createdAt: Date;
280174
+ updatedAt: Date;
280175
+ deletedAt: Date | null;
280176
+ systemName: string;
280177
+ displayName: string;
280178
+ isDefault: boolean;
280179
+ isArchived: boolean;
280180
+ isRequired: boolean;
280181
+ isUnique: boolean;
280182
+ };
280183
+ textValue: string | null;
280184
+ booleanValue: boolean | null;
280185
+ numberValue: number | null;
280186
+ dateValue: Date | null;
280187
+ uploads: {
280188
+ id: string;
280189
+ status: string | null;
280190
+ createdAt: Date;
280191
+ updatedAt: Date;
280192
+ deletedAt: Date | null;
280193
+ fileName: string;
280194
+ fileKey: string;
280195
+ bucketName: string;
280196
+ fileSize: number;
280197
+ fileUrl: string | null;
280198
+ }[];
280199
+ }[];
280200
+ company: {
280201
+ id: string;
280202
+ createdAt: Date;
280203
+ updatedAt: Date;
280204
+ deletedAt: Date | null;
280205
+ name?: string | undefined;
280206
+ address?: string | null | undefined;
280207
+ phone?: string | null | undefined;
280208
+ industry?: string | null | undefined;
280209
+ } | null;
280210
+ notes: string | null;
280211
+ contactProfile: string | null;
280212
+ socialProfileUrl: string | null;
280213
+ tags: {
280214
+ name: string;
280215
+ id: string;
280216
+ createdAt: Date;
280217
+ updatedAt: Date;
280218
+ deletedAt: Date | null;
280219
+ }[];
280220
+ contactEmails: {
280221
+ id: string;
280222
+ isPrimary: boolean;
280223
+ email: string;
280224
+ createdAt: Date;
280225
+ updatedAt: Date;
280226
+ deletedAt: Date | null;
280227
+ }[];
280228
+ contactPhones: {
280229
+ id: string;
280230
+ isPrimary: boolean;
280231
+ createdAt: Date;
280232
+ updatedAt: Date;
280233
+ deletedAt: Date | null;
280234
+ phone: string;
280235
+ }[];
280236
+ activityLogs?: {
280237
+ id: string;
280238
+ description: string;
280239
+ createdAt: Date;
280240
+ updatedAt: Date;
280241
+ deletedAt: Date | null;
280242
+ entityId: string;
280243
+ entityType: {
280244
+ id: string;
280245
+ description: string | null;
280246
+ createdAt: Date;
280247
+ updatedAt: Date;
280248
+ deletedAt: Date | null;
280249
+ entity: string;
280250
+ };
280251
+ }[] | undefined;
280252
+ }>;
280253
+ }, "strip", import("zod").ZodTypeAny, {
280254
+ data: {
280255
+ name: string;
280256
+ id: string;
280257
+ channel: string | null;
280258
+ address: string | null;
280259
+ createdAt: Date;
280260
+ updatedAt: Date;
280261
+ deletedAt: Date | null;
280262
+ customFields: {
280263
+ id: string;
280264
+ createdAt: Date;
280265
+ updatedAt: Date;
280266
+ deletedAt: Date | null;
280267
+ attribute: {
280268
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
280269
+ id: string;
280270
+ position: number;
280271
+ createdAt: Date;
280272
+ updatedAt: Date;
280273
+ deletedAt: Date | null;
280274
+ systemName: string;
280275
+ displayName: string;
280276
+ isDefault: boolean;
280277
+ isArchived: boolean;
280278
+ isRequired: boolean;
280279
+ isUnique: boolean;
280280
+ };
280281
+ textValue: string | null;
280282
+ booleanValue: boolean | null;
280283
+ numberValue: number | null;
280284
+ dateValue: Date | null;
280285
+ uploads: {
280286
+ id: string;
280287
+ status: string | null;
280288
+ createdAt: Date;
280289
+ updatedAt: Date;
280290
+ deletedAt: Date | null;
280291
+ fileName: string;
280292
+ fileKey: string;
280293
+ bucketName: string;
280294
+ fileSize: number;
280295
+ fileUrl: string | null;
280296
+ }[];
280297
+ }[];
280298
+ company: {
280299
+ id: string;
280300
+ createdAt: Date;
280301
+ updatedAt: Date;
280302
+ deletedAt: Date | null;
280303
+ name?: string | undefined;
280304
+ address?: string | null | undefined;
280305
+ phone?: string | null | undefined;
280306
+ industry?: string | null | undefined;
280307
+ } | null;
280308
+ notes: string | null;
280309
+ contactProfile: string | null;
280310
+ socialProfileUrl: string | null;
280311
+ tags: {
280312
+ name: string;
280313
+ id: string;
280314
+ createdAt: Date;
280315
+ updatedAt: Date;
280316
+ deletedAt: Date | null;
280317
+ }[];
280318
+ contactEmails: {
280319
+ id: string;
280320
+ isPrimary: boolean;
280321
+ email: string;
280322
+ createdAt: Date;
280323
+ updatedAt: Date;
280324
+ deletedAt: Date | null;
280325
+ }[];
280326
+ contactPhones: {
280327
+ id: string;
280328
+ isPrimary: boolean;
280329
+ createdAt: Date;
280330
+ updatedAt: Date;
280331
+ deletedAt: Date | null;
280332
+ phone: string;
280333
+ }[];
280334
+ activityLogs?: {
280335
+ id: string;
280336
+ description: string;
280337
+ createdAt: Date;
280338
+ updatedAt: Date;
280339
+ deletedAt: Date | null;
280340
+ entityId: string;
280341
+ entityType: {
280342
+ id: string;
280343
+ description: string | null;
280344
+ createdAt: Date;
280345
+ updatedAt: Date;
280346
+ deletedAt: Date | null;
280347
+ entity: string;
280348
+ };
280349
+ }[] | undefined;
280350
+ };
280351
+ requestId: string;
280352
+ }, {
280353
+ data: {
280354
+ name: string;
280355
+ id: string;
280356
+ channel: string | null;
280357
+ address: string | null;
280358
+ createdAt: Date;
280359
+ updatedAt: Date;
280360
+ deletedAt: Date | null;
280361
+ customFields: {
280362
+ id: string;
280363
+ createdAt: Date;
280364
+ updatedAt: Date;
280365
+ deletedAt: Date | null;
280366
+ attribute: {
280367
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
280368
+ id: string;
280369
+ position: number;
280370
+ createdAt: Date;
280371
+ updatedAt: Date;
280372
+ deletedAt: Date | null;
280373
+ systemName: string;
280374
+ displayName: string;
280375
+ isDefault: boolean;
280376
+ isArchived: boolean;
280377
+ isRequired: boolean;
280378
+ isUnique: boolean;
280379
+ };
280380
+ textValue: string | null;
280381
+ booleanValue: boolean | null;
280382
+ numberValue: number | null;
280383
+ dateValue: Date | null;
280384
+ uploads: {
280385
+ id: string;
280386
+ status: string | null;
280387
+ createdAt: Date;
280388
+ updatedAt: Date;
280389
+ deletedAt: Date | null;
280390
+ fileName: string;
280391
+ fileKey: string;
280392
+ bucketName: string;
280393
+ fileSize: number;
280394
+ fileUrl: string | null;
280395
+ }[];
280396
+ }[];
280397
+ company: {
280398
+ id: string;
280399
+ createdAt: Date;
280400
+ updatedAt: Date;
280401
+ deletedAt: Date | null;
280402
+ name?: string | undefined;
280403
+ address?: string | null | undefined;
280404
+ phone?: string | null | undefined;
280405
+ industry?: string | null | undefined;
280406
+ } | null;
280407
+ notes: string | null;
280408
+ contactProfile: string | null;
280409
+ socialProfileUrl: string | null;
280410
+ tags: {
280411
+ name: string;
280412
+ id: string;
280413
+ createdAt: Date;
280414
+ updatedAt: Date;
280415
+ deletedAt: Date | null;
280416
+ }[];
280417
+ contactEmails: {
280418
+ id: string;
280419
+ isPrimary: boolean;
280420
+ email: string;
280421
+ createdAt: Date;
280422
+ updatedAt: Date;
280423
+ deletedAt: Date | null;
280424
+ }[];
280425
+ contactPhones: {
280426
+ id: string;
280427
+ isPrimary: boolean;
280428
+ createdAt: Date;
280429
+ updatedAt: Date;
280430
+ deletedAt: Date | null;
280431
+ phone: string;
280432
+ }[];
280433
+ activityLogs?: {
280434
+ id: string;
280435
+ description: string;
280436
+ createdAt: Date;
280437
+ updatedAt: Date;
280438
+ deletedAt: Date | null;
280439
+ entityId: string;
280440
+ entityType: {
280441
+ id: string;
280442
+ description: string | null;
280443
+ createdAt: Date;
280444
+ updatedAt: Date;
280445
+ deletedAt: Date | null;
280446
+ entity: string;
280447
+ };
280448
+ }[] | undefined;
280449
+ };
280450
+ requestId: string;
280451
+ }>;
280452
+ 400: import("zod").ZodObject<{
280453
+ message: import("zod").ZodString;
279210
280454
  }, "strip", import("zod").ZodTypeAny, {
279211
- isPrimary: boolean;
279212
- email: string;
280455
+ message: string;
279213
280456
  }, {
279214
- isPrimary: boolean;
279215
- email: string;
279216
- }>, "many">>;
279217
- channel: import("zod").ZodOptional<import("zod").ZodString>;
280457
+ message: string;
280458
+ }>;
280459
+ 409: import("zod").ZodObject<{
280460
+ message: import("zod").ZodString;
280461
+ }, "strip", import("zod").ZodTypeAny, {
280462
+ message: string;
280463
+ }, {
280464
+ message: string;
280465
+ }>;
280466
+ 401: import("zod").ZodObject<{
280467
+ message: import("zod").ZodString;
280468
+ error: import("zod").ZodAny;
280469
+ }, "strip", import("zod").ZodTypeAny, {
280470
+ message: string;
280471
+ error?: any;
280472
+ }, {
280473
+ message: string;
280474
+ error?: any;
280475
+ }>;
280476
+ 404: import("zod").ZodObject<{
280477
+ message: import("zod").ZodString;
280478
+ error: import("zod").ZodAny;
280479
+ }, "strip", import("zod").ZodTypeAny, {
280480
+ message: string;
280481
+ error?: any;
280482
+ }, {
280483
+ message: string;
280484
+ error?: any;
280485
+ }>;
280486
+ 422: import("zod").ZodObject<{
280487
+ message: import("zod").ZodString;
280488
+ error: import("zod").ZodAny;
280489
+ }, "strip", import("zod").ZodTypeAny, {
280490
+ message: string;
280491
+ error?: any;
280492
+ }, {
280493
+ message: string;
280494
+ error?: any;
280495
+ }>;
280496
+ 500: import("zod").ZodObject<{
280497
+ message: import("zod").ZodString;
280498
+ error: import("zod").ZodAny;
280499
+ }, "strip", import("zod").ZodTypeAny, {
280500
+ message: string;
280501
+ error?: any;
280502
+ }, {
280503
+ message: string;
280504
+ error?: any;
280505
+ }>;
280506
+ };
280507
+ path: "api/v1/contacts";
280508
+ };
280509
+ getAllContact: {
280510
+ summary: "Get all contacts";
280511
+ method: "GET";
280512
+ query: import("zod").ZodObject<{
280513
+ page: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
280514
+ pageSize: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
280515
+ keyword: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
280516
+ company: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
280517
+ name: import("zod").ZodOptional<import("zod").ZodString>;
279218
280518
  address: import("zod").ZodOptional<import("zod").ZodString>;
279219
- phone: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
279220
- phone: import("zod").ZodString;
279221
- isPrimary: import("zod").ZodBoolean;
280519
+ channel: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
280520
+ selectedDate: import("zod").ZodOptional<import("zod").ZodString>;
280521
+ customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
280522
+ attributeId: import("zod").ZodString;
280523
+ type: import("zod").ZodString;
280524
+ value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
279222
280525
  }, "strip", import("zod").ZodTypeAny, {
279223
- isPrimary: boolean;
279224
- phone: string;
280526
+ type: string;
280527
+ value: (string | string[]) & (string | string[] | undefined);
280528
+ attributeId: string;
279225
280529
  }, {
279226
- isPrimary: boolean;
279227
- phone: string;
280530
+ type: string;
280531
+ value: (string | string[]) & (string | string[] | undefined);
280532
+ attributeId: string;
279228
280533
  }>, "many">>;
279229
- notes: import("zod").ZodOptional<import("zod").ZodString>;
279230
280534
  tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
279231
- company: import("zod").ZodOptional<import("zod").ZodString>;
279232
- customFields: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
280535
+ phone: import("zod").ZodOptional<import("zod").ZodString>;
280536
+ email: import("zod").ZodOptional<import("zod").ZodString>;
280537
+ notes: import("zod").ZodOptional<import("zod").ZodString>;
279233
280538
  }, "strip", import("zod").ZodTypeAny, {
279234
- name: string;
279235
- customFields: Record<string, string>;
279236
- email?: {
279237
- isPrimary: boolean;
279238
- email: string;
279239
- }[] | undefined;
279240
- channel?: string | undefined;
280539
+ page?: number | undefined;
280540
+ pageSize?: number | undefined;
280541
+ keyword?: string | undefined;
280542
+ company?: string[] | undefined;
280543
+ name?: string | undefined;
279241
280544
  address?: string | undefined;
279242
- phone?: {
279243
- isPrimary: boolean;
279244
- phone: string;
280545
+ channel?: string[] | undefined;
280546
+ selectedDate?: string | undefined;
280547
+ customFields?: {
280548
+ type: string;
280549
+ value: (string | string[]) & (string | string[] | undefined);
280550
+ attributeId: string;
279245
280551
  }[] | undefined;
279246
- notes?: string | undefined;
279247
280552
  tags?: string[] | undefined;
279248
- company?: string | undefined;
280553
+ phone?: string | undefined;
280554
+ email?: string | undefined;
280555
+ notes?: string | undefined;
279249
280556
  }, {
279250
- name: string;
279251
- customFields: Record<string, string>;
279252
- email?: {
279253
- isPrimary: boolean;
279254
- email: string;
279255
- }[] | undefined;
279256
- channel?: string | undefined;
280557
+ page?: number | undefined;
280558
+ pageSize?: number | undefined;
280559
+ keyword?: string | undefined;
280560
+ company?: string[] | undefined;
280561
+ name?: string | undefined;
279257
280562
  address?: string | undefined;
279258
- phone?: {
279259
- isPrimary: boolean;
279260
- phone: string;
280563
+ channel?: string[] | undefined;
280564
+ selectedDate?: string | undefined;
280565
+ customFields?: {
280566
+ type: string;
280567
+ value: (string | string[]) & (string | string[] | undefined);
280568
+ attributeId: string;
279261
280569
  }[] | undefined;
279262
- notes?: string | undefined;
279263
280570
  tags?: string[] | undefined;
279264
- company?: string | undefined;
280571
+ phone?: string | undefined;
280572
+ email?: string | undefined;
280573
+ notes?: string | undefined;
279265
280574
  }>;
279266
- summary: "Create a new contact";
279267
- method: "POST";
279268
280575
  responses: {
279269
- 201: import("zod").ZodObject<{
280576
+ 200: import("zod").ZodObject<{
279270
280577
  requestId: import("zod").ZodString;
279271
- data: import("zod").ZodObject<{
280578
+ page: import("zod").ZodNumber;
280579
+ pageSize: import("zod").ZodNumber;
280580
+ total: import("zod").ZodNumber;
280581
+ lastPage: import("zod").ZodNumber;
280582
+ data: import("zod").ZodArray<import("zod").ZodObject<{
279272
280583
  id: import("zod").ZodString;
279273
280584
  createdAt: import("zod").ZodDate;
279274
280585
  updatedAt: import("zod").ZodDate;
@@ -279954,7 +281265,7 @@ export declare const publicApiContract: {
279954
281265
  entity: string;
279955
281266
  };
279956
281267
  }[] | undefined;
279957
- }>;
281268
+ }>, "many">;
279958
281269
  }, "strip", import("zod").ZodTypeAny, {
279959
281270
  data: {
279960
281271
  name: string;
@@ -280051,218 +281362,116 @@ export declare const publicApiContract: {
280051
281362
  deletedAt: Date | null;
280052
281363
  entity: string;
280053
281364
  };
280054
- }[] | undefined;
280055
- };
280056
- requestId: string;
280057
- }, {
280058
- data: {
280059
- name: string;
280060
- id: string;
280061
- channel: string | null;
280062
- address: string | null;
280063
- createdAt: Date;
280064
- updatedAt: Date;
280065
- deletedAt: Date | null;
280066
- customFields: {
280067
- id: string;
280068
- createdAt: Date;
280069
- updatedAt: Date;
280070
- deletedAt: Date | null;
280071
- attribute: {
280072
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
280073
- id: string;
280074
- position: number;
280075
- createdAt: Date;
280076
- updatedAt: Date;
280077
- deletedAt: Date | null;
280078
- systemName: string;
280079
- displayName: string;
280080
- isDefault: boolean;
280081
- isArchived: boolean;
280082
- isRequired: boolean;
280083
- isUnique: boolean;
280084
- };
280085
- textValue: string | null;
280086
- booleanValue: boolean | null;
280087
- numberValue: number | null;
280088
- dateValue: Date | null;
280089
- uploads: {
280090
- id: string;
280091
- status: string | null;
280092
- createdAt: Date;
280093
- updatedAt: Date;
280094
- deletedAt: Date | null;
280095
- fileName: string;
280096
- fileKey: string;
280097
- bucketName: string;
280098
- fileSize: number;
280099
- fileUrl: string | null;
280100
- }[];
280101
- }[];
280102
- company: {
280103
- id: string;
280104
- createdAt: Date;
280105
- updatedAt: Date;
280106
- deletedAt: Date | null;
280107
- name?: string | undefined;
280108
- address?: string | null | undefined;
280109
- phone?: string | null | undefined;
280110
- industry?: string | null | undefined;
280111
- } | null;
280112
- notes: string | null;
280113
- contactProfile: string | null;
280114
- socialProfileUrl: string | null;
280115
- tags: {
280116
- name: string;
280117
- id: string;
280118
- createdAt: Date;
280119
- updatedAt: Date;
280120
- deletedAt: Date | null;
280121
- }[];
280122
- contactEmails: {
280123
- id: string;
280124
- isPrimary: boolean;
280125
- email: string;
280126
- createdAt: Date;
280127
- updatedAt: Date;
280128
- deletedAt: Date | null;
280129
- }[];
280130
- contactPhones: {
280131
- id: string;
280132
- isPrimary: boolean;
280133
- createdAt: Date;
280134
- updatedAt: Date;
280135
- deletedAt: Date | null;
280136
- phone: string;
280137
- }[];
280138
- activityLogs?: {
280139
- id: string;
280140
- description: string;
280141
- createdAt: Date;
280142
- updatedAt: Date;
280143
- deletedAt: Date | null;
280144
- entityId: string;
280145
- entityType: {
280146
- id: string;
280147
- description: string | null;
280148
- createdAt: Date;
280149
- updatedAt: Date;
280150
- deletedAt: Date | null;
280151
- entity: string;
280152
- };
280153
- }[] | undefined;
280154
- };
280155
- requestId: string;
280156
- }>;
280157
- 400: import("zod").ZodObject<{
280158
- message: import("zod").ZodString;
280159
- }, "strip", import("zod").ZodTypeAny, {
280160
- message: string;
280161
- }, {
280162
- message: string;
280163
- }>;
280164
- 409: import("zod").ZodObject<{
280165
- message: import("zod").ZodString;
280166
- }, "strip", import("zod").ZodTypeAny, {
280167
- message: string;
280168
- }, {
280169
- message: string;
280170
- }>;
280171
- 401: import("zod").ZodObject<{
280172
- message: import("zod").ZodString;
280173
- error: import("zod").ZodAny;
280174
- }, "strip", import("zod").ZodTypeAny, {
280175
- message: string;
280176
- error?: any;
280177
- }, {
280178
- message: string;
280179
- error?: any;
280180
- }>;
280181
- 404: import("zod").ZodObject<{
280182
- message: import("zod").ZodString;
280183
- error: import("zod").ZodAny;
280184
- }, "strip", import("zod").ZodTypeAny, {
280185
- message: string;
280186
- error?: any;
280187
- }, {
280188
- message: string;
280189
- error?: any;
280190
- }>;
280191
- 422: import("zod").ZodObject<{
280192
- message: import("zod").ZodString;
280193
- error: import("zod").ZodAny;
280194
- }, "strip", import("zod").ZodTypeAny, {
280195
- message: string;
280196
- error?: any;
280197
- }, {
280198
- message: string;
280199
- error?: any;
280200
- }>;
280201
- 500: import("zod").ZodObject<{
280202
- message: import("zod").ZodString;
280203
- error: import("zod").ZodAny;
280204
- }, "strip", import("zod").ZodTypeAny, {
280205
- message: string;
280206
- error?: any;
280207
- }, {
280208
- message: string;
280209
- error?: any;
280210
- }>;
280211
- };
280212
- path: "api/v1/contacts";
280213
- };
280214
- getAllTags: {
280215
- method: "GET";
280216
- query: import("zod").ZodOptional<import("zod").ZodObject<{
280217
- group: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"general">, import("zod").ZodLiteral<"contact">]>>>;
280218
- keyword: import("zod").ZodOptional<import("zod").ZodString>;
280219
- }, "strip", import("zod").ZodTypeAny, {
280220
- group?: "general" | "contact" | undefined;
280221
- keyword?: string | undefined;
280222
- }, {
280223
- group?: "general" | "contact" | undefined;
280224
- keyword?: string | undefined;
280225
- }>>;
280226
- responses: {
280227
- 200: import("zod").ZodObject<{
280228
- requestId: import("zod").ZodString;
280229
- tags: import("zod").ZodArray<import("zod").ZodObject<{
280230
- id: import("zod").ZodString;
280231
- createdAt: import("zod").ZodDate;
280232
- updatedAt: import("zod").ZodDate;
280233
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
280234
- name: import("zod").ZodString;
280235
- }, "strip", import("zod").ZodTypeAny, {
280236
- name: string;
280237
- id: string;
280238
- createdAt: Date;
280239
- updatedAt: Date;
280240
- deletedAt: Date | null;
280241
- }, {
280242
- name: string;
280243
- id: string;
280244
- createdAt: Date;
280245
- updatedAt: Date;
280246
- deletedAt: Date | null;
280247
- }>, "many">;
280248
- }, "strip", import("zod").ZodTypeAny, {
280249
- requestId: string;
280250
- tags: {
280251
- name: string;
280252
- id: string;
280253
- createdAt: Date;
280254
- updatedAt: Date;
280255
- deletedAt: Date | null;
281365
+ }[] | undefined;
280256
281366
  }[];
280257
- }, {
281367
+ total: number;
281368
+ page: number;
281369
+ pageSize: number;
281370
+ lastPage: number;
280258
281371
  requestId: string;
280259
- tags: {
281372
+ }, {
281373
+ data: {
280260
281374
  name: string;
280261
281375
  id: string;
281376
+ channel: string | null;
281377
+ address: string | null;
280262
281378
  createdAt: Date;
280263
281379
  updatedAt: Date;
280264
281380
  deletedAt: Date | null;
281381
+ customFields: {
281382
+ id: string;
281383
+ createdAt: Date;
281384
+ updatedAt: Date;
281385
+ deletedAt: Date | null;
281386
+ attribute: {
281387
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
281388
+ id: string;
281389
+ position: number;
281390
+ createdAt: Date;
281391
+ updatedAt: Date;
281392
+ deletedAt: Date | null;
281393
+ systemName: string;
281394
+ displayName: string;
281395
+ isDefault: boolean;
281396
+ isArchived: boolean;
281397
+ isRequired: boolean;
281398
+ isUnique: boolean;
281399
+ };
281400
+ textValue: string | null;
281401
+ booleanValue: boolean | null;
281402
+ numberValue: number | null;
281403
+ dateValue: Date | null;
281404
+ uploads: {
281405
+ id: string;
281406
+ status: string | null;
281407
+ createdAt: Date;
281408
+ updatedAt: Date;
281409
+ deletedAt: Date | null;
281410
+ fileName: string;
281411
+ fileKey: string;
281412
+ bucketName: string;
281413
+ fileSize: number;
281414
+ fileUrl: string | null;
281415
+ }[];
281416
+ }[];
281417
+ company: {
281418
+ id: string;
281419
+ createdAt: Date;
281420
+ updatedAt: Date;
281421
+ deletedAt: Date | null;
281422
+ name?: string | undefined;
281423
+ address?: string | null | undefined;
281424
+ phone?: string | null | undefined;
281425
+ industry?: string | null | undefined;
281426
+ } | null;
281427
+ notes: string | null;
281428
+ contactProfile: string | null;
281429
+ socialProfileUrl: string | null;
281430
+ tags: {
281431
+ name: string;
281432
+ id: string;
281433
+ createdAt: Date;
281434
+ updatedAt: Date;
281435
+ deletedAt: Date | null;
281436
+ }[];
281437
+ contactEmails: {
281438
+ id: string;
281439
+ isPrimary: boolean;
281440
+ email: string;
281441
+ createdAt: Date;
281442
+ updatedAt: Date;
281443
+ deletedAt: Date | null;
281444
+ }[];
281445
+ contactPhones: {
281446
+ id: string;
281447
+ isPrimary: boolean;
281448
+ createdAt: Date;
281449
+ updatedAt: Date;
281450
+ deletedAt: Date | null;
281451
+ phone: string;
281452
+ }[];
281453
+ activityLogs?: {
281454
+ id: string;
281455
+ description: string;
281456
+ createdAt: Date;
281457
+ updatedAt: Date;
281458
+ deletedAt: Date | null;
281459
+ entityId: string;
281460
+ entityType: {
281461
+ id: string;
281462
+ description: string | null;
281463
+ createdAt: Date;
281464
+ updatedAt: Date;
281465
+ deletedAt: Date | null;
281466
+ entity: string;
281467
+ };
281468
+ }[] | undefined;
280265
281469
  }[];
281470
+ total: number;
281471
+ page: number;
281472
+ pageSize: number;
281473
+ lastPage: number;
281474
+ requestId: string;
280266
281475
  }>;
280267
281476
  400: import("zod").ZodObject<{
280268
281477
  message: import("zod").ZodString;
@@ -280319,81 +281528,25 @@ export declare const publicApiContract: {
280319
281528
  error?: any;
280320
281529
  }>;
280321
281530
  };
280322
- path: "api/v1/tags";
281531
+ path: "api/v1/contacts";
280323
281532
  };
280324
- getAllContact: {
280325
- summary: "Get all contacts";
281533
+ getContactBySocialPlatformId: {
281534
+ summary: "Get contacts by social platform id.";
280326
281535
  method: "GET";
280327
281536
  query: import("zod").ZodObject<{
280328
- page: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
280329
- pageSize: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
280330
- keyword: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
280331
- company: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
280332
- name: import("zod").ZodOptional<import("zod").ZodString>;
280333
- address: import("zod").ZodOptional<import("zod").ZodString>;
280334
- channel: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
280335
- selectedDate: import("zod").ZodOptional<import("zod").ZodString>;
280336
- customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
280337
- attributeId: import("zod").ZodString;
280338
- type: import("zod").ZodString;
280339
- value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
280340
- }, "strip", import("zod").ZodTypeAny, {
280341
- type: string;
280342
- value: (string | string[]) & (string | string[] | undefined);
280343
- attributeId: string;
280344
- }, {
280345
- type: string;
280346
- value: (string | string[]) & (string | string[] | undefined);
280347
- attributeId: string;
280348
- }>, "many">>;
280349
- tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
280350
- phone: import("zod").ZodOptional<import("zod").ZodString>;
280351
- email: import("zod").ZodOptional<import("zod").ZodString>;
280352
- notes: import("zod").ZodOptional<import("zod").ZodString>;
281537
+ socialPlatformId: import("zod").ZodString;
281538
+ channelType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"whatsapp">, import("zod").ZodLiteral<"messenger">, import("zod").ZodLiteral<"telegram">, import("zod").ZodLiteral<"instagram">, import("zod").ZodLiteral<"line">, import("zod").ZodLiteral<"viber">, import("zod").ZodLiteral<"kakao">, import("zod").ZodLiteral<"shopee">, import("zod").ZodLiteral<"lazada">, import("zod").ZodLiteral<"webchat">, import("zod").ZodLiteral<"facebook_feed">, import("zod").ZodLiteral<"sms_vonage">]>>;
280353
281539
  }, "strip", import("zod").ZodTypeAny, {
280354
- page?: number | undefined;
280355
- pageSize?: number | undefined;
280356
- keyword?: string | undefined;
280357
- company?: string[] | undefined;
280358
- name?: string | undefined;
280359
- address?: string | undefined;
280360
- channel?: string[] | undefined;
280361
- selectedDate?: string | undefined;
280362
- customFields?: {
280363
- type: string;
280364
- value: (string | string[]) & (string | string[] | undefined);
280365
- attributeId: string;
280366
- }[] | undefined;
280367
- tags?: string[] | undefined;
280368
- phone?: string | undefined;
280369
- email?: string | undefined;
280370
- notes?: string | undefined;
281540
+ socialPlatformId: string;
281541
+ channelType?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | undefined;
280371
281542
  }, {
280372
- page?: number | undefined;
280373
- pageSize?: number | undefined;
280374
- keyword?: string | undefined;
280375
- company?: string[] | undefined;
280376
- name?: string | undefined;
280377
- address?: string | undefined;
280378
- channel?: string[] | undefined;
280379
- selectedDate?: string | undefined;
280380
- customFields?: {
280381
- type: string;
280382
- value: (string | string[]) & (string | string[] | undefined);
280383
- attributeId: string;
280384
- }[] | undefined;
280385
- tags?: string[] | undefined;
280386
- phone?: string | undefined;
280387
- email?: string | undefined;
280388
- notes?: string | undefined;
281543
+ socialPlatformId: string;
281544
+ channelType?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | undefined;
280389
281545
  }>;
280390
281546
  responses: {
280391
281547
  200: import("zod").ZodObject<{
280392
- requestId: import("zod").ZodString;
280393
- page: import("zod").ZodNumber;
280394
- pageSize: import("zod").ZodNumber;
280395
- total: import("zod").ZodNumber;
280396
- lastPage: import("zod").ZodNumber;
281548
+ status: import("zod").ZodString;
281549
+ message: import("zod").ZodString;
280397
281550
  data: import("zod").ZodArray<import("zod").ZodObject<{
280398
281551
  id: import("zod").ZodString;
280399
281552
  createdAt: import("zod").ZodDate;
@@ -281081,6 +282234,7 @@ export declare const publicApiContract: {
281081
282234
  };
281082
282235
  }[] | undefined;
281083
282236
  }>, "many">;
282237
+ requestId: import("zod").ZodString;
281084
282238
  }, "strip", import("zod").ZodTypeAny, {
281085
282239
  data: {
281086
282240
  name: string;
@@ -281179,10 +282333,8 @@ export declare const publicApiContract: {
281179
282333
  };
281180
282334
  }[] | undefined;
281181
282335
  }[];
281182
- total: number;
281183
- page: number;
281184
- pageSize: number;
281185
- lastPage: number;
282336
+ message: string;
282337
+ status: string;
281186
282338
  requestId: string;
281187
282339
  }, {
281188
282340
  data: {
@@ -281282,10 +282434,8 @@ export declare const publicApiContract: {
281282
282434
  };
281283
282435
  }[] | undefined;
281284
282436
  }[];
281285
- total: number;
281286
- page: number;
281287
- pageSize: number;
281288
- lastPage: number;
282437
+ message: string;
282438
+ status: string;
281289
282439
  requestId: string;
281290
282440
  }>;
281291
282441
  400: import("zod").ZodObject<{
@@ -281343,7 +282493,7 @@ export declare const publicApiContract: {
281343
282493
  error?: any;
281344
282494
  }>;
281345
282495
  };
281346
- path: "api/v1/contacts";
282496
+ path: "api/v1/contacts/social-platform";
281347
282497
  };
281348
282498
  getContactFields: {
281349
282499
  summary: "Get contact custom fields.";
@@ -281698,74 +282848,13 @@ export declare const publicApiContract: {
281698
282848
  }, {
281699
282849
  message: string;
281700
282850
  error?: any;
281701
- }>;
281702
- };
281703
- path: "api/v1/contacts/fields";
281704
- };
281705
- updateContact: {
281706
- body: import("zod").ZodObject<{
281707
- name: import("zod").ZodOptional<import("zod").ZodString>;
281708
- email: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
281709
- email: import("zod").ZodString;
281710
- isPrimary: import("zod").ZodBoolean;
281711
- }, "strip", import("zod").ZodTypeAny, {
281712
- isPrimary: boolean;
281713
- email: string;
281714
- }, {
281715
- isPrimary: boolean;
281716
- email: string;
281717
- }>, "many">>>;
281718
- channel: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
281719
- address: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
281720
- phone: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
281721
- phone: import("zod").ZodString;
281722
- isPrimary: import("zod").ZodBoolean;
281723
- }, "strip", import("zod").ZodTypeAny, {
281724
- isPrimary: boolean;
281725
- phone: string;
281726
- }, {
281727
- isPrimary: boolean;
281728
- phone: string;
281729
- }>, "many">>>;
281730
- notes: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
281731
- tags: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
281732
- company: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
281733
- customFields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
281734
- }, "strip", import("zod").ZodTypeAny, {
281735
- name?: string | undefined;
281736
- email?: {
281737
- isPrimary: boolean;
281738
- email: string;
281739
- }[] | undefined;
281740
- channel?: string | undefined;
281741
- address?: string | undefined;
281742
- phone?: {
281743
- isPrimary: boolean;
281744
- phone: string;
281745
- }[] | undefined;
281746
- notes?: string | undefined;
281747
- tags?: string[] | undefined;
281748
- company?: string | undefined;
281749
- customFields?: Record<string, string> | undefined;
281750
- }, {
281751
- name?: string | undefined;
281752
- email?: {
281753
- isPrimary: boolean;
281754
- email: string;
281755
- }[] | undefined;
281756
- channel?: string | undefined;
281757
- address?: string | undefined;
281758
- phone?: {
281759
- isPrimary: boolean;
281760
- phone: string;
281761
- }[] | undefined;
281762
- notes?: string | undefined;
281763
- tags?: string[] | undefined;
281764
- company?: string | undefined;
281765
- customFields?: Record<string, string> | undefined;
281766
- }>;
281767
- summary: "Update a contact";
281768
- method: "PATCH";
282851
+ }>;
282852
+ };
282853
+ path: "api/v1/contacts/fields";
282854
+ };
282855
+ getContactById: {
282856
+ summary: "Get a contact by id";
282857
+ method: "GET";
281769
282858
  pathParams: import("zod").ZodObject<{
281770
282859
  id: import("zod").ZodString;
281771
282860
  }, "strip", import("zod").ZodTypeAny, {
@@ -282181,273 +283270,66 @@ export declare const publicApiContract: {
282181
283270
  createdAt: Date;
282182
283271
  updatedAt: Date;
282183
283272
  deletedAt: Date | null;
282184
- }, {
282185
- id: string;
282186
- isPrimary: boolean;
282187
- email: string;
282188
- createdAt: Date;
282189
- updatedAt: Date;
282190
- deletedAt: Date | null;
282191
- }>, "many">;
282192
- contactPhones: import("zod").ZodArray<import("zod").ZodObject<{
282193
- id: import("zod").ZodString;
282194
- createdAt: import("zod").ZodDate;
282195
- updatedAt: import("zod").ZodDate;
282196
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
282197
- phone: import("zod").ZodString;
282198
- isPrimary: import("zod").ZodBoolean;
282199
- }, "strip", import("zod").ZodTypeAny, {
282200
- id: string;
282201
- isPrimary: boolean;
282202
- createdAt: Date;
282203
- updatedAt: Date;
282204
- deletedAt: Date | null;
282205
- phone: string;
282206
- }, {
282207
- id: string;
282208
- isPrimary: boolean;
282209
- createdAt: Date;
282210
- updatedAt: Date;
282211
- deletedAt: Date | null;
282212
- phone: string;
282213
- }>, "many">;
282214
- activityLogs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
282215
- id: import("zod").ZodString;
282216
- createdAt: import("zod").ZodDate;
282217
- updatedAt: import("zod").ZodDate;
282218
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
282219
- entityId: import("zod").ZodString;
282220
- description: import("zod").ZodString;
282221
- entityType: import("zod").ZodObject<{
282222
- id: import("zod").ZodString;
282223
- createdAt: import("zod").ZodDate;
282224
- updatedAt: import("zod").ZodDate;
282225
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
282226
- entity: import("zod").ZodString;
282227
- description: import("zod").ZodNullable<import("zod").ZodString>;
282228
- }, "strip", import("zod").ZodTypeAny, {
282229
- id: string;
282230
- description: string | null;
282231
- createdAt: Date;
282232
- updatedAt: Date;
282233
- deletedAt: Date | null;
282234
- entity: string;
282235
- }, {
282236
- id: string;
282237
- description: string | null;
282238
- createdAt: Date;
282239
- updatedAt: Date;
282240
- deletedAt: Date | null;
282241
- entity: string;
282242
- }>;
282243
- }, "strip", import("zod").ZodTypeAny, {
282244
- id: string;
282245
- description: string;
282246
- createdAt: Date;
282247
- updatedAt: Date;
282248
- deletedAt: Date | null;
282249
- entityId: string;
282250
- entityType: {
282251
- id: string;
282252
- description: string | null;
282253
- createdAt: Date;
282254
- updatedAt: Date;
282255
- deletedAt: Date | null;
282256
- entity: string;
282257
- };
282258
- }, {
282259
- id: string;
282260
- description: string;
282261
- createdAt: Date;
282262
- updatedAt: Date;
282263
- deletedAt: Date | null;
282264
- entityId: string;
282265
- entityType: {
282266
- id: string;
282267
- description: string | null;
282268
- createdAt: Date;
282269
- updatedAt: Date;
282270
- deletedAt: Date | null;
282271
- entity: string;
282272
- };
282273
- }>, "many">>;
282274
- }, "strip", import("zod").ZodTypeAny, {
282275
- name: string;
282276
- id: string;
282277
- channel: string | null;
282278
- address: string | null;
282279
- createdAt: Date;
282280
- updatedAt: Date;
282281
- deletedAt: Date | null;
282282
- customFields: {
282283
- id: string;
282284
- createdAt: Date;
282285
- updatedAt: Date;
282286
- deletedAt: Date | null;
282287
- attribute: {
282288
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
282289
- id: string;
282290
- position: number;
282291
- createdAt: Date;
282292
- updatedAt: Date;
282293
- deletedAt: Date | null;
282294
- systemName: string;
282295
- displayName: string;
282296
- isDefault: boolean;
282297
- isArchived: boolean;
282298
- isRequired: boolean;
282299
- isUnique: boolean;
282300
- };
282301
- textValue: string | null;
282302
- booleanValue: boolean | null;
282303
- numberValue: number | null;
282304
- dateValue: Date | null;
282305
- uploads: {
282306
- id: string;
282307
- status: string | null;
282308
- createdAt: Date;
282309
- updatedAt: Date;
282310
- deletedAt: Date | null;
282311
- fileName: string;
282312
- fileKey: string;
282313
- bucketName: string;
282314
- fileSize: number;
282315
- fileUrl: string | null;
282316
- }[];
282317
- }[];
282318
- company: {
282319
- id: string;
282320
- createdAt: Date;
282321
- updatedAt: Date;
282322
- deletedAt: Date | null;
282323
- name?: string | undefined;
282324
- address?: string | null | undefined;
282325
- phone?: string | null | undefined;
282326
- industry?: string | null | undefined;
282327
- } | null;
282328
- notes: string | null;
282329
- contactProfile: string | null;
282330
- socialProfileUrl: string | null;
282331
- tags: {
282332
- name: string;
282333
- id: string;
282334
- createdAt: Date;
282335
- updatedAt: Date;
282336
- deletedAt: Date | null;
282337
- }[];
282338
- contactEmails: {
282339
- id: string;
282340
- isPrimary: boolean;
282341
- email: string;
282342
- createdAt: Date;
282343
- updatedAt: Date;
282344
- deletedAt: Date | null;
282345
- }[];
282346
- contactPhones: {
282347
- id: string;
282348
- isPrimary: boolean;
282349
- createdAt: Date;
282350
- updatedAt: Date;
282351
- deletedAt: Date | null;
282352
- phone: string;
282353
- }[];
282354
- activityLogs?: {
282355
- id: string;
282356
- description: string;
282357
- createdAt: Date;
282358
- updatedAt: Date;
282359
- deletedAt: Date | null;
282360
- entityId: string;
282361
- entityType: {
282362
- id: string;
282363
- description: string | null;
282364
- createdAt: Date;
282365
- updatedAt: Date;
282366
- deletedAt: Date | null;
282367
- entity: string;
282368
- };
282369
- }[] | undefined;
282370
- }, {
282371
- name: string;
282372
- id: string;
282373
- channel: string | null;
282374
- address: string | null;
282375
- createdAt: Date;
282376
- updatedAt: Date;
282377
- deletedAt: Date | null;
282378
- customFields: {
282379
- id: string;
282380
- createdAt: Date;
282381
- updatedAt: Date;
282382
- deletedAt: Date | null;
282383
- attribute: {
282384
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
282385
- id: string;
282386
- position: number;
282387
- createdAt: Date;
282388
- updatedAt: Date;
282389
- deletedAt: Date | null;
282390
- systemName: string;
282391
- displayName: string;
282392
- isDefault: boolean;
282393
- isArchived: boolean;
282394
- isRequired: boolean;
282395
- isUnique: boolean;
282396
- };
282397
- textValue: string | null;
282398
- booleanValue: boolean | null;
282399
- numberValue: number | null;
282400
- dateValue: Date | null;
282401
- uploads: {
282402
- id: string;
282403
- status: string | null;
282404
- createdAt: Date;
282405
- updatedAt: Date;
282406
- deletedAt: Date | null;
282407
- fileName: string;
282408
- fileKey: string;
282409
- bucketName: string;
282410
- fileSize: number;
282411
- fileUrl: string | null;
282412
- }[];
282413
- }[];
282414
- company: {
282415
- id: string;
282416
- createdAt: Date;
282417
- updatedAt: Date;
282418
- deletedAt: Date | null;
282419
- name?: string | undefined;
282420
- address?: string | null | undefined;
282421
- phone?: string | null | undefined;
282422
- industry?: string | null | undefined;
282423
- } | null;
282424
- notes: string | null;
282425
- contactProfile: string | null;
282426
- socialProfileUrl: string | null;
282427
- tags: {
282428
- name: string;
282429
- id: string;
282430
- createdAt: Date;
282431
- updatedAt: Date;
282432
- deletedAt: Date | null;
282433
- }[];
282434
- contactEmails: {
283273
+ }, {
282435
283274
  id: string;
282436
283275
  isPrimary: boolean;
282437
283276
  email: string;
282438
283277
  createdAt: Date;
282439
283278
  updatedAt: Date;
282440
283279
  deletedAt: Date | null;
282441
- }[];
282442
- contactPhones: {
283280
+ }>, "many">;
283281
+ contactPhones: import("zod").ZodArray<import("zod").ZodObject<{
283282
+ id: import("zod").ZodString;
283283
+ createdAt: import("zod").ZodDate;
283284
+ updatedAt: import("zod").ZodDate;
283285
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283286
+ phone: import("zod").ZodString;
283287
+ isPrimary: import("zod").ZodBoolean;
283288
+ }, "strip", import("zod").ZodTypeAny, {
282443
283289
  id: string;
282444
283290
  isPrimary: boolean;
282445
283291
  createdAt: Date;
282446
283292
  updatedAt: Date;
282447
283293
  deletedAt: Date | null;
282448
283294
  phone: string;
282449
- }[];
282450
- activityLogs?: {
283295
+ }, {
283296
+ id: string;
283297
+ isPrimary: boolean;
283298
+ createdAt: Date;
283299
+ updatedAt: Date;
283300
+ deletedAt: Date | null;
283301
+ phone: string;
283302
+ }>, "many">;
283303
+ activityLogs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
283304
+ id: import("zod").ZodString;
283305
+ createdAt: import("zod").ZodDate;
283306
+ updatedAt: import("zod").ZodDate;
283307
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283308
+ entityId: import("zod").ZodString;
283309
+ description: import("zod").ZodString;
283310
+ entityType: import("zod").ZodObject<{
283311
+ id: import("zod").ZodString;
283312
+ createdAt: import("zod").ZodDate;
283313
+ updatedAt: import("zod").ZodDate;
283314
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
283315
+ entity: import("zod").ZodString;
283316
+ description: import("zod").ZodNullable<import("zod").ZodString>;
283317
+ }, "strip", import("zod").ZodTypeAny, {
283318
+ id: string;
283319
+ description: string | null;
283320
+ createdAt: Date;
283321
+ updatedAt: Date;
283322
+ deletedAt: Date | null;
283323
+ entity: string;
283324
+ }, {
283325
+ id: string;
283326
+ description: string | null;
283327
+ createdAt: Date;
283328
+ updatedAt: Date;
283329
+ deletedAt: Date | null;
283330
+ entity: string;
283331
+ }>;
283332
+ }, "strip", import("zod").ZodTypeAny, {
282451
283333
  id: string;
282452
283334
  description: string;
282453
283335
  createdAt: Date;
@@ -282462,11 +283344,23 @@ export declare const publicApiContract: {
282462
283344
  deletedAt: Date | null;
282463
283345
  entity: string;
282464
283346
  };
282465
- }[] | undefined;
282466
- }>;
282467
- requestId: import("zod").ZodString;
282468
- }, "strip", import("zod").ZodTypeAny, {
282469
- data: {
283347
+ }, {
283348
+ id: string;
283349
+ description: string;
283350
+ createdAt: Date;
283351
+ updatedAt: Date;
283352
+ deletedAt: Date | null;
283353
+ entityId: string;
283354
+ entityType: {
283355
+ id: string;
283356
+ description: string | null;
283357
+ createdAt: Date;
283358
+ updatedAt: Date;
283359
+ deletedAt: Date | null;
283360
+ entity: string;
283361
+ };
283362
+ }>, "many">>;
283363
+ }, "strip", import("zod").ZodTypeAny, {
282470
283364
  name: string;
282471
283365
  id: string;
282472
283366
  channel: string | null;
@@ -282562,12 +283456,7 @@ export declare const publicApiContract: {
282562
283456
  entity: string;
282563
283457
  };
282564
283458
  }[] | undefined;
282565
- };
282566
- message: string;
282567
- status: string;
282568
- requestId: string;
282569
- }, {
282570
- data: {
283459
+ }, {
282571
283460
  name: string;
282572
283461
  id: string;
282573
283462
  channel: string | null;
@@ -282630,420 +283519,242 @@ export declare const publicApiContract: {
282630
283519
  createdAt: Date;
282631
283520
  updatedAt: Date;
282632
283521
  deletedAt: Date | null;
282633
- }[];
282634
- contactEmails: {
282635
- id: string;
282636
- isPrimary: boolean;
282637
- email: string;
282638
- createdAt: Date;
282639
- updatedAt: Date;
282640
- deletedAt: Date | null;
282641
- }[];
282642
- contactPhones: {
282643
- id: string;
282644
- isPrimary: boolean;
282645
- createdAt: Date;
282646
- updatedAt: Date;
282647
- deletedAt: Date | null;
282648
- phone: string;
282649
- }[];
282650
- activityLogs?: {
282651
- id: string;
282652
- description: string;
282653
- createdAt: Date;
282654
- updatedAt: Date;
282655
- deletedAt: Date | null;
282656
- entityId: string;
282657
- entityType: {
282658
- id: string;
282659
- description: string | null;
282660
- createdAt: Date;
282661
- updatedAt: Date;
282662
- deletedAt: Date | null;
282663
- entity: string;
282664
- };
282665
- }[] | undefined;
282666
- };
282667
- message: string;
282668
- status: string;
282669
- requestId: string;
282670
- }>;
282671
- 400: import("zod").ZodObject<{
282672
- message: import("zod").ZodString;
282673
- }, "strip", import("zod").ZodTypeAny, {
282674
- message: string;
282675
- }, {
282676
- message: string;
282677
- }>;
282678
- 409: import("zod").ZodObject<{
282679
- message: import("zod").ZodString;
282680
- }, "strip", import("zod").ZodTypeAny, {
282681
- message: string;
282682
- }, {
282683
- message: string;
282684
- }>;
282685
- 401: import("zod").ZodObject<{
282686
- message: import("zod").ZodString;
282687
- error: import("zod").ZodAny;
282688
- }, "strip", import("zod").ZodTypeAny, {
282689
- message: string;
282690
- error?: any;
282691
- }, {
282692
- message: string;
282693
- error?: any;
282694
- }>;
282695
- 404: import("zod").ZodObject<{
282696
- message: import("zod").ZodString;
282697
- error: import("zod").ZodAny;
282698
- }, "strip", import("zod").ZodTypeAny, {
282699
- message: string;
282700
- error?: any;
282701
- }, {
282702
- message: string;
282703
- error?: any;
282704
- }>;
282705
- 422: import("zod").ZodObject<{
282706
- message: import("zod").ZodString;
282707
- error: import("zod").ZodAny;
282708
- }, "strip", import("zod").ZodTypeAny, {
282709
- message: string;
282710
- error?: any;
282711
- }, {
282712
- message: string;
282713
- error?: any;
282714
- }>;
282715
- 500: import("zod").ZodObject<{
282716
- message: import("zod").ZodString;
282717
- error: import("zod").ZodAny;
282718
- }, "strip", import("zod").ZodTypeAny, {
282719
- message: string;
282720
- error?: any;
282721
- }, {
282722
- message: string;
282723
- error?: any;
282724
- }>;
282725
- };
282726
- path: "api/v1/contacts/:id";
282727
- };
282728
- createContactAttachmentRecords: {
282729
- body: import("zod").ZodObject<{
282730
- contactId: import("zod").ZodString;
282731
- attributeId: import("zod").ZodString;
282732
- contactAttachmentRecords: import("zod").ZodArray<import("zod").ZodObject<{
282733
- bucketName: import("zod").ZodString;
282734
- fileKey: import("zod").ZodString;
282735
- fileName: import("zod").ZodString;
282736
- fileSize: import("zod").ZodNumber;
282737
- url: import("zod").ZodString;
282738
- }, "strip", import("zod").ZodTypeAny, {
282739
- url: string;
282740
- fileName: string;
282741
- fileKey: string;
282742
- bucketName: string;
282743
- fileSize: number;
282744
- }, {
282745
- url: string;
282746
- fileName: string;
282747
- fileKey: string;
282748
- bucketName: string;
282749
- fileSize: number;
282750
- }>, "many">;
282751
- }, "strip", import("zod").ZodTypeAny, {
282752
- attributeId: string;
282753
- contactId: string;
282754
- contactAttachmentRecords: {
282755
- url: string;
282756
- fileName: string;
282757
- fileKey: string;
282758
- bucketName: string;
282759
- fileSize: number;
282760
- }[];
282761
- }, {
282762
- attributeId: string;
282763
- contactId: string;
282764
- contactAttachmentRecords: {
282765
- url: string;
282766
- fileName: string;
282767
- fileKey: string;
282768
- bucketName: string;
282769
- fileSize: number;
282770
- }[];
282771
- }>;
282772
- summary: "Create a new contact attachment";
282773
- method: "POST";
282774
- responses: {
282775
- 201: import("zod").ZodObject<{
282776
- requestId: import("zod").ZodString;
282777
- message: import("zod").ZodObject<{
282778
- id: import("zod").ZodString;
282779
- createdAt: import("zod").ZodDate;
282780
- updatedAt: import("zod").ZodDate;
282781
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
282782
- textValue: import("zod").ZodNullable<import("zod").ZodString>;
282783
- booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
282784
- numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
282785
- dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
282786
- attribute: import("zod").ZodObject<Omit<{
282787
- id: import("zod").ZodString;
282788
- createdAt: import("zod").ZodDate;
282789
- updatedAt: import("zod").ZodDate;
282790
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
282791
- systemName: import("zod").ZodString;
282792
- displayName: import("zod").ZodString;
282793
- type: import("zod").ZodUnion<[import("zod").ZodLiteral<"text">, import("zod").ZodLiteral<"textarea">, import("zod").ZodLiteral<"date">, import("zod").ZodLiteral<"select">, import("zod").ZodLiteral<"link">, import("zod").ZodLiteral<"attachment">]>;
282794
- position: import("zod").ZodNumber;
282795
- isDefault: import("zod").ZodBoolean;
282796
- isArchived: import("zod").ZodBoolean;
282797
- isRequired: import("zod").ZodBoolean;
282798
- isUnique: import("zod").ZodBoolean;
282799
- options: import("zod").ZodArray<import("zod").ZodObject<{
282800
- position: import("zod").ZodNumber;
282801
- value: import("zod").ZodString;
282802
- label: import("zod").ZodString;
282803
- isDefault: import("zod").ZodBoolean;
282804
- id: import("zod").ZodString;
282805
- }, "strip", import("zod").ZodTypeAny, {
283522
+ }[];
283523
+ contactEmails: {
283524
+ id: string;
283525
+ isPrimary: boolean;
283526
+ email: string;
283527
+ createdAt: Date;
283528
+ updatedAt: Date;
283529
+ deletedAt: Date | null;
283530
+ }[];
283531
+ contactPhones: {
283532
+ id: string;
283533
+ isPrimary: boolean;
283534
+ createdAt: Date;
283535
+ updatedAt: Date;
283536
+ deletedAt: Date | null;
283537
+ phone: string;
283538
+ }[];
283539
+ activityLogs?: {
283540
+ id: string;
283541
+ description: string;
283542
+ createdAt: Date;
283543
+ updatedAt: Date;
283544
+ deletedAt: Date | null;
283545
+ entityId: string;
283546
+ entityType: {
282806
283547
  id: string;
282807
- position: number;
282808
- value: string;
282809
- label: string;
282810
- isDefault: boolean;
282811
- }, {
283548
+ description: string | null;
283549
+ createdAt: Date;
283550
+ updatedAt: Date;
283551
+ deletedAt: Date | null;
283552
+ entity: string;
283553
+ };
283554
+ }[] | undefined;
283555
+ }>;
283556
+ requestId: import("zod").ZodString;
283557
+ }, "strip", import("zod").ZodTypeAny, {
283558
+ data: {
283559
+ name: string;
283560
+ id: string;
283561
+ channel: string | null;
283562
+ address: string | null;
283563
+ createdAt: Date;
283564
+ updatedAt: Date;
283565
+ deletedAt: Date | null;
283566
+ customFields: {
283567
+ id: string;
283568
+ createdAt: Date;
283569
+ updatedAt: Date;
283570
+ deletedAt: Date | null;
283571
+ attribute: {
283572
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
282812
283573
  id: string;
282813
283574
  position: number;
282814
- value: string;
282815
- label: string;
282816
- isDefault: boolean;
282817
- }>, "many">;
282818
- group: import("zod").ZodObject<{
282819
- id: import("zod").ZodString;
282820
- createdAt: import("zod").ZodDate;
282821
- updatedAt: import("zod").ZodDate;
282822
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
282823
- systemName: import("zod").ZodString;
282824
- displayName: import("zod").ZodString;
282825
- }, "strip", import("zod").ZodTypeAny, {
282826
- id: string;
282827
283575
  createdAt: Date;
282828
283576
  updatedAt: Date;
282829
283577
  deletedAt: Date | null;
282830
283578
  systemName: string;
282831
283579
  displayName: string;
282832
- }, {
283580
+ isDefault: boolean;
283581
+ isArchived: boolean;
283582
+ isRequired: boolean;
283583
+ isUnique: boolean;
283584
+ };
283585
+ textValue: string | null;
283586
+ booleanValue: boolean | null;
283587
+ numberValue: number | null;
283588
+ dateValue: Date | null;
283589
+ uploads: {
282833
283590
  id: string;
283591
+ status: string | null;
282834
283592
  createdAt: Date;
282835
283593
  updatedAt: Date;
282836
283594
  deletedAt: Date | null;
282837
- systemName: string;
282838
- displayName: string;
282839
- }>;
282840
- }, "options" | "group">, "strip", import("zod").ZodTypeAny, {
282841
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
282842
- id: string;
282843
- position: number;
282844
- createdAt: Date;
282845
- updatedAt: Date;
282846
- deletedAt: Date | null;
282847
- systemName: string;
282848
- displayName: string;
282849
- isDefault: boolean;
282850
- isArchived: boolean;
282851
- isRequired: boolean;
282852
- isUnique: boolean;
282853
- }, {
282854
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283595
+ fileName: string;
283596
+ fileKey: string;
283597
+ bucketName: string;
283598
+ fileSize: number;
283599
+ fileUrl: string | null;
283600
+ }[];
283601
+ }[];
283602
+ company: {
282855
283603
  id: string;
282856
- position: number;
282857
283604
  createdAt: Date;
282858
283605
  updatedAt: Date;
282859
283606
  deletedAt: Date | null;
282860
- systemName: string;
282861
- displayName: string;
282862
- isDefault: boolean;
282863
- isArchived: boolean;
282864
- isRequired: boolean;
282865
- isUnique: boolean;
282866
- }>;
282867
- uploads: import("zod").ZodArray<import("zod").ZodObject<{
282868
- id: import("zod").ZodString;
282869
- createdAt: import("zod").ZodDate;
282870
- updatedAt: import("zod").ZodDate;
282871
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
282872
- bucketName: import("zod").ZodString;
282873
- fileName: import("zod").ZodString;
282874
- fileSize: import("zod").ZodNumber;
282875
- fileKey: import("zod").ZodString;
282876
- fileUrl: import("zod").ZodNullable<import("zod").ZodString>;
282877
- status: import("zod").ZodNullable<import("zod").ZodString>;
282878
- }, "strip", import("zod").ZodTypeAny, {
283607
+ name?: string | undefined;
283608
+ address?: string | null | undefined;
283609
+ phone?: string | null | undefined;
283610
+ industry?: string | null | undefined;
283611
+ } | null;
283612
+ notes: string | null;
283613
+ contactProfile: string | null;
283614
+ socialProfileUrl: string | null;
283615
+ tags: {
283616
+ name: string;
282879
283617
  id: string;
282880
- status: string | null;
282881
283618
  createdAt: Date;
282882
283619
  updatedAt: Date;
282883
283620
  deletedAt: Date | null;
282884
- fileName: string;
282885
- fileKey: string;
282886
- bucketName: string;
282887
- fileSize: number;
282888
- fileUrl: string | null;
282889
- }, {
283621
+ }[];
283622
+ contactEmails: {
282890
283623
  id: string;
282891
- status: string | null;
283624
+ isPrimary: boolean;
283625
+ email: string;
282892
283626
  createdAt: Date;
282893
283627
  updatedAt: Date;
282894
283628
  deletedAt: Date | null;
282895
- fileName: string;
282896
- fileKey: string;
282897
- bucketName: string;
282898
- fileSize: number;
282899
- fileUrl: string | null;
282900
- }>, "many">;
282901
- }, "strip", import("zod").ZodTypeAny, {
282902
- id: string;
282903
- createdAt: Date;
282904
- updatedAt: Date;
282905
- deletedAt: Date | null;
282906
- attribute: {
282907
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283629
+ }[];
283630
+ contactPhones: {
282908
283631
  id: string;
282909
- position: number;
283632
+ isPrimary: boolean;
282910
283633
  createdAt: Date;
282911
283634
  updatedAt: Date;
282912
283635
  deletedAt: Date | null;
282913
- systemName: string;
282914
- displayName: string;
282915
- isDefault: boolean;
282916
- isArchived: boolean;
282917
- isRequired: boolean;
282918
- isUnique: boolean;
282919
- };
282920
- textValue: string | null;
282921
- booleanValue: boolean | null;
282922
- numberValue: number | null;
282923
- dateValue: Date | null;
282924
- uploads: {
283636
+ phone: string;
283637
+ }[];
283638
+ activityLogs?: {
282925
283639
  id: string;
282926
- status: string | null;
283640
+ description: string;
282927
283641
  createdAt: Date;
282928
283642
  updatedAt: Date;
282929
283643
  deletedAt: Date | null;
282930
- fileName: string;
282931
- fileKey: string;
282932
- bucketName: string;
282933
- fileSize: number;
282934
- fileUrl: string | null;
282935
- }[];
282936
- }, {
283644
+ entityId: string;
283645
+ entityType: {
283646
+ id: string;
283647
+ description: string | null;
283648
+ createdAt: Date;
283649
+ updatedAt: Date;
283650
+ deletedAt: Date | null;
283651
+ entity: string;
283652
+ };
283653
+ }[] | undefined;
283654
+ };
283655
+ message: string;
283656
+ status: string;
283657
+ requestId: string;
283658
+ }, {
283659
+ data: {
283660
+ name: string;
282937
283661
  id: string;
283662
+ channel: string | null;
283663
+ address: string | null;
282938
283664
  createdAt: Date;
282939
283665
  updatedAt: Date;
282940
283666
  deletedAt: Date | null;
282941
- attribute: {
282942
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283667
+ customFields: {
282943
283668
  id: string;
282944
- position: number;
282945
283669
  createdAt: Date;
282946
283670
  updatedAt: Date;
282947
283671
  deletedAt: Date | null;
282948
- systemName: string;
282949
- displayName: string;
282950
- isDefault: boolean;
282951
- isArchived: boolean;
282952
- isRequired: boolean;
282953
- isUnique: boolean;
282954
- };
282955
- textValue: string | null;
282956
- booleanValue: boolean | null;
282957
- numberValue: number | null;
282958
- dateValue: Date | null;
282959
- uploads: {
283672
+ attribute: {
283673
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283674
+ id: string;
283675
+ position: number;
283676
+ createdAt: Date;
283677
+ updatedAt: Date;
283678
+ deletedAt: Date | null;
283679
+ systemName: string;
283680
+ displayName: string;
283681
+ isDefault: boolean;
283682
+ isArchived: boolean;
283683
+ isRequired: boolean;
283684
+ isUnique: boolean;
283685
+ };
283686
+ textValue: string | null;
283687
+ booleanValue: boolean | null;
283688
+ numberValue: number | null;
283689
+ dateValue: Date | null;
283690
+ uploads: {
283691
+ id: string;
283692
+ status: string | null;
283693
+ createdAt: Date;
283694
+ updatedAt: Date;
283695
+ deletedAt: Date | null;
283696
+ fileName: string;
283697
+ fileKey: string;
283698
+ bucketName: string;
283699
+ fileSize: number;
283700
+ fileUrl: string | null;
283701
+ }[];
283702
+ }[];
283703
+ company: {
282960
283704
  id: string;
282961
- status: string | null;
282962
283705
  createdAt: Date;
282963
283706
  updatedAt: Date;
282964
283707
  deletedAt: Date | null;
282965
- fileName: string;
282966
- fileKey: string;
282967
- bucketName: string;
282968
- fileSize: number;
282969
- fileUrl: string | null;
282970
- }[];
282971
- }>;
282972
- }, "strip", import("zod").ZodTypeAny, {
282973
- message: {
282974
- id: string;
282975
- createdAt: Date;
282976
- updatedAt: Date;
282977
- deletedAt: Date | null;
282978
- attribute: {
282979
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283708
+ name?: string | undefined;
283709
+ address?: string | null | undefined;
283710
+ phone?: string | null | undefined;
283711
+ industry?: string | null | undefined;
283712
+ } | null;
283713
+ notes: string | null;
283714
+ contactProfile: string | null;
283715
+ socialProfileUrl: string | null;
283716
+ tags: {
283717
+ name: string;
282980
283718
  id: string;
282981
- position: number;
282982
283719
  createdAt: Date;
282983
283720
  updatedAt: Date;
282984
283721
  deletedAt: Date | null;
282985
- systemName: string;
282986
- displayName: string;
282987
- isDefault: boolean;
282988
- isArchived: boolean;
282989
- isRequired: boolean;
282990
- isUnique: boolean;
282991
- };
282992
- textValue: string | null;
282993
- booleanValue: boolean | null;
282994
- numberValue: number | null;
282995
- dateValue: Date | null;
282996
- uploads: {
283722
+ }[];
283723
+ contactEmails: {
282997
283724
  id: string;
282998
- status: string | null;
283725
+ isPrimary: boolean;
283726
+ email: string;
282999
283727
  createdAt: Date;
283000
283728
  updatedAt: Date;
283001
283729
  deletedAt: Date | null;
283002
- fileName: string;
283003
- fileKey: string;
283004
- bucketName: string;
283005
- fileSize: number;
283006
- fileUrl: string | null;
283007
283730
  }[];
283008
- };
283009
- requestId: string;
283010
- }, {
283011
- message: {
283012
- id: string;
283013
- createdAt: Date;
283014
- updatedAt: Date;
283015
- deletedAt: Date | null;
283016
- attribute: {
283017
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283731
+ contactPhones: {
283018
283732
  id: string;
283019
- position: number;
283733
+ isPrimary: boolean;
283020
283734
  createdAt: Date;
283021
283735
  updatedAt: Date;
283022
283736
  deletedAt: Date | null;
283023
- systemName: string;
283024
- displayName: string;
283025
- isDefault: boolean;
283026
- isArchived: boolean;
283027
- isRequired: boolean;
283028
- isUnique: boolean;
283029
- };
283030
- textValue: string | null;
283031
- booleanValue: boolean | null;
283032
- numberValue: number | null;
283033
- dateValue: Date | null;
283034
- uploads: {
283737
+ phone: string;
283738
+ }[];
283739
+ activityLogs?: {
283035
283740
  id: string;
283036
- status: string | null;
283741
+ description: string;
283037
283742
  createdAt: Date;
283038
283743
  updatedAt: Date;
283039
283744
  deletedAt: Date | null;
283040
- fileName: string;
283041
- fileKey: string;
283042
- bucketName: string;
283043
- fileSize: number;
283044
- fileUrl: string | null;
283045
- }[];
283745
+ entityId: string;
283746
+ entityType: {
283747
+ id: string;
283748
+ description: string | null;
283749
+ createdAt: Date;
283750
+ updatedAt: Date;
283751
+ deletedAt: Date | null;
283752
+ entity: string;
283753
+ };
283754
+ }[] | undefined;
283046
283755
  };
283756
+ message: string;
283757
+ status: string;
283047
283758
  requestId: string;
283048
283759
  }>;
283049
283760
  400: import("zod").ZodObject<{
@@ -283101,11 +283812,72 @@ export declare const publicApiContract: {
283101
283812
  error?: any;
283102
283813
  }>;
283103
283814
  };
283104
- path: "api/v1/contacts/attachments";
283815
+ path: "api/v1/contacts/:id";
283105
283816
  };
283106
- getContactById: {
283107
- summary: "Get a contact by id";
283108
- method: "GET";
283817
+ updateContact: {
283818
+ body: import("zod").ZodObject<{
283819
+ name: import("zod").ZodOptional<import("zod").ZodString>;
283820
+ email: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
283821
+ email: import("zod").ZodString;
283822
+ isPrimary: import("zod").ZodBoolean;
283823
+ }, "strip", import("zod").ZodTypeAny, {
283824
+ isPrimary: boolean;
283825
+ email: string;
283826
+ }, {
283827
+ isPrimary: boolean;
283828
+ email: string;
283829
+ }>, "many">>>;
283830
+ channel: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
283831
+ address: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
283832
+ phone: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
283833
+ phone: import("zod").ZodString;
283834
+ isPrimary: import("zod").ZodBoolean;
283835
+ }, "strip", import("zod").ZodTypeAny, {
283836
+ isPrimary: boolean;
283837
+ phone: string;
283838
+ }, {
283839
+ isPrimary: boolean;
283840
+ phone: string;
283841
+ }>, "many">>>;
283842
+ notes: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
283843
+ tags: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
283844
+ company: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
283845
+ customFields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
283846
+ }, "strip", import("zod").ZodTypeAny, {
283847
+ name?: string | undefined;
283848
+ email?: {
283849
+ isPrimary: boolean;
283850
+ email: string;
283851
+ }[] | undefined;
283852
+ channel?: string | undefined;
283853
+ address?: string | undefined;
283854
+ phone?: {
283855
+ isPrimary: boolean;
283856
+ phone: string;
283857
+ }[] | undefined;
283858
+ notes?: string | undefined;
283859
+ tags?: string[] | undefined;
283860
+ company?: string | undefined;
283861
+ customFields?: Record<string, string> | undefined;
283862
+ }, {
283863
+ name?: string | undefined;
283864
+ email?: {
283865
+ isPrimary: boolean;
283866
+ email: string;
283867
+ }[] | undefined;
283868
+ channel?: string | undefined;
283869
+ address?: string | undefined;
283870
+ phone?: {
283871
+ isPrimary: boolean;
283872
+ phone: string;
283873
+ }[] | undefined;
283874
+ notes?: string | undefined;
283875
+ tags?: string[] | undefined;
283876
+ company?: string | undefined;
283877
+ customFields?: Record<string, string> | undefined;
283878
+ }>;
283879
+ summary: "Update a contact";
283880
+ method: "PATCH";
283109
283881
  pathParams: import("zod").ZodObject<{
283110
283882
  id: import("zod").ZodString;
283111
283883
  }, "strip", import("zod").ZodTypeAny, {
@@ -283610,8 +284382,104 @@ export declare const publicApiContract: {
283610
284382
  deletedAt: Date | null;
283611
284383
  entity: string;
283612
284384
  };
283613
- }>, "many">>;
283614
- }, "strip", import("zod").ZodTypeAny, {
284385
+ }>, "many">>;
284386
+ }, "strip", import("zod").ZodTypeAny, {
284387
+ name: string;
284388
+ id: string;
284389
+ channel: string | null;
284390
+ address: string | null;
284391
+ createdAt: Date;
284392
+ updatedAt: Date;
284393
+ deletedAt: Date | null;
284394
+ customFields: {
284395
+ id: string;
284396
+ createdAt: Date;
284397
+ updatedAt: Date;
284398
+ deletedAt: Date | null;
284399
+ attribute: {
284400
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
284401
+ id: string;
284402
+ position: number;
284403
+ createdAt: Date;
284404
+ updatedAt: Date;
284405
+ deletedAt: Date | null;
284406
+ systemName: string;
284407
+ displayName: string;
284408
+ isDefault: boolean;
284409
+ isArchived: boolean;
284410
+ isRequired: boolean;
284411
+ isUnique: boolean;
284412
+ };
284413
+ textValue: string | null;
284414
+ booleanValue: boolean | null;
284415
+ numberValue: number | null;
284416
+ dateValue: Date | null;
284417
+ uploads: {
284418
+ id: string;
284419
+ status: string | null;
284420
+ createdAt: Date;
284421
+ updatedAt: Date;
284422
+ deletedAt: Date | null;
284423
+ fileName: string;
284424
+ fileKey: string;
284425
+ bucketName: string;
284426
+ fileSize: number;
284427
+ fileUrl: string | null;
284428
+ }[];
284429
+ }[];
284430
+ company: {
284431
+ id: string;
284432
+ createdAt: Date;
284433
+ updatedAt: Date;
284434
+ deletedAt: Date | null;
284435
+ name?: string | undefined;
284436
+ address?: string | null | undefined;
284437
+ phone?: string | null | undefined;
284438
+ industry?: string | null | undefined;
284439
+ } | null;
284440
+ notes: string | null;
284441
+ contactProfile: string | null;
284442
+ socialProfileUrl: string | null;
284443
+ tags: {
284444
+ name: string;
284445
+ id: string;
284446
+ createdAt: Date;
284447
+ updatedAt: Date;
284448
+ deletedAt: Date | null;
284449
+ }[];
284450
+ contactEmails: {
284451
+ id: string;
284452
+ isPrimary: boolean;
284453
+ email: string;
284454
+ createdAt: Date;
284455
+ updatedAt: Date;
284456
+ deletedAt: Date | null;
284457
+ }[];
284458
+ contactPhones: {
284459
+ id: string;
284460
+ isPrimary: boolean;
284461
+ createdAt: Date;
284462
+ updatedAt: Date;
284463
+ deletedAt: Date | null;
284464
+ phone: string;
284465
+ }[];
284466
+ activityLogs?: {
284467
+ id: string;
284468
+ description: string;
284469
+ createdAt: Date;
284470
+ updatedAt: Date;
284471
+ deletedAt: Date | null;
284472
+ entityId: string;
284473
+ entityType: {
284474
+ id: string;
284475
+ description: string | null;
284476
+ createdAt: Date;
284477
+ updatedAt: Date;
284478
+ deletedAt: Date | null;
284479
+ entity: string;
284480
+ };
284481
+ }[] | undefined;
284482
+ }, {
283615
284483
  name: string;
283616
284484
  id: string;
283617
284485
  channel: string | null;
@@ -283707,7 +284575,10 @@ export declare const publicApiContract: {
283707
284575
  entity: string;
283708
284576
  };
283709
284577
  }[] | undefined;
283710
- }, {
284578
+ }>;
284579
+ requestId: import("zod").ZodString;
284580
+ }, "strip", import("zod").ZodTypeAny, {
284581
+ data: {
283711
284582
  name: string;
283712
284583
  id: string;
283713
284584
  channel: string | null;
@@ -283803,9 +284674,11 @@ export declare const publicApiContract: {
283803
284674
  entity: string;
283804
284675
  };
283805
284676
  }[] | undefined;
283806
- }>;
283807
- requestId: import("zod").ZodString;
283808
- }, "strip", import("zod").ZodTypeAny, {
284677
+ };
284678
+ message: string;
284679
+ status: string;
284680
+ requestId: string;
284681
+ }, {
283809
284682
  data: {
283810
284683
  name: string;
283811
284684
  id: string;
@@ -283855,157 +284728,434 @@ export declare const publicApiContract: {
283855
284728
  createdAt: Date;
283856
284729
  updatedAt: Date;
283857
284730
  deletedAt: Date | null;
283858
- name?: string | undefined;
283859
- address?: string | null | undefined;
283860
- phone?: string | null | undefined;
283861
- industry?: string | null | undefined;
283862
- } | null;
283863
- notes: string | null;
283864
- contactProfile: string | null;
283865
- socialProfileUrl: string | null;
283866
- tags: {
283867
- name: string;
284731
+ name?: string | undefined;
284732
+ address?: string | null | undefined;
284733
+ phone?: string | null | undefined;
284734
+ industry?: string | null | undefined;
284735
+ } | null;
284736
+ notes: string | null;
284737
+ contactProfile: string | null;
284738
+ socialProfileUrl: string | null;
284739
+ tags: {
284740
+ name: string;
284741
+ id: string;
284742
+ createdAt: Date;
284743
+ updatedAt: Date;
284744
+ deletedAt: Date | null;
284745
+ }[];
284746
+ contactEmails: {
284747
+ id: string;
284748
+ isPrimary: boolean;
284749
+ email: string;
284750
+ createdAt: Date;
284751
+ updatedAt: Date;
284752
+ deletedAt: Date | null;
284753
+ }[];
284754
+ contactPhones: {
284755
+ id: string;
284756
+ isPrimary: boolean;
284757
+ createdAt: Date;
284758
+ updatedAt: Date;
284759
+ deletedAt: Date | null;
284760
+ phone: string;
284761
+ }[];
284762
+ activityLogs?: {
284763
+ id: string;
284764
+ description: string;
284765
+ createdAt: Date;
284766
+ updatedAt: Date;
284767
+ deletedAt: Date | null;
284768
+ entityId: string;
284769
+ entityType: {
284770
+ id: string;
284771
+ description: string | null;
284772
+ createdAt: Date;
284773
+ updatedAt: Date;
284774
+ deletedAt: Date | null;
284775
+ entity: string;
284776
+ };
284777
+ }[] | undefined;
284778
+ };
284779
+ message: string;
284780
+ status: string;
284781
+ requestId: string;
284782
+ }>;
284783
+ 400: import("zod").ZodObject<{
284784
+ message: import("zod").ZodString;
284785
+ }, "strip", import("zod").ZodTypeAny, {
284786
+ message: string;
284787
+ }, {
284788
+ message: string;
284789
+ }>;
284790
+ 409: import("zod").ZodObject<{
284791
+ message: import("zod").ZodString;
284792
+ }, "strip", import("zod").ZodTypeAny, {
284793
+ message: string;
284794
+ }, {
284795
+ message: string;
284796
+ }>;
284797
+ 401: import("zod").ZodObject<{
284798
+ message: import("zod").ZodString;
284799
+ error: import("zod").ZodAny;
284800
+ }, "strip", import("zod").ZodTypeAny, {
284801
+ message: string;
284802
+ error?: any;
284803
+ }, {
284804
+ message: string;
284805
+ error?: any;
284806
+ }>;
284807
+ 404: import("zod").ZodObject<{
284808
+ message: import("zod").ZodString;
284809
+ error: import("zod").ZodAny;
284810
+ }, "strip", import("zod").ZodTypeAny, {
284811
+ message: string;
284812
+ error?: any;
284813
+ }, {
284814
+ message: string;
284815
+ error?: any;
284816
+ }>;
284817
+ 422: import("zod").ZodObject<{
284818
+ message: import("zod").ZodString;
284819
+ error: import("zod").ZodAny;
284820
+ }, "strip", import("zod").ZodTypeAny, {
284821
+ message: string;
284822
+ error?: any;
284823
+ }, {
284824
+ message: string;
284825
+ error?: any;
284826
+ }>;
284827
+ 500: import("zod").ZodObject<{
284828
+ message: import("zod").ZodString;
284829
+ error: import("zod").ZodAny;
284830
+ }, "strip", import("zod").ZodTypeAny, {
284831
+ message: string;
284832
+ error?: any;
284833
+ }, {
284834
+ message: string;
284835
+ error?: any;
284836
+ }>;
284837
+ };
284838
+ path: "api/v1/contacts/:id";
284839
+ };
284840
+ createContactAttachmentRecords: {
284841
+ body: import("zod").ZodObject<{
284842
+ contactId: import("zod").ZodString;
284843
+ attributeId: import("zod").ZodString;
284844
+ contactAttachmentRecords: import("zod").ZodArray<import("zod").ZodObject<{
284845
+ bucketName: import("zod").ZodString;
284846
+ fileKey: import("zod").ZodString;
284847
+ fileName: import("zod").ZodString;
284848
+ fileSize: import("zod").ZodNumber;
284849
+ url: import("zod").ZodString;
284850
+ }, "strip", import("zod").ZodTypeAny, {
284851
+ url: string;
284852
+ fileName: string;
284853
+ fileKey: string;
284854
+ bucketName: string;
284855
+ fileSize: number;
284856
+ }, {
284857
+ url: string;
284858
+ fileName: string;
284859
+ fileKey: string;
284860
+ bucketName: string;
284861
+ fileSize: number;
284862
+ }>, "many">;
284863
+ }, "strip", import("zod").ZodTypeAny, {
284864
+ attributeId: string;
284865
+ contactId: string;
284866
+ contactAttachmentRecords: {
284867
+ url: string;
284868
+ fileName: string;
284869
+ fileKey: string;
284870
+ bucketName: string;
284871
+ fileSize: number;
284872
+ }[];
284873
+ }, {
284874
+ attributeId: string;
284875
+ contactId: string;
284876
+ contactAttachmentRecords: {
284877
+ url: string;
284878
+ fileName: string;
284879
+ fileKey: string;
284880
+ bucketName: string;
284881
+ fileSize: number;
284882
+ }[];
284883
+ }>;
284884
+ summary: "Create a new contact attachment";
284885
+ method: "POST";
284886
+ responses: {
284887
+ 201: import("zod").ZodObject<{
284888
+ requestId: import("zod").ZodString;
284889
+ message: import("zod").ZodObject<{
284890
+ id: import("zod").ZodString;
284891
+ createdAt: import("zod").ZodDate;
284892
+ updatedAt: import("zod").ZodDate;
284893
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
284894
+ textValue: import("zod").ZodNullable<import("zod").ZodString>;
284895
+ booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
284896
+ numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
284897
+ dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
284898
+ attribute: import("zod").ZodObject<Omit<{
284899
+ id: import("zod").ZodString;
284900
+ createdAt: import("zod").ZodDate;
284901
+ updatedAt: import("zod").ZodDate;
284902
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
284903
+ systemName: import("zod").ZodString;
284904
+ displayName: import("zod").ZodString;
284905
+ type: import("zod").ZodUnion<[import("zod").ZodLiteral<"text">, import("zod").ZodLiteral<"textarea">, import("zod").ZodLiteral<"date">, import("zod").ZodLiteral<"select">, import("zod").ZodLiteral<"link">, import("zod").ZodLiteral<"attachment">]>;
284906
+ position: import("zod").ZodNumber;
284907
+ isDefault: import("zod").ZodBoolean;
284908
+ isArchived: import("zod").ZodBoolean;
284909
+ isRequired: import("zod").ZodBoolean;
284910
+ isUnique: import("zod").ZodBoolean;
284911
+ options: import("zod").ZodArray<import("zod").ZodObject<{
284912
+ position: import("zod").ZodNumber;
284913
+ value: import("zod").ZodString;
284914
+ label: import("zod").ZodString;
284915
+ isDefault: import("zod").ZodBoolean;
284916
+ id: import("zod").ZodString;
284917
+ }, "strip", import("zod").ZodTypeAny, {
284918
+ id: string;
284919
+ position: number;
284920
+ value: string;
284921
+ label: string;
284922
+ isDefault: boolean;
284923
+ }, {
284924
+ id: string;
284925
+ position: number;
284926
+ value: string;
284927
+ label: string;
284928
+ isDefault: boolean;
284929
+ }>, "many">;
284930
+ group: import("zod").ZodObject<{
284931
+ id: import("zod").ZodString;
284932
+ createdAt: import("zod").ZodDate;
284933
+ updatedAt: import("zod").ZodDate;
284934
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
284935
+ systemName: import("zod").ZodString;
284936
+ displayName: import("zod").ZodString;
284937
+ }, "strip", import("zod").ZodTypeAny, {
284938
+ id: string;
284939
+ createdAt: Date;
284940
+ updatedAt: Date;
284941
+ deletedAt: Date | null;
284942
+ systemName: string;
284943
+ displayName: string;
284944
+ }, {
284945
+ id: string;
284946
+ createdAt: Date;
284947
+ updatedAt: Date;
284948
+ deletedAt: Date | null;
284949
+ systemName: string;
284950
+ displayName: string;
284951
+ }>;
284952
+ }, "options" | "group">, "strip", import("zod").ZodTypeAny, {
284953
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
284954
+ id: string;
284955
+ position: number;
284956
+ createdAt: Date;
284957
+ updatedAt: Date;
284958
+ deletedAt: Date | null;
284959
+ systemName: string;
284960
+ displayName: string;
284961
+ isDefault: boolean;
284962
+ isArchived: boolean;
284963
+ isRequired: boolean;
284964
+ isUnique: boolean;
284965
+ }, {
284966
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
284967
+ id: string;
284968
+ position: number;
284969
+ createdAt: Date;
284970
+ updatedAt: Date;
284971
+ deletedAt: Date | null;
284972
+ systemName: string;
284973
+ displayName: string;
284974
+ isDefault: boolean;
284975
+ isArchived: boolean;
284976
+ isRequired: boolean;
284977
+ isUnique: boolean;
284978
+ }>;
284979
+ uploads: import("zod").ZodArray<import("zod").ZodObject<{
284980
+ id: import("zod").ZodString;
284981
+ createdAt: import("zod").ZodDate;
284982
+ updatedAt: import("zod").ZodDate;
284983
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
284984
+ bucketName: import("zod").ZodString;
284985
+ fileName: import("zod").ZodString;
284986
+ fileSize: import("zod").ZodNumber;
284987
+ fileKey: import("zod").ZodString;
284988
+ fileUrl: import("zod").ZodNullable<import("zod").ZodString>;
284989
+ status: import("zod").ZodNullable<import("zod").ZodString>;
284990
+ }, "strip", import("zod").ZodTypeAny, {
283868
284991
  id: string;
284992
+ status: string | null;
283869
284993
  createdAt: Date;
283870
284994
  updatedAt: Date;
283871
284995
  deletedAt: Date | null;
283872
- }[];
283873
- contactEmails: {
284996
+ fileName: string;
284997
+ fileKey: string;
284998
+ bucketName: string;
284999
+ fileSize: number;
285000
+ fileUrl: string | null;
285001
+ }, {
283874
285002
  id: string;
283875
- isPrimary: boolean;
283876
- email: string;
285003
+ status: string | null;
283877
285004
  createdAt: Date;
283878
285005
  updatedAt: Date;
283879
285006
  deletedAt: Date | null;
283880
- }[];
283881
- contactPhones: {
285007
+ fileName: string;
285008
+ fileKey: string;
285009
+ bucketName: string;
285010
+ fileSize: number;
285011
+ fileUrl: string | null;
285012
+ }>, "many">;
285013
+ }, "strip", import("zod").ZodTypeAny, {
285014
+ id: string;
285015
+ createdAt: Date;
285016
+ updatedAt: Date;
285017
+ deletedAt: Date | null;
285018
+ attribute: {
285019
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283882
285020
  id: string;
283883
- isPrimary: boolean;
285021
+ position: number;
283884
285022
  createdAt: Date;
283885
285023
  updatedAt: Date;
283886
285024
  deletedAt: Date | null;
283887
- phone: string;
283888
- }[];
283889
- activityLogs?: {
285025
+ systemName: string;
285026
+ displayName: string;
285027
+ isDefault: boolean;
285028
+ isArchived: boolean;
285029
+ isRequired: boolean;
285030
+ isUnique: boolean;
285031
+ };
285032
+ textValue: string | null;
285033
+ booleanValue: boolean | null;
285034
+ numberValue: number | null;
285035
+ dateValue: Date | null;
285036
+ uploads: {
283890
285037
  id: string;
283891
- description: string;
285038
+ status: string | null;
283892
285039
  createdAt: Date;
283893
285040
  updatedAt: Date;
283894
285041
  deletedAt: Date | null;
283895
- entityId: string;
283896
- entityType: {
283897
- id: string;
283898
- description: string | null;
283899
- createdAt: Date;
283900
- updatedAt: Date;
283901
- deletedAt: Date | null;
283902
- entity: string;
283903
- };
283904
- }[] | undefined;
283905
- };
283906
- message: string;
283907
- status: string;
283908
- requestId: string;
283909
- }, {
283910
- data: {
283911
- name: string;
285042
+ fileName: string;
285043
+ fileKey: string;
285044
+ bucketName: string;
285045
+ fileSize: number;
285046
+ fileUrl: string | null;
285047
+ }[];
285048
+ }, {
283912
285049
  id: string;
283913
- channel: string | null;
283914
- address: string | null;
283915
285050
  createdAt: Date;
283916
285051
  updatedAt: Date;
283917
285052
  deletedAt: Date | null;
283918
- customFields: {
285053
+ attribute: {
285054
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283919
285055
  id: string;
285056
+ position: number;
283920
285057
  createdAt: Date;
283921
285058
  updatedAt: Date;
283922
285059
  deletedAt: Date | null;
283923
- attribute: {
283924
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283925
- id: string;
283926
- position: number;
283927
- createdAt: Date;
283928
- updatedAt: Date;
283929
- deletedAt: Date | null;
283930
- systemName: string;
283931
- displayName: string;
283932
- isDefault: boolean;
283933
- isArchived: boolean;
283934
- isRequired: boolean;
283935
- isUnique: boolean;
283936
- };
283937
- textValue: string | null;
283938
- booleanValue: boolean | null;
283939
- numberValue: number | null;
283940
- dateValue: Date | null;
283941
- uploads: {
283942
- id: string;
283943
- status: string | null;
283944
- createdAt: Date;
283945
- updatedAt: Date;
283946
- deletedAt: Date | null;
283947
- fileName: string;
283948
- fileKey: string;
283949
- bucketName: string;
283950
- fileSize: number;
283951
- fileUrl: string | null;
283952
- }[];
283953
- }[];
283954
- company: {
285060
+ systemName: string;
285061
+ displayName: string;
285062
+ isDefault: boolean;
285063
+ isArchived: boolean;
285064
+ isRequired: boolean;
285065
+ isUnique: boolean;
285066
+ };
285067
+ textValue: string | null;
285068
+ booleanValue: boolean | null;
285069
+ numberValue: number | null;
285070
+ dateValue: Date | null;
285071
+ uploads: {
283955
285072
  id: string;
285073
+ status: string | null;
283956
285074
  createdAt: Date;
283957
285075
  updatedAt: Date;
283958
285076
  deletedAt: Date | null;
283959
- name?: string | undefined;
283960
- address?: string | null | undefined;
283961
- phone?: string | null | undefined;
283962
- industry?: string | null | undefined;
283963
- } | null;
283964
- notes: string | null;
283965
- contactProfile: string | null;
283966
- socialProfileUrl: string | null;
283967
- tags: {
283968
- name: string;
285077
+ fileName: string;
285078
+ fileKey: string;
285079
+ bucketName: string;
285080
+ fileSize: number;
285081
+ fileUrl: string | null;
285082
+ }[];
285083
+ }>;
285084
+ }, "strip", import("zod").ZodTypeAny, {
285085
+ message: {
285086
+ id: string;
285087
+ createdAt: Date;
285088
+ updatedAt: Date;
285089
+ deletedAt: Date | null;
285090
+ attribute: {
285091
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283969
285092
  id: string;
285093
+ position: number;
283970
285094
  createdAt: Date;
283971
285095
  updatedAt: Date;
283972
285096
  deletedAt: Date | null;
283973
- }[];
283974
- contactEmails: {
285097
+ systemName: string;
285098
+ displayName: string;
285099
+ isDefault: boolean;
285100
+ isArchived: boolean;
285101
+ isRequired: boolean;
285102
+ isUnique: boolean;
285103
+ };
285104
+ textValue: string | null;
285105
+ booleanValue: boolean | null;
285106
+ numberValue: number | null;
285107
+ dateValue: Date | null;
285108
+ uploads: {
283975
285109
  id: string;
283976
- isPrimary: boolean;
283977
- email: string;
285110
+ status: string | null;
283978
285111
  createdAt: Date;
283979
285112
  updatedAt: Date;
283980
285113
  deletedAt: Date | null;
285114
+ fileName: string;
285115
+ fileKey: string;
285116
+ bucketName: string;
285117
+ fileSize: number;
285118
+ fileUrl: string | null;
283981
285119
  }[];
283982
- contactPhones: {
285120
+ };
285121
+ requestId: string;
285122
+ }, {
285123
+ message: {
285124
+ id: string;
285125
+ createdAt: Date;
285126
+ updatedAt: Date;
285127
+ deletedAt: Date | null;
285128
+ attribute: {
285129
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
283983
285130
  id: string;
283984
- isPrimary: boolean;
285131
+ position: number;
283985
285132
  createdAt: Date;
283986
285133
  updatedAt: Date;
283987
285134
  deletedAt: Date | null;
283988
- phone: string;
283989
- }[];
283990
- activityLogs?: {
285135
+ systemName: string;
285136
+ displayName: string;
285137
+ isDefault: boolean;
285138
+ isArchived: boolean;
285139
+ isRequired: boolean;
285140
+ isUnique: boolean;
285141
+ };
285142
+ textValue: string | null;
285143
+ booleanValue: boolean | null;
285144
+ numberValue: number | null;
285145
+ dateValue: Date | null;
285146
+ uploads: {
283991
285147
  id: string;
283992
- description: string;
285148
+ status: string | null;
283993
285149
  createdAt: Date;
283994
285150
  updatedAt: Date;
283995
285151
  deletedAt: Date | null;
283996
- entityId: string;
283997
- entityType: {
283998
- id: string;
283999
- description: string | null;
284000
- createdAt: Date;
284001
- updatedAt: Date;
284002
- deletedAt: Date | null;
284003
- entity: string;
284004
- };
284005
- }[] | undefined;
285152
+ fileName: string;
285153
+ fileKey: string;
285154
+ bucketName: string;
285155
+ fileSize: number;
285156
+ fileUrl: string | null;
285157
+ }[];
284006
285158
  };
284007
- message: string;
284008
- status: string;
284009
285159
  requestId: string;
284010
285160
  }>;
284011
285161
  400: import("zod").ZodObject<{
@@ -284063,7 +285213,7 @@ export declare const publicApiContract: {
284063
285213
  error?: any;
284064
285214
  }>;
284065
285215
  };
284066
- path: "api/v1/contacts/:id";
285216
+ path: "api/v1/contacts/attachments";
284067
285217
  };
284068
285218
  deleteContact: {
284069
285219
  body: null;