@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.
@@ -1,6 +1,8 @@
1
1
  import z from 'zod';
2
2
  import { CreateTelephonyCdrSchema, GetAllTelephonyCdrSchema, GetExportTelephonyCdrSchema, GetRecentTelephonyCdrSchema } from './validation';
3
+ import { TelephonyCdrSchema } from './schema';
3
4
  export type CreateTelephonyCdrRequest = z.infer<typeof CreateTelephonyCdrSchema>;
5
+ export type TelephonyCdr = z.infer<typeof TelephonyCdrSchema>;
4
6
  export type GetTelephonyCdrQuery = z.infer<typeof GetAllTelephonyCdrSchema>;
5
7
  export type GetRecentTelephonyCdrQuery = z.infer<typeof GetRecentTelephonyCdrSchema>;
6
8
  export type GetExportTelephonyCdrQuery = z.infer<typeof GetExportTelephonyCdrSchema>;
@@ -43,6 +45,10 @@ export declare const telephonyCdrContract: {
43
45
  page: z.ZodNumber;
44
46
  pageSize: z.ZodNumber;
45
47
  telephonyCdrs: z.ZodArray<z.ZodObject<{
48
+ id: z.ZodString;
49
+ createdAt: z.ZodDate;
50
+ updatedAt: z.ZodDate;
51
+ deletedAt: z.ZodNullable<z.ZodDate>;
46
52
  uniqueCallId: z.ZodString;
47
53
  timeStart: z.ZodString;
48
54
  callFrom: z.ZodString;
@@ -51,16 +57,871 @@ export declare const telephonyCdrContract: {
51
57
  talkDuration: z.ZodNullable<z.ZodNumber>;
52
58
  srcTrunkName: z.ZodNullable<z.ZodString>;
53
59
  dstTrunkName: z.ZodNullable<z.ZodString>;
60
+ contact: z.ZodOptional<z.ZodObject<{
61
+ id: z.ZodString;
62
+ createdAt: z.ZodDate;
63
+ updatedAt: z.ZodDate;
64
+ deletedAt: z.ZodNullable<z.ZodDate>;
65
+ name: z.ZodString;
66
+ address: z.ZodNullable<z.ZodString>;
67
+ channel: z.ZodNullable<z.ZodString>;
68
+ notes: z.ZodNullable<z.ZodString>;
69
+ contactProfile: z.ZodNullable<z.ZodString>;
70
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
71
+ tags: z.ZodArray<z.ZodObject<{
72
+ id: z.ZodString;
73
+ createdAt: z.ZodDate;
74
+ updatedAt: z.ZodDate;
75
+ deletedAt: z.ZodNullable<z.ZodDate>;
76
+ name: z.ZodString;
77
+ }, "strip", z.ZodTypeAny, {
78
+ id: string;
79
+ name: string;
80
+ createdAt: Date;
81
+ updatedAt: Date;
82
+ deletedAt: Date | null;
83
+ }, {
84
+ id: string;
85
+ name: string;
86
+ createdAt: Date;
87
+ updatedAt: Date;
88
+ deletedAt: Date | null;
89
+ }>, "many">;
90
+ company: z.ZodNullable<z.ZodObject<Omit<{
91
+ id: z.ZodString;
92
+ createdAt: z.ZodDate;
93
+ updatedAt: z.ZodDate;
94
+ deletedAt: z.ZodNullable<z.ZodDate>;
95
+ name: z.ZodOptional<z.ZodString>;
96
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
100
+ id: z.ZodString;
101
+ createdAt: z.ZodDate;
102
+ updatedAt: z.ZodDate;
103
+ deletedAt: z.ZodNullable<z.ZodDate>;
104
+ textValue: z.ZodNullable<z.ZodString>;
105
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
106
+ numberValue: z.ZodNullable<z.ZodNumber>;
107
+ dateValue: z.ZodNullable<z.ZodDate>;
108
+ attribute: z.ZodObject<Omit<{
109
+ id: z.ZodString;
110
+ createdAt: z.ZodDate;
111
+ updatedAt: z.ZodDate;
112
+ deletedAt: z.ZodNullable<z.ZodDate>;
113
+ systemName: z.ZodString;
114
+ displayName: z.ZodString;
115
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
116
+ position: z.ZodNumber;
117
+ isDefault: z.ZodBoolean;
118
+ isArchived: z.ZodBoolean;
119
+ isRequired: z.ZodBoolean;
120
+ isUnique: z.ZodBoolean;
121
+ options: z.ZodArray<z.ZodObject<{
122
+ position: z.ZodNumber;
123
+ value: z.ZodString;
124
+ label: z.ZodString;
125
+ isDefault: z.ZodBoolean;
126
+ id: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ id: string;
129
+ position: number;
130
+ value: string;
131
+ label: string;
132
+ isDefault: boolean;
133
+ }, {
134
+ id: string;
135
+ position: number;
136
+ value: string;
137
+ label: string;
138
+ isDefault: boolean;
139
+ }>, "many">;
140
+ group: z.ZodObject<{
141
+ id: z.ZodString;
142
+ createdAt: z.ZodDate;
143
+ updatedAt: z.ZodDate;
144
+ deletedAt: z.ZodNullable<z.ZodDate>;
145
+ systemName: z.ZodString;
146
+ displayName: z.ZodString;
147
+ }, "strip", z.ZodTypeAny, {
148
+ id: string;
149
+ createdAt: Date;
150
+ updatedAt: Date;
151
+ deletedAt: Date | null;
152
+ systemName: string;
153
+ displayName: string;
154
+ }, {
155
+ id: string;
156
+ createdAt: Date;
157
+ updatedAt: Date;
158
+ deletedAt: Date | null;
159
+ systemName: string;
160
+ displayName: string;
161
+ }>;
162
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
163
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
164
+ id: string;
165
+ position: number;
166
+ createdAt: Date;
167
+ updatedAt: Date;
168
+ deletedAt: Date | null;
169
+ isDefault: boolean;
170
+ systemName: string;
171
+ displayName: string;
172
+ isArchived: boolean;
173
+ isRequired: boolean;
174
+ isUnique: boolean;
175
+ }, {
176
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
177
+ id: string;
178
+ position: number;
179
+ createdAt: Date;
180
+ updatedAt: Date;
181
+ deletedAt: Date | null;
182
+ isDefault: boolean;
183
+ systemName: string;
184
+ displayName: string;
185
+ isArchived: boolean;
186
+ isRequired: boolean;
187
+ isUnique: boolean;
188
+ }>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ id: string;
191
+ createdAt: Date;
192
+ updatedAt: Date;
193
+ deletedAt: Date | null;
194
+ attribute: {
195
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
196
+ id: string;
197
+ position: number;
198
+ createdAt: Date;
199
+ updatedAt: Date;
200
+ deletedAt: Date | null;
201
+ isDefault: boolean;
202
+ systemName: string;
203
+ displayName: string;
204
+ isArchived: boolean;
205
+ isRequired: boolean;
206
+ isUnique: boolean;
207
+ };
208
+ textValue: string | null;
209
+ booleanValue: boolean | null;
210
+ numberValue: number | null;
211
+ dateValue: Date | null;
212
+ }, {
213
+ id: string;
214
+ createdAt: Date;
215
+ updatedAt: Date;
216
+ deletedAt: Date | null;
217
+ attribute: {
218
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
219
+ id: string;
220
+ position: number;
221
+ createdAt: Date;
222
+ updatedAt: Date;
223
+ deletedAt: Date | null;
224
+ isDefault: boolean;
225
+ systemName: string;
226
+ displayName: string;
227
+ isArchived: boolean;
228
+ isRequired: boolean;
229
+ isUnique: boolean;
230
+ };
231
+ textValue: string | null;
232
+ booleanValue: boolean | null;
233
+ numberValue: number | null;
234
+ dateValue: Date | null;
235
+ }>, "many">>;
236
+ }, "customFields">, "strip", z.ZodTypeAny, {
237
+ id: string;
238
+ createdAt: Date;
239
+ updatedAt: Date;
240
+ deletedAt: Date | null;
241
+ address?: string | null | undefined;
242
+ name?: string | undefined;
243
+ phone?: string | null | undefined;
244
+ industry?: string | null | undefined;
245
+ }, {
246
+ id: string;
247
+ createdAt: Date;
248
+ updatedAt: Date;
249
+ deletedAt: Date | null;
250
+ address?: string | null | undefined;
251
+ name?: string | undefined;
252
+ phone?: string | null | undefined;
253
+ industry?: string | null | undefined;
254
+ }>>;
255
+ customFields: z.ZodArray<z.ZodObject<{
256
+ id: z.ZodString;
257
+ createdAt: z.ZodDate;
258
+ updatedAt: z.ZodDate;
259
+ deletedAt: z.ZodNullable<z.ZodDate>;
260
+ textValue: z.ZodNullable<z.ZodString>;
261
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
262
+ numberValue: z.ZodNullable<z.ZodNumber>;
263
+ dateValue: z.ZodNullable<z.ZodDate>;
264
+ attribute: z.ZodObject<Omit<{
265
+ id: z.ZodString;
266
+ createdAt: z.ZodDate;
267
+ updatedAt: z.ZodDate;
268
+ deletedAt: z.ZodNullable<z.ZodDate>;
269
+ systemName: z.ZodString;
270
+ displayName: z.ZodString;
271
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
272
+ position: z.ZodNumber;
273
+ isDefault: z.ZodBoolean;
274
+ isArchived: z.ZodBoolean;
275
+ isRequired: z.ZodBoolean;
276
+ isUnique: z.ZodBoolean;
277
+ options: z.ZodArray<z.ZodObject<{
278
+ position: z.ZodNumber;
279
+ value: z.ZodString;
280
+ label: z.ZodString;
281
+ isDefault: z.ZodBoolean;
282
+ id: z.ZodString;
283
+ }, "strip", z.ZodTypeAny, {
284
+ id: string;
285
+ position: number;
286
+ value: string;
287
+ label: string;
288
+ isDefault: boolean;
289
+ }, {
290
+ id: string;
291
+ position: number;
292
+ value: string;
293
+ label: string;
294
+ isDefault: boolean;
295
+ }>, "many">;
296
+ group: z.ZodObject<{
297
+ id: z.ZodString;
298
+ createdAt: z.ZodDate;
299
+ updatedAt: z.ZodDate;
300
+ deletedAt: z.ZodNullable<z.ZodDate>;
301
+ systemName: z.ZodString;
302
+ displayName: z.ZodString;
303
+ }, "strip", z.ZodTypeAny, {
304
+ id: string;
305
+ createdAt: Date;
306
+ updatedAt: Date;
307
+ deletedAt: Date | null;
308
+ systemName: string;
309
+ displayName: string;
310
+ }, {
311
+ id: string;
312
+ createdAt: Date;
313
+ updatedAt: Date;
314
+ deletedAt: Date | null;
315
+ systemName: string;
316
+ displayName: string;
317
+ }>;
318
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
319
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
320
+ id: string;
321
+ position: number;
322
+ createdAt: Date;
323
+ updatedAt: Date;
324
+ deletedAt: Date | null;
325
+ isDefault: boolean;
326
+ systemName: string;
327
+ displayName: string;
328
+ isArchived: boolean;
329
+ isRequired: boolean;
330
+ isUnique: boolean;
331
+ }, {
332
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
333
+ id: string;
334
+ position: number;
335
+ createdAt: Date;
336
+ updatedAt: Date;
337
+ deletedAt: Date | null;
338
+ isDefault: boolean;
339
+ systemName: string;
340
+ displayName: string;
341
+ isArchived: boolean;
342
+ isRequired: boolean;
343
+ isUnique: boolean;
344
+ }>;
345
+ uploads: z.ZodArray<z.ZodObject<{
346
+ id: z.ZodString;
347
+ createdAt: z.ZodDate;
348
+ updatedAt: z.ZodDate;
349
+ deletedAt: z.ZodNullable<z.ZodDate>;
350
+ customFieldId: z.ZodString;
351
+ upload: z.ZodObject<{
352
+ id: z.ZodString;
353
+ createdAt: z.ZodDate;
354
+ updatedAt: z.ZodDate;
355
+ deletedAt: z.ZodNullable<z.ZodDate>;
356
+ bucketName: z.ZodString;
357
+ fileName: z.ZodString;
358
+ fileSize: z.ZodNumber;
359
+ fileKey: z.ZodString;
360
+ fileUrl: z.ZodNullable<z.ZodString>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ id: string;
363
+ createdAt: Date;
364
+ updatedAt: Date;
365
+ deletedAt: Date | null;
366
+ fileName: string;
367
+ fileKey: string;
368
+ bucketName: string;
369
+ fileSize: number;
370
+ fileUrl: string | null;
371
+ }, {
372
+ id: string;
373
+ createdAt: Date;
374
+ updatedAt: Date;
375
+ deletedAt: Date | null;
376
+ fileName: string;
377
+ fileKey: string;
378
+ bucketName: string;
379
+ fileSize: number;
380
+ fileUrl: string | null;
381
+ }>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ id: string;
384
+ createdAt: Date;
385
+ updatedAt: Date;
386
+ deletedAt: Date | null;
387
+ customFieldId: string;
388
+ upload: {
389
+ id: string;
390
+ createdAt: Date;
391
+ updatedAt: Date;
392
+ deletedAt: Date | null;
393
+ fileName: string;
394
+ fileKey: string;
395
+ bucketName: string;
396
+ fileSize: number;
397
+ fileUrl: string | null;
398
+ };
399
+ }, {
400
+ id: string;
401
+ createdAt: Date;
402
+ updatedAt: Date;
403
+ deletedAt: Date | null;
404
+ customFieldId: string;
405
+ upload: {
406
+ id: string;
407
+ createdAt: Date;
408
+ updatedAt: Date;
409
+ deletedAt: Date | null;
410
+ fileName: string;
411
+ fileKey: string;
412
+ bucketName: string;
413
+ fileSize: number;
414
+ fileUrl: string | null;
415
+ };
416
+ }>, "many">;
417
+ }, "strip", z.ZodTypeAny, {
418
+ id: string;
419
+ createdAt: Date;
420
+ updatedAt: Date;
421
+ deletedAt: Date | null;
422
+ attribute: {
423
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
424
+ id: string;
425
+ position: number;
426
+ createdAt: Date;
427
+ updatedAt: Date;
428
+ deletedAt: Date | null;
429
+ isDefault: boolean;
430
+ systemName: string;
431
+ displayName: string;
432
+ isArchived: boolean;
433
+ isRequired: boolean;
434
+ isUnique: boolean;
435
+ };
436
+ textValue: string | null;
437
+ booleanValue: boolean | null;
438
+ numberValue: number | null;
439
+ dateValue: Date | null;
440
+ uploads: {
441
+ id: string;
442
+ createdAt: Date;
443
+ updatedAt: Date;
444
+ deletedAt: Date | null;
445
+ customFieldId: string;
446
+ upload: {
447
+ id: string;
448
+ createdAt: Date;
449
+ updatedAt: Date;
450
+ deletedAt: Date | null;
451
+ fileName: string;
452
+ fileKey: string;
453
+ bucketName: string;
454
+ fileSize: number;
455
+ fileUrl: string | null;
456
+ };
457
+ }[];
458
+ }, {
459
+ id: string;
460
+ createdAt: Date;
461
+ updatedAt: Date;
462
+ deletedAt: Date | null;
463
+ attribute: {
464
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
465
+ id: string;
466
+ position: number;
467
+ createdAt: Date;
468
+ updatedAt: Date;
469
+ deletedAt: Date | null;
470
+ isDefault: boolean;
471
+ systemName: string;
472
+ displayName: string;
473
+ isArchived: boolean;
474
+ isRequired: boolean;
475
+ isUnique: boolean;
476
+ };
477
+ textValue: string | null;
478
+ booleanValue: boolean | null;
479
+ numberValue: number | null;
480
+ dateValue: Date | null;
481
+ uploads: {
482
+ id: string;
483
+ createdAt: Date;
484
+ updatedAt: Date;
485
+ deletedAt: Date | null;
486
+ customFieldId: string;
487
+ upload: {
488
+ id: string;
489
+ createdAt: Date;
490
+ updatedAt: Date;
491
+ deletedAt: Date | null;
492
+ fileName: string;
493
+ fileKey: string;
494
+ bucketName: string;
495
+ fileSize: number;
496
+ fileUrl: string | null;
497
+ };
498
+ }[];
499
+ }>, "many">;
500
+ contactEmails: z.ZodArray<z.ZodObject<{
501
+ id: z.ZodString;
502
+ createdAt: z.ZodDate;
503
+ updatedAt: z.ZodDate;
504
+ deletedAt: z.ZodNullable<z.ZodDate>;
505
+ email: z.ZodString;
506
+ isPrimary: z.ZodBoolean;
507
+ }, "strip", z.ZodTypeAny, {
508
+ id: string;
509
+ isPrimary: boolean;
510
+ email: string;
511
+ createdAt: Date;
512
+ updatedAt: Date;
513
+ deletedAt: Date | null;
514
+ }, {
515
+ id: string;
516
+ isPrimary: boolean;
517
+ email: string;
518
+ createdAt: Date;
519
+ updatedAt: Date;
520
+ deletedAt: Date | null;
521
+ }>, "many">;
522
+ contactPhones: z.ZodArray<z.ZodObject<{
523
+ id: z.ZodString;
524
+ createdAt: z.ZodDate;
525
+ updatedAt: z.ZodDate;
526
+ deletedAt: z.ZodNullable<z.ZodDate>;
527
+ phone: z.ZodString;
528
+ isPrimary: z.ZodBoolean;
529
+ }, "strip", z.ZodTypeAny, {
530
+ id: string;
531
+ isPrimary: boolean;
532
+ createdAt: Date;
533
+ updatedAt: Date;
534
+ deletedAt: Date | null;
535
+ phone: string;
536
+ }, {
537
+ id: string;
538
+ isPrimary: boolean;
539
+ createdAt: Date;
540
+ updatedAt: Date;
541
+ deletedAt: Date | null;
542
+ phone: string;
543
+ }>, "many">;
544
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
545
+ id: z.ZodString;
546
+ createdAt: z.ZodDate;
547
+ updatedAt: z.ZodDate;
548
+ deletedAt: z.ZodNullable<z.ZodDate>;
549
+ entityId: z.ZodString;
550
+ description: z.ZodString;
551
+ entityType: z.ZodObject<{
552
+ id: z.ZodString;
553
+ createdAt: z.ZodDate;
554
+ updatedAt: z.ZodDate;
555
+ deletedAt: z.ZodNullable<z.ZodDate>;
556
+ entity: z.ZodString;
557
+ description: z.ZodNullable<z.ZodString>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ id: string;
560
+ description: string | null;
561
+ createdAt: Date;
562
+ updatedAt: Date;
563
+ deletedAt: Date | null;
564
+ entity: string;
565
+ }, {
566
+ id: string;
567
+ description: string | null;
568
+ createdAt: Date;
569
+ updatedAt: Date;
570
+ deletedAt: Date | null;
571
+ entity: string;
572
+ }>;
573
+ }, "strip", z.ZodTypeAny, {
574
+ id: string;
575
+ description: string;
576
+ createdAt: Date;
577
+ updatedAt: Date;
578
+ deletedAt: Date | null;
579
+ entityId: string;
580
+ entityType: {
581
+ id: string;
582
+ description: string | null;
583
+ createdAt: Date;
584
+ updatedAt: Date;
585
+ deletedAt: Date | null;
586
+ entity: string;
587
+ };
588
+ }, {
589
+ id: string;
590
+ description: string;
591
+ createdAt: Date;
592
+ updatedAt: Date;
593
+ deletedAt: Date | null;
594
+ entityId: string;
595
+ entityType: {
596
+ id: string;
597
+ description: string | null;
598
+ createdAt: Date;
599
+ updatedAt: Date;
600
+ deletedAt: Date | null;
601
+ entity: string;
602
+ };
603
+ }>, "many">>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ id: string;
606
+ channel: string | null;
607
+ address: string | null;
608
+ name: string;
609
+ createdAt: Date;
610
+ updatedAt: Date;
611
+ deletedAt: Date | null;
612
+ customFields: {
613
+ id: string;
614
+ createdAt: Date;
615
+ updatedAt: Date;
616
+ deletedAt: Date | null;
617
+ attribute: {
618
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
619
+ id: string;
620
+ position: number;
621
+ createdAt: Date;
622
+ updatedAt: Date;
623
+ deletedAt: Date | null;
624
+ isDefault: boolean;
625
+ systemName: string;
626
+ displayName: string;
627
+ isArchived: boolean;
628
+ isRequired: boolean;
629
+ isUnique: boolean;
630
+ };
631
+ textValue: string | null;
632
+ booleanValue: boolean | null;
633
+ numberValue: number | null;
634
+ dateValue: Date | null;
635
+ uploads: {
636
+ id: string;
637
+ createdAt: Date;
638
+ updatedAt: Date;
639
+ deletedAt: Date | null;
640
+ customFieldId: string;
641
+ upload: {
642
+ id: string;
643
+ createdAt: Date;
644
+ updatedAt: Date;
645
+ deletedAt: Date | null;
646
+ fileName: string;
647
+ fileKey: string;
648
+ bucketName: string;
649
+ fileSize: number;
650
+ fileUrl: string | null;
651
+ };
652
+ }[];
653
+ }[];
654
+ notes: string | null;
655
+ contactProfile: string | null;
656
+ socialProfileUrl: string | null;
657
+ tags: {
658
+ id: string;
659
+ name: string;
660
+ createdAt: Date;
661
+ updatedAt: Date;
662
+ deletedAt: Date | null;
663
+ }[];
664
+ company: {
665
+ id: string;
666
+ createdAt: Date;
667
+ updatedAt: Date;
668
+ deletedAt: Date | null;
669
+ address?: string | null | undefined;
670
+ name?: string | undefined;
671
+ phone?: string | null | undefined;
672
+ industry?: string | null | undefined;
673
+ } | null;
674
+ contactEmails: {
675
+ id: string;
676
+ isPrimary: boolean;
677
+ email: string;
678
+ createdAt: Date;
679
+ updatedAt: Date;
680
+ deletedAt: Date | null;
681
+ }[];
682
+ contactPhones: {
683
+ id: string;
684
+ isPrimary: boolean;
685
+ createdAt: Date;
686
+ updatedAt: Date;
687
+ deletedAt: Date | null;
688
+ phone: string;
689
+ }[];
690
+ activityLogs?: {
691
+ id: string;
692
+ description: string;
693
+ createdAt: Date;
694
+ updatedAt: Date;
695
+ deletedAt: Date | null;
696
+ entityId: string;
697
+ entityType: {
698
+ id: string;
699
+ description: string | null;
700
+ createdAt: Date;
701
+ updatedAt: Date;
702
+ deletedAt: Date | null;
703
+ entity: string;
704
+ };
705
+ }[] | undefined;
706
+ }, {
707
+ id: string;
708
+ channel: string | null;
709
+ address: string | null;
710
+ name: string;
711
+ createdAt: Date;
712
+ updatedAt: Date;
713
+ deletedAt: Date | null;
714
+ customFields: {
715
+ id: string;
716
+ createdAt: Date;
717
+ updatedAt: Date;
718
+ deletedAt: Date | null;
719
+ attribute: {
720
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
721
+ id: string;
722
+ position: number;
723
+ createdAt: Date;
724
+ updatedAt: Date;
725
+ deletedAt: Date | null;
726
+ isDefault: boolean;
727
+ systemName: string;
728
+ displayName: string;
729
+ isArchived: boolean;
730
+ isRequired: boolean;
731
+ isUnique: boolean;
732
+ };
733
+ textValue: string | null;
734
+ booleanValue: boolean | null;
735
+ numberValue: number | null;
736
+ dateValue: Date | null;
737
+ uploads: {
738
+ id: string;
739
+ createdAt: Date;
740
+ updatedAt: Date;
741
+ deletedAt: Date | null;
742
+ customFieldId: string;
743
+ upload: {
744
+ id: string;
745
+ createdAt: Date;
746
+ updatedAt: Date;
747
+ deletedAt: Date | null;
748
+ fileName: string;
749
+ fileKey: string;
750
+ bucketName: string;
751
+ fileSize: number;
752
+ fileUrl: string | null;
753
+ };
754
+ }[];
755
+ }[];
756
+ notes: string | null;
757
+ contactProfile: string | null;
758
+ socialProfileUrl: string | null;
759
+ tags: {
760
+ id: string;
761
+ name: string;
762
+ createdAt: Date;
763
+ updatedAt: Date;
764
+ deletedAt: Date | null;
765
+ }[];
766
+ company: {
767
+ id: string;
768
+ createdAt: Date;
769
+ updatedAt: Date;
770
+ deletedAt: Date | null;
771
+ address?: string | null | undefined;
772
+ name?: string | undefined;
773
+ phone?: string | null | undefined;
774
+ industry?: string | null | undefined;
775
+ } | null;
776
+ contactEmails: {
777
+ id: string;
778
+ isPrimary: boolean;
779
+ email: string;
780
+ createdAt: Date;
781
+ updatedAt: Date;
782
+ deletedAt: Date | null;
783
+ }[];
784
+ contactPhones: {
785
+ id: string;
786
+ isPrimary: boolean;
787
+ createdAt: Date;
788
+ updatedAt: Date;
789
+ deletedAt: Date | null;
790
+ phone: string;
791
+ }[];
792
+ activityLogs?: {
793
+ id: string;
794
+ description: string;
795
+ createdAt: Date;
796
+ updatedAt: Date;
797
+ deletedAt: Date | null;
798
+ entityId: string;
799
+ entityType: {
800
+ id: string;
801
+ description: string | null;
802
+ createdAt: Date;
803
+ updatedAt: Date;
804
+ deletedAt: Date | null;
805
+ entity: string;
806
+ };
807
+ }[] | undefined;
808
+ }>>;
809
+ telephonyQueue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
810
+ id: z.ZodString;
811
+ createdAt: z.ZodDate;
812
+ updatedAt: z.ZodDate;
813
+ deletedAt: z.ZodNullable<z.ZodDate>;
814
+ queueId: z.ZodNumber;
815
+ queueName: z.ZodString;
816
+ queueNumber: z.ZodString;
817
+ maximumWaitingTime: z.ZodNumber;
818
+ }, "strip", z.ZodTypeAny, {
819
+ id: string;
820
+ createdAt: Date;
821
+ updatedAt: Date;
822
+ deletedAt: Date | null;
823
+ queueId: number;
824
+ queueName: string;
825
+ queueNumber: string;
826
+ maximumWaitingTime: number;
827
+ }, {
828
+ id: string;
829
+ createdAt: Date;
830
+ updatedAt: Date;
831
+ deletedAt: Date | null;
832
+ queueId: number;
833
+ queueName: string;
834
+ queueNumber: string;
835
+ maximumWaitingTime: number;
836
+ }>>>;
54
837
  pinCode: z.ZodNullable<z.ZodString>;
