@kl1/contracts 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/index.js +1331 -1064
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1325 -1060
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/auth/index.d.ts +92 -0
  6. package/dist/src/auth/index.d.ts.map +1 -1
  7. package/dist/src/aws/index.d.ts +4 -4
  8. package/dist/src/aws/validation.d.ts +2 -2
  9. package/dist/src/call-log/schema.d.ts +2 -2
  10. package/dist/src/category/index.d.ts +3 -3
  11. package/dist/src/channel/index.d.ts +1357 -0
  12. package/dist/src/channel/index.d.ts.map +1 -0
  13. package/dist/src/channel/schema.d.ts +385 -0
  14. package/dist/src/channel/schema.d.ts.map +1 -0
  15. package/dist/src/channel/validation.d.ts +337 -0
  16. package/dist/src/channel/validation.d.ts.map +1 -0
  17. package/dist/src/chat/index.d.ts +18857 -8629
  18. package/dist/src/chat/index.d.ts.map +1 -1
  19. package/dist/src/chat/schema.d.ts +2170 -641
  20. package/dist/src/chat/schema.d.ts.map +1 -1
  21. package/dist/src/chat/validation.d.ts +3078 -278
  22. package/dist/src/chat/validation.d.ts.map +1 -1
  23. package/dist/src/company/schema.d.ts +197 -12
  24. package/dist/src/company/schema.d.ts.map +1 -1
  25. package/dist/src/contact/index.d.ts +2539 -0
  26. package/dist/src/contact/index.d.ts.map +1 -0
  27. package/dist/src/contact/schema.d.ts +978 -6
  28. package/dist/src/contact/schema.d.ts.map +1 -1
  29. package/dist/src/contact/validation.d.ts +981 -0
  30. package/dist/src/contact/validation.d.ts.map +1 -0
  31. package/dist/src/contract.d.ts +37764 -21769
  32. package/dist/src/contract.d.ts.map +1 -1
  33. package/dist/src/custom-field-upload/schema.d.ts +2 -2
  34. package/dist/src/cx-log/index.d.ts +4 -4
  35. package/dist/src/cx-log/schema.d.ts +2 -2
  36. package/dist/src/extension/index.d.ts +226 -60
  37. package/dist/src/extension/index.d.ts.map +1 -1
  38. package/dist/src/extension/schema.d.ts +6 -6
  39. package/dist/src/extension/validation.d.ts +6 -12
  40. package/dist/src/extension/validation.d.ts.map +1 -1
  41. package/dist/src/index.d.ts +1 -0
  42. package/dist/src/index.d.ts.map +1 -1
  43. package/dist/src/line/index.d.ts +2 -2
  44. package/dist/src/line/validation.d.ts +2 -2
  45. package/dist/src/mail/account-contract.d.ts +2 -2
  46. package/dist/src/mail/mail-contract.d.ts +2871 -3707
  47. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  48. package/dist/src/mail/message-contract.d.ts +18 -18
  49. package/dist/src/mail/room-contract.d.ts +2860 -3696
  50. package/dist/src/mail/room-contract.d.ts.map +1 -1
  51. package/dist/src/mail/schemas/account-validation.schema.d.ts +2 -2
  52. package/dist/src/mail/schemas/message-validation.schema.d.ts +12 -12
  53. package/dist/src/mail/schemas/message.schema.d.ts +4 -4
  54. package/dist/src/mail/schemas/room-validation.schema.d.ts +70 -70
  55. package/dist/src/mail/schemas/room.schema.d.ts +50 -50
  56. package/dist/src/messenger/index.d.ts +2977 -0
  57. package/dist/src/messenger/index.d.ts.map +1 -0
  58. package/dist/src/messenger/schema.d.ts +2 -0
  59. package/dist/src/messenger/schema.d.ts.map +1 -0
  60. package/dist/src/messenger/validation.d.ts +2 -0
  61. package/dist/src/messenger/validation.d.ts.map +1 -0
  62. package/dist/src/permission/index.d.ts +2 -0
  63. package/dist/src/permission/index.d.ts.map +1 -1
  64. package/dist/src/role/index.d.ts +3 -3
  65. package/dist/src/telephony-agent-presence-status/index.d.ts +1376 -0
  66. package/dist/src/telephony-agent-presence-status/index.d.ts.map +1 -0
  67. package/dist/src/telephony-agent-presence-status/schema.d.ts +366 -0
  68. package/dist/src/telephony-agent-presence-status/schema.d.ts.map +1 -0
  69. package/dist/src/telephony-agent-presence-status/validation.d.ts +18 -0
  70. package/dist/src/telephony-agent-presence-status/validation.d.ts.map +1 -0
  71. package/dist/src/telephony-cdr/schema.d.ts +2 -2
  72. package/dist/src/telephony-extension/index.d.ts +5 -5
  73. package/dist/src/telephony-extension/schema.d.ts +5 -5
  74. package/dist/src/tenant/schema.d.ts +36 -0
  75. package/dist/src/tenant/schema.d.ts.map +1 -0
  76. package/dist/src/upload/schema.d.ts +4 -4
  77. package/dist/src/user/index.d.ts +318 -14
  78. package/dist/src/user/index.d.ts.map +1 -1
  79. package/dist/src/user/schema.d.ts +64 -0
  80. package/dist/src/user/schema.d.ts.map +1 -1
  81. package/dist/src/user/validation.d.ts +11 -11
  82. package/dist/src/user-presence-status-log/index.d.ts +342 -0
  83. package/dist/src/user-presence-status-log/index.d.ts.map +1 -0
  84. package/dist/src/user-presence-status-log/schema.d.ts +382 -0
  85. package/dist/src/user-presence-status-log/schema.d.ts.map +1 -0
  86. package/dist/src/user-presence-status-log/validation.d.ts +15 -0
  87. package/dist/src/user-presence-status-log/validation.d.ts.map +1 -0
  88. package/dist/src/widget/index.d.ts +31 -29
  89. package/dist/src/widget/index.d.ts.map +1 -1
  90. package/dist/src/widget/schema.d.ts +3 -3
  91. package/dist/src/wrap-up-form/index.d.ts +30 -30
  92. package/dist/src/wrap-up-form/validation.d.ts +27 -27
  93. package/dist/utils.d.ts +6 -6
  94. package/package.json +1 -1
  95. package/dist/src/app/index.d.ts +0 -17
  96. package/dist/src/app/index.d.ts.map +0 -1
  97. package/dist/src/mail/mail-server.d.ts +0 -216
  98. package/dist/src/mail/mail-server.d.ts.map +0 -1
