@kl1/contracts 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/index.js +1725 -1047
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1725 -1047
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/call-log/schema.d.ts +8 -8
  6. package/dist/src/call-log/validation.d.ts +4 -4
  7. package/dist/src/channel/index.d.ts +23 -23
  8. package/dist/src/channel/schema.d.ts +11 -8
  9. package/dist/src/channel/schema.d.ts.map +1 -1
  10. package/dist/src/channel/validation.d.ts +3 -3
  11. package/dist/src/chat/index.d.ts +4272 -481
  12. package/dist/src/chat/index.d.ts.map +1 -1
  13. package/dist/src/chat/schema.d.ts +348 -56
  14. package/dist/src/chat/schema.d.ts.map +1 -1
  15. package/dist/src/chat/validation.d.ts +5330 -73
  16. package/dist/src/chat/validation.d.ts.map +1 -1
  17. package/dist/src/company/index.d.ts +1803 -0
  18. package/dist/src/company/index.d.ts.map +1 -0
  19. package/dist/src/company/schema.d.ts +5 -5
  20. package/dist/src/company/validation.d.ts +852 -0
  21. package/dist/src/company/validation.d.ts.map +1 -0
  22. package/dist/src/contact/index.d.ts +21 -21
  23. package/dist/src/contact/schema.d.ts +3 -3
  24. package/dist/src/contact/validation.d.ts +21 -21
  25. package/dist/src/contract.d.ts +12941 -5216
  26. package/dist/src/contract.d.ts.map +1 -1
  27. package/dist/src/cx-log/index.d.ts +129 -0
  28. package/dist/src/cx-log/index.d.ts.map +1 -1
  29. package/dist/src/cx-log/schema.d.ts +95 -0
  30. package/dist/src/cx-log/schema.d.ts.map +1 -1
  31. package/dist/src/dashboard/index.d.ts +1852 -0
  32. package/dist/src/dashboard/index.d.ts.map +1 -0
  33. package/dist/src/dashboard/schema.d.ts +885 -0
  34. package/dist/src/dashboard/schema.d.ts.map +1 -0
  35. package/dist/src/dashboard/validation.d.ts +19 -0
  36. package/dist/src/dashboard/validation.d.ts.map +1 -0
  37. package/dist/src/mail/mail-contract.d.ts +12 -12
  38. package/dist/src/mail/room-contract.d.ts +12 -12
  39. package/dist/src/mail/schemas/room-validation.schema.d.ts +4 -4
  40. package/dist/src/mail/schemas/room.schema.d.ts +2 -2
  41. package/dist/src/messenger/index.d.ts +255 -73
  42. package/dist/src/messenger/index.d.ts.map +1 -1
  43. package/dist/src/telephony-cdr/schema.d.ts +4 -4
  44. package/dist/src/telephony-live-queue-call/schema.d.ts +2 -2
  45. package/dist/src/telephony-queue-call-count/schema.d.ts +2 -2
  46. package/dist/src/ticket/index.d.ts +59 -62
  47. package/dist/src/ticket/index.d.ts.map +1 -1
  48. package/dist/src/ticket/validation.d.ts +59 -62
  49. package/dist/src/ticket/validation.d.ts.map +1 -1
  50. package/dist/src/user/index.d.ts.map +1 -1
  51. package/package.json +4 -10
  52. package/dist/src/platform-contact/schema.d.ts +0 -30
  53. package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -0,0 +1,852 @@
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 CompanyContractsValidationSchema: {
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
+ phone: z.ZodObject<{
29
+ isRequired: z.ZodBoolean;
30
+ attributeId: z.ZodString;
31
+ value: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ value: string;
34
+ isRequired: boolean;
35
+ attributeId: string;
36
+ }, {
37
+ value: string;
38
+ isRequired: boolean;
39
+ attributeId: string;
40
+ }>;
41
+ address: z.ZodObject<{
42
+ isRequired: z.ZodBoolean;
43
+ attributeId: z.ZodString;
44
+ value: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ value: string;
47
+ isRequired: boolean;
48
+ attributeId: string;
49
+ }, {
50
+ value: string;
51
+ isRequired: boolean;
52
+ attributeId: string;
53
+ }>;
54
+ industry: z.ZodObject<{
55
+ isRequired: z.ZodBoolean;
56
+ attributeId: z.ZodString;
57
+ value: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ value: string;
60
+ isRequired: boolean;
61
+ attributeId: string;
62
+ }, {
63
+ value: string;
64
+ isRequired: boolean;
65
+ attributeId: string;
66
+ }>;
67
+ customFields: z.ZodArray<z.ZodObject<{
68
+ isRequired: z.ZodBoolean;
69
+ attributeId: z.ZodString;
70
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
71
+ type: z.ZodString;
72
+ isDefaultAttribute: z.ZodBoolean;
73
+ }, "strip", z.ZodTypeAny, {
74
+ type: string;
75
+ value: (string | string[]) & (string | string[] | undefined);
76
+ isRequired: boolean;
77
+ attributeId: string;
78
+ isDefaultAttribute: boolean;
79
+ }, {
80
+ type: string;
81
+ value: (string | string[]) & (string | string[] | undefined);
82
+ isRequired: boolean;
83
+ attributeId: string;
84
+ isDefaultAttribute: boolean;
85
+ }>, "many">;
86
+ }, "strip", z.ZodTypeAny, {
87
+ address: {
88
+ value: string;
89
+ isRequired: boolean;
90
+ attributeId: string;
91
+ };
92
+ name: {
93
+ value: string;
94
+ isRequired: boolean;
95
+ attributeId: string;
96
+ };
97
+ phone: {
98
+ value: string;
99
+ isRequired: boolean;
100
+ attributeId: string;
101
+ };
102
+ industry: {
103
+ value: string;
104
+ isRequired: boolean;
105
+ attributeId: string;
106
+ };
107
+ customFields: {
108
+ type: string;
109
+ value: (string | string[]) & (string | string[] | undefined);
110
+ isRequired: boolean;
111
+ attributeId: string;
112
+ isDefaultAttribute: boolean;
113
+ }[];
114
+ }, {
115
+ address: {
116
+ value: string;
117
+ isRequired: boolean;
118
+ attributeId: string;
119
+ };
120
+ name: {
121
+ value: string;
122
+ isRequired: boolean;
123
+ attributeId: string;
124
+ };
125
+ phone: {
126
+ value: string;
127
+ isRequired: boolean;
128
+ attributeId: string;
129
+ };
130
+ industry: {
131
+ value: string;
132
+ isRequired: boolean;
133
+ attributeId: string;
134
+ };
135
+ customFields: {
136
+ type: string;
137
+ value: (string | string[]) & (string | string[] | undefined);
138
+ isRequired: boolean;
139
+ attributeId: string;
140
+ isDefaultAttribute: boolean;
141
+ }[];
142
+ }>;
143
+ response: z.ZodObject<{
144
+ id: z.ZodString;
145
+ createdAt: z.ZodDate;
146
+ updatedAt: z.ZodDate;
147
+ deletedAt: z.ZodNullable<z.ZodDate>;
148
+ name: z.ZodOptional<z.ZodString>;
149
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
153
+ id: z.ZodString;
154
+ createdAt: z.ZodDate;
155
+ updatedAt: z.ZodDate;
156
+ deletedAt: z.ZodNullable<z.ZodDate>;
157
+ textValue: z.ZodNullable<z.ZodString>;
158
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
159
+ numberValue: z.ZodNullable<z.ZodNumber>;
160
+ dateValue: z.ZodNullable<z.ZodDate>;
161
+ attribute: z.ZodObject<Omit<{
162
+ id: z.ZodString;
163
+ createdAt: z.ZodDate;
164
+ updatedAt: z.ZodDate;
165
+ deletedAt: z.ZodNullable<z.ZodDate>;
166
+ systemName: z.ZodString;
167
+ displayName: z.ZodString;
168
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
169
+ position: z.ZodNumber;
170
+ isDefault: z.ZodBoolean;
171
+ isArchived: z.ZodBoolean;
172
+ isRequired: z.ZodBoolean;
173
+ isUnique: z.ZodBoolean;
174
+ options: z.ZodArray<z.ZodObject<{
175
+ position: z.ZodNumber;
176
+ value: z.ZodString;
177
+ label: z.ZodString;
178
+ isDefault: z.ZodBoolean;
179
+ id: z.ZodString;
180
+ }, "strip", z.ZodTypeAny, {
181
+ id: string;
182
+ position: number;
183
+ value: string;
184
+ label: string;
185
+ isDefault: boolean;
186
+ }, {
187
+ id: string;
188
+ position: number;
189
+ value: string;
190
+ label: string;
191
+ isDefault: boolean;
192
+ }>, "many">;
193
+ group: z.ZodObject<{
194
+ id: z.ZodString;
195
+ createdAt: z.ZodDate;
196
+ updatedAt: z.ZodDate;
197
+ deletedAt: z.ZodNullable<z.ZodDate>;
198
+ systemName: z.ZodString;
199
+ displayName: z.ZodString;
200
+ }, "strip", z.ZodTypeAny, {
201
+ id: string;
202
+ createdAt: Date;
203
+ updatedAt: Date;
204
+ deletedAt: Date | null;
205
+ systemName: string;
206
+ displayName: string;
207
+ }, {
208
+ id: string;
209
+ createdAt: Date;
210
+ updatedAt: Date;
211
+ deletedAt: Date | null;
212
+ systemName: string;
213
+ displayName: string;
214
+ }>;
215
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
216
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
217
+ id: string;
218
+ position: number;
219
+ createdAt: Date;
220
+ updatedAt: Date;
221
+ deletedAt: Date | null;
222
+ isDefault: boolean;
223
+ systemName: string;
224
+ displayName: string;
225
+ isArchived: boolean;
226
+ isRequired: boolean;
227
+ isUnique: boolean;
228
+ }, {
229
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
230
+ id: string;
231
+ position: number;
232
+ createdAt: Date;
233
+ updatedAt: Date;
234
+ deletedAt: Date | null;
235
+ isDefault: boolean;
236
+ systemName: string;
237
+ displayName: string;
238
+ isArchived: boolean;
239
+ isRequired: boolean;
240
+ isUnique: boolean;
241
+ }>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ id: string;
244
+ createdAt: Date;
245
+ updatedAt: Date;
246
+ deletedAt: Date | null;
247
+ attribute: {
248
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
249
+ id: string;
250
+ position: number;
251
+ createdAt: Date;
252
+ updatedAt: Date;
253
+ deletedAt: Date | null;
254
+ isDefault: boolean;
255
+ systemName: string;
256
+ displayName: string;
257
+ isArchived: boolean;
258
+ isRequired: boolean;
259
+ isUnique: boolean;
260
+ };
261
+ textValue: string | null;
262
+ booleanValue: boolean | null;
263
+ numberValue: number | null;
264
+ dateValue: Date | null;
265
+ }, {
266
+ id: string;
267
+ createdAt: Date;
268
+ updatedAt: Date;
269
+ deletedAt: Date | null;
270
+ attribute: {
271
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
272
+ id: string;
273
+ position: number;
274
+ createdAt: Date;
275
+ updatedAt: Date;
276
+ deletedAt: Date | null;
277
+ isDefault: boolean;
278
+ systemName: string;
279
+ displayName: string;
280
+ isArchived: boolean;
281
+ isRequired: boolean;
282
+ isUnique: boolean;
283
+ };
284
+ textValue: string | null;
285
+ booleanValue: boolean | null;
286
+ numberValue: number | null;
287
+ dateValue: Date | null;
288
+ }>, "many">>;
289
+ }, "strip", z.ZodTypeAny, {
290
+ id: string;
291
+ createdAt: Date;
292
+ updatedAt: Date;
293
+ deletedAt: Date | null;
294
+ name?: string | undefined;
295
+ phone?: string | null | undefined;
296
+ address?: string | null | undefined;
297
+ industry?: string | null | undefined;
298
+ customFields?: {
299
+ id: string;
300
+ createdAt: Date;
301
+ updatedAt: Date;
302
+ deletedAt: Date | null;
303
+ attribute: {
304
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
305
+ id: string;
306
+ position: number;
307
+ createdAt: Date;
308
+ updatedAt: Date;
309
+ deletedAt: Date | null;
310
+ isDefault: boolean;
311
+ systemName: string;
312
+ displayName: string;
313
+ isArchived: boolean;
314
+ isRequired: boolean;
315
+ isUnique: boolean;
316
+ };
317
+ textValue: string | null;
318
+ booleanValue: boolean | null;
319
+ numberValue: number | null;
320
+ dateValue: Date | null;
321
+ }[] | undefined;
322
+ }, {
323
+ id: string;
324
+ createdAt: Date;
325
+ updatedAt: Date;
326
+ deletedAt: Date | null;
327
+ name?: string | undefined;
328
+ phone?: string | null | undefined;
329
+ address?: string | null | undefined;
330
+ industry?: string | null | undefined;
331
+ customFields?: {
332
+ id: string;
333
+ createdAt: Date;
334
+ updatedAt: Date;
335
+ deletedAt: Date | null;
336
+ attribute: {
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
+ isDefault: boolean;
344
+ systemName: string;
345
+ displayName: string;
346
+ isArchived: boolean;
347
+ isRequired: boolean;
348
+ isUnique: boolean;
349
+ };
350
+ textValue: string | null;
351
+ booleanValue: boolean | null;
352
+ numberValue: number | null;
353
+ dateValue: Date | null;
354
+ }[] | undefined;
355
+ }>;
356
+ };
357
+ getById: {
358
+ request: z.ZodObject<{
359
+ id: z.ZodString;
360
+ }, "strip", z.ZodTypeAny, {
361
+ id: string;
362
+ }, {
363
+ id: string;
364
+ }>;
365
+ response: z.ZodObject<{
366
+ id: z.ZodString;
367
+ createdAt: z.ZodDate;
368
+ updatedAt: z.ZodDate;
369
+ deletedAt: z.ZodNullable<z.ZodDate>;
370
+ name: z.ZodOptional<z.ZodString>;
371
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
373
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
375
+ id: z.ZodString;
376
+ createdAt: z.ZodDate;
377
+ updatedAt: z.ZodDate;
378
+ deletedAt: z.ZodNullable<z.ZodDate>;
379
+ textValue: z.ZodNullable<z.ZodString>;
380
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
381
+ numberValue: z.ZodNullable<z.ZodNumber>;
382
+ dateValue: z.ZodNullable<z.ZodDate>;
383
+ attribute: z.ZodObject<Omit<{
384
+ id: z.ZodString;
385
+ createdAt: z.ZodDate;
386
+ updatedAt: z.ZodDate;
387
+ deletedAt: z.ZodNullable<z.ZodDate>;
388
+ systemName: z.ZodString;
389
+ displayName: z.ZodString;
390
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
391
+ position: z.ZodNumber;
392
+ isDefault: z.ZodBoolean;
393
+ isArchived: z.ZodBoolean;
394
+ isRequired: z.ZodBoolean;
395
+ isUnique: z.ZodBoolean;
396
+ options: z.ZodArray<z.ZodObject<{
397
+ position: z.ZodNumber;
398
+ value: z.ZodString;
399
+ label: z.ZodString;
400
+ isDefault: z.ZodBoolean;
401
+ id: z.ZodString;
402
+ }, "strip", z.ZodTypeAny, {
403
+ id: string;
404
+ position: number;
405
+ value: string;
406
+ label: string;
407
+ isDefault: boolean;
408
+ }, {
409
+ id: string;
410
+ position: number;
411
+ value: string;
412
+ label: string;
413
+ isDefault: boolean;
414
+ }>, "many">;
415
+ group: z.ZodObject<{
416
+ id: z.ZodString;
417
+ createdAt: z.ZodDate;
418
+ updatedAt: z.ZodDate;
419
+ deletedAt: z.ZodNullable<z.ZodDate>;
420
+ systemName: z.ZodString;
421
+ displayName: z.ZodString;
422
+ }, "strip", z.ZodTypeAny, {
423
+ id: string;
424
+ createdAt: Date;
425
+ updatedAt: Date;
426
+ deletedAt: Date | null;
427
+ systemName: string;
428
+ displayName: string;
429
+ }, {
430
+ id: string;
431
+ createdAt: Date;
432
+ updatedAt: Date;
433
+ deletedAt: Date | null;
434
+ systemName: string;
435
+ displayName: string;
436
+ }>;
437
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
438
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
439
+ id: string;
440
+ position: number;
441
+ createdAt: Date;
442
+ updatedAt: Date;
443
+ deletedAt: Date | null;
444
+ isDefault: boolean;
445
+ systemName: string;
446
+ displayName: string;
447
+ isArchived: boolean;
448
+ isRequired: boolean;
449
+ isUnique: boolean;
450
+ }, {
451
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
452
+ id: string;
453
+ position: number;
454
+ createdAt: Date;
455
+ updatedAt: Date;
456
+ deletedAt: Date | null;
457
+ isDefault: boolean;
458
+ systemName: string;
459
+ displayName: string;
460
+ isArchived: boolean;
461
+ isRequired: boolean;
462
+ isUnique: boolean;
463
+ }>;
464
+ }, "strip", z.ZodTypeAny, {
465
+ id: string;
466
+ createdAt: Date;
467
+ updatedAt: Date;
468
+ deletedAt: Date | null;
469
+ attribute: {
470
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
471
+ id: string;
472
+ position: number;
473
+ createdAt: Date;
474
+ updatedAt: Date;
475
+ deletedAt: Date | null;
476
+ isDefault: boolean;
477
+ systemName: string;
478
+ displayName: string;
479
+ isArchived: boolean;
480
+ isRequired: boolean;
481
+ isUnique: boolean;
482
+ };
483
+ textValue: string | null;
484
+ booleanValue: boolean | null;
485
+ numberValue: number | null;
486
+ dateValue: Date | null;
487
+ }, {
488
+ id: string;
489
+ createdAt: Date;
490
+ updatedAt: Date;
491
+ deletedAt: Date | null;
492
+ attribute: {
493
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
494
+ id: string;
495
+ position: number;
496
+ createdAt: Date;
497
+ updatedAt: Date;
498
+ deletedAt: Date | null;
499
+ isDefault: boolean;
500
+ systemName: string;
501
+ displayName: string;
502
+ isArchived: boolean;
503
+ isRequired: boolean;
504
+ isUnique: boolean;
505
+ };
506
+ textValue: string | null;
507
+ booleanValue: boolean | null;
508
+ numberValue: number | null;
509
+ dateValue: Date | null;
510
+ }>, "many">>;
511
+ }, "strip", z.ZodTypeAny, {
512
+ id: string;
513
+ createdAt: Date;
514
+ updatedAt: Date;
515
+ deletedAt: Date | null;
516
+ name?: string | undefined;
517
+ phone?: string | null | undefined;
518
+ address?: string | null | undefined;
519
+ industry?: string | null | undefined;
520
+ customFields?: {
521
+ id: string;
522
+ createdAt: Date;
523
+ updatedAt: Date;
524
+ deletedAt: Date | null;
525
+ attribute: {
526
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
527
+ id: string;
528
+ position: number;
529
+ createdAt: Date;
530
+ updatedAt: Date;
531
+ deletedAt: Date | null;
532
+ isDefault: boolean;
533
+ systemName: string;
534
+ displayName: string;
535
+ isArchived: boolean;
536
+ isRequired: boolean;
537
+ isUnique: boolean;
538
+ };
539
+ textValue: string | null;
540
+ booleanValue: boolean | null;
541
+ numberValue: number | null;
542
+ dateValue: Date | null;
543
+ }[] | undefined;
544
+ }, {
545
+ id: string;
546
+ createdAt: Date;
547
+ updatedAt: Date;
548
+ deletedAt: Date | null;
549
+ name?: string | undefined;
550
+ phone?: string | null | undefined;
551
+ address?: string | null | undefined;
552
+ industry?: string | null | undefined;
553
+ customFields?: {
554
+ id: string;
555
+ createdAt: Date;
556
+ updatedAt: Date;
557
+ deletedAt: Date | null;
558
+ attribute: {
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
+ textValue: string | null;
573
+ booleanValue: boolean | null;
574
+ numberValue: number | null;
575
+ dateValue: Date | null;
576
+ }[] | undefined;
577
+ }>;
578
+ };
579
+ getAll: {
580
+ request: z.ZodObject<{
581
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
582
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
583
+ keyword: z.ZodOptional<z.ZodOptional<z.ZodString>>;
584
+ industry: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
585
+ name: z.ZodOptional<z.ZodString>;
586
+ address: z.ZodOptional<z.ZodString>;
587
+ phone: z.ZodOptional<z.ZodString>;
588
+ selectedDate: z.ZodOptional<z.ZodString>;
589
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
590
+ attributeId: z.ZodString;
591
+ type: z.ZodString;
592
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ type: string;
595
+ value: (string | string[]) & (string | string[] | undefined);
596
+ attributeId: string;
597
+ }, {
598
+ type: string;
599
+ value: (string | string[]) & (string | string[] | undefined);
600
+ attributeId: string;
601
+ }>, "many">>;
602
+ }, "strip", z.ZodTypeAny, {
603
+ page?: number | undefined;
604
+ pageSize?: number | undefined;
605
+ keyword?: string | undefined;
606
+ industry?: string[] | undefined;
607
+ name?: string | undefined;
608
+ address?: string | undefined;
609
+ phone?: string | undefined;
610
+ selectedDate?: string | undefined;
611
+ customFields?: {
612
+ type: string;
613
+ value: (string | string[]) & (string | string[] | undefined);
614
+ attributeId: string;
615
+ }[] | undefined;
616
+ }, {
617
+ page?: number | undefined;
618
+ pageSize?: number | undefined;
619
+ keyword?: string | undefined;
620
+ industry?: string[] | undefined;
621
+ name?: string | undefined;
622
+ address?: string | undefined;
623
+ phone?: string | undefined;
624
+ selectedDate?: string | undefined;
625
+ customFields?: {
626
+ type: string;
627
+ value: (string | string[]) & (string | string[] | undefined);
628
+ attributeId: string;
629
+ }[] | undefined;
630
+ }>;
631
+ response: {
632
+ page: z.ZodNumber;
633
+ pageSize: z.ZodNumber;
634
+ total: z.ZodNumber;
635
+ lastPage: z.ZodNumber;
636
+ data: z.ZodArray<z.ZodObject<{
637
+ id: z.ZodString;
638
+ createdAt: z.ZodDate;
639
+ updatedAt: z.ZodDate;
640
+ deletedAt: z.ZodNullable<z.ZodDate>;
641
+ name: z.ZodOptional<z.ZodString>;
642
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
643
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
644
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
645
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
646
+ id: z.ZodString;
647
+ createdAt: z.ZodDate;
648
+ updatedAt: z.ZodDate;
649
+ deletedAt: z.ZodNullable<z.ZodDate>;
650
+ textValue: z.ZodNullable<z.ZodString>;
651
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
652
+ numberValue: z.ZodNullable<z.ZodNumber>;
653
+ dateValue: z.ZodNullable<z.ZodDate>;
654
+ attribute: z.ZodObject<Omit<{
655
+ id: z.ZodString;
656
+ createdAt: z.ZodDate;
657
+ updatedAt: z.ZodDate;
658
+ deletedAt: z.ZodNullable<z.ZodDate>;
659
+ systemName: z.ZodString;
660
+ displayName: z.ZodString;
661
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
662
+ position: z.ZodNumber;
663
+ isDefault: z.ZodBoolean;
664
+ isArchived: z.ZodBoolean;
665
+ isRequired: z.ZodBoolean;
666
+ isUnique: z.ZodBoolean;
667
+ options: z.ZodArray<z.ZodObject<{
668
+ position: z.ZodNumber;
669
+ value: z.ZodString;
670
+ label: z.ZodString;
671
+ isDefault: z.ZodBoolean;
672
+ id: z.ZodString;
673
+ }, "strip", z.ZodTypeAny, {
674
+ id: string;
675
+ position: number;
676
+ value: string;
677
+ label: string;
678
+ isDefault: boolean;
679
+ }, {
680
+ id: string;
681
+ position: number;
682
+ value: string;
683
+ label: string;
684
+ isDefault: boolean;
685
+ }>, "many">;
686
+ group: z.ZodObject<{
687
+ id: z.ZodString;
688
+ createdAt: z.ZodDate;
689
+ updatedAt: z.ZodDate;
690
+ deletedAt: z.ZodNullable<z.ZodDate>;
691
+ systemName: z.ZodString;
692
+ displayName: z.ZodString;
693
+ }, "strip", z.ZodTypeAny, {
694
+ id: string;
695
+ createdAt: Date;
696
+ updatedAt: Date;
697
+ deletedAt: Date | null;
698
+ systemName: string;
699
+ displayName: string;
700
+ }, {
701
+ id: string;
702
+ createdAt: Date;
703
+ updatedAt: Date;
704
+ deletedAt: Date | null;
705
+ systemName: string;
706
+ displayName: string;
707
+ }>;
708
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
709
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
710
+ id: string;
711
+ position: number;
712
+ createdAt: Date;
713
+ updatedAt: Date;
714
+ deletedAt: Date | null;
715
+ isDefault: boolean;
716
+ systemName: string;
717
+ displayName: string;
718
+ isArchived: boolean;
719
+ isRequired: boolean;
720
+ isUnique: boolean;
721
+ }, {
722
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
723
+ id: string;
724
+ position: number;
725
+ createdAt: Date;
726
+ updatedAt: Date;
727
+ deletedAt: Date | null;
728
+ isDefault: boolean;
729
+ systemName: string;
730
+ displayName: string;
731
+ isArchived: boolean;
732
+ isRequired: boolean;
733
+ isUnique: boolean;
734
+ }>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ id: string;
737
+ createdAt: Date;
738
+ updatedAt: Date;
739
+ deletedAt: Date | null;
740
+ attribute: {
741
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
742
+ id: string;
743
+ position: number;
744
+ createdAt: Date;
745
+ updatedAt: Date;
746
+ deletedAt: Date | null;
747
+ isDefault: boolean;
748
+ systemName: string;
749
+ displayName: string;
750
+ isArchived: boolean;
751
+ isRequired: boolean;
752
+ isUnique: boolean;
753
+ };
754
+ textValue: string | null;
755
+ booleanValue: boolean | null;
756
+ numberValue: number | null;
757
+ dateValue: Date | null;
758
+ }, {
759
+ id: string;
760
+ createdAt: Date;
761
+ updatedAt: Date;
762
+ deletedAt: Date | null;
763
+ attribute: {
764
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
765
+ id: string;
766
+ position: number;
767
+ createdAt: Date;
768
+ updatedAt: Date;
769
+ deletedAt: Date | null;
770
+ isDefault: boolean;
771
+ systemName: string;
772
+ displayName: string;
773
+ isArchived: boolean;
774
+ isRequired: boolean;
775
+ isUnique: boolean;
776
+ };
777
+ textValue: string | null;
778
+ booleanValue: boolean | null;
779
+ numberValue: number | null;
780
+ dateValue: Date | null;
781
+ }>, "many">>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ id: string;
784
+ createdAt: Date;
785
+ updatedAt: Date;
786
+ deletedAt: Date | null;
787
+ name?: string | undefined;
788
+ phone?: string | null | undefined;
789
+ address?: string | null | undefined;
790
+ industry?: string | null | undefined;
791
+ customFields?: {
792
+ id: string;
793
+ createdAt: Date;
794
+ updatedAt: Date;
795
+ deletedAt: Date | null;
796
+ attribute: {
797
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
798
+ id: string;
799
+ position: number;
800
+ createdAt: Date;
801
+ updatedAt: Date;
802
+ deletedAt: Date | null;
803
+ isDefault: boolean;
804
+ systemName: string;
805
+ displayName: string;
806
+ isArchived: boolean;
807
+ isRequired: boolean;
808
+ isUnique: boolean;
809
+ };
810
+ textValue: string | null;
811
+ booleanValue: boolean | null;
812
+ numberValue: number | null;
813
+ dateValue: Date | null;
814
+ }[] | undefined;
815
+ }, {
816
+ id: string;
817
+ createdAt: Date;
818
+ updatedAt: Date;
819
+ deletedAt: Date | null;
820
+ name?: string | undefined;
821
+ phone?: string | null | undefined;
822
+ address?: string | null | undefined;
823
+ industry?: string | null | undefined;
824
+ customFields?: {
825
+ id: string;
826
+ createdAt: Date;
827
+ updatedAt: Date;
828
+ deletedAt: Date | null;
829
+ attribute: {
830
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
831
+ id: string;
832
+ position: number;
833
+ createdAt: Date;
834
+ updatedAt: Date;
835
+ deletedAt: Date | null;
836
+ isDefault: boolean;
837
+ systemName: string;
838
+ displayName: string;
839
+ isArchived: boolean;
840
+ isRequired: boolean;
841
+ isUnique: boolean;
842
+ };
843
+ textValue: string | null;
844
+ booleanValue: boolean | null;
845
+ numberValue: number | null;
846
+ dateValue: Date | null;
847
+ }[] | undefined;
848
+ }>, "many">;
849
+ };
850
+ };
851
+ };
852
+ //# sourceMappingURL=validation.d.ts.map