55
838
  status: z.ZodString;
56
839
  type: z.ZodString;
57
840
  recording: z.ZodNullable<z.ZodString>;
58
841
  didNumber: z.ZodNullable<z.ZodString>;
59
842
  agentRingTime: z.ZodNullable<z.ZodNumber>;
843
+ uploadId: z.ZodNullable<z.ZodString>;
844
+ upload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
845
+ id: z.ZodString;
846
+ createdAt: z.ZodDate;
847
+ updatedAt: z.ZodDate;
848
+ deletedAt: z.ZodNullable<z.ZodDate>;
849
+ bucketName: z.ZodString;
850
+ fileName: z.ZodString;
851
+ fileSize: z.ZodNumber;
852
+ fileKey: z.ZodString;
853
+ fileUrl: z.ZodNullable<z.ZodString>;
854
+ }, "strip", z.ZodTypeAny, {
855
+ id: string;
856
+ createdAt: Date;
857
+ updatedAt: Date;
858
+ deletedAt: Date | null;
859
+ fileName: string;
860
+ fileKey: string;
861
+ bucketName: string;
862
+ fileSize: number;
863
+ fileUrl: string | null;
864
+ }, {
865
+ id: string;
866
+ createdAt: Date;
867
+ updatedAt: Date;
868
+ deletedAt: Date | null;
869
+ fileName: string;
870
+ fileKey: string;
871
+ bucketName: string;
872
+ fileSize: number;
873
+ fileUrl: string | null;
874
+ }>>>;
875
+ serialNumber: z.ZodNullable<z.ZodString>;
876
+ extensionId: z.ZodNullable<z.ZodString>;
877
+ extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
878
+ id: z.ZodString;
879
+ createdAt: z.ZodDate;
880
+ updatedAt: z.ZodDate;
881
+ deletedAt: z.ZodNullable<z.ZodDate>;
882
+ userId: z.ZodNullable<z.ZodString>;
883
+ sipServerUrl: z.ZodString;
884
+ sipUserName: z.ZodString;
885
+ webphoneLoginUser: z.ZodString;
886
+ extensionId: z.ZodNumber;
887
+ extensionName: z.ZodString;
888
+ telephonySignature: z.ZodNullable<z.ZodString>;
889
+ }, "strip", z.ZodTypeAny, {
890
+ id: string;
891
+ createdAt: Date;
892
+ updatedAt: Date;
893
+ deletedAt: Date | null;
894
+ userId: string | null;
895
+ sipServerUrl: string;
896
+ sipUserName: string;
897
+ webphoneLoginUser: string;
898
+ extensionId: number;
899
+ extensionName: string;
900
+ telephonySignature: string | null;
901
+ }, {
902
+ id: string;
903
+ createdAt: Date;
904
+ updatedAt: Date;
905
+ deletedAt: Date | null;
906
+ userId: string | null;
907
+ sipServerUrl: string;
908
+ sipUserName: string;
909
+ webphoneLoginUser: string;
910
+ extensionId: number;
911
+ extensionName: string;
912
+ telephonySignature: string | null;
913
+ }>>>;
914
+ telephonyQueueId: z.ZodNullable<z.ZodString>;
915
+ contactId: z.ZodNullable<z.ZodString>;
60
916
  }, "strip", z.ZodTypeAny, {
61
917
  type: string;
918
+ id: string;
62
919
  recording: string | null;
63
920
  status: string;
921
+ createdAt: Date;
922
+ updatedAt: Date;
923
+ deletedAt: Date | null;
924
+ extensionId: string | null;
64
925
  uniqueCallId: string;
65
926
  timeStart: string;
66
927
  callFrom: string;
@@ -72,10 +933,156 @@ export declare const telephonyCdrContract: {
72
933
  pinCode: string | null;
73
934
  didNumber: string | null;
74
935
  agentRingTime: number | null;
936
+ uploadId: string | null;
937
+ serialNumber: string | null;
938
+ telephonyQueueId: string | null;
939
+ contactId: string | null;
940
+ contact?: {
941
+ id: string;
942
+ channel: string | null;
943
+ address: string | null;
944
+ name: string;
945
+ createdAt: Date;
946
+ updatedAt: Date;
947
+ deletedAt: Date | null;
948
+ customFields: {
949
+ id: string;
950
+ createdAt: Date;
951
+ updatedAt: Date;
952
+ deletedAt: Date | null;
953
+ attribute: {
954
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
955
+ id: string;
956
+ position: number;
957
+ createdAt: Date;
958
+ updatedAt: Date;
959
+ deletedAt: Date | null;
960
+ isDefault: boolean;
961
+ systemName: string;
962
+ displayName: string;
963
+ isArchived: boolean;
964
+ isRequired: boolean;
965
+ isUnique: boolean;
966
+ };
967
+ textValue: string | null;
968
+ booleanValue: boolean | null;
969
+ numberValue: number | null;
970
+ dateValue: Date | null;
971
+ uploads: {
972
+ id: string;
973
+ createdAt: Date;
974
+ updatedAt: Date;
975
+ deletedAt: Date | null;
976
+ customFieldId: string;
977
+ upload: {
978
+ id: string;
979
+ createdAt: Date;
980
+ updatedAt: Date;
981
+ deletedAt: Date | null;
982
+ fileName: string;
983
+ fileKey: string;
984
+ bucketName: string;
985
+ fileSize: number;
986
+ fileUrl: string | null;
987
+ };
988
+ }[];
989
+ }[];
990
+ notes: string | null;
991
+ contactProfile: string | null;
992
+ socialProfileUrl: string | null;
993
+ tags: {
994
+ id: string;
995
+ name: string;
996
+ createdAt: Date;
997
+ updatedAt: Date;
998
+ deletedAt: Date | null;
999
+ }[];
1000
+ company: {
1001
+ id: string;
1002
+ createdAt: Date;
1003
+ updatedAt: Date;
1004
+ deletedAt: Date | null;
1005
+ address?: string | null | undefined;
1006
+ name?: string | undefined;
1007
+ phone?: string | null | undefined;
1008
+ industry?: string | null | undefined;
1009
+ } | null;
1010
+ contactEmails: {
1011
+ id: string;
1012
+ isPrimary: boolean;
1013
+ email: string;
1014
+ createdAt: Date;
1015
+ updatedAt: Date;
1016
+ deletedAt: Date | null;
1017
+ }[];
1018
+ contactPhones: {
1019
+ id: string;
1020
+ isPrimary: boolean;
1021
+ createdAt: Date;
1022
+ updatedAt: Date;
1023
+ deletedAt: Date | null;
1024
+ phone: string;
1025
+ }[];
1026
+ activityLogs?: {
1027
+ id: string;
1028
+ description: string;
1029
+ createdAt: Date;
1030
+ updatedAt: Date;
1031
+ deletedAt: Date | null;
1032
+ entityId: string;
1033
+ entityType: {
1034
+ id: string;
1035
+ description: string | null;
1036
+ createdAt: Date;
1037
+ updatedAt: Date;
1038
+ deletedAt: Date | null;
1039
+ entity: string;
1040
+ };
1041
+ }[] | undefined;
1042
+ } | undefined;
1043
+ telephonyQueue?: {
1044
+ id: string;
1045
+ createdAt: Date;
1046
+ updatedAt: Date;
1047
+ deletedAt: Date | null;
1048
+ queueId: number;
1049
+ queueName: string;
1050
+ queueNumber: string;
1051
+ maximumWaitingTime: number;
1052
+ } | null | undefined;
1053
+ upload?: {
1054
+ id: string;
1055
+ createdAt: Date;
1056
+ updatedAt: Date;
1057
+ deletedAt: Date | null;
1058
+ fileName: string;
1059
+ fileKey: string;
1060
+ bucketName: string;
1061
+ fileSize: number;
1062
+ fileUrl: string | null;
1063
+ } | null | undefined;
1064
+ extension?: {
1065
+ id: string;
1066
+ createdAt: Date;
1067
+ updatedAt: Date;
1068
+ deletedAt: Date | null;
1069
+ userId: string | null;
1070
+ sipServerUrl: string;
1071
+ sipUserName: string;
1072
+ webphoneLoginUser: string;
1073
+ extensionId: number;
1074
+ extensionName: string;
1075
+ telephonySignature: string | null;
1076
+ } | null | undefined;
75
1077
  }, {
76
1078
  type: string;
1079
+ id: string;
77
1080
  recording: string | null;
78
1081
  status: string;
1082
+ createdAt: Date;
1083
+ updatedAt: Date;
1084
+ deletedAt: Date | null;
1085
+ extensionId: string | null;
79
1086
  uniqueCallId: string;
80
1087
  timeStart: string;
81
1088
  callFrom: string;
@@ -87,6 +1094,147 @@ export declare const telephonyCdrContract: {
87
1094
  pinCode: string | null;
88
1095
  didNumber: string | null;
89
1096
  agentRingTime: number | null;
1097
+ uploadId: string | null;
1098
+ serialNumber: string | null;
1099
+ telephonyQueueId: string | null;
1100
+ contactId: string | null;
1101
+ contact?: {
1102
+ id: string;
1103
+ channel: string | null;
1104
+ address: string | null;
1105
+ name: string;
1106
+ createdAt: Date;
1107
+ updatedAt: Date;
1108
+ deletedAt: Date | null;
1109
+ customFields: {
1110
+ id: string;
1111
+ createdAt: Date;
1112
+ updatedAt: Date;
1113
+ deletedAt: Date | null;
1114
+ attribute: {
1115
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1116
+ id: string;
1117
+ position: number;
1118
+ createdAt: Date;
1119
+ updatedAt: Date;
1120
+ deletedAt: Date | null;
1121
+ isDefault: boolean;
1122
+ systemName: string;
1123
+ displayName: string;
1124
+ isArchived: boolean;
1125
+ isRequired: boolean;
1126
+ isUnique: boolean;
1127
+ };
1128
+ textValue: string | null;
1129
+ booleanValue: boolean | null;
1130
+ numberValue: number | null;
1131
+ dateValue: Date | null;
1132
+ uploads: {
1133
+ id: string;
1134
+ createdAt: Date;
1135
+ updatedAt: Date;
1136
+ deletedAt: Date | null;
1137
+ customFieldId: string;
1138
+ upload: {
1139
+ id: string;
1140
+ createdAt: Date;
1141
+ updatedAt: Date;
1142
+ deletedAt: Date | null;
1143
+ fileName: string;
1144
+ fileKey: string;
1145
+ bucketName: string;
1146
+ fileSize: number;
1147
+ fileUrl: string | null;
1148
+ };
1149
+ }[];
1150
+ }[];
1151
+ notes: string | null;
1152
+ contactProfile: string | null;
1153
+ socialProfileUrl: string | null;
1154
+ tags: {
1155
+ id: string;
1156
+ name: string;
1157
+ createdAt: Date;
1158
+ updatedAt: Date;
1159
+ deletedAt: Date | null;
1160
+ }[];
1161
+ company: {
1162
+ id: string;
1163
+ createdAt: Date;
1164
+ updatedAt: Date;
1165
+ deletedAt: Date | null;
1166
+ address?: string | null | undefined;
1167
+ name?: string | undefined;
1168
+ phone?: string | null | undefined;
1169
+ industry?: string | null | undefined;
1170
+ } | null;
1171
+ contactEmails: {
1172
+ id: string;
1173
+ isPrimary: boolean;
1174
+ email: string;
1175
+ createdAt: Date;
1176
+ updatedAt: Date;
1177
+ deletedAt: Date | null;
1178
+ }[];
1179
+ contactPhones: {
1180
+ id: string;
1181
+ isPrimary: boolean;
1182
+ createdAt: Date;
1183
+ updatedAt: Date;
1184
+ deletedAt: Date | null;
1185
+ phone: string;
1186
+ }[];
1187
+ activityLogs?: {
1188
+ id: string;
1189
+ description: string;
1190
+ createdAt: Date;
1191
+ updatedAt: Date;
1192
+ deletedAt: Date | null;
1193
+ entityId: string;
1194
+ entityType: {
1195
+ id: string;
1196
+ description: string | null;
1197
+ createdAt: Date;
1198
+ updatedAt: Date;
1199
+ deletedAt: Date | null;
1200
+ entity: string;
1201
+ };
1202
+ }[] | undefined;
1203
+ } | undefined;
1204
+ telephonyQueue?: {
1205
+ id: string;
1206
+ createdAt: Date;
1207
+ updatedAt: Date;
1208
+ deletedAt: Date | null;
1209
+ queueId: number;
1210
+ queueName: string;
1211
+ queueNumber: string;
1212
+ maximumWaitingTime: number;
1213
+ } | null | undefined;
1214
+ upload?: {
1215
+ id: string;
1216
+ createdAt: Date;
1217
+ updatedAt: Date;
1218
+ deletedAt: Date | null;
1219
+ fileName: string;
1220
+ fileKey: string;
1221
+ bucketName: string;
1222
+ fileSize: number;
1223
+ fileUrl: string | null;
1224
+ } | null | undefined;
1225
+ extension?: {
1226
+ id: string;
1227
+ createdAt: Date;
1228
+ updatedAt: Date;
1229
+ deletedAt: Date | null;
1230
+ userId: string | null;
1231
+ sipServerUrl: string;
1232
+ sipUserName: string;
1233
+ webphoneLoginUser: string;
1234
+ extensionId: number;
1235
+ extensionName: string;
1236
+ telephonySignature: string | null;
1237
+ } | null | undefined;
90
1238
  }>, "many">;
91
1239
  }, "strip", z.ZodTypeAny, {
92
1240
  total: number;
@@ -95,8 +1243,13 @@ export declare const telephonyCdrContract: {
95
1243
  requestId: string;
96
1244
  telephonyCdrs: {
97
1245
  type: string;
1246
+ id: string;
98
1247
  recording: string | null;
99
1248
  status: string;
1249
+ createdAt: Date;
1250
+ updatedAt: Date;
1251
+ deletedAt: Date | null;
1252
+ extensionId: string | null;
100
1253
  uniqueCallId: string;
101
1254
  timeStart: string;
102
1255
  callFrom: string;
@@ -108,6 +1261,147 @@ export declare const telephonyCdrContract: {
108
1261
  pinCode: string | null;
109
1262
  didNumber: string | null;
110
1263
  agentRingTime: number | null;
1264
+ uploadId: string | null;
1265
+ serialNumber: string | null;
1266
+ telephonyQueueId: string | null;
1267
+ contactId: string | null;
1268
+ contact?: {
1269
+ id: string;
1270
+ channel: string | null;
1271
+ address: string | null;
1272
+ name: string;
1273
+ createdAt: Date;
1274
+ updatedAt: Date;
1275
+ deletedAt: Date | null;
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
+ uploads: {
1300
+ id: string;
1301
+ createdAt: Date;
1302
+ updatedAt: Date;
1303
+ deletedAt: Date | null;
1304
+ customFieldId: string;
1305
+ upload: {
1306
+ id: string;
1307
+ createdAt: Date;
1308
+ updatedAt: Date;
1309
+ deletedAt: Date | null;
1310
+ fileName: string;
1311
+ fileKey: string;
1312
+ bucketName: string;
1313
+ fileSize: number;
1314
+ fileUrl: string | null;
1315
+ };
1316
+ }[];
1317
+ }[];
1318
+ notes: string | null;
1319
+ contactProfile: string | null;
1320
+ socialProfileUrl: string | null;
1321
+ tags: {
1322
+ id: string;
1323
+ name: string;
1324
+ createdAt: Date;
1325
+ updatedAt: Date;
1326
+ deletedAt: Date | null;
1327
+ }[];
1328
+ company: {
1329
+ id: string;
1330
+ createdAt: Date;
1331
+ updatedAt: Date;
1332
+ deletedAt: Date | null;
1333
+ address?: string | null | undefined;
1334
+ name?: string | undefined;
1335
+ phone?: string | null | undefined;
1336
+ industry?: string | null | undefined;
1337
+ } | null;
1338
+ contactEmails: {
1339
+ id: string;
1340
+ isPrimary: boolean;
1341
+ email: string;
1342
+ createdAt: Date;
1343
+ updatedAt: Date;
1344
+ deletedAt: Date | null;
1345
+ }[];
1346
+ contactPhones: {
1347
+ id: string;
1348
+ isPrimary: boolean;
1349
+ createdAt: Date;
1350
+ updatedAt: Date;
1351
+ deletedAt: Date | null;
1352
+ phone: string;
1353
+ }[];
1354
+ activityLogs?: {
1355
+ id: string;
1356
+ description: string;
1357
+ createdAt: Date;
1358
+ updatedAt: Date;
1359
+ deletedAt: Date | null;
1360
+ entityId: string;
1361
+ entityType: {
1362
+ id: string;
1363
+ description: string | null;
1364
+ createdAt: Date;
1365
+ updatedAt: Date;
1366
+ deletedAt: Date | null;
1367
+ entity: string;
1368
+ };
1369
+ }[] | undefined;
1370
+ } | undefined;
1371
+ telephonyQueue?: {
1372
+ id: string;
1373
+ createdAt: Date;
1374
+ updatedAt: Date;
1375
+ deletedAt: Date | null;
1376
+ queueId: number;
1377
+ queueName: string;
1378
+ queueNumber: string;
1379
+ maximumWaitingTime: number;
1380
+ } | null | undefined;
1381
+ upload?: {
1382
+ id: string;
1383
+ createdAt: Date;
1384
+ updatedAt: Date;
1385
+ deletedAt: Date | null;
1386
+ fileName: string;
1387
+ fileKey: string;
1388
+ bucketName: string;
1389
+ fileSize: number;
1390
+ fileUrl: string | null;
1391
+ } | null | undefined;
1392
+ extension?: {
1393
+ id: string;
1394
+ createdAt: Date;
1395
+ updatedAt: Date;
1396
+ deletedAt: Date | null;
1397
+ userId: string | null;
1398
+ sipServerUrl: string;
1399
+ sipUserName: string;
1400
+ webphoneLoginUser: string;
1401
+ extensionId: number;
1402
+ extensionName: string;
1403
+ telephonySignature: string | null;
1404
+ } | null | undefined;
111
1405
  }[];
112
1406
  }, {
113
1407
  total: number;
@@ -116,8 +1410,13 @@ export declare const telephonyCdrContract: {
116
1410
  requestId: string;
117
1411
  telephonyCdrs: {
118
1412
  type: string;
1413
+ id: string;
119
1414
  recording: string | null;
120
1415
  status: string;
1416
+ createdAt: Date;
1417
+ updatedAt: Date;
1418
+ deletedAt: Date | null;
1419
+ extensionId: string | null;
121
1420
  uniqueCallId: string;
122
1421
  timeStart: string;
123
1422
  callFrom: string;
@@ -129,6 +1428,147 @@ export declare const telephonyCdrContract: {
129
1428
  pinCode: string | null;
130
1429
  didNumber: string | null;
131
1430
  agentRingTime: number | null;
1431
+ uploadId: string | null;
1432
+ serialNumber: string | null;
1433
+ telephonyQueueId: string | null;
1434
+ contactId: string | null;
1435
+ contact?: {
1436
+ id: string;
1437
+ channel: string | null;
1438
+ address: string | null;
1439
+ name: string;
1440
+ createdAt: Date;
1441
+ updatedAt: Date;
1442
+ deletedAt: Date | null;
1443
+ customFields: {
1444
+ id: string;
1445
+ createdAt: Date;
1446
+ updatedAt: Date;
1447
+ deletedAt: Date | null;
1448
+ attribute: {
1449
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1450
+ id: string;
1451
+ position: number;
1452
+ createdAt: Date;
1453
+ updatedAt: Date;
1454
+ deletedAt: Date | null;
1455
+ isDefault: boolean;
1456
+ systemName: string;
1457
+ displayName: string;
1458
+ isArchived: boolean;
1459
+ isRequired: boolean;
1460
+ isUnique: boolean;
1461
+ };
1462
+ textValue: string | null;
1463
+ booleanValue: boolean | null;
1464
+ numberValue: number | null;
1465
+ dateValue: Date | null;
1466
+ uploads: {
1467
+ id: string;
1468
+ createdAt: Date;
1469
+ updatedAt: Date;
1470
+ deletedAt: Date | null;
1471
+ customFieldId: string;
1472
+ upload: {
1473
+ id: string;
1474
+ createdAt: Date;
1475
+ updatedAt: Date;
1476
+ deletedAt: Date | null;
1477
+ fileName: string;
1478
+ fileKey: string;
1479
+ bucketName: string;
1480
+ fileSize: number;
1481
+ fileUrl: string | null;
1482
+ };
1483
+ }[];
1484
+ }[];
1485
+ notes: string | null;
1486
+ contactProfile: string | null;
1487
+ socialProfileUrl: string | null;
1488
+ tags: {
1489
+ id: string;
1490
+ name: string;
1491
+ createdAt: Date;
1492
+ updatedAt: Date;
1493
+ deletedAt: Date | null;
1494
+ }[];
1495
+ company: {
1496
+ id: string;
1497
+ createdAt: Date;
1498
+ updatedAt: Date;
1499
+ deletedAt: Date | null;
1500
+ address?: string | null | undefined;
1501
+ name?: string | undefined;
1502
+ phone?: string | null | undefined;
1503
+ industry?: string | null | undefined;
1504
+ } | null;
1505
+ contactEmails: {
1506
+ id: string;
1507
+ isPrimary: boolean;
1508
+ email: string;
1509
+ createdAt: Date;
1510
+ updatedAt: Date;
1511
+ deletedAt: Date | null;
1512
+ }[];
1513
+ contactPhones: {
1514
+ id: string;
1515
+ isPrimary: boolean;
1516
+ createdAt: Date;
1517
+ updatedAt: Date;
1518
+ deletedAt: Date | null;
1519
+ phone: string;
1520
+ }[];
1521
+ activityLogs?: {
1522
+ id: string;
1523
+ description: string;
1524
+ createdAt: Date;
1525
+ updatedAt: Date;
1526
+ deletedAt: Date | null;
1527
+ entityId: string;
1528
+ entityType: {
1529
+ id: string;
1530
+ description: string | null;
1531
+ createdAt: Date;
1532
+ updatedAt: Date;
1533
+ deletedAt: Date | null;
1534
+ entity: string;
1535
+ };
1536
+ }[] | undefined;
1537
+ } | undefined;
1538
+ telephonyQueue?: {
1539
+ id: string;
1540
+ createdAt: Date;
1541
+ updatedAt: Date;
1542
+ deletedAt: Date | null;
1543
+ queueId: number;
1544
+ queueName: string;
1545
+ queueNumber: string;
1546
+ maximumWaitingTime: number;
1547
+ } | null | undefined;
1548
+ upload?: {
1549
+ id: string;
1550
+ createdAt: Date;
1551
+ updatedAt: Date;
1552
+ deletedAt: Date | null;
1553
+ fileName: string;
1554
+ fileKey: string;
1555
+ bucketName: string;
1556
+ fileSize: number;
1557
+ fileUrl: string | null;
1558
+ } | null | undefined;
1559
+ extension?: {
1560
+ id: string;
1561
+ createdAt: Date;
1562
+ updatedAt: Date;
1563
+ deletedAt: Date | null;
1564
+ userId: string | null;
1565
+ sipServerUrl: string;
1566
+ sipUserName: string;
1567
+ webphoneLoginUser: string;
1568
+ extensionId: number;
1569
+ extensionName: string;
1570
+ telephonySignature: string | null;
1571
+ } | null | undefined;
132
1572
  }[];
133
1573
  }>;
134
1574
  401: z.ZodObject<{
@@ -198,6 +1638,10 @@ export declare const telephonyCdrContract: {
198
1638
  page: z.ZodNumber;
199
1639
  pageSize: z.ZodNumber;
200
1640
  telephonyCdrs: z.ZodArray<z.ZodObject<{
1641
+ id: z.ZodString;
1642
+ createdAt: z.ZodDate;
1643
+ updatedAt: z.ZodDate;
1644
+ deletedAt: z.ZodNullable<z.ZodDate>;
201
1645
  uniqueCallId: z.ZodString;
202
1646
  timeStart: z.ZodString;
203
1647
  callFrom: z.ZodString;
@@ -206,16 +1650,871 @@ export declare const telephonyCdrContract: {
206
1650
  talkDuration: z.ZodNullable<z.ZodNumber>;
207
1651
  srcTrunkName: z.ZodNullable<z.ZodString>;
208
1652
  dstTrunkName: z.ZodNullable<z.ZodString>;
1653
+ contact: z.ZodOptional<z.ZodObject<{
1654
+ id: z.ZodString;
1655
+ createdAt: z.ZodDate;
1656
+ updatedAt: z.ZodDate;
1657
+ deletedAt: z.ZodNullable<z.ZodDate>;
1658
+ name: z.ZodString;
1659
+ address: z.ZodNullable<z.ZodString>;
1660
+ channel: z.ZodNullable<z.ZodString>;
1661
+ notes: z.ZodNullable<z.ZodString>;
1662
+ contactProfile: z.ZodNullable<z.ZodString>;
1663
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
1664
+ tags: z.ZodArray<z.ZodObject<{
1665
+ id: z.ZodString;
1666
+ createdAt: z.ZodDate;
1667
+ updatedAt: z.ZodDate;
1668
+ deletedAt: z.ZodNullable<z.ZodDate>;
1669
+ name: z.ZodString;
1670
+ }, "strip", z.ZodTypeAny, {
1671
+ id: string;
1672
+ name: string;
1673
+ createdAt: Date;
1674
+ updatedAt: Date;
1675
+ deletedAt: Date | null;
1676
+ }, {
1677
+ id: string;
1678
+ name: string;
1679
+ createdAt: Date;
1680
+ updatedAt: Date;
1681
+ deletedAt: Date | null;
1682
+ }>, "many">;
1683
+ company: z.ZodNullable<z.ZodObject<Omit<{
1684
+ id: z.ZodString;
1685
+ createdAt: z.ZodDate;
1686
+ updatedAt: z.ZodDate;
1687
+ deletedAt: z.ZodNullable<z.ZodDate>;
1688
+ name: z.ZodOptional<z.ZodString>;
1689
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1690
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1691
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1692
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1693
+ id: z.ZodString;
1694
+ createdAt: z.ZodDate;
1695
+ updatedAt: z.ZodDate;
1696
+ deletedAt: z.ZodNullable<z.ZodDate>;
1697
+ textValue: z.ZodNullable<z.ZodString>;
1698
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1699
+ numberValue: z.ZodNullable<z.ZodNumber>;
1700
+ dateValue: z.ZodNullable<z.ZodDate>;
1701
+ attribute: z.ZodObject<Omit<{
1702
+ id: z.ZodString;
1703
+ createdAt: z.ZodDate;
1704
+ updatedAt: z.ZodDate;
1705
+ deletedAt: z.ZodNullable<z.ZodDate>;
1706
+ systemName: z.ZodString;
1707
+ displayName: z.ZodString;
1708
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1709
+ position: z.ZodNumber;
1710
+ isDefault: z.ZodBoolean;
1711
+ isArchived: z.ZodBoolean;
1712
+ isRequired: z.ZodBoolean;
1713
+ isUnique: z.ZodBoolean;
1714
+ options: z.ZodArray<z.ZodObject<{
1715
+ position: z.ZodNumber;
1716
+ value: z.ZodString;
1717
+ label: z.ZodString;
1718
+ isDefault: z.ZodBoolean;
1719
+ id: z.ZodString;
1720
+ }, "strip", z.ZodTypeAny, {
1721
+ id: string;
1722
+ position: number;
1723
+ value: string;
1724
+ label: string;
1725
+ isDefault: boolean;
1726
+ }, {
1727
+ id: string;
1728
+ position: number;
1729
+ value: string;
1730
+ label: string;
1731
+ isDefault: boolean;
1732
+ }>, "many">;
1733
+ group: z.ZodObject<{
1734
+ id: z.ZodString;
1735
+ createdAt: z.ZodDate;
1736
+ updatedAt: z.ZodDate;
1737
+ deletedAt: z.ZodNullable<z.ZodDate>;
1738
+ systemName: z.ZodString;
1739
+ displayName: z.ZodString;
1740
+ }, "strip", z.ZodTypeAny, {
1741
+ id: string;
1742
+ createdAt: Date;
1743
+ updatedAt: Date;
1744
+ deletedAt: Date | null;
1745
+ systemName: string;
1746
+ displayName: string;
1747
+ }, {
1748
+ id: string;
1749
+ createdAt: Date;
1750
+ updatedAt: Date;
1751
+ deletedAt: Date | null;
1752
+ systemName: string;
1753
+ displayName: string;
1754
+ }>;
1755
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1756
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1757
+ id: string;
1758
+ position: number;
1759
+ createdAt: Date;
1760
+ updatedAt: Date;
1761
+ deletedAt: Date | null;
1762
+ isDefault: boolean;
1763
+ systemName: string;
1764
+ displayName: string;
1765
+ isArchived: boolean;
1766
+ isRequired: boolean;
1767
+ isUnique: boolean;
1768
+ }, {
1769
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1770
+ id: string;
1771
+ position: number;
1772
+ createdAt: Date;
1773
+ updatedAt: Date;
1774
+ deletedAt: Date | null;
1775
+ isDefault: boolean;
1776
+ systemName: string;
1777
+ displayName: string;
1778
+ isArchived: boolean;
1779
+ isRequired: boolean;
1780
+ isUnique: boolean;
1781
+ }>;
1782
+ }, "strip", z.ZodTypeAny, {
1783
+ id: string;
1784
+ createdAt: Date;
1785
+ updatedAt: Date;
1786
+ deletedAt: Date | null;
1787
+ attribute: {
1788
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1789
+ id: string;
1790
+ position: number;
1791
+ createdAt: Date;
1792
+ updatedAt: Date;
1793
+ deletedAt: Date | null;
1794
+ isDefault: boolean;
1795
+ systemName: string;
1796
+ displayName: string;
1797
+ isArchived: boolean;
1798
+ isRequired: boolean;
1799
+ isUnique: boolean;
1800
+ };
1801
+ textValue: string | null;
1802
+ booleanValue: boolean | null;
1803
+ numberValue: number | null;
1804
+ dateValue: Date | null;
1805
+ }, {
1806
+ id: string;
1807
+ createdAt: Date;
1808
+ updatedAt: Date;
1809
+ deletedAt: Date | null;
1810
+ attribute: {
1811
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1812
+ id: string;
1813
+ position: number;
1814
+ createdAt: Date;
1815
+ updatedAt: Date;
1816
+ deletedAt: Date | null;
1817
+ isDefault: boolean;
1818
+ systemName: string;
1819
+ displayName: string;
1820
+ isArchived: boolean;
1821
+ isRequired: boolean;
1822
+ isUnique: boolean;
1823
+ };
1824
+ textValue: string | null;
1825
+ booleanValue: boolean | null;
1826
+ numberValue: number | null;
1827
+ dateValue: Date | null;
1828
+ }>, "many">>;
1829
+ }, "customFields">, "strip", z.ZodTypeAny, {
1830
+ id: string;
1831
+ createdAt: Date;
1832
+ updatedAt: Date;
1833
+ deletedAt: Date | null;
1834
+ address?: string | null | undefined;
1835
+ name?: string | undefined;
1836
+ phone?: string | null | undefined;
1837
+ industry?: string | null | undefined;
1838
+ }, {
1839
+ id: string;
1840
+ createdAt: Date;
1841
+ updatedAt: Date;
1842
+ deletedAt: Date | null;
1843
+ address?: string | null | undefined;
1844
+ name?: string | undefined;
1845
+ phone?: string | null | undefined;
1846
+ industry?: string | null | undefined;
1847
+ }>>;
1848
+ customFields: z.ZodArray<z.ZodObject<{
1849
+ id: z.ZodString;
1850
+ createdAt: z.ZodDate;
1851
+ updatedAt: z.ZodDate;
1852
+ deletedAt: z.ZodNullable<z.ZodDate>;
1853
+ textValue: z.ZodNullable<z.ZodString>;
1854
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1855
+ numberValue: z.ZodNullable<z.ZodNumber>;
1856
+ dateValue: z.ZodNullable<z.ZodDate>;
1857
+ attribute: z.ZodObject<Omit<{
1858
+ id: z.ZodString;
1859
+ createdAt: z.ZodDate;
1860
+ updatedAt: z.ZodDate;
1861
+ deletedAt: z.ZodNullable<z.ZodDate>;
1862
+ systemName: z.ZodString;
1863
+ displayName: z.ZodString;
1864
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1865
+ position: z.ZodNumber;
1866
+ isDefault: z.ZodBoolean;
1867
+ isArchived: z.ZodBoolean;
1868
+ isRequired: z.ZodBoolean;
1869
+ isUnique: z.ZodBoolean;
1870
+ options: z.ZodArray<z.ZodObject<{
1871
+ position: z.ZodNumber;
1872
+ value: z.ZodString;
1873
+ label: z.ZodString;
1874
+ isDefault: z.ZodBoolean;
1875
+ id: z.ZodString;
1876
+ }, "strip", z.ZodTypeAny, {
1877
+ id: string;
1878
+ position: number;
1879
+ value: string;
1880
+ label: string;
1881
+ isDefault: boolean;
1882
+ }, {
1883
+ id: string;
1884
+ position: number;
1885
+ value: string;
1886
+ label: string;
1887
+ isDefault: boolean;
1888
+ }>, "many">;
1889
+ group: z.ZodObject<{
1890
+ id: z.ZodString;
1891
+ createdAt: z.ZodDate;
1892
+ updatedAt: z.ZodDate;
1893
+ deletedAt: z.ZodNullable<z.ZodDate>;
1894
+ systemName: z.ZodString;
1895
+ displayName: z.ZodString;
1896
+ }, "strip", z.ZodTypeAny, {
1897
+ id: string;
1898
+ createdAt: Date;
1899
+ updatedAt: Date;
1900
+ deletedAt: Date | null;
1901
+ systemName: string;
1902
+ displayName: string;
1903
+ }, {
1904
+ id: string;
1905
+ createdAt: Date;
1906
+ updatedAt: Date;
1907
+ deletedAt: Date | null;
1908
+ systemName: string;
1909
+ displayName: string;
1910
+ }>;
1911
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1912
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1913
+ id: string;
1914
+ position: number;
1915
+ createdAt: Date;
1916
+ updatedAt: Date;
1917
+ deletedAt: Date | null;
1918
+ isDefault: boolean;
1919
+ systemName: string;
1920
+ displayName: string;
1921
+ isArchived: boolean;
1922
+ isRequired: boolean;
1923
+ isUnique: boolean;
1924
+ }, {
1925
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1926
+ id: string;
1927
+ position: number;
1928
+ createdAt: Date;
1929
+ updatedAt: Date;
1930
+ deletedAt: Date | null;
1931
+ isDefault: boolean;
1932
+ systemName: string;
1933
+ displayName: string;
1934
+ isArchived: boolean;
1935
+ isRequired: boolean;
1936
+ isUnique: boolean;
1937
+ }>;
1938
+ uploads: z.ZodArray<z.ZodObject<{
1939
+ id: z.ZodString;
1940
+ createdAt: z.ZodDate;
1941
+ updatedAt: z.ZodDate;
1942
+ deletedAt: z.ZodNullable<z.ZodDate>;
1943
+ customFieldId: z.ZodString;
1944
+ upload: z.ZodObject<{
1945
+ id: z.ZodString;
1946
+ createdAt: z.ZodDate;
1947
+ updatedAt: z.ZodDate;
1948
+ deletedAt: z.ZodNullable<z.ZodDate>;
1949
+ bucketName: z.ZodString;
1950
+ fileName: z.ZodString;
1951
+ fileSize: z.ZodNumber;
1952
+ fileKey: z.ZodString;
1953
+ fileUrl: z.ZodNullable<z.ZodString>;
1954
+ }, "strip", z.ZodTypeAny, {
1955
+ id: string;
1956
+ createdAt: Date;
1957
+ updatedAt: Date;
1958
+ deletedAt: Date | null;
1959
+ fileName: string;
1960
+ fileKey: string;
1961
+ bucketName: string;
1962
+ fileSize: number;
1963
+ fileUrl: string | null;
1964
+ }, {
1965
+ id: string;
1966
+ createdAt: Date;
1967
+ updatedAt: Date;
1968
+ deletedAt: Date | null;
1969
+ fileName: string;
1970
+ fileKey: string;
1971
+ bucketName: string;
1972
+ fileSize: number;
1973
+ fileUrl: string | null;
1974
+ }>;
1975
+ }, "strip", z.ZodTypeAny, {
1976
+ id: string;
1977
+ createdAt: Date;
1978
+ updatedAt: Date;
1979
+ deletedAt: Date | null;
1980
+ customFieldId: string;
1981
+ upload: {
1982
+ id: string;
1983
+ createdAt: Date;
1984
+ updatedAt: Date;
1985
+ deletedAt: Date | null;
1986
+ fileName: string;
1987
+ fileKey: string;
1988
+ bucketName: string;
1989
+ fileSize: number;
1990
+ fileUrl: string | null;
1991
+ };
1992
+ }, {
1993
+ id: string;
1994
+ createdAt: Date;
1995
+ updatedAt: Date;
1996
+ deletedAt: Date | null;
1997
+ customFieldId: string;
1998
+ upload: {
1999
+ id: string;
2000
+ createdAt: Date;
2001
+ updatedAt: Date;
2002
+ deletedAt: Date | null;
2003
+ fileName: string;
2004
+ fileKey: string;
2005
+ bucketName: string;
2006
+ fileSize: number;
2007
+ fileUrl: string | null;
2008
+ };
2009
+ }>, "many">;
2010
+ }, "strip", z.ZodTypeAny, {
2011
+ id: string;
2012
+ createdAt: Date;
2013
+ updatedAt: Date;
2014
+ deletedAt: Date | null;
2015
+ attribute: {
2016
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2017
+ id: string;
2018
+ position: number;
2019
+ createdAt: Date;
2020
+ updatedAt: Date;
2021
+ deletedAt: Date | null;
2022
+ isDefault: boolean;
2023
+ systemName: string;
2024
+ displayName: string;
2025
+ isArchived: boolean;
2026
+ isRequired: boolean;
2027
+ isUnique: boolean;
2028
+ };
2029
+ textValue: string | null;
2030
+ booleanValue: boolean | null;
2031
+ numberValue: number | null;
2032
+ dateValue: Date | null;
2033
+ uploads: {
2034
+ id: string;
2035
+ createdAt: Date;
2036
+ updatedAt: Date;
2037
+ deletedAt: Date | null;
2038
+ customFieldId: string;
2039
+ upload: {
2040
+ id: string;
2041
+ createdAt: Date;
2042
+ updatedAt: Date;
2043
+ deletedAt: Date | null;
2044
+ fileName: string;
2045
+ fileKey: string;
2046
+ bucketName: string;
2047
+ fileSize: number;
2048
+ fileUrl: string | null;
2049
+ };
2050
+ }[];
2051
+ }, {
2052
+ id: string;
2053
+ createdAt: Date;
2054
+ updatedAt: Date;
2055
+ deletedAt: Date | null;
2056
+ attribute: {
2057
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2058
+ id: string;
2059
+ position: number;
2060
+ createdAt: Date;
2061
+ updatedAt: Date;
2062
+ deletedAt: Date | null;
2063
+ isDefault: boolean;
2064
+ systemName: string;
2065
+ displayName: string;
2066
+ isArchived: boolean;
2067
+ isRequired: boolean;
2068
+ isUnique: boolean;
2069
+ };
2070
+ textValue: string | null;
2071
+ booleanValue: boolean | null;
2072
+ numberValue: number | null;
2073
+ dateValue: Date | null;
2074
+ uploads: {
2075
+ id: string;
2076
+ createdAt: Date;
2077
+ updatedAt: Date;
2078
+ deletedAt: Date | null;
2079
+ customFieldId: string;
2080
+ upload: {
2081
+ id: string;
2082
+ createdAt: Date;
2083
+ updatedAt: Date;
2084
+ deletedAt: Date | null;
2085
+ fileName: string;
2086
+ fileKey: string;
2087
+ bucketName: string;
2088
+ fileSize: number;
2089
+ fileUrl: string | null;
2090
+ };
2091
+ }[];
2092
+ }>, "many">;
2093
+ contactEmails: z.ZodArray<z.ZodObject<{
2094
+ id: z.ZodString;
2095
+ createdAt: z.ZodDate;
2096
+ updatedAt: z.ZodDate;
2097
+ deletedAt: z.ZodNullable<z.ZodDate>;
2098
+ email: z.ZodString;
2099
+ isPrimary: z.ZodBoolean;
2100
+ }, "strip", z.ZodTypeAny, {
2101
+ id: string;
2102
+ isPrimary: boolean;
2103
+ email: string;
2104
+ createdAt: Date;
2105
+ updatedAt: Date;
2106
+ deletedAt: Date | null;
2107
+ }, {
2108
+ id: string;
2109
+ isPrimary: boolean;
2110
+ email: string;
2111
+ createdAt: Date;
2112
+ updatedAt: Date;
2113
+ deletedAt: Date | null;
2114
+ }>, "many">;
2115
+ contactPhones: z.ZodArray<z.ZodObject<{
2116
+ id: z.ZodString;
2117
+ createdAt: z.ZodDate;
2118
+ updatedAt: z.ZodDate;
2119
+ deletedAt: z.ZodNullable<z.ZodDate>;
2120
+ phone: z.ZodString;
2121
+ isPrimary: z.ZodBoolean;
2122
+ }, "strip", z.ZodTypeAny, {
2123
+ id: string;
2124
+ isPrimary: boolean;
2125
+ createdAt: Date;
2126
+ updatedAt: Date;
2127
+ deletedAt: Date | null;
2128
+ phone: string;
2129
+ }, {
2130
+ id: string;
2131
+ isPrimary: boolean;
2132
+ createdAt: Date;
2133
+ updatedAt: Date;
2134
+ deletedAt: Date | null;
2135
+ phone: string;
2136
+ }>, "many">;
2137
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2138
+ id: z.ZodString;
2139
+ createdAt: z.ZodDate;
2140
+ updatedAt: z.ZodDate;
2141
+ deletedAt: z.ZodNullable<z.ZodDate>;
2142
+ entityId: z.ZodString;
2143
+ description: z.ZodString;
2144
+ entityType: z.ZodObject<{
2145
+ id: z.ZodString;
2146
+ createdAt: z.ZodDate;
2147
+ updatedAt: z.ZodDate;
2148
+ deletedAt: z.ZodNullable<z.ZodDate>;
2149
+ entity: z.ZodString;
2150
+ description: z.ZodNullable<z.ZodString>;
2151
+ }, "strip", z.ZodTypeAny, {
2152
+ id: string;
2153
+ description: string | null;
2154
+ createdAt: Date;
2155
+ updatedAt: Date;
2156
+ deletedAt: Date | null;
2157
+ entity: string;
2158
+ }, {
2159
+ id: string;
2160
+ description: string | null;
2161
+ createdAt: Date;
2162
+ updatedAt: Date;
2163
+ deletedAt: Date | null;
2164
+ entity: string;
2165
+ }>;
2166
+ }, "strip", z.ZodTypeAny, {
2167
+ id: string;
2168
+ description: string;
2169
+ createdAt: Date;
2170
+ updatedAt: Date;
2171
+ deletedAt: Date | null;
2172
+ entityId: string;
2173
+ entityType: {
2174
+ id: string;
2175
+ description: string | null;
2176
+ createdAt: Date;
2177
+ updatedAt: Date;
2178
+ deletedAt: Date | null;
2179
+ entity: string;
2180
+ };
2181
+ }, {
2182
+ id: string;
2183
+ description: string;
2184
+ createdAt: Date;
2185
+ updatedAt: Date;
2186
+ deletedAt: Date | null;
2187
+ entityId: string;
2188
+ entityType: {
2189
+ id: string;
2190
+ description: string | null;
2191
+ createdAt: Date;
2192
+ updatedAt: Date;
2193
+ deletedAt: Date | null;
2194
+ entity: string;
2195
+ };
2196
+ }>, "many">>;
2197
+ }, "strip", z.ZodTypeAny, {
2198
+ id: string;
2199
+ channel: string | null;
2200
+ address: string | null;
2201
+ name: string;
2202
+ createdAt: Date;
2203
+ updatedAt: Date;
2204
+ deletedAt: Date | null;
2205
+ customFields: {
2206
+ id: string;
2207
+ createdAt: Date;
2208
+ updatedAt: Date;
2209
+ deletedAt: Date | null;
2210
+ attribute: {
2211
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2212
+ id: string;
2213
+ position: number;
2214
+ createdAt: Date;
2215
+ updatedAt: Date;
2216
+ deletedAt: Date | null;
2217
+ isDefault: boolean;
2218
+ systemName: string;
2219
+ displayName: string;
2220
+ isArchived: boolean;
2221
+ isRequired: boolean;
2222
+ isUnique: boolean;
2223
+ };
2224
+ textValue: string | null;
2225
+ booleanValue: boolean | null;
2226
+ numberValue: number | null;
2227
+ dateValue: Date | null;
2228
+ uploads: {
2229
+ id: string;
2230
+ createdAt: Date;
2231
+ updatedAt: Date;
2232
+ deletedAt: Date | null;
2233
+ customFieldId: string;
2234
+ upload: {
2235
+ id: string;
2236
+ createdAt: Date;
2237
+ updatedAt: Date;
2238
+ deletedAt: Date | null;
2239
+ fileName: string;
2240
+ fileKey: string;
2241
+ bucketName: string;
2242
+ fileSize: number;
2243
+ fileUrl: string | null;
2244
+ };
2245
+ }[];
2246
+ }[];
2247
+ notes: string | null;
2248
+ contactProfile: string | null;
2249
+ socialProfileUrl: string | null;
2250
+ tags: {
2251
+ id: string;
2252
+ name: string;
2253
+ createdAt: Date;
2254
+ updatedAt: Date;
2255
+ deletedAt: Date | null;
2256
+ }[];
2257
+ company: {
2258
+ id: string;
2259
+ createdAt: Date;
2260
+ updatedAt: Date;
2261
+ deletedAt: Date | null;
2262
+ address?: string | null | undefined;
2263
+ name?: string | undefined;
2264
+ phone?: string | null | undefined;
2265
+ industry?: string | null | undefined;
2266
+ } | null;
2267
+ contactEmails: {
2268
+ id: string;
2269
+ isPrimary: boolean;
2270
+ email: string;
2271
+ createdAt: Date;
2272
+ updatedAt: Date;
2273
+ deletedAt: Date | null;
2274
+ }[];
2275
+ contactPhones: {
2276
+ id: string;
2277
+ isPrimary: boolean;
2278
+ createdAt: Date;
2279
+ updatedAt: Date;
2280
+ deletedAt: Date | null;
2281
+ phone: string;
2282
+ }[];
2283
+ activityLogs?: {
2284
+ id: string;
2285
+ description: string;
2286
+ createdAt: Date;
2287
+ updatedAt: Date;
2288
+ deletedAt: Date | null;
2289
+ entityId: string;
2290
+ entityType: {
2291
+ id: string;
2292
+ description: string | null;
2293
+ createdAt: Date;
2294
+ updatedAt: Date;
2295
+ deletedAt: Date | null;
2296
+ entity: string;
2297
+ };
2298
+ }[] | undefined;
2299
+ }, {
2300
+ id: string;
2301
+ channel: string | null;
2302
+ address: string | null;
2303
+ name: string;
2304
+ createdAt: Date;
2305
+ updatedAt: Date;
2306
+ deletedAt: Date | null;
2307
+ customFields: {
2308
+ id: string;
2309
+ createdAt: Date;
2310
+ updatedAt: Date;
2311
+ deletedAt: Date | null;
2312
+ attribute: {
2313
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2314
+ id: string;
2315
+ position: number;
2316
+ createdAt: Date;
2317
+ updatedAt: Date;
2318
+ deletedAt: Date | null;
2319
+ isDefault: boolean;
2320
+ systemName: string;
2321
+ displayName: string;
2322
+ isArchived: boolean;
2323
+ isRequired: boolean;
2324
+ isUnique: boolean;
2325
+ };
2326
+ textValue: string | null;
2327
+ booleanValue: boolean | null;
2328
+ numberValue: number | null;
2329
+ dateValue: Date | null;
2330
+ uploads: {
2331
+ id: string;
2332
+ createdAt: Date;
2333
+ updatedAt: Date;
2334
+ deletedAt: Date | null;
2335
+ customFieldId: string;
2336
+ upload: {
2337
+ id: string;
2338
+ createdAt: Date;
2339
+ updatedAt: Date;
2340
+ deletedAt: Date | null;
2341
+ fileName: string;
2342
+ fileKey: string;
2343
+ bucketName: string;
2344
+ fileSize: number;
2345
+ fileUrl: string | null;
2346
+ };
2347
+ }[];
2348
+ }[];
2349
+ notes: string | null;
2350
+ contactProfile: string | null;
2351
+ socialProfileUrl: string | null;
2352
+ tags: {
2353
+ id: string;
2354
+ name: string;
2355
+ createdAt: Date;
2356
+ updatedAt: Date;
2357
+ deletedAt: Date | null;
2358
+ }[];
2359
+ company: {
2360
+ id: string;
2361
+ createdAt: Date;
2362
+ updatedAt: Date;
2363
+ deletedAt: Date | null;
2364
+ address?: string | null | undefined;
2365
+ name?: string | undefined;
2366
+ phone?: string | null | undefined;
2367
+ industry?: string | null | undefined;
2368
+ } | null;
2369
+ contactEmails: {
2370
+ id: string;
2371
+ isPrimary: boolean;
2372
+ email: string;
2373
+ createdAt: Date;
2374
+ updatedAt: Date;
2375
+ deletedAt: Date | null;
2376
+ }[];
2377
+ contactPhones: {
2378
+ id: string;
2379
+ isPrimary: boolean;
2380
+ createdAt: Date;
2381
+ updatedAt: Date;
2382
+ deletedAt: Date | null;
2383
+ phone: string;
2384
+ }[];
2385
+ activityLogs?: {
2386
+ id: string;
2387
+ description: string;
2388
+ createdAt: Date;
2389
+ updatedAt: Date;
2390
+ deletedAt: Date | null;
2391
+ entityId: string;
2392
+ entityType: {
2393
+ id: string;
2394
+ description: string | null;
2395
+ createdAt: Date;
2396
+ updatedAt: Date;
2397
+ deletedAt: Date | null;
2398
+ entity: string;
2399
+ };
2400
+ }[] | undefined;
2401
+ }>>;
2402
+ telephonyQueue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2403
+ id: z.ZodString;
2404
+ createdAt: z.ZodDate;
2405
+ updatedAt: z.ZodDate;
2406
+ deletedAt: z.ZodNullable<z.ZodDate>;
2407
+ queueId: z.ZodNumber;
2408
+ queueName: z.ZodString;
2409
+ queueNumber: z.ZodString;
2410
+ maximumWaitingTime: z.ZodNumber;
2411
+ }, "strip", z.ZodTypeAny, {
2412
+ id: string;
2413
+ createdAt: Date;
2414
+ updatedAt: Date;
2415
+ deletedAt: Date | null;
2416
+ queueId: number;
2417
+ queueName: string;
2418
+ queueNumber: string;
2419
+ maximumWaitingTime: number;
2420
+ }, {
2421
+ id: string;
2422
+ createdAt: Date;
2423
+ updatedAt: Date;
2424
+ deletedAt: Date | null;
2425
+ queueId: number;
2426
+ queueName: string;
2427
+ queueNumber: string;
2428
+ maximumWaitingTime: number;
2429
+ }>>>;
209
2430
  pinCode: z.ZodNullable<z.ZodString>;
210
2431
  status: z.ZodString;
211
2432
  type: z.ZodString;
212
2433
  recording: z.ZodNullable<z.ZodString>;
213
2434
  didNumber: z.ZodNullable<z.ZodString>;
214
2435
  agentRingTime: z.ZodNullable<z.ZodNumber>;
2436
+ uploadId: z.ZodNullable<z.ZodString>;
2437
+ upload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2438
+ id: z.ZodString;
2439
+ createdAt: z.ZodDate;
2440
+ updatedAt: z.ZodDate;
2441
+ deletedAt: z.ZodNullable<z.ZodDate>;
2442
+ bucketName: z.ZodString;
2443
+ fileName: z.ZodString;
2444
+ fileSize: z.ZodNumber;
2445
+ fileKey: z.ZodString;
2446
+ fileUrl: z.ZodNullable<z.ZodString>;
2447
+ }, "strip", z.ZodTypeAny, {
2448
+ id: string;
2449
+ createdAt: Date;
2450
+ updatedAt: Date;
2451
+ deletedAt: Date | null;
2452
+ fileName: string;
2453
+ fileKey: string;
2454
+ bucketName: string;
2455
+ fileSize: number;
2456
+ fileUrl: string | null;
2457
+ }, {
2458
+ id: string;
2459
+ createdAt: Date;
2460
+ updatedAt: Date;
2461
+ deletedAt: Date | null;
2462
+ fileName: string;
2463
+ fileKey: string;
2464
+ bucketName: string;
2465
+ fileSize: number;
2466
+ fileUrl: string | null;
2467
+ }>>>;
2468
+ serialNumber: z.ZodNullable<z.ZodString>;
2469
+ extensionId: z.ZodNullable<z.ZodString>;
2470
+ extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2471
+ id: z.ZodString;
2472
+ createdAt: z.ZodDate;
2473
+ updatedAt: z.ZodDate;
2474
+ deletedAt: z.ZodNullable<z.ZodDate>;
2475
+ userId: z.ZodNullable<z.ZodString>;
2476
+ sipServerUrl: z.ZodString;
2477
+ sipUserName: z.ZodString;
2478
+ webphoneLoginUser: z.ZodString;
2479
+ extensionId: z.ZodNumber;
2480
+ extensionName: z.ZodString;
2481
+ telephonySignature: z.ZodNullable<z.ZodString>;
2482
+ }, "strip", z.ZodTypeAny, {
2483
+ id: string;
2484
+ createdAt: Date;
2485
+ updatedAt: Date;
2486
+ deletedAt: Date | null;
2487
+ userId: string | null;
2488
+ sipServerUrl: string;
2489
+ sipUserName: string;
2490
+ webphoneLoginUser: string;
2491
+ extensionId: number;
2492
+ extensionName: string;
2493
+ telephonySignature: string | null;
2494
+ }, {
2495
+ id: string;
2496
+ createdAt: Date;
2497
+ updatedAt: Date;
2498
+ deletedAt: Date | null;
2499
+ userId: string | null;
2500
+ sipServerUrl: string;
2501
+ sipUserName: string;
2502
+ webphoneLoginUser: string;
2503
+ extensionId: number;
2504
+ extensionName: string;
2505
+ telephonySignature: string | null;
2506
+ }>>>;
2507
+ telephonyQueueId: z.ZodNullable<z.ZodString>;
2508
+ contactId: z.ZodNullable<z.ZodString>;
215
2509
  }, "strip", z.ZodTypeAny, {
216
2510
  type: string;
2511
+ id: string;
217
2512
  recording: string | null;
218
2513
  status: string;
2514
+ createdAt: Date;
2515
+ updatedAt: Date;
2516
+ deletedAt: Date | null;
2517
+ extensionId: string | null;
219
2518
  uniqueCallId: string;
220
2519
  timeStart: string;
221
2520
  callFrom: string;
@@ -227,10 +2526,156 @@ export declare const telephonyCdrContract: {
227
2526
  pinCode: string | null;
228
2527
  didNumber: string | null;
229
2528
  agentRingTime: number | null;
2529
+ uploadId: string | null;
2530
+ serialNumber: string | null;
2531
+ telephonyQueueId: string | null;
2532
+ contactId: string | null;
2533
+ contact?: {
2534
+ id: string;
2535
+ channel: string | null;
2536
+ address: string | null;
2537
+ name: string;
2538
+ createdAt: Date;
2539
+ updatedAt: Date;
2540
+ deletedAt: Date | null;
2541
+ customFields: {
2542
+ id: string;
2543
+ createdAt: Date;
2544
+ updatedAt: Date;
2545
+ deletedAt: Date | null;
2546
+ attribute: {
2547
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2548
+ id: string;
2549
+ position: number;
2550
+ createdAt: Date;
2551
+ updatedAt: Date;
2552
+ deletedAt: Date | null;
2553
+ isDefault: boolean;
2554
+ systemName: string;
2555
+ displayName: string;
2556
+ isArchived: boolean;
2557
+ isRequired: boolean;
2558
+ isUnique: boolean;
2559
+ };
2560
+ textValue: string | null;
2561
+ booleanValue: boolean | null;
2562
+ numberValue: number | null;
2563
+ dateValue: Date | null;
2564
+ uploads: {
2565
+ id: string;
2566
+ createdAt: Date;
2567
+ updatedAt: Date;
2568
+ deletedAt: Date | null;
2569
+ customFieldId: string;
2570
+ upload: {
2571
+ id: string;
2572
+ createdAt: Date;
2573
+ updatedAt: Date;
2574
+ deletedAt: Date | null;
2575
+ fileName: string;
2576
+ fileKey: string;
2577
+ bucketName: string;
2578
+ fileSize: number;
2579
+ fileUrl: string | null;
2580
+ };
2581
+ }[];
2582
+ }[];
2583
+ notes: string | null;
2584
+ contactProfile: string | null;
2585
+ socialProfileUrl: string | null;
2586
+ tags: {
2587
+ id: string;
2588
+ name: string;
2589
+ createdAt: Date;
2590
+ updatedAt: Date;
2591
+ deletedAt: Date | null;
2592
+ }[];
2593
+ company: {
2594
+ id: string;
2595
+ createdAt: Date;
2596
+ updatedAt: Date;
2597
+ deletedAt: Date | null;
2598
+ address?: string | null | undefined;
2599
+ name?: string | undefined;
2600
+ phone?: string | null | undefined;
2601
+ industry?: string | null | undefined;
2602
+ } | null;
2603
+ contactEmails: {
2604
+ id: string;
2605
+ isPrimary: boolean;
2606
+ email: string;
2607
+ createdAt: Date;
2608
+ updatedAt: Date;
2609
+ deletedAt: Date | null;
2610
+ }[];
2611
+ contactPhones: {
2612
+ id: string;
2613
+ isPrimary: boolean;
2614
+ createdAt: Date;
2615
+ updatedAt: Date;
2616
+ deletedAt: Date | null;
2617
+ phone: string;
2618
+ }[];
2619
+ activityLogs?: {
2620
+ id: string;
2621
+ description: string;
2622
+ createdAt: Date;
2623
+ updatedAt: Date;
2624
+ deletedAt: Date | null;
2625
+ entityId: string;
2626
+ entityType: {
2627
+ id: string;
2628
+ description: string | null;
2629
+ createdAt: Date;
2630
+ updatedAt: Date;
2631
+ deletedAt: Date | null;
2632
+ entity: string;
2633
+ };
2634
+ }[] | undefined;
2635
+ } | undefined;
2636
+ telephonyQueue?: {
2637
+ id: string;
2638
+ createdAt: Date;
2639
+ updatedAt: Date;
2640
+ deletedAt: Date | null;
2641
+ queueId: number;
2642
+ queueName: string;
2643
+ queueNumber: string;
2644
+ maximumWaitingTime: number;
2645
+ } | null | undefined;
2646
+ upload?: {
2647
+ id: string;
2648
+ createdAt: Date;
2649
+ updatedAt: Date;
2650
+ deletedAt: Date | null;
2651
+ fileName: string;
2652
+ fileKey: string;
2653
+ bucketName: string;
2654
+ fileSize: number;
2655
+ fileUrl: string | null;
2656
+ } | null | undefined;
2657
+ extension?: {
2658
+ id: string;
2659
+ createdAt: Date;
2660
+ updatedAt: Date;
2661
+ deletedAt: Date | null;
2662
+ userId: string | null;
2663
+ sipServerUrl: string;
2664
+ sipUserName: string;
2665
+ webphoneLoginUser: string;
2666
+ extensionId: number;
2667
+ extensionName: string;
2668
+ telephonySignature: string | null;
2669
+ } | null | undefined;
230
2670
  }, {
231
2671
  type: string;
2672
+ id: string;
232
2673
  recording: string | null;
233
2674
  status: string;
2675
+ createdAt: Date;
2676
+ updatedAt: Date;
2677
+ deletedAt: Date | null;
2678
+ extensionId: string | null;
234
2679
  uniqueCallId: string;
235
2680
  timeStart: string;
236
2681
  callFrom: string;
@@ -242,6 +2687,147 @@ export declare const telephonyCdrContract: {
242
2687
  pinCode: string | null;
243
2688
  didNumber: string | null;
244
2689
  agentRingTime: number | null;
2690
+ uploadId: string | null;
2691
+ serialNumber: string | null;
2692
+ telephonyQueueId: string | null;
2693
+ contactId: string | null;
2694
+ contact?: {
2695
+ id: string;
2696
+ channel: string | null;
2697
+ address: string | null;
2698
+ name: string;
2699
+ createdAt: Date;
2700
+ updatedAt: Date;
2701
+ deletedAt: Date | null;
2702
+ customFields: {
2703
+ id: string;
2704
+ createdAt: Date;
2705
+ updatedAt: Date;
2706
+ deletedAt: Date | null;
2707
+ attribute: {
2708
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2709
+ id: string;
2710
+ position: number;
2711
+ createdAt: Date;
2712
+ updatedAt: Date;
2713
+ deletedAt: Date | null;
2714
+ isDefault: boolean;
2715
+ systemName: string;
2716
+ displayName: string;
2717
+ isArchived: boolean;
2718
+ isRequired: boolean;
2719
+ isUnique: boolean;
2720
+ };
2721
+ textValue: string | null;
2722
+ booleanValue: boolean | null;
2723
+ numberValue: number | null;
2724
+ dateValue: Date | null;
2725
+ uploads: {
2726
+ id: string;
2727
+ createdAt: Date;
2728
+ updatedAt: Date;
2729
+ deletedAt: Date | null;
2730
+ customFieldId: string;
2731
+ upload: {
2732
+ id: string;
2733
+ createdAt: Date;
2734
+ updatedAt: Date;
2735
+ deletedAt: Date | null;
2736
+ fileName: string;
2737
+ fileKey: string;
2738
+ bucketName: string;
2739
+ fileSize: number;
2740
+ fileUrl: string | null;
2741
+ };
2742
+ }[];
2743
+ }[];
2744
+ notes: string | null;
2745
+ contactProfile: string | null;
2746
+ socialProfileUrl: string | null;
2747
+ tags: {
2748
+ id: string;
2749
+ name: string;
2750
+ createdAt: Date;
2751
+ updatedAt: Date;
2752
+ deletedAt: Date | null;
2753
+ }[];
2754
+ company: {
2755
+ id: string;
2756
+ createdAt: Date;
2757
+ updatedAt: Date;
2758
+ deletedAt: Date | null;
2759
+ address?: string | null | undefined;
2760
+ name?: string | undefined;
2761
+ phone?: string | null | undefined;
2762
+ industry?: string | null | undefined;
2763
+ } | null;
2764
+ contactEmails: {
2765
+ id: string;
2766
+ isPrimary: boolean;
2767
+ email: string;
2768
+ createdAt: Date;
2769
+ updatedAt: Date;
2770
+ deletedAt: Date | null;
2771
+ }[];
2772
+ contactPhones: {
2773
+ id: string;
2774
+ isPrimary: boolean;
2775
+ createdAt: Date;
2776
+ updatedAt: Date;
2777
+ deletedAt: Date | null;
2778
+ phone: string;
2779
+ }[];
2780
+ activityLogs?: {
2781
+ id: string;
2782
+ description: string;
2783
+ createdAt: Date;
2784
+ updatedAt: Date;
2785
+ deletedAt: Date | null;
2786
+ entityId: string;
2787
+ entityType: {
2788
+ id: string;
2789
+ description: string | null;
2790
+ createdAt: Date;
2791
+ updatedAt: Date;
2792
+ deletedAt: Date | null;
2793
+ entity: string;
2794
+ };
2795
+ }[] | undefined;
2796
+ } | undefined;
2797
+ telephonyQueue?: {
2798
+ id: string;
2799
+ createdAt: Date;
2800
+ updatedAt: Date;
2801
+ deletedAt: Date | null;
2802
+ queueId: number;
2803
+ queueName: string;
2804
+ queueNumber: string;
2805
+ maximumWaitingTime: number;
2806
+ } | null | undefined;
2807
+ upload?: {
2808
+ id: string;
2809
+ createdAt: Date;
2810
+ updatedAt: Date;
2811
+ deletedAt: Date | null;
2812
+ fileName: string;
2813
+ fileKey: string;
2814
+ bucketName: string;
2815
+ fileSize: number;
2816
+ fileUrl: string | null;
2817
+ } | null | undefined;
2818
+ extension?: {
2819
+ id: string;
2820
+ createdAt: Date;
2821
+ updatedAt: Date;
2822
+ deletedAt: Date | null;
2823
+ userId: string | null;
2824
+ sipServerUrl: string;
2825
+ sipUserName: string;
2826
+ webphoneLoginUser: string;
2827
+ extensionId: number;
2828
+ extensionName: string;
2829
+ telephonySignature: string | null;
2830
+ } | null | undefined;
245
2831
  }>, "many">;
246
2832
  }, "strip", z.ZodTypeAny, {
247
2833
  total: number;
@@ -250,8 +2836,13 @@ export declare const telephonyCdrContract: {
250
2836
  requestId: string;
251
2837
  telephonyCdrs: {
252
2838
  type: string;
2839
+ id: string;
253
2840
  recording: string | null;
254
2841
  status: string;
2842
+ createdAt: Date;
2843
+ updatedAt: Date;
2844
+ deletedAt: Date | null;
2845
+ extensionId: string | null;
255
2846
  uniqueCallId: string;
256
2847
  timeStart: string;
257
2848
  callFrom: string;
@@ -263,6 +2854,147 @@ export declare const telephonyCdrContract: {
263
2854
  pinCode: string | null;
264
2855
  didNumber: string | null;
265
2856
  agentRingTime: number | null;
2857
+ uploadId: string | null;
2858
+ serialNumber: string | null;
2859
+ telephonyQueueId: string | null;
2860
+ contactId: string | null;
2861
+ contact?: {
2862
+ id: string;
2863
+ channel: string | null;
2864
+ address: string | null;
2865
+ name: string;
2866
+ createdAt: Date;
2867
+ updatedAt: Date;
2868
+ deletedAt: Date | null;
2869
+ customFields: {
2870
+ id: string;
2871
+ createdAt: Date;
2872
+ updatedAt: Date;
2873
+ deletedAt: Date | null;
2874
+ attribute: {
2875
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2876
+ id: string;
2877
+ position: number;
2878
+ createdAt: Date;
2879
+ updatedAt: Date;
2880
+ deletedAt: Date | null;
2881
+ isDefault: boolean;
2882
+ systemName: string;
2883
+ displayName: string;
2884
+ isArchived: boolean;
2885
+ isRequired: boolean;
2886
+ isUnique: boolean;
2887
+ };
2888
+ textValue: string | null;
2889
+ booleanValue: boolean | null;
2890
+ numberValue: number | null;
2891
+ dateValue: Date | null;
2892
+ uploads: {
2893
+ id: string;
2894
+ createdAt: Date;
2895
+ updatedAt: Date;
2896
+ deletedAt: Date | null;
2897
+ customFieldId: string;
2898
+ upload: {
2899
+ id: string;
2900
+ createdAt: Date;
2901
+ updatedAt: Date;
2902
+ deletedAt: Date | null;
2903
+ fileName: string;
2904
+ fileKey: string;
2905
+ bucketName: string;
2906
+ fileSize: number;
2907
+ fileUrl: string | null;
2908
+ };
2909
+ }[];
2910
+ }[];
2911
+ notes: string | null;
2912
+ contactProfile: string | null;
2913
+ socialProfileUrl: string | null;
2914
+ tags: {
2915
+ id: string;
2916
+ name: string;
2917
+ createdAt: Date;
2918
+ updatedAt: Date;
2919
+ deletedAt: Date | null;
2920
+ }[];
2921
+ company: {
2922
+ id: string;
2923
+ createdAt: Date;
2924
+ updatedAt: Date;
2925
+ deletedAt: Date | null;
2926
+ address?: string | null | undefined;
2927
+ name?: string | undefined;
2928
+ phone?: string | null | undefined;
2929
+ industry?: string | null | undefined;
2930
+ } | null;
2931
+ contactEmails: {
2932
+ id: string;
2933
+ isPrimary: boolean;
2934
+ email: string;
2935
+ createdAt: Date;
2936
+ updatedAt: Date;
2937
+ deletedAt: Date | null;
2938
+ }[];
2939
+ contactPhones: {
2940
+ id: string;
2941
+ isPrimary: boolean;
2942
+ createdAt: Date;
2943
+ updatedAt: Date;
2944
+ deletedAt: Date | null;
2945
+ phone: string;
2946
+ }[];
2947
+ activityLogs?: {
2948
+ id: string;
2949
+ description: string;
2950
+ createdAt: Date;
2951
+ updatedAt: Date;
2952
+ deletedAt: Date | null;
2953
+ entityId: string;
2954
+ entityType: {
2955
+ id: string;
2956
+ description: string | null;
2957
+ createdAt: Date;
2958
+ updatedAt: Date;
2959
+ deletedAt: Date | null;
2960
+ entity: string;
2961
+ };
2962
+ }[] | undefined;
2963
+ } | undefined;
2964
+ telephonyQueue?: {
2965
+ id: string;
2966
+ createdAt: Date;
2967
+ updatedAt: Date;
2968
+ deletedAt: Date | null;
2969
+ queueId: number;
2970
+ queueName: string;
2971
+ queueNumber: string;
2972
+ maximumWaitingTime: number;
2973
+ } | null | undefined;
2974
+ upload?: {
2975
+ id: string;
2976
+ createdAt: Date;
2977
+ updatedAt: Date;
2978
+ deletedAt: Date | null;
2979
+ fileName: string;
2980
+ fileKey: string;
2981
+ bucketName: string;
2982
+ fileSize: number;
2983
+ fileUrl: string | null;
2984
+ } | null | undefined;
2985
+ extension?: {
2986
+ id: string;
2987
+ createdAt: Date;
2988
+ updatedAt: Date;
2989
+ deletedAt: Date | null;
2990
+ userId: string | null;
2991
+ sipServerUrl: string;
2992
+ sipUserName: string;
2993
+ webphoneLoginUser: string;
2994
+ extensionId: number;
2995
+ extensionName: string;
2996
+ telephonySignature: string | null;
2997
+ } | null | undefined;
266
2998
  }[];
267
2999
  }, {
268
3000
  total: number;
@@ -271,8 +3003,13 @@ export declare const telephonyCdrContract: {
271
3003
  requestId: string;
272
3004
  telephonyCdrs: {
273
3005
  type: string;
3006
+ id: string;
274
3007
  recording: string | null;
275
3008
  status: string;
3009
+ createdAt: Date;
3010
+ updatedAt: Date;
3011
+ deletedAt: Date | null;
3012
+ extensionId: string | null;
276
3013
  uniqueCallId: string;
277
3014
  timeStart: string;
278
3015
  callFrom: string;
@@ -284,6 +3021,147 @@ export declare const telephonyCdrContract: {
284
3021
  pinCode: string | null;
285
3022
  didNumber: string | null;
286
3023
  agentRingTime: number | null;
3024
+ uploadId: string | null;
3025
+ serialNumber: string | null;
3026
+ telephonyQueueId: string | null;
3027
+ contactId: string | null;
3028
+ contact?: {
3029
+ id: string;
3030
+ channel: string | null;
3031
+ address: string | null;
3032
+ name: string;
3033
+ createdAt: Date;
3034
+ updatedAt: Date;
3035
+ deletedAt: Date | null;
3036
+ customFields: {
3037
+ id: string;
3038
+ createdAt: Date;
3039
+ updatedAt: Date;
3040
+ deletedAt: Date | null;
3041
+ attribute: {
3042
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3043
+ id: string;
3044
+ position: number;
3045
+ createdAt: Date;
3046
+ updatedAt: Date;
3047
+ deletedAt: Date | null;
3048
+ isDefault: boolean;
3049
+ systemName: string;
3050
+ displayName: string;
3051
+ isArchived: boolean;
3052
+ isRequired: boolean;
3053
+ isUnique: boolean;
3054
+ };
3055
+ textValue: string | null;
3056
+ booleanValue: boolean | null;
3057
+ numberValue: number | null;
3058
+ dateValue: Date | null;
3059
+ uploads: {
3060
+ id: string;
3061
+ createdAt: Date;
3062
+ updatedAt: Date;
3063
+ deletedAt: Date | null;
3064
+ customFieldId: string;
3065
+ upload: {
3066
+ id: string;
3067
+ createdAt: Date;
3068
+ updatedAt: Date;
3069
+ deletedAt: Date | null;
3070
+ fileName: string;
3071
+ fileKey: string;
3072
+ bucketName: string;
3073
+ fileSize: number;
3074
+ fileUrl: string | null;
3075
+ };
3076
+ }[];
3077
+ }[];
3078
+ notes: string | null;
3079
+ contactProfile: string | null;
3080
+ socialProfileUrl: string | null;
3081
+ tags: {
3082
+ id: string;
3083
+ name: string;
3084
+ createdAt: Date;
3085
+ updatedAt: Date;
3086
+ deletedAt: Date | null;
3087
+ }[];
3088
+ company: {
3089
+ id: string;
3090
+ createdAt: Date;
3091
+ updatedAt: Date;
3092
+ deletedAt: Date | null;
3093
+ address?: string | null | undefined;
3094
+ name?: string | undefined;
3095
+ phone?: string | null | undefined;
3096
+ industry?: string | null | undefined;
3097
+ } | null;
3098
+ contactEmails: {
3099
+ id: string;
3100
+ isPrimary: boolean;
3101
+ email: string;
3102
+ createdAt: Date;
3103
+ updatedAt: Date;
3104
+ deletedAt: Date | null;
3105
+ }[];
3106
+ contactPhones: {
3107
+ id: string;
3108
+ isPrimary: boolean;
3109
+ createdAt: Date;
3110
+ updatedAt: Date;
3111
+ deletedAt: Date | null;
3112
+ phone: string;
3113
+ }[];
3114
+ activityLogs?: {
3115
+ id: string;
3116
+ description: string;
3117
+ createdAt: Date;
3118
+ updatedAt: Date;
3119
+ deletedAt: Date | null;
3120
+ entityId: string;
3121
+ entityType: {
3122
+ id: string;
3123
+ description: string | null;
3124
+ createdAt: Date;
3125
+ updatedAt: Date;
3126
+ deletedAt: Date | null;
3127
+ entity: string;
3128
+ };
3129
+ }[] | undefined;
3130
+ } | undefined;
3131
+ telephonyQueue?: {
3132
+ id: string;
3133
+ createdAt: Date;
3134
+ updatedAt: Date;
3135
+ deletedAt: Date | null;
3136
+ queueId: number;
3137
+ queueName: string;
3138
+ queueNumber: string;
3139
+ maximumWaitingTime: number;
3140
+ } | null | undefined;
3141
+ upload?: {
3142
+ id: string;
3143
+ createdAt: Date;
3144
+ updatedAt: Date;
3145
+ deletedAt: Date | null;
3146
+ fileName: string;
3147
+ fileKey: string;
3148
+ bucketName: string;
3149
+ fileSize: number;
3150
+ fileUrl: string | null;
3151
+ } | null | undefined;
3152
+ extension?: {
3153
+ id: string;
3154
+ createdAt: Date;
3155
+ updatedAt: Date;
3156
+ deletedAt: Date | null;
3157
+ userId: string | null;
3158
+ sipServerUrl: string;
3159
+ sipUserName: string;
3160
+ webphoneLoginUser: string;
3161
+ extensionId: number;
3162
+ extensionName: string;
3163
+ telephonySignature: string | null;
3164
+ } | null | undefined;
287
3165
  }[];
288
3166
  }>;
289
3167
  401: z.ZodObject<{