@@ -0,0 +1,981 @@
1
+ import z from 'zod';
2
+ export declare const BaseSchema: z.ZodObject<{
3
+ isRequired: z.ZodBoolean;
4
+ attributeId: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ isRequired: boolean;
7
+ attributeId: string;
8
+ }, {
9
+ isRequired: boolean;
10
+ attributeId: string;
11
+ }>;
12
+ export declare const ContactContractValidationSchema: {
13
+ create: {
14
+ request: z.ZodObject<{
15
+ name: z.ZodObject<{
16
+ isRequired: z.ZodBoolean;
17
+ attributeId: z.ZodString;
18
+ value: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ value: string;
21
+ isRequired: boolean;
22
+ attributeId: string;
23
+ }, {
24
+ value: string;
25
+ isRequired: boolean;
26
+ attributeId: string;
27
+ }>;
28
+ email: z.ZodObject<{
29
+ isRequired: z.ZodBoolean;
30
+ attributeId: z.ZodString;
31
+ value: z.ZodArray<z.ZodObject<{
32
+ email: z.ZodString;
33
+ isPrimary: z.ZodBoolean;
34
+ }, "strip", z.ZodTypeAny, {
35
+ isPrimary: boolean;
36
+ email: string;
37
+ }, {
38
+ isPrimary: boolean;
39
+ email: string;
40
+ }>, "many">;
41
+ }, "strip", z.ZodTypeAny, {
42
+ value: {
43
+ isPrimary: boolean;
44
+ email: string;
45
+ }[];
46
+ isRequired: boolean;
47
+ attributeId: string;
48
+ }, {
49
+ value: {
50
+ isPrimary: boolean;
51
+ email: string;
52
+ }[];
53
+ isRequired: boolean;
54
+ attributeId: string;
55
+ }>;
56
+ channel: z.ZodObject<{
57
+ isRequired: z.ZodBoolean;
58
+ attributeId: z.ZodString;
59
+ value: z.ZodString;
60
+ }, "strip", z.ZodTypeAny, {
61
+ value: string;
62
+ isRequired: boolean;
63
+ attributeId: string;
64
+ }, {
65
+ value: string;
66
+ isRequired: boolean;
67
+ attributeId: string;
68
+ }>;
69
+ address: z.ZodObject<{
70
+ isRequired: z.ZodBoolean;
71
+ attributeId: z.ZodString;
72
+ value: z.ZodString;
73
+ }, "strip", z.ZodTypeAny, {
74
+ value: string;
75
+ isRequired: boolean;
76
+ attributeId: string;
77
+ }, {
78
+ value: string;
79
+ isRequired: boolean;
80
+ attributeId: string;
81
+ }>;
82
+ phone: z.ZodOptional<z.ZodObject<{
83
+ isRequired: z.ZodBoolean;
84
+ attributeId: z.ZodString;
85
+ value: z.ZodArray<z.ZodObject<{
86
+ phone: z.ZodString;
87
+ isPrimary: z.ZodBoolean;
88
+ }, "strip", z.ZodTypeAny, {
89
+ isPrimary: boolean;
90
+ phone: string;
91
+ }, {
92
+ isPrimary: boolean;
93
+ phone: string;
94
+ }>, "many">;
95
+ }, "strip", z.ZodTypeAny, {
96
+ value: {
97
+ isPrimary: boolean;
98
+ phone: string;
99
+ }[];
100
+ isRequired: boolean;
101
+ attributeId: string;
102
+ }, {
103
+ value: {
104
+ isPrimary: boolean;
105
+ phone: string;
106
+ }[];
107
+ isRequired: boolean;
108
+ attributeId: string;
109
+ }>>;
110
+ notes: z.ZodObject<{
111
+ isRequired: z.ZodBoolean;
112
+ attributeId: z.ZodString;
113
+ value: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ value: string;
116
+ isRequired: boolean;
117
+ attributeId: string;
118
+ }, {
119
+ value: string;
120
+ isRequired: boolean;
121
+ attributeId: string;
122
+ }>;
123
+ tags: z.ZodObject<{
124
+ isRequired: z.ZodBoolean;
125
+ attributeId: z.ZodString;
126
+ value: z.ZodArray<z.ZodString, "many">;
127
+ }, "strip", z.ZodTypeAny, {
128
+ value: string[];
129
+ isRequired: boolean;
130
+ attributeId: string;
131
+ }, {
132
+ value: string[];
133
+ isRequired: boolean;
134
+ attributeId: string;
135
+ }>;
136
+ company: z.ZodObject<{
137
+ isRequired: z.ZodBoolean;
138
+ attributeId: z.ZodString;
139
+ value: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ value: string;
142
+ isRequired: boolean;
143
+ attributeId: string;
144
+ }, {
145
+ value: string;
146
+ isRequired: boolean;
147
+ attributeId: string;
148
+ }>;
149
+ customFields: z.ZodArray<z.ZodObject<{
150
+ isRequired: z.ZodBoolean;
151
+ attributeId: z.ZodString;
152
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
153
+ type: z.ZodString;
154
+ isDefaultAttribute: z.ZodBoolean;
155
+ }, "strip", z.ZodTypeAny, {
156
+ type: string;
157
+ value: (string | string[]) & (string | string[] | undefined);
158
+ isRequired: boolean;
159
+ attributeId: string;
160
+ isDefaultAttribute: boolean;
161
+ }, {
162
+ type: string;
163
+ value: (string | string[]) & (string | string[] | undefined);
164
+ isRequired: boolean;
165
+ attributeId: string;
166
+ isDefaultAttribute: boolean;
167
+ }>, "many">;
168
+ }, "strip", z.ZodTypeAny, {
169
+ channel: {
170
+ value: string;
171
+ isRequired: boolean;
172
+ attributeId: string;
173
+ };
174
+ address: {
175
+ value: string;
176
+ isRequired: boolean;
177
+ attributeId: string;
178
+ };
179
+ name: {
180
+ value: string;
181
+ isRequired: boolean;
182
+ attributeId: string;
183
+ };
184
+ email: {
185
+ value: {
186
+ isPrimary: boolean;
187
+ email: string;
188
+ }[];
189
+ isRequired: boolean;
190
+ attributeId: string;
191
+ };
192
+ customFields: {
193
+ type: string;
194
+ value: (string | string[]) & (string | string[] | undefined);
195
+ isRequired: boolean;
196
+ attributeId: string;
197
+ isDefaultAttribute: boolean;
198
+ }[];
199
+ notes: {
200
+ value: string;
201
+ isRequired: boolean;
202
+ attributeId: string;
203
+ };
204
+ tags: {
205
+ value: string[];
206
+ isRequired: boolean;
207
+ attributeId: string;
208
+ };
209
+ company: {
210
+ value: string;
211
+ isRequired: boolean;
212
+ attributeId: string;
213
+ };
214
+ phone?: {
215
+ value: {
216
+ isPrimary: boolean;
217
+ phone: string;
218
+ }[];
219
+ isRequired: boolean;
220
+ attributeId: string;
221
+ } | undefined;
222
+ }, {
223
+ channel: {
224
+ value: string;
225
+ isRequired: boolean;
226
+ attributeId: string;
227
+ };
228
+ address: {
229
+ value: string;
230
+ isRequired: boolean;
231
+ attributeId: string;
232
+ };
233
+ name: {
234
+ value: string;
235
+ isRequired: boolean;
236
+ attributeId: string;
237
+ };
238
+ email: {
239
+ value: {
240
+ isPrimary: boolean;
241
+ email: string;
242
+ }[];
243
+ isRequired: boolean;
244
+ attributeId: string;
245
+ };
246
+ customFields: {
247
+ type: string;
248
+ value: (string | string[]) & (string | string[] | undefined);
249
+ isRequired: boolean;
250
+ attributeId: string;
251
+ isDefaultAttribute: boolean;
252
+ }[];
253
+ notes: {
254
+ value: string;
255
+ isRequired: boolean;
256
+ attributeId: string;
257
+ };
258
+ tags: {
259
+ value: string[];
260
+ isRequired: boolean;
261
+ attributeId: string;
262
+ };
263
+ company: {
264
+ value: string;
265
+ isRequired: boolean;
266
+ attributeId: string;
267
+ };
268
+ phone?: {
269
+ value: {
270
+ isPrimary: boolean;
271
+ phone: string;
272
+ }[];
273
+ isRequired: boolean;
274
+ attributeId: string;
275
+ } | undefined;
276
+ }>;
277
+ response: z.ZodString;
278
+ };
279
+ getById: {
280
+ request: z.ZodObject<{
281
+ id: z.ZodString;
282
+ }, "strip", z.ZodTypeAny, {
283
+ id: string;
284
+ }, {
285
+ id: string;
286
+ }>;
287
+ response: z.ZodObject<{
288
+ id: z.ZodString;
289
+ createdAt: z.ZodDate;
290
+ updatedAt: z.ZodDate;
291
+ deletedAt: z.ZodNullable<z.ZodDate>;
292
+ name: z.ZodString;
293
+ address: z.ZodNullable<z.ZodString>;
294
+ channel: z.ZodNullable<z.ZodString>;
295
+ notes: z.ZodNullable<z.ZodString>;
296
+ contactProfile: z.ZodNullable<z.ZodString>;
297
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
298
+ tags: z.ZodArray<z.ZodObject<{
299
+ id: z.ZodString;
300
+ createdAt: z.ZodDate;
301
+ updatedAt: z.ZodDate;
302
+ deletedAt: z.ZodNullable<z.ZodDate>;
303
+ name: z.ZodString;
304
+ }, "strip", z.ZodTypeAny, {
305
+ id: string;
306
+ name: string;
307
+ createdAt: Date;
308
+ updatedAt: Date;
309
+ deletedAt: Date | null;
310
+ }, {
311
+ id: string;
312
+ name: string;
313
+ createdAt: Date;
314
+ updatedAt: Date;
315
+ deletedAt: Date | null;
316
+ }>, "many">;
317
+ company: z.ZodNullable<z.ZodObject<Omit<{
318
+ id: z.ZodString;
319
+ createdAt: z.ZodDate;
320
+ updatedAt: z.ZodDate;
321
+ deletedAt: z.ZodNullable<z.ZodDate>;
322
+ name: z.ZodOptional<z.ZodString>;
323
+ phone: z.ZodOptional<z.ZodString>;
324
+ address: z.ZodOptional<z.ZodString>;
325
+ industry: z.ZodOptional<z.ZodString>;
326
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
327
+ id: z.ZodString;
328
+ createdAt: z.ZodDate;
329
+ updatedAt: z.ZodDate;
330
+ deletedAt: z.ZodNullable<z.ZodDate>;
331
+ textValue: z.ZodNullable<z.ZodString>;
332
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
333
+ numberValue: z.ZodNullable<z.ZodNumber>;
334
+ dateValue: z.ZodNullable<z.ZodString>;
335
+ attribute: z.ZodObject<Omit<{
336
+ id: z.ZodString;
337
+ createdAt: z.ZodDate;
338
+ updatedAt: z.ZodDate;
339
+ deletedAt: z.ZodNullable<z.ZodDate>;
340
+ systemName: z.ZodString;
341
+ displayName: z.ZodString;
342
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
343
+ position: z.ZodNumber;
344
+ isDefault: z.ZodBoolean;
345
+ isArchived: z.ZodBoolean;
346
+ isRequired: z.ZodBoolean;
347
+ isUnique: z.ZodBoolean;
348
+ options: z.ZodArray<z.ZodObject<{
349
+ position: z.ZodNumber;
350
+ value: z.ZodString;
351
+ label: z.ZodString;
352
+ isDefault: z.ZodBoolean;
353
+ id: z.ZodString;
354
+ }, "strip", z.ZodTypeAny, {
355
+ id: string;
356
+ position: number;
357
+ value: string;
358
+ label: string;
359
+ isDefault: boolean;
360
+ }, {
361
+ id: string;
362
+ position: number;
363
+ value: string;
364
+ label: string;
365
+ isDefault: boolean;
366
+ }>, "many">;
367
+ group: z.ZodObject<{
368
+ id: z.ZodString;
369
+ createdAt: z.ZodDate;
370
+ updatedAt: z.ZodDate;
371
+ deletedAt: z.ZodNullable<z.ZodDate>;
372
+ systemName: z.ZodString;
373
+ displayName: z.ZodString;
374
+ }, "strip", z.ZodTypeAny, {
375
+ id: string;
376
+ createdAt: Date;
377
+ updatedAt: Date;
378
+ deletedAt: Date | null;
379
+ systemName: string;
380
+ displayName: string;
381
+ }, {
382
+ id: string;
383
+ createdAt: Date;
384
+ updatedAt: Date;
385
+ deletedAt: Date | null;
386
+ systemName: string;
387
+ displayName: string;
388
+ }>;
389
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
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
+ isDefault: boolean;
397
+ systemName: string;
398
+ displayName: string;
399
+ isArchived: boolean;
400
+ isRequired: boolean;
401
+ isUnique: boolean;
402
+ }, {
403
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
404
+ id: string;
405
+ position: number;
406
+ createdAt: Date;
407
+ updatedAt: Date;
408
+ deletedAt: Date | null;
409
+ isDefault: boolean;
410
+ systemName: string;
411
+ displayName: string;
412
+ isArchived: boolean;
413
+ isRequired: boolean;
414
+ isUnique: boolean;
415
+ }>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ id: string;
418
+ createdAt: Date;
419
+ updatedAt: Date;
420
+ deletedAt: Date | null;
421
+ attribute: {
422
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
423
+ id: string;
424
+ position: number;
425
+ createdAt: Date;
426
+ updatedAt: Date;
427
+ deletedAt: Date | null;
428
+ isDefault: boolean;
429
+ systemName: string;
430
+ displayName: string;
431
+ isArchived: boolean;
432
+ isRequired: boolean;
433
+ isUnique: boolean;
434
+ };
435
+ textValue: string | null;
436
+ booleanValue: boolean | null;
437
+ numberValue: number | null;
438
+ dateValue: string | null;
439
+ }, {
440
+ id: string;
441
+ createdAt: Date;
442
+ updatedAt: Date;
443
+ deletedAt: Date | null;
444
+ attribute: {
445
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
446
+ id: string;
447
+ position: number;
448
+ createdAt: Date;
449
+ updatedAt: Date;
450
+ deletedAt: Date | null;
451
+ isDefault: boolean;
452
+ systemName: string;
453
+ displayName: string;
454
+ isArchived: boolean;
455
+ isRequired: boolean;
456
+ isUnique: boolean;
457
+ };
458
+ textValue: string | null;
459
+ booleanValue: boolean | null;
460
+ numberValue: number | null;
461
+ dateValue: string | null;
462
+ }>, "many">>;
463
+ }, "customFields">, "strip", z.ZodTypeAny, {
464
+ id: string;
465
+ createdAt: Date;
466
+ updatedAt: Date;
467
+ deletedAt: Date | null;
468
+ address?: string | undefined;
469
+ name?: string | undefined;
470
+ phone?: string | undefined;
471
+ industry?: string | undefined;
472
+ }, {
473
+ id: string;
474
+ createdAt: Date;
475
+ updatedAt: Date;
476
+ deletedAt: Date | null;
477
+ address?: string | undefined;
478
+ name?: string | undefined;
479
+ phone?: string | undefined;
480
+ industry?: string | undefined;
481
+ }>>;
482
+ customFields: z.ZodArray<z.ZodObject<{
483
+ id: z.ZodString;
484
+ createdAt: z.ZodDate;
485
+ updatedAt: z.ZodDate;
486
+ deletedAt: z.ZodNullable<z.ZodDate>;
487
+ textValue: z.ZodNullable<z.ZodString>;
488
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
489
+ numberValue: z.ZodNullable<z.ZodNumber>;
490
+ dateValue: z.ZodNullable<z.ZodDate>;
491
+ attribute: z.ZodObject<Omit<{
492
+ id: z.ZodString;
493
+ createdAt: z.ZodDate;
494
+ updatedAt: z.ZodDate;
495
+ deletedAt: z.ZodNullable<z.ZodDate>;
496
+ systemName: z.ZodString;
497
+ displayName: z.ZodString;
498
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
499
+ position: z.ZodNumber;
500
+ isDefault: z.ZodBoolean;
501
+ isArchived: z.ZodBoolean;
502
+ isRequired: z.ZodBoolean;
503
+ isUnique: z.ZodBoolean;
504
+ options: z.ZodArray<z.ZodObject<{
505
+ position: z.ZodNumber;
506
+ value: z.ZodString;
507
+ label: z.ZodString;
508
+ isDefault: z.ZodBoolean;
509
+ id: z.ZodString;
510
+ }, "strip", z.ZodTypeAny, {
511
+ id: string;
512
+ position: number;
513
+ value: string;
514
+ label: string;
515
+ isDefault: boolean;
516
+ }, {
517
+ id: string;
518
+ position: number;
519
+ value: string;
520
+ label: string;
521
+ isDefault: boolean;
522
+ }>, "many">;
523
+ group: z.ZodObject<{
524
+ id: z.ZodString;
525
+ createdAt: z.ZodDate;
526
+ updatedAt: z.ZodDate;
527
+ deletedAt: z.ZodNullable<z.ZodDate>;
528
+ systemName: z.ZodString;
529
+ displayName: z.ZodString;
530
+ }, "strip", z.ZodTypeAny, {
531
+ id: string;
532
+ createdAt: Date;
533
+ updatedAt: Date;
534
+ deletedAt: Date | null;
535
+ systemName: string;
536
+ displayName: string;
537
+ }, {
538
+ id: string;
539
+ createdAt: Date;
540
+ updatedAt: Date;
541
+ deletedAt: Date | null;
542
+ systemName: string;
543
+ displayName: string;
544
+ }>;
545
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
546
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
547
+ id: string;
548
+ position: number;
549
+ createdAt: Date;
550
+ updatedAt: Date;
551
+ deletedAt: Date | null;
552
+ isDefault: boolean;
553
+ systemName: string;
554
+ displayName: string;
555
+ isArchived: boolean;
556
+ isRequired: boolean;
557
+ isUnique: boolean;
558
+ }, {
559
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
560
+ id: string;
561
+ position: number;
562
+ createdAt: Date;
563
+ updatedAt: Date;
564
+ deletedAt: Date | null;
565
+ isDefault: boolean;
566
+ systemName: string;
567
+ displayName: string;
568
+ isArchived: boolean;
569
+ isRequired: boolean;
570
+ isUnique: boolean;
571
+ }>;
572
+ uploads: z.ZodArray<z.ZodObject<{
573
+ id: z.ZodString;
574
+ createdAt: z.ZodDate;
575
+ updatedAt: z.ZodDate;
576
+ deletedAt: z.ZodNullable<z.ZodDate>;
577
+ customFieldId: z.ZodString;
578
+ upload: z.ZodObject<{
579
+ id: z.ZodString;
580
+ createdAt: z.ZodDate;
581
+ updatedAt: z.ZodDate;
582
+ deletedAt: z.ZodNullable<z.ZodDate>;
583
+ bucketName: z.ZodString;
584
+ fileName: z.ZodString;
585
+ fileSize: z.ZodNumber;
586
+ fileKey: z.ZodString;
587
+ }, "strip", z.ZodTypeAny, {
588
+ id: string;
589
+ createdAt: Date;
590
+ updatedAt: Date;
591
+ deletedAt: Date | null;
592
+ fileName: string;
593
+ fileKey: string;
594
+ bucketName: string;
595
+ fileSize: number;
596
+ }, {
597
+ id: string;
598
+ createdAt: Date;
599
+ updatedAt: Date;
600
+ deletedAt: Date | null;
601
+ fileName: string;
602
+ fileKey: string;
603
+ bucketName: string;
604
+ fileSize: number;
605
+ }>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ id: string;
608
+ createdAt: Date;
609
+ updatedAt: Date;
610
+ deletedAt: Date | null;
611
+ customFieldId: string;
612
+ upload: {
613
+ id: string;
614
+ createdAt: Date;
615
+ updatedAt: Date;
616
+ deletedAt: Date | null;
617
+ fileName: string;
618
+ fileKey: string;
619
+ bucketName: string;
620
+ fileSize: number;
621
+ };
622
+ }, {
623
+ id: string;
624
+ createdAt: Date;
625
+ updatedAt: Date;
626
+ deletedAt: Date | null;
627
+ customFieldId: string;
628
+ upload: {
629
+ id: string;
630
+ createdAt: Date;
631
+ updatedAt: Date;
632
+ deletedAt: Date | null;
633
+ fileName: string;
634
+ fileKey: string;
635
+ bucketName: string;
636
+ fileSize: number;
637
+ };
638
+ }>, "many">;
639
+ }, "strip", z.ZodTypeAny, {
640
+ id: string;
641
+ createdAt: Date;
642
+ updatedAt: Date;
643
+ deletedAt: Date | null;
644
+ attribute: {
645
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
646
+ id: string;
647
+ position: number;
648
+ createdAt: Date;
649
+ updatedAt: Date;
650
+ deletedAt: Date | null;
651
+ isDefault: boolean;
652
+ systemName: string;
653
+ displayName: string;
654
+ isArchived: boolean;
655
+ isRequired: boolean;
656
+ isUnique: boolean;
657
+ };
658
+ textValue: string | null;
659
+ booleanValue: boolean | null;
660
+ numberValue: number | null;
661
+ dateValue: Date | null;
662
+ uploads: {
663
+ id: string;
664
+ createdAt: Date;
665
+ updatedAt: Date;
666
+ deletedAt: Date | null;
667
+ customFieldId: string;
668
+ upload: {
669
+ id: string;
670
+ createdAt: Date;
671
+ updatedAt: Date;
672
+ deletedAt: Date | null;
673
+ fileName: string;
674
+ fileKey: string;
675
+ bucketName: string;
676
+ fileSize: number;
677
+ };
678
+ }[];
679
+ }, {
680
+ id: string;
681
+ createdAt: Date;
682
+ updatedAt: Date;
683
+ deletedAt: Date | null;
684
+ attribute: {
685
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
686
+ id: string;
687
+ position: number;
688
+ createdAt: Date;
689
+ updatedAt: Date;
690
+ deletedAt: Date | null;
691
+ isDefault: boolean;
692
+ systemName: string;
693
+ displayName: string;
694
+ isArchived: boolean;
695
+ isRequired: boolean;
696
+ isUnique: boolean;
697
+ };
698
+ textValue: string | null;
699
+ booleanValue: boolean | null;
700
+ numberValue: number | null;
701
+ dateValue: Date | null;
702
+ uploads: {
703
+ id: string;
704
+ createdAt: Date;
705
+ updatedAt: Date;
706
+ deletedAt: Date | null;
707
+ customFieldId: string;
708
+ upload: {
709
+ id: string;
710
+ createdAt: Date;
711
+ updatedAt: Date;
712
+ deletedAt: Date | null;
713
+ fileName: string;
714
+ fileKey: string;
715
+ bucketName: string;
716
+ fileSize: number;
717
+ };
718
+ }[];
719
+ }>, "many">;
720
+ contactEmails: z.ZodArray<z.ZodObject<{
721
+ id: z.ZodString;
722
+ createdAt: z.ZodDate;
723
+ updatedAt: z.ZodDate;
724
+ deletedAt: z.ZodNullable<z.ZodDate>;
725
+ email: z.ZodString;
726
+ isPrimary: z.ZodBoolean;
727
+ }, "strip", z.ZodTypeAny, {
728
+ id: string;
729
+ isPrimary: boolean;
730
+ email: string;
731
+ createdAt: Date;
732
+ updatedAt: Date;
733
+ deletedAt: Date | null;
734
+ }, {
735
+ id: string;
736
+ isPrimary: boolean;
737
+ email: string;
738
+ createdAt: Date;
739
+ updatedAt: Date;
740
+ deletedAt: Date | null;
741
+ }>, "many">;
742
+ contactPhones: z.ZodArray<z.ZodObject<{
743
+ id: z.ZodString;
744
+ createdAt: z.ZodDate;
745
+ updatedAt: z.ZodDate;
746
+ deletedAt: z.ZodNullable<z.ZodDate>;
747
+ phone: z.ZodString;
748
+ isPrimary: z.ZodBoolean;
749
+ }, "strip", z.ZodTypeAny, {
750
+ id: string;
751
+ isPrimary: boolean;
752
+ createdAt: Date;
753
+ updatedAt: Date;
754
+ deletedAt: Date | null;
755
+ phone: string;
756
+ }, {
757
+ id: string;
758
+ isPrimary: boolean;
759
+ createdAt: Date;
760
+ updatedAt: Date;
761
+ deletedAt: Date | null;
762
+ phone: string;
763
+ }>, "many">;
764
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
765
+ entityId: z.ZodString;
766
+ description: z.ZodString;
767
+ entityType: z.ZodObject<{
768
+ entity: z.ZodString;
769
+ description: z.ZodNullable<z.ZodString>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ description: string | null;
772
+ entity: string;
773
+ }, {
774
+ description: string | null;
775
+ entity: string;
776
+ }>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ description: string;
779
+ entityId: string;
780
+ entityType: {
781
+ description: string | null;
782
+ entity: string;
783
+ };
784
+ }, {
785
+ description: string;
786
+ entityId: string;
787
+ entityType: {
788
+ description: string | null;
789
+ entity: string;
790
+ };
791
+ }>, "many">>;
792
+ }, "strip", z.ZodTypeAny, {
793
+ id: string;
794
+ channel: string | null;
795
+ address: string | null;
796
+ name: string;
797
+ createdAt: Date;
798
+ updatedAt: Date;
799
+ deletedAt: Date | null;
800
+ customFields: {
801
+ id: string;
802
+ createdAt: Date;
803
+ updatedAt: Date;
804
+ deletedAt: Date | null;
805
+ attribute: {
806
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
807
+ id: string;
808
+ position: number;
809
+ createdAt: Date;
810
+ updatedAt: Date;
811
+ deletedAt: Date | null;
812
+ isDefault: boolean;
813
+ systemName: string;
814
+ displayName: string;
815
+ isArchived: boolean;
816
+ isRequired: boolean;
817
+ isUnique: boolean;
818
+ };
819
+ textValue: string | null;
820
+ booleanValue: boolean | null;
821
+ numberValue: number | null;
822
+ dateValue: Date | null;
823
+ uploads: {
824
+ id: string;
825
+ createdAt: Date;
826
+ updatedAt: Date;
827
+ deletedAt: Date | null;
828
+ customFieldId: string;
829
+ upload: {
830
+ id: string;
831
+ createdAt: Date;
832
+ updatedAt: Date;
833
+ deletedAt: Date | null;
834
+ fileName: string;
835
+ fileKey: string;
836
+ bucketName: string;
837
+ fileSize: number;
838
+ };
839
+ }[];
840
+ }[];
841
+ notes: string | null;
842
+ contactProfile: string | null;
843
+ socialProfileUrl: string | null;
844
+ tags: {
845
+ id: string;
846
+ name: string;
847
+ createdAt: Date;
848
+ updatedAt: Date;
849
+ deletedAt: Date | null;
850
+ }[];
851
+ company: {
852
+ id: string;
853
+ createdAt: Date;
854
+ updatedAt: Date;
855
+ deletedAt: Date | null;
856
+ address?: string | undefined;
857
+ name?: string | undefined;
858
+ phone?: string | undefined;
859
+ industry?: string | undefined;
860
+ } | null;
861
+ contactEmails: {
862
+ id: string;
863
+ isPrimary: boolean;
864
+ email: string;
865
+ createdAt: Date;
866
+ updatedAt: Date;
867
+ deletedAt: Date | null;
868
+ }[];
869
+ contactPhones: {
870
+ id: string;
871
+ isPrimary: boolean;
872
+ createdAt: Date;
873
+ updatedAt: Date;
874
+ deletedAt: Date | null;
875
+ phone: string;
876
+ }[];
877
+ activityLogs?: {
878
+ description: string;
879
+ entityId: string;
880
+ entityType: {
881
+ description: string | null;
882
+ entity: string;
883
+ };
884
+ }[] | undefined;
885
+ }, {
886
+ id: string;
887
+ channel: string | null;
888
+ address: string | null;
889
+ name: string;
890
+ createdAt: Date;
891
+ updatedAt: Date;
892
+ deletedAt: Date | null;
893
+ customFields: {
894
+ id: string;
895
+ createdAt: Date;
896
+ updatedAt: Date;
897
+ deletedAt: Date | null;
898
+ attribute: {
899
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
900
+ id: string;
901
+ position: number;
902
+ createdAt: Date;
903
+ updatedAt: Date;
904
+ deletedAt: Date | null;
905
+ isDefault: boolean;
906
+ systemName: string;
907
+ displayName: string;
908
+ isArchived: boolean;
909
+ isRequired: boolean;
910
+ isUnique: boolean;
911
+ };
912
+ textValue: string | null;
913
+ booleanValue: boolean | null;
914
+ numberValue: number | null;
915
+ dateValue: Date | null;
916
+ uploads: {
917
+ id: string;
918
+ createdAt: Date;
919
+ updatedAt: Date;
920
+ deletedAt: Date | null;
921
+ customFieldId: string;
922
+ upload: {
923
+ id: string;
924
+ createdAt: Date;
925
+ updatedAt: Date;
926
+ deletedAt: Date | null;
927
+ fileName: string;
928
+ fileKey: string;
929
+ bucketName: string;
930
+ fileSize: number;
931
+ };
932
+ }[];
933
+ }[];
934
+ notes: string | null;
935
+ contactProfile: string | null;
936
+ socialProfileUrl: string | null;
937
+ tags: {
938
+ id: string;
939
+ name: string;
940
+ createdAt: Date;
941
+ updatedAt: Date;
942
+ deletedAt: Date | null;
943
+ }[];
944
+ company: {
945
+ id: string;
946
+ createdAt: Date;
947
+ updatedAt: Date;
948
+ deletedAt: Date | null;
949
+ address?: string | undefined;
950
+ name?: string | undefined;
951
+ phone?: string | undefined;
952
+ industry?: string | undefined;
953
+ } | null;
954
+ contactEmails: {
955
+ id: string;
956
+ isPrimary: boolean;
957
+ email: string;
958
+ createdAt: Date;
959
+ updatedAt: Date;
960
+ deletedAt: Date | null;
961
+ }[];
962
+ contactPhones: {
963
+ id: string;
964
+ isPrimary: boolean;
965
+ createdAt: Date;
966
+ updatedAt: Date;
967
+ deletedAt: Date | null;
968
+ phone: string;
969
+ }[];
970
+ activityLogs?: {
971
+ description: string;
972
+ entityId: string;
973
+ entityType: {
974
+ description: string | null;
975
+ entity: string;
976
+ };
977
+ }[] | undefined;
978
+ }>;
979
+ };
980
+ };
981
+ //# sourceMappingURL=validation.d.ts.map