@kl1/contracts 1.0.10 → 1.0.12

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 (94) hide show
  1. package/dist/index.js +1474 -1068
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1470 -1067
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/auth/index.d.ts +34 -24
  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/channel/index.d.ts +1357 -0
  10. package/dist/src/channel/index.d.ts.map +1 -0
  11. package/dist/src/channel/schema.d.ts +385 -0
  12. package/dist/src/channel/schema.d.ts.map +1 -0
  13. package/dist/src/channel/validation.d.ts +337 -0
  14. package/dist/src/channel/validation.d.ts.map +1 -0
  15. package/dist/src/chat/index.d.ts +25911 -10496
  16. package/dist/src/chat/index.d.ts.map +1 -1
  17. package/dist/src/chat/schema.d.ts +6196 -1168
  18. package/dist/src/chat/schema.d.ts.map +1 -1
  19. package/dist/src/chat/validation.d.ts +7755 -479
  20. package/dist/src/chat/validation.d.ts.map +1 -1
  21. package/dist/src/company/schema.d.ts +197 -12
  22. package/dist/src/company/schema.d.ts.map +1 -1
  23. package/dist/src/contact/index.d.ts +2667 -0
  24. package/dist/src/contact/index.d.ts.map +1 -0
  25. package/dist/src/contact/schema.d.ts +1070 -6
  26. package/dist/src/contact/schema.d.ts.map +1 -1
  27. package/dist/src/contact/validation.d.ts +1029 -0
  28. package/dist/src/contact/validation.d.ts.map +1 -0
  29. package/dist/src/contract.d.ts +51287 -23157
  30. package/dist/src/contract.d.ts.map +1 -1
  31. package/dist/src/custom-field-upload/schema.d.ts +2 -2
  32. package/dist/src/cx-log/index.d.ts +4 -4
  33. package/dist/src/cx-log/schema.d.ts +2 -2
  34. package/dist/src/extension/index.d.ts +220 -54
  35. package/dist/src/extension/index.d.ts.map +1 -1
  36. package/dist/src/extension/schema.d.ts +6 -6
  37. package/dist/src/extension/schema.d.ts.map +1 -1
  38. package/dist/src/extension/validation.d.ts +6 -12
  39. package/dist/src/extension/validation.d.ts.map +1 -1
  40. package/dist/src/index.d.ts +1 -0
  41. package/dist/src/index.d.ts.map +1 -1
  42. package/dist/src/mail/account-contract.d.ts +2 -2
  43. package/dist/src/mail/mail-contract.d.ts +2865 -3701
  44. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  45. package/dist/src/mail/message-contract.d.ts +18 -18
  46. package/dist/src/mail/room-contract.d.ts +2854 -3690
  47. package/dist/src/mail/room-contract.d.ts.map +1 -1
  48. package/dist/src/mail/schemas/account-validation.schema.d.ts +2 -2
  49. package/dist/src/mail/schemas/message-validation.schema.d.ts +12 -12
  50. package/dist/src/mail/schemas/message.schema.d.ts +4 -4
  51. package/dist/src/mail/schemas/room-validation.schema.d.ts +64 -64
  52. package/dist/src/mail/schemas/room.schema.d.ts +50 -50
  53. package/dist/src/messenger/index.d.ts +7617 -0
  54. package/dist/src/messenger/index.d.ts.map +1 -0
  55. package/dist/src/messenger/schema.d.ts +2 -0
  56. package/dist/src/messenger/schema.d.ts.map +1 -0
  57. package/dist/src/messenger/validation.d.ts +2 -0
  58. package/dist/src/messenger/validation.d.ts.map +1 -0
  59. package/dist/src/permission/index.d.ts +2 -0
  60. package/dist/src/permission/index.d.ts.map +1 -1
  61. package/dist/src/permission/schema.d.ts.map +1 -1
  62. package/dist/src/role/schema.d.ts.map +1 -1
  63. package/dist/src/telephony-agent-presence-status/index.d.ts +1376 -0
  64. package/dist/src/telephony-agent-presence-status/index.d.ts.map +1 -0
  65. package/dist/src/telephony-agent-presence-status/schema.d.ts +366 -0
  66. package/dist/src/telephony-agent-presence-status/schema.d.ts.map +1 -0
  67. package/dist/src/telephony-agent-presence-status/validation.d.ts +18 -0
  68. package/dist/src/telephony-agent-presence-status/validation.d.ts.map +1 -0
  69. package/dist/src/telephony-extension/index.d.ts +5 -5
  70. package/dist/src/telephony-extension/schema.d.ts +5 -5
  71. package/dist/src/tenant/schema.d.ts +36 -0
  72. package/dist/src/tenant/schema.d.ts.map +1 -0
  73. package/dist/src/upload/schema.d.ts +4 -4
  74. package/dist/src/user/index.d.ts +119 -85
  75. package/dist/src/user/index.d.ts.map +1 -1
  76. package/dist/src/user/schema.d.ts +22 -16
  77. package/dist/src/user/schema.d.ts.map +1 -1
  78. package/dist/src/user/validation.d.ts +5 -5
  79. package/dist/src/user-presence-status-log/index.d.ts +342 -0
  80. package/dist/src/user-presence-status-log/index.d.ts.map +1 -0
  81. package/dist/src/user-presence-status-log/schema.d.ts +382 -0
  82. package/dist/src/user-presence-status-log/schema.d.ts.map +1 -0
  83. package/dist/src/user-presence-status-log/validation.d.ts +15 -0
  84. package/dist/src/user-presence-status-log/validation.d.ts.map +1 -0
  85. package/dist/src/widget/index.d.ts +28 -26
  86. package/dist/src/widget/index.d.ts.map +1 -1
  87. package/dist/src/widget/schema.d.ts +3 -3
  88. package/dist/src/wrap-up-form/index.d.ts +3 -3
  89. package/dist/src/wrap-up-form/validation.d.ts +3 -3
  90. package/package.json +46 -46
  91. package/dist/src/app/index.d.ts +0 -17
  92. package/dist/src/app/index.d.ts.map +0 -1
  93. package/dist/src/mail/mail-server.d.ts +0 -216
  94. package/dist/src/mail/mail-server.d.ts.map +0 -1
