@kl1/contracts 1.1.5-uat → 1.1.16-uat

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.
@@ -0,0 +1,1822 @@
1
+ import z from 'zod';
2
+ export declare const ContactContractValidationSchema: {
3
+ create: {
4
+ request: z.ZodObject<{
5
+ name: z.ZodString;
6
+ email: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ email: z.ZodString;
8
+ isPrimary: z.ZodBoolean;
9
+ }, "strip", z.ZodTypeAny, {
10
+ isPrimary: boolean;
11
+ email: string;
12
+ }, {
13
+ isPrimary: boolean;
14
+ email: string;
15
+ }>, "many">>;
16
+ channel: z.ZodOptional<z.ZodString>;
17
+ address: z.ZodOptional<z.ZodString>;
18
+ phone: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
+ phone: z.ZodString;
20
+ isPrimary: z.ZodBoolean;
21
+ }, "strip", z.ZodTypeAny, {
22
+ isPrimary: boolean;
23
+ phone: string;
24
+ }, {
25
+ isPrimary: boolean;
26
+ phone: string;
27
+ }>, "many">>;
28
+ notes: z.ZodOptional<z.ZodString>;
29
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
+ company: z.ZodOptional<z.ZodString>;
31
+ customFields: z.ZodRecord<z.ZodString, z.ZodString>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ name: string;
34
+ customFields: Record<string, string>;
35
+ email?: {
36
+ isPrimary: boolean;
37
+ email: string;
38
+ }[] | undefined;
39
+ channel?: string | undefined;
40
+ address?: string | undefined;
41
+ phone?: {
42
+ isPrimary: boolean;
43
+ phone: string;
44
+ }[] | undefined;
45
+ notes?: string | undefined;
46
+ tags?: string[] | undefined;
47
+ company?: string | undefined;
48
+ }, {
49
+ name: string;
50
+ customFields: Record<string, string>;
51
+ email?: {
52
+ isPrimary: boolean;
53
+ email: string;
54
+ }[] | undefined;
55
+ channel?: string | undefined;
56
+ address?: string | undefined;
57
+ phone?: {
58
+ isPrimary: boolean;
59
+ phone: string;
60
+ }[] | undefined;
61
+ notes?: string | undefined;
62
+ tags?: string[] | undefined;
63
+ company?: string | undefined;
64
+ }>;
65
+ response: z.ZodObject<{
66
+ id: z.ZodString;
67
+ createdAt: z.ZodDate;
68
+ updatedAt: z.ZodDate;
69
+ deletedAt: z.ZodNullable<z.ZodDate>;
70
+ name: z.ZodString;
71
+ address: z.ZodNullable<z.ZodString>;
72
+ channel: z.ZodNullable<z.ZodString>;
73
+ notes: z.ZodNullable<z.ZodString>;
74
+ contactProfile: z.ZodNullable<z.ZodString>;
75
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
76
+ tags: z.ZodArray<z.ZodObject<{
77
+ id: z.ZodString;
78
+ createdAt: z.ZodDate;
79
+ updatedAt: z.ZodDate;
80
+ deletedAt: z.ZodNullable<z.ZodDate>;
81
+ name: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ id: string;
84
+ name: string;
85
+ createdAt: Date;
86
+ updatedAt: Date;
87
+ deletedAt: Date | null;
88
+ }, {
89
+ id: string;
90
+ name: string;
91
+ createdAt: Date;
92
+ updatedAt: Date;
93
+ deletedAt: Date | null;
94
+ }>, "many">;
95
+ company: z.ZodNullable<z.ZodObject<Omit<{
96
+ id: z.ZodString;
97
+ createdAt: z.ZodDate;
98
+ updatedAt: z.ZodDate;
99
+ deletedAt: z.ZodNullable<z.ZodDate>;
100
+ name: z.ZodOptional<z.ZodString>;
101
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ id: z.ZodString;
106
+ createdAt: z.ZodDate;
107
+ updatedAt: z.ZodDate;
108
+ deletedAt: z.ZodNullable<z.ZodDate>;
109
+ textValue: z.ZodNullable<z.ZodString>;
110
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
111
+ numberValue: z.ZodNullable<z.ZodNumber>;
112
+ dateValue: z.ZodNullable<z.ZodDate>;
113
+ attribute: z.ZodObject<Omit<{
114
+ id: z.ZodString;
115
+ createdAt: z.ZodDate;
116
+ updatedAt: z.ZodDate;
117
+ deletedAt: z.ZodNullable<z.ZodDate>;
118
+ systemName: z.ZodString;
119
+ displayName: z.ZodString;
120
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
121
+ position: z.ZodNumber;
122
+ isDefault: z.ZodBoolean;
123
+ isArchived: z.ZodBoolean;
124
+ isRequired: z.ZodBoolean;
125
+ isUnique: z.ZodBoolean;
126
+ options: z.ZodArray<z.ZodObject<{
127
+ position: z.ZodNumber;
128
+ value: z.ZodString;
129
+ label: z.ZodString;
130
+ isDefault: z.ZodBoolean;
131
+ id: z.ZodString;
132
+ }, "strip", z.ZodTypeAny, {
133
+ id: string;
134
+ position: number;
135
+ value: string;
136
+ label: string;
137
+ isDefault: boolean;
138
+ }, {
139
+ id: string;
140
+ position: number;
141
+ value: string;
142
+ label: string;
143
+ isDefault: boolean;
144
+ }>, "many">;
145
+ group: z.ZodObject<{
146
+ id: z.ZodString;
147
+ createdAt: z.ZodDate;
148
+ updatedAt: z.ZodDate;
149
+ deletedAt: z.ZodNullable<z.ZodDate>;
150
+ systemName: z.ZodString;
151
+ displayName: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ id: string;
154
+ createdAt: Date;
155
+ updatedAt: Date;
156
+ deletedAt: Date | null;
157
+ systemName: string;
158
+ displayName: string;
159
+ }, {
160
+ id: string;
161
+ createdAt: Date;
162
+ updatedAt: Date;
163
+ deletedAt: Date | null;
164
+ systemName: string;
165
+ displayName: string;
166
+ }>;
167
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
168
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
169
+ id: string;
170
+ position: number;
171
+ createdAt: Date;
172
+ updatedAt: Date;
173
+ deletedAt: Date | null;
174
+ systemName: string;
175
+ displayName: string;
176
+ isDefault: boolean;
177
+ isArchived: boolean;
178
+ isRequired: boolean;
179
+ isUnique: boolean;
180
+ }, {
181
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
182
+ id: string;
183
+ position: number;
184
+ createdAt: Date;
185
+ updatedAt: Date;
186
+ deletedAt: Date | null;
187
+ systemName: string;
188
+ displayName: string;
189
+ isDefault: boolean;
190
+ isArchived: boolean;
191
+ isRequired: boolean;
192
+ isUnique: boolean;
193
+ }>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ id: string;
196
+ createdAt: Date;
197
+ updatedAt: Date;
198
+ deletedAt: Date | null;
199
+ attribute: {
200
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
201
+ id: string;
202
+ position: number;
203
+ createdAt: Date;
204
+ updatedAt: Date;
205
+ deletedAt: Date | null;
206
+ systemName: string;
207
+ displayName: string;
208
+ isDefault: boolean;
209
+ isArchived: boolean;
210
+ isRequired: boolean;
211
+ isUnique: boolean;
212
+ };
213
+ textValue: string | null;
214
+ booleanValue: boolean | null;
215
+ numberValue: number | null;
216
+ dateValue: Date | null;
217
+ }, {
218
+ id: string;
219
+ createdAt: Date;
220
+ updatedAt: Date;
221
+ deletedAt: Date | null;
222
+ attribute: {
223
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
224
+ id: string;
225
+ position: number;
226
+ createdAt: Date;
227
+ updatedAt: Date;
228
+ deletedAt: Date | null;
229
+ systemName: string;
230
+ displayName: string;
231
+ isDefault: boolean;
232
+ isArchived: boolean;
233
+ isRequired: boolean;
234
+ isUnique: boolean;
235
+ };
236
+ textValue: string | null;
237
+ booleanValue: boolean | null;
238
+ numberValue: number | null;
239
+ dateValue: Date | null;
240
+ }>, "many">>;
241
+ }, "customFields">, "strip", z.ZodTypeAny, {
242
+ id: string;
243
+ createdAt: Date;
244
+ updatedAt: Date;
245
+ deletedAt: Date | null;
246
+ address?: string | null | undefined;
247
+ name?: string | undefined;
248
+ phone?: string | null | undefined;
249
+ industry?: string | null | undefined;
250
+ }, {
251
+ id: string;
252
+ createdAt: Date;
253
+ updatedAt: Date;
254
+ deletedAt: Date | null;
255
+ address?: string | null | undefined;
256
+ name?: string | undefined;
257
+ phone?: string | null | undefined;
258
+ industry?: string | null | undefined;
259
+ }>>;
260
+ customFields: z.ZodArray<z.ZodObject<{
261
+ id: z.ZodString;
262
+ createdAt: z.ZodDate;
263
+ updatedAt: z.ZodDate;
264
+ deletedAt: z.ZodNullable<z.ZodDate>;
265
+ textValue: z.ZodNullable<z.ZodString>;
266
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
267
+ numberValue: z.ZodNullable<z.ZodNumber>;
268
+ dateValue: z.ZodNullable<z.ZodDate>;
269
+ attribute: z.ZodObject<Omit<{
270
+ id: z.ZodString;
271
+ createdAt: z.ZodDate;
272
+ updatedAt: z.ZodDate;
273
+ deletedAt: z.ZodNullable<z.ZodDate>;
274
+ systemName: z.ZodString;
275
+ displayName: z.ZodString;
276
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
277
+ position: z.ZodNumber;
278
+ isDefault: z.ZodBoolean;
279
+ isArchived: z.ZodBoolean;
280
+ isRequired: z.ZodBoolean;
281
+ isUnique: z.ZodBoolean;
282
+ options: z.ZodArray<z.ZodObject<{
283
+ position: z.ZodNumber;
284
+ value: z.ZodString;
285
+ label: z.ZodString;
286
+ isDefault: z.ZodBoolean;
287
+ id: z.ZodString;
288
+ }, "strip", z.ZodTypeAny, {
289
+ id: string;
290
+ position: number;
291
+ value: string;
292
+ label: string;
293
+ isDefault: boolean;
294
+ }, {
295
+ id: string;
296
+ position: number;
297
+ value: string;
298
+ label: string;
299
+ isDefault: boolean;
300
+ }>, "many">;
301
+ group: z.ZodObject<{
302
+ id: z.ZodString;
303
+ createdAt: z.ZodDate;
304
+ updatedAt: z.ZodDate;
305
+ deletedAt: z.ZodNullable<z.ZodDate>;
306
+ systemName: z.ZodString;
307
+ displayName: z.ZodString;
308
+ }, "strip", z.ZodTypeAny, {
309
+ id: string;
310
+ createdAt: Date;
311
+ updatedAt: Date;
312
+ deletedAt: Date | null;
313
+ systemName: string;
314
+ displayName: string;
315
+ }, {
316
+ id: string;
317
+ createdAt: Date;
318
+ updatedAt: Date;
319
+ deletedAt: Date | null;
320
+ systemName: string;
321
+ displayName: string;
322
+ }>;
323
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
324
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
325
+ id: string;
326
+ position: number;
327
+ createdAt: Date;
328
+ updatedAt: Date;
329
+ deletedAt: Date | null;
330
+ systemName: string;
331
+ displayName: string;
332
+ isDefault: boolean;
333
+ isArchived: boolean;
334
+ isRequired: boolean;
335
+ isUnique: boolean;
336
+ }, {
337
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
338
+ id: string;
339
+ position: number;
340
+ createdAt: Date;
341
+ updatedAt: Date;
342
+ deletedAt: Date | null;
343
+ systemName: string;
344
+ displayName: string;
345
+ isDefault: boolean;
346
+ isArchived: boolean;
347
+ isRequired: boolean;
348
+ isUnique: boolean;
349
+ }>;
350
+ uploads: z.ZodArray<z.ZodObject<{
351
+ id: z.ZodString;
352
+ createdAt: z.ZodDate;
353
+ updatedAt: z.ZodDate;
354
+ deletedAt: z.ZodNullable<z.ZodDate>;
355
+ bucketName: z.ZodString;
356
+ fileName: z.ZodString;
357
+ fileSize: z.ZodNumber;
358
+ fileKey: z.ZodString;
359
+ fileUrl: z.ZodNullable<z.ZodString>;
360
+ status: z.ZodOptional<z.ZodString>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ id: string;
363
+ createdAt: Date;
364
+ updatedAt: Date;
365
+ deletedAt: Date | null;
366
+ fileName: string;
367
+ fileKey: string;
368
+ bucketName: string;
369
+ fileSize: number;
370
+ fileUrl: string | null;
371
+ status?: string | undefined;
372
+ }, {
373
+ id: string;
374
+ createdAt: Date;
375
+ updatedAt: Date;
376
+ deletedAt: Date | null;
377
+ fileName: string;
378
+ fileKey: string;
379
+ bucketName: string;
380
+ fileSize: number;
381
+ fileUrl: string | null;
382
+ status?: string | undefined;
383
+ }>, "many">;
384
+ }, "strip", z.ZodTypeAny, {
385
+ id: string;
386
+ createdAt: Date;
387
+ updatedAt: Date;
388
+ deletedAt: Date | null;
389
+ attribute: {
390
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
391
+ id: string;
392
+ position: number;
393
+ createdAt: Date;
394
+ updatedAt: Date;
395
+ deletedAt: Date | null;
396
+ systemName: string;
397
+ displayName: string;
398
+ isDefault: boolean;
399
+ isArchived: boolean;
400
+ isRequired: boolean;
401
+ isUnique: boolean;
402
+ };
403
+ textValue: string | null;
404
+ booleanValue: boolean | null;
405
+ numberValue: number | null;
406
+ dateValue: Date | null;
407
+ uploads: {
408
+ id: string;
409
+ createdAt: Date;
410
+ updatedAt: Date;
411
+ deletedAt: Date | null;
412
+ fileName: string;
413
+ fileKey: string;
414
+ bucketName: string;
415
+ fileSize: number;
416
+ fileUrl: string | null;
417
+ status?: string | undefined;
418
+ }[];
419
+ }, {
420
+ id: string;
421
+ createdAt: Date;
422
+ updatedAt: Date;
423
+ deletedAt: Date | null;
424
+ attribute: {
425
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
426
+ id: string;
427
+ position: number;
428
+ createdAt: Date;
429
+ updatedAt: Date;
430
+ deletedAt: Date | null;
431
+ systemName: string;
432
+ displayName: string;
433
+ isDefault: boolean;
434
+ isArchived: boolean;
435
+ isRequired: boolean;
436
+ isUnique: boolean;
437
+ };
438
+ textValue: string | null;
439
+ booleanValue: boolean | null;
440
+ numberValue: number | null;
441
+ dateValue: Date | null;
442
+ uploads: {
443
+ id: string;
444
+ createdAt: Date;
445
+ updatedAt: Date;
446
+ deletedAt: Date | null;
447
+ fileName: string;
448
+ fileKey: string;
449
+ bucketName: string;
450
+ fileSize: number;
451
+ fileUrl: string | null;
452
+ status?: string | undefined;
453
+ }[];
454
+ }>, "many">;
455
+ contactEmails: z.ZodArray<z.ZodObject<{
456
+ id: z.ZodString;
457
+ createdAt: z.ZodDate;
458
+ updatedAt: z.ZodDate;
459
+ deletedAt: z.ZodNullable<z.ZodDate>;
460
+ email: z.ZodString;
461
+ isPrimary: z.ZodBoolean;
462
+ }, "strip", z.ZodTypeAny, {
463
+ id: string;
464
+ isPrimary: boolean;
465
+ email: string;
466
+ createdAt: Date;
467
+ updatedAt: Date;
468
+ deletedAt: Date | null;
469
+ }, {
470
+ id: string;
471
+ isPrimary: boolean;
472
+ email: string;
473
+ createdAt: Date;
474
+ updatedAt: Date;
475
+ deletedAt: Date | null;
476
+ }>, "many">;
477
+ contactPhones: z.ZodArray<z.ZodObject<{
478
+ id: z.ZodString;
479
+ createdAt: z.ZodDate;
480
+ updatedAt: z.ZodDate;
481
+ deletedAt: z.ZodNullable<z.ZodDate>;
482
+ phone: z.ZodString;
483
+ isPrimary: z.ZodBoolean;
484
+ }, "strip", z.ZodTypeAny, {
485
+ id: string;
486
+ isPrimary: boolean;
487
+ createdAt: Date;
488
+ updatedAt: Date;
489
+ deletedAt: Date | null;
490
+ phone: string;
491
+ }, {
492
+ id: string;
493
+ isPrimary: boolean;
494
+ createdAt: Date;
495
+ updatedAt: Date;
496
+ deletedAt: Date | null;
497
+ phone: string;
498
+ }>, "many">;
499
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
500
+ id: z.ZodString;
501
+ createdAt: z.ZodDate;
502
+ updatedAt: z.ZodDate;
503
+ deletedAt: z.ZodNullable<z.ZodDate>;
504
+ entityId: z.ZodString;
505
+ description: z.ZodString;
506
+ entityType: z.ZodObject<{
507
+ id: z.ZodString;
508
+ createdAt: z.ZodDate;
509
+ updatedAt: z.ZodDate;
510
+ deletedAt: z.ZodNullable<z.ZodDate>;
511
+ entity: z.ZodString;
512
+ description: z.ZodNullable<z.ZodString>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ id: string;
515
+ description: string | null;
516
+ createdAt: Date;
517
+ updatedAt: Date;
518
+ deletedAt: Date | null;
519
+ entity: string;
520
+ }, {
521
+ id: string;
522
+ description: string | null;
523
+ createdAt: Date;
524
+ updatedAt: Date;
525
+ deletedAt: Date | null;
526
+ entity: string;
527
+ }>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ id: string;
530
+ description: string;
531
+ createdAt: Date;
532
+ updatedAt: Date;
533
+ deletedAt: Date | null;
534
+ entityId: string;
535
+ entityType: {
536
+ id: string;
537
+ description: string | null;
538
+ createdAt: Date;
539
+ updatedAt: Date;
540
+ deletedAt: Date | null;
541
+ entity: string;
542
+ };
543
+ }, {
544
+ id: string;
545
+ description: string;
546
+ createdAt: Date;
547
+ updatedAt: Date;
548
+ deletedAt: Date | null;
549
+ entityId: string;
550
+ entityType: {
551
+ id: string;
552
+ description: string | null;
553
+ createdAt: Date;
554
+ updatedAt: Date;
555
+ deletedAt: Date | null;
556
+ entity: string;
557
+ };
558
+ }>, "many">>;
559
+ }, "strip", z.ZodTypeAny, {
560
+ id: string;
561
+ channel: string | null;
562
+ address: string | null;
563
+ name: string;
564
+ createdAt: Date;
565
+ updatedAt: Date;
566
+ deletedAt: Date | null;
567
+ customFields: {
568
+ id: string;
569
+ createdAt: Date;
570
+ updatedAt: Date;
571
+ deletedAt: Date | null;
572
+ attribute: {
573
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
574
+ id: string;
575
+ position: number;
576
+ createdAt: Date;
577
+ updatedAt: Date;
578
+ deletedAt: Date | null;
579
+ systemName: string;
580
+ displayName: string;
581
+ isDefault: boolean;
582
+ isArchived: boolean;
583
+ isRequired: boolean;
584
+ isUnique: boolean;
585
+ };
586
+ textValue: string | null;
587
+ booleanValue: boolean | null;
588
+ numberValue: number | null;
589
+ dateValue: Date | null;
590
+ uploads: {
591
+ id: string;
592
+ createdAt: Date;
593
+ updatedAt: Date;
594
+ deletedAt: Date | null;
595
+ fileName: string;
596
+ fileKey: string;
597
+ bucketName: string;
598
+ fileSize: number;
599
+ fileUrl: string | null;
600
+ status?: string | undefined;
601
+ }[];
602
+ }[];
603
+ company: {
604
+ id: string;
605
+ createdAt: Date;
606
+ updatedAt: Date;
607
+ deletedAt: Date | null;
608
+ address?: string | null | undefined;
609
+ name?: string | undefined;
610
+ phone?: string | null | undefined;
611
+ industry?: string | null | undefined;
612
+ } | null;
613
+ notes: string | null;
614
+ contactProfile: string | null;
615
+ socialProfileUrl: string | null;
616
+ tags: {
617
+ id: string;
618
+ name: string;
619
+ createdAt: Date;
620
+ updatedAt: Date;
621
+ deletedAt: Date | null;
622
+ }[];
623
+ contactEmails: {
624
+ id: string;
625
+ isPrimary: boolean;
626
+ email: string;
627
+ createdAt: Date;
628
+ updatedAt: Date;
629
+ deletedAt: Date | null;
630
+ }[];
631
+ contactPhones: {
632
+ id: string;
633
+ isPrimary: boolean;
634
+ createdAt: Date;
635
+ updatedAt: Date;
636
+ deletedAt: Date | null;
637
+ phone: string;
638
+ }[];
639
+ activityLogs?: {
640
+ id: string;
641
+ description: string;
642
+ createdAt: Date;
643
+ updatedAt: Date;
644
+ deletedAt: Date | null;
645
+ entityId: string;
646
+ entityType: {
647
+ id: string;
648
+ description: string | null;
649
+ createdAt: Date;
650
+ updatedAt: Date;
651
+ deletedAt: Date | null;
652
+ entity: string;
653
+ };
654
+ }[] | undefined;
655
+ }, {
656
+ id: string;
657
+ channel: string | null;
658
+ address: string | null;
659
+ name: string;
660
+ createdAt: Date;
661
+ updatedAt: Date;
662
+ deletedAt: Date | null;
663
+ customFields: {
664
+ id: string;
665
+ createdAt: Date;
666
+ updatedAt: Date;
667
+ deletedAt: Date | null;
668
+ attribute: {
669
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
670
+ id: string;
671
+ position: number;
672
+ createdAt: Date;
673
+ updatedAt: Date;
674
+ deletedAt: Date | null;
675
+ systemName: string;
676
+ displayName: string;
677
+ isDefault: boolean;
678
+ isArchived: boolean;
679
+ isRequired: boolean;
680
+ isUnique: boolean;
681
+ };
682
+ textValue: string | null;
683
+ booleanValue: boolean | null;
684
+ numberValue: number | null;
685
+ dateValue: Date | null;
686
+ uploads: {
687
+ id: string;
688
+ createdAt: Date;
689
+ updatedAt: Date;
690
+ deletedAt: Date | null;
691
+ fileName: string;
692
+ fileKey: string;
693
+ bucketName: string;
694
+ fileSize: number;
695
+ fileUrl: string | null;
696
+ status?: string | undefined;
697
+ }[];
698
+ }[];
699
+ company: {
700
+ id: string;
701
+ createdAt: Date;
702
+ updatedAt: Date;
703
+ deletedAt: Date | null;
704
+ address?: string | null | undefined;
705
+ name?: string | undefined;
706
+ phone?: string | null | undefined;
707
+ industry?: string | null | undefined;
708
+ } | null;
709
+ notes: string | null;
710
+ contactProfile: string | null;
711
+ socialProfileUrl: string | null;
712
+ tags: {
713
+ id: string;
714
+ name: string;
715
+ createdAt: Date;
716
+ updatedAt: Date;
717
+ deletedAt: Date | null;
718
+ }[];
719
+ contactEmails: {
720
+ id: string;
721
+ isPrimary: boolean;
722
+ email: string;
723
+ createdAt: Date;
724
+ updatedAt: Date;
725
+ deletedAt: Date | null;
726
+ }[];
727
+ contactPhones: {
728
+ id: string;
729
+ isPrimary: boolean;
730
+ createdAt: Date;
731
+ updatedAt: Date;
732
+ deletedAt: Date | null;
733
+ phone: string;
734
+ }[];
735
+ activityLogs?: {
736
+ id: string;
737
+ description: string;
738
+ createdAt: Date;
739
+ updatedAt: Date;
740
+ deletedAt: Date | null;
741
+ entityId: string;
742
+ entityType: {
743
+ id: string;
744
+ description: string | null;
745
+ createdAt: Date;
746
+ updatedAt: Date;
747
+ deletedAt: Date | null;
748
+ entity: string;
749
+ };
750
+ }[] | undefined;
751
+ }>;
752
+ };
753
+ getById: {
754
+ request: z.ZodObject<{
755
+ id: z.ZodString;
756
+ }, "strip", z.ZodTypeAny, {
757
+ id: string;
758
+ }, {
759
+ id: string;
760
+ }>;
761
+ };
762
+ delete: {
763
+ request: z.ZodObject<{
764
+ id: z.ZodString;
765
+ }, "strip", z.ZodTypeAny, {
766
+ id: string;
767
+ }, {
768
+ id: string;
769
+ }>;
770
+ };
771
+ getAll: {
772
+ request: z.ZodObject<{
773
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
774
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
775
+ keyword: z.ZodOptional<z.ZodOptional<z.ZodString>>;
776
+ company: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
777
+ name: z.ZodOptional<z.ZodString>;
778
+ address: z.ZodOptional<z.ZodString>;
779
+ channel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
780
+ selectedDate: z.ZodOptional<z.ZodString>;
781
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
782
+ attributeId: z.ZodString;
783
+ type: z.ZodString;
784
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ type: string;
787
+ value: (string | string[]) & (string | string[] | undefined);
788
+ attributeId: string;
789
+ }, {
790
+ type: string;
791
+ value: (string | string[]) & (string | string[] | undefined);
792
+ attributeId: string;
793
+ }>, "many">>;
794
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
795
+ phone: z.ZodOptional<z.ZodString>;
796
+ email: z.ZodOptional<z.ZodString>;
797
+ notes: z.ZodOptional<z.ZodString>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ page?: number | undefined;
800
+ pageSize?: number | undefined;
801
+ keyword?: string | undefined;
802
+ company?: string[] | undefined;
803
+ name?: string | undefined;
804
+ address?: string | undefined;
805
+ channel?: string[] | undefined;
806
+ selectedDate?: string | undefined;
807
+ customFields?: {
808
+ type: string;
809
+ value: (string | string[]) & (string | string[] | undefined);
810
+ attributeId: string;
811
+ }[] | undefined;
812
+ tags?: string[] | undefined;
813
+ phone?: string | undefined;
814
+ email?: string | undefined;
815
+ notes?: string | undefined;
816
+ }, {
817
+ page?: number | undefined;
818
+ pageSize?: number | undefined;
819
+ keyword?: string | undefined;
820
+ company?: string[] | undefined;
821
+ name?: string | undefined;
822
+ address?: string | undefined;
823
+ channel?: string[] | undefined;
824
+ selectedDate?: string | undefined;
825
+ customFields?: {
826
+ type: string;
827
+ value: (string | string[]) & (string | string[] | undefined);
828
+ attributeId: string;
829
+ }[] | undefined;
830
+ tags?: string[] | undefined;
831
+ phone?: string | undefined;
832
+ email?: string | undefined;
833
+ notes?: string | undefined;
834
+ }>;
835
+ response: {
836
+ page: z.ZodNumber;
837
+ pageSize: z.ZodNumber;
838
+ total: z.ZodNumber;
839
+ lastPage: z.ZodNumber;
840
+ data: z.ZodArray<z.ZodObject<{
841
+ id: z.ZodString;
842
+ createdAt: z.ZodDate;
843
+ updatedAt: z.ZodDate;
844
+ deletedAt: z.ZodNullable<z.ZodDate>;
845
+ name: z.ZodString;
846
+ address: z.ZodNullable<z.ZodString>;
847
+ channel: z.ZodNullable<z.ZodString>;
848
+ notes: z.ZodNullable<z.ZodString>;
849
+ contactProfile: z.ZodNullable<z.ZodString>;
850
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
851
+ tags: z.ZodArray<z.ZodObject<{
852
+ id: z.ZodString;
853
+ createdAt: z.ZodDate;
854
+ updatedAt: z.ZodDate;
855
+ deletedAt: z.ZodNullable<z.ZodDate>;
856
+ name: z.ZodString;
857
+ }, "strip", z.ZodTypeAny, {
858
+ id: string;
859
+ name: string;
860
+ createdAt: Date;
861
+ updatedAt: Date;
862
+ deletedAt: Date | null;
863
+ }, {
864
+ id: string;
865
+ name: string;
866
+ createdAt: Date;
867
+ updatedAt: Date;
868
+ deletedAt: Date | null;
869
+ }>, "many">;
870
+ company: z.ZodNullable<z.ZodObject<Omit<{
871
+ id: z.ZodString;
872
+ createdAt: z.ZodDate;
873
+ updatedAt: z.ZodDate;
874
+ deletedAt: z.ZodNullable<z.ZodDate>;
875
+ name: z.ZodOptional<z.ZodString>;
876
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
877
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
878
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
879
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
880
+ id: z.ZodString;
881
+ createdAt: z.ZodDate;
882
+ updatedAt: z.ZodDate;
883
+ deletedAt: z.ZodNullable<z.ZodDate>;
884
+ textValue: z.ZodNullable<z.ZodString>;
885
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
886
+ numberValue: z.ZodNullable<z.ZodNumber>;
887
+ dateValue: z.ZodNullable<z.ZodDate>;
888
+ attribute: z.ZodObject<Omit<{
889
+ id: z.ZodString;
890
+ createdAt: z.ZodDate;
891
+ updatedAt: z.ZodDate;
892
+ deletedAt: z.ZodNullable<z.ZodDate>;
893
+ systemName: z.ZodString;
894
+ displayName: z.ZodString;
895
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
896
+ position: z.ZodNumber;
897
+ isDefault: z.ZodBoolean;
898
+ isArchived: z.ZodBoolean;
899
+ isRequired: z.ZodBoolean;
900
+ isUnique: z.ZodBoolean;
901
+ options: z.ZodArray<z.ZodObject<{
902
+ position: z.ZodNumber;
903
+ value: z.ZodString;
904
+ label: z.ZodString;
905
+ isDefault: z.ZodBoolean;
906
+ id: z.ZodString;
907
+ }, "strip", z.ZodTypeAny, {
908
+ id: string;
909
+ position: number;
910
+ value: string;
911
+ label: string;
912
+ isDefault: boolean;
913
+ }, {
914
+ id: string;
915
+ position: number;
916
+ value: string;
917
+ label: string;
918
+ isDefault: boolean;
919
+ }>, "many">;
920
+ group: z.ZodObject<{
921
+ id: z.ZodString;
922
+ createdAt: z.ZodDate;
923
+ updatedAt: z.ZodDate;
924
+ deletedAt: z.ZodNullable<z.ZodDate>;
925
+ systemName: z.ZodString;
926
+ displayName: z.ZodString;
927
+ }, "strip", z.ZodTypeAny, {
928
+ id: string;
929
+ createdAt: Date;
930
+ updatedAt: Date;
931
+ deletedAt: Date | null;
932
+ systemName: string;
933
+ displayName: string;
934
+ }, {
935
+ id: string;
936
+ createdAt: Date;
937
+ updatedAt: Date;
938
+ deletedAt: Date | null;
939
+ systemName: string;
940
+ displayName: string;
941
+ }>;
942
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
943
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
944
+ id: string;
945
+ position: number;
946
+ createdAt: Date;
947
+ updatedAt: Date;
948
+ deletedAt: Date | null;
949
+ systemName: string;
950
+ displayName: string;
951
+ isDefault: boolean;
952
+ isArchived: boolean;
953
+ isRequired: boolean;
954
+ isUnique: boolean;
955
+ }, {
956
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
957
+ id: string;
958
+ position: number;
959
+ createdAt: Date;
960
+ updatedAt: Date;
961
+ deletedAt: Date | null;
962
+ systemName: string;
963
+ displayName: string;
964
+ isDefault: boolean;
965
+ isArchived: boolean;
966
+ isRequired: boolean;
967
+ isUnique: boolean;
968
+ }>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ id: string;
971
+ createdAt: Date;
972
+ updatedAt: Date;
973
+ deletedAt: Date | null;
974
+ attribute: {
975
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
976
+ id: string;
977
+ position: number;
978
+ createdAt: Date;
979
+ updatedAt: Date;
980
+ deletedAt: Date | null;
981
+ systemName: string;
982
+ displayName: string;
983
+ isDefault: boolean;
984
+ isArchived: boolean;
985
+ isRequired: boolean;
986
+ isUnique: boolean;
987
+ };
988
+ textValue: string | null;
989
+ booleanValue: boolean | null;
990
+ numberValue: number | null;
991
+ dateValue: Date | null;
992
+ }, {
993
+ id: string;
994
+ createdAt: Date;
995
+ updatedAt: Date;
996
+ deletedAt: Date | null;
997
+ attribute: {
998
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
999
+ id: string;
1000
+ position: number;
1001
+ createdAt: Date;
1002
+ updatedAt: Date;
1003
+ deletedAt: Date | null;
1004
+ systemName: string;
1005
+ displayName: string;
1006
+ isDefault: boolean;
1007
+ isArchived: boolean;
1008
+ isRequired: boolean;
1009
+ isUnique: boolean;
1010
+ };
1011
+ textValue: string | null;
1012
+ booleanValue: boolean | null;
1013
+ numberValue: number | null;
1014
+ dateValue: Date | null;
1015
+ }>, "many">>;
1016
+ }, "customFields">, "strip", z.ZodTypeAny, {
1017
+ id: string;
1018
+ createdAt: Date;
1019
+ updatedAt: Date;
1020
+ deletedAt: Date | null;
1021
+ address?: string | null | undefined;
1022
+ name?: string | undefined;
1023
+ phone?: string | null | undefined;
1024
+ industry?: string | null | undefined;
1025
+ }, {
1026
+ id: string;
1027
+ createdAt: Date;
1028
+ updatedAt: Date;
1029
+ deletedAt: Date | null;
1030
+ address?: string | null | undefined;
1031
+ name?: string | undefined;
1032
+ phone?: string | null | undefined;
1033
+ industry?: string | null | undefined;
1034
+ }>>;
1035
+ customFields: z.ZodArray<z.ZodObject<{
1036
+ id: z.ZodString;
1037
+ createdAt: z.ZodDate;
1038
+ updatedAt: z.ZodDate;
1039
+ deletedAt: z.ZodNullable<z.ZodDate>;
1040
+ textValue: z.ZodNullable<z.ZodString>;
1041
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1042
+ numberValue: z.ZodNullable<z.ZodNumber>;
1043
+ dateValue: z.ZodNullable<z.ZodDate>;
1044
+ attribute: z.ZodObject<Omit<{
1045
+ id: z.ZodString;
1046
+ createdAt: z.ZodDate;
1047
+ updatedAt: z.ZodDate;
1048
+ deletedAt: z.ZodNullable<z.ZodDate>;
1049
+ systemName: z.ZodString;
1050
+ displayName: z.ZodString;
1051
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1052
+ position: z.ZodNumber;
1053
+ isDefault: z.ZodBoolean;
1054
+ isArchived: z.ZodBoolean;
1055
+ isRequired: z.ZodBoolean;
1056
+ isUnique: z.ZodBoolean;
1057
+ options: z.ZodArray<z.ZodObject<{
1058
+ position: z.ZodNumber;
1059
+ value: z.ZodString;
1060
+ label: z.ZodString;
1061
+ isDefault: z.ZodBoolean;
1062
+ id: z.ZodString;
1063
+ }, "strip", z.ZodTypeAny, {
1064
+ id: string;
1065
+ position: number;
1066
+ value: string;
1067
+ label: string;
1068
+ isDefault: boolean;
1069
+ }, {
1070
+ id: string;
1071
+ position: number;
1072
+ value: string;
1073
+ label: string;
1074
+ isDefault: boolean;
1075
+ }>, "many">;
1076
+ group: z.ZodObject<{
1077
+ id: z.ZodString;
1078
+ createdAt: z.ZodDate;
1079
+ updatedAt: z.ZodDate;
1080
+ deletedAt: z.ZodNullable<z.ZodDate>;
1081
+ systemName: z.ZodString;
1082
+ displayName: z.ZodString;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ id: string;
1085
+ createdAt: Date;
1086
+ updatedAt: Date;
1087
+ deletedAt: Date | null;
1088
+ systemName: string;
1089
+ displayName: string;
1090
+ }, {
1091
+ id: string;
1092
+ createdAt: Date;
1093
+ updatedAt: Date;
1094
+ deletedAt: Date | null;
1095
+ systemName: string;
1096
+ displayName: string;
1097
+ }>;
1098
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1099
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1100
+ id: string;
1101
+ position: number;
1102
+ createdAt: Date;
1103
+ updatedAt: Date;
1104
+ deletedAt: Date | null;
1105
+ systemName: string;
1106
+ displayName: string;
1107
+ isDefault: boolean;
1108
+ isArchived: boolean;
1109
+ isRequired: boolean;
1110
+ isUnique: boolean;
1111
+ }, {
1112
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1113
+ id: string;
1114
+ position: number;
1115
+ createdAt: Date;
1116
+ updatedAt: Date;
1117
+ deletedAt: Date | null;
1118
+ systemName: string;
1119
+ displayName: string;
1120
+ isDefault: boolean;
1121
+ isArchived: boolean;
1122
+ isRequired: boolean;
1123
+ isUnique: boolean;
1124
+ }>;
1125
+ uploads: z.ZodArray<z.ZodObject<{
1126
+ id: z.ZodString;
1127
+ createdAt: z.ZodDate;
1128
+ updatedAt: z.ZodDate;
1129
+ deletedAt: z.ZodNullable<z.ZodDate>;
1130
+ bucketName: z.ZodString;
1131
+ fileName: z.ZodString;
1132
+ fileSize: z.ZodNumber;
1133
+ fileKey: z.ZodString;
1134
+ fileUrl: z.ZodNullable<z.ZodString>;
1135
+ status: z.ZodOptional<z.ZodString>;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ id: string;
1138
+ createdAt: Date;
1139
+ updatedAt: Date;
1140
+ deletedAt: Date | null;
1141
+ fileName: string;
1142
+ fileKey: string;
1143
+ bucketName: string;
1144
+ fileSize: number;
1145
+ fileUrl: string | null;
1146
+ status?: string | undefined;
1147
+ }, {
1148
+ id: string;
1149
+ createdAt: Date;
1150
+ updatedAt: Date;
1151
+ deletedAt: Date | null;
1152
+ fileName: string;
1153
+ fileKey: string;
1154
+ bucketName: string;
1155
+ fileSize: number;
1156
+ fileUrl: string | null;
1157
+ status?: string | undefined;
1158
+ }>, "many">;
1159
+ }, "strip", z.ZodTypeAny, {
1160
+ id: string;
1161
+ createdAt: Date;
1162
+ updatedAt: Date;
1163
+ deletedAt: Date | null;
1164
+ attribute: {
1165
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1166
+ id: string;
1167
+ position: number;
1168
+ createdAt: Date;
1169
+ updatedAt: Date;
1170
+ deletedAt: Date | null;
1171
+ systemName: string;
1172
+ displayName: string;
1173
+ isDefault: boolean;
1174
+ isArchived: boolean;
1175
+ isRequired: boolean;
1176
+ isUnique: boolean;
1177
+ };
1178
+ textValue: string | null;
1179
+ booleanValue: boolean | null;
1180
+ numberValue: number | null;
1181
+ dateValue: Date | null;
1182
+ uploads: {
1183
+ id: string;
1184
+ createdAt: Date;
1185
+ updatedAt: Date;
1186
+ deletedAt: Date | null;
1187
+ fileName: string;
1188
+ fileKey: string;
1189
+ bucketName: string;
1190
+ fileSize: number;
1191
+ fileUrl: string | null;
1192
+ status?: string | undefined;
1193
+ }[];
1194
+ }, {
1195
+ id: string;
1196
+ createdAt: Date;
1197
+ updatedAt: Date;
1198
+ deletedAt: Date | null;
1199
+ attribute: {
1200
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1201
+ id: string;
1202
+ position: number;
1203
+ createdAt: Date;
1204
+ updatedAt: Date;
1205
+ deletedAt: Date | null;
1206
+ systemName: string;
1207
+ displayName: string;
1208
+ isDefault: boolean;
1209
+ isArchived: boolean;
1210
+ isRequired: boolean;
1211
+ isUnique: boolean;
1212
+ };
1213
+ textValue: string | null;
1214
+ booleanValue: boolean | null;
1215
+ numberValue: number | null;
1216
+ dateValue: Date | null;
1217
+ uploads: {
1218
+ id: string;
1219
+ createdAt: Date;
1220
+ updatedAt: Date;
1221
+ deletedAt: Date | null;
1222
+ fileName: string;
1223
+ fileKey: string;
1224
+ bucketName: string;
1225
+ fileSize: number;
1226
+ fileUrl: string | null;
1227
+ status?: string | undefined;
1228
+ }[];
1229
+ }>, "many">;
1230
+ contactEmails: z.ZodArray<z.ZodObject<{
1231
+ id: z.ZodString;
1232
+ createdAt: z.ZodDate;
1233
+ updatedAt: z.ZodDate;
1234
+ deletedAt: z.ZodNullable<z.ZodDate>;
1235
+ email: z.ZodString;
1236
+ isPrimary: z.ZodBoolean;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ id: string;
1239
+ isPrimary: boolean;
1240
+ email: string;
1241
+ createdAt: Date;
1242
+ updatedAt: Date;
1243
+ deletedAt: Date | null;
1244
+ }, {
1245
+ id: string;
1246
+ isPrimary: boolean;
1247
+ email: string;
1248
+ createdAt: Date;
1249
+ updatedAt: Date;
1250
+ deletedAt: Date | null;
1251
+ }>, "many">;
1252
+ contactPhones: z.ZodArray<z.ZodObject<{
1253
+ id: z.ZodString;
1254
+ createdAt: z.ZodDate;
1255
+ updatedAt: z.ZodDate;
1256
+ deletedAt: z.ZodNullable<z.ZodDate>;
1257
+ phone: z.ZodString;
1258
+ isPrimary: z.ZodBoolean;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ id: string;
1261
+ isPrimary: boolean;
1262
+ createdAt: Date;
1263
+ updatedAt: Date;
1264
+ deletedAt: Date | null;
1265
+ phone: string;
1266
+ }, {
1267
+ id: string;
1268
+ isPrimary: boolean;
1269
+ createdAt: Date;
1270
+ updatedAt: Date;
1271
+ deletedAt: Date | null;
1272
+ phone: string;
1273
+ }>, "many">;
1274
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1275
+ id: z.ZodString;
1276
+ createdAt: z.ZodDate;
1277
+ updatedAt: z.ZodDate;
1278
+ deletedAt: z.ZodNullable<z.ZodDate>;
1279
+ entityId: z.ZodString;
1280
+ description: z.ZodString;
1281
+ entityType: z.ZodObject<{
1282
+ id: z.ZodString;
1283
+ createdAt: z.ZodDate;
1284
+ updatedAt: z.ZodDate;
1285
+ deletedAt: z.ZodNullable<z.ZodDate>;
1286
+ entity: z.ZodString;
1287
+ description: z.ZodNullable<z.ZodString>;
1288
+ }, "strip", z.ZodTypeAny, {
1289
+ id: string;
1290
+ description: string | null;
1291
+ createdAt: Date;
1292
+ updatedAt: Date;
1293
+ deletedAt: Date | null;
1294
+ entity: string;
1295
+ }, {
1296
+ id: string;
1297
+ description: string | null;
1298
+ createdAt: Date;
1299
+ updatedAt: Date;
1300
+ deletedAt: Date | null;
1301
+ entity: string;
1302
+ }>;
1303
+ }, "strip", z.ZodTypeAny, {
1304
+ id: string;
1305
+ description: string;
1306
+ createdAt: Date;
1307
+ updatedAt: Date;
1308
+ deletedAt: Date | null;
1309
+ entityId: string;
1310
+ entityType: {
1311
+ id: string;
1312
+ description: string | null;
1313
+ createdAt: Date;
1314
+ updatedAt: Date;
1315
+ deletedAt: Date | null;
1316
+ entity: string;
1317
+ };
1318
+ }, {
1319
+ id: string;
1320
+ description: string;
1321
+ createdAt: Date;
1322
+ updatedAt: Date;
1323
+ deletedAt: Date | null;
1324
+ entityId: string;
1325
+ entityType: {
1326
+ id: string;
1327
+ description: string | null;
1328
+ createdAt: Date;
1329
+ updatedAt: Date;
1330
+ deletedAt: Date | null;
1331
+ entity: string;
1332
+ };
1333
+ }>, "many">>;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ id: string;
1336
+ channel: string | null;
1337
+ address: string | null;
1338
+ name: string;
1339
+ createdAt: Date;
1340
+ updatedAt: Date;
1341
+ deletedAt: Date | null;
1342
+ customFields: {
1343
+ id: string;
1344
+ createdAt: Date;
1345
+ updatedAt: Date;
1346
+ deletedAt: Date | null;
1347
+ attribute: {
1348
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1349
+ id: string;
1350
+ position: number;
1351
+ createdAt: Date;
1352
+ updatedAt: Date;
1353
+ deletedAt: Date | null;
1354
+ systemName: string;
1355
+ displayName: string;
1356
+ isDefault: boolean;
1357
+ isArchived: boolean;
1358
+ isRequired: boolean;
1359
+ isUnique: boolean;
1360
+ };
1361
+ textValue: string | null;
1362
+ booleanValue: boolean | null;
1363
+ numberValue: number | null;
1364
+ dateValue: Date | null;
1365
+ uploads: {
1366
+ id: string;
1367
+ createdAt: Date;
1368
+ updatedAt: Date;
1369
+ deletedAt: Date | null;
1370
+ fileName: string;
1371
+ fileKey: string;
1372
+ bucketName: string;
1373
+ fileSize: number;
1374
+ fileUrl: string | null;
1375
+ status?: string | undefined;
1376
+ }[];
1377
+ }[];
1378
+ company: {
1379
+ id: string;
1380
+ createdAt: Date;
1381
+ updatedAt: Date;
1382
+ deletedAt: Date | null;
1383
+ address?: string | null | undefined;
1384
+ name?: string | undefined;
1385
+ phone?: string | null | undefined;
1386
+ industry?: string | null | undefined;
1387
+ } | null;
1388
+ notes: string | null;
1389
+ contactProfile: string | null;
1390
+ socialProfileUrl: string | null;
1391
+ tags: {
1392
+ id: string;
1393
+ name: string;
1394
+ createdAt: Date;
1395
+ updatedAt: Date;
1396
+ deletedAt: Date | null;
1397
+ }[];
1398
+ contactEmails: {
1399
+ id: string;
1400
+ isPrimary: boolean;
1401
+ email: string;
1402
+ createdAt: Date;
1403
+ updatedAt: Date;
1404
+ deletedAt: Date | null;
1405
+ }[];
1406
+ contactPhones: {
1407
+ id: string;
1408
+ isPrimary: boolean;
1409
+ createdAt: Date;
1410
+ updatedAt: Date;
1411
+ deletedAt: Date | null;
1412
+ phone: string;
1413
+ }[];
1414
+ activityLogs?: {
1415
+ id: string;
1416
+ description: string;
1417
+ createdAt: Date;
1418
+ updatedAt: Date;
1419
+ deletedAt: Date | null;
1420
+ entityId: string;
1421
+ entityType: {
1422
+ id: string;
1423
+ description: string | null;
1424
+ createdAt: Date;
1425
+ updatedAt: Date;
1426
+ deletedAt: Date | null;
1427
+ entity: string;
1428
+ };
1429
+ }[] | undefined;
1430
+ }, {
1431
+ id: string;
1432
+ channel: string | null;
1433
+ address: string | null;
1434
+ name: string;
1435
+ createdAt: Date;
1436
+ updatedAt: Date;
1437
+ deletedAt: Date | null;
1438
+ customFields: {
1439
+ id: string;
1440
+ createdAt: Date;
1441
+ updatedAt: Date;
1442
+ deletedAt: Date | null;
1443
+ attribute: {
1444
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1445
+ id: string;
1446
+ position: number;
1447
+ createdAt: Date;
1448
+ updatedAt: Date;
1449
+ deletedAt: Date | null;
1450
+ systemName: string;
1451
+ displayName: string;
1452
+ isDefault: boolean;
1453
+ isArchived: boolean;
1454
+ isRequired: boolean;
1455
+ isUnique: boolean;
1456
+ };
1457
+ textValue: string | null;
1458
+ booleanValue: boolean | null;
1459
+ numberValue: number | null;
1460
+ dateValue: Date | null;
1461
+ uploads: {
1462
+ id: string;
1463
+ createdAt: Date;
1464
+ updatedAt: Date;
1465
+ deletedAt: Date | null;
1466
+ fileName: string;
1467
+ fileKey: string;
1468
+ bucketName: string;
1469
+ fileSize: number;
1470
+ fileUrl: string | null;
1471
+ status?: string | undefined;
1472
+ }[];
1473
+ }[];
1474
+ company: {
1475
+ id: string;
1476
+ createdAt: Date;
1477
+ updatedAt: Date;
1478
+ deletedAt: Date | null;
1479
+ address?: string | null | undefined;
1480
+ name?: string | undefined;
1481
+ phone?: string | null | undefined;
1482
+ industry?: string | null | undefined;
1483
+ } | null;
1484
+ notes: string | null;
1485
+ contactProfile: string | null;
1486
+ socialProfileUrl: string | null;
1487
+ tags: {
1488
+ id: string;
1489
+ name: string;
1490
+ createdAt: Date;
1491
+ updatedAt: Date;
1492
+ deletedAt: Date | null;
1493
+ }[];
1494
+ contactEmails: {
1495
+ id: string;
1496
+ isPrimary: boolean;
1497
+ email: string;
1498
+ createdAt: Date;
1499
+ updatedAt: Date;
1500
+ deletedAt: Date | null;
1501
+ }[];
1502
+ contactPhones: {
1503
+ id: string;
1504
+ isPrimary: boolean;
1505
+ createdAt: Date;
1506
+ updatedAt: Date;
1507
+ deletedAt: Date | null;
1508
+ phone: string;
1509
+ }[];
1510
+ activityLogs?: {
1511
+ id: string;
1512
+ description: string;
1513
+ createdAt: Date;
1514
+ updatedAt: Date;
1515
+ deletedAt: Date | null;
1516
+ entityId: string;
1517
+ entityType: {
1518
+ id: string;
1519
+ description: string | null;
1520
+ createdAt: Date;
1521
+ updatedAt: Date;
1522
+ deletedAt: Date | null;
1523
+ entity: string;
1524
+ };
1525
+ }[] | undefined;
1526
+ }>, "many">;
1527
+ };
1528
+ };
1529
+ getContactFields: {
1530
+ request: z.ZodObject<{
1531
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1532
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1533
+ }, "strip", z.ZodTypeAny, {
1534
+ page?: number | undefined;
1535
+ pageSize?: number | undefined;
1536
+ }, {
1537
+ page?: number | undefined;
1538
+ pageSize?: number | undefined;
1539
+ }>;
1540
+ response: {
1541
+ page: z.ZodNumber;
1542
+ pageSize: z.ZodNumber;
1543
+ total: z.ZodNumber;
1544
+ lastPage: z.ZodNumber;
1545
+ data: z.ZodArray<z.ZodObject<{
1546
+ id: z.ZodString;
1547
+ createdAt: z.ZodDate;
1548
+ updatedAt: z.ZodDate;
1549
+ deletedAt: z.ZodNullable<z.ZodDate>;
1550
+ textValue: z.ZodNullable<z.ZodString>;
1551
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1552
+ numberValue: z.ZodNullable<z.ZodNumber>;
1553
+ dateValue: z.ZodNullable<z.ZodDate>;
1554
+ attribute: z.ZodObject<Omit<{
1555
+ id: z.ZodString;
1556
+ createdAt: z.ZodDate;
1557
+ updatedAt: z.ZodDate;
1558
+ deletedAt: z.ZodNullable<z.ZodDate>;
1559
+ systemName: z.ZodString;
1560
+ displayName: z.ZodString;
1561
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1562
+ position: z.ZodNumber;
1563
+ isDefault: z.ZodBoolean;
1564
+ isArchived: z.ZodBoolean;
1565
+ isRequired: z.ZodBoolean;
1566
+ isUnique: z.ZodBoolean;
1567
+ options: z.ZodArray<z.ZodObject<{
1568
+ position: z.ZodNumber;
1569
+ value: z.ZodString;
1570
+ label: z.ZodString;
1571
+ isDefault: z.ZodBoolean;
1572
+ id: z.ZodString;
1573
+ }, "strip", z.ZodTypeAny, {
1574
+ id: string;
1575
+ position: number;
1576
+ value: string;
1577
+ label: string;
1578
+ isDefault: boolean;
1579
+ }, {
1580
+ id: string;
1581
+ position: number;
1582
+ value: string;
1583
+ label: string;
1584
+ isDefault: boolean;
1585
+ }>, "many">;
1586
+ group: z.ZodObject<{
1587
+ id: z.ZodString;
1588
+ createdAt: z.ZodDate;
1589
+ updatedAt: z.ZodDate;
1590
+ deletedAt: z.ZodNullable<z.ZodDate>;
1591
+ systemName: z.ZodString;
1592
+ displayName: z.ZodString;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ id: string;
1595
+ createdAt: Date;
1596
+ updatedAt: Date;
1597
+ deletedAt: Date | null;
1598
+ systemName: string;
1599
+ displayName: string;
1600
+ }, {
1601
+ id: string;
1602
+ createdAt: Date;
1603
+ updatedAt: Date;
1604
+ deletedAt: Date | null;
1605
+ systemName: string;
1606
+ displayName: string;
1607
+ }>;
1608
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1609
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1610
+ id: string;
1611
+ position: number;
1612
+ createdAt: Date;
1613
+ updatedAt: Date;
1614
+ deletedAt: Date | null;
1615
+ systemName: string;
1616
+ displayName: string;
1617
+ isDefault: boolean;
1618
+ isArchived: boolean;
1619
+ isRequired: boolean;
1620
+ isUnique: boolean;
1621
+ }, {
1622
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1623
+ id: string;
1624
+ position: number;
1625
+ createdAt: Date;
1626
+ updatedAt: Date;
1627
+ deletedAt: Date | null;
1628
+ systemName: string;
1629
+ displayName: string;
1630
+ isDefault: boolean;
1631
+ isArchived: boolean;
1632
+ isRequired: boolean;
1633
+ isUnique: boolean;
1634
+ }>;
1635
+ uploads: z.ZodArray<z.ZodObject<{
1636
+ id: z.ZodString;
1637
+ createdAt: z.ZodDate;
1638
+ updatedAt: z.ZodDate;
1639
+ deletedAt: z.ZodNullable<z.ZodDate>;
1640
+ bucketName: z.ZodString;
1641
+ fileName: z.ZodString;
1642
+ fileSize: z.ZodNumber;
1643
+ fileKey: z.ZodString;
1644
+ fileUrl: z.ZodNullable<z.ZodString>;
1645
+ status: z.ZodOptional<z.ZodString>;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ id: string;
1648
+ createdAt: Date;
1649
+ updatedAt: Date;
1650
+ deletedAt: Date | null;
1651
+ fileName: string;
1652
+ fileKey: string;
1653
+ bucketName: string;
1654
+ fileSize: number;
1655
+ fileUrl: string | null;
1656
+ status?: string | undefined;
1657
+ }, {
1658
+ id: string;
1659
+ createdAt: Date;
1660
+ updatedAt: Date;
1661
+ deletedAt: Date | null;
1662
+ fileName: string;
1663
+ fileKey: string;
1664
+ bucketName: string;
1665
+ fileSize: number;
1666
+ fileUrl: string | null;
1667
+ status?: string | undefined;
1668
+ }>, "many">;
1669
+ }, "strip", z.ZodTypeAny, {
1670
+ id: string;
1671
+ createdAt: Date;
1672
+ updatedAt: Date;
1673
+ deletedAt: Date | null;
1674
+ attribute: {
1675
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1676
+ id: string;
1677
+ position: number;
1678
+ createdAt: Date;
1679
+ updatedAt: Date;
1680
+ deletedAt: Date | null;
1681
+ systemName: string;
1682
+ displayName: string;
1683
+ isDefault: boolean;
1684
+ isArchived: boolean;
1685
+ isRequired: boolean;
1686
+ isUnique: boolean;
1687
+ };
1688
+ textValue: string | null;
1689
+ booleanValue: boolean | null;
1690
+ numberValue: number | null;
1691
+ dateValue: Date | null;
1692
+ uploads: {
1693
+ id: string;
1694
+ createdAt: Date;
1695
+ updatedAt: Date;
1696
+ deletedAt: Date | null;
1697
+ fileName: string;
1698
+ fileKey: string;
1699
+ bucketName: string;
1700
+ fileSize: number;
1701
+ fileUrl: string | null;
1702
+ status?: string | undefined;
1703
+ }[];
1704
+ }, {
1705
+ id: string;
1706
+ createdAt: Date;
1707
+ updatedAt: Date;
1708
+ deletedAt: Date | null;
1709
+ attribute: {
1710
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1711
+ id: string;
1712
+ position: number;
1713
+ createdAt: Date;
1714
+ updatedAt: Date;
1715
+ deletedAt: Date | null;
1716
+ systemName: string;
1717
+ displayName: string;
1718
+ isDefault: boolean;
1719
+ isArchived: boolean;
1720
+ isRequired: boolean;
1721
+ isUnique: boolean;
1722
+ };
1723
+ textValue: string | null;
1724
+ booleanValue: boolean | null;
1725
+ numberValue: number | null;
1726
+ dateValue: Date | null;
1727
+ uploads: {
1728
+ id: string;
1729
+ createdAt: Date;
1730
+ updatedAt: Date;
1731
+ deletedAt: Date | null;
1732
+ fileName: string;
1733
+ fileKey: string;
1734
+ bucketName: string;
1735
+ fileSize: number;
1736
+ fileUrl: string | null;
1737
+ status?: string | undefined;
1738
+ }[];
1739
+ }>, "many">;
1740
+ };
1741
+ };
1742
+ addAttachments: {
1743
+ request: z.ZodObject<{
1744
+ contactId: z.ZodString;
1745
+ attributeId: z.ZodString;
1746
+ contactAttachmentRecords: z.ZodArray<z.ZodObject<{
1747
+ bucketName: z.ZodString;
1748
+ fileKey: z.ZodString;
1749
+ fileName: z.ZodString;
1750
+ fileSize: z.ZodNumber;
1751
+ url: z.ZodString;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ url: string;
1754
+ fileName: string;
1755
+ fileKey: string;
1756
+ bucketName: string;
1757
+ fileSize: number;
1758
+ }, {
1759
+ url: string;
1760
+ fileName: string;
1761
+ fileKey: string;
1762
+ bucketName: string;
1763
+ fileSize: number;
1764
+ }>, "many">;
1765
+ }, "strip", z.ZodTypeAny, {
1766
+ attributeId: string;
1767
+ contactId: string;
1768
+ contactAttachmentRecords: {
1769
+ url: string;
1770
+ fileName: string;
1771
+ fileKey: string;
1772
+ bucketName: string;
1773
+ fileSize: number;
1774
+ }[];
1775
+ }, {
1776
+ attributeId: string;
1777
+ contactId: string;
1778
+ contactAttachmentRecords: {
1779
+ url: string;
1780
+ fileName: string;
1781
+ fileKey: string;
1782
+ bucketName: string;
1783
+ fileSize: number;
1784
+ }[];
1785
+ }>;
1786
+ response: z.ZodObject<{
1787
+ id: z.ZodString;
1788
+ createdAt: z.ZodDate;
1789
+ updatedAt: z.ZodDate;
1790
+ deletedAt: z.ZodNullable<z.ZodDate>;
1791
+ textValue: z.ZodNullable<z.ZodString>;
1792
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1793
+ numberValue: z.ZodNullable<z.ZodNumber>;
1794
+ dateValue: z.ZodNullable<z.ZodDate>;
1795
+ entityId: z.ZodString;
1796
+ attributeId: z.ZodString;
1797
+ }, "strip", z.ZodTypeAny, {
1798
+ id: string;
1799
+ createdAt: Date;
1800
+ updatedAt: Date;
1801
+ deletedAt: Date | null;
1802
+ entityId: string;
1803
+ attributeId: string;
1804
+ textValue: string | null;
1805
+ booleanValue: boolean | null;
1806
+ numberValue: number | null;
1807
+ dateValue: Date | null;
1808
+ }, {
1809
+ id: string;
1810
+ createdAt: Date;
1811
+ updatedAt: Date;
1812
+ deletedAt: Date | null;
1813
+ entityId: string;
1814
+ attributeId: string;
1815
+ textValue: string | null;
1816
+ booleanValue: boolean | null;
1817
+ numberValue: number | null;
1818
+ dateValue: Date | null;
1819
+ }>;
1820
+ };
1821
+ };
1822
+ //# sourceMappingURL=validation.d.ts.map