@dakkitor/api-contracts 1.1.147 → 1.1.149

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.
@@ -39,11 +39,11 @@ export declare const CallHistorySchema: z.ZodObject<{
39
39
  name: z.ZodString;
40
40
  phoneNumber: z.ZodString;
41
41
  }, "strip", z.ZodTypeAny, {
42
- phoneNumber: string;
43
42
  name: string;
44
- }, {
45
43
  phoneNumber: string;
44
+ }, {
46
45
  name: string;
46
+ phoneNumber: string;
47
47
  }>>;
48
48
  agentId: z.ZodNullable<z.ZodString>;
49
49
  agent: z.ZodOptional<z.ZodObject<{
@@ -57,13 +57,13 @@ export declare const CallHistorySchema: z.ZodObject<{
57
57
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
58
  isPrimary: z.ZodDefault<z.ZodBoolean>;
59
59
  }, "strip", z.ZodTypeAny, {
60
- id: string;
61
60
  phoneNumber: string;
61
+ id: string;
62
62
  isPrimary: boolean;
63
63
  description?: string | null | undefined;
64
64
  }, {
65
- id: string;
66
65
  phoneNumber: string;
66
+ id: string;
67
67
  description?: string | null | undefined;
68
68
  isPrimary?: boolean | undefined;
69
69
  }>, "many">>>;
@@ -72,11 +72,11 @@ export declare const CallHistorySchema: z.ZodObject<{
72
72
  id: z.ZodString;
73
73
  name: z.ZodString;
74
74
  }, "strip", z.ZodTypeAny, {
75
- id: string;
76
75
  name: string;
77
- }, {
78
76
  id: string;
77
+ }, {
79
78
  name: string;
79
+ id: string;
80
80
  }>>>;
81
81
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
82
  id: z.ZodString;
@@ -99,8 +99,8 @@ export declare const CallHistorySchema: z.ZodObject<{
99
99
  lastName: string;
100
100
  email: string;
101
101
  phoneNumbers: {
102
- id: string;
103
102
  phoneNumber: string;
103
+ id: string;
104
104
  isPrimary: boolean;
105
105
  description?: string | null | undefined;
106
106
  }[];
@@ -108,8 +108,8 @@ export declare const CallHistorySchema: z.ZodObject<{
108
108
  updatedAt: string;
109
109
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
110
110
  office?: {
111
- id: string;
112
111
  name: string;
112
+ id: string;
113
113
  } | null | undefined;
114
114
  canImpersonateUsers?: {
115
115
  id: string;
@@ -124,15 +124,15 @@ export declare const CallHistorySchema: z.ZodObject<{
124
124
  createdAt: string | Date;
125
125
  updatedAt: string | Date;
126
126
  phoneNumbers?: {
127
- id: string;
128
127
  phoneNumber: string;
128
+ id: string;
129
129
  description?: string | null | undefined;
130
130
  isPrimary?: boolean | undefined;
131
131
  }[] | undefined;
132
132
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
133
133
  office?: {
134
- id: string;
135
134
  name: string;
135
+ id: string;
136
136
  } | null | undefined;
137
137
  canImpersonateUsers?: {
138
138
  id: string;
@@ -150,36 +150,40 @@ export declare const CallHistorySchema: z.ZodObject<{
150
150
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
151
151
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
152
152
  }, "strip", z.ZodTypeAny, {
153
- id: string;
154
153
  name: string;
154
+ id: string;
155
155
  createdAt: string;
156
156
  updatedAt: string;
157
157
  }, {
158
- id: string;
159
158
  name: string;
159
+ id: string;
160
160
  createdAt: string | Date;
161
161
  updatedAt: string | Date;
162
162
  }>>>;
163
163
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
164
164
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
165
165
  }, "strip", z.ZodTypeAny, {
166
- id: string;
167
166
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
167
+ id: string;
168
+ leadId: string;
168
169
  agentId: string | null;
169
170
  createdAt: string;
170
171
  updatedAt: string;
171
- leadId: string;
172
172
  assignedAt: string;
173
173
  assignedBy: string | null;
174
174
  companyId: string | null;
175
+ lead?: {
176
+ name: string;
177
+ phoneNumber: string;
178
+ } | undefined;
175
179
  agent?: {
176
180
  id: string;
177
181
  firstName: string;
178
182
  lastName: string;
179
183
  email: string;
180
184
  phoneNumbers: {
181
- id: string;
182
185
  phoneNumber: string;
186
+ id: string;
183
187
  isPrimary: boolean;
184
188
  description?: string | null | undefined;
185
189
  }[];
@@ -187,8 +191,8 @@ export declare const CallHistorySchema: z.ZodObject<{
187
191
  updatedAt: string;
188
192
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
189
193
  office?: {
190
- id: string;
191
194
  name: string;
195
+ id: string;
192
196
  } | null | undefined;
193
197
  canImpersonateUsers?: {
194
198
  id: string;
@@ -196,26 +200,26 @@ export declare const CallHistorySchema: z.ZodObject<{
196
200
  lastName: string;
197
201
  }[] | undefined;
198
202
  } | undefined;
199
- lead?: {
200
- phoneNumber: string;
201
- name: string;
202
- } | undefined;
203
203
  company?: {
204
- id: string;
205
204
  name: string;
205
+ id: string;
206
206
  createdAt: string;
207
207
  updatedAt: string;
208
208
  } | null | undefined;
209
209
  }, {
210
- id: string;
211
210
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
211
+ id: string;
212
+ leadId: string;
212
213
  agentId: string | null;
213
214
  createdAt: string | Date;
214
215
  updatedAt: string | Date;
215
- leadId: string;
216
216
  assignedAt: string | Date;
217
217
  assignedBy: string | null;
218
218
  companyId: string | null;
219
+ lead?: {
220
+ name: string;
221
+ phoneNumber: string;
222
+ } | undefined;
219
223
  agent?: {
220
224
  id: string;
221
225
  firstName: string;
@@ -224,15 +228,15 @@ export declare const CallHistorySchema: z.ZodObject<{
224
228
  createdAt: string | Date;
225
229
  updatedAt: string | Date;
226
230
  phoneNumbers?: {
227
- id: string;
228
231
  phoneNumber: string;
232
+ id: string;
229
233
  description?: string | null | undefined;
230
234
  isPrimary?: boolean | undefined;
231
235
  }[] | undefined;
232
236
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
233
237
  office?: {
234
- id: string;
235
238
  name: string;
239
+ id: string;
236
240
  } | null | undefined;
237
241
  canImpersonateUsers?: {
238
242
  id: string;
@@ -240,13 +244,9 @@ export declare const CallHistorySchema: z.ZodObject<{
240
244
  lastName: string;
241
245
  }[] | undefined;
242
246
  } | undefined;
243
- lead?: {
244
- phoneNumber: string;
245
- name: string;
246
- } | undefined;
247
247
  company?: {
248
- id: string;
249
248
  name: string;
249
+ id: string;
250
250
  createdAt: string | Date;
251
251
  updatedAt: string | Date;
252
252
  } | null | undefined;
@@ -266,28 +266,32 @@ export declare const CallHistorySchema: z.ZodObject<{
266
266
  notes: string | null;
267
267
  callType: CallType;
268
268
  assignmentId: string;
269
- ratingWeight: number;
270
269
  leadSource: LeadSource;
271
- agentId?: string | undefined;
270
+ ratingWeight: number;
272
271
  leadId?: string | undefined;
272
+ agentId?: string | undefined;
273
273
  assignment?: {
274
- id: string;
275
274
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
275
+ id: string;
276
+ leadId: string;
276
277
  agentId: string | null;
277
278
  createdAt: string;
278
279
  updatedAt: string;
279
- leadId: string;
280
280
  assignedAt: string;
281
281
  assignedBy: string | null;
282
282
  companyId: string | null;
283
+ lead?: {
284
+ name: string;
285
+ phoneNumber: string;
286
+ } | undefined;
283
287
  agent?: {
284
288
  id: string;
285
289
  firstName: string;
286
290
  lastName: string;
287
291
  email: string;
288
292
  phoneNumbers: {
289
- id: string;
290
293
  phoneNumber: string;
294
+ id: string;
291
295
  isPrimary: boolean;
292
296
  description?: string | null | undefined;
293
297
  }[];
@@ -295,8 +299,8 @@ export declare const CallHistorySchema: z.ZodObject<{
295
299
  updatedAt: string;
296
300
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
297
301
  office?: {
298
- id: string;
299
302
  name: string;
303
+ id: string;
300
304
  } | null | undefined;
301
305
  canImpersonateUsers?: {
302
306
  id: string;
@@ -304,13 +308,9 @@ export declare const CallHistorySchema: z.ZodObject<{
304
308
  lastName: string;
305
309
  }[] | undefined;
306
310
  } | undefined;
307
- lead?: {
308
- phoneNumber: string;
309
- name: string;
310
- } | undefined;
311
311
  company?: {
312
- id: string;
313
312
  name: string;
313
+ id: string;
314
314
  createdAt: string;
315
315
  updatedAt: string;
316
316
  } | null | undefined;
@@ -323,20 +323,24 @@ export declare const CallHistorySchema: z.ZodObject<{
323
323
  notes: string | null;
324
324
  callType: CallType;
325
325
  assignmentId: string;
326
- ratingWeight: number;
327
326
  leadSource: LeadSource;
328
- agentId?: string | undefined;
327
+ ratingWeight: number;
329
328
  leadId?: string | undefined;
329
+ agentId?: string | undefined;
330
330
  assignment?: {
331
- id: string;
332
331
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
332
+ id: string;
333
+ leadId: string;
333
334
  agentId: string | null;
334
335
  createdAt: string | Date;
335
336
  updatedAt: string | Date;
336
- leadId: string;
337
337
  assignedAt: string | Date;
338
338
  assignedBy: string | null;
339
339
  companyId: string | null;
340
+ lead?: {
341
+ name: string;
342
+ phoneNumber: string;
343
+ } | undefined;
340
344
  agent?: {
341
345
  id: string;
342
346
  firstName: string;
@@ -345,15 +349,15 @@ export declare const CallHistorySchema: z.ZodObject<{
345
349
  createdAt: string | Date;
346
350
  updatedAt: string | Date;
347
351
  phoneNumbers?: {
348
- id: string;
349
352
  phoneNumber: string;
353
+ id: string;
350
354
  description?: string | null | undefined;
351
355
  isPrimary?: boolean | undefined;
352
356
  }[] | undefined;
353
357
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
354
358
  office?: {
355
- id: string;
356
359
  name: string;
360
+ id: string;
357
361
  } | null | undefined;
358
362
  canImpersonateUsers?: {
359
363
  id: string;
@@ -361,13 +365,9 @@ export declare const CallHistorySchema: z.ZodObject<{
361
365
  lastName: string;
362
366
  }[] | undefined;
363
367
  } | undefined;
364
- lead?: {
365
- phoneNumber: string;
366
- name: string;
367
- } | undefined;
368
368
  company?: {
369
- id: string;
370
369
  name: string;
370
+ id: string;
371
371
  createdAt: string | Date;
372
372
  updatedAt: string | Date;
373
373
  } | null | undefined;
@@ -386,11 +386,11 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
386
386
  name: z.ZodString;
387
387
  phoneNumber: z.ZodString;
388
388
  }, "strip", z.ZodTypeAny, {
389
- phoneNumber: string;
390
389
  name: string;
391
- }, {
392
390
  phoneNumber: string;
391
+ }, {
393
392
  name: string;
393
+ phoneNumber: string;
394
394
  }>>;
395
395
  agentId: z.ZodNullable<z.ZodString>;
396
396
  agent: z.ZodOptional<z.ZodObject<{
@@ -404,13 +404,13 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
404
404
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
405
  isPrimary: z.ZodDefault<z.ZodBoolean>;
406
406
  }, "strip", z.ZodTypeAny, {
407
- id: string;
408
407
  phoneNumber: string;
408
+ id: string;
409
409
  isPrimary: boolean;
410
410
  description?: string | null | undefined;
411
411
  }, {
412
- id: string;
413
412
  phoneNumber: string;
413
+ id: string;
414
414
  description?: string | null | undefined;
415
415
  isPrimary?: boolean | undefined;
416
416
  }>, "many">>>;
@@ -419,11 +419,11 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
419
419
  id: z.ZodString;
420
420
  name: z.ZodString;
421
421
  }, "strip", z.ZodTypeAny, {
422
- id: string;
423
422
  name: string;
424
- }, {
425
423
  id: string;
424
+ }, {
426
425
  name: string;
426
+ id: string;
427
427
  }>>>;
428
428
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
429
429
  id: z.ZodString;
@@ -446,8 +446,8 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
446
446
  lastName: string;
447
447
  email: string;
448
448
  phoneNumbers: {
449
- id: string;
450
449
  phoneNumber: string;
450
+ id: string;
451
451
  isPrimary: boolean;
452
452
  description?: string | null | undefined;
453
453
  }[];
@@ -455,8 +455,8 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
455
455
  updatedAt: string;
456
456
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
457
457
  office?: {
458
- id: string;
459
458
  name: string;
459
+ id: string;
460
460
  } | null | undefined;
461
461
  canImpersonateUsers?: {
462
462
  id: string;
@@ -471,15 +471,15 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
471
471
  createdAt: string | Date;
472
472
  updatedAt: string | Date;
473
473
  phoneNumbers?: {
474
- id: string;
475
474
  phoneNumber: string;
475
+ id: string;
476
476
  description?: string | null | undefined;
477
477
  isPrimary?: boolean | undefined;
478
478
  }[] | undefined;
479
479
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
480
480
  office?: {
481
- id: string;
482
481
  name: string;
482
+ id: string;
483
483
  } | null | undefined;
484
484
  canImpersonateUsers?: {
485
485
  id: string;
@@ -497,36 +497,40 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
497
497
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
498
498
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
499
499
  }, "strip", z.ZodTypeAny, {
500
- id: string;
501
500
  name: string;
501
+ id: string;
502
502
  createdAt: string;
503
503
  updatedAt: string;
504
504
  }, {
505
- id: string;
506
505
  name: string;
506
+ id: string;
507
507
  createdAt: string | Date;
508
508
  updatedAt: string | Date;
509
509
  }>>>;
510
510
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
511
511
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
512
512
  }, "strip", z.ZodTypeAny, {
513
- id: string;
514
513
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
514
+ id: string;
515
+ leadId: string;
515
516
  agentId: string | null;
516
517
  createdAt: string;
517
518
  updatedAt: string;
518
- leadId: string;
519
519
  assignedAt: string;
520
520
  assignedBy: string | null;
521
521
  companyId: string | null;
522
+ lead?: {
523
+ name: string;
524
+ phoneNumber: string;
525
+ } | undefined;
522
526
  agent?: {
523
527
  id: string;
524
528
  firstName: string;
525
529
  lastName: string;
526
530
  email: string;
527
531
  phoneNumbers: {
528
- id: string;
529
532
  phoneNumber: string;
533
+ id: string;
530
534
  isPrimary: boolean;
531
535
  description?: string | null | undefined;
532
536
  }[];
@@ -534,8 +538,8 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
534
538
  updatedAt: string;
535
539
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
536
540
  office?: {
537
- id: string;
538
541
  name: string;
542
+ id: string;
539
543
  } | null | undefined;
540
544
  canImpersonateUsers?: {
541
545
  id: string;
@@ -543,26 +547,26 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
543
547
  lastName: string;
544
548
  }[] | undefined;
545
549
  } | undefined;
546
- lead?: {
547
- phoneNumber: string;
548
- name: string;
549
- } | undefined;
550
550
  company?: {
551
- id: string;
552
551
  name: string;
552
+ id: string;
553
553
  createdAt: string;
554
554
  updatedAt: string;
555
555
  } | null | undefined;
556
556
  }, {
557
- id: string;
558
557
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
558
+ id: string;
559
+ leadId: string;
559
560
  agentId: string | null;
560
561
  createdAt: string | Date;
561
562
  updatedAt: string | Date;
562
- leadId: string;
563
563
  assignedAt: string | Date;
564
564
  assignedBy: string | null;
565
565
  companyId: string | null;
566
+ lead?: {
567
+ name: string;
568
+ phoneNumber: string;
569
+ } | undefined;
566
570
  agent?: {
567
571
  id: string;
568
572
  firstName: string;
@@ -571,15 +575,15 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
571
575
  createdAt: string | Date;
572
576
  updatedAt: string | Date;
573
577
  phoneNumbers?: {
574
- id: string;
575
578
  phoneNumber: string;
579
+ id: string;
576
580
  description?: string | null | undefined;
577
581
  isPrimary?: boolean | undefined;
578
582
  }[] | undefined;
579
583
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
580
584
  office?: {
581
- id: string;
582
585
  name: string;
586
+ id: string;
583
587
  } | null | undefined;
584
588
  canImpersonateUsers?: {
585
589
  id: string;
@@ -587,13 +591,9 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
587
591
  lastName: string;
588
592
  }[] | undefined;
589
593
  } | undefined;
590
- lead?: {
591
- phoneNumber: string;
592
- name: string;
593
- } | undefined;
594
594
  company?: {
595
- id: string;
596
595
  name: string;
596
+ id: string;
597
597
  createdAt: string | Date;
598
598
  updatedAt: string | Date;
599
599
  } | null | undefined;
@@ -613,28 +613,32 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
613
613
  notes: string | null;
614
614
  callType: CallType;
615
615
  assignmentId: string;
616
- ratingWeight: number;
617
616
  leadSource: LeadSource;
618
- agentId?: string | undefined;
617
+ ratingWeight: number;
619
618
  leadId?: string | undefined;
619
+ agentId?: string | undefined;
620
620
  assignment?: {
621
- id: string;
622
621
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
622
+ id: string;
623
+ leadId: string;
623
624
  agentId: string | null;
624
625
  createdAt: string;
625
626
  updatedAt: string;
626
- leadId: string;
627
627
  assignedAt: string;
628
628
  assignedBy: string | null;
629
629
  companyId: string | null;
630
+ lead?: {
631
+ name: string;
632
+ phoneNumber: string;
633
+ } | undefined;
630
634
  agent?: {
631
635
  id: string;
632
636
  firstName: string;
633
637
  lastName: string;
634
638
  email: string;
635
639
  phoneNumbers: {
636
- id: string;
637
640
  phoneNumber: string;
641
+ id: string;
638
642
  isPrimary: boolean;
639
643
  description?: string | null | undefined;
640
644
  }[];
@@ -642,8 +646,8 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
642
646
  updatedAt: string;
643
647
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
644
648
  office?: {
645
- id: string;
646
649
  name: string;
650
+ id: string;
647
651
  } | null | undefined;
648
652
  canImpersonateUsers?: {
649
653
  id: string;
@@ -651,13 +655,9 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
651
655
  lastName: string;
652
656
  }[] | undefined;
653
657
  } | undefined;
654
- lead?: {
655
- phoneNumber: string;
656
- name: string;
657
- } | undefined;
658
658
  company?: {
659
- id: string;
660
659
  name: string;
660
+ id: string;
661
661
  createdAt: string;
662
662
  updatedAt: string;
663
663
  } | null | undefined;
@@ -670,20 +670,24 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
670
670
  notes: string | null;
671
671
  callType: CallType;
672
672
  assignmentId: string;
673
- ratingWeight: number;
674
673
  leadSource: LeadSource;
675
- agentId?: string | undefined;
674
+ ratingWeight: number;
676
675
  leadId?: string | undefined;
676
+ agentId?: string | undefined;
677
677
  assignment?: {
678
- id: string;
679
678
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
679
+ id: string;
680
+ leadId: string;
680
681
  agentId: string | null;
681
682
  createdAt: string | Date;
682
683
  updatedAt: string | Date;
683
- leadId: string;
684
684
  assignedAt: string | Date;
685
685
  assignedBy: string | null;
686
686
  companyId: string | null;
687
+ lead?: {
688
+ name: string;
689
+ phoneNumber: string;
690
+ } | undefined;
687
691
  agent?: {
688
692
  id: string;
689
693
  firstName: string;
@@ -692,15 +696,15 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
692
696
  createdAt: string | Date;
693
697
  updatedAt: string | Date;
694
698
  phoneNumbers?: {
695
- id: string;
696
699
  phoneNumber: string;
700
+ id: string;
697
701
  description?: string | null | undefined;
698
702
  isPrimary?: boolean | undefined;
699
703
  }[] | undefined;
700
704
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
701
705
  office?: {
702
- id: string;
703
706
  name: string;
707
+ id: string;
704
708
  } | null | undefined;
705
709
  canImpersonateUsers?: {
706
710
  id: string;
@@ -708,13 +712,9 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
708
712
  lastName: string;
709
713
  }[] | undefined;
710
714
  } | undefined;
711
- lead?: {
712
- phoneNumber: string;
713
- name: string;
714
- } | undefined;
715
715
  company?: {
716
- id: string;
717
716
  name: string;
717
+ id: string;
718
718
  createdAt: string | Date;
719
719
  updatedAt: string | Date;
720
720
  } | null | undefined;
@@ -735,28 +735,32 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
735
735
  notes: string | null;
736
736
  callType: CallType;
737
737
  assignmentId: string;
738
- ratingWeight: number;
739
738
  leadSource: LeadSource;
740
- agentId?: string | undefined;
739
+ ratingWeight: number;
741
740
  leadId?: string | undefined;
741
+ agentId?: string | undefined;
742
742
  assignment?: {
743
- id: string;
744
743
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
744
+ id: string;
745
+ leadId: string;
745
746
  agentId: string | null;
746
747
  createdAt: string;
747
748
  updatedAt: string;
748
- leadId: string;
749
749
  assignedAt: string;
750
750
  assignedBy: string | null;
751
751
  companyId: string | null;
752
+ lead?: {
753
+ name: string;
754
+ phoneNumber: string;
755
+ } | undefined;
752
756
  agent?: {
753
757
  id: string;
754
758
  firstName: string;
755
759
  lastName: string;
756
760
  email: string;
757
761
  phoneNumbers: {
758
- id: string;
759
762
  phoneNumber: string;
763
+ id: string;
760
764
  isPrimary: boolean;
761
765
  description?: string | null | undefined;
762
766
  }[];
@@ -764,8 +768,8 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
764
768
  updatedAt: string;
765
769
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
766
770
  office?: {
767
- id: string;
768
771
  name: string;
772
+ id: string;
769
773
  } | null | undefined;
770
774
  canImpersonateUsers?: {
771
775
  id: string;
@@ -773,13 +777,9 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
773
777
  lastName: string;
774
778
  }[] | undefined;
775
779
  } | undefined;
776
- lead?: {
777
- phoneNumber: string;
778
- name: string;
779
- } | undefined;
780
780
  company?: {
781
- id: string;
782
781
  name: string;
782
+ id: string;
783
783
  createdAt: string;
784
784
  updatedAt: string;
785
785
  } | null | undefined;
@@ -799,20 +799,24 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
799
799
  notes: string | null;
800
800
  callType: CallType;
801
801
  assignmentId: string;
802
- ratingWeight: number;
803
802
  leadSource: LeadSource;
804
- agentId?: string | undefined;
803
+ ratingWeight: number;
805
804
  leadId?: string | undefined;
805
+ agentId?: string | undefined;
806
806
  assignment?: {
807
- id: string;
808
807
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
808
+ id: string;
809
+ leadId: string;
809
810
  agentId: string | null;
810
811
  createdAt: string | Date;
811
812
  updatedAt: string | Date;
812
- leadId: string;
813
813
  assignedAt: string | Date;
814
814
  assignedBy: string | null;
815
815
  companyId: string | null;
816
+ lead?: {
817
+ name: string;
818
+ phoneNumber: string;
819
+ } | undefined;
816
820
  agent?: {
817
821
  id: string;
818
822
  firstName: string;
@@ -821,15 +825,15 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
821
825
  createdAt: string | Date;
822
826
  updatedAt: string | Date;
823
827
  phoneNumbers?: {
824
- id: string;
825
828
  phoneNumber: string;
829
+ id: string;
826
830
  description?: string | null | undefined;
827
831
  isPrimary?: boolean | undefined;
828
832
  }[] | undefined;
829
833
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
830
834
  office?: {
831
- id: string;
832
835
  name: string;
836
+ id: string;
833
837
  } | null | undefined;
834
838
  canImpersonateUsers?: {
835
839
  id: string;
@@ -837,13 +841,9 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
837
841
  lastName: string;
838
842
  }[] | undefined;
839
843
  } | undefined;
840
- lead?: {
841
- phoneNumber: string;
842
- name: string;
843
- } | undefined;
844
844
  company?: {
845
- id: string;
846
845
  name: string;
846
+ id: string;
847
847
  createdAt: string | Date;
848
848
  updatedAt: string | Date;
849
849
  } | null | undefined;
@@ -921,12 +921,12 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
921
921
  from?: string | null | undefined;
922
922
  to?: string | null | undefined;
923
923
  } | null | undefined;
924
+ companyId?: string | undefined;
924
925
  rating?: {
925
926
  from?: CallRating | null | undefined;
926
927
  to?: CallRating | null | undefined;
927
928
  } | null | undefined;
928
929
  callType?: CallType | undefined;
929
- companyId?: string | undefined;
930
930
  sortBy?: CallHistorySortableFields | undefined;
931
931
  sortOrder?: "ASC" | "DESC" | undefined;
932
932
  leadSource?: LeadSource | undefined;
@@ -938,12 +938,12 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
938
938
  from?: string | null | undefined;
939
939
  to?: string | null | undefined;
940
940
  } | null | undefined;
941
+ companyId?: string | undefined;
941
942
  rating?: {
942
943
  from?: unknown;
943
944
  to?: unknown;
944
945
  } | null | undefined;
945
946
  callType?: CallType | undefined;
946
- companyId?: string | undefined;
947
947
  limit?: number | undefined;
948
948
  page?: number | undefined;
949
949
  sortBy?: CallHistorySortableFields | undefined;
@@ -1107,11 +1107,11 @@ export declare const callHistoryContract: {
1107
1107
  name: z.ZodString;
1108
1108
  phoneNumber: z.ZodString;
1109
1109
  }, "strip", z.ZodTypeAny, {
1110
- phoneNumber: string;
1111
1110
  name: string;
1112
- }, {
1113
1111
  phoneNumber: string;
1112
+ }, {
1114
1113
  name: string;
1114
+ phoneNumber: string;
1115
1115
  }>>;
1116
1116
  agentId: z.ZodNullable<z.ZodString>;
1117
1117
  agent: z.ZodOptional<z.ZodObject<{
@@ -1125,13 +1125,13 @@ export declare const callHistoryContract: {
1125
1125
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1126
1126
  isPrimary: z.ZodDefault<z.ZodBoolean>;
1127
1127
  }, "strip", z.ZodTypeAny, {
1128
- id: string;
1129
1128
  phoneNumber: string;
1129
+ id: string;
1130
1130
  isPrimary: boolean;
1131
1131
  description?: string | null | undefined;
1132
1132
  }, {
1133
- id: string;
1134
1133
  phoneNumber: string;
1134
+ id: string;
1135
1135
  description?: string | null | undefined;
1136
1136
  isPrimary?: boolean | undefined;
1137
1137
  }>, "many">>>;
@@ -1140,11 +1140,11 @@ export declare const callHistoryContract: {
1140
1140
  id: z.ZodString;
1141
1141
  name: z.ZodString;
1142
1142
  }, "strip", z.ZodTypeAny, {
1143
- id: string;
1144
1143
  name: string;
1145
- }, {
1146
1144
  id: string;
1145
+ }, {
1147
1146
  name: string;
1147
+ id: string;
1148
1148
  }>>>;
1149
1149
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1150
1150
  id: z.ZodString;
@@ -1167,8 +1167,8 @@ export declare const callHistoryContract: {
1167
1167
  lastName: string;
1168
1168
  email: string;
1169
1169
  phoneNumbers: {
1170
- id: string;
1171
1170
  phoneNumber: string;
1171
+ id: string;
1172
1172
  isPrimary: boolean;
1173
1173
  description?: string | null | undefined;
1174
1174
  }[];
@@ -1176,8 +1176,8 @@ export declare const callHistoryContract: {
1176
1176
  updatedAt: string;
1177
1177
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1178
1178
  office?: {
1179
- id: string;
1180
1179
  name: string;
1180
+ id: string;
1181
1181
  } | null | undefined;
1182
1182
  canImpersonateUsers?: {
1183
1183
  id: string;
@@ -1192,15 +1192,15 @@ export declare const callHistoryContract: {
1192
1192
  createdAt: string | Date;
1193
1193
  updatedAt: string | Date;
1194
1194
  phoneNumbers?: {
1195
- id: string;
1196
1195
  phoneNumber: string;
1196
+ id: string;
1197
1197
  description?: string | null | undefined;
1198
1198
  isPrimary?: boolean | undefined;
1199
1199
  }[] | undefined;
1200
1200
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1201
1201
  office?: {
1202
- id: string;
1203
1202
  name: string;
1203
+ id: string;
1204
1204
  } | null | undefined;
1205
1205
  canImpersonateUsers?: {
1206
1206
  id: string;
@@ -1218,36 +1218,40 @@ export declare const callHistoryContract: {
1218
1218
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1219
1219
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1220
1220
  }, "strip", z.ZodTypeAny, {
1221
- id: string;
1222
1221
  name: string;
1222
+ id: string;
1223
1223
  createdAt: string;
1224
1224
  updatedAt: string;
1225
1225
  }, {
1226
- id: string;
1227
1226
  name: string;
1227
+ id: string;
1228
1228
  createdAt: string | Date;
1229
1229
  updatedAt: string | Date;
1230
1230
  }>>>;
1231
1231
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1232
1232
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1233
1233
  }, "strip", z.ZodTypeAny, {
1234
- id: string;
1235
1234
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1235
+ id: string;
1236
+ leadId: string;
1236
1237
  agentId: string | null;
1237
1238
  createdAt: string;
1238
1239
  updatedAt: string;
1239
- leadId: string;
1240
1240
  assignedAt: string;
1241
1241
  assignedBy: string | null;
1242
1242
  companyId: string | null;
1243
+ lead?: {
1244
+ name: string;
1245
+ phoneNumber: string;
1246
+ } | undefined;
1243
1247
  agent?: {
1244
1248
  id: string;
1245
1249
  firstName: string;
1246
1250
  lastName: string;
1247
1251
  email: string;
1248
1252
  phoneNumbers: {
1249
- id: string;
1250
1253
  phoneNumber: string;
1254
+ id: string;
1251
1255
  isPrimary: boolean;
1252
1256
  description?: string | null | undefined;
1253
1257
  }[];
@@ -1255,8 +1259,8 @@ export declare const callHistoryContract: {
1255
1259
  updatedAt: string;
1256
1260
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1257
1261
  office?: {
1258
- id: string;
1259
1262
  name: string;
1263
+ id: string;
1260
1264
  } | null | undefined;
1261
1265
  canImpersonateUsers?: {
1262
1266
  id: string;
@@ -1264,26 +1268,26 @@ export declare const callHistoryContract: {
1264
1268
  lastName: string;
1265
1269
  }[] | undefined;
1266
1270
  } | undefined;
1267
- lead?: {
1268
- phoneNumber: string;
1269
- name: string;
1270
- } | undefined;
1271
1271
  company?: {
1272
- id: string;
1273
1272
  name: string;
1273
+ id: string;
1274
1274
  createdAt: string;
1275
1275
  updatedAt: string;
1276
1276
  } | null | undefined;
1277
1277
  }, {
1278
- id: string;
1279
1278
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1279
+ id: string;
1280
+ leadId: string;
1280
1281
  agentId: string | null;
1281
1282
  createdAt: string | Date;
1282
1283
  updatedAt: string | Date;
1283
- leadId: string;
1284
1284
  assignedAt: string | Date;
1285
1285
  assignedBy: string | null;
1286
1286
  companyId: string | null;
1287
+ lead?: {
1288
+ name: string;
1289
+ phoneNumber: string;
1290
+ } | undefined;
1287
1291
  agent?: {
1288
1292
  id: string;
1289
1293
  firstName: string;
@@ -1292,15 +1296,15 @@ export declare const callHistoryContract: {
1292
1296
  createdAt: string | Date;
1293
1297
  updatedAt: string | Date;
1294
1298
  phoneNumbers?: {
1295
- id: string;
1296
1299
  phoneNumber: string;
1300
+ id: string;
1297
1301
  description?: string | null | undefined;
1298
1302
  isPrimary?: boolean | undefined;
1299
1303
  }[] | undefined;
1300
1304
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1301
1305
  office?: {
1302
- id: string;
1303
1306
  name: string;
1307
+ id: string;
1304
1308
  } | null | undefined;
1305
1309
  canImpersonateUsers?: {
1306
1310
  id: string;
@@ -1308,13 +1312,9 @@ export declare const callHistoryContract: {
1308
1312
  lastName: string;
1309
1313
  }[] | undefined;
1310
1314
  } | undefined;
1311
- lead?: {
1312
- phoneNumber: string;
1313
- name: string;
1314
- } | undefined;
1315
1315
  company?: {
1316
- id: string;
1317
1316
  name: string;
1317
+ id: string;
1318
1318
  createdAt: string | Date;
1319
1319
  updatedAt: string | Date;
1320
1320
  } | null | undefined;
@@ -1334,28 +1334,32 @@ export declare const callHistoryContract: {
1334
1334
  notes: string | null;
1335
1335
  callType: CallType;
1336
1336
  assignmentId: string;
1337
- ratingWeight: number;
1338
1337
  leadSource: LeadSource;
1339
- agentId?: string | undefined;
1338
+ ratingWeight: number;
1340
1339
  leadId?: string | undefined;
1340
+ agentId?: string | undefined;
1341
1341
  assignment?: {
1342
- id: string;
1343
1342
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1343
+ id: string;
1344
+ leadId: string;
1344
1345
  agentId: string | null;
1345
1346
  createdAt: string;
1346
1347
  updatedAt: string;
1347
- leadId: string;
1348
1348
  assignedAt: string;
1349
1349
  assignedBy: string | null;
1350
1350
  companyId: string | null;
1351
+ lead?: {
1352
+ name: string;
1353
+ phoneNumber: string;
1354
+ } | undefined;
1351
1355
  agent?: {
1352
1356
  id: string;
1353
1357
  firstName: string;
1354
1358
  lastName: string;
1355
1359
  email: string;
1356
1360
  phoneNumbers: {
1357
- id: string;
1358
1361
  phoneNumber: string;
1362
+ id: string;
1359
1363
  isPrimary: boolean;
1360
1364
  description?: string | null | undefined;
1361
1365
  }[];
@@ -1363,8 +1367,8 @@ export declare const callHistoryContract: {
1363
1367
  updatedAt: string;
1364
1368
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1365
1369
  office?: {
1366
- id: string;
1367
1370
  name: string;
1371
+ id: string;
1368
1372
  } | null | undefined;
1369
1373
  canImpersonateUsers?: {
1370
1374
  id: string;
@@ -1372,13 +1376,9 @@ export declare const callHistoryContract: {
1372
1376
  lastName: string;
1373
1377
  }[] | undefined;
1374
1378
  } | undefined;
1375
- lead?: {
1376
- phoneNumber: string;
1377
- name: string;
1378
- } | undefined;
1379
1379
  company?: {
1380
- id: string;
1381
1380
  name: string;
1381
+ id: string;
1382
1382
  createdAt: string;
1383
1383
  updatedAt: string;
1384
1384
  } | null | undefined;
@@ -1391,20 +1391,24 @@ export declare const callHistoryContract: {
1391
1391
  notes: string | null;
1392
1392
  callType: CallType;
1393
1393
  assignmentId: string;
1394
- ratingWeight: number;
1395
1394
  leadSource: LeadSource;
1396
- agentId?: string | undefined;
1395
+ ratingWeight: number;
1397
1396
  leadId?: string | undefined;
1397
+ agentId?: string | undefined;
1398
1398
  assignment?: {
1399
- id: string;
1400
1399
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1400
+ id: string;
1401
+ leadId: string;
1401
1402
  agentId: string | null;
1402
1403
  createdAt: string | Date;
1403
1404
  updatedAt: string | Date;
1404
- leadId: string;
1405
1405
  assignedAt: string | Date;
1406
1406
  assignedBy: string | null;
1407
1407
  companyId: string | null;
1408
+ lead?: {
1409
+ name: string;
1410
+ phoneNumber: string;
1411
+ } | undefined;
1408
1412
  agent?: {
1409
1413
  id: string;
1410
1414
  firstName: string;
@@ -1413,15 +1417,15 @@ export declare const callHistoryContract: {
1413
1417
  createdAt: string | Date;
1414
1418
  updatedAt: string | Date;
1415
1419
  phoneNumbers?: {
1416
- id: string;
1417
1420
  phoneNumber: string;
1421
+ id: string;
1418
1422
  description?: string | null | undefined;
1419
1423
  isPrimary?: boolean | undefined;
1420
1424
  }[] | undefined;
1421
1425
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1422
1426
  office?: {
1423
- id: string;
1424
1427
  name: string;
1428
+ id: string;
1425
1429
  } | null | undefined;
1426
1430
  canImpersonateUsers?: {
1427
1431
  id: string;
@@ -1429,13 +1433,9 @@ export declare const callHistoryContract: {
1429
1433
  lastName: string;
1430
1434
  }[] | undefined;
1431
1435
  } | undefined;
1432
- lead?: {
1433
- phoneNumber: string;
1434
- name: string;
1435
- } | undefined;
1436
1436
  company?: {
1437
- id: string;
1438
1437
  name: string;
1438
+ id: string;
1439
1439
  createdAt: string | Date;
1440
1440
  updatedAt: string | Date;
1441
1441
  } | null | undefined;
@@ -1469,6 +1469,9 @@ export declare const callHistoryContract: {
1469
1469
  };
1470
1470
  };
1471
1471
  findAll: {
1472
+ metadata: {
1473
+ tags: string[];
1474
+ };
1472
1475
  query: z.ZodObject<{
1473
1476
  limit: z.ZodDefault<z.ZodNumber>;
1474
1477
  page: z.ZodDefault<z.ZodNumber>;
@@ -1510,12 +1513,12 @@ export declare const callHistoryContract: {
1510
1513
  from?: string | null | undefined;
1511
1514
  to?: string | null | undefined;
1512
1515
  } | null | undefined;
1516
+ companyId?: string | undefined;
1513
1517
  rating?: {
1514
1518
  from?: CallRating | null | undefined;
1515
1519
  to?: CallRating | null | undefined;
1516
1520
  } | null | undefined;
1517
1521
  callType?: CallType | undefined;
1518
- companyId?: string | undefined;
1519
1522
  sortBy?: CallHistorySortableFields | undefined;
1520
1523
  sortOrder?: "ASC" | "DESC" | undefined;
1521
1524
  leadSource?: LeadSource | undefined;
@@ -1527,12 +1530,12 @@ export declare const callHistoryContract: {
1527
1530
  from?: string | null | undefined;
1528
1531
  to?: string | null | undefined;
1529
1532
  } | null | undefined;
1533
+ companyId?: string | undefined;
1530
1534
  rating?: {
1531
1535
  from?: unknown;
1532
1536
  to?: unknown;
1533
1537
  } | null | undefined;
1534
1538
  callType?: CallType | undefined;
1535
- companyId?: string | undefined;
1536
1539
  limit?: number | undefined;
1537
1540
  page?: number | undefined;
1538
1541
  sortBy?: CallHistorySortableFields | undefined;
@@ -1540,9 +1543,6 @@ export declare const callHistoryContract: {
1540
1543
  leadSource?: LeadSource | undefined;
1541
1544
  leadName?: string | undefined;
1542
1545
  }>;
1543
- metadata: {
1544
- tags: string[];
1545
- };
1546
1546
  summary: "Get call history records";
1547
1547
  method: "GET";
1548
1548
  path: "/v2/call-history";
@@ -1660,11 +1660,11 @@ export declare const callHistoryContract: {
1660
1660
  name: z.ZodString;
1661
1661
  phoneNumber: z.ZodString;
1662
1662
  }, "strip", z.ZodTypeAny, {
1663
- phoneNumber: string;
1664
1663
  name: string;
1665
- }, {
1666
1664
  phoneNumber: string;
1665
+ }, {
1667
1666
  name: string;
1667
+ phoneNumber: string;
1668
1668
  }>>;
1669
1669
  agentId: z.ZodNullable<z.ZodString>;
1670
1670
  agent: z.ZodOptional<z.ZodObject<{
@@ -1678,13 +1678,13 @@ export declare const callHistoryContract: {
1678
1678
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1679
1679
  isPrimary: z.ZodDefault<z.ZodBoolean>;
1680
1680
  }, "strip", z.ZodTypeAny, {
1681
- id: string;
1682
1681
  phoneNumber: string;
1682
+ id: string;
1683
1683
  isPrimary: boolean;
1684
1684
  description?: string | null | undefined;
1685
1685
  }, {
1686
- id: string;
1687
1686
  phoneNumber: string;
1687
+ id: string;
1688
1688
  description?: string | null | undefined;
1689
1689
  isPrimary?: boolean | undefined;
1690
1690
  }>, "many">>>;
@@ -1693,11 +1693,11 @@ export declare const callHistoryContract: {
1693
1693
  id: z.ZodString;
1694
1694
  name: z.ZodString;
1695
1695
  }, "strip", z.ZodTypeAny, {
1696
- id: string;
1697
1696
  name: string;
1698
- }, {
1699
1697
  id: string;
1698
+ }, {
1700
1699
  name: string;
1700
+ id: string;
1701
1701
  }>>>;
1702
1702
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1703
1703
  id: z.ZodString;
@@ -1720,8 +1720,8 @@ export declare const callHistoryContract: {
1720
1720
  lastName: string;
1721
1721
  email: string;
1722
1722
  phoneNumbers: {
1723
- id: string;
1724
1723
  phoneNumber: string;
1724
+ id: string;
1725
1725
  isPrimary: boolean;
1726
1726
  description?: string | null | undefined;
1727
1727
  }[];
@@ -1729,8 +1729,8 @@ export declare const callHistoryContract: {
1729
1729
  updatedAt: string;
1730
1730
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1731
1731
  office?: {
1732
- id: string;
1733
1732
  name: string;
1733
+ id: string;
1734
1734
  } | null | undefined;
1735
1735
  canImpersonateUsers?: {
1736
1736
  id: string;
@@ -1745,15 +1745,15 @@ export declare const callHistoryContract: {
1745
1745
  createdAt: string | Date;
1746
1746
  updatedAt: string | Date;
1747
1747
  phoneNumbers?: {
1748
- id: string;
1749
1748
  phoneNumber: string;
1749
+ id: string;
1750
1750
  description?: string | null | undefined;
1751
1751
  isPrimary?: boolean | undefined;
1752
1752
  }[] | undefined;
1753
1753
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1754
1754
  office?: {
1755
- id: string;
1756
1755
  name: string;
1756
+ id: string;
1757
1757
  } | null | undefined;
1758
1758
  canImpersonateUsers?: {
1759
1759
  id: string;
@@ -1771,36 +1771,40 @@ export declare const callHistoryContract: {
1771
1771
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1772
1772
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1773
1773
  }, "strip", z.ZodTypeAny, {
1774
- id: string;
1775
1774
  name: string;
1775
+ id: string;
1776
1776
  createdAt: string;
1777
1777
  updatedAt: string;
1778
1778
  }, {
1779
- id: string;
1780
1779
  name: string;
1780
+ id: string;
1781
1781
  createdAt: string | Date;
1782
1782
  updatedAt: string | Date;
1783
1783
  }>>>;
1784
1784
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1785
1785
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1786
1786
  }, "strip", z.ZodTypeAny, {
1787
- id: string;
1788
1787
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1788
+ id: string;
1789
+ leadId: string;
1789
1790
  agentId: string | null;
1790
1791
  createdAt: string;
1791
1792
  updatedAt: string;
1792
- leadId: string;
1793
1793
  assignedAt: string;
1794
1794
  assignedBy: string | null;
1795
1795
  companyId: string | null;
1796
+ lead?: {
1797
+ name: string;
1798
+ phoneNumber: string;
1799
+ } | undefined;
1796
1800
  agent?: {
1797
1801
  id: string;
1798
1802
  firstName: string;
1799
1803
  lastName: string;
1800
1804
  email: string;
1801
1805
  phoneNumbers: {
1802
- id: string;
1803
1806
  phoneNumber: string;
1807
+ id: string;
1804
1808
  isPrimary: boolean;
1805
1809
  description?: string | null | undefined;
1806
1810
  }[];
@@ -1808,8 +1812,8 @@ export declare const callHistoryContract: {
1808
1812
  updatedAt: string;
1809
1813
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1810
1814
  office?: {
1811
- id: string;
1812
1815
  name: string;
1816
+ id: string;
1813
1817
  } | null | undefined;
1814
1818
  canImpersonateUsers?: {
1815
1819
  id: string;
@@ -1817,26 +1821,26 @@ export declare const callHistoryContract: {
1817
1821
  lastName: string;
1818
1822
  }[] | undefined;
1819
1823
  } | undefined;
1820
- lead?: {
1821
- phoneNumber: string;
1822
- name: string;
1823
- } | undefined;
1824
1824
  company?: {
1825
- id: string;
1826
1825
  name: string;
1826
+ id: string;
1827
1827
  createdAt: string;
1828
1828
  updatedAt: string;
1829
1829
  } | null | undefined;
1830
1830
  }, {
1831
- id: string;
1832
1831
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1832
+ id: string;
1833
+ leadId: string;
1833
1834
  agentId: string | null;
1834
1835
  createdAt: string | Date;
1835
1836
  updatedAt: string | Date;
1836
- leadId: string;
1837
1837
  assignedAt: string | Date;
1838
1838
  assignedBy: string | null;
1839
1839
  companyId: string | null;
1840
+ lead?: {
1841
+ name: string;
1842
+ phoneNumber: string;
1843
+ } | undefined;
1840
1844
  agent?: {
1841
1845
  id: string;
1842
1846
  firstName: string;
@@ -1845,15 +1849,15 @@ export declare const callHistoryContract: {
1845
1849
  createdAt: string | Date;
1846
1850
  updatedAt: string | Date;
1847
1851
  phoneNumbers?: {
1848
- id: string;
1849
1852
  phoneNumber: string;
1853
+ id: string;
1850
1854
  description?: string | null | undefined;
1851
1855
  isPrimary?: boolean | undefined;
1852
1856
  }[] | undefined;
1853
1857
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1854
1858
  office?: {
1855
- id: string;
1856
1859
  name: string;
1860
+ id: string;
1857
1861
  } | null | undefined;
1858
1862
  canImpersonateUsers?: {
1859
1863
  id: string;
@@ -1861,13 +1865,9 @@ export declare const callHistoryContract: {
1861
1865
  lastName: string;
1862
1866
  }[] | undefined;
1863
1867
  } | undefined;
1864
- lead?: {
1865
- phoneNumber: string;
1866
- name: string;
1867
- } | undefined;
1868
1868
  company?: {
1869
- id: string;
1870
1869
  name: string;
1870
+ id: string;
1871
1871
  createdAt: string | Date;
1872
1872
  updatedAt: string | Date;
1873
1873
  } | null | undefined;
@@ -1887,28 +1887,32 @@ export declare const callHistoryContract: {
1887
1887
  notes: string | null;
1888
1888
  callType: CallType;
1889
1889
  assignmentId: string;
1890
- ratingWeight: number;
1891
1890
  leadSource: LeadSource;
1892
- agentId?: string | undefined;
1891
+ ratingWeight: number;
1893
1892
  leadId?: string | undefined;
1893
+ agentId?: string | undefined;
1894
1894
  assignment?: {
1895
- id: string;
1896
1895
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1896
+ id: string;
1897
+ leadId: string;
1897
1898
  agentId: string | null;
1898
1899
  createdAt: string;
1899
1900
  updatedAt: string;
1900
- leadId: string;
1901
1901
  assignedAt: string;
1902
1902
  assignedBy: string | null;
1903
1903
  companyId: string | null;
1904
+ lead?: {
1905
+ name: string;
1906
+ phoneNumber: string;
1907
+ } | undefined;
1904
1908
  agent?: {
1905
1909
  id: string;
1906
1910
  firstName: string;
1907
1911
  lastName: string;
1908
1912
  email: string;
1909
1913
  phoneNumbers: {
1910
- id: string;
1911
1914
  phoneNumber: string;
1915
+ id: string;
1912
1916
  isPrimary: boolean;
1913
1917
  description?: string | null | undefined;
1914
1918
  }[];
@@ -1916,8 +1920,8 @@ export declare const callHistoryContract: {
1916
1920
  updatedAt: string;
1917
1921
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1918
1922
  office?: {
1919
- id: string;
1920
1923
  name: string;
1924
+ id: string;
1921
1925
  } | null | undefined;
1922
1926
  canImpersonateUsers?: {
1923
1927
  id: string;
@@ -1925,13 +1929,9 @@ export declare const callHistoryContract: {
1925
1929
  lastName: string;
1926
1930
  }[] | undefined;
1927
1931
  } | undefined;
1928
- lead?: {
1929
- phoneNumber: string;
1930
- name: string;
1931
- } | undefined;
1932
1932
  company?: {
1933
- id: string;
1934
1933
  name: string;
1934
+ id: string;
1935
1935
  createdAt: string;
1936
1936
  updatedAt: string;
1937
1937
  } | null | undefined;
@@ -1944,20 +1944,24 @@ export declare const callHistoryContract: {
1944
1944
  notes: string | null;
1945
1945
  callType: CallType;
1946
1946
  assignmentId: string;
1947
- ratingWeight: number;
1948
1947
  leadSource: LeadSource;
1949
- agentId?: string | undefined;
1948
+ ratingWeight: number;
1950
1949
  leadId?: string | undefined;
1950
+ agentId?: string | undefined;
1951
1951
  assignment?: {
1952
- id: string;
1953
1952
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1953
+ id: string;
1954
+ leadId: string;
1954
1955
  agentId: string | null;
1955
1956
  createdAt: string | Date;
1956
1957
  updatedAt: string | Date;
1957
- leadId: string;
1958
1958
  assignedAt: string | Date;
1959
1959
  assignedBy: string | null;
1960
1960
  companyId: string | null;
1961
+ lead?: {
1962
+ name: string;
1963
+ phoneNumber: string;
1964
+ } | undefined;
1961
1965
  agent?: {
1962
1966
  id: string;
1963
1967
  firstName: string;
@@ -1966,29 +1970,25 @@ export declare const callHistoryContract: {
1966
1970
  createdAt: string | Date;
1967
1971
  updatedAt: string | Date;
1968
1972
  phoneNumbers?: {
1969
- id: string;
1970
1973
  phoneNumber: string;
1974
+ id: string;
1971
1975
  description?: string | null | undefined;
1972
1976
  isPrimary?: boolean | undefined;
1973
1977
  }[] | undefined;
1974
1978
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1975
1979
  office?: {
1976
- id: string;
1977
1980
  name: string;
1981
+ id: string;
1978
1982
  } | null | undefined;
1979
1983
  canImpersonateUsers?: {
1980
1984
  id: string;
1981
1985
  firstName: string;
1982
- lastName: string;
1983
- }[] | undefined;
1984
- } | undefined;
1985
- lead?: {
1986
- phoneNumber: string;
1987
- name: string;
1986
+ lastName: string;
1987
+ }[] | undefined;
1988
1988
  } | undefined;
1989
1989
  company?: {
1990
- id: string;
1991
1990
  name: string;
1991
+ id: string;
1992
1992
  createdAt: string | Date;
1993
1993
  updatedAt: string | Date;
1994
1994
  } | null | undefined;
@@ -2009,28 +2009,32 @@ export declare const callHistoryContract: {
2009
2009
  notes: string | null;
2010
2010
  callType: CallType;
2011
2011
  assignmentId: string;
2012
- ratingWeight: number;
2013
2012
  leadSource: LeadSource;
2014
- agentId?: string | undefined;
2013
+ ratingWeight: number;
2015
2014
  leadId?: string | undefined;
2015
+ agentId?: string | undefined;
2016
2016
  assignment?: {
2017
- id: string;
2018
2017
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2018
+ id: string;
2019
+ leadId: string;
2019
2020
  agentId: string | null;
2020
2021
  createdAt: string;
2021
2022
  updatedAt: string;
2022
- leadId: string;
2023
2023
  assignedAt: string;
2024
2024
  assignedBy: string | null;
2025
2025
  companyId: string | null;
2026
+ lead?: {
2027
+ name: string;
2028
+ phoneNumber: string;
2029
+ } | undefined;
2026
2030
  agent?: {
2027
2031
  id: string;
2028
2032
  firstName: string;
2029
2033
  lastName: string;
2030
2034
  email: string;
2031
2035
  phoneNumbers: {
2032
- id: string;
2033
2036
  phoneNumber: string;
2037
+ id: string;
2034
2038
  isPrimary: boolean;
2035
2039
  description?: string | null | undefined;
2036
2040
  }[];
@@ -2038,8 +2042,8 @@ export declare const callHistoryContract: {
2038
2042
  updatedAt: string;
2039
2043
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2040
2044
  office?: {
2041
- id: string;
2042
2045
  name: string;
2046
+ id: string;
2043
2047
  } | null | undefined;
2044
2048
  canImpersonateUsers?: {
2045
2049
  id: string;
@@ -2047,13 +2051,9 @@ export declare const callHistoryContract: {
2047
2051
  lastName: string;
2048
2052
  }[] | undefined;
2049
2053
  } | undefined;
2050
- lead?: {
2051
- phoneNumber: string;
2052
- name: string;
2053
- } | undefined;
2054
2054
  company?: {
2055
- id: string;
2056
2055
  name: string;
2056
+ id: string;
2057
2057
  createdAt: string;
2058
2058
  updatedAt: string;
2059
2059
  } | null | undefined;
@@ -2073,20 +2073,24 @@ export declare const callHistoryContract: {
2073
2073
  notes: string | null;
2074
2074
  callType: CallType;
2075
2075
  assignmentId: string;
2076
- ratingWeight: number;
2077
2076
  leadSource: LeadSource;
2078
- agentId?: string | undefined;
2077
+ ratingWeight: number;
2079
2078
  leadId?: string | undefined;
2079
+ agentId?: string | undefined;
2080
2080
  assignment?: {
2081
- id: string;
2082
2081
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2082
+ id: string;
2083
+ leadId: string;
2083
2084
  agentId: string | null;
2084
2085
  createdAt: string | Date;
2085
2086
  updatedAt: string | Date;
2086
- leadId: string;
2087
2087
  assignedAt: string | Date;
2088
2088
  assignedBy: string | null;
2089
2089
  companyId: string | null;
2090
+ lead?: {
2091
+ name: string;
2092
+ phoneNumber: string;
2093
+ } | undefined;
2090
2094
  agent?: {
2091
2095
  id: string;
2092
2096
  firstName: string;
@@ -2095,15 +2099,15 @@ export declare const callHistoryContract: {
2095
2099
  createdAt: string | Date;
2096
2100
  updatedAt: string | Date;
2097
2101
  phoneNumbers?: {
2098
- id: string;
2099
2102
  phoneNumber: string;
2103
+ id: string;
2100
2104
  description?: string | null | undefined;
2101
2105
  isPrimary?: boolean | undefined;
2102
2106
  }[] | undefined;
2103
2107
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2104
2108
  office?: {
2105
- id: string;
2106
2109
  name: string;
2110
+ id: string;
2107
2111
  } | null | undefined;
2108
2112
  canImpersonateUsers?: {
2109
2113
  id: string;
@@ -2111,13 +2115,9 @@ export declare const callHistoryContract: {
2111
2115
  lastName: string;
2112
2116
  }[] | undefined;
2113
2117
  } | undefined;
2114
- lead?: {
2115
- phoneNumber: string;
2116
- name: string;
2117
- } | undefined;
2118
2118
  company?: {
2119
- id: string;
2120
2119
  name: string;
2120
+ id: string;
2121
2121
  createdAt: string | Date;
2122
2122
  updatedAt: string | Date;
2123
2123
  } | null | undefined;
@@ -2257,11 +2257,11 @@ export declare const callHistoryContract: {
2257
2257
  name: z.ZodString;
2258
2258
  phoneNumber: z.ZodString;
2259
2259
  }, "strip", z.ZodTypeAny, {
2260
- phoneNumber: string;
2261
2260
  name: string;
2262
- }, {
2263
2261
  phoneNumber: string;
2262
+ }, {
2264
2263
  name: string;
2264
+ phoneNumber: string;
2265
2265
  }>>;
2266
2266
  agentId: z.ZodNullable<z.ZodString>;
2267
2267
  agent: z.ZodOptional<z.ZodObject<{
@@ -2275,13 +2275,13 @@ export declare const callHistoryContract: {
2275
2275
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2276
2276
  isPrimary: z.ZodDefault<z.ZodBoolean>;
2277
2277
  }, "strip", z.ZodTypeAny, {
2278
- id: string;
2279
2278
  phoneNumber: string;
2279
+ id: string;
2280
2280
  isPrimary: boolean;
2281
2281
  description?: string | null | undefined;
2282
2282
  }, {
2283
- id: string;
2284
2283
  phoneNumber: string;
2284
+ id: string;
2285
2285
  description?: string | null | undefined;
2286
2286
  isPrimary?: boolean | undefined;
2287
2287
  }>, "many">>>;
@@ -2290,11 +2290,11 @@ export declare const callHistoryContract: {
2290
2290
  id: z.ZodString;
2291
2291
  name: z.ZodString;
2292
2292
  }, "strip", z.ZodTypeAny, {
2293
- id: string;
2294
2293
  name: string;
2295
- }, {
2296
2294
  id: string;
2295
+ }, {
2297
2296
  name: string;
2297
+ id: string;
2298
2298
  }>>>;
2299
2299
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2300
2300
  id: z.ZodString;
@@ -2317,8 +2317,8 @@ export declare const callHistoryContract: {
2317
2317
  lastName: string;
2318
2318
  email: string;
2319
2319
  phoneNumbers: {
2320
- id: string;
2321
2320
  phoneNumber: string;
2321
+ id: string;
2322
2322
  isPrimary: boolean;
2323
2323
  description?: string | null | undefined;
2324
2324
  }[];
@@ -2326,8 +2326,8 @@ export declare const callHistoryContract: {
2326
2326
  updatedAt: string;
2327
2327
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2328
2328
  office?: {
2329
- id: string;
2330
2329
  name: string;
2330
+ id: string;
2331
2331
  } | null | undefined;
2332
2332
  canImpersonateUsers?: {
2333
2333
  id: string;
@@ -2342,15 +2342,15 @@ export declare const callHistoryContract: {
2342
2342
  createdAt: string | Date;
2343
2343
  updatedAt: string | Date;
2344
2344
  phoneNumbers?: {
2345
- id: string;
2346
2345
  phoneNumber: string;
2346
+ id: string;
2347
2347
  description?: string | null | undefined;
2348
2348
  isPrimary?: boolean | undefined;
2349
2349
  }[] | undefined;
2350
2350
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2351
2351
  office?: {
2352
- id: string;
2353
2352
  name: string;
2353
+ id: string;
2354
2354
  } | null | undefined;
2355
2355
  canImpersonateUsers?: {
2356
2356
  id: string;
@@ -2368,36 +2368,40 @@ export declare const callHistoryContract: {
2368
2368
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2369
2369
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2370
2370
  }, "strip", z.ZodTypeAny, {
2371
- id: string;
2372
2371
  name: string;
2372
+ id: string;
2373
2373
  createdAt: string;
2374
2374
  updatedAt: string;
2375
2375
  }, {
2376
- id: string;
2377
2376
  name: string;
2377
+ id: string;
2378
2378
  createdAt: string | Date;
2379
2379
  updatedAt: string | Date;
2380
2380
  }>>>;
2381
2381
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2382
2382
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2383
2383
  }, "strip", z.ZodTypeAny, {
2384
- id: string;
2385
2384
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2385
+ id: string;
2386
+ leadId: string;
2386
2387
  agentId: string | null;
2387
2388
  createdAt: string;
2388
2389
  updatedAt: string;
2389
- leadId: string;
2390
2390
  assignedAt: string;
2391
2391
  assignedBy: string | null;
2392
2392
  companyId: string | null;
2393
+ lead?: {
2394
+ name: string;
2395
+ phoneNumber: string;
2396
+ } | undefined;
2393
2397
  agent?: {
2394
2398
  id: string;
2395
2399
  firstName: string;
2396
2400
  lastName: string;
2397
2401
  email: string;
2398
2402
  phoneNumbers: {
2399
- id: string;
2400
2403
  phoneNumber: string;
2404
+ id: string;
2401
2405
  isPrimary: boolean;
2402
2406
  description?: string | null | undefined;
2403
2407
  }[];
@@ -2405,8 +2409,8 @@ export declare const callHistoryContract: {
2405
2409
  updatedAt: string;
2406
2410
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2407
2411
  office?: {
2408
- id: string;
2409
2412
  name: string;
2413
+ id: string;
2410
2414
  } | null | undefined;
2411
2415
  canImpersonateUsers?: {
2412
2416
  id: string;
@@ -2414,26 +2418,26 @@ export declare const callHistoryContract: {
2414
2418
  lastName: string;
2415
2419
  }[] | undefined;
2416
2420
  } | undefined;
2417
- lead?: {
2418
- phoneNumber: string;
2419
- name: string;
2420
- } | undefined;
2421
2421
  company?: {
2422
- id: string;
2423
2422
  name: string;
2423
+ id: string;
2424
2424
  createdAt: string;
2425
2425
  updatedAt: string;
2426
2426
  } | null | undefined;
2427
2427
  }, {
2428
- id: string;
2429
2428
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2429
+ id: string;
2430
+ leadId: string;
2430
2431
  agentId: string | null;
2431
2432
  createdAt: string | Date;
2432
2433
  updatedAt: string | Date;
2433
- leadId: string;
2434
2434
  assignedAt: string | Date;
2435
2435
  assignedBy: string | null;
2436
2436
  companyId: string | null;
2437
+ lead?: {
2438
+ name: string;
2439
+ phoneNumber: string;
2440
+ } | undefined;
2437
2441
  agent?: {
2438
2442
  id: string;
2439
2443
  firstName: string;
@@ -2442,15 +2446,15 @@ export declare const callHistoryContract: {
2442
2446
  createdAt: string | Date;
2443
2447
  updatedAt: string | Date;
2444
2448
  phoneNumbers?: {
2445
- id: string;
2446
2449
  phoneNumber: string;
2450
+ id: string;
2447
2451
  description?: string | null | undefined;
2448
2452
  isPrimary?: boolean | undefined;
2449
2453
  }[] | undefined;
2450
2454
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2451
2455
  office?: {
2452
- id: string;
2453
2456
  name: string;
2457
+ id: string;
2454
2458
  } | null | undefined;
2455
2459
  canImpersonateUsers?: {
2456
2460
  id: string;
@@ -2458,13 +2462,9 @@ export declare const callHistoryContract: {
2458
2462
  lastName: string;
2459
2463
  }[] | undefined;
2460
2464
  } | undefined;
2461
- lead?: {
2462
- phoneNumber: string;
2463
- name: string;
2464
- } | undefined;
2465
2465
  company?: {
2466
- id: string;
2467
2466
  name: string;
2467
+ id: string;
2468
2468
  createdAt: string | Date;
2469
2469
  updatedAt: string | Date;
2470
2470
  } | null | undefined;
@@ -2484,28 +2484,32 @@ export declare const callHistoryContract: {
2484
2484
  notes: string | null;
2485
2485
  callType: CallType;
2486
2486
  assignmentId: string;
2487
- ratingWeight: number;
2488
2487
  leadSource: LeadSource;
2489
- agentId?: string | undefined;
2488
+ ratingWeight: number;
2490
2489
  leadId?: string | undefined;
2490
+ agentId?: string | undefined;
2491
2491
  assignment?: {
2492
- id: string;
2493
2492
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2493
+ id: string;
2494
+ leadId: string;
2494
2495
  agentId: string | null;
2495
2496
  createdAt: string;
2496
2497
  updatedAt: string;
2497
- leadId: string;
2498
2498
  assignedAt: string;
2499
2499
  assignedBy: string | null;
2500
2500
  companyId: string | null;
2501
+ lead?: {
2502
+ name: string;
2503
+ phoneNumber: string;
2504
+ } | undefined;
2501
2505
  agent?: {
2502
2506
  id: string;
2503
2507
  firstName: string;
2504
2508
  lastName: string;
2505
2509
  email: string;
2506
2510
  phoneNumbers: {
2507
- id: string;
2508
2511
  phoneNumber: string;
2512
+ id: string;
2509
2513
  isPrimary: boolean;
2510
2514
  description?: string | null | undefined;
2511
2515
  }[];
@@ -2513,8 +2517,8 @@ export declare const callHistoryContract: {
2513
2517
  updatedAt: string;
2514
2518
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2515
2519
  office?: {
2516
- id: string;
2517
2520
  name: string;
2521
+ id: string;
2518
2522
  } | null | undefined;
2519
2523
  canImpersonateUsers?: {
2520
2524
  id: string;
@@ -2522,13 +2526,9 @@ export declare const callHistoryContract: {
2522
2526
  lastName: string;
2523
2527
  }[] | undefined;
2524
2528
  } | undefined;
2525
- lead?: {
2526
- phoneNumber: string;
2527
- name: string;
2528
- } | undefined;
2529
2529
  company?: {
2530
- id: string;
2531
2530
  name: string;
2531
+ id: string;
2532
2532
  createdAt: string;
2533
2533
  updatedAt: string;
2534
2534
  } | null | undefined;
@@ -2541,20 +2541,24 @@ export declare const callHistoryContract: {
2541
2541
  notes: string | null;
2542
2542
  callType: CallType;
2543
2543
  assignmentId: string;
2544
- ratingWeight: number;
2545
2544
  leadSource: LeadSource;
2546
- agentId?: string | undefined;
2545
+ ratingWeight: number;
2547
2546
  leadId?: string | undefined;
2547
+ agentId?: string | undefined;
2548
2548
  assignment?: {
2549
- id: string;
2550
2549
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2550
+ id: string;
2551
+ leadId: string;
2551
2552
  agentId: string | null;
2552
2553
  createdAt: string | Date;
2553
2554
  updatedAt: string | Date;
2554
- leadId: string;
2555
2555
  assignedAt: string | Date;
2556
2556
  assignedBy: string | null;
2557
2557
  companyId: string | null;
2558
+ lead?: {
2559
+ name: string;
2560
+ phoneNumber: string;
2561
+ } | undefined;
2558
2562
  agent?: {
2559
2563
  id: string;
2560
2564
  firstName: string;
@@ -2563,15 +2567,15 @@ export declare const callHistoryContract: {
2563
2567
  createdAt: string | Date;
2564
2568
  updatedAt: string | Date;
2565
2569
  phoneNumbers?: {
2566
- id: string;
2567
2570
  phoneNumber: string;
2571
+ id: string;
2568
2572
  description?: string | null | undefined;
2569
2573
  isPrimary?: boolean | undefined;
2570
2574
  }[] | undefined;
2571
2575
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2572
2576
  office?: {
2573
- id: string;
2574
2577
  name: string;
2578
+ id: string;
2575
2579
  } | null | undefined;
2576
2580
  canImpersonateUsers?: {
2577
2581
  id: string;
@@ -2579,13 +2583,9 @@ export declare const callHistoryContract: {
2579
2583
  lastName: string;
2580
2584
  }[] | undefined;
2581
2585
  } | undefined;
2582
- lead?: {
2583
- phoneNumber: string;
2584
- name: string;
2585
- } | undefined;
2586
2586
  company?: {
2587
- id: string;
2588
2587
  name: string;
2588
+ id: string;
2589
2589
  createdAt: string | Date;
2590
2590
  updatedAt: string | Date;
2591
2591
  } | null | undefined;
@@ -2755,11 +2755,11 @@ export declare const callHistoryContract: {
2755
2755
  name: z.ZodString;
2756
2756
  phoneNumber: z.ZodString;
2757
2757
  }, "strip", z.ZodTypeAny, {
2758
- phoneNumber: string;
2759
2758
  name: string;
2760
- }, {
2761
2759
  phoneNumber: string;
2760
+ }, {
2762
2761
  name: string;
2762
+ phoneNumber: string;
2763
2763
  }>>;
2764
2764
  agentId: z.ZodNullable<z.ZodString>;
2765
2765
  agent: z.ZodOptional<z.ZodObject<{
@@ -2773,13 +2773,13 @@ export declare const callHistoryContract: {
2773
2773
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2774
2774
  isPrimary: z.ZodDefault<z.ZodBoolean>;
2775
2775
  }, "strip", z.ZodTypeAny, {
2776
- id: string;
2777
2776
  phoneNumber: string;
2777
+ id: string;
2778
2778
  isPrimary: boolean;
2779
2779
  description?: string | null | undefined;
2780
2780
  }, {
2781
- id: string;
2782
2781
  phoneNumber: string;
2782
+ id: string;
2783
2783
  description?: string | null | undefined;
2784
2784
  isPrimary?: boolean | undefined;
2785
2785
  }>, "many">>>;
@@ -2788,11 +2788,11 @@ export declare const callHistoryContract: {
2788
2788
  id: z.ZodString;
2789
2789
  name: z.ZodString;
2790
2790
  }, "strip", z.ZodTypeAny, {
2791
- id: string;
2792
2791
  name: string;
2793
- }, {
2794
2792
  id: string;
2793
+ }, {
2795
2794
  name: string;
2795
+ id: string;
2796
2796
  }>>>;
2797
2797
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2798
2798
  id: z.ZodString;
@@ -2815,8 +2815,8 @@ export declare const callHistoryContract: {
2815
2815
  lastName: string;
2816
2816
  email: string;
2817
2817
  phoneNumbers: {
2818
- id: string;
2819
2818
  phoneNumber: string;
2819
+ id: string;
2820
2820
  isPrimary: boolean;
2821
2821
  description?: string | null | undefined;
2822
2822
  }[];
@@ -2824,8 +2824,8 @@ export declare const callHistoryContract: {
2824
2824
  updatedAt: string;
2825
2825
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2826
2826
  office?: {
2827
- id: string;
2828
2827
  name: string;
2828
+ id: string;
2829
2829
  } | null | undefined;
2830
2830
  canImpersonateUsers?: {
2831
2831
  id: string;
@@ -2840,15 +2840,15 @@ export declare const callHistoryContract: {
2840
2840
  createdAt: string | Date;
2841
2841
  updatedAt: string | Date;
2842
2842
  phoneNumbers?: {
2843
- id: string;
2844
2843
  phoneNumber: string;
2844
+ id: string;
2845
2845
  description?: string | null | undefined;
2846
2846
  isPrimary?: boolean | undefined;
2847
2847
  }[] | undefined;
2848
2848
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2849
2849
  office?: {
2850
- id: string;
2851
2850
  name: string;
2851
+ id: string;
2852
2852
  } | null | undefined;
2853
2853
  canImpersonateUsers?: {
2854
2854
  id: string;
@@ -2866,36 +2866,40 @@ export declare const callHistoryContract: {
2866
2866
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2867
2867
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2868
2868
  }, "strip", z.ZodTypeAny, {
2869
- id: string;
2870
2869
  name: string;
2870
+ id: string;
2871
2871
  createdAt: string;
2872
2872
  updatedAt: string;
2873
2873
  }, {
2874
- id: string;
2875
2874
  name: string;
2875
+ id: string;
2876
2876
  createdAt: string | Date;
2877
2877
  updatedAt: string | Date;
2878
2878
  }>>>;
2879
2879
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2880
2880
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2881
2881
  }, "strip", z.ZodTypeAny, {
2882
- id: string;
2883
2882
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2883
+ id: string;
2884
+ leadId: string;
2884
2885
  agentId: string | null;
2885
2886
  createdAt: string;
2886
2887
  updatedAt: string;
2887
- leadId: string;
2888
2888
  assignedAt: string;
2889
2889
  assignedBy: string | null;
2890
2890
  companyId: string | null;
2891
+ lead?: {
2892
+ name: string;
2893
+ phoneNumber: string;
2894
+ } | undefined;
2891
2895
  agent?: {
2892
2896
  id: string;
2893
2897
  firstName: string;
2894
2898
  lastName: string;
2895
2899
  email: string;
2896
2900
  phoneNumbers: {
2897
- id: string;
2898
2901
  phoneNumber: string;
2902
+ id: string;
2899
2903
  isPrimary: boolean;
2900
2904
  description?: string | null | undefined;
2901
2905
  }[];
@@ -2903,8 +2907,8 @@ export declare const callHistoryContract: {
2903
2907
  updatedAt: string;
2904
2908
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2905
2909
  office?: {
2906
- id: string;
2907
2910
  name: string;
2911
+ id: string;
2908
2912
  } | null | undefined;
2909
2913
  canImpersonateUsers?: {
2910
2914
  id: string;
@@ -2912,26 +2916,26 @@ export declare const callHistoryContract: {
2912
2916
  lastName: string;
2913
2917
  }[] | undefined;
2914
2918
  } | undefined;
2915
- lead?: {
2916
- phoneNumber: string;
2917
- name: string;
2918
- } | undefined;
2919
2919
  company?: {
2920
- id: string;
2921
2920
  name: string;
2921
+ id: string;
2922
2922
  createdAt: string;
2923
2923
  updatedAt: string;
2924
2924
  } | null | undefined;
2925
2925
  }, {
2926
- id: string;
2927
2926
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2927
+ id: string;
2928
+ leadId: string;
2928
2929
  agentId: string | null;
2929
2930
  createdAt: string | Date;
2930
2931
  updatedAt: string | Date;
2931
- leadId: string;
2932
2932
  assignedAt: string | Date;
2933
2933
  assignedBy: string | null;
2934
2934
  companyId: string | null;
2935
+ lead?: {
2936
+ name: string;
2937
+ phoneNumber: string;
2938
+ } | undefined;
2935
2939
  agent?: {
2936
2940
  id: string;
2937
2941
  firstName: string;
@@ -2940,15 +2944,15 @@ export declare const callHistoryContract: {
2940
2944
  createdAt: string | Date;
2941
2945
  updatedAt: string | Date;
2942
2946
  phoneNumbers?: {
2943
- id: string;
2944
2947
  phoneNumber: string;
2948
+ id: string;
2945
2949
  description?: string | null | undefined;
2946
2950
  isPrimary?: boolean | undefined;
2947
2951
  }[] | undefined;
2948
2952
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2949
2953
  office?: {
2950
- id: string;
2951
2954
  name: string;
2955
+ id: string;
2952
2956
  } | null | undefined;
2953
2957
  canImpersonateUsers?: {
2954
2958
  id: string;
@@ -2956,13 +2960,9 @@ export declare const callHistoryContract: {
2956
2960
  lastName: string;
2957
2961
  }[] | undefined;
2958
2962
  } | undefined;
2959
- lead?: {
2960
- phoneNumber: string;
2961
- name: string;
2962
- } | undefined;
2963
2963
  company?: {
2964
- id: string;
2965
2964
  name: string;
2965
+ id: string;
2966
2966
  createdAt: string | Date;
2967
2967
  updatedAt: string | Date;
2968
2968
  } | null | undefined;
@@ -2982,28 +2982,32 @@ export declare const callHistoryContract: {
2982
2982
  notes: string | null;
2983
2983
  callType: CallType;
2984
2984
  assignmentId: string;
2985
- ratingWeight: number;
2986
2985
  leadSource: LeadSource;
2987
- agentId?: string | undefined;
2986
+ ratingWeight: number;
2988
2987
  leadId?: string | undefined;
2988
+ agentId?: string | undefined;
2989
2989
  assignment?: {
2990
- id: string;
2991
2990
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2991
+ id: string;
2992
+ leadId: string;
2992
2993
  agentId: string | null;
2993
2994
  createdAt: string;
2994
2995
  updatedAt: string;
2995
- leadId: string;
2996
2996
  assignedAt: string;
2997
2997
  assignedBy: string | null;
2998
2998
  companyId: string | null;
2999
+ lead?: {
3000
+ name: string;
3001
+ phoneNumber: string;
3002
+ } | undefined;
2999
3003
  agent?: {
3000
3004
  id: string;
3001
3005
  firstName: string;
3002
3006
  lastName: string;
3003
3007
  email: string;
3004
3008
  phoneNumbers: {
3005
- id: string;
3006
3009
  phoneNumber: string;
3010
+ id: string;
3007
3011
  isPrimary: boolean;
3008
3012
  description?: string | null | undefined;
3009
3013
  }[];
@@ -3011,8 +3015,8 @@ export declare const callHistoryContract: {
3011
3015
  updatedAt: string;
3012
3016
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
3013
3017
  office?: {
3014
- id: string;
3015
3018
  name: string;
3019
+ id: string;
3016
3020
  } | null | undefined;
3017
3021
  canImpersonateUsers?: {
3018
3022
  id: string;
@@ -3020,13 +3024,9 @@ export declare const callHistoryContract: {
3020
3024
  lastName: string;
3021
3025
  }[] | undefined;
3022
3026
  } | undefined;
3023
- lead?: {
3024
- phoneNumber: string;
3025
- name: string;
3026
- } | undefined;
3027
3027
  company?: {
3028
- id: string;
3029
3028
  name: string;
3029
+ id: string;
3030
3030
  createdAt: string;
3031
3031
  updatedAt: string;
3032
3032
  } | null | undefined;
@@ -3039,20 +3039,24 @@ export declare const callHistoryContract: {
3039
3039
  notes: string | null;
3040
3040
  callType: CallType;
3041
3041
  assignmentId: string;
3042
- ratingWeight: number;
3043
3042
  leadSource: LeadSource;
3044
- agentId?: string | undefined;
3043
+ ratingWeight: number;
3045
3044
  leadId?: string | undefined;
3045
+ agentId?: string | undefined;
3046
3046
  assignment?: {
3047
- id: string;
3048
3047
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3048
+ id: string;
3049
+ leadId: string;
3049
3050
  agentId: string | null;
3050
3051
  createdAt: string | Date;
3051
3052
  updatedAt: string | Date;
3052
- leadId: string;
3053
3053
  assignedAt: string | Date;
3054
3054
  assignedBy: string | null;
3055
3055
  companyId: string | null;
3056
+ lead?: {
3057
+ name: string;
3058
+ phoneNumber: string;
3059
+ } | undefined;
3056
3060
  agent?: {
3057
3061
  id: string;
3058
3062
  firstName: string;
@@ -3061,15 +3065,15 @@ export declare const callHistoryContract: {
3061
3065
  createdAt: string | Date;
3062
3066
  updatedAt: string | Date;
3063
3067
  phoneNumbers?: {
3064
- id: string;
3065
3068
  phoneNumber: string;
3069
+ id: string;
3066
3070
  description?: string | null | undefined;
3067
3071
  isPrimary?: boolean | undefined;
3068
3072
  }[] | undefined;
3069
3073
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
3070
3074
  office?: {
3071
- id: string;
3072
3075
  name: string;
3076
+ id: string;
3073
3077
  } | null | undefined;
3074
3078
  canImpersonateUsers?: {
3075
3079
  id: string;
@@ -3077,13 +3081,9 @@ export declare const callHistoryContract: {
3077
3081
  lastName: string;
3078
3082
  }[] | undefined;
3079
3083
  } | undefined;
3080
- lead?: {
3081
- phoneNumber: string;
3082
- name: string;
3083
- } | undefined;
3084
3084
  company?: {
3085
- id: string;
3086
3085
  name: string;
3086
+ id: string;
3087
3087
  createdAt: string | Date;
3088
3088
  updatedAt: string | Date;
3089
3089
  } | null | undefined;