@@ -0,0 +1,1029 @@
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.ZodNullable<z.ZodString>>;
324
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
+ industry: z.ZodOptional<z.ZodNullable<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 | null | undefined;
469
+ name?: string | undefined;
470
+ phone?: string | null | undefined;
471
+ industry?: string | null | undefined;
472
+ }, {
473
+ id: string;
474
+ createdAt: Date;
475
+ updatedAt: Date;
476
+ deletedAt: Date | null;
477
+ address?: string | null | undefined;
478
+ name?: string | undefined;
479
+ phone?: string | null | undefined;
480
+ industry?: string | null | 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
+ id: z.ZodString;
766
+ createdAt: z.ZodDate;
767
+ updatedAt: z.ZodDate;
768
+ deletedAt: z.ZodNullable<z.ZodDate>;
769
+ entityId: z.ZodString;
770
+ description: z.ZodString;
771
+ entityType: z.ZodObject<{
772
+ id: z.ZodString;
773
+ createdAt: z.ZodDate;
774
+ updatedAt: z.ZodDate;
775
+ deletedAt: z.ZodNullable<z.ZodDate>;
776
+ entity: z.ZodString;
777
+ description: z.ZodNullable<z.ZodString>;
778
+ }, "strip", z.ZodTypeAny, {
779
+ id: string;
780
+ description: string | null;
781
+ createdAt: Date;
782
+ updatedAt: Date;
783
+ deletedAt: Date | null;
784
+ entity: string;
785
+ }, {
786
+ id: string;
787
+ description: string | null;
788
+ createdAt: Date;
789
+ updatedAt: Date;
790
+ deletedAt: Date | null;
791
+ entity: string;
792
+ }>;
793
+ }, "strip", z.ZodTypeAny, {
794
+ id: string;
795
+ description: string;
796
+ createdAt: Date;
797
+ updatedAt: Date;
798
+ deletedAt: Date | null;
799
+ entityId: string;
800
+ entityType: {
801
+ id: string;
802
+ description: string | null;
803
+ createdAt: Date;
804
+ updatedAt: Date;
805
+ deletedAt: Date | null;
806
+ entity: string;
807
+ };
808
+ }, {
809
+ id: string;
810
+ description: string;
811
+ createdAt: Date;
812
+ updatedAt: Date;
813
+ deletedAt: Date | null;
814
+ entityId: string;
815
+ entityType: {
816
+ id: string;
817
+ description: string | null;
818
+ createdAt: Date;
819
+ updatedAt: Date;
820
+ deletedAt: Date | null;
821
+ entity: string;
822
+ };
823
+ }>, "many">>;
824
+ }, "strip", z.ZodTypeAny, {
825
+ id: string;
826
+ channel: string | null;
827
+ address: string | null;
828
+ name: string;
829
+ createdAt: Date;
830
+ updatedAt: Date;
831
+ deletedAt: Date | null;
832
+ customFields: {
833
+ id: string;
834
+ createdAt: Date;
835
+ updatedAt: Date;
836
+ deletedAt: Date | null;
837
+ attribute: {
838
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
839
+ id: string;
840
+ position: number;
841
+ createdAt: Date;
842
+ updatedAt: Date;
843
+ deletedAt: Date | null;
844
+ isDefault: boolean;
845
+ systemName: string;
846
+ displayName: string;
847
+ isArchived: boolean;
848
+ isRequired: boolean;
849
+ isUnique: boolean;
850
+ };
851
+ textValue: string | null;
852
+ booleanValue: boolean | null;
853
+ numberValue: number | null;
854
+ dateValue: Date | null;
855
+ uploads: {
856
+ id: string;
857
+ createdAt: Date;
858
+ updatedAt: Date;
859
+ deletedAt: Date | null;
860
+ customFieldId: string;
861
+ upload: {
862
+ id: string;
863
+ createdAt: Date;
864
+ updatedAt: Date;
865
+ deletedAt: Date | null;
866
+ fileName: string;
867
+ fileKey: string;
868
+ bucketName: string;
869
+ fileSize: number;
870
+ };
871
+ }[];
872
+ }[];
873
+ notes: string | null;
874
+ contactProfile: string | null;
875
+ socialProfileUrl: string | null;
876
+ tags: {
877
+ id: string;
878
+ name: string;
879
+ createdAt: Date;
880
+ updatedAt: Date;
881
+ deletedAt: Date | null;
882
+ }[];
883
+ company: {
884
+ id: string;
885
+ createdAt: Date;
886
+ updatedAt: Date;
887
+ deletedAt: Date | null;
888
+ address?: string | null | undefined;
889
+ name?: string | undefined;
890
+ phone?: string | null | undefined;
891
+ industry?: string | null | undefined;
892
+ } | null;
893
+ contactEmails: {
894
+ id: string;
895
+ isPrimary: boolean;
896
+ email: string;
897
+ createdAt: Date;
898
+ updatedAt: Date;
899
+ deletedAt: Date | null;
900
+ }[];
901
+ contactPhones: {
902
+ id: string;
903
+ isPrimary: boolean;
904
+ createdAt: Date;
905
+ updatedAt: Date;
906
+ deletedAt: Date | null;
907
+ phone: string;
908
+ }[];
909
+ activityLogs?: {
910
+ id: string;
911
+ description: string;
912
+ createdAt: Date;
913
+ updatedAt: Date;
914
+ deletedAt: Date | null;
915
+ entityId: string;
916
+ entityType: {
917
+ id: string;
918
+ description: string | null;
919
+ createdAt: Date;
920
+ updatedAt: Date;
921
+ deletedAt: Date | null;
922
+ entity: string;
923
+ };
924
+ }[] | undefined;
925
+ }, {
926
+ id: string;
927
+ channel: string | null;
928
+ address: string | null;
929
+ name: string;
930
+ createdAt: Date;
931
+ updatedAt: Date;
932
+ deletedAt: Date | null;
933
+ customFields: {
934
+ id: string;
935
+ createdAt: Date;
936
+ updatedAt: Date;
937
+ deletedAt: Date | null;
938
+ attribute: {
939
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
940
+ id: string;
941
+ position: number;
942
+ createdAt: Date;
943
+ updatedAt: Date;
944
+ deletedAt: Date | null;
945
+ isDefault: boolean;
946
+ systemName: string;
947
+ displayName: string;
948
+ isArchived: boolean;
949
+ isRequired: boolean;
950
+ isUnique: boolean;
951
+ };
952
+ textValue: string | null;
953
+ booleanValue: boolean | null;
954
+ numberValue: number | null;
955
+ dateValue: Date | null;
956
+ uploads: {
957
+ id: string;
958
+ createdAt: Date;
959
+ updatedAt: Date;
960
+ deletedAt: Date | null;
961
+ customFieldId: string;
962
+ upload: {
963
+ id: string;
964
+ createdAt: Date;
965
+ updatedAt: Date;
966
+ deletedAt: Date | null;
967
+ fileName: string;
968
+ fileKey: string;
969
+ bucketName: string;
970
+ fileSize: number;
971
+ };
972
+ }[];
973
+ }[];
974
+ notes: string | null;
975
+ contactProfile: string | null;
976
+ socialProfileUrl: string | null;
977
+ tags: {
978
+ id: string;
979
+ name: string;
980
+ createdAt: Date;
981
+ updatedAt: Date;
982
+ deletedAt: Date | null;
983
+ }[];
984
+ company: {
985
+ id: string;
986
+ createdAt: Date;
987
+ updatedAt: Date;
988
+ deletedAt: Date | null;
989
+ address?: string | null | undefined;
990
+ name?: string | undefined;
991
+ phone?: string | null | undefined;
992
+ industry?: string | null | undefined;
993
+ } | null;
994
+ contactEmails: {
995
+ id: string;
996
+ isPrimary: boolean;
997
+ email: string;
998
+ createdAt: Date;
999
+ updatedAt: Date;
1000
+ deletedAt: Date | null;
1001
+ }[];
1002
+ contactPhones: {
1003
+ id: string;
1004
+ isPrimary: boolean;
1005
+ createdAt: Date;
1006
+ updatedAt: Date;
1007
+ deletedAt: Date | null;
1008
+ phone: string;
1009
+ }[];
1010
+ activityLogs?: {
1011
+ id: string;
1012
+ description: string;
1013
+ createdAt: Date;
1014
+ updatedAt: Date;
1015
+ deletedAt: Date | null;
1016
+ entityId: string;
1017
+ entityType: {
1018
+ id: string;
1019
+ description: string | null;
1020
+ createdAt: Date;
1021
+ updatedAt: Date;
1022
+ deletedAt: Date | null;
1023
+ entity: string;
1024
+ };
1025
+ }[] | undefined;
1026
+ }>;
1027
+ };
1028
+ };
1029
+ //# sourceMappingURL=validation.d.ts.map