@kl1/contracts 1.0.71 → 1.0.72

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.
@@ -125,12 +125,890 @@ export declare const contactContract: {
125
125
  responses: {
126
126
  201: z.ZodObject<{
127
127
  requestId: z.ZodString;
128
- message: z.ZodString;
128
+ data: z.ZodObject<{
129
+ id: z.ZodString;
130
+ createdAt: z.ZodDate;
131
+ updatedAt: z.ZodDate;
132
+ deletedAt: z.ZodNullable<z.ZodDate>;
133
+ name: z.ZodString;
134
+ address: z.ZodNullable<z.ZodString>;
135
+ channel: z.ZodNullable<z.ZodString>;
136
+ notes: z.ZodNullable<z.ZodString>;
137
+ contactProfile: z.ZodNullable<z.ZodString>;
138
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
139
+ tags: z.ZodArray<z.ZodObject<{
140
+ id: z.ZodString;
141
+ createdAt: z.ZodDate;
142
+ updatedAt: z.ZodDate;
143
+ deletedAt: z.ZodNullable<z.ZodDate>;
144
+ name: z.ZodString;
145
+ }, "strip", z.ZodTypeAny, {
146
+ id: string;
147
+ name: string;
148
+ createdAt: Date;
149
+ updatedAt: Date;
150
+ deletedAt: Date | null;
151
+ }, {
152
+ id: string;
153
+ name: string;
154
+ createdAt: Date;
155
+ updatedAt: Date;
156
+ deletedAt: Date | null;
157
+ }>, "many">;
158
+ company: z.ZodNullable<z.ZodObject<Omit<{
159
+ id: z.ZodString;
160
+ createdAt: z.ZodDate;
161
+ updatedAt: z.ZodDate;
162
+ deletedAt: z.ZodNullable<z.ZodDate>;
163
+ name: z.ZodOptional<z.ZodString>;
164
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
168
+ id: z.ZodString;
169
+ createdAt: z.ZodDate;
170
+ updatedAt: z.ZodDate;
171
+ deletedAt: z.ZodNullable<z.ZodDate>;
172
+ textValue: z.ZodNullable<z.ZodString>;
173
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
174
+ numberValue: z.ZodNullable<z.ZodNumber>;
175
+ dateValue: z.ZodNullable<z.ZodDate>;
176
+ attribute: z.ZodObject<Omit<{
177
+ id: z.ZodString;
178
+ createdAt: z.ZodDate;
179
+ updatedAt: z.ZodDate;
180
+ deletedAt: z.ZodNullable<z.ZodDate>;
181
+ systemName: z.ZodString;
182
+ displayName: z.ZodString;
183
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
184
+ position: z.ZodNumber;
185
+ isDefault: z.ZodBoolean;
186
+ isArchived: z.ZodBoolean;
187
+ isRequired: z.ZodBoolean;
188
+ isUnique: z.ZodBoolean;
189
+ options: z.ZodArray<z.ZodObject<{
190
+ position: z.ZodNumber;
191
+ value: z.ZodString;
192
+ label: z.ZodString;
193
+ isDefault: z.ZodBoolean;
194
+ id: z.ZodString;
195
+ }, "strip", z.ZodTypeAny, {
196
+ id: string;
197
+ position: number;
198
+ value: string;
199
+ label: string;
200
+ isDefault: boolean;
201
+ }, {
202
+ id: string;
203
+ position: number;
204
+ value: string;
205
+ label: string;
206
+ isDefault: boolean;
207
+ }>, "many">;
208
+ group: z.ZodObject<{
209
+ id: z.ZodString;
210
+ createdAt: z.ZodDate;
211
+ updatedAt: z.ZodDate;
212
+ deletedAt: z.ZodNullable<z.ZodDate>;
213
+ systemName: z.ZodString;
214
+ displayName: z.ZodString;
215
+ }, "strip", z.ZodTypeAny, {
216
+ id: string;
217
+ createdAt: Date;
218
+ updatedAt: Date;
219
+ deletedAt: Date | null;
220
+ systemName: string;
221
+ displayName: string;
222
+ }, {
223
+ id: string;
224
+ createdAt: Date;
225
+ updatedAt: Date;
226
+ deletedAt: Date | null;
227
+ systemName: string;
228
+ displayName: string;
229
+ }>;
230
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
231
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
232
+ id: string;
233
+ position: number;
234
+ createdAt: Date;
235
+ updatedAt: Date;
236
+ deletedAt: Date | null;
237
+ systemName: string;
238
+ displayName: string;
239
+ isDefault: boolean;
240
+ isArchived: boolean;
241
+ isRequired: boolean;
242
+ isUnique: boolean;
243
+ }, {
244
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
245
+ id: string;
246
+ position: number;
247
+ createdAt: Date;
248
+ updatedAt: Date;
249
+ deletedAt: Date | null;
250
+ systemName: string;
251
+ displayName: string;
252
+ isDefault: boolean;
253
+ isArchived: boolean;
254
+ isRequired: boolean;
255
+ isUnique: boolean;
256
+ }>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ id: string;
259
+ createdAt: Date;
260
+ updatedAt: Date;
261
+ deletedAt: Date | null;
262
+ attribute: {
263
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
264
+ id: string;
265
+ position: number;
266
+ createdAt: Date;
267
+ updatedAt: Date;
268
+ deletedAt: Date | null;
269
+ systemName: string;
270
+ displayName: string;
271
+ isDefault: boolean;
272
+ isArchived: boolean;
273
+ isRequired: boolean;
274
+ isUnique: boolean;
275
+ };
276
+ textValue: string | null;
277
+ booleanValue: boolean | null;
278
+ numberValue: number | null;
279
+ dateValue: Date | null;
280
+ }, {
281
+ id: string;
282
+ createdAt: Date;
283
+ updatedAt: Date;
284
+ deletedAt: Date | null;
285
+ attribute: {
286
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
287
+ id: string;
288
+ position: number;
289
+ createdAt: Date;
290
+ updatedAt: Date;
291
+ deletedAt: Date | null;
292
+ systemName: string;
293
+ displayName: string;
294
+ isDefault: boolean;
295
+ isArchived: boolean;
296
+ isRequired: boolean;
297
+ isUnique: boolean;
298
+ };
299
+ textValue: string | null;
300
+ booleanValue: boolean | null;
301
+ numberValue: number | null;
302
+ dateValue: Date | null;
303
+ }>, "many">>;
304
+ }, "customFields">, "strip", z.ZodTypeAny, {
305
+ id: string;
306
+ createdAt: Date;
307
+ updatedAt: Date;
308
+ deletedAt: Date | null;
309
+ address?: string | null | undefined;
310
+ name?: string | undefined;
311
+ phone?: string | null | undefined;
312
+ industry?: string | null | undefined;
313
+ }, {
314
+ id: string;
315
+ createdAt: Date;
316
+ updatedAt: Date;
317
+ deletedAt: Date | null;
318
+ address?: string | null | undefined;
319
+ name?: string | undefined;
320
+ phone?: string | null | undefined;
321
+ industry?: string | null | undefined;
322
+ }>>;
323
+ customFields: z.ZodArray<z.ZodObject<{
324
+ id: z.ZodString;
325
+ createdAt: z.ZodDate;
326
+ updatedAt: z.ZodDate;
327
+ deletedAt: z.ZodNullable<z.ZodDate>;
328
+ textValue: z.ZodNullable<z.ZodString>;
329
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
330
+ numberValue: z.ZodNullable<z.ZodNumber>;
331
+ dateValue: z.ZodNullable<z.ZodDate>;
332
+ attribute: z.ZodObject<Omit<{
333
+ id: z.ZodString;
334
+ createdAt: z.ZodDate;
335
+ updatedAt: z.ZodDate;
336
+ deletedAt: z.ZodNullable<z.ZodDate>;
337
+ systemName: z.ZodString;
338
+ displayName: z.ZodString;
339
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
340
+ position: z.ZodNumber;
341
+ isDefault: z.ZodBoolean;
342
+ isArchived: z.ZodBoolean;
343
+ isRequired: z.ZodBoolean;
344
+ isUnique: z.ZodBoolean;
345
+ options: z.ZodArray<z.ZodObject<{
346
+ position: z.ZodNumber;
347
+ value: z.ZodString;
348
+ label: z.ZodString;
349
+ isDefault: z.ZodBoolean;
350
+ id: z.ZodString;
351
+ }, "strip", z.ZodTypeAny, {
352
+ id: string;
353
+ position: number;
354
+ value: string;
355
+ label: string;
356
+ isDefault: boolean;
357
+ }, {
358
+ id: string;
359
+ position: number;
360
+ value: string;
361
+ label: string;
362
+ isDefault: boolean;
363
+ }>, "many">;
364
+ group: z.ZodObject<{
365
+ id: z.ZodString;
366
+ createdAt: z.ZodDate;
367
+ updatedAt: z.ZodDate;
368
+ deletedAt: z.ZodNullable<z.ZodDate>;
369
+ systemName: z.ZodString;
370
+ displayName: z.ZodString;
371
+ }, "strip", z.ZodTypeAny, {
372
+ id: string;
373
+ createdAt: Date;
374
+ updatedAt: Date;
375
+ deletedAt: Date | null;
376
+ systemName: string;
377
+ displayName: string;
378
+ }, {
379
+ id: string;
380
+ createdAt: Date;
381
+ updatedAt: Date;
382
+ deletedAt: Date | null;
383
+ systemName: string;
384
+ displayName: string;
385
+ }>;
386
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
387
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
388
+ id: string;
389
+ position: number;
390
+ createdAt: Date;
391
+ updatedAt: Date;
392
+ deletedAt: Date | null;
393
+ systemName: string;
394
+ displayName: string;
395
+ isDefault: boolean;
396
+ isArchived: boolean;
397
+ isRequired: boolean;
398
+ isUnique: boolean;
399
+ }, {
400
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
401
+ id: string;
402
+ position: number;
403
+ createdAt: Date;
404
+ updatedAt: Date;
405
+ deletedAt: Date | null;
406
+ systemName: string;
407
+ displayName: string;
408
+ isDefault: boolean;
409
+ isArchived: boolean;
410
+ isRequired: boolean;
411
+ isUnique: boolean;
412
+ }>;
413
+ uploads: z.ZodArray<z.ZodObject<{
414
+ id: z.ZodString;
415
+ createdAt: z.ZodDate;
416
+ updatedAt: z.ZodDate;
417
+ deletedAt: z.ZodNullable<z.ZodDate>;
418
+ bucketName: z.ZodString;
419
+ fileName: z.ZodString;
420
+ fileSize: z.ZodNumber;
421
+ fileKey: z.ZodString;
422
+ fileUrl: z.ZodNullable<z.ZodString>;
423
+ status: z.ZodOptional<z.ZodString>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ id: string;
426
+ createdAt: Date;
427
+ updatedAt: Date;
428
+ deletedAt: Date | null;
429
+ fileName: string;
430
+ fileKey: string;
431
+ bucketName: string;
432
+ fileSize: number;
433
+ fileUrl: string | null;
434
+ status?: string | undefined;
435
+ }, {
436
+ id: string;
437
+ createdAt: Date;
438
+ updatedAt: Date;
439
+ deletedAt: Date | null;
440
+ fileName: string;
441
+ fileKey: string;
442
+ bucketName: string;
443
+ fileSize: number;
444
+ fileUrl: string | null;
445
+ status?: string | undefined;
446
+ }>, "many">;
447
+ }, "strip", z.ZodTypeAny, {
448
+ id: string;
449
+ createdAt: Date;
450
+ updatedAt: Date;
451
+ deletedAt: Date | null;
452
+ attribute: {
453
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
454
+ id: string;
455
+ position: number;
456
+ createdAt: Date;
457
+ updatedAt: Date;
458
+ deletedAt: Date | null;
459
+ systemName: string;
460
+ displayName: string;
461
+ isDefault: boolean;
462
+ isArchived: boolean;
463
+ isRequired: boolean;
464
+ isUnique: boolean;
465
+ };
466
+ textValue: string | null;
467
+ booleanValue: boolean | null;
468
+ numberValue: number | null;
469
+ dateValue: Date | null;
470
+ uploads: {
471
+ id: string;
472
+ createdAt: Date;
473
+ updatedAt: Date;
474
+ deletedAt: Date | null;
475
+ fileName: string;
476
+ fileKey: string;
477
+ bucketName: string;
478
+ fileSize: number;
479
+ fileUrl: string | null;
480
+ status?: string | undefined;
481
+ }[];
482
+ }, {
483
+ id: string;
484
+ createdAt: Date;
485
+ updatedAt: Date;
486
+ deletedAt: Date | null;
487
+ attribute: {
488
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
489
+ id: string;
490
+ position: number;
491
+ createdAt: Date;
492
+ updatedAt: Date;
493
+ deletedAt: Date | null;
494
+ systemName: string;
495
+ displayName: string;
496
+ isDefault: boolean;
497
+ isArchived: boolean;
498
+ isRequired: boolean;
499
+ isUnique: boolean;
500
+ };
501
+ textValue: string | null;
502
+ booleanValue: boolean | null;
503
+ numberValue: number | null;
504
+ dateValue: Date | null;
505
+ uploads: {
506
+ id: string;
507
+ createdAt: Date;
508
+ updatedAt: Date;
509
+ deletedAt: Date | null;
510
+ fileName: string;
511
+ fileKey: string;
512
+ bucketName: string;
513
+ fileSize: number;
514
+ fileUrl: string | null;
515
+ status?: string | undefined;
516
+ }[];
517
+ }>, "many">;
518
+ contactEmails: z.ZodArray<z.ZodObject<{
519
+ id: z.ZodString;
520
+ createdAt: z.ZodDate;
521
+ updatedAt: z.ZodDate;
522
+ deletedAt: z.ZodNullable<z.ZodDate>;
523
+ email: z.ZodString;
524
+ isPrimary: z.ZodBoolean;
525
+ }, "strip", z.ZodTypeAny, {
526
+ id: string;
527
+ isPrimary: boolean;
528
+ email: string;
529
+ createdAt: Date;
530
+ updatedAt: Date;
531
+ deletedAt: Date | null;
532
+ }, {
533
+ id: string;
534
+ isPrimary: boolean;
535
+ email: string;
536
+ createdAt: Date;
537
+ updatedAt: Date;
538
+ deletedAt: Date | null;
539
+ }>, "many">;
540
+ contactPhones: z.ZodArray<z.ZodObject<{
541
+ id: z.ZodString;
542
+ createdAt: z.ZodDate;
543
+ updatedAt: z.ZodDate;
544
+ deletedAt: z.ZodNullable<z.ZodDate>;
545
+ phone: z.ZodString;
546
+ isPrimary: z.ZodBoolean;
547
+ }, "strip", z.ZodTypeAny, {
548
+ id: string;
549
+ isPrimary: boolean;
550
+ createdAt: Date;
551
+ updatedAt: Date;
552
+ deletedAt: Date | null;
553
+ phone: string;
554
+ }, {
555
+ id: string;
556
+ isPrimary: boolean;
557
+ createdAt: Date;
558
+ updatedAt: Date;
559
+ deletedAt: Date | null;
560
+ phone: string;
561
+ }>, "many">;
562
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
563
+ id: z.ZodString;
564
+ createdAt: z.ZodDate;
565
+ updatedAt: z.ZodDate;
566
+ deletedAt: z.ZodNullable<z.ZodDate>;
567
+ entityId: z.ZodString;
568
+ description: z.ZodString;
569
+ entityType: z.ZodObject<{
570
+ id: z.ZodString;
571
+ createdAt: z.ZodDate;
572
+ updatedAt: z.ZodDate;
573
+ deletedAt: z.ZodNullable<z.ZodDate>;
574
+ entity: z.ZodString;
575
+ description: z.ZodNullable<z.ZodString>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ id: string;
578
+ description: string | null;
579
+ createdAt: Date;
580
+ updatedAt: Date;
581
+ deletedAt: Date | null;
582
+ entity: string;
583
+ }, {
584
+ id: string;
585
+ description: string | null;
586
+ createdAt: Date;
587
+ updatedAt: Date;
588
+ deletedAt: Date | null;
589
+ entity: string;
590
+ }>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ id: string;
593
+ description: string;
594
+ createdAt: Date;
595
+ updatedAt: Date;
596
+ deletedAt: Date | null;
597
+ entityId: string;
598
+ entityType: {
599
+ id: string;
600
+ description: string | null;
601
+ createdAt: Date;
602
+ updatedAt: Date;
603
+ deletedAt: Date | null;
604
+ entity: string;
605
+ };
606
+ }, {
607
+ id: string;
608
+ description: string;
609
+ createdAt: Date;
610
+ updatedAt: Date;
611
+ deletedAt: Date | null;
612
+ entityId: string;
613
+ entityType: {
614
+ id: string;
615
+ description: string | null;
616
+ createdAt: Date;
617
+ updatedAt: Date;
618
+ deletedAt: Date | null;
619
+ entity: string;
620
+ };
621
+ }>, "many">>;
622
+ }, "strip", z.ZodTypeAny, {
623
+ id: string;
624
+ channel: string | null;
625
+ address: string | null;
626
+ name: string;
627
+ createdAt: Date;
628
+ updatedAt: Date;
629
+ deletedAt: Date | null;
630
+ customFields: {
631
+ id: string;
632
+ createdAt: Date;
633
+ updatedAt: Date;
634
+ deletedAt: Date | null;
635
+ attribute: {
636
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
637
+ id: string;
638
+ position: number;
639
+ createdAt: Date;
640
+ updatedAt: Date;
641
+ deletedAt: Date | null;
642
+ systemName: string;
643
+ displayName: string;
644
+ isDefault: boolean;
645
+ isArchived: boolean;
646
+ isRequired: boolean;
647
+ isUnique: boolean;
648
+ };
649
+ textValue: string | null;
650
+ booleanValue: boolean | null;
651
+ numberValue: number | null;
652
+ dateValue: Date | null;
653
+ uploads: {
654
+ id: string;
655
+ createdAt: Date;
656
+ updatedAt: Date;
657
+ deletedAt: Date | null;
658
+ fileName: string;
659
+ fileKey: string;
660
+ bucketName: string;
661
+ fileSize: number;
662
+ fileUrl: string | null;
663
+ status?: string | undefined;
664
+ }[];
665
+ }[];
666
+ company: {
667
+ id: string;
668
+ createdAt: Date;
669
+ updatedAt: Date;
670
+ deletedAt: Date | null;
671
+ address?: string | null | undefined;
672
+ name?: string | undefined;
673
+ phone?: string | null | undefined;
674
+ industry?: string | null | undefined;
675
+ } | null;
676
+ notes: string | null;
677
+ contactProfile: string | null;
678
+ socialProfileUrl: string | null;
679
+ tags: {
680
+ id: string;
681
+ name: string;
682
+ createdAt: Date;
683
+ updatedAt: Date;
684
+ deletedAt: Date | null;
685
+ }[];
686
+ contactEmails: {
687
+ id: string;
688
+ isPrimary: boolean;
689
+ email: string;
690
+ createdAt: Date;
691
+ updatedAt: Date;
692
+ deletedAt: Date | null;
693
+ }[];
694
+ contactPhones: {
695
+ id: string;
696
+ isPrimary: boolean;
697
+ createdAt: Date;
698
+ updatedAt: Date;
699
+ deletedAt: Date | null;
700
+ phone: string;
701
+ }[];
702
+ activityLogs?: {
703
+ id: string;
704
+ description: string;
705
+ createdAt: Date;
706
+ updatedAt: Date;
707
+ deletedAt: Date | null;
708
+ entityId: string;
709
+ entityType: {
710
+ id: string;
711
+ description: string | null;
712
+ createdAt: Date;
713
+ updatedAt: Date;
714
+ deletedAt: Date | null;
715
+ entity: string;
716
+ };
717
+ }[] | undefined;
718
+ }, {
719
+ id: string;
720
+ channel: string | null;
721
+ address: string | null;
722
+ name: string;
723
+ createdAt: Date;
724
+ updatedAt: Date;
725
+ deletedAt: Date | null;
726
+ customFields: {
727
+ id: string;
728
+ createdAt: Date;
729
+ updatedAt: Date;
730
+ deletedAt: Date | null;
731
+ attribute: {
732
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
733
+ id: string;
734
+ position: number;
735
+ createdAt: Date;
736
+ updatedAt: Date;
737
+ deletedAt: Date | null;
738
+ systemName: string;
739
+ displayName: string;
740
+ isDefault: boolean;
741
+ isArchived: boolean;
742
+ isRequired: boolean;
743
+ isUnique: boolean;
744
+ };
745
+ textValue: string | null;
746
+ booleanValue: boolean | null;
747
+ numberValue: number | null;
748
+ dateValue: Date | null;
749
+ uploads: {
750
+ id: string;
751
+ createdAt: Date;
752
+ updatedAt: Date;
753
+ deletedAt: Date | null;
754
+ fileName: string;
755
+ fileKey: string;
756
+ bucketName: string;
757
+ fileSize: number;
758
+ fileUrl: string | null;
759
+ status?: string | undefined;
760
+ }[];
761
+ }[];
762
+ company: {
763
+ id: string;
764
+ createdAt: Date;
765
+ updatedAt: Date;
766
+ deletedAt: Date | null;
767
+ address?: string | null | undefined;
768
+ name?: string | undefined;
769
+ phone?: string | null | undefined;
770
+ industry?: string | null | undefined;
771
+ } | null;
772
+ notes: string | null;
773
+ contactProfile: string | null;
774
+ socialProfileUrl: string | null;
775
+ tags: {
776
+ id: string;
777
+ name: string;
778
+ createdAt: Date;
779
+ updatedAt: Date;
780
+ deletedAt: Date | null;
781
+ }[];
782
+ contactEmails: {
783
+ id: string;
784
+ isPrimary: boolean;
785
+ email: string;
786
+ createdAt: Date;
787
+ updatedAt: Date;
788
+ deletedAt: Date | null;
789
+ }[];
790
+ contactPhones: {
791
+ id: string;
792
+ isPrimary: boolean;
793
+ createdAt: Date;
794
+ updatedAt: Date;
795
+ deletedAt: Date | null;
796
+ phone: string;
797
+ }[];
798
+ activityLogs?: {
799
+ id: string;
800
+ description: string;
801
+ createdAt: Date;
802
+ updatedAt: Date;
803
+ deletedAt: Date | null;
804
+ entityId: string;
805
+ entityType: {
806
+ id: string;
807
+ description: string | null;
808
+ createdAt: Date;
809
+ updatedAt: Date;
810
+ deletedAt: Date | null;
811
+ entity: string;
812
+ };
813
+ }[] | undefined;
814
+ }>;
129
815
  }, "strip", z.ZodTypeAny, {
130
- message: string;
816
+ data: {
817
+ id: string;
818
+ channel: string | null;
819
+ address: string | null;
820
+ name: string;
821
+ createdAt: Date;
822
+ updatedAt: Date;
823
+ deletedAt: Date | null;
824
+ customFields: {
825
+ id: string;
826
+ createdAt: Date;
827
+ updatedAt: Date;
828
+ deletedAt: Date | null;
829
+ attribute: {
830
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
831
+ id: string;
832
+ position: number;
833
+ createdAt: Date;
834
+ updatedAt: Date;
835
+ deletedAt: Date | null;
836
+ systemName: string;
837
+ displayName: string;
838
+ isDefault: boolean;
839
+ isArchived: boolean;
840
+ isRequired: boolean;
841
+ isUnique: boolean;
842
+ };
843
+ textValue: string | null;
844
+ booleanValue: boolean | null;
845
+ numberValue: number | null;
846
+ dateValue: Date | null;
847
+ uploads: {
848
+ id: string;
849
+ createdAt: Date;
850
+ updatedAt: Date;
851
+ deletedAt: Date | null;
852
+ fileName: string;
853
+ fileKey: string;
854
+ bucketName: string;
855
+ fileSize: number;
856
+ fileUrl: string | null;
857
+ status?: string | undefined;
858
+ }[];
859
+ }[];
860
+ company: {
861
+ id: string;
862
+ createdAt: Date;
863
+ updatedAt: Date;
864
+ deletedAt: Date | null;
865
+ address?: string | null | undefined;
866
+ name?: string | undefined;
867
+ phone?: string | null | undefined;
868
+ industry?: string | null | undefined;
869
+ } | null;
870
+ notes: string | null;
871
+ contactProfile: string | null;
872
+ socialProfileUrl: string | null;
873
+ tags: {
874
+ id: string;
875
+ name: string;
876
+ createdAt: Date;
877
+ updatedAt: Date;
878
+ deletedAt: Date | null;
879
+ }[];
880
+ contactEmails: {
881
+ id: string;
882
+ isPrimary: boolean;
883
+ email: string;
884
+ createdAt: Date;
885
+ updatedAt: Date;
886
+ deletedAt: Date | null;
887
+ }[];
888
+ contactPhones: {
889
+ id: string;
890
+ isPrimary: boolean;
891
+ createdAt: Date;
892
+ updatedAt: Date;
893
+ deletedAt: Date | null;
894
+ phone: string;
895
+ }[];
896
+ activityLogs?: {
897
+ id: string;
898
+ description: string;
899
+ createdAt: Date;
900
+ updatedAt: Date;
901
+ deletedAt: Date | null;
902
+ entityId: string;
903
+ entityType: {
904
+ id: string;
905
+ description: string | null;
906
+ createdAt: Date;
907
+ updatedAt: Date;
908
+ deletedAt: Date | null;
909
+ entity: string;
910
+ };
911
+ }[] | undefined;
912
+ };
131
913
  requestId: string;
132
914
  }, {
133
- message: string;
915
+ data: {
916
+ id: string;
917
+ channel: string | null;
918
+ address: string | null;
919
+ name: string;
920
+ createdAt: Date;
921
+ updatedAt: Date;
922
+ deletedAt: Date | null;
923
+ customFields: {
924
+ id: string;
925
+ createdAt: Date;
926
+ updatedAt: Date;
927
+ deletedAt: Date | null;
928
+ attribute: {
929
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
930
+ id: string;
931
+ position: number;
932
+ createdAt: Date;
933
+ updatedAt: Date;
934
+ deletedAt: Date | null;
935
+ systemName: string;
936
+ displayName: string;
937
+ isDefault: boolean;
938
+ isArchived: boolean;
939
+ isRequired: boolean;
940
+ isUnique: boolean;
941
+ };
942
+ textValue: string | null;
943
+ booleanValue: boolean | null;
944
+ numberValue: number | null;
945
+ dateValue: Date | null;
946
+ uploads: {
947
+ id: string;
948
+ createdAt: Date;
949
+ updatedAt: Date;
950
+ deletedAt: Date | null;
951
+ fileName: string;
952
+ fileKey: string;
953
+ bucketName: string;
954
+ fileSize: number;
955
+ fileUrl: string | null;
956
+ status?: string | undefined;
957
+ }[];
958
+ }[];
959
+ company: {
960
+ id: string;
961
+ createdAt: Date;
962
+ updatedAt: Date;
963
+ deletedAt: Date | null;
964
+ address?: string | null | undefined;
965
+ name?: string | undefined;
966
+ phone?: string | null | undefined;
967
+ industry?: string | null | undefined;
968
+ } | null;
969
+ notes: string | null;
970
+ contactProfile: string | null;
971
+ socialProfileUrl: string | null;
972
+ tags: {
973
+ id: string;
974
+ name: string;
975
+ createdAt: Date;
976
+ updatedAt: Date;
977
+ deletedAt: Date | null;
978
+ }[];
979
+ contactEmails: {
980
+ id: string;
981
+ isPrimary: boolean;
982
+ email: string;
983
+ createdAt: Date;
984
+ updatedAt: Date;
985
+ deletedAt: Date | null;
986
+ }[];
987
+ contactPhones: {
988
+ id: string;
989
+ isPrimary: boolean;
990
+ createdAt: Date;
991
+ updatedAt: Date;
992
+ deletedAt: Date | null;
993
+ phone: string;
994
+ }[];
995
+ activityLogs?: {
996
+ id: string;
997
+ description: string;
998
+ createdAt: Date;
999
+ updatedAt: Date;
1000
+ deletedAt: Date | null;
1001
+ entityId: string;
1002
+ entityType: {
1003
+ id: string;
1004
+ description: string | null;
1005
+ createdAt: Date;
1006
+ updatedAt: Date;
1007
+ deletedAt: Date | null;
1008
+ entity: string;
1009
+ };
1010
+ }[] | undefined;
1011
+ };
134
1012
  requestId: string;
135
1013
  }>;
136
1014
  400: z.ZodObject<{