@kl1/contracts 1.0.19 → 1.0.21

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