@dakkitor/api-contracts 1.1.146 → 1.1.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/abilities/first-agent.abilities.json +39 -0
  2. package/dist/abilities/second-agent.abilities.json +36 -0
  3. package/dist/abilities/team-leads.json +30 -0
  4. package/dist/actives/actives.contract.d.ts +8207 -7871
  5. package/dist/actives/actives.contract.d.ts.map +1 -1
  6. package/dist/agent-client-links/agent-client-links.contract.d.ts +973 -973
  7. package/dist/auth/auth.contract.d.ts +12 -12
  8. package/dist/bookings/bookings.contract.d.ts +12034 -11506
  9. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  10. package/dist/call-history/call-history.contract.d.ts +620 -620
  11. package/dist/client-contacts/client-contacts.contract.d.ts +277 -277
  12. package/dist/clients/clients.contract.d.ts +173 -173
  13. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1868 -1868
  14. package/dist/collaborations/collaborations.contract.d.ts +1548 -1548
  15. package/dist/common/common-schemas.d.ts +4 -4
  16. package/dist/common/common-schemas.d.ts.map +1 -1
  17. package/dist/common/common-schemas.js +10 -8
  18. package/dist/companies/companies.contract.d.ts +26 -26
  19. package/dist/crews/crews.contract.d.ts +2549 -0
  20. package/dist/crews/crews.contract.d.ts.map +1 -0
  21. package/dist/crews/crews.contract.js +203 -0
  22. package/dist/cron-executions/cron-executions.contract.d.ts +26 -26
  23. package/dist/curated-workers/curated-workers.contract.d.ts +517 -517
  24. package/dist/dashboards/dashboard-widgets.contract.d.ts +122 -122
  25. package/dist/dashboards/dashboard.contract.d.ts +26 -26
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +3 -0
  29. package/dist/jobs/jobs.contract.d.ts +4309 -4309
  30. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +26 -26
  31. package/dist/lead-assignments/lead-assignments.contract.d.ts +498 -498
  32. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +131 -131
  33. package/dist/leads/leads.contract.d.ts +184 -184
  34. package/dist/locations/locations.contract.d.ts +28 -28
  35. package/dist/own-research/own-research.contract.d.ts +728 -728
  36. package/dist/users/users.contract.d.ts +154 -154
  37. package/dist/workers/workers.contract.d.ts +6476 -4566
  38. package/dist/workers/workers.contract.d.ts.map +1 -1
  39. package/dist/workers/workers.contract.js +217 -65
  40. package/package.json +1 -1
@@ -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
- name: string;
43
42
  phoneNumber: string;
44
- }, {
45
43
  name: string;
44
+ }, {
46
45
  phoneNumber: string;
46
+ name: string;
47
47
  }>>;
48
48
  agentId: z.ZodNullable<z.ZodString>;
