@kl1/contracts 1.0.38 → 1.0.40

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.
@@ -12,6 +12,783 @@ export declare const TelephonyCdrSchema: z.ZodObject<{
12
12
  talkDuration: z.ZodNullable<z.ZodNumber>;
13
13
  srcTrunkName: z.ZodNullable<z.ZodString>;
14
14
  dstTrunkName: z.ZodNullable<z.ZodString>;
15
+ contact: z.ZodOptional<z.ZodObject<{
16
+ id: z.ZodString;
17
+ createdAt: z.ZodDate;
18
+ updatedAt: z.ZodDate;
19
+ deletedAt: z.ZodNullable<z.ZodDate>;
20
+ name: z.ZodString;
21
+ address: z.ZodNullable<z.ZodString>;
22
+ channel: z.ZodNullable<z.ZodString>;
23
+ notes: z.ZodNullable<z.ZodString>;
24
+ contactProfile: z.ZodNullable<z.ZodString>;
25
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
26
+ tags: z.ZodArray<z.ZodObject<{
27
+ id: z.ZodString;
28
+ createdAt: z.ZodDate;
29
+ updatedAt: z.ZodDate;
30
+ deletedAt: z.ZodNullable<z.ZodDate>;
31
+ name: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ id: string;
34
+ name: string;
35
+ createdAt: Date;
36
+ updatedAt: Date;
37
+ deletedAt: Date | null;
38
+ }, {
39
+ id: string;
40
+ name: string;
41
+ createdAt: Date;
42
+ updatedAt: Date;
43
+ deletedAt: Date | null;
44
+ }>, "many">;
45
+ company: z.ZodNullable<z.ZodObject<Omit<{
46
+ id: z.ZodString;
47
+ createdAt: z.ZodDate;
48
+ updatedAt: z.ZodDate;
49
+ deletedAt: z.ZodNullable<z.ZodDate>;
50
+ name: z.ZodOptional<z.ZodString>;
51
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
55
+ id: z.ZodString;
56
+ createdAt: z.ZodDate;
57
+ updatedAt: z.ZodDate;
58
+ deletedAt: z.ZodNullable<z.ZodDate>;
59
+ textValue: z.ZodNullable<z.ZodString>;
60
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
61
+ numberValue: z.ZodNullable<z.ZodNumber>;
62
+ dateValue: z.ZodNullable<z.ZodDate>;
63
+ attribute: z.ZodObject<Omit<{
64
+ id: z.ZodString;
65
+ createdAt: z.ZodDate;
66
+ updatedAt: z.ZodDate;
67
+ deletedAt: z.ZodNullable<z.ZodDate>;
68
+ systemName: z.ZodString;
69
+ displayName: z.ZodString;
70
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
71
+ position: z.ZodNumber;
72
+ isDefault: z.ZodBoolean;
73
+ isArchived: z.ZodBoolean;
74
+ isRequired: z.ZodBoolean;
75
+ isUnique: z.ZodBoolean;
76
+ options: z.ZodArray<z.ZodObject<{
77
+ position: z.ZodNumber;
78
+ value: z.ZodString;
79
+ label: z.ZodString;
80
+ isDefault: z.ZodBoolean;
81
+ id: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ id: string;
84
+ position: number;
85
+ value: string;
86
+ label: string;
87
+ isDefault: boolean;
88
+ }, {
89
+ id: string;
90
+ position: number;
91
+ value: string;
92
+ label: string;
93
+ isDefault: boolean;
94
+ }>, "many">;
95
+ group: z.ZodObject<{
96
+ id: z.ZodString;
97
+ createdAt: z.ZodDate;
98
+ updatedAt: z.ZodDate;
99
+ deletedAt: z.ZodNullable<z.ZodDate>;
100
+ systemName: z.ZodString;
101
+ displayName: z.ZodString;
102
+ }, "strip", z.ZodTypeAny, {
103
+ id: string;
104
+ createdAt: Date;
105
+ updatedAt: Date;
106
+ deletedAt: Date | null;
107
+ systemName: string;
108
+ displayName: string;
109
+ }, {
110
+ id: string;
111
+ createdAt: Date;
112
+ updatedAt: Date;
113
+ deletedAt: Date | null;
114
+ systemName: string;
115
+ displayName: string;
116
+ }>;
117
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
118
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
119
+ id: string;
120
+ position: number;
121
+ createdAt: Date;
122
+ updatedAt: Date;
123
+ deletedAt: Date | null;
124
+ isDefault: boolean;
125
+ systemName: string;
126
+ displayName: string;
127
+ isArchived: boolean;
128
+ isRequired: boolean;
129
+ isUnique: boolean;
130
+ }, {
131
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
132
+ id: string;
133
+ position: number;
134
+ createdAt: Date;
135
+ updatedAt: Date;
136
+ deletedAt: Date | null;
137
+ isDefault: boolean;
138
+ systemName: string;
139
+ displayName: string;
140
+ isArchived: boolean;
141
+ isRequired: boolean;
142
+ isUnique: boolean;
143
+ }>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ id: string;
146
+ createdAt: Date;
147
+ updatedAt: Date;
148
+ deletedAt: Date | null;
149
+ attribute: {
150
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
151
+ id: string;
152
+ position: number;
153
+ createdAt: Date;
154
+ updatedAt: Date;
155
+ deletedAt: Date | null;
156
+ isDefault: boolean;
157
+ systemName: string;
158
+ displayName: string;
159
+ isArchived: boolean;
160
+ isRequired: boolean;
161
+ isUnique: boolean;
162
+ };
163
+ textValue: string | null;
164
+ booleanValue: boolean | null;
165
+ numberValue: number | null;
166
+ dateValue: Date | null;
167
+ }, {
168
+ id: string;
169
+ createdAt: Date;
170
+ updatedAt: Date;
171
+ deletedAt: Date | null;
172
+ attribute: {
173
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
174
+ id: string;
175
+ position: number;
176
+ createdAt: Date;
177
+ updatedAt: Date;
178
+ deletedAt: Date | null;
179
+ isDefault: boolean;
180
+ systemName: string;
181
+ displayName: string;
182
+ isArchived: boolean;
183
+ isRequired: boolean;
184
+ isUnique: boolean;
185
+ };
186
+ textValue: string | null;
187
+ booleanValue: boolean | null;
188
+ numberValue: number | null;
189
+ dateValue: Date | null;
190
+ }>, "many">>;
191
+ }, "customFields">, "strip", z.ZodTypeAny, {
192
+ id: string;
193
+ createdAt: Date;
194
+ updatedAt: Date;
195
+ deletedAt: Date | null;
196
+ address?: string | null | undefined;
197
+ name?: string | undefined;
198
+ phone?: string | null | undefined;
199
+ industry?: string | null | undefined;
200
+ }, {
201
+ id: string;
202
+ createdAt: Date;
203
+ updatedAt: Date;
204
+ deletedAt: Date | null;
205
+ address?: string | null | undefined;
206
+ name?: string | undefined;
207
+ phone?: string | null | undefined;
208
+ industry?: string | null | undefined;
209
+ }>>;
210
+ customFields: z.ZodArray<z.ZodObject<{
211
+ id: z.ZodString;
212
+ createdAt: z.ZodDate;
213
+ updatedAt: z.ZodDate;
214
+ deletedAt: z.ZodNullable<z.ZodDate>;
215
+ textValue: z.ZodNullable<z.ZodString>;
216
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
217
+ numberValue: z.ZodNullable<z.ZodNumber>;
218
+ dateValue: z.ZodNullable<z.ZodDate>;
219
+ attribute: z.ZodObject<Omit<{
220
+ id: z.ZodString;
221
+ createdAt: z.ZodDate;
222
+ updatedAt: z.ZodDate;
223
+ deletedAt: z.ZodNullable<z.ZodDate>;
224
+ systemName: z.ZodString;
225
+ displayName: z.ZodString;
226
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
227
+ position: z.ZodNumber;
228
+ isDefault: z.ZodBoolean;
229
+ isArchived: z.ZodBoolean;
230
+ isRequired: z.ZodBoolean;
231
+ isUnique: z.ZodBoolean;
232
+ options: z.ZodArray<z.ZodObject<{
233
+ position: z.ZodNumber;
234
+ value: z.ZodString;
235
+ label: z.ZodString;
236
+ isDefault: z.ZodBoolean;
237
+ id: z.ZodString;
238
+ }, "strip", z.ZodTypeAny, {
239
+ id: string;
240
+ position: number;
241
+ value: string;
242
+ label: string;
243
+ isDefault: boolean;
244
+ }, {
245
+ id: string;
246
+ position: number;
247
+ value: string;
248
+ label: string;
249
+ isDefault: boolean;
250
+ }>, "many">;
251
+ group: z.ZodObject<{
252
+ id: z.ZodString;
253
+ createdAt: z.ZodDate;
254
+ updatedAt: z.ZodDate;
255
+ deletedAt: z.ZodNullable<z.ZodDate>;
256
+ systemName: z.ZodString;
257
+ displayName: z.ZodString;
258
+ }, "strip", z.ZodTypeAny, {
259
+ id: string;
260
+ createdAt: Date;
261
+ updatedAt: Date;
262
+ deletedAt: Date | null;
263
+ systemName: string;
264
+ displayName: string;
265
+ }, {
266
+ id: string;
267
+ createdAt: Date;
268
+ updatedAt: Date;
269
+ deletedAt: Date | null;
270
+ systemName: string;
271
+ displayName: string;
272
+ }>;
273
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
274
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
275
+ id: string;
276
+ position: number;
277
+ createdAt: Date;
278
+ updatedAt: Date;
279
+ deletedAt: Date | null;
280
+ isDefault: boolean;
281
+ systemName: string;
282
+ displayName: string;
283
+ isArchived: boolean;
284
+ isRequired: boolean;
285
+ isUnique: boolean;
286
+ }, {
287
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
288
+ id: string;
289
+ position: number;
290
+ createdAt: Date;
291
+ updatedAt: Date;
292
+ deletedAt: Date | null;
293
+ isDefault: boolean;
294
+ systemName: string;
295
+ displayName: string;
296
+ isArchived: boolean;
297
+ isRequired: boolean;
298
+ isUnique: boolean;
299
+ }>;
300
+ uploads: z.ZodArray<z.ZodObject<{
301
+ id: z.ZodString;
302
+ createdAt: z.ZodDate;
303
+ updatedAt: z.ZodDate;
304
+ deletedAt: z.ZodNullable<z.ZodDate>;
305
+ customFieldId: z.ZodString;
306
+ upload: z.ZodObject<{
307
+ id: z.ZodString;
308
+ createdAt: z.ZodDate;
309
+ updatedAt: z.ZodDate;
310
+ deletedAt: z.ZodNullable<z.ZodDate>;
311
+ bucketName: z.ZodString;
312
+ fileName: z.ZodString;
313
+ fileSize: z.ZodNumber;
314
+ fileKey: z.ZodString;
315
+ fileUrl: z.ZodNullable<z.ZodString>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ id: string;
318
+ createdAt: Date;
319
+ updatedAt: Date;
320
+ deletedAt: Date | null;
321
+ fileName: string;
322
+ fileKey: string;
323
+ bucketName: string;
324
+ fileSize: number;
325
+ fileUrl: string | null;
326
+ }, {
327
+ id: string;
328
+ createdAt: Date;
329
+ updatedAt: Date;
330
+ deletedAt: Date | null;
331
+ fileName: string;
332
+ fileKey: string;
333
+ bucketName: string;
334
+ fileSize: number;
335
+ fileUrl: string | null;
336
+ }>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ id: string;
339
+ createdAt: Date;
340
+ updatedAt: Date;
341
+ deletedAt: Date | null;
342
+ customFieldId: string;
343
+ upload: {
344
+ id: string;
345
+ createdAt: Date;
346
+ updatedAt: Date;
347
+ deletedAt: Date | null;
348
+ fileName: string;
349
+ fileKey: string;
350
+ bucketName: string;
351
+ fileSize: number;
352
+ fileUrl: string | null;
353
+ };
354
+ }, {
355
+ id: string;
356
+ createdAt: Date;
357
+ updatedAt: Date;
358
+ deletedAt: Date | null;
359
+ customFieldId: string;
360
+ upload: {
361
+ id: string;
362
+ createdAt: Date;
363
+ updatedAt: Date;
364
+ deletedAt: Date | null;
365
+ fileName: string;
366
+ fileKey: string;
367
+ bucketName: string;
368
+ fileSize: number;
369
+ fileUrl: string | null;
370
+ };
371
+ }>, "many">;
372
+ }, "strip", z.ZodTypeAny, {
373
+ id: string;
374
+ createdAt: Date;
375
+ updatedAt: Date;
376
+ deletedAt: Date | null;
377
+ attribute: {
378
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
379
+ id: string;
380
+ position: number;
381
+ createdAt: Date;
382
+ updatedAt: Date;
383
+ deletedAt: Date | null;
384
+ isDefault: boolean;
385
+ systemName: string;
386
+ displayName: string;
387
+ isArchived: boolean;
388
+ isRequired: boolean;
389
+ isUnique: boolean;
390
+ };
391
+ textValue: string | null;
392
+ booleanValue: boolean | null;
393
+ numberValue: number | null;
394
+ dateValue: Date | null;
395
+ uploads: {
396
+ id: string;
397
+ createdAt: Date;
398
+ updatedAt: Date;
399
+ deletedAt: Date | null;
400
+ customFieldId: string;
401
+ upload: {
402
+ id: string;
403
+ createdAt: Date;
404
+ updatedAt: Date;
405
+ deletedAt: Date | null;
406
+ fileName: string;
407
+ fileKey: string;
408
+ bucketName: string;
409
+ fileSize: number;
410
+ fileUrl: string | null;
411
+ };
412
+ }[];
413
+ }, {
414
+ id: string;
415
+ createdAt: Date;
416
+ updatedAt: Date;
417
+ deletedAt: Date | null;
418
+ attribute: {
419
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
420
+ id: string;
421
+ position: number;
422
+ createdAt: Date;
423
+ updatedAt: Date;
424
+ deletedAt: Date | null;
425
+ isDefault: boolean;
426
+ systemName: string;
427
+ displayName: string;
428
+ isArchived: boolean;
429
+ isRequired: boolean;
430
+ isUnique: boolean;
431
+ };
432
+ textValue: string | null;
433
+ booleanValue: boolean | null;
434
+ numberValue: number | null;
435
+ dateValue: Date | null;
436
+ uploads: {
437
+ id: string;
438
+ createdAt: Date;
439
+ updatedAt: Date;
440
+ deletedAt: Date | null;
441
+ customFieldId: string;
442
+ upload: {
443
+ id: string;
444
+ createdAt: Date;
445
+ updatedAt: Date;
446
+ deletedAt: Date | null;
447
+ fileName: string;
448
+ fileKey: string;
449
+ bucketName: string;
450
+ fileSize: number;
451
+ fileUrl: string | null;
452
+ };
453
+ }[];
454
+ }>, "many">;
455
+ contactEmails: z.ZodArray<z.ZodObject<{
456
+ id: z.ZodString;
457
+ createdAt: z.ZodDate;
458
+ updatedAt: z.ZodDate;
459
+ deletedAt: z.ZodNullable<z.ZodDate>;
460
+ email: z.ZodString;
461
+ isPrimary: z.ZodBoolean;
462
+ }, "strip", z.ZodTypeAny, {
463
+ id: string;
464
+ isPrimary: boolean;
465
+ email: string;
466
+ createdAt: Date;
467
+ updatedAt: Date;
468
+ deletedAt: Date | null;
469
+ }, {
470
+ id: string;
471
+ isPrimary: boolean;
472
+ email: string;
473
+ createdAt: Date;
474
+ updatedAt: Date;
475
+ deletedAt: Date | null;
476
+ }>, "many">;
477
+ contactPhones: z.ZodArray<z.ZodObject<{
478
+ id: z.ZodString;
479
+ createdAt: z.ZodDate;
480
+ updatedAt: z.ZodDate;
481
+ deletedAt: z.ZodNullable<z.ZodDate>;
482
+ phone: z.ZodString;
483
+ isPrimary: z.ZodBoolean;
484
+ }, "strip", z.ZodTypeAny, {
485
+ id: string;
486
+ isPrimary: boolean;
487
+ createdAt: Date;
488
+ updatedAt: Date;
489
+ deletedAt: Date | null;
490
+ phone: string;
491
+ }, {
492
+ id: string;
493
+ isPrimary: boolean;
494
+ createdAt: Date;
495
+ updatedAt: Date;
496
+ deletedAt: Date | null;
497
+ phone: string;
498
+ }>, "many">;
499
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
500
+ id: z.ZodString;
501
+ createdAt: z.ZodDate;
502
+ updatedAt: z.ZodDate;
503
+ deletedAt: z.ZodNullable<z.ZodDate>;
504
+ entityId: z.ZodString;
505
+ description: z.ZodString;
506
+ entityType: z.ZodObject<{
507
+ id: z.ZodString;
508
+ createdAt: z.ZodDate;
509
+ updatedAt: z.ZodDate;
510
+ deletedAt: z.ZodNullable<z.ZodDate>;
511
+ entity: z.ZodString;
512
+ description: z.ZodNullable<z.ZodString>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ id: string;
515
+ description: string | null;
516
+ createdAt: Date;
517
+ updatedAt: Date;
518
+ deletedAt: Date | null;
519
+ entity: string;
520
+ }, {
521
+ id: string;
522
+ description: string | null;
523
+ createdAt: Date;
524
+ updatedAt: Date;
525
+ deletedAt: Date | null;
526
+ entity: string;
527
+ }>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ id: string;
530
+ description: string;
531
+ createdAt: Date;
532
+ updatedAt: Date;
533
+ deletedAt: Date | null;
534
+ entityId: string;
535
+ entityType: {
536
+ id: string;
537
+ description: string | null;
538
+ createdAt: Date;
539
+ updatedAt: Date;
540
+ deletedAt: Date | null;
541
+ entity: string;
542
+ };
543
+ }, {
544
+ id: string;
545
+ description: string;
546
+ createdAt: Date;
547
+ updatedAt: Date;
548
+ deletedAt: Date | null;
549
+ entityId: string;
550
+ entityType: {
551
+ id: string;
552
+ description: string | null;
553
+ createdAt: Date;
554
+ updatedAt: Date;
555
+ deletedAt: Date | null;
556
+ entity: string;
557
+ };
558
+ }>, "many">>;
559
+ }, "strip", z.ZodTypeAny, {
560
+ id: string;
561
+ channel: string | null;
562
+ address: string | null;
563
+ name: string;
564
+ createdAt: Date;
565
+ updatedAt: Date;
566
+ deletedAt: Date | null;
567
+ customFields: {
568
+ id: string;
569
+ createdAt: Date;
570
+ updatedAt: Date;
571
+ deletedAt: Date | null;
572
+ attribute: {
573
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
574
+ id: string;
575
+ position: number;
576
+ createdAt: Date;
577
+ updatedAt: Date;
578
+ deletedAt: Date | null;
579
+ isDefault: boolean;
580
+ systemName: string;
581
+ displayName: string;
582
+ isArchived: boolean;
583
+ isRequired: boolean;
584
+ isUnique: boolean;
585
+ };
586
+ textValue: string | null;
587
+ booleanValue: boolean | null;
588
+ numberValue: number | null;
589
+ dateValue: Date | null;
590
+ uploads: {
591
+ id: string;
592
+ createdAt: Date;
593
+ updatedAt: Date;
594
+ deletedAt: Date | null;
595
+ customFieldId: string;
596
+ upload: {
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
+ fileUrl: string | null;
606
+ };
607
+ }[];
608
+ }[];
609
+ notes: string | null;
610
+ contactProfile: string | null;
611
+ socialProfileUrl: string | null;
612
+ tags: {
613
+ id: string;
614
+ name: string;
615
+ createdAt: Date;
616
+ updatedAt: Date;
617
+ deletedAt: Date | null;
618
+ }[];
619
+ company: {
620
+ id: string;
621
+ createdAt: Date;
622
+ updatedAt: Date;
623
+ deletedAt: Date | null;
624
+ address?: string | null | undefined;
625
+ name?: string | undefined;
626
+ phone?: string | null | undefined;
627
+ industry?: string | null | undefined;
628
+ } | null;
629
+ contactEmails: {
630
+ id: string;
631
+ isPrimary: boolean;
632
+ email: string;
633
+ createdAt: Date;
634
+ updatedAt: Date;
635
+ deletedAt: Date | null;
636
+ }[];
637
+ contactPhones: {
638
+ id: string;
639
+ isPrimary: boolean;
640
+ createdAt: Date;
641
+ updatedAt: Date;
642
+ deletedAt: Date | null;
643
+ phone: string;
644
+ }[];
645
+ activityLogs?: {
646
+ id: string;
647
+ description: string;
648
+ createdAt: Date;
649
+ updatedAt: Date;
650
+ deletedAt: Date | null;
651
+ entityId: string;
652
+ entityType: {
653
+ id: string;
654
+ description: string | null;
655
+ createdAt: Date;
656
+ updatedAt: Date;
657
+ deletedAt: Date | null;
658
+ entity: string;
659
+ };
660
+ }[] | undefined;
661
+ }, {
662
+ id: string;
663
+ channel: string | null;
664
+ address: string | null;
665
+ name: string;
666
+ createdAt: Date;
667
+ updatedAt: Date;
668
+ deletedAt: Date | null;
669
+ customFields: {
670
+ id: string;
671
+ createdAt: Date;
672
+ updatedAt: Date;
673
+ deletedAt: Date | null;
674
+ attribute: {
675
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
676
+ id: string;
677
+ position: number;
678
+ createdAt: Date;
679
+ updatedAt: Date;
680
+ deletedAt: Date | null;
681
+ isDefault: boolean;
682
+ systemName: string;
683
+ displayName: string;
684
+ isArchived: boolean;
685
+ isRequired: boolean;
686
+ isUnique: boolean;
687
+ };
688
+ textValue: string | null;
689
+ booleanValue: boolean | null;
690
+ numberValue: number | null;
691
+ dateValue: Date | null;
692
+ uploads: {
693
+ id: string;
694
+ createdAt: Date;
695
+ updatedAt: Date;
696
+ deletedAt: Date | null;
697
+ customFieldId: string;
698
+ upload: {
699
+ id: string;
700
+ createdAt: Date;
701
+ updatedAt: Date;
702
+ deletedAt: Date | null;
703
+ fileName: string;
704
+ fileKey: string;
705
+ bucketName: string;
706
+ fileSize: number;
707
+ fileUrl: string | null;
708
+ };
709
+ }[];
710
+ }[];
711
+ notes: string | null;
712
+ contactProfile: string | null;
713
+ socialProfileUrl: string | null;
714
+ tags: {
715
+ id: string;
716
+ name: string;
717
+ createdAt: Date;
718
+ updatedAt: Date;
719
+ deletedAt: Date | null;
720
+ }[];
721
+ company: {
722
+ id: string;
723
+ createdAt: Date;
724
+ updatedAt: Date;
725
+ deletedAt: Date | null;
726
+ address?: string | null | undefined;
727
+ name?: string | undefined;
728
+ phone?: string | null | undefined;
729
+ industry?: string | null | undefined;
730
+ } | null;
731
+ contactEmails: {
732
+ id: string;
733
+ isPrimary: boolean;
734
+ email: string;
735
+ createdAt: Date;
736
+ updatedAt: Date;
737
+ deletedAt: Date | null;
738
+ }[];
739
+ contactPhones: {
740
+ id: string;
741
+ isPrimary: boolean;
742
+ createdAt: Date;
743
+ updatedAt: Date;
744
+ deletedAt: Date | null;
745
+ phone: string;
746
+ }[];
747
+ activityLogs?: {
748
+ id: string;
749
+ description: string;
750
+ createdAt: Date;
751
+ updatedAt: Date;
752
+ deletedAt: Date | null;
753
+ entityId: string;
754
+ entityType: {
755
+ id: string;
756
+ description: string | null;
757
+ createdAt: Date;
758
+ updatedAt: Date;
759
+ deletedAt: Date | null;
760
+ entity: string;
761
+ };
762
+ }[] | undefined;
763
+ }>>;
764
+ telephonyQueue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
765
+ id: z.ZodString;
766
+ createdAt: z.ZodDate;
767
+ updatedAt: z.ZodDate;
768
+ deletedAt: z.ZodNullable<z.ZodDate>;
769
+ queueId: z.ZodNumber;
770
+ queueName: z.ZodString;
771
+ queueNumber: z.ZodString;
772
+ maximumWaitingTime: z.ZodNumber;
773
+ }, "strip", z.ZodTypeAny, {
774
+ id: string;
775
+ createdAt: Date;
776
+ updatedAt: Date;
777
+ deletedAt: Date | null;
778
+ queueId: number;
779
+ queueName: string;
780
+ queueNumber: string;
781
+ maximumWaitingTime: number;
782
+ }, {
783
+ id: string;
784
+ createdAt: Date;
785
+ updatedAt: Date;
786
+ deletedAt: Date | null;
787
+ queueId: number;
788
+ queueName: string;
789
+ queueNumber: string;
790
+ maximumWaitingTime: number;
791
+ }>>>;
15
792
  pinCode: z.ZodNullable<z.ZodString>;
16
793
  status: z.ZodString;
17
794
  type: z.ZodString;
@@ -19,7 +796,7 @@ export declare const TelephonyCdrSchema: z.ZodObject<{
19
796
  didNumber: z.ZodNullable<z.ZodString>;
20
797
  agentRingTime: z.ZodNullable<z.ZodNumber>;
21
798
  uploadId: z.ZodNullable<z.ZodString>;
22
- upload: z.ZodOptional<z.ZodObject<{
799
+ upload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
23
800
  id: z.ZodString;
24
801
  createdAt: z.ZodDate;
25
802
  updatedAt: z.ZodDate;
@@ -49,9 +826,46 @@ export declare const TelephonyCdrSchema: z.ZodObject<{
49
826
  bucketName: string;
50
827
  fileSize: number;
51
828
  fileUrl: string | null;
52
- }>>;
829
+ }>>>;
53
830
  serialNumber: z.ZodNullable<z.ZodString>;
54
831
  extensionId: z.ZodNullable<z.ZodString>;
832
+ extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
833
+ id: z.ZodString;
834
+ createdAt: z.ZodDate;
835
+ updatedAt: z.ZodDate;
836
+ deletedAt: z.ZodNullable<z.ZodDate>;
837
+ userId: z.ZodNullable<z.ZodString>;
838
+ sipServerUrl: z.ZodString;
839
+ sipUserName: z.ZodString;
840
+ webphoneLoginUser: z.ZodString;
841
+ extensionId: z.ZodNumber;
842
+ extensionName: z.ZodString;
843
+ telephonySignature: z.ZodNullable<z.ZodString>;
844
+ }, "strip", z.ZodTypeAny, {
845
+ id: string;
846
+ createdAt: Date;
847
+ updatedAt: Date;
848
+ deletedAt: Date | null;
849
+ userId: string | null;
850
+ sipServerUrl: string;
851
+ sipUserName: string;
852
+ webphoneLoginUser: string;
853
+ extensionId: number;
854
+ extensionName: string;
855
+ telephonySignature: string | null;
856
+ }, {
857
+ id: string;
858
+ createdAt: Date;
859
+ updatedAt: Date;
860
+ deletedAt: Date | null;
861
+ userId: string | null;
862
+ sipServerUrl: string;
863
+ sipUserName: string;
864
+ webphoneLoginUser: string;
865
+ extensionId: number;
866
+ extensionName: string;
867
+ telephonySignature: string | null;
868
+ }>>>;
55
869
  telephonyQueueId: z.ZodNullable<z.ZodString>;