49
49
  agent: z.ZodOptional<z.ZodObject<{
@@ -95,17 +95,17 @@ export declare const CallHistorySchema: z.ZodObject<{
95
95
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  id: string;
98
- updatedAt: string;
99
- createdAt: string;
100
- email: string;
101
98
  firstName: string;
102
99
  lastName: string;
100
+ email: string;
103
101
  phoneNumbers: {
104
102
  id: string;
105
103
  phoneNumber: string;
106
104
  isPrimary: boolean;
107
105
  description?: string | null | undefined;
108
106
  }[];
107
+ createdAt: string;
108
+ updatedAt: string;
109
109
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
110
110
  office?: {
111
111
  id: string;
@@ -118,22 +118,22 @@ export declare const CallHistorySchema: z.ZodObject<{
118
118
  }[] | undefined;
119
119
  }, {
120
120
  id: string;
121
- updatedAt: string | Date;
122
- createdAt: string | Date;
123
- email: string;
124
121
  firstName: string;
125
122
  lastName: string;
126
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
127
- office?: {
128
- id: string;
129
- name: string;
130
- } | null | undefined;
123
+ email: string;
124
+ createdAt: string | Date;
125
+ updatedAt: string | Date;
131
126
  phoneNumbers?: {
132
127
  id: string;
133
128
  phoneNumber: string;
134
129
  description?: string | null | undefined;
135
130
  isPrimary?: boolean | undefined;
136
131
  }[] | undefined;
132
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
133
+ office?: {
134
+ id: string;
135
+ name: string;
136
+ } | null | undefined;
137
137
  canImpersonateUsers?: {
138
138
  id: string;
139
139
  firstName: string;
@@ -152,45 +152,39 @@ export declare const CallHistorySchema: z.ZodObject<{
152
152
  }, "strip", z.ZodTypeAny, {
153
153
  id: string;
154
154
  name: string;
155
- updatedAt: string;
156
155
  createdAt: string;
156
+ updatedAt: string;
157
157
  }, {
158
158
  id: string;
159
159
  name: string;
160
- updatedAt: string | Date;
161
160
  createdAt: string | Date;
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
166
  id: string;
167
- updatedAt: string;
168
- createdAt: string;
169
167
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
170
- companyId: string | null;
171
168
  agentId: string | null;
169
+ createdAt: string;
170
+ updatedAt: string;
172
171
  leadId: string;
173
172
  assignedAt: string;
174
173
  assignedBy: string | null;
175
- company?: {
176
- id: string;
177
- name: string;
178
- updatedAt: string;
179
- createdAt: string;
180
- } | null | undefined;
174
+ companyId: string | null;
181
175
  agent?: {
182
176
  id: string;
183
- updatedAt: string;
184
- createdAt: string;
185
- email: string;
186
177
  firstName: string;
187
178
  lastName: string;
179
+ email: string;
188
180
  phoneNumbers: {
189
181
  id: string;
190
182
  phoneNumber: string;
191
183
  isPrimary: boolean;
192
184
  description?: string | null | undefined;
193
185
  }[];
186
+ createdAt: string;
187
+ updatedAt: string;
194
188
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
195
189
  office?: {
196
190
  id: string;
@@ -203,43 +197,43 @@ export declare const CallHistorySchema: z.ZodObject<{
203
197
  }[] | undefined;
204
198
  } | undefined;
205
199
  lead?: {
206
- name: string;
207
200
  phoneNumber: string;
201
+ name: string;
208
202
  } | undefined;
203
+ company?: {
204
+ id: string;
205
+ name: string;
206
+ createdAt: string;
207
+ updatedAt: string;
208
+ } | null | undefined;
209
209
  }, {
210
210
  id: string;
211
- updatedAt: string | Date;
212
- createdAt: string | Date;
213
211
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
214
- companyId: string | null;
215
212
  agentId: string | null;
213
+ createdAt: string | Date;
214
+ updatedAt: string | Date;
216
215
  leadId: string;
217
216
  assignedAt: string | Date;
218
217
  assignedBy: string | null;
219
- company?: {
220
- id: string;
221
- name: string;
222
- updatedAt: string | Date;
223
- createdAt: string | Date;
224
- } | null | undefined;
218
+ companyId: string | null;
225
219
  agent?: {
226
220
  id: string;
227
- updatedAt: string | Date;
228
- createdAt: string | Date;
229
- email: string;
230
221
  firstName: string;
231
222
  lastName: string;
232
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
233
- office?: {
234
- id: string;
235
- name: string;
236
- } | null | undefined;
223
+ email: string;
224
+ createdAt: string | Date;
225
+ updatedAt: string | Date;
237
226
  phoneNumbers?: {
238
227
  id: string;
239
228
  phoneNumber: string;
240
229
  description?: string | null | undefined;
241
230
  isPrimary?: boolean | undefined;
242
231
  }[] | undefined;
232
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
233
+ office?: {
234
+ id: string;
235
+ name: string;
236
+ } | null | undefined;
243
237
  canImpersonateUsers?: {
244
238
  id: string;
245
239
  firstName: string;
@@ -247,9 +241,15 @@ export declare const CallHistorySchema: z.ZodObject<{
247
241
  }[] | undefined;
248
242
  } | undefined;
249
243
  lead?: {
250
- name: string;
251
244
  phoneNumber: string;
245
+ name: string;
252
246
  } | undefined;
247
+ company?: {
248
+ id: string;
249
+ name: string;
250
+ createdAt: string | Date;
251
+ updatedAt: string | Date;
252
+ } | null | undefined;
253
253
  }>>>;
254
254
  callType: z.ZodNativeEnum<typeof CallType>;
255
255
  leadSource: z.ZodNativeEnum<typeof LeadSource>;
@@ -260,45 +260,39 @@ export declare const CallHistorySchema: z.ZodObject<{
260
260
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
261
261
  }, "strip", z.ZodTypeAny, {
262
262
  id: string;
263
- updatedAt: string;
264
263
  createdAt: string;
265
- assignmentId: string;
264
+ updatedAt: string;
266
265
  rating: CallRating;
267
- callType: CallType;
268
- leadSource: LeadSource;
269
266
  notes: string | null;
267
+ callType: CallType;
268
+ assignmentId: string;
270
269
  ratingWeight: number;
270
+ leadSource: LeadSource;
271
271
  agentId?: string | undefined;
272
272
  leadId?: string | undefined;
273
273
  assignment?: {
274
274
  id: string;
275
- updatedAt: string;
276
- createdAt: string;
277
275
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
278
- companyId: string | null;
279
276
  agentId: string | null;
277
+ createdAt: string;
278
+ updatedAt: string;
280
279
  leadId: string;
281
280
  assignedAt: string;
282
281
  assignedBy: string | null;
283
- company?: {
284
- id: string;
285
- name: string;
286
- updatedAt: string;
287
- createdAt: string;
288
- } | null | undefined;
282
+ companyId: string | null;
289
283
  agent?: {
290
284
  id: string;
291
- updatedAt: string;
292
- createdAt: string;
293
- email: string;
294
285
  firstName: string;
295
286
  lastName: string;
287
+ email: string;
296
288
  phoneNumbers: {
297
289
  id: string;
298
290
  phoneNumber: string;
299
291
  isPrimary: boolean;
300
292
  description?: string | null | undefined;
301
293
  }[];
294
+ createdAt: string;
295
+ updatedAt: string;
302
296
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
303
297
  office?: {
304
298
  id: string;
@@ -311,56 +305,56 @@ export declare const CallHistorySchema: z.ZodObject<{
311
305
  }[] | undefined;
312
306
  } | undefined;
313
307
  lead?: {
314
- name: string;
315
308
  phoneNumber: string;
309
+ name: string;
316
310
  } | undefined;
311
+ company?: {
312
+ id: string;
313
+ name: string;
314
+ createdAt: string;
315
+ updatedAt: string;
316
+ } | null | undefined;
317
317
  } | null | undefined;
318
318
  }, {
319
319
  id: string;
320
- updatedAt: string | Date;
321
320
  createdAt: string | Date;
322
- assignmentId: string;
321
+ updatedAt: string | Date;
323
322
  rating: CallRating;
324
- callType: CallType;
325
- leadSource: LeadSource;
326
323
  notes: string | null;
324
+ callType: CallType;
325
+ assignmentId: string;
327
326
  ratingWeight: number;
327
+ leadSource: LeadSource;
328
328
  agentId?: string | undefined;
329
329
  leadId?: string | undefined;
330
330
  assignment?: {
331
331
  id: string;
332
- updatedAt: string | Date;
333
- createdAt: string | Date;
334
332
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
335
- companyId: string | null;
336
333
  agentId: string | null;
334
+ createdAt: string | Date;
335
+ updatedAt: string | Date;
337
336
  leadId: string;
338
337
  assignedAt: string | Date;
339
338
  assignedBy: string | null;
340
- company?: {
341
- id: string;
342
- name: string;
343
- updatedAt: string | Date;
344
- createdAt: string | Date;
345
- } | null | undefined;
339
+ companyId: string | null;
346
340
  agent?: {
347
341
  id: string;
348
- updatedAt: string | Date;
349
- createdAt: string | Date;
350
- email: string;
351
342
  firstName: string;
352
343
  lastName: string;
353
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
354
- office?: {
355
- id: string;
356
- name: string;
357
- } | null | undefined;
344
+ email: string;
345
+ createdAt: string | Date;
346
+ updatedAt: string | Date;
358
347
  phoneNumbers?: {
359
348
  id: string;
360
349
  phoneNumber: string;
361
350
  description?: string | null | undefined;
362
351
  isPrimary?: boolean | undefined;
363
352
  }[] | undefined;
353
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
354
+ office?: {
355
+ id: string;
356
+ name: string;
357
+ } | null | undefined;
364
358
  canImpersonateUsers?: {
365
359
  id: string;
366
360
  firstName: string;
@@ -368,9 +362,15 @@ export declare const CallHistorySchema: z.ZodObject<{
368
362
  }[] | undefined;
369
363
  } | undefined;
370
364
  lead?: {
371
- name: string;
372
365
  phoneNumber: string;
366
+ name: string;
373
367
  } | undefined;
368
+ company?: {
369
+ id: string;
370
+ name: string;
371
+ createdAt: string | Date;
372
+ updatedAt: string | Date;
373
+ } | null | undefined;
374
374
  } | null | undefined;
375
375
  }>;
376
376
  export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
@@ -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
- name: string;
390
389
  phoneNumber: string;
391
- }, {
392
390
  name: string;
391
+ }, {
393
392
  phoneNumber: string;
393
+ name: string;
394
394
  }>>;
395
395
  agentId: z.ZodNullable<z.ZodString>;
396
396
  agent: z.ZodOptional<z.ZodObject<{
@@ -442,17 +442,17 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
442
442
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
443
443
  }, "strip", z.ZodTypeAny, {
444
444
  id: string;
445
- updatedAt: string;
446
- createdAt: string;
447
- email: string;
448
445
  firstName: string;
449
446
  lastName: string;
447
+ email: string;
450
448
  phoneNumbers: {
451
449
  id: string;
452
450
  phoneNumber: string;
453
451
  isPrimary: boolean;
454
452
  description?: string | null | undefined;
455
453
  }[];
454
+ createdAt: string;
455
+ updatedAt: string;
456
456
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
457
457
  office?: {
458
458
  id: string;
@@ -465,22 +465,22 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
465
465
  }[] | undefined;
466
466
  }, {
467
467
  id: string;
468
- updatedAt: string | Date;
469
- createdAt: string | Date;
470
- email: string;
471
468
  firstName: string;
472
469
  lastName: string;
473
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
474
- office?: {
475
- id: string;
476
- name: string;
477
- } | null | undefined;
470
+ email: string;
471
+ createdAt: string | Date;
472
+ updatedAt: string | Date;
478
473
  phoneNumbers?: {
479
474
  id: string;
480
475
  phoneNumber: string;
481
476
  description?: string | null | undefined;
482
477
  isPrimary?: boolean | undefined;
483
478
  }[] | undefined;
479
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
480
+ office?: {
481
+ id: string;
482
+ name: string;
483
+ } | null | undefined;
484
484
  canImpersonateUsers?: {
485
485
  id: string;
486
486
  firstName: string;
@@ -499,45 +499,39 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
499
499
  }, "strip", z.ZodTypeAny, {
500
500
  id: string;
501
501
  name: string;
502
- updatedAt: string;
503
502
  createdAt: string;
503
+ updatedAt: string;
504
504
  }, {
505
505
  id: string;
506
506
  name: string;
507
- updatedAt: string | Date;
508
507
  createdAt: string | Date;
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
513
  id: string;
514
- updatedAt: string;
515
- createdAt: string;
516
514
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
517
- companyId: string | null;
518
515
  agentId: string | null;
516
+ createdAt: string;
517
+ updatedAt: string;
519
518
  leadId: string;
520
519
  assignedAt: string;
521
520
  assignedBy: string | null;
522
- company?: {
523
- id: string;
524
- name: string;
525
- updatedAt: string;
526
- createdAt: string;
527
- } | null | undefined;
521
+ companyId: string | null;
528
522
  agent?: {
529
523
  id: string;
530
- updatedAt: string;
531
- createdAt: string;
532
- email: string;
533
524
  firstName: string;
534
525
  lastName: string;
526
+ email: string;
535
527
  phoneNumbers: {
536
528
  id: string;
537
529
  phoneNumber: string;
538
530
  isPrimary: boolean;
539
531
  description?: string | null | undefined;
540
532
  }[];
533
+ createdAt: string;
534
+ updatedAt: string;
541
535
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
542
536
  office?: {
543
537
  id: string;
@@ -550,43 +544,43 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
550
544
  }[] | undefined;
551
545
  } | undefined;
552
546
  lead?: {
553
- name: string;
554
547
  phoneNumber: string;
548
+ name: string;
555
549
  } | undefined;
550
+ company?: {
551
+ id: string;
552
+ name: string;
553
+ createdAt: string;
554
+ updatedAt: string;
555
+ } | null | undefined;
556
556
  }, {
557
557
  id: string;
558
- updatedAt: string | Date;
559
- createdAt: string | Date;
560
558
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
561
- companyId: string | null;
562
559
  agentId: string | null;
560
+ createdAt: string | Date;
561
+ updatedAt: string | Date;
563
562
  leadId: string;
564
563
  assignedAt: string | Date;
565
564
  assignedBy: string | null;
566
- company?: {
567
- id: string;
568
- name: string;
569
- updatedAt: string | Date;
570
- createdAt: string | Date;
571
- } | null | undefined;
565
+ companyId: string | null;
572
566
  agent?: {
573
567
  id: string;
574
- updatedAt: string | Date;
575
- createdAt: string | Date;
576
- email: string;
577
568
  firstName: string;
578
569
  lastName: string;
579
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
580
- office?: {
581
- id: string;
582
- name: string;
583
- } | null | undefined;
570
+ email: string;
571
+ createdAt: string | Date;
572
+ updatedAt: string | Date;
584
573
  phoneNumbers?: {
585
574
  id: string;
586
575
  phoneNumber: string;
587
576
  description?: string | null | undefined;
588
577
  isPrimary?: boolean | undefined;
589
578
  }[] | undefined;
579
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
580
+ office?: {
581
+ id: string;
582
+ name: string;
583
+ } | null | undefined;
590
584
  canImpersonateUsers?: {
591
585
  id: string;
592
586
  firstName: string;
@@ -594,9 +588,15 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
594
588
  }[] | undefined;
595
589
  } | undefined;
596
590
  lead?: {
597
- name: string;
598
591
  phoneNumber: string;
592
+ name: string;
599
593
  } | undefined;
594
+ company?: {
595
+ id: string;
596
+ name: string;
597
+ createdAt: string | Date;
598
+ updatedAt: string | Date;
599
+ } | null | undefined;
600
600
  }>>>;
601
601
  callType: z.ZodNativeEnum<typeof CallType>;
602
602
  leadSource: z.ZodNativeEnum<typeof LeadSource>;
@@ -607,45 +607,39 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
607
607
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
608
608
  }, "strip", z.ZodTypeAny, {
609
609
  id: string;
610
- updatedAt: string;
611
610
  createdAt: string;
612
- assignmentId: string;
611
+ updatedAt: string;
613
612
  rating: CallRating;
614
- callType: CallType;
615
- leadSource: LeadSource;
616
613
  notes: string | null;
614
+ callType: CallType;
615
+ assignmentId: string;
617
616
  ratingWeight: number;
617
+ leadSource: LeadSource;
618
618
  agentId?: string | undefined;
619
619
  leadId?: string | undefined;
620
620
  assignment?: {
621
621
  id: string;
622
- updatedAt: string;
623
- createdAt: string;
624
622
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
625
- companyId: string | null;
626
623
  agentId: string | null;
624
+ createdAt: string;
625
+ updatedAt: string;
627
626
  leadId: string;
628
627
  assignedAt: string;
629
628
  assignedBy: string | null;
630
- company?: {
631
- id: string;
632
- name: string;
633
- updatedAt: string;
634
- createdAt: string;
635
- } | null | undefined;
629
+ companyId: string | null;
636
630
  agent?: {
637
631
  id: string;
638
- updatedAt: string;
639
- createdAt: string;
640
- email: string;
641
632
  firstName: string;
642
633
  lastName: string;
634
+ email: string;
643
635
  phoneNumbers: {
644
636
  id: string;
645
637
  phoneNumber: string;
646
638
  isPrimary: boolean;
647
639
  description?: string | null | undefined;
648
640
  }[];
641
+ createdAt: string;
642
+ updatedAt: string;
649
643
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
650
644
  office?: {
651
645
  id: string;
@@ -658,56 +652,56 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
658
652
  }[] | undefined;
659
653
  } | undefined;
660
654
  lead?: {
661
- name: string;
662
655
  phoneNumber: string;
656
+ name: string;
663
657
  } | undefined;
658
+ company?: {
659
+ id: string;
660
+ name: string;
661
+ createdAt: string;
662
+ updatedAt: string;
663
+ } | null | undefined;
664
664
  } | null | undefined;
665
665
  }, {
666
666
  id: string;
667
- updatedAt: string | Date;
668
667
  createdAt: string | Date;
669
- assignmentId: string;
668
+ updatedAt: string | Date;
670
669
  rating: CallRating;
671
- callType: CallType;
672
- leadSource: LeadSource;
673
670
  notes: string | null;
671
+ callType: CallType;
672
+ assignmentId: string;
674
673
  ratingWeight: number;
674
+ leadSource: LeadSource;
675
675
  agentId?: string | undefined;
676
676
  leadId?: string | undefined;
677
677
  assignment?: {
678
678
  id: string;
679
- updatedAt: string | Date;
680
- createdAt: string | Date;
681
679
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
682
- companyId: string | null;
683
680
  agentId: string | null;
681
+ createdAt: string | Date;
682
+ updatedAt: string | Date;
684
683
  leadId: string;
685
684
  assignedAt: string | Date;
686
685
  assignedBy: string | null;
687
- company?: {
688
- id: string;
689
- name: string;
690
- updatedAt: string | Date;
691
- createdAt: string | Date;
692
- } | null | undefined;
686
+ companyId: string | null;
693
687
  agent?: {
694
688
  id: string;
695
- updatedAt: string | Date;
696
- createdAt: string | Date;
697
- email: string;
698
689
  firstName: string;
699
690
  lastName: string;
700
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
701
- office?: {
702
- id: string;
703
- name: string;
704
- } | null | undefined;
691
+ email: string;
692
+ createdAt: string | Date;
693
+ updatedAt: string | Date;
705
694
  phoneNumbers?: {
706
695
  id: string;
707
696
  phoneNumber: string;
708
697
  description?: string | null | undefined;
709
698
  isPrimary?: boolean | undefined;
710
699
  }[] | undefined;
700
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
701
+ office?: {
702
+ id: string;
703
+ name: string;
704
+ } | null | undefined;
711
705
  canImpersonateUsers?: {
712
706
  id: string;
713
707
  firstName: string;
@@ -715,9 +709,15 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
715
709
  }[] | undefined;
716
710
  } | undefined;
717
711
  lead?: {
718
- name: string;
719
712
  phoneNumber: string;
713
+ name: string;
720
714
  } | undefined;
715
+ company?: {
716
+ id: string;
717
+ name: string;
718
+ createdAt: string | Date;
719
+ updatedAt: string | Date;
720
+ } | null | undefined;
721
721
  } | null | undefined;
722
722
  }>, "many">;
723
723
  totalCount: z.ZodNumber;
@@ -729,45 +729,39 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
729
729
  limit: number;
730
730
  items: {
731
731
  id: string;
732
- updatedAt: string;
733
732
  createdAt: string;
734
- assignmentId: string;
733
+ updatedAt: string;
735
734
  rating: CallRating;
736
- callType: CallType;
737
- leadSource: LeadSource;
738
735
  notes: string | null;
736
+ callType: CallType;
737
+ assignmentId: string;
739
738
  ratingWeight: number;
739
+ leadSource: LeadSource;
740
740
  agentId?: string | undefined;
741
741
  leadId?: string | undefined;
742
742
  assignment?: {
743
743
  id: string;
744
- updatedAt: string;
745
- createdAt: string;
746
744
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
747
- companyId: string | null;
748
745
  agentId: string | null;
746
+ createdAt: string;
747
+ updatedAt: string;
749
748
  leadId: string;
750
749
  assignedAt: string;
751
750
  assignedBy: string | null;
752
- company?: {
753
- id: string;
754
- name: string;
755
- updatedAt: string;
756
- createdAt: string;
757
- } | null | undefined;
751
+ companyId: string | null;
758
752
  agent?: {
759
753
  id: string;
760
- updatedAt: string;
761
- createdAt: string;
762
- email: string;
763
754
  firstName: string;
764
755
  lastName: string;
756
+ email: string;
765
757
  phoneNumbers: {
766
758
  id: string;
767
759
  phoneNumber: string;
768
760
  isPrimary: boolean;
769
761
  description?: string | null | undefined;
770
762
  }[];
763
+ createdAt: string;
764
+ updatedAt: string;
771
765
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
772
766
  office?: {
773
767
  id: string;
@@ -780,9 +774,15 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
780
774
  }[] | undefined;
781
775
  } | undefined;
782
776
  lead?: {
783
- name: string;
784
777
  phoneNumber: string;
778
+ name: string;
785
779
  } | undefined;
780
+ company?: {
781
+ id: string;
782
+ name: string;
783
+ createdAt: string;
784
+ updatedAt: string;
785
+ } | null | undefined;
786
786
  } | null | undefined;
787
787
  }[];
788
788
  totalCount: number;
@@ -793,50 +793,44 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
793
793
  limit: number;
794
794
  items: {
795
795
  id: string;
796
- updatedAt: string | Date;
797
796
  createdAt: string | Date;
798
- assignmentId: string;
797
+ updatedAt: string | Date;
799
798
  rating: CallRating;
800
- callType: CallType;
801
- leadSource: LeadSource;
802
799
  notes: string | null;
800
+ callType: CallType;
801
+ assignmentId: string;
803
802
  ratingWeight: number;
803
+ leadSource: LeadSource;
804
804
  agentId?: string | undefined;
805
805
  leadId?: string | undefined;
806
806
  assignment?: {
807
807
  id: string;
808
- updatedAt: string | Date;
809
- createdAt: string | Date;
810
808
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
811
- companyId: string | null;
812
809
  agentId: string | null;
810
+ createdAt: string | Date;
811
+ updatedAt: string | Date;
813
812
  leadId: string;
814
813
  assignedAt: string | Date;
815
814
  assignedBy: string | null;
816
- company?: {
817
- id: string;
818
- name: string;
819
- updatedAt: string | Date;
820
- createdAt: string | Date;
821
- } | null | undefined;
815
+ companyId: string | null;
822
816
  agent?: {
823
817
  id: string;
824
- updatedAt: string | Date;
825
- createdAt: string | Date;
826
- email: string;
827
818
  firstName: string;
828
819
  lastName: string;
829
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
830
- office?: {
831
- id: string;
832
- name: string;
833
- } | null | undefined;
820
+ email: string;
821
+ createdAt: string | Date;
822
+ updatedAt: string | Date;
834
823
  phoneNumbers?: {
835
824
  id: string;
836
825
  phoneNumber: string;
837
826
  description?: string | null | undefined;
838
827
  isPrimary?: boolean | undefined;
839
828
  }[] | undefined;
829
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
830
+ office?: {
831
+ id: string;
832
+ name: string;
833
+ } | null | undefined;
840
834
  canImpersonateUsers?: {
841
835
  id: string;
842
836
  firstName: string;
@@ -844,9 +838,15 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
844
838
  }[] | undefined;
845
839
  } | undefined;
846
840
  lead?: {
847
- name: string;
848
841
  phoneNumber: string;
842
+ name: string;
849
843
  } | undefined;
844
+ company?: {
845
+ id: string;
846
+ name: string;
847
+ createdAt: string | Date;
848
+ updatedAt: string | Date;
849
+ } | null | undefined;
850
850
  } | null | undefined;
851
851
  }[];
852
852
  totalCount: number;
@@ -860,14 +860,14 @@ export declare const CreateCallHistorySchema: z.ZodObject<{
860
860
  notes: z.ZodOptional<z.ZodString>;
861
861
  callType: z.ZodNativeEnum<typeof CallType>;
862
862
  }, "strip", z.ZodTypeAny, {
863
- assignmentId: string;
864
863
  rating: CallRating;
865
864
  callType: CallType;
865
+ assignmentId: string;
866
866
  notes?: string | undefined;
867
867
  }, {
868
- assignmentId: string;
869
868
  rating: CallRating;
870
869
  callType: CallType;
870
+ assignmentId: string;
871
871
  notes?: string | undefined;
872
872
  }>;
873
873
  export declare const UpdateCallHistorySchema: z.ZodObject<{
@@ -913,42 +913,42 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
913
913
  sortBy: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof CallHistorySortableFields>>>;
914
914
  sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>>;
915
915
  }, "strip", z.ZodTypeAny, {
916
- page: number;
917
916
  limit: number;
917
+ page: number;
918
+ phoneNumber?: string | undefined;
919
+ agentId?: string | undefined;
918
920
  createdAt?: {
919
921
  from?: string | null | undefined;
920
922
  to?: string | null | undefined;
921
923
  } | null | undefined;
922
- companyId?: string | undefined;
923
- sortBy?: CallHistorySortableFields | undefined;
924
- sortOrder?: "ASC" | "DESC" | undefined;
925
- agentId?: string | undefined;
926
924
  rating?: {
927
925
  from?: CallRating | null | undefined;
928
926
  to?: CallRating | null | undefined;
929
927
  } | null | undefined;
930
928
  callType?: CallType | undefined;
929
+ companyId?: string | undefined;
930
+ sortBy?: CallHistorySortableFields | undefined;
931
+ sortOrder?: "ASC" | "DESC" | undefined;
931
932
  leadSource?: LeadSource | undefined;
932
- phoneNumber?: string | undefined;
933
933
  leadName?: string | undefined;
934
934
  }, {
935
+ phoneNumber?: string | undefined;
936
+ agentId?: string | undefined;
935
937
  createdAt?: {
936
938
  from?: string | null | undefined;
937
939
  to?: string | null | undefined;
938
940
  } | null | undefined;
939
- companyId?: string | undefined;
940
- sortBy?: CallHistorySortableFields | undefined;
941
- sortOrder?: "ASC" | "DESC" | undefined;
942
- page?: number | undefined;
943
- limit?: number | undefined;
944
- agentId?: string | undefined;
945
941
  rating?: {
946
942
  from?: unknown;
947
943
  to?: unknown;
948
944
  } | null | undefined;
949
945
  callType?: CallType | undefined;
946
+ companyId?: string | undefined;
947
+ limit?: number | undefined;
948
+ page?: number | undefined;
949
+ sortBy?: CallHistorySortableFields | undefined;
950
+ sortOrder?: "ASC" | "DESC" | undefined;
950
951
  leadSource?: LeadSource | undefined;
951
- phoneNumber?: string | undefined;
952
952
  leadName?: string | undefined;
953
953
  }>;
954
954
  export declare const CallHistoryStatsSchema: z.ZodObject<{
@@ -983,14 +983,14 @@ export declare const callHistoryContract: {
983
983
  notes: z.ZodOptional<z.ZodString>;
984
984
  callType: z.ZodNativeEnum<typeof CallType>;
985
985
  }, "strip", z.ZodTypeAny, {
986
- assignmentId: string;
987
986
  rating: CallRating;
988
987
  callType: CallType;
988
+ assignmentId: string;
989
989
  notes?: string | undefined;
990
990
  }, {
991
- assignmentId: string;
992
991
  rating: CallRating;
993
992
  callType: CallType;
993
+ assignmentId: string;
994
994
  notes?: string | undefined;
995
995
  }>;
996
996
  path: "/v2/call-history";
@@ -1107,11 +1107,11 @@ export declare const callHistoryContract: {
1107
1107
  name: z.ZodString;
1108
1108
  phoneNumber: z.ZodString;
1109
1109
  }, "strip", z.ZodTypeAny, {
1110
- name: string;
1111
1110
  phoneNumber: string;
1112
- }, {
1113
1111
  name: string;
1112
+ }, {
1114
1113
  phoneNumber: string;
1114
+ name: string;
1115
1115
  }>>;
1116
1116
  agentId: z.ZodNullable<z.ZodString>;
1117
1117
  agent: z.ZodOptional<z.ZodObject<{
@@ -1163,17 +1163,17 @@ export declare const callHistoryContract: {
1163
1163
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1164
1164
  }, "strip", z.ZodTypeAny, {
1165
1165
  id: string;
1166
- updatedAt: string;
1167
- createdAt: string;
1168
- email: string;
1169
1166
  firstName: string;
1170
1167
  lastName: string;
1168
+ email: string;
1171
1169
  phoneNumbers: {
1172
1170
  id: string;
1173
1171
  phoneNumber: string;
1174
1172
  isPrimary: boolean;
1175
1173
  description?: string | null | undefined;
1176
1174
  }[];
1175
+ createdAt: string;
1176
+ updatedAt: string;
1177
1177
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1178
1178
  office?: {
1179
1179
  id: string;
@@ -1186,22 +1186,22 @@ export declare const callHistoryContract: {
1186
1186
  }[] | undefined;
1187
1187
  }, {
1188
1188
  id: string;
1189
- updatedAt: string | Date;
1190
- createdAt: string | Date;
1191
- email: string;
1192
- firstName: string;
1193
- lastName: string;
1194
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1195
- office?: {
1196
- id: string;
1197
- name: string;
1198
- } | null | undefined;
1189
+ firstName: string;
1190
+ lastName: string;
1191
+ email: string;
1192
+ createdAt: string | Date;
1193
+ updatedAt: string | Date;
1199
1194
  phoneNumbers?: {
1200
1195
  id: string;
1201
1196
  phoneNumber: string;
1202
1197
  description?: string | null | undefined;
1203
1198
  isPrimary?: boolean | undefined;
1204
1199
  }[] | undefined;
1200
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1201
+ office?: {
1202
+ id: string;
1203
+ name: string;
1204
+ } | null | undefined;
1205
1205
  canImpersonateUsers?: {
1206
1206
  id: string;
1207
1207
  firstName: string;
@@ -1220,45 +1220,39 @@ export declare const callHistoryContract: {
1220
1220
  }, "strip", z.ZodTypeAny, {
1221
1221
  id: string;
1222
1222
  name: string;
1223
- updatedAt: string;
1224
1223
  createdAt: string;
1224
+ updatedAt: string;
1225
1225
  }, {
1226
1226
  id: string;
1227
1227
  name: string;
1228
- updatedAt: string | Date;
1229
1228
  createdAt: string | Date;
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
1234
  id: string;
1235
- updatedAt: string;
1236
- createdAt: string;
1237
1235
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1238
- companyId: string | null;
1239
1236
  agentId: string | null;
1237
+ createdAt: string;
1238
+ updatedAt: string;
1240
1239
  leadId: string;
1241
1240
  assignedAt: string;
1242
1241
  assignedBy: string | null;
1243
- company?: {
1244
- id: string;
1245
- name: string;
1246
- updatedAt: string;
1247
- createdAt: string;
1248
- } | null | undefined;
1242
+ companyId: string | null;
1249
1243
  agent?: {
1250
1244
  id: string;
1251
- updatedAt: string;
1252
- createdAt: string;
1253
- email: string;
1254
1245
  firstName: string;
1255
1246
  lastName: string;
1247
+ email: string;
1256
1248
  phoneNumbers: {
1257
1249
  id: string;
1258
1250
  phoneNumber: string;
1259
1251
  isPrimary: boolean;
1260
1252
  description?: string | null | undefined;
1261
1253
  }[];
1254
+ createdAt: string;
1255
+ updatedAt: string;
1262
1256
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1263
1257
  office?: {
1264
1258
  id: string;
@@ -1271,43 +1265,43 @@ export declare const callHistoryContract: {
1271
1265
  }[] | undefined;
1272
1266
  } | undefined;
1273
1267
  lead?: {
1274
- name: string;
1275
1268
  phoneNumber: string;
1269
+ name: string;
1276
1270
  } | undefined;
1271
+ company?: {
1272
+ id: string;
1273
+ name: string;
1274
+ createdAt: string;
1275
+ updatedAt: string;
1276
+ } | null | undefined;
1277
1277
  }, {
1278
1278
  id: string;
1279
- updatedAt: string | Date;
1280
- createdAt: string | Date;
1281
1279
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1282
- companyId: string | null;
1283
1280
  agentId: string | null;
1281
+ createdAt: string | Date;
1282
+ updatedAt: string | Date;
1284
1283
  leadId: string;
1285
1284
  assignedAt: string | Date;
1286
1285
  assignedBy: string | null;
1287
- company?: {
1288
- id: string;
1289
- name: string;
1290
- updatedAt: string | Date;
1291
- createdAt: string | Date;
1292
- } | null | undefined;
1286
+ companyId: string | null;
1293
1287
  agent?: {
1294
1288
  id: string;
1295
- updatedAt: string | Date;
1296
- createdAt: string | Date;
1297
- email: string;
1298
1289
  firstName: string;
1299
1290
  lastName: string;
1300
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1301
- office?: {
1302
- id: string;
1303
- name: string;
1304
- } | null | undefined;
1291
+ email: string;
1292
+ createdAt: string | Date;
1293
+ updatedAt: string | Date;
1305
1294
  phoneNumbers?: {
1306
1295
  id: string;
1307
1296
  phoneNumber: string;
1308
1297
  description?: string | null | undefined;
1309
1298
  isPrimary?: boolean | undefined;
1310
1299
  }[] | undefined;
1300
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1301
+ office?: {
1302
+ id: string;
1303
+ name: string;
1304
+ } | null | undefined;
1311
1305
  canImpersonateUsers?: {
1312
1306
  id: string;
1313
1307
  firstName: string;
@@ -1315,9 +1309,15 @@ export declare const callHistoryContract: {
1315
1309
  }[] | undefined;
1316
1310
  } | undefined;
1317
1311
  lead?: {
1318
- name: string;
1319
1312
  phoneNumber: string;
1313
+ name: string;
1320
1314
  } | undefined;
1315
+ company?: {
1316
+ id: string;
1317
+ name: string;
1318
+ createdAt: string | Date;
1319
+ updatedAt: string | Date;
1320
+ } | null | undefined;
1321
1321
  }>>>;
1322
1322
  callType: z.ZodNativeEnum<typeof CallType>;
1323
1323
  leadSource: z.ZodNativeEnum<typeof LeadSource>;
@@ -1328,45 +1328,39 @@ export declare const callHistoryContract: {
1328
1328
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1329
1329
  }, "strip", z.ZodTypeAny, {
1330
1330
  id: string;
1331
- updatedAt: string;
1332
1331
  createdAt: string;
1333
- assignmentId: string;
1332
+ updatedAt: string;
1334
1333
  rating: CallRating;
1335
- callType: CallType;
1336
- leadSource: LeadSource;
1337
1334
  notes: string | null;
1335
+ callType: CallType;
1336
+ assignmentId: string;
1338
1337
  ratingWeight: number;
1338
+ leadSource: LeadSource;
1339
1339
  agentId?: string | undefined;
1340
1340
  leadId?: string | undefined;
1341
1341
  assignment?: {
1342
1342
  id: string;
1343
- updatedAt: string;
1344
- createdAt: string;
1345
1343
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1346
- companyId: string | null;
1347
1344
  agentId: string | null;
1345
+ createdAt: string;
1346
+ updatedAt: string;
1348
1347
  leadId: string;
1349
1348
  assignedAt: string;
1350
1349
  assignedBy: string | null;
1351
- company?: {
1352
- id: string;
1353
- name: string;
1354
- updatedAt: string;
1355
- createdAt: string;
1356
- } | null | undefined;
1350
+ companyId: string | null;
1357
1351
  agent?: {
1358
1352
  id: string;
1359
- updatedAt: string;
1360
- createdAt: string;
1361
- email: string;
1362
1353
  firstName: string;
1363
1354
  lastName: string;
1355
+ email: string;
1364
1356
  phoneNumbers: {
1365
1357
  id: string;
1366
1358
  phoneNumber: string;
1367
1359
  isPrimary: boolean;
1368
1360
  description?: string | null | undefined;
1369
1361
  }[];
1362
+ createdAt: string;
1363
+ updatedAt: string;
1370
1364
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1371
1365
  office?: {
1372
1366
  id: string;
@@ -1379,56 +1373,56 @@ export declare const callHistoryContract: {
1379
1373
  }[] | undefined;
1380
1374
  } | undefined;
1381
1375
  lead?: {
1382
- name: string;
1383
1376
  phoneNumber: string;
1377
+ name: string;
1384
1378
  } | undefined;
1379
+ company?: {
1380
+ id: string;
1381
+ name: string;
1382
+ createdAt: string;
1383
+ updatedAt: string;
1384
+ } | null | undefined;
1385
1385
  } | null | undefined;
1386
1386
  }, {
1387
1387
  id: string;
1388
- updatedAt: string | Date;
1389
1388
  createdAt: string | Date;
1390
- assignmentId: string;
1389
+ updatedAt: string | Date;
1391
1390
  rating: CallRating;
1392
- callType: CallType;
1393
- leadSource: LeadSource;
1394
1391
  notes: string | null;
1392
+ callType: CallType;
1393
+ assignmentId: string;
1395
1394
  ratingWeight: number;
1395
+ leadSource: LeadSource;
1396
1396
  agentId?: string | undefined;
1397
1397
  leadId?: string | undefined;
1398
1398
  assignment?: {
1399
1399
  id: string;
1400
- updatedAt: string | Date;
1401
- createdAt: string | Date;
1402
1400
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1403
- companyId: string | null;
1404
1401
  agentId: string | null;
1402
+ createdAt: string | Date;
1403
+ updatedAt: string | Date;
1405
1404
  leadId: string;
1406
1405
  assignedAt: string | Date;
1407
1406
  assignedBy: string | null;
1408
- company?: {
1409
- id: string;
1410
- name: string;
1411
- updatedAt: string | Date;
1412
- createdAt: string | Date;
1413
- } | null | undefined;
1407
+ companyId: string | null;
1414
1408
  agent?: {
1415
1409
  id: string;
1416
- updatedAt: string | Date;
1417
- createdAt: string | Date;
1418
- email: string;
1419
1410
  firstName: string;
1420
1411
  lastName: string;
1421
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1422
- office?: {
1423
- id: string;
1424
- name: string;
1425
- } | null | undefined;
1412
+ email: string;
1413
+ createdAt: string | Date;
1414
+ updatedAt: string | Date;
1426
1415
  phoneNumbers?: {
1427
1416
  id: string;
1428
1417
  phoneNumber: string;
1429
1418
  description?: string | null | undefined;
1430
1419
  isPrimary?: boolean | undefined;
1431
1420
  }[] | undefined;
1421
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1422
+ office?: {
1423
+ id: string;
1424
+ name: string;
1425
+ } | null | undefined;
1432
1426
  canImpersonateUsers?: {
1433
1427
  id: string;
1434
1428
  firstName: string;
@@ -1436,9 +1430,15 @@ export declare const callHistoryContract: {
1436
1430
  }[] | undefined;
1437
1431
  } | undefined;
1438
1432
  lead?: {
1439
- name: string;
1440
1433
  phoneNumber: string;
1434
+ name: string;
1441
1435
  } | undefined;
1436
+ company?: {
1437
+ id: string;
1438
+ name: string;
1439
+ createdAt: string | Date;
1440
+ updatedAt: string | Date;
1441
+ } | null | undefined;
1442
1442
  } | null | undefined;
1443
1443
  }>;
1444
1444
  409: z.ZodObject<{
@@ -1502,42 +1502,42 @@ export declare const callHistoryContract: {
1502
1502
  sortBy: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof CallHistorySortableFields>>>;
1503
1503
  sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>>;
1504
1504
  }, "strip", z.ZodTypeAny, {
1505
- page: number;
1506
1505
  limit: number;
1506
+ page: number;
1507
+ phoneNumber?: string | undefined;
1508
+ agentId?: string | undefined;
1507
1509
  createdAt?: {
1508
1510
  from?: string | null | undefined;
1509
1511
  to?: string | null | undefined;
1510
1512
  } | null | undefined;
1511
- companyId?: string | undefined;
1512
- sortBy?: CallHistorySortableFields | undefined;
1513
- sortOrder?: "ASC" | "DESC" | undefined;
1514
- agentId?: string | undefined;
1515
1513
  rating?: {
1516
1514
  from?: CallRating | null | undefined;
1517
1515
  to?: CallRating | null | undefined;
1518
1516
  } | null | undefined;
1519
1517
  callType?: CallType | undefined;
1518
+ companyId?: string | undefined;
1519
+ sortBy?: CallHistorySortableFields | undefined;
1520
+ sortOrder?: "ASC" | "DESC" | undefined;
1520
1521
  leadSource?: LeadSource | undefined;
1521
- phoneNumber?: string | undefined;
1522
1522
  leadName?: string | undefined;
1523
1523
  }, {
1524
+ phoneNumber?: string | undefined;
1525
+ agentId?: string | undefined;
1524
1526
  createdAt?: {
1525
1527
  from?: string | null | undefined;
1526
1528
  to?: string | null | undefined;
1527
1529
  } | null | undefined;
1528
- companyId?: string | undefined;
1529
- sortBy?: CallHistorySortableFields | undefined;
1530
- sortOrder?: "ASC" | "DESC" | undefined;
1531
- page?: number | undefined;
1532
- limit?: number | undefined;
1533
- agentId?: string | undefined;
1534
1530
  rating?: {
1535
1531
  from?: unknown;
1536
1532
  to?: unknown;
1537
1533
  } | null | undefined;
1538
1534
  callType?: CallType | undefined;
1535
+ companyId?: string | undefined;
1536
+ limit?: number | undefined;
1537
+ page?: number | undefined;
1538
+ sortBy?: CallHistorySortableFields | undefined;
1539
+ sortOrder?: "ASC" | "DESC" | undefined;
1539
1540
  leadSource?: LeadSource | undefined;
1540
- phoneNumber?: string | undefined;
1541
1541
  leadName?: string | undefined;
1542
1542
  }>;
1543
1543
  metadata: {
@@ -1660,11 +1660,11 @@ export declare const callHistoryContract: {
1660
1660
  name: z.ZodString;
1661
1661
  phoneNumber: z.ZodString;
1662
1662
  }, "strip", z.ZodTypeAny, {
1663
- name: string;
1664
1663
  phoneNumber: string;
1665
- }, {
1666
1664
  name: string;
1665
+ }, {
1667
1666
  phoneNumber: string;
1667
+ name: string;
1668
1668
  }>>;
1669
1669
  agentId: z.ZodNullable<z.ZodString>;
1670
1670
  agent: z.ZodOptional<z.ZodObject<{
@@ -1716,17 +1716,17 @@ export declare const callHistoryContract: {
1716
1716
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1717
1717
  }, "strip", z.ZodTypeAny, {
1718
1718
  id: string;
1719
- updatedAt: string;
1720
- createdAt: string;
1721
- email: string;
1722
1719
  firstName: string;
1723
1720
  lastName: string;
1721
+ email: string;
1724
1722
  phoneNumbers: {
1725
1723
  id: string;
1726
1724
  phoneNumber: string;
1727
1725
  isPrimary: boolean;
1728
1726
  description?: string | null | undefined;
1729
1727
  }[];
1728
+ createdAt: string;
1729
+ updatedAt: string;
1730
1730
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1731
1731
  office?: {
1732
1732
  id: string;
@@ -1739,22 +1739,22 @@ export declare const callHistoryContract: {
1739
1739
  }[] | undefined;
1740
1740
  }, {
1741
1741
  id: string;
1742
- updatedAt: string | Date;
1743
- createdAt: string | Date;
1744
- email: string;
1745
1742
  firstName: string;
1746
1743
  lastName: string;
1747
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1748
- office?: {
1749
- id: string;
1750
- name: string;
1751
- } | null | undefined;
1744
+ email: string;
1745
+ createdAt: string | Date;
1746
+ updatedAt: string | Date;
1752
1747
  phoneNumbers?: {
1753
1748
  id: string;
1754
1749
  phoneNumber: string;
1755
1750
  description?: string | null | undefined;
1756
1751
  isPrimary?: boolean | undefined;
1757
1752
  }[] | undefined;
1753
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1754
+ office?: {
1755
+ id: string;
1756
+ name: string;
1757
+ } | null | undefined;
1758
1758
  canImpersonateUsers?: {
1759
1759
  id: string;
1760
1760
  firstName: string;
@@ -1773,45 +1773,39 @@ export declare const callHistoryContract: {
1773
1773
  }, "strip", z.ZodTypeAny, {
1774
1774
  id: string;
1775
1775
  name: string;
1776
- updatedAt: string;
1777
1776
  createdAt: string;
1777
+ updatedAt: string;
1778
1778
  }, {
1779
1779
  id: string;
1780
1780
  name: string;
1781
- updatedAt: string | Date;
1782
1781
  createdAt: string | Date;
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
1787
  id: string;
1788
- updatedAt: string;
1789
- createdAt: string;
1790
1788
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1791
- companyId: string | null;
1792
1789
  agentId: string | null;
1790
+ createdAt: string;
1791
+ updatedAt: string;
1793
1792
  leadId: string;
1794
1793
  assignedAt: string;
1795
1794
  assignedBy: string | null;
1796
- company?: {
1797
- id: string;
1798
- name: string;
1799
- updatedAt: string;
1800
- createdAt: string;
1801
- } | null | undefined;
1795
+ companyId: string | null;
1802
1796
  agent?: {
1803
1797
  id: string;
1804
- updatedAt: string;
1805
- createdAt: string;
1806
- email: string;
1807
1798
  firstName: string;
1808
1799
  lastName: string;
1800
+ email: string;
1809
1801
  phoneNumbers: {
1810
1802
  id: string;
1811
1803
  phoneNumber: string;
1812
1804
  isPrimary: boolean;
1813
1805
  description?: string | null | undefined;
1814
1806
  }[];
1807
+ createdAt: string;
1808
+ updatedAt: string;
1815
1809
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1816
1810
  office?: {
1817
1811
  id: string;
@@ -1824,43 +1818,43 @@ export declare const callHistoryContract: {
1824
1818
  }[] | undefined;
1825
1819
  } | undefined;
1826
1820
  lead?: {
1827
- name: string;
1828
1821
  phoneNumber: string;
1822
+ name: string;
1829
1823
  } | undefined;
1824
+ company?: {
1825
+ id: string;
1826
+ name: string;
1827
+ createdAt: string;
1828
+ updatedAt: string;
1829
+ } | null | undefined;
1830
1830
  }, {
1831
1831
  id: string;
1832
- updatedAt: string | Date;
1833
- createdAt: string | Date;
1834
1832
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1835
- companyId: string | null;
1836
1833
  agentId: string | null;
1834
+ createdAt: string | Date;
1835
+ updatedAt: string | Date;
1837
1836
  leadId: string;
1838
1837
  assignedAt: string | Date;
1839
1838
  assignedBy: string | null;
1840
- company?: {
1841
- id: string;
1842
- name: string;
1843
- updatedAt: string | Date;
1844
- createdAt: string | Date;
1845
- } | null | undefined;
1839
+ companyId: string | null;
1846
1840
  agent?: {
1847
1841
  id: string;
1848
- updatedAt: string | Date;
1849
- createdAt: string | Date;
1850
- email: string;
1851
1842
  firstName: string;
1852
1843
  lastName: string;
1853
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1854
- office?: {
1855
- id: string;
1856
- name: string;
1857
- } | null | undefined;
1844
+ email: string;
1845
+ createdAt: string | Date;
1846
+ updatedAt: string | Date;
1858
1847
  phoneNumbers?: {
1859
1848
  id: string;
1860
1849
  phoneNumber: string;
1861
1850
  description?: string | null | undefined;
1862
1851
  isPrimary?: boolean | undefined;
1863
1852
  }[] | undefined;
1853
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1854
+ office?: {
1855
+ id: string;
1856
+ name: string;
1857
+ } | null | undefined;
1864
1858
  canImpersonateUsers?: {
1865
1859
  id: string;
1866
1860
  firstName: string;
@@ -1868,9 +1862,15 @@ export declare const callHistoryContract: {
1868
1862
  }[] | undefined;
1869
1863
  } | undefined;
1870
1864
  lead?: {
1871
- name: string;
1872
1865
  phoneNumber: string;
1866
+ name: string;
1873
1867
  } | undefined;
1868
+ company?: {
1869
+ id: string;
1870
+ name: string;
1871
+ createdAt: string | Date;
1872
+ updatedAt: string | Date;
1873
+ } | null | undefined;
1874
1874
  }>>>;
1875
1875
  callType: z.ZodNativeEnum<typeof CallType>;
1876
1876
  leadSource: z.ZodNativeEnum<typeof LeadSource>;
@@ -1881,45 +1881,39 @@ export declare const callHistoryContract: {
1881
1881
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1882
1882
  }, "strip", z.ZodTypeAny, {
1883
1883
  id: string;
1884
- updatedAt: string;
1885
1884
  createdAt: string;
1886
- assignmentId: string;
1885
+ updatedAt: string;
1887
1886
  rating: CallRating;
1888
- callType: CallType;
1889
- leadSource: LeadSource;
1890
1887
  notes: string | null;
1888
+ callType: CallType;
1889
+ assignmentId: string;
1891
1890
  ratingWeight: number;
1891
+ leadSource: LeadSource;
1892
1892
  agentId?: string | undefined;
1893
1893
  leadId?: string | undefined;
1894
1894
  assignment?: {
1895
1895
  id: string;
1896
- updatedAt: string;
1897
- createdAt: string;
1898
1896
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1899
- companyId: string | null;
1900
1897
  agentId: string | null;
1898
+ createdAt: string;
1899
+ updatedAt: string;
1901
1900
  leadId: string;
1902
1901
  assignedAt: string;
1903
1902
  assignedBy: string | null;
1904
- company?: {
1905
- id: string;
1906
- name: string;
1907
- updatedAt: string;
1908
- createdAt: string;
1909
- } | null | undefined;
1903
+ companyId: string | null;
1910
1904
  agent?: {
1911
1905
  id: string;
1912
- updatedAt: string;
1913
- createdAt: string;
1914
- email: string;
1915
1906
  firstName: string;
1916
1907
  lastName: string;
1908
+ email: string;
1917
1909
  phoneNumbers: {
1918
1910
  id: string;
1919
1911
  phoneNumber: string;
1920
1912
  isPrimary: boolean;
1921
1913
  description?: string | null | undefined;
1922
1914
  }[];
1915
+ createdAt: string;
1916
+ updatedAt: string;
1923
1917
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1924
1918
  office?: {
1925
1919
  id: string;
@@ -1932,56 +1926,56 @@ export declare const callHistoryContract: {
1932
1926
  }[] | undefined;
1933
1927
  } | undefined;
1934
1928
  lead?: {
1935
- name: string;
1936
1929
  phoneNumber: string;
1930
+ name: string;
1937
1931
  } | undefined;
1932
+ company?: {
1933
+ id: string;
1934
+ name: string;
1935
+ createdAt: string;
1936
+ updatedAt: string;
1937
+ } | null | undefined;
1938
1938
  } | null | undefined;
1939
1939
  }, {
1940
1940
  id: string;
1941
- updatedAt: string | Date;
1942
1941
  createdAt: string | Date;
1943
- assignmentId: string;
1942
+ updatedAt: string | Date;
1944
1943
  rating: CallRating;
1945
- callType: CallType;
1946
- leadSource: LeadSource;
1947
1944
  notes: string | null;
1945
+ callType: CallType;
1946
+ assignmentId: string;
1948
1947
  ratingWeight: number;
1948
+ leadSource: LeadSource;
1949
1949
  agentId?: string | undefined;
1950
1950
  leadId?: string | undefined;
1951
1951
  assignment?: {
1952
1952
  id: string;
1953
- updatedAt: string | Date;
1954
- createdAt: string | Date;
1955
1953
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
1956
- companyId: string | null;
1957
1954
  agentId: string | null;
1955
+ createdAt: string | Date;
1956
+ updatedAt: string | Date;
1958
1957
  leadId: string;
1959
1958
  assignedAt: string | Date;
1960
1959
  assignedBy: string | null;
1961
- company?: {
1962
- id: string;
1963
- name: string;
1964
- updatedAt: string | Date;
1965
- createdAt: string | Date;
1966
- } | null | undefined;
1960
+ companyId: string | null;
1967
1961
  agent?: {
1968
1962
  id: string;
1969
- updatedAt: string | Date;
1970
- createdAt: string | Date;
1971
- email: string;
1972
1963
  firstName: string;
1973
1964
  lastName: string;
1974
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1975
- office?: {
1976
- id: string;
1977
- name: string;
1978
- } | null | undefined;
1965
+ email: string;
1966
+ createdAt: string | Date;
1967
+ updatedAt: string | Date;
1979
1968
  phoneNumbers?: {
1980
1969
  id: string;
1981
1970
  phoneNumber: string;
1982
1971
  description?: string | null | undefined;
1983
1972
  isPrimary?: boolean | undefined;
1984
1973
  }[] | undefined;
1974
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1975
+ office?: {
1976
+ id: string;
1977
+ name: string;
1978
+ } | null | undefined;
1985
1979
  canImpersonateUsers?: {
1986
1980
  id: string;
1987
1981
  firstName: string;
@@ -1989,9 +1983,15 @@ export declare const callHistoryContract: {
1989
1983
  }[] | undefined;
1990
1984
  } | undefined;
1991
1985
  lead?: {
1992
- name: string;
1993
1986
  phoneNumber: string;
1987
+ name: string;
1994
1988
  } | undefined;
1989
+ company?: {
1990
+ id: string;
1991
+ name: string;
1992
+ createdAt: string | Date;
1993
+ updatedAt: string | Date;
1994
+ } | null | undefined;
1995
1995
  } | null | undefined;
1996
1996
  }>, "many">;
1997
1997
  totalCount: z.ZodNumber;
@@ -2003,45 +2003,39 @@ export declare const callHistoryContract: {
2003
2003
  limit: number;
2004
2004
  items: {
2005
2005
  id: string;
2006
- updatedAt: string;
2007
2006
  createdAt: string;
2008
- assignmentId: string;
2007
+ updatedAt: string;
2009
2008
  rating: CallRating;
2010
- callType: CallType;
2011
- leadSource: LeadSource;
2012
2009
  notes: string | null;
2010
+ callType: CallType;
2011
+ assignmentId: string;
2013
2012
  ratingWeight: number;
2013
+ leadSource: LeadSource;
2014
2014
  agentId?: string | undefined;
2015
2015
  leadId?: string | undefined;
2016
2016
  assignment?: {
2017
2017
  id: string;
2018
- updatedAt: string;
2019
- createdAt: string;
2020
2018
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2021
- companyId: string | null;
2022
2019
  agentId: string | null;
2020
+ createdAt: string;
2021
+ updatedAt: string;
2023
2022
  leadId: string;
2024
2023
  assignedAt: string;
2025
2024
  assignedBy: string | null;
2026
- company?: {
2027
- id: string;
2028
- name: string;
2029
- updatedAt: string;
2030
- createdAt: string;
2031
- } | null | undefined;
2025
+ companyId: string | null;
2032
2026
  agent?: {
2033
2027
  id: string;
2034
- updatedAt: string;
2035
- createdAt: string;
2036
- email: string;
2037
2028
  firstName: string;
2038
2029
  lastName: string;
2030
+ email: string;
2039
2031
  phoneNumbers: {
2040
2032
  id: string;
2041
2033
  phoneNumber: string;
2042
2034
  isPrimary: boolean;
2043
2035
  description?: string | null | undefined;
2044
2036
  }[];
2037
+ createdAt: string;
2038
+ updatedAt: string;
2045
2039
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2046
2040
  office?: {
2047
2041
  id: string;
@@ -2054,9 +2048,15 @@ export declare const callHistoryContract: {
2054
2048
  }[] | undefined;
2055
2049
  } | undefined;
2056
2050
  lead?: {
2057
- name: string;
2058
2051
  phoneNumber: string;
2052
+ name: string;
2059
2053
  } | undefined;
2054
+ company?: {
2055
+ id: string;
2056
+ name: string;
2057
+ createdAt: string;
2058
+ updatedAt: string;
2059
+ } | null | undefined;
2060
2060
  } | null | undefined;
2061
2061
  }[];
2062
2062
  totalCount: number;
@@ -2067,50 +2067,44 @@ export declare const callHistoryContract: {
2067
2067
  limit: number;
2068
2068
  items: {
2069
2069
  id: string;
2070
- updatedAt: string | Date;
2071
2070
  createdAt: string | Date;
2072
- assignmentId: string;
2071
+ updatedAt: string | Date;
2073
2072
  rating: CallRating;
2074
- callType: CallType;
2075
- leadSource: LeadSource;
2076
2073
  notes: string | null;
2074
+ callType: CallType;
2075
+ assignmentId: string;
2077
2076
  ratingWeight: number;
2077
+ leadSource: LeadSource;
2078
2078
  agentId?: string | undefined;
2079
2079
  leadId?: string | undefined;
2080
2080
  assignment?: {
2081
2081
  id: string;
2082
- updatedAt: string | Date;
2083
- createdAt: string | Date;
2084
2082
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2085
- companyId: string | null;
2086
2083
  agentId: string | null;
2084
+ createdAt: string | Date;
2085
+ updatedAt: string | Date;
2087
2086
  leadId: string;
2088
2087
  assignedAt: string | Date;
2089
2088
  assignedBy: string | null;
2090
- company?: {
2091
- id: string;
2092
- name: string;
2093
- updatedAt: string | Date;
2094
- createdAt: string | Date;
2095
- } | null | undefined;
2089
+ companyId: string | null;
2096
2090
  agent?: {
2097
2091
  id: string;
2098
- updatedAt: string | Date;
2099
- createdAt: string | Date;
2100
- email: string;
2101
2092
  firstName: string;
2102
2093
  lastName: string;
2103
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2104
- office?: {
2105
- id: string;
2106
- name: string;
2107
- } | null | undefined;
2094
+ email: string;
2095
+ createdAt: string | Date;
2096
+ updatedAt: string | Date;
2108
2097
  phoneNumbers?: {
2109
2098
  id: string;
2110
2099
  phoneNumber: string;
2111
2100
  description?: string | null | undefined;
2112
2101
  isPrimary?: boolean | undefined;
2113
2102
  }[] | undefined;
2103
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2104
+ office?: {
2105
+ id: string;
2106
+ name: string;
2107
+ } | null | undefined;
2114
2108
  canImpersonateUsers?: {
2115
2109
  id: string;
2116
2110
  firstName: string;
@@ -2118,9 +2112,15 @@ export declare const callHistoryContract: {
2118
2112
  }[] | undefined;
2119
2113
  } | undefined;
2120
2114
  lead?: {
2121
- name: string;
2122
2115
  phoneNumber: string;
2116
+ name: string;
2123
2117
  } | undefined;
2118
+ company?: {
2119
+ id: string;
2120
+ name: string;
2121
+ createdAt: string | Date;
2122
+ updatedAt: string | Date;
2123
+ } | null | undefined;
2124
2124
  } | null | undefined;
2125
2125
  }[];
2126
2126
  totalCount: number;
@@ -2257,11 +2257,11 @@ export declare const callHistoryContract: {
2257
2257
  name: z.ZodString;
2258
2258
  phoneNumber: z.ZodString;
2259
2259
  }, "strip", z.ZodTypeAny, {
2260
- name: string;
2261
2260
  phoneNumber: string;
2262
- }, {
2263
2261
  name: string;
2262
+ }, {
2264
2263
  phoneNumber: string;
2264
+ name: string;
2265
2265
  }>>;
2266
2266
  agentId: z.ZodNullable<z.ZodString>;
2267
2267
  agent: z.ZodOptional<z.ZodObject<{
@@ -2313,17 +2313,17 @@ export declare const callHistoryContract: {
2313
2313
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2314
2314
  }, "strip", z.ZodTypeAny, {
2315
2315
  id: string;
2316
- updatedAt: string;
2317
- createdAt: string;
2318
- email: string;
2319
2316
  firstName: string;
2320
2317
  lastName: string;
2318
+ email: string;
2321
2319
  phoneNumbers: {
2322
2320
  id: string;
2323
2321
  phoneNumber: string;
2324
2322
  isPrimary: boolean;
2325
2323
  description?: string | null | undefined;
2326
2324
  }[];
2325
+ createdAt: string;
2326
+ updatedAt: string;
2327
2327
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2328
2328
  office?: {
2329
2329
  id: string;
@@ -2336,22 +2336,22 @@ export declare const callHistoryContract: {
2336
2336
  }[] | undefined;
2337
2337
  }, {
2338
2338
  id: string;
2339
- updatedAt: string | Date;
2340
- createdAt: string | Date;
2341
- email: string;
2342
2339
  firstName: string;
2343
2340
  lastName: string;
2344
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2345
- office?: {
2346
- id: string;
2347
- name: string;
2348
- } | null | undefined;
2341
+ email: string;
2342
+ createdAt: string | Date;
2343
+ updatedAt: string | Date;
2349
2344
  phoneNumbers?: {
2350
2345
  id: string;
2351
2346
  phoneNumber: string;
2352
2347
  description?: string | null | undefined;
2353
2348
  isPrimary?: boolean | undefined;
2354
2349
  }[] | undefined;
2350
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2351
+ office?: {
2352
+ id: string;
2353
+ name: string;
2354
+ } | null | undefined;
2355
2355
  canImpersonateUsers?: {
2356
2356
  id: string;
2357
2357
  firstName: string;
@@ -2370,45 +2370,39 @@ export declare const callHistoryContract: {
2370
2370
  }, "strip", z.ZodTypeAny, {
2371
2371
  id: string;
2372
2372
  name: string;
2373
- updatedAt: string;
2374
2373
  createdAt: string;
2374
+ updatedAt: string;
2375
2375
  }, {
2376
2376
  id: string;
2377
2377
  name: string;
2378
- updatedAt: string | Date;
2379
2378
  createdAt: string | Date;
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
2384
  id: string;
2385
- updatedAt: string;
2386
- createdAt: string;
2387
2385
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2388
- companyId: string | null;
2389
2386
  agentId: string | null;
2387
+ createdAt: string;
2388
+ updatedAt: string;
2390
2389
  leadId: string;
2391
2390
  assignedAt: string;
2392
2391
  assignedBy: string | null;
2393
- company?: {
2394
- id: string;
2395
- name: string;
2396
- updatedAt: string;
2397
- createdAt: string;
2398
- } | null | undefined;
2392
+ companyId: string | null;
2399
2393
  agent?: {
2400
2394
  id: string;
2401
- updatedAt: string;
2402
- createdAt: string;
2403
- email: string;
2404
2395
  firstName: string;
2405
2396
  lastName: string;
2397
+ email: string;
2406
2398
  phoneNumbers: {
2407
2399
  id: string;
2408
2400
  phoneNumber: string;
2409
2401
  isPrimary: boolean;
2410
2402
  description?: string | null | undefined;
2411
2403
  }[];
2404
+ createdAt: string;
2405
+ updatedAt: string;
2412
2406
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2413
2407
  office?: {
2414
2408
  id: string;
@@ -2421,43 +2415,43 @@ export declare const callHistoryContract: {
2421
2415
  }[] | undefined;
2422
2416
  } | undefined;
2423
2417
  lead?: {
2424
- name: string;
2425
2418
  phoneNumber: string;
2419
+ name: string;
2426
2420
  } | undefined;
2421
+ company?: {
2422
+ id: string;
2423
+ name: string;
2424
+ createdAt: string;
2425
+ updatedAt: string;
2426
+ } | null | undefined;
2427
2427
  }, {
2428
2428
  id: string;
2429
- updatedAt: string | Date;
2430
- createdAt: string | Date;
2431
2429
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2432
- companyId: string | null;
2433
2430
  agentId: string | null;
2431
+ createdAt: string | Date;
2432
+ updatedAt: string | Date;
2434
2433
  leadId: string;
2435
2434
  assignedAt: string | Date;
2436
2435
  assignedBy: string | null;
2437
- company?: {
2438
- id: string;
2439
- name: string;
2440
- updatedAt: string | Date;
2441
- createdAt: string | Date;
2442
- } | null | undefined;
2436
+ companyId: string | null;
2443
2437
  agent?: {
2444
2438
  id: string;
2445
- updatedAt: string | Date;
2446
- createdAt: string | Date;
2447
- email: string;
2448
2439
  firstName: string;
2449
2440
  lastName: string;
2450
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2451
- office?: {
2452
- id: string;
2453
- name: string;
2454
- } | null | undefined;
2441
+ email: string;
2442
+ createdAt: string | Date;
2443
+ updatedAt: string | Date;
2455
2444
  phoneNumbers?: {
2456
2445
  id: string;
2457
2446
  phoneNumber: string;
2458
2447
  description?: string | null | undefined;
2459
2448
  isPrimary?: boolean | undefined;
2460
2449
  }[] | undefined;
2450
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2451
+ office?: {
2452
+ id: string;
2453
+ name: string;
2454
+ } | null | undefined;
2461
2455
  canImpersonateUsers?: {
2462
2456
  id: string;
2463
2457
  firstName: string;
@@ -2465,9 +2459,15 @@ export declare const callHistoryContract: {
2465
2459
  }[] | undefined;
2466
2460
  } | undefined;
2467
2461
  lead?: {
2468
- name: string;
2469
2462
  phoneNumber: string;
2463
+ name: string;
2470
2464
  } | undefined;
2465
+ company?: {
2466
+ id: string;
2467
+ name: string;
2468
+ createdAt: string | Date;
2469
+ updatedAt: string | Date;
2470
+ } | null | undefined;
2471
2471
  }>>>;
2472
2472
  callType: z.ZodNativeEnum<typeof CallType>;
2473
2473
  leadSource: z.ZodNativeEnum<typeof LeadSource>;
@@ -2478,45 +2478,39 @@ export declare const callHistoryContract: {
2478
2478
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2479
2479
  }, "strip", z.ZodTypeAny, {
2480
2480
  id: string;
2481
- updatedAt: string;
2482
2481
  createdAt: string;
2483
- assignmentId: string;
2482
+ updatedAt: string;
2484
2483
  rating: CallRating;
2485
- callType: CallType;
2486
- leadSource: LeadSource;
2487
2484
  notes: string | null;
2485
+ callType: CallType;
2486
+ assignmentId: string;
2488
2487
  ratingWeight: number;
2488
+ leadSource: LeadSource;
2489
2489
  agentId?: string | undefined;
2490
2490
  leadId?: string | undefined;
2491
2491
  assignment?: {
2492
2492
  id: string;
2493
- updatedAt: string;
2494
- createdAt: string;
2495
2493
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2496
- companyId: string | null;
2497
2494
  agentId: string | null;
2495
+ createdAt: string;
2496
+ updatedAt: string;
2498
2497
  leadId: string;
2499
2498
  assignedAt: string;
2500
2499
  assignedBy: string | null;
2501
- company?: {
2502
- id: string;
2503
- name: string;
2504
- updatedAt: string;
2505
- createdAt: string;
2506
- } | null | undefined;
2500
+ companyId: string | null;
2507
2501
  agent?: {
2508
2502
  id: string;
2509
- updatedAt: string;
2510
- createdAt: string;
2511
- email: string;
2512
2503
  firstName: string;
2513
2504
  lastName: string;
2505
+ email: string;
2514
2506
  phoneNumbers: {
2515
2507
  id: string;
2516
2508
  phoneNumber: string;
2517
2509
  isPrimary: boolean;
2518
2510
  description?: string | null | undefined;
2519
2511
  }[];
2512
+ createdAt: string;
2513
+ updatedAt: string;
2520
2514
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2521
2515
  office?: {
2522
2516
  id: string;
@@ -2529,56 +2523,56 @@ export declare const callHistoryContract: {
2529
2523
  }[] | undefined;
2530
2524
  } | undefined;
2531
2525
  lead?: {
2532
- name: string;
2533
2526
  phoneNumber: string;
2527
+ name: string;
2534
2528
  } | undefined;
2529
+ company?: {
2530
+ id: string;
2531
+ name: string;
2532
+ createdAt: string;
2533
+ updatedAt: string;
2534
+ } | null | undefined;
2535
2535
  } | null | undefined;
2536
2536
  }, {
2537
2537
  id: string;
2538
- updatedAt: string | Date;
2539
2538
  createdAt: string | Date;
2540
- assignmentId: string;
2539
+ updatedAt: string | Date;
2541
2540
  rating: CallRating;
2542
- callType: CallType;
2543
- leadSource: LeadSource;
2544
2541
  notes: string | null;
2542
+ callType: CallType;
2543
+ assignmentId: string;
2545
2544
  ratingWeight: number;
2545
+ leadSource: LeadSource;
2546
2546
  agentId?: string | undefined;
2547
2547
  leadId?: string | undefined;
2548
2548
  assignment?: {
2549
2549
  id: string;
2550
- updatedAt: string | Date;
2551
- createdAt: string | Date;
2552
2550
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2553
- companyId: string | null;
2554
2551
  agentId: string | null;
2552
+ createdAt: string | Date;
2553
+ updatedAt: string | Date;
2555
2554
  leadId: string;
2556
2555
  assignedAt: string | Date;
2557
2556
  assignedBy: string | null;
2558
- company?: {
2559
- id: string;
2560
- name: string;
2561
- updatedAt: string | Date;
2562
- createdAt: string | Date;
2563
- } | null | undefined;
2557
+ companyId: string | null;
2564
2558
  agent?: {
2565
2559
  id: string;
2566
- updatedAt: string | Date;
2567
- createdAt: string | Date;
2568
- email: string;
2569
2560
  firstName: string;
2570
2561
  lastName: string;
2571
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2572
- office?: {
2573
- id: string;
2574
- name: string;
2575
- } | null | undefined;
2562
+ email: string;
2563
+ createdAt: string | Date;
2564
+ updatedAt: string | Date;
2576
2565
  phoneNumbers?: {
2577
2566
  id: string;
2578
2567
  phoneNumber: string;
2579
2568
  description?: string | null | undefined;
2580
2569
  isPrimary?: boolean | undefined;
2581
2570
  }[] | undefined;
2571
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2572
+ office?: {
2573
+ id: string;
2574
+ name: string;
2575
+ } | null | undefined;
2582
2576
  canImpersonateUsers?: {
2583
2577
  id: string;
2584
2578
  firstName: string;
@@ -2586,9 +2580,15 @@ export declare const callHistoryContract: {
2586
2580
  }[] | undefined;
2587
2581
  } | undefined;
2588
2582
  lead?: {
2589
- name: string;
2590
2583
  phoneNumber: string;
2584
+ name: string;
2591
2585
  } | undefined;
2586
+ company?: {
2587
+ id: string;
2588
+ name: string;
2589
+ createdAt: string | Date;
2590
+ updatedAt: string | Date;
2591
+ } | null | undefined;
2592
2592
  } | null | undefined;
2593
2593
  }>;
2594
2594
  404: z.ZodObject<{
@@ -2755,11 +2755,11 @@ export declare const callHistoryContract: {
2755
2755
  name: z.ZodString;
2756
2756
  phoneNumber: z.ZodString;
2757
2757
  }, "strip", z.ZodTypeAny, {
2758
- name: string;
2759
2758
  phoneNumber: string;
2760
- }, {
2761
2759
  name: string;
2760
+ }, {
2762
2761
  phoneNumber: string;
2762
+ name: string;
2763
2763
  }>>;
2764
2764
  agentId: z.ZodNullable<z.ZodString>;
2765
2765
  agent: z.ZodOptional<z.ZodObject<{
@@ -2811,17 +2811,17 @@ export declare const callHistoryContract: {
2811
2811
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2812
2812
  }, "strip", z.ZodTypeAny, {
2813
2813
  id: string;
2814
- updatedAt: string;
2815
- createdAt: string;
2816
- email: string;
2817
2814
  firstName: string;
2818
2815
  lastName: string;
2816
+ email: string;
2819
2817
  phoneNumbers: {
2820
2818
  id: string;
2821
2819
  phoneNumber: string;
2822
2820
  isPrimary: boolean;
2823
2821
  description?: string | null | undefined;
2824
2822
  }[];
2823
+ createdAt: string;
2824
+ updatedAt: string;
2825
2825
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2826
2826
  office?: {
2827
2827
  id: string;
@@ -2834,22 +2834,22 @@ export declare const callHistoryContract: {
2834
2834
  }[] | undefined;
2835
2835
  }, {
2836
2836
  id: string;
2837
- updatedAt: string | Date;
2838
- createdAt: string | Date;
2839
- email: string;
2840
2837
  firstName: string;
2841
2838
  lastName: string;
2842
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2843
- office?: {
2844
- id: string;
2845
- name: string;
2846
- } | null | undefined;
2839
+ email: string;
2840
+ createdAt: string | Date;
2841
+ updatedAt: string | Date;
2847
2842
  phoneNumbers?: {
2848
2843
  id: string;
2849
2844
  phoneNumber: string;
2850
2845
  description?: string | null | undefined;
2851
2846
  isPrimary?: boolean | undefined;
2852
2847
  }[] | undefined;
2848
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2849
+ office?: {
2850
+ id: string;
2851
+ name: string;
2852
+ } | null | undefined;
2853
2853
  canImpersonateUsers?: {
2854
2854
  id: string;
2855
2855
  firstName: string;
@@ -2868,45 +2868,39 @@ export declare const callHistoryContract: {
2868
2868
  }, "strip", z.ZodTypeAny, {
2869
2869
  id: string;
2870
2870
  name: string;
2871
- updatedAt: string;
2872
2871
  createdAt: string;
2872
+ updatedAt: string;
2873
2873
  }, {
2874
2874
  id: string;
2875
2875
  name: string;
2876
- updatedAt: string | Date;
2877
2876
  createdAt: string | Date;
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
2882
  id: string;
2883
- updatedAt: string;
2884
- createdAt: string;
2885
2883
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2886
- companyId: string | null;
2887
2884
  agentId: string | null;
2885
+ createdAt: string;
2886
+ updatedAt: string;
2888
2887
  leadId: string;
2889
2888
  assignedAt: string;
2890
2889
  assignedBy: string | null;
2891
- company?: {
2892
- id: string;
2893
- name: string;
2894
- updatedAt: string;
2895
- createdAt: string;
2896
- } | null | undefined;
2890
+ companyId: string | null;
2897
2891
  agent?: {
2898
2892
  id: string;
2899
- updatedAt: string;
2900
- createdAt: string;
2901
- email: string;
2902
2893
  firstName: string;
2903
2894
  lastName: string;
2895
+ email: string;
2904
2896
  phoneNumbers: {
2905
2897
  id: string;
2906
2898
  phoneNumber: string;
2907
2899
  isPrimary: boolean;
2908
2900
  description?: string | null | undefined;
2909
2901
  }[];
2902
+ createdAt: string;
2903
+ updatedAt: string;
2910
2904
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2911
2905
  office?: {
2912
2906
  id: string;
@@ -2919,43 +2913,43 @@ export declare const callHistoryContract: {
2919
2913
  }[] | undefined;
2920
2914
  } | undefined;
2921
2915
  lead?: {
2922
- name: string;
2923
2916
  phoneNumber: string;
2917
+ name: string;
2924
2918
  } | undefined;
2919
+ company?: {
2920
+ id: string;
2921
+ name: string;
2922
+ createdAt: string;
2923
+ updatedAt: string;
2924
+ } | null | undefined;
2925
2925
  }, {
2926
2926
  id: string;
2927
- updatedAt: string | Date;
2928
- createdAt: string | Date;
2929
2927
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2930
- companyId: string | null;
2931
2928
  agentId: string | null;
2929
+ createdAt: string | Date;
2930
+ updatedAt: string | Date;
2932
2931
  leadId: string;
2933
2932
  assignedAt: string | Date;
2934
2933
  assignedBy: string | null;
2935
- company?: {
2936
- id: string;
2937
- name: string;
2938
- updatedAt: string | Date;
2939
- createdAt: string | Date;
2940
- } | null | undefined;
2934
+ companyId: string | null;
2941
2935
  agent?: {
2942
2936
  id: string;
2943
- updatedAt: string | Date;
2944
- createdAt: string | Date;
2945
- email: string;
2946
2937
  firstName: string;
2947
2938
  lastName: string;
2948
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2949
- office?: {
2950
- id: string;
2951
- name: string;
2952
- } | null | undefined;
2939
+ email: string;
2940
+ createdAt: string | Date;
2941
+ updatedAt: string | Date;
2953
2942
  phoneNumbers?: {
2954
2943
  id: string;
2955
2944
  phoneNumber: string;
2956
2945
  description?: string | null | undefined;
2957
2946
  isPrimary?: boolean | undefined;
2958
2947
  }[] | undefined;
2948
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2949
+ office?: {
2950
+ id: string;
2951
+ name: string;
2952
+ } | null | undefined;
2959
2953
  canImpersonateUsers?: {
2960
2954
  id: string;
2961
2955
  firstName: string;
@@ -2963,9 +2957,15 @@ export declare const callHistoryContract: {
2963
2957
  }[] | undefined;
2964
2958
  } | undefined;
2965
2959
  lead?: {
2966
- name: string;
2967
2960
  phoneNumber: string;
2961
+ name: string;
2968
2962
  } | undefined;
2963
+ company?: {
2964
+ id: string;
2965
+ name: string;
2966
+ createdAt: string | Date;
2967
+ updatedAt: string | Date;
2968
+ } | null | undefined;
2969
2969
  }>>>;
2970
2970
  callType: z.ZodNativeEnum<typeof CallType>;
2971
2971
  leadSource: z.ZodNativeEnum<typeof LeadSource>;
@@ -2976,45 +2976,39 @@ export declare const callHistoryContract: {
2976
2976
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2977
2977
  }, "strip", z.ZodTypeAny, {
2978
2978
  id: string;
2979
- updatedAt: string;
2980
2979
  createdAt: string;
2981
- assignmentId: string;
2980
+ updatedAt: string;
2982
2981
  rating: CallRating;
2983
- callType: CallType;
2984
- leadSource: LeadSource;
2985
2982
  notes: string | null;
2983
+ callType: CallType;
2984
+ assignmentId: string;
2986
2985
  ratingWeight: number;
2986
+ leadSource: LeadSource;
2987
2987
  agentId?: string | undefined;
2988
2988
  leadId?: string | undefined;
2989
2989
  assignment?: {
2990
2990
  id: string;
2991
- updatedAt: string;
2992
- createdAt: string;
2993
2991
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
2994
- companyId: string | null;
2995
2992
  agentId: string | null;
2993
+ createdAt: string;
2994
+ updatedAt: string;
2996
2995
  leadId: string;
2997
2996
  assignedAt: string;
2998
2997
  assignedBy: string | null;
2999
- company?: {
3000
- id: string;
3001
- name: string;
3002
- updatedAt: string;
3003
- createdAt: string;
3004
- } | null | undefined;
2998
+ companyId: string | null;
3005
2999
  agent?: {
3006
3000
  id: string;
3007
- updatedAt: string;
3008
- createdAt: string;
3009
- email: string;
3010
3001
  firstName: string;
3011
3002
  lastName: string;
3003
+ email: string;
3012
3004
  phoneNumbers: {
3013
3005
  id: string;
3014
3006
  phoneNumber: string;
3015
3007
  isPrimary: boolean;
3016
3008
  description?: string | null | undefined;
3017
3009
  }[];
3010
+ createdAt: string;
3011
+ updatedAt: string;
3018
3012
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
3019
3013
  office?: {
3020
3014
  id: string;
@@ -3027,56 +3021,56 @@ export declare const callHistoryContract: {
3027
3021
  }[] | undefined;
3028
3022
  } | undefined;
3029
3023
  lead?: {
3030
- name: string;
3031
3024
  phoneNumber: string;
3025
+ name: string;
3032
3026
  } | undefined;
3027
+ company?: {
3028
+ id: string;
3029
+ name: string;
3030
+ createdAt: string;
3031
+ updatedAt: string;
3032
+ } | null | undefined;
3033
3033
  } | null | undefined;
3034
3034
  }, {
3035
3035
  id: string;
3036
- updatedAt: string | Date;
3037
3036
  createdAt: string | Date;
3038
- assignmentId: string;
3037
+ updatedAt: string | Date;
3039
3038
  rating: CallRating;
3040
- callType: CallType;
3041
- leadSource: LeadSource;
3042
3039
  notes: string | null;
3040
+ callType: CallType;
3041
+ assignmentId: string;
3043
3042
  ratingWeight: number;
3043
+ leadSource: LeadSource;
3044
3044
  agentId?: string | undefined;
3045
3045
  leadId?: string | undefined;
3046
3046
  assignment?: {
3047
3047
  id: string;
3048
- updatedAt: string | Date;
3049
- createdAt: string | Date;
3050
3048
  status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
3051
- companyId: string | null;
3052
3049
  agentId: string | null;
3050
+ createdAt: string | Date;
3051
+ updatedAt: string | Date;
3053
3052
  leadId: string;
3054
3053
  assignedAt: string | Date;
3055
3054
  assignedBy: string | null;
3056
- company?: {
3057
- id: string;
3058
- name: string;
3059
- updatedAt: string | Date;
3060
- createdAt: string | Date;
3061
- } | null | undefined;
3055
+ companyId: string | null;
3062
3056
  agent?: {
3063
3057
  id: string;
3064
- updatedAt: string | Date;
3065
- createdAt: string | Date;
3066
- email: string;
3067
3058
  firstName: string;
3068
3059
  lastName: string;
3069
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
3070
- office?: {
3071
- id: string;
3072
- name: string;
3073
- } | null | undefined;
3060
+ email: string;
3061
+ createdAt: string | Date;
3062
+ updatedAt: string | Date;
3074
3063
  phoneNumbers?: {
3075
3064
  id: string;
3076
3065
  phoneNumber: string;
3077
3066
  description?: string | null | undefined;
3078
3067
  isPrimary?: boolean | undefined;
3079
3068
  }[] | undefined;
3069
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
3070
+ office?: {
3071
+ id: string;
3072
+ name: string;
3073
+ } | null | undefined;
3080
3074
  canImpersonateUsers?: {
3081
3075
  id: string;
3082
3076
  firstName: string;
@@ -3084,9 +3078,15 @@ export declare const callHistoryContract: {
3084
3078
  }[] | undefined;
3085
3079
  } | undefined;
3086
3080
  lead?: {
3087
- name: string;
3088
3081
  phoneNumber: string;
3082
+ name: string;
3089
3083
  } | undefined;
3084
+ company?: {
3085
+ id: string;
3086
+ name: string;
3087
+ createdAt: string | Date;
3088
+ updatedAt: string | Date;
3089
+ } | null | undefined;
3090
3090
  } | null | undefined;
3091
3091
  }>;
3092
3092
  404: z.ZodObject<{