56
870
  contactId: z.ZodNullable<z.ZodString>;
57
871
  }, "strip", z.ZodTypeAny, {
@@ -78,6 +892,119 @@ export declare const TelephonyCdrSchema: z.ZodObject<{
78
892
  serialNumber: string | null;
79
893
  telephonyQueueId: string | null;
80
894
  contactId: string | null;
895
+ contact?: {
896
+ id: string;
897
+ channel: string | null;
898
+ address: string | null;
899
+ name: string;
900
+ createdAt: Date;
901
+ updatedAt: Date;
902
+ deletedAt: Date | null;
903
+ customFields: {
904
+ id: string;
905
+ createdAt: Date;
906
+ updatedAt: Date;
907
+ deletedAt: Date | null;
908
+ attribute: {
909
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
910
+ id: string;
911
+ position: number;
912
+ createdAt: Date;
913
+ updatedAt: Date;
914
+ deletedAt: Date | null;
915
+ isDefault: boolean;
916
+ systemName: string;
917
+ displayName: string;
918
+ isArchived: boolean;
919
+ isRequired: boolean;
920
+ isUnique: boolean;
921
+ };
922
+ textValue: string | null;
923
+ booleanValue: boolean | null;
924
+ numberValue: number | null;
925
+ dateValue: Date | null;
926
+ uploads: {
927
+ id: string;
928
+ createdAt: Date;
929
+ updatedAt: Date;
930
+ deletedAt: Date | null;
931
+ customFieldId: string;
932
+ upload: {
933
+ id: string;
934
+ createdAt: Date;
935
+ updatedAt: Date;
936
+ deletedAt: Date | null;
937
+ fileName: string;
938
+ fileKey: string;
939
+ bucketName: string;
940
+ fileSize: number;
941
+ fileUrl: string | null;
942
+ };
943
+ }[];
944
+ }[];
945
+ notes: string | null;
946
+ contactProfile: string | null;
947
+ socialProfileUrl: string | null;
948
+ tags: {
949
+ id: string;
950
+ name: string;
951
+ createdAt: Date;
952
+ updatedAt: Date;
953
+ deletedAt: Date | null;
954
+ }[];
955
+ company: {
956
+ id: string;
957
+ createdAt: Date;
958
+ updatedAt: Date;
959
+ deletedAt: Date | null;
960
+ address?: string | null | undefined;
961
+ name?: string | undefined;
962
+ phone?: string | null | undefined;
963
+ industry?: string | null | undefined;
964
+ } | null;
965
+ contactEmails: {
966
+ id: string;
967
+ isPrimary: boolean;
968
+ email: string;
969
+ createdAt: Date;
970
+ updatedAt: Date;
971
+ deletedAt: Date | null;
972
+ }[];
973
+ contactPhones: {
974
+ id: string;
975
+ isPrimary: boolean;
976
+ createdAt: Date;
977
+ updatedAt: Date;
978
+ deletedAt: Date | null;
979
+ phone: string;
980
+ }[];
981
+ activityLogs?: {
982
+ id: string;
983
+ description: string;
984
+ createdAt: Date;
985
+ updatedAt: Date;
986
+ deletedAt: Date | null;
987
+ entityId: string;
988
+ entityType: {
989
+ id: string;
990
+ description: string | null;
991
+ createdAt: Date;
992
+ updatedAt: Date;
993
+ deletedAt: Date | null;
994
+ entity: string;
995
+ };
996
+ }[] | undefined;
997
+ } | undefined;
998
+ telephonyQueue?: {
999
+ id: string;
1000
+ createdAt: Date;
1001
+ updatedAt: Date;
1002
+ deletedAt: Date | null;
1003
+ queueId: number;
1004
+ queueName: string;
1005
+ queueNumber: string;
1006
+ maximumWaitingTime: number;
1007
+ } | null | undefined;
81
1008
  upload?: {
82
1009
  id: string;
83
1010
  createdAt: Date;
@@ -88,7 +1015,20 @@ export declare const TelephonyCdrSchema: z.ZodObject<{
88
1015
  bucketName: string;
89
1016
  fileSize: number;
90
1017
  fileUrl: string | null;
91
- } | undefined;
1018
+ } | null | undefined;
1019
+ extension?: {
1020
+ id: string;
1021
+ createdAt: Date;
1022
+ updatedAt: Date;
1023
+ deletedAt: Date | null;
1024
+ userId: string | null;
1025
+ sipServerUrl: string;
1026
+ sipUserName: string;
1027
+ webphoneLoginUser: string;
1028
+ extensionId: number;
1029
+ extensionName: string;
1030
+ telephonySignature: string | null;
1031
+ } | null | undefined;
92
1032
  }, {
93
1033
  type: string;
94
1034
  id: string;
@@ -113,6 +1053,119 @@ export declare const TelephonyCdrSchema: z.ZodObject<{
113
1053
  serialNumber: string | null;
114
1054
  telephonyQueueId: string | null;
115
1055
  contactId: string | null;
1056
+ contact?: {
1057
+ id: string;
1058
+ channel: string | null;
1059
+ address: string | null;
1060
+ name: string;
1061
+ createdAt: Date;
1062
+ updatedAt: Date;
1063
+ deletedAt: Date | null;
1064
+ customFields: {
1065
+ id: string;
1066
+ createdAt: Date;
1067
+ updatedAt: Date;
1068
+ deletedAt: Date | null;
1069
+ attribute: {
1070
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1071
+ id: string;
1072
+ position: number;
1073
+ createdAt: Date;
1074
+ updatedAt: Date;
1075
+ deletedAt: Date | null;
1076
+ isDefault: boolean;
1077
+ systemName: string;
1078
+ displayName: string;
1079
+ isArchived: boolean;
1080
+ isRequired: boolean;
1081
+ isUnique: boolean;
1082
+ };
1083
+ textValue: string | null;
1084
+ booleanValue: boolean | null;
1085
+ numberValue: number | null;
1086
+ dateValue: Date | null;
1087
+ uploads: {
1088
+ id: string;
1089
+ createdAt: Date;
1090
+ updatedAt: Date;
1091
+ deletedAt: Date | null;
1092
+ customFieldId: string;
1093
+ upload: {
1094
+ id: string;
1095
+ createdAt: Date;
1096
+ updatedAt: Date;
1097
+ deletedAt: Date | null;
1098
+ fileName: string;
1099
+ fileKey: string;
1100
+ bucketName: string;
1101
+ fileSize: number;
1102
+ fileUrl: string | null;
1103
+ };
1104
+ }[];
1105
+ }[];
1106
+ notes: string | null;
1107
+ contactProfile: string | null;
1108
+ socialProfileUrl: string | null;
1109
+ tags: {
1110
+ id: string;
1111
+ name: string;
1112
+ createdAt: Date;
1113
+ updatedAt: Date;
1114
+ deletedAt: Date | null;
1115
+ }[];
1116
+ company: {
1117
+ id: string;
1118
+ createdAt: Date;
1119
+ updatedAt: Date;
1120
+ deletedAt: Date | null;
1121
+ address?: string | null | undefined;
1122
+ name?: string | undefined;
1123
+ phone?: string | null | undefined;
1124
+ industry?: string | null | undefined;
1125
+ } | null;
1126
+ contactEmails: {
1127
+ id: string;
1128
+ isPrimary: boolean;
1129
+ email: string;
1130
+ createdAt: Date;
1131
+ updatedAt: Date;
1132
+ deletedAt: Date | null;
1133
+ }[];
1134
+ contactPhones: {
1135
+ id: string;
1136
+ isPrimary: boolean;
1137
+ createdAt: Date;
1138
+ updatedAt: Date;
1139
+ deletedAt: Date | null;
1140
+ phone: string;
1141
+ }[];
1142
+ activityLogs?: {
1143
+ id: string;
1144
+ description: string;
1145
+ createdAt: Date;
1146
+ updatedAt: Date;
1147
+ deletedAt: Date | null;
1148
+ entityId: string;
1149
+ entityType: {
1150
+ id: string;
1151
+ description: string | null;
1152
+ createdAt: Date;
1153
+ updatedAt: Date;
1154
+ deletedAt: Date | null;
1155
+ entity: string;
1156
+ };
1157
+ }[] | undefined;
1158
+ } | undefined;
1159
+ telephonyQueue?: {
1160
+ id: string;
1161
+ createdAt: Date;
1162
+ updatedAt: Date;
1163
+ deletedAt: Date | null;
1164
+ queueId: number;
1165
+ queueName: string;
1166
+ queueNumber: string;
1167
+ maximumWaitingTime: number;
1168
+ } | null | undefined;
116
1169
  upload?: {
117
1170
  id: string;
118
1171
  createdAt: Date;
@@ -123,6 +1176,19 @@ export declare const TelephonyCdrSchema: z.ZodObject<{
123
1176
  bucketName: string;
124
1177
  fileSize: number;
125
1178
  fileUrl: string | null;
126
- } | undefined;
1179
+ } | null | undefined;
1180
+ extension?: {
1181
+ id: string;
1182
+ createdAt: Date;
1183
+ updatedAt: Date;
1184
+ deletedAt: Date | null;
1185
+ userId: string | null;
1186
+ sipServerUrl: string;
1187
+ sipUserName: string;
1188
+ webphoneLoginUser: string;
1189
+ extensionId: number;
1190
+ extensionName: string;
1191
+ telephonySignature: string | null;
1192
+ } | null | undefined;
127
1193
  }>;
128
1194
  //# sourceMappingURL=schema.d.ts.map