@dakkitor/api-contracts 1.1.146 → 1.1.147

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 +9 -7
  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
@@ -9,11 +9,11 @@ export declare const LeadAssignmentLeadSchema: z.ZodObject<{
9
9
  name: z.ZodString;
10
10
  phoneNumber: z.ZodString;
11
11
  }, "strip", z.ZodTypeAny, {
12
- name: string;
13
12
  phoneNumber: string;
14
- }, {
15
13
  name: string;
14
+ }, {
16
15
  phoneNumber: string;
16
+ name: string;
17
17
  }>;
18
18
  export declare const LeadAssignmentSchema: z.ZodObject<{
19
19
  id: z.ZodString;
@@ -22,11 +22,11 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
22
22
  name: z.ZodString;
23
23
  phoneNumber: z.ZodString;
24
24
  }, "strip", z.ZodTypeAny, {
25
- name: string;
26
25
  phoneNumber: string;
27
- }, {
28
26
  name: string;
27
+ }, {
29
28
  phoneNumber: string;
29
+ name: string;
30
30
  }>>;
31
31
  agentId: z.ZodNullable<z.ZodString>;
32
32
  agent: z.ZodOptional<z.ZodObject<{
@@ -78,17 +78,17 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
78
78
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
79
79
  }, "strip", z.ZodTypeAny, {
80
80
  id: string;
81
- updatedAt: string;
82
- createdAt: string;
83
- email: string;
84
81
  firstName: string;
85
82
  lastName: string;
83
+ email: string;
86
84
  phoneNumbers: {
87
85
  id: string;
88
86
  phoneNumber: string;
89
87
  isPrimary: boolean;
90
88
  description?: string | null | undefined;
91
89
  }[];
90
+ createdAt: string;
91
+ updatedAt: string;
92
92
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
93
93
  office?: {
94
94
  id: string;
@@ -101,22 +101,22 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
101
101
  }[] | undefined;
102
102
  }, {
103
103
  id: string;
104
- updatedAt: string | Date;
105
- createdAt: string | Date;
106
- email: string;
107
104
  firstName: string;
108
105
  lastName: string;
109
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
110
- office?: {
111
- id: string;
112
- name: string;
113
- } | null | undefined;
106
+ email: string;
107
+ createdAt: string | Date;
108
+ updatedAt: string | Date;
114
109
  phoneNumbers?: {
115
110
  id: string;
116
111
  phoneNumber: string;
117
112
  description?: string | null | undefined;
118
113
  isPrimary?: boolean | undefined;
119
114
  }[] | undefined;
115
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
116
+ office?: {
117
+ id: string;
118
+ name: string;
119
+ } | null | undefined;
120
120
  canImpersonateUsers?: {
121
121
  id: string;
122
122
  firstName: string;
@@ -135,45 +135,39 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
135
135
  }, "strip", z.ZodTypeAny, {
136
136
  id: string;
137
137
  name: string;
138
- updatedAt: string;
139
138
  createdAt: string;
139
+ updatedAt: string;
140
140
  }, {
141
141
  id: string;
142
142
  name: string;
143
- updatedAt: string | Date;
144
143
  createdAt: string | Date;
144
+ updatedAt: string | Date;
145
145
  }>>>;
146
146
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
147
147
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
148
148
  }, "strip", z.ZodTypeAny, {
149
149
  id: string;
150
- updatedAt: string;
151
- createdAt: string;
152
150
  status: LeadAssignmentStatus;
153
- companyId: string | null;
154
151
  agentId: string | null;
152
+ createdAt: string;
153
+ updatedAt: string;
155
154
  leadId: string;
156
155
  assignedAt: string;
157
156
  assignedBy: string | null;
158
- company?: {
159
- id: string;
160
- name: string;
161
- updatedAt: string;
162
- createdAt: string;
163
- } | null | undefined;
157
+ companyId: string | null;
164
158
  agent?: {
165
159
  id: string;
166
- updatedAt: string;
167
- createdAt: string;
168
- email: string;
169
160
  firstName: string;
170
161
  lastName: string;
162
+ email: string;
171
163
  phoneNumbers: {
172
164
  id: string;
173
165
  phoneNumber: string;
174
166
  isPrimary: boolean;
175
167
  description?: string | null | undefined;
176
168
  }[];
169
+ createdAt: string;
170
+ updatedAt: string;
177
171
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
178
172
  office?: {
179
173
  id: string;
@@ -186,43 +180,43 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
186
180
  }[] | undefined;
187
181
  } | undefined;
188
182
  lead?: {
189
- name: string;
190
183
  phoneNumber: string;
184
+ name: string;
191
185
  } | undefined;
186
+ company?: {
187
+ id: string;
188
+ name: string;
189
+ createdAt: string;
190
+ updatedAt: string;
191
+ } | null | undefined;
192
192
  }, {
193
193
  id: string;
194
- updatedAt: string | Date;
195
- createdAt: string | Date;
196
194
  status: LeadAssignmentStatus;
197
- companyId: string | null;
198
195
  agentId: string | null;
196
+ createdAt: string | Date;
197
+ updatedAt: string | Date;
199
198
  leadId: string;
200
199
  assignedAt: string | Date;
201
200
  assignedBy: string | null;
202
- company?: {
203
- id: string;
204
- name: string;
205
- updatedAt: string | Date;
206
- createdAt: string | Date;
207
- } | null | undefined;
201
+ companyId: string | null;
208
202
  agent?: {
209
203
  id: string;
210
- updatedAt: string | Date;
211
- createdAt: string | Date;
212
- email: string;
213
204
  firstName: string;
214
205
  lastName: string;
215
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
216
- office?: {
217
- id: string;
218
- name: string;
219
- } | null | undefined;
206
+ email: string;
207
+ createdAt: string | Date;
208
+ updatedAt: string | Date;
220
209
  phoneNumbers?: {
221
210
  id: string;
222
211
  phoneNumber: string;
223
212
  description?: string | null | undefined;
224
213
  isPrimary?: boolean | undefined;
225
214
  }[] | undefined;
215
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
216
+ office?: {
217
+ id: string;
218
+ name: string;
219
+ } | null | undefined;
226
220
  canImpersonateUsers?: {
227
221
  id: string;
228
222
  firstName: string;
@@ -230,9 +224,15 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
230
224
  }[] | undefined;
231
225
  } | undefined;
232
226
  lead?: {
233
- name: string;
234
227
  phoneNumber: string;
228
+ name: string;
235
229
  } | undefined;
230
+ company?: {
231
+ id: string;
232
+ name: string;
233
+ createdAt: string | Date;
234
+ updatedAt: string | Date;
235
+ } | null | undefined;
236
236
  }>;
237
237
  export declare const CompleteAssignmentSchema: z.ZodObject<{
238
238
  rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
@@ -252,11 +252,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
252
252
  name: z.ZodString;
253
253
  phoneNumber: z.ZodString;
254
254
  }, "strip", z.ZodTypeAny, {
255
- name: string;
256
255
  phoneNumber: string;
257
- }, {
258
256
  name: string;
257
+ }, {
259
258
  phoneNumber: string;
259
+ name: string;
260
260
  }>>;
261
261
  agentId: z.ZodNullable<z.ZodString>;
262
262
  agent: z.ZodOptional<z.ZodObject<{
@@ -308,17 +308,17 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
308
308
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
309
309
  }, "strip", z.ZodTypeAny, {
310
310
  id: string;
311
- updatedAt: string;
312
- createdAt: string;
313
- email: string;
314
311
  firstName: string;
315
312
  lastName: string;
313
+ email: string;
316
314
  phoneNumbers: {
317
315
  id: string;
318
316
  phoneNumber: string;
319
317
  isPrimary: boolean;
320
318
  description?: string | null | undefined;
321
319
  }[];
320
+ createdAt: string;
321
+ updatedAt: string;
322
322
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
323
323
  office?: {
324
324
  id: string;
@@ -331,22 +331,22 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
331
331
  }[] | undefined;
332
332
  }, {
333
333
  id: string;
334
- updatedAt: string | Date;
335
- createdAt: string | Date;
336
- email: string;
337
334
  firstName: string;
338
335
  lastName: string;
339
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
340
- office?: {
341
- id: string;
342
- name: string;
343
- } | null | undefined;
336
+ email: string;
337
+ createdAt: string | Date;
338
+ updatedAt: string | Date;
344
339
  phoneNumbers?: {
345
340
  id: string;
346
341
  phoneNumber: string;
347
342
  description?: string | null | undefined;
348
343
  isPrimary?: boolean | undefined;
349
344
  }[] | undefined;
345
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
346
+ office?: {
347
+ id: string;
348
+ name: string;
349
+ } | null | undefined;
350
350
  canImpersonateUsers?: {
351
351
  id: string;
352
352
  firstName: string;
@@ -365,45 +365,39 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
365
365
  }, "strip", z.ZodTypeAny, {
366
366
  id: string;
367
367
  name: string;
368
- updatedAt: string;
369
368
  createdAt: string;
369
+ updatedAt: string;
370
370
  }, {
371
371
  id: string;
372
372
  name: string;
373
- updatedAt: string | Date;
374
373
  createdAt: string | Date;
374
+ updatedAt: string | Date;
375
375
  }>>>;
376
376
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
377
377
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
378
378
  }, "strip", z.ZodTypeAny, {
379
379
  id: string;
380
- updatedAt: string;
381
- createdAt: string;
382
380
  status: LeadAssignmentStatus;
383
- companyId: string | null;
384
381
  agentId: string | null;
382
+ createdAt: string;
383
+ updatedAt: string;
385
384
  leadId: string;
386
385
  assignedAt: string;
387
386
  assignedBy: string | null;
388
- company?: {
389
- id: string;
390
- name: string;
391
- updatedAt: string;
392
- createdAt: string;
393
- } | null | undefined;
387
+ companyId: string | null;
394
388
  agent?: {
395
389
  id: string;
396
- updatedAt: string;
397
- createdAt: string;
398
- email: string;
399
390
  firstName: string;
400
391
  lastName: string;
392
+ email: string;
401
393
  phoneNumbers: {
402
394
  id: string;
403
395
  phoneNumber: string;
404
396
  isPrimary: boolean;
405
397
  description?: string | null | undefined;
406
398
  }[];
399
+ createdAt: string;
400
+ updatedAt: string;
407
401
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
408
402
  office?: {
409
403
  id: string;
@@ -416,43 +410,43 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
416
410
  }[] | undefined;
417
411
  } | undefined;
418
412
  lead?: {
419
- name: string;
420
413
  phoneNumber: string;
414
+ name: string;
421
415
  } | undefined;
416
+ company?: {
417
+ id: string;
418
+ name: string;
419
+ createdAt: string;
420
+ updatedAt: string;
421
+ } | null | undefined;
422
422
  }, {
423
423
  id: string;
424
- updatedAt: string | Date;
425
- createdAt: string | Date;
426
424
  status: LeadAssignmentStatus;
427
- companyId: string | null;
428
425
  agentId: string | null;
426
+ createdAt: string | Date;
427
+ updatedAt: string | Date;
429
428
  leadId: string;
430
429
  assignedAt: string | Date;
431
430
  assignedBy: string | null;
432
- company?: {
433
- id: string;
434
- name: string;
435
- updatedAt: string | Date;
436
- createdAt: string | Date;
437
- } | null | undefined;
431
+ companyId: string | null;
438
432
  agent?: {
439
433
  id: string;
440
- updatedAt: string | Date;
441
- createdAt: string | Date;
442
- email: string;
443
434
  firstName: string;
444
435
  lastName: string;
445
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
446
- office?: {
447
- id: string;
448
- name: string;
449
- } | null | undefined;
436
+ email: string;
437
+ createdAt: string | Date;
438
+ updatedAt: string | Date;
450
439
  phoneNumbers?: {
451
440
  id: string;
452
441
  phoneNumber: string;
453
442
  description?: string | null | undefined;
454
443
  isPrimary?: boolean | undefined;
455
444
  }[] | undefined;
445
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
446
+ office?: {
447
+ id: string;
448
+ name: string;
449
+ } | null | undefined;
456
450
  canImpersonateUsers?: {
457
451
  id: string;
458
452
  firstName: string;
@@ -460,9 +454,15 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
460
454
  }[] | undefined;
461
455
  } | undefined;
462
456
  lead?: {
463
- name: string;
464
457
  phoneNumber: string;
458
+ name: string;
465
459
  } | undefined;
460
+ company?: {
461
+ id: string;
462
+ name: string;
463
+ createdAt: string | Date;
464
+ updatedAt: string | Date;
465
+ } | null | undefined;
466
466
  }>;
467
467
  next: z.ZodNullable<z.ZodObject<{
468
468
  id: z.ZodString;
@@ -471,11 +471,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
471
471
  name: z.ZodString;
472
472
  phoneNumber: z.ZodString;
473
473
  }, "strip", z.ZodTypeAny, {
474
- name: string;
475
474
  phoneNumber: string;
476
- }, {
477
475
  name: string;
476
+ }, {
478
477
  phoneNumber: string;
478
+ name: string;
479
479
  }>>;
480
480
  agentId: z.ZodNullable<z.ZodString>;
481
481
  agent: z.ZodOptional<z.ZodObject<{
@@ -527,17 +527,17 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
527
527
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
528
528
  }, "strip", z.ZodTypeAny, {
529
529
  id: string;
530
- updatedAt: string;
531
- createdAt: string;
532
- email: string;
533
530
  firstName: string;
534
531
  lastName: string;
532
+ email: string;
535
533
  phoneNumbers: {
536
534
  id: string;
537
535
  phoneNumber: string;
538
536
  isPrimary: boolean;
539
537
  description?: string | null | undefined;
540
538
  }[];
539
+ createdAt: string;
540
+ updatedAt: string;
541
541
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
542
542
  office?: {
543
543
  id: string;
@@ -550,22 +550,22 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
550
550
  }[] | undefined;
551
551
  }, {
552
552
  id: string;
553
- updatedAt: string | Date;
554
- createdAt: string | Date;
555
- email: string;
556
553
  firstName: string;
557
554
  lastName: string;
558
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
559
- office?: {
560
- id: string;
561
- name: string;
562
- } | null | undefined;
555
+ email: string;
556
+ createdAt: string | Date;
557
+ updatedAt: string | Date;
563
558
  phoneNumbers?: {
564
559
  id: string;
565
560
  phoneNumber: string;
566
561
  description?: string | null | undefined;
567
562
  isPrimary?: boolean | undefined;
568
563
  }[] | undefined;
564
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
565
+ office?: {
566
+ id: string;
567
+ name: string;
568
+ } | null | undefined;
569
569
  canImpersonateUsers?: {
570
570
  id: string;
571
571
  firstName: string;
@@ -584,45 +584,39 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
584
584
  }, "strip", z.ZodTypeAny, {
585
585
  id: string;
586
586
  name: string;
587
- updatedAt: string;
588
587
  createdAt: string;
588
+ updatedAt: string;
589
589
  }, {
590
590
  id: string;
591
591
  name: string;
592
- updatedAt: string | Date;
593
592
  createdAt: string | Date;
593
+ updatedAt: string | Date;
594
594
  }>>>;
595
595
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
596
596
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
597
597
  }, "strip", z.ZodTypeAny, {
598
598
  id: string;
599
- updatedAt: string;
600
- createdAt: string;
601
599
  status: LeadAssignmentStatus;
602
- companyId: string | null;
603
600
  agentId: string | null;
601
+ createdAt: string;
602
+ updatedAt: string;
604
603
  leadId: string;
605
604
  assignedAt: string;
606
605
  assignedBy: string | null;
607
- company?: {
608
- id: string;
609
- name: string;
610
- updatedAt: string;
611
- createdAt: string;
612
- } | null | undefined;
606
+ companyId: string | null;
613
607
  agent?: {
614
608
  id: string;
615
- updatedAt: string;
616
- createdAt: string;
617
- email: string;
618
609
  firstName: string;
619
610
  lastName: string;
611
+ email: string;
620
612
  phoneNumbers: {
621
613
  id: string;
622
614
  phoneNumber: string;
623
615
  isPrimary: boolean;
624
616
  description?: string | null | undefined;
625
617
  }[];
618
+ createdAt: string;
619
+ updatedAt: string;
626
620
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
627
621
  office?: {
628
622
  id: string;
@@ -635,43 +629,43 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
635
629
  }[] | undefined;
636
630
  } | undefined;
637
631
  lead?: {
638
- name: string;
639
632
  phoneNumber: string;
633
+ name: string;
640
634
  } | undefined;
635
+ company?: {
636
+ id: string;
637
+ name: string;
638
+ createdAt: string;
639
+ updatedAt: string;
640
+ } | null | undefined;
641
641
  }, {
642
642
  id: string;
643
- updatedAt: string | Date;
644
- createdAt: string | Date;
645
643
  status: LeadAssignmentStatus;
646
- companyId: string | null;
647
644
  agentId: string | null;
645
+ createdAt: string | Date;
646
+ updatedAt: string | Date;
648
647
  leadId: string;
649
648
  assignedAt: string | Date;
650
649
  assignedBy: string | null;
651
- company?: {
652
- id: string;
653
- name: string;
654
- updatedAt: string | Date;
655
- createdAt: string | Date;
656
- } | null | undefined;
650
+ companyId: string | null;
657
651
  agent?: {
658
652
  id: string;
659
- updatedAt: string | Date;
660
- createdAt: string | Date;
661
- email: string;
662
653
  firstName: string;
663
654
  lastName: string;
664
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
665
- office?: {
666
- id: string;
667
- name: string;
668
- } | null | undefined;
655
+ email: string;
656
+ createdAt: string | Date;
657
+ updatedAt: string | Date;
669
658
  phoneNumbers?: {
670
659
  id: string;
671
660
  phoneNumber: string;
672
661
  description?: string | null | undefined;
673
662
  isPrimary?: boolean | undefined;
674
663
  }[] | undefined;
664
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
665
+ office?: {
666
+ id: string;
667
+ name: string;
668
+ } | null | undefined;
675
669
  canImpersonateUsers?: {
676
670
  id: string;
677
671
  firstName: string;
@@ -679,40 +673,40 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
679
673
  }[] | undefined;
680
674
  } | undefined;
681
675
  lead?: {
682
- name: string;
683
676
  phoneNumber: string;
677
+ name: string;
684
678
  } | undefined;
679
+ company?: {
680
+ id: string;
681
+ name: string;
682
+ createdAt: string | Date;
683
+ updatedAt: string | Date;
684
+ } | null | undefined;
685
685
  }>>;
686
686
  }, "strip", z.ZodTypeAny, {
687
687
  completed: {
688
688
  id: string;
689
- updatedAt: string;
690
- createdAt: string;
691
689
  status: LeadAssignmentStatus;
692
- companyId: string | null;
693
690
  agentId: string | null;
691
+ createdAt: string;
692
+ updatedAt: string;
694
693
  leadId: string;
695
694
  assignedAt: string;
696
695
  assignedBy: string | null;
697
- company?: {
698
- id: string;
699
- name: string;
700
- updatedAt: string;
701
- createdAt: string;
702
- } | null | undefined;
696
+ companyId: string | null;
703
697
  agent?: {
704
698
  id: string;
705
- updatedAt: string;
706
- createdAt: string;
707
- email: string;
708
699
  firstName: string;
709
700
  lastName: string;
701
+ email: string;
710
702
  phoneNumbers: {
711
703
  id: string;
712
704
  phoneNumber: string;
713
705
  isPrimary: boolean;
714
706
  description?: string | null | undefined;
715
707
  }[];
708
+ createdAt: string;
709
+ updatedAt: string;
716
710
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
717
711
  office?: {
718
712
  id: string;
@@ -725,39 +719,39 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
725
719
  }[] | undefined;
726
720
  } | undefined;
727
721
  lead?: {
728
- name: string;
729
722
  phoneNumber: string;
723
+ name: string;
730
724
  } | undefined;
725
+ company?: {
726
+ id: string;
727
+ name: string;
728
+ createdAt: string;
729
+ updatedAt: string;
730
+ } | null | undefined;
731
731
  };
732
732
  next: {
733
733
  id: string;
734
- updatedAt: string;
735
- createdAt: string;
736
734
  status: LeadAssignmentStatus;
737
- companyId: string | null;
738
735
  agentId: string | null;
736
+ createdAt: string;
737
+ updatedAt: string;
739
738
  leadId: string;
740
739
  assignedAt: string;
741
740
  assignedBy: string | null;
742
- company?: {
743
- id: string;
744
- name: string;
745
- updatedAt: string;
746
- createdAt: string;
747
- } | null | undefined;
741
+ companyId: string | null;
748
742
  agent?: {
749
743
  id: string;
750
- updatedAt: string;
751
- createdAt: string;
752
- email: string;
753
744
  firstName: string;
754
745
  lastName: string;
746
+ email: string;
755
747
  phoneNumbers: {
756
748
  id: string;
757
749
  phoneNumber: string;
758
750
  isPrimary: boolean;
759
751
  description?: string | null | undefined;
760
752
  }[];
753
+ createdAt: string;
754
+ updatedAt: string;
761
755
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
762
756
  office?: {
763
757
  id: string;
@@ -770,45 +764,45 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
770
764
  }[] | undefined;
771
765
  } | undefined;
772
766
  lead?: {
773
- name: string;
774
767
  phoneNumber: string;
768
+ name: string;
775
769
  } | undefined;
770
+ company?: {
771
+ id: string;
772
+ name: string;
773
+ createdAt: string;
774
+ updatedAt: string;
775
+ } | null | undefined;
776
776
  } | null;
777
777
  }, {
778
778
  completed: {
779
779
  id: string;
780
- updatedAt: string | Date;
781
- createdAt: string | Date;
782
780
  status: LeadAssignmentStatus;
783
- companyId: string | null;
784
781
  agentId: string | null;
782
+ createdAt: string | Date;
783
+ updatedAt: string | Date;
785
784
  leadId: string;
786
785
  assignedAt: string | Date;
787
786
  assignedBy: string | null;
788
- company?: {
789
- id: string;
790
- name: string;
791
- updatedAt: string | Date;
792
- createdAt: string | Date;
793
- } | null | undefined;
787
+ companyId: string | null;
794
788
  agent?: {
795
789
  id: string;
796
- updatedAt: string | Date;
797
- createdAt: string | Date;
798
- email: string;
799
790
  firstName: string;
800
791
  lastName: string;
801
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
802
- office?: {
803
- id: string;
804
- name: string;
805
- } | null | undefined;
792
+ email: string;
793
+ createdAt: string | Date;
794
+ updatedAt: string | Date;
806
795
  phoneNumbers?: {
807
796
  id: string;
808
797
  phoneNumber: string;
809
798
  description?: string | null | undefined;
810
799
  isPrimary?: boolean | undefined;
811
800
  }[] | undefined;
801
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
802
+ office?: {
803
+ id: string;
804
+ name: string;
805
+ } | null | undefined;
812
806
  canImpersonateUsers?: {
813
807
  id: string;
814
808
  firstName: string;
@@ -816,44 +810,44 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
816
810
  }[] | undefined;
817
811
  } | undefined;
818
812
  lead?: {
819
- name: string;
820
813
  phoneNumber: string;
814
+ name: string;
821
815
  } | undefined;
816
+ company?: {
817
+ id: string;
818
+ name: string;
819
+ createdAt: string | Date;
820
+ updatedAt: string | Date;
821
+ } | null | undefined;
822
822
  };
823
823
  next: {
824
824
  id: string;
825
- updatedAt: string | Date;
826
- createdAt: string | Date;
827
825
  status: LeadAssignmentStatus;
828
- companyId: string | null;
829
826
  agentId: string | null;
827
+ createdAt: string | Date;
828
+ updatedAt: string | Date;
830
829
  leadId: string;
831
830
  assignedAt: string | Date;
832
831
  assignedBy: string | null;
833
- company?: {
834
- id: string;
835
- name: string;
836
- updatedAt: string | Date;
837
- createdAt: string | Date;
838
- } | null | undefined;
832
+ companyId: string | null;
839
833
  agent?: {
840
834
  id: string;
841
- updatedAt: string | Date;
842
- createdAt: string | Date;
843
- email: string;
844
835
  firstName: string;
845
836
  lastName: string;
846
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
847
- office?: {
848
- id: string;
849
- name: string;
850
- } | null | undefined;
837
+ email: string;
838
+ createdAt: string | Date;
839
+ updatedAt: string | Date;
851
840
  phoneNumbers?: {
852
841
  id: string;
853
842
  phoneNumber: string;
854
843
  description?: string | null | undefined;
855
844
  isPrimary?: boolean | undefined;
856
845
  }[] | undefined;
846
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
847
+ office?: {
848
+ id: string;
849
+ name: string;
850
+ } | null | undefined;
857
851
  canImpersonateUsers?: {
858
852
  id: string;
859
853
  firstName: string;
@@ -861,9 +855,15 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
861
855
  }[] | undefined;
862
856
  } | undefined;
863
857
  lead?: {
864
- name: string;
865
858
  phoneNumber: string;
859
+ name: string;
866
860
  } | undefined;
861
+ company?: {
862
+ id: string;
863
+ name: string;
864
+ createdAt: string | Date;
865
+ updatedAt: string | Date;
866
+ } | null | undefined;
867
867
  } | null;
868
868
  }>;
869
869
  export declare const QueueStatusSchema: z.ZodObject<{
@@ -1041,11 +1041,11 @@ export declare const leadAssignmentsContract: {
1041
1041
  name: z.ZodString;
1042
1042
  phoneNumber: z.ZodString;
1043
1043
  }, "strip", z.ZodTypeAny, {
1044
- name: string;
1045
1044
  phoneNumber: string;
1046
- }, {
1047
1045
  name: string;
1046
+ }, {
1048
1047
  phoneNumber: string;
1048
+ name: string;
1049
1049
  }>>;
1050
1050
  agentId: z.ZodNullable<z.ZodString>;
1051
1051
  agent: z.ZodOptional<z.ZodObject<{
@@ -1097,17 +1097,17 @@ export declare const leadAssignmentsContract: {
1097
1097
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1098
1098
  }, "strip", z.ZodTypeAny, {
1099
1099
  id: string;
1100
- updatedAt: string;
1101
- createdAt: string;
1102
- email: string;
1103
1100
  firstName: string;
1104
1101
  lastName: string;
1102
+ email: string;
1105
1103
  phoneNumbers: {
1106
1104
  id: string;
1107
1105
  phoneNumber: string;
1108
1106
  isPrimary: boolean;
1109
1107
  description?: string | null | undefined;
1110
1108
  }[];
1109
+ createdAt: string;
1110
+ updatedAt: string;
1111
1111
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1112
1112
  office?: {
1113
1113
  id: string;
@@ -1120,22 +1120,22 @@ export declare const leadAssignmentsContract: {
1120
1120
  }[] | undefined;
1121
1121
  }, {
1122
1122
  id: string;
1123
- updatedAt: string | Date;
1124
- createdAt: string | Date;
1125
- email: string;
1126
1123
  firstName: string;
1127
1124
  lastName: string;
1128
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1129
- office?: {
1130
- id: string;
1131
- name: string;
1132
- } | null | undefined;
1125
+ email: string;
1126
+ createdAt: string | Date;
1127
+ updatedAt: string | Date;
1133
1128
  phoneNumbers?: {
1134
1129
  id: string;
1135
1130
  phoneNumber: string;
1136
1131
  description?: string | null | undefined;
1137
1132
  isPrimary?: boolean | undefined;
1138
1133
  }[] | undefined;
1134
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1135
+ office?: {
1136
+ id: string;
1137
+ name: string;
1138
+ } | null | undefined;
1139
1139
  canImpersonateUsers?: {
1140
1140
  id: string;
1141
1141
  firstName: string;
@@ -1154,45 +1154,39 @@ export declare const leadAssignmentsContract: {
1154
1154
  }, "strip", z.ZodTypeAny, {
1155
1155
  id: string;
1156
1156
  name: string;
1157
- updatedAt: string;
1158
1157
  createdAt: string;
1158
+ updatedAt: string;
1159
1159
  }, {
1160
1160
  id: string;
1161
1161
  name: string;
1162
- updatedAt: string | Date;
1163
1162
  createdAt: string | Date;
1163
+ updatedAt: string | Date;
1164
1164
  }>>>;
1165
1165
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1166
1166
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1167
1167
  }, "strip", z.ZodTypeAny, {
1168
1168
  id: string;
1169
- updatedAt: string;
1170
- createdAt: string;
1171
1169
  status: LeadAssignmentStatus;
1172
- companyId: string | null;
1173
1170
  agentId: string | null;
1171
+ createdAt: string;
1172
+ updatedAt: string;
1174
1173
  leadId: string;
1175
1174
  assignedAt: string;
1176
1175
  assignedBy: string | null;
1177
- company?: {
1178
- id: string;
1179
- name: string;
1180
- updatedAt: string;
1181
- createdAt: string;
1182
- } | null | undefined;
1176
+ companyId: string | null;
1183
1177
  agent?: {
1184
1178
  id: string;
1185
- updatedAt: string;
1186
- createdAt: string;
1187
- email: string;
1188
1179
  firstName: string;
1189
1180
  lastName: string;
1181
+ email: string;
1190
1182
  phoneNumbers: {
1191
1183
  id: string;
1192
1184
  phoneNumber: string;
1193
1185
  isPrimary: boolean;
1194
1186
  description?: string | null | undefined;
1195
1187
  }[];
1188
+ createdAt: string;
1189
+ updatedAt: string;
1196
1190
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1197
1191
  office?: {
1198
1192
  id: string;
@@ -1205,43 +1199,43 @@ export declare const leadAssignmentsContract: {
1205
1199
  }[] | undefined;
1206
1200
  } | undefined;
1207
1201
  lead?: {
1208
- name: string;
1209
1202
  phoneNumber: string;
1203
+ name: string;
1210
1204
  } | undefined;
1205
+ company?: {
1206
+ id: string;
1207
+ name: string;
1208
+ createdAt: string;
1209
+ updatedAt: string;
1210
+ } | null | undefined;
1211
1211
  }, {
1212
1212
  id: string;
1213
- updatedAt: string | Date;
1214
- createdAt: string | Date;
1215
1213
  status: LeadAssignmentStatus;
1216
- companyId: string | null;
1217
1214
  agentId: string | null;
1215
+ createdAt: string | Date;
1216
+ updatedAt: string | Date;
1218
1217
  leadId: string;
1219
1218
  assignedAt: string | Date;
1220
1219
  assignedBy: string | null;
1221
- company?: {
1222
- id: string;
1223
- name: string;
1224
- updatedAt: string | Date;
1225
- createdAt: string | Date;
1226
- } | null | undefined;
1227
- agent?: {
1228
- id: string;
1229
- updatedAt: string | Date;
1230
- createdAt: string | Date;
1231
- email: string;
1232
- firstName: string;
1233
- lastName: string;
1234
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1235
- office?: {
1236
- id: string;
1237
- name: string;
1238
- } | null | undefined;
1220
+ companyId: string | null;
1221
+ agent?: {
1222
+ id: string;
1223
+ firstName: string;
1224
+ lastName: string;
1225
+ email: string;
1226
+ createdAt: string | Date;
1227
+ updatedAt: string | Date;
1239
1228
  phoneNumbers?: {
1240
1229
  id: string;
1241
1230
  phoneNumber: string;
1242
1231
  description?: string | null | undefined;
1243
1232
  isPrimary?: boolean | undefined;
1244
1233
  }[] | undefined;
1234
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1235
+ office?: {
1236
+ id: string;
1237
+ name: string;
1238
+ } | null | undefined;
1245
1239
  canImpersonateUsers?: {
1246
1240
  id: string;
1247
1241
  firstName: string;
@@ -1249,9 +1243,15 @@ export declare const leadAssignmentsContract: {
1249
1243
  }[] | undefined;
1250
1244
  } | undefined;
1251
1245
  lead?: {
1252
- name: string;
1253
1246
  phoneNumber: string;
1247
+ name: string;
1254
1248
  } | undefined;
1249
+ company?: {
1250
+ id: string;
1251
+ name: string;
1252
+ createdAt: string | Date;
1253
+ updatedAt: string | Date;
1254
+ } | null | undefined;
1255
1255
  }>;
1256
1256
  next: z.ZodNullable<z.ZodObject<{
1257
1257
  id: z.ZodString;
@@ -1260,11 +1260,11 @@ export declare const leadAssignmentsContract: {
1260
1260
  name: z.ZodString;
1261
1261
  phoneNumber: z.ZodString;
1262
1262
  }, "strip", z.ZodTypeAny, {
1263
- name: string;
1264
1263
  phoneNumber: string;
1265
- }, {
1266
1264
  name: string;
1265
+ }, {
1267
1266
  phoneNumber: string;
1267
+ name: string;
1268
1268
  }>>;
1269
1269
  agentId: z.ZodNullable<z.ZodString>;
1270
1270
  agent: z.ZodOptional<z.ZodObject<{
@@ -1316,17 +1316,17 @@ export declare const leadAssignmentsContract: {
1316
1316
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1317
1317
  }, "strip", z.ZodTypeAny, {
1318
1318
  id: string;
1319
- updatedAt: string;
1320
- createdAt: string;
1321
- email: string;
1322
1319
  firstName: string;
1323
1320
  lastName: string;
1321
+ email: string;
1324
1322
  phoneNumbers: {
1325
1323
  id: string;
1326
1324
  phoneNumber: string;
1327
1325
  isPrimary: boolean;
1328
1326
  description?: string | null | undefined;
1329
1327
  }[];
1328
+ createdAt: string;
1329
+ updatedAt: string;
1330
1330
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1331
1331
  office?: {
1332
1332
  id: string;
@@ -1339,22 +1339,22 @@ export declare const leadAssignmentsContract: {
1339
1339
  }[] | undefined;
1340
1340
  }, {
1341
1341
  id: string;
1342
- updatedAt: string | Date;
1343
- createdAt: string | Date;
1344
- email: string;
1345
1342
  firstName: string;
1346
1343
  lastName: string;
1347
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1348
- office?: {
1349
- id: string;
1350
- name: string;
1351
- } | null | undefined;
1344
+ email: string;
1345
+ createdAt: string | Date;
1346
+ updatedAt: string | Date;
1352
1347
  phoneNumbers?: {
1353
1348
  id: string;
1354
1349
  phoneNumber: string;
1355
1350
  description?: string | null | undefined;
1356
1351
  isPrimary?: boolean | undefined;
1357
1352
  }[] | undefined;
1353
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1354
+ office?: {
1355
+ id: string;
1356
+ name: string;
1357
+ } | null | undefined;
1358
1358
  canImpersonateUsers?: {
1359
1359
  id: string;
1360
1360
  firstName: string;
@@ -1373,45 +1373,39 @@ export declare const leadAssignmentsContract: {
1373
1373
  }, "strip", z.ZodTypeAny, {
1374
1374
  id: string;
1375
1375
  name: string;
1376
- updatedAt: string;
1377
1376
  createdAt: string;
1377
+ updatedAt: string;
1378
1378
  }, {
1379
1379
  id: string;
1380
1380
  name: string;
1381
- updatedAt: string | Date;
1382
1381
  createdAt: string | Date;
1382
+ updatedAt: string | Date;
1383
1383
  }>>>;
1384
1384
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1385
1385
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1386
1386
  }, "strip", z.ZodTypeAny, {
1387
1387
  id: string;
1388
- updatedAt: string;
1389
- createdAt: string;
1390
1388
  status: LeadAssignmentStatus;
1391
- companyId: string | null;
1392
1389
  agentId: string | null;
1390
+ createdAt: string;
1391
+ updatedAt: string;
1393
1392
  leadId: string;
1394
1393
  assignedAt: string;
1395
1394
  assignedBy: string | null;
1396
- company?: {
1397
- id: string;
1398
- name: string;
1399
- updatedAt: string;
1400
- createdAt: string;
1401
- } | null | undefined;
1395
+ companyId: string | null;
1402
1396
  agent?: {
1403
1397
  id: string;
1404
- updatedAt: string;
1405
- createdAt: string;
1406
- email: string;
1407
1398
  firstName: string;
1408
1399
  lastName: string;
1400
+ email: string;
1409
1401
  phoneNumbers: {
1410
1402
  id: string;
1411
1403
  phoneNumber: string;
1412
1404
  isPrimary: boolean;
1413
1405
  description?: string | null | undefined;
1414
1406
  }[];
1407
+ createdAt: string;
1408
+ updatedAt: string;
1415
1409
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1416
1410
  office?: {
1417
1411
  id: string;
@@ -1424,43 +1418,43 @@ export declare const leadAssignmentsContract: {
1424
1418
  }[] | undefined;
1425
1419
  } | undefined;
1426
1420
  lead?: {
1427
- name: string;
1428
1421
  phoneNumber: string;
1422
+ name: string;
1429
1423
  } | undefined;
1424
+ company?: {
1425
+ id: string;
1426
+ name: string;
1427
+ createdAt: string;
1428
+ updatedAt: string;
1429
+ } | null | undefined;
1430
1430
  }, {
1431
1431
  id: string;
1432
- updatedAt: string | Date;
1433
- createdAt: string | Date;
1434
1432
  status: LeadAssignmentStatus;
1435
- companyId: string | null;
1436
1433
  agentId: string | null;
1434
+ createdAt: string | Date;
1435
+ updatedAt: string | Date;
1437
1436
  leadId: string;
1438
1437
  assignedAt: string | Date;
1439
1438
  assignedBy: string | null;
1440
- company?: {
1441
- id: string;
1442
- name: string;
1443
- updatedAt: string | Date;
1444
- createdAt: string | Date;
1445
- } | null | undefined;
1439
+ companyId: string | null;
1446
1440
  agent?: {
1447
1441
  id: string;
1448
- updatedAt: string | Date;
1449
- createdAt: string | Date;
1450
- email: string;
1451
1442
  firstName: string;
1452
1443
  lastName: string;
1453
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1454
- office?: {
1455
- id: string;
1456
- name: string;
1457
- } | null | undefined;
1444
+ email: string;
1445
+ createdAt: string | Date;
1446
+ updatedAt: string | Date;
1458
1447
  phoneNumbers?: {
1459
1448
  id: string;
1460
1449
  phoneNumber: string;
1461
1450
  description?: string | null | undefined;
1462
1451
  isPrimary?: boolean | undefined;
1463
1452
  }[] | undefined;
1453
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1454
+ office?: {
1455
+ id: string;
1456
+ name: string;
1457
+ } | null | undefined;
1464
1458
  canImpersonateUsers?: {
1465
1459
  id: string;
1466
1460
  firstName: string;
@@ -1468,40 +1462,40 @@ export declare const leadAssignmentsContract: {
1468
1462
  }[] | undefined;
1469
1463
  } | undefined;
1470
1464
  lead?: {
1471
- name: string;
1472
1465
  phoneNumber: string;
1466
+ name: string;
1473
1467
  } | undefined;
1468
+ company?: {
1469
+ id: string;
1470
+ name: string;
1471
+ createdAt: string | Date;
1472
+ updatedAt: string | Date;
1473
+ } | null | undefined;
1474
1474
  }>>;
1475
1475
  }, "strip", z.ZodTypeAny, {
1476
1476
  completed: {
1477
1477
  id: string;
1478
- updatedAt: string;
1479
- createdAt: string;
1480
1478
  status: LeadAssignmentStatus;
1481
- companyId: string | null;
1482
1479
  agentId: string | null;
1480
+ createdAt: string;
1481
+ updatedAt: string;
1483
1482
  leadId: string;
1484
1483
  assignedAt: string;
1485
1484
  assignedBy: string | null;
1486
- company?: {
1487
- id: string;
1488
- name: string;
1489
- updatedAt: string;
1490
- createdAt: string;
1491
- } | null | undefined;
1485
+ companyId: string | null;
1492
1486
  agent?: {
1493
1487
  id: string;
1494
- updatedAt: string;
1495
- createdAt: string;
1496
- email: string;
1497
1488
  firstName: string;
1498
1489
  lastName: string;
1490
+ email: string;
1499
1491
  phoneNumbers: {
1500
1492
  id: string;
1501
1493
  phoneNumber: string;
1502
1494
  isPrimary: boolean;
1503
1495
  description?: string | null | undefined;
1504
1496
  }[];
1497
+ createdAt: string;
1498
+ updatedAt: string;
1505
1499
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1506
1500
  office?: {
1507
1501
  id: string;
@@ -1514,39 +1508,39 @@ export declare const leadAssignmentsContract: {
1514
1508
  }[] | undefined;
1515
1509
  } | undefined;
1516
1510
  lead?: {
1517
- name: string;
1518
1511
  phoneNumber: string;
1512
+ name: string;
1519
1513
  } | undefined;
1514
+ company?: {
1515
+ id: string;
1516
+ name: string;
1517
+ createdAt: string;
1518
+ updatedAt: string;
1519
+ } | null | undefined;
1520
1520
  };
1521
1521
  next: {
1522
1522
  id: string;
1523
- updatedAt: string;
1524
- createdAt: string;
1525
1523
  status: LeadAssignmentStatus;
1526
- companyId: string | null;
1527
1524
  agentId: string | null;
1525
+ createdAt: string;
1526
+ updatedAt: string;
1528
1527
  leadId: string;
1529
1528
  assignedAt: string;
1530
1529
  assignedBy: string | null;
1531
- company?: {
1532
- id: string;
1533
- name: string;
1534
- updatedAt: string;
1535
- createdAt: string;
1536
- } | null | undefined;
1530
+ companyId: string | null;
1537
1531
  agent?: {
1538
1532
  id: string;
1539
- updatedAt: string;
1540
- createdAt: string;
1541
- email: string;
1542
1533
  firstName: string;
1543
1534
  lastName: string;
1535
+ email: string;
1544
1536
  phoneNumbers: {
1545
1537
  id: string;
1546
1538
  phoneNumber: string;
1547
1539
  isPrimary: boolean;
1548
1540
  description?: string | null | undefined;
1549
1541
  }[];
1542
+ createdAt: string;
1543
+ updatedAt: string;
1550
1544
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1551
1545
  office?: {
1552
1546
  id: string;
@@ -1559,45 +1553,45 @@ export declare const leadAssignmentsContract: {
1559
1553
  }[] | undefined;
1560
1554
  } | undefined;
1561
1555
  lead?: {
1562
- name: string;
1563
1556
  phoneNumber: string;
1557
+ name: string;
1564
1558
  } | undefined;
1559
+ company?: {
1560
+ id: string;
1561
+ name: string;
1562
+ createdAt: string;
1563
+ updatedAt: string;
1564
+ } | null | undefined;
1565
1565
  } | null;
1566
1566
  }, {
1567
1567
  completed: {
1568
1568
  id: string;
1569
- updatedAt: string | Date;
1570
- createdAt: string | Date;
1571
1569
  status: LeadAssignmentStatus;
1572
- companyId: string | null;
1573
1570
  agentId: string | null;
1571
+ createdAt: string | Date;
1572
+ updatedAt: string | Date;
1574
1573
  leadId: string;
1575
1574
  assignedAt: string | Date;
1576
1575
  assignedBy: string | null;
1577
- company?: {
1578
- id: string;
1579
- name: string;
1580
- updatedAt: string | Date;
1581
- createdAt: string | Date;
1582
- } | null | undefined;
1576
+ companyId: string | null;
1583
1577
  agent?: {
1584
1578
  id: string;
1585
- updatedAt: string | Date;
1586
- createdAt: string | Date;
1587
- email: string;
1588
1579
  firstName: string;
1589
1580
  lastName: string;
1590
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1591
- office?: {
1592
- id: string;
1593
- name: string;
1594
- } | null | undefined;
1581
+ email: string;
1582
+ createdAt: string | Date;
1583
+ updatedAt: string | Date;
1595
1584
  phoneNumbers?: {
1596
1585
  id: string;
1597
1586
  phoneNumber: string;
1598
1587
  description?: string | null | undefined;
1599
1588
  isPrimary?: boolean | undefined;
1600
1589
  }[] | undefined;
1590
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1591
+ office?: {
1592
+ id: string;
1593
+ name: string;
1594
+ } | null | undefined;
1601
1595
  canImpersonateUsers?: {
1602
1596
  id: string;
1603
1597
  firstName: string;
@@ -1605,44 +1599,44 @@ export declare const leadAssignmentsContract: {
1605
1599
  }[] | undefined;
1606
1600
  } | undefined;
1607
1601
  lead?: {
1608
- name: string;
1609
1602
  phoneNumber: string;
1603
+ name: string;
1610
1604
  } | undefined;
1605
+ company?: {
1606
+ id: string;
1607
+ name: string;
1608
+ createdAt: string | Date;
1609
+ updatedAt: string | Date;
1610
+ } | null | undefined;
1611
1611
  };
1612
1612
  next: {
1613
1613
  id: string;
1614
- updatedAt: string | Date;
1615
- createdAt: string | Date;
1616
1614
  status: LeadAssignmentStatus;
1617
- companyId: string | null;
1618
1615
  agentId: string | null;
1616
+ createdAt: string | Date;
1617
+ updatedAt: string | Date;
1619
1618
  leadId: string;
1620
1619
  assignedAt: string | Date;
1621
1620
  assignedBy: string | null;
1622
- company?: {
1623
- id: string;
1624
- name: string;
1625
- updatedAt: string | Date;
1626
- createdAt: string | Date;
1627
- } | null | undefined;
1621
+ companyId: string | null;
1628
1622
  agent?: {
1629
1623
  id: string;
1630
- updatedAt: string | Date;
1631
- createdAt: string | Date;
1632
- email: string;
1633
1624
  firstName: string;
1634
1625
  lastName: string;
1635
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1636
- office?: {
1637
- id: string;
1638
- name: string;
1639
- } | null | undefined;
1626
+ email: string;
1627
+ createdAt: string | Date;
1628
+ updatedAt: string | Date;
1640
1629
  phoneNumbers?: {
1641
1630
  id: string;
1642
1631
  phoneNumber: string;
1643
1632
  description?: string | null | undefined;
1644
1633
  isPrimary?: boolean | undefined;
1645
1634
  }[] | undefined;
1635
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1636
+ office?: {
1637
+ id: string;
1638
+ name: string;
1639
+ } | null | undefined;
1646
1640
  canImpersonateUsers?: {
1647
1641
  id: string;
1648
1642
  firstName: string;
@@ -1650,9 +1644,15 @@ export declare const leadAssignmentsContract: {
1650
1644
  }[] | undefined;
1651
1645
  } | undefined;
1652
1646
  lead?: {
1653
- name: string;
1654
1647
  phoneNumber: string;
1648
+ name: string;
1655
1649
  } | undefined;
1650
+ company?: {
1651
+ id: string;
1652
+ name: string;
1653
+ createdAt: string | Date;
1654
+ updatedAt: string | Date;
1655
+ } | null | undefined;
1656
1656
  } | null;
1657
1657
  }>>;
1658
1658
  404: z.ZodObject<{
@@ -1797,11 +1797,11 @@ export declare const leadAssignmentsContract: {
1797
1797
  name: z.ZodString;
1798
1798
  phoneNumber: z.ZodString;
1799
1799
  }, "strip", z.ZodTypeAny, {
1800
- name: string;
1801
1800
  phoneNumber: string;
1802
- }, {
1803
1801
  name: string;
1802
+ }, {
1804
1803
  phoneNumber: string;
1804
+ name: string;
1805
1805
  }>>;
1806
1806
  agentId: z.ZodNullable<z.ZodString>;
1807
1807
  agent: z.ZodOptional<z.ZodObject<{
@@ -1853,17 +1853,17 @@ export declare const leadAssignmentsContract: {
1853
1853
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1854
1854
  }, "strip", z.ZodTypeAny, {
1855
1855
  id: string;
1856
- updatedAt: string;
1857
- createdAt: string;
1858
- email: string;
1859
1856
  firstName: string;
1860
1857
  lastName: string;
1858
+ email: string;
1861
1859
  phoneNumbers: {
1862
1860
  id: string;
1863
1861
  phoneNumber: string;
1864
1862
  isPrimary: boolean;
1865
1863
  description?: string | null | undefined;
1866
1864
  }[];
1865
+ createdAt: string;
1866
+ updatedAt: string;
1867
1867
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1868
1868
  office?: {
1869
1869
  id: string;
@@ -1876,22 +1876,22 @@ export declare const leadAssignmentsContract: {
1876
1876
  }[] | undefined;
1877
1877
  }, {
1878
1878
  id: string;
1879
- updatedAt: string | Date;
1880
- createdAt: string | Date;
1881
- email: string;
1882
1879
  firstName: string;
1883
1880
  lastName: string;
1884
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1885
- office?: {
1886
- id: string;
1887
- name: string;
1888
- } | null | undefined;
1881
+ email: string;
1882
+ createdAt: string | Date;
1883
+ updatedAt: string | Date;
1889
1884
  phoneNumbers?: {
1890
1885
  id: string;
1891
1886
  phoneNumber: string;
1892
1887
  description?: string | null | undefined;
1893
1888
  isPrimary?: boolean | undefined;
1894
1889
  }[] | undefined;
1890
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1891
+ office?: {
1892
+ id: string;
1893
+ name: string;
1894
+ } | null | undefined;
1895
1895
  canImpersonateUsers?: {
1896
1896
  id: string;
1897
1897
  firstName: string;
@@ -1910,45 +1910,39 @@ export declare const leadAssignmentsContract: {
1910
1910
  }, "strip", z.ZodTypeAny, {
1911
1911
  id: string;
1912
1912
  name: string;
1913
- updatedAt: string;
1914
1913
  createdAt: string;
1914
+ updatedAt: string;
1915
1915
  }, {
1916
1916
  id: string;
1917
1917
  name: string;
1918
- updatedAt: string | Date;
1919
1918
  createdAt: string | Date;
1919
+ updatedAt: string | Date;
1920
1920
  }>>>;
1921
1921
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1922
1922
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1923
1923
  }, "strip", z.ZodTypeAny, {
1924
1924
  id: string;
1925
- updatedAt: string;
1926
- createdAt: string;
1927
1925
  status: LeadAssignmentStatus;
1928
- companyId: string | null;
1929
1926
  agentId: string | null;
1927
+ createdAt: string;
1928
+ updatedAt: string;
1930
1929
  leadId: string;
1931
1930
  assignedAt: string;
1932
1931
  assignedBy: string | null;
1933
- company?: {
1934
- id: string;
1935
- name: string;
1936
- updatedAt: string;
1937
- createdAt: string;
1938
- } | null | undefined;
1932
+ companyId: string | null;
1939
1933
  agent?: {
1940
1934
  id: string;
1941
- updatedAt: string;
1942
- createdAt: string;
1943
- email: string;
1944
1935
  firstName: string;
1945
1936
  lastName: string;
1937
+ email: string;
1946
1938
  phoneNumbers: {
1947
1939
  id: string;
1948
1940
  phoneNumber: string;
1949
1941
  isPrimary: boolean;
1950
1942
  description?: string | null | undefined;
1951
1943
  }[];
1944
+ createdAt: string;
1945
+ updatedAt: string;
1952
1946
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1953
1947
  office?: {
1954
1948
  id: string;
@@ -1961,43 +1955,43 @@ export declare const leadAssignmentsContract: {
1961
1955
  }[] | undefined;
1962
1956
  } | undefined;
1963
1957
  lead?: {
1964
- name: string;
1965
1958
  phoneNumber: string;
1959
+ name: string;
1966
1960
  } | undefined;
1961
+ company?: {
1962
+ id: string;
1963
+ name: string;
1964
+ createdAt: string;
1965
+ updatedAt: string;
1966
+ } | null | undefined;
1967
1967
  }, {
1968
1968
  id: string;
1969
- updatedAt: string | Date;
1970
- createdAt: string | Date;
1971
1969
  status: LeadAssignmentStatus;
1972
- companyId: string | null;
1973
1970
  agentId: string | null;
1971
+ createdAt: string | Date;
1972
+ updatedAt: string | Date;
1974
1973
  leadId: string;
1975
1974
  assignedAt: string | Date;
1976
1975
  assignedBy: string | null;
1977
- company?: {
1978
- id: string;
1979
- name: string;
1980
- updatedAt: string | Date;
1981
- createdAt: string | Date;
1982
- } | null | undefined;
1976
+ companyId: string | null;
1983
1977
  agent?: {
1984
1978
  id: string;
1985
- updatedAt: string | Date;
1986
- createdAt: string | Date;
1987
- email: string;
1988
1979
  firstName: string;
1989
1980
  lastName: string;
1990
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1991
- office?: {
1992
- id: string;
1993
- name: string;
1994
- } | null | undefined;
1981
+ email: string;
1982
+ createdAt: string | Date;
1983
+ updatedAt: string | Date;
1995
1984
  phoneNumbers?: {
1996
1985
  id: string;
1997
1986
  phoneNumber: string;
1998
1987
  description?: string | null | undefined;
1999
1988
  isPrimary?: boolean | undefined;
2000
1989
  }[] | undefined;
1990
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1991
+ office?: {
1992
+ id: string;
1993
+ name: string;
1994
+ } | null | undefined;
2001
1995
  canImpersonateUsers?: {
2002
1996
  id: string;
2003
1997
  firstName: string;
@@ -2005,9 +1999,15 @@ export declare const leadAssignmentsContract: {
2005
1999
  }[] | undefined;
2006
2000
  } | undefined;
2007
2001
  lead?: {
2008
- name: string;
2009
2002
  phoneNumber: string;
2003
+ name: string;
2010
2004
  } | undefined;
2005
+ company?: {
2006
+ id: string;
2007
+ name: string;
2008
+ createdAt: string | Date;
2009
+ updatedAt: string | Date;
2010
+ } | null | undefined;
2011
2011
  }>>;
2012
2012
  };
2013
2013
  };
@@ -2134,11 +2134,11 @@ export declare const leadAssignmentsContract: {
2134
2134
  name: z.ZodString;
2135
2135
  phoneNumber: z.ZodString;
2136
2136
  }, "strip", z.ZodTypeAny, {
2137
- name: string;
2138
2137
  phoneNumber: string;
2139
- }, {
2140
2138
  name: string;
2139
+ }, {
2141
2140
  phoneNumber: string;
2141
+ name: string;
2142
2142
  }>>;
2143
2143
  agentId: z.ZodNullable<z.ZodString>;
2144
2144
  agent: z.ZodOptional<z.ZodObject<{
@@ -2190,17 +2190,17 @@ export declare const leadAssignmentsContract: {
2190
2190
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2191
2191
  }, "strip", z.ZodTypeAny, {
2192
2192
  id: string;
2193
- updatedAt: string;
2194
- createdAt: string;
2195
- email: string;
2196
2193
  firstName: string;
2197
2194
  lastName: string;
2195
+ email: string;
2198
2196
  phoneNumbers: {
2199
2197
  id: string;
2200
2198
  phoneNumber: string;
2201
2199
  isPrimary: boolean;
2202
2200
  description?: string | null | undefined;
2203
2201
  }[];
2202
+ createdAt: string;
2203
+ updatedAt: string;
2204
2204
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2205
2205
  office?: {
2206
2206
  id: string;
@@ -2213,22 +2213,22 @@ export declare const leadAssignmentsContract: {
2213
2213
  }[] | undefined;
2214
2214
  }, {
2215
2215
  id: string;
2216
- updatedAt: string | Date;
2217
- createdAt: string | Date;
2218
- email: string;
2219
2216
  firstName: string;
2220
2217
  lastName: string;
2221
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2222
- office?: {
2223
- id: string;
2224
- name: string;
2225
- } | null | undefined;
2218
+ email: string;
2219
+ createdAt: string | Date;
2220
+ updatedAt: string | Date;
2226
2221
  phoneNumbers?: {
2227
2222
  id: string;
2228
2223
  phoneNumber: string;
2229
2224
  description?: string | null | undefined;
2230
2225
  isPrimary?: boolean | undefined;
2231
2226
  }[] | undefined;
2227
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2228
+ office?: {
2229
+ id: string;
2230
+ name: string;
2231
+ } | null | undefined;
2232
2232
  canImpersonateUsers?: {
2233
2233
  id: string;
2234
2234
  firstName: string;
@@ -2247,45 +2247,39 @@ export declare const leadAssignmentsContract: {
2247
2247
  }, "strip", z.ZodTypeAny, {
2248
2248
  id: string;
2249
2249
  name: string;
2250
- updatedAt: string;
2251
2250
  createdAt: string;
2251
+ updatedAt: string;
2252
2252
  }, {
2253
2253
  id: string;
2254
2254
  name: string;
2255
- updatedAt: string | Date;
2256
2255
  createdAt: string | Date;
2256
+ updatedAt: string | Date;
2257
2257
  }>>>;
2258
2258
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2259
2259
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2260
2260
  }, "strip", z.ZodTypeAny, {
2261
2261
  id: string;
2262
- updatedAt: string;
2263
- createdAt: string;
2264
2262
  status: LeadAssignmentStatus;
2265
- companyId: string | null;
2266
2263
  agentId: string | null;
2264
+ createdAt: string;
2265
+ updatedAt: string;
2267
2266
  leadId: string;
2268
2267
  assignedAt: string;
2269
2268
  assignedBy: string | null;
2270
- company?: {
2271
- id: string;
2272
- name: string;
2273
- updatedAt: string;
2274
- createdAt: string;
2275
- } | null | undefined;
2269
+ companyId: string | null;
2276
2270
  agent?: {
2277
2271
  id: string;
2278
- updatedAt: string;
2279
- createdAt: string;
2280
- email: string;
2281
2272
  firstName: string;
2282
2273
  lastName: string;
2274
+ email: string;
2283
2275
  phoneNumbers: {
2284
2276
  id: string;
2285
2277
  phoneNumber: string;
2286
2278
  isPrimary: boolean;
2287
2279
  description?: string | null | undefined;
2288
2280
  }[];
2281
+ createdAt: string;
2282
+ updatedAt: string;
2289
2283
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2290
2284
  office?: {
2291
2285
  id: string;
@@ -2298,43 +2292,43 @@ export declare const leadAssignmentsContract: {
2298
2292
  }[] | undefined;
2299
2293
  } | undefined;
2300
2294
  lead?: {
2301
- name: string;
2302
2295
  phoneNumber: string;
2296
+ name: string;
2303
2297
  } | undefined;
2298
+ company?: {
2299
+ id: string;
2300
+ name: string;
2301
+ createdAt: string;
2302
+ updatedAt: string;
2303
+ } | null | undefined;
2304
2304
  }, {
2305
2305
  id: string;
2306
- updatedAt: string | Date;
2307
- createdAt: string | Date;
2308
2306
  status: LeadAssignmentStatus;
2309
- companyId: string | null;
2310
2307
  agentId: string | null;
2308
+ createdAt: string | Date;
2309
+ updatedAt: string | Date;
2311
2310
  leadId: string;
2312
2311
  assignedAt: string | Date;
2313
2312
  assignedBy: string | null;
2314
- company?: {
2315
- id: string;
2316
- name: string;
2317
- updatedAt: string | Date;
2318
- createdAt: string | Date;
2319
- } | null | undefined;
2313
+ companyId: string | null;
2320
2314
  agent?: {
2321
2315
  id: string;
2322
- updatedAt: string | Date;
2323
- createdAt: string | Date;
2324
- email: string;
2325
2316
  firstName: string;
2326
2317
  lastName: string;
2327
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2328
- office?: {
2329
- id: string;
2330
- name: string;
2331
- } | null | undefined;
2318
+ email: string;
2319
+ createdAt: string | Date;
2320
+ updatedAt: string | Date;
2332
2321
  phoneNumbers?: {
2333
2322
  id: string;
2334
2323
  phoneNumber: string;
2335
2324
  description?: string | null | undefined;
2336
2325
  isPrimary?: boolean | undefined;
2337
2326
  }[] | undefined;
2327
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2328
+ office?: {
2329
+ id: string;
2330
+ name: string;
2331
+ } | null | undefined;
2338
2332
  canImpersonateUsers?: {
2339
2333
  id: string;
2340
2334
  firstName: string;
@@ -2342,9 +2336,15 @@ export declare const leadAssignmentsContract: {
2342
2336
  }[] | undefined;
2343
2337
  } | undefined;
2344
2338
  lead?: {
2345
- name: string;
2346
2339
  phoneNumber: string;
2340
+ name: string;
2347
2341
  } | undefined;
2342
+ company?: {
2343
+ id: string;
2344
+ name: string;
2345
+ createdAt: string | Date;
2346
+ updatedAt: string | Date;
2347
+ } | null | undefined;
2348
2348
  }>;
2349
2349
  404: z.ZodObject<{
2350
2350
  statusCode: z.ZodNumber;
@@ -2495,11 +2495,11 @@ export declare const leadAssignmentsContract: {
2495
2495
  name: z.ZodString;
2496
2496
  phoneNumber: z.ZodString;
2497
2497
  }, "strip", z.ZodTypeAny, {
2498
- name: string;
2499
2498
  phoneNumber: string;
2500
- }, {
2501
2499
  name: string;
2500
+ }, {
2502
2501
  phoneNumber: string;
2502
+ name: string;
2503
2503
  }>>;
2504
2504
  agentId: z.ZodNullable<z.ZodString>;
2505
2505
  agent: z.ZodOptional<z.ZodObject<{
@@ -2551,17 +2551,17 @@ export declare const leadAssignmentsContract: {
2551
2551
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2552
2552
  }, "strip", z.ZodTypeAny, {
2553
2553
  id: string;
2554
- updatedAt: string;
2555
- createdAt: string;
2556
- email: string;
2557
2554
  firstName: string;
2558
2555
  lastName: string;
2556
+ email: string;
2559
2557
  phoneNumbers: {
2560
2558
  id: string;
2561
2559
  phoneNumber: string;
2562
2560
  isPrimary: boolean;
2563
2561
  description?: string | null | undefined;
2564
2562
  }[];
2563
+ createdAt: string;
2564
+ updatedAt: string;
2565
2565
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2566
2566
  office?: {
2567
2567
  id: string;
@@ -2574,22 +2574,22 @@ export declare const leadAssignmentsContract: {
2574
2574
  }[] | undefined;
2575
2575
  }, {
2576
2576
  id: string;
2577
- updatedAt: string | Date;
2578
- createdAt: string | Date;
2579
- email: string;
2580
2577
  firstName: string;
2581
2578
  lastName: string;
2582
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2583
- office?: {
2584
- id: string;
2585
- name: string;
2586
- } | null | undefined;
2579
+ email: string;
2580
+ createdAt: string | Date;
2581
+ updatedAt: string | Date;
2587
2582
  phoneNumbers?: {
2588
2583
  id: string;
2589
2584
  phoneNumber: string;
2590
2585
  description?: string | null | undefined;
2591
2586
  isPrimary?: boolean | undefined;
2592
2587
  }[] | undefined;
2588
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2589
+ office?: {
2590
+ id: string;
2591
+ name: string;
2592
+ } | null | undefined;
2593
2593
  canImpersonateUsers?: {
2594
2594
  id: string;
2595
2595
  firstName: string;
@@ -2608,45 +2608,39 @@ export declare const leadAssignmentsContract: {
2608
2608
  }, "strip", z.ZodTypeAny, {
2609
2609
  id: string;
2610
2610
  name: string;
2611
- updatedAt: string;
2612
2611
  createdAt: string;
2612
+ updatedAt: string;
2613
2613
  }, {
2614
2614
  id: string;
2615
2615
  name: string;
2616
- updatedAt: string | Date;
2617
2616
  createdAt: string | Date;
2617
+ updatedAt: string | Date;
2618
2618
  }>>>;
2619
2619
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2620
2620
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2621
2621
  }, "strip", z.ZodTypeAny, {
2622
2622
  id: string;
2623
- updatedAt: string;
2624
- createdAt: string;
2625
2623
  status: LeadAssignmentStatus;
2626
- companyId: string | null;
2627
2624
  agentId: string | null;
2625
+ createdAt: string;
2626
+ updatedAt: string;
2628
2627
  leadId: string;
2629
2628
  assignedAt: string;
2630
2629
  assignedBy: string | null;
2631
- company?: {
2632
- id: string;
2633
- name: string;
2634
- updatedAt: string;
2635
- createdAt: string;
2636
- } | null | undefined;
2630
+ companyId: string | null;
2637
2631
  agent?: {
2638
2632
  id: string;
2639
- updatedAt: string;
2640
- createdAt: string;
2641
- email: string;
2642
2633
  firstName: string;
2643
2634
  lastName: string;
2635
+ email: string;
2644
2636
  phoneNumbers: {
2645
2637
  id: string;
2646
2638
  phoneNumber: string;
2647
2639
  isPrimary: boolean;
2648
2640
  description?: string | null | undefined;
2649
2641
  }[];
2642
+ createdAt: string;
2643
+ updatedAt: string;
2650
2644
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2651
2645
  office?: {
2652
2646
  id: string;
@@ -2659,43 +2653,43 @@ export declare const leadAssignmentsContract: {
2659
2653
  }[] | undefined;
2660
2654
  } | undefined;
2661
2655
  lead?: {
2662
- name: string;
2663
2656
  phoneNumber: string;
2657
+ name: string;
2664
2658
  } | undefined;
2659
+ company?: {
2660
+ id: string;
2661
+ name: string;
2662
+ createdAt: string;
2663
+ updatedAt: string;
2664
+ } | null | undefined;
2665
2665
  }, {
2666
2666
  id: string;
2667
- updatedAt: string | Date;
2668
- createdAt: string | Date;
2669
2667
  status: LeadAssignmentStatus;
2670
- companyId: string | null;
2671
2668
  agentId: string | null;
2669
+ createdAt: string | Date;
2670
+ updatedAt: string | Date;
2672
2671
  leadId: string;
2673
2672
  assignedAt: string | Date;
2674
2673
  assignedBy: string | null;
2675
- company?: {
2676
- id: string;
2677
- name: string;
2678
- updatedAt: string | Date;
2679
- createdAt: string | Date;
2680
- } | null | undefined;
2674
+ companyId: string | null;
2681
2675
  agent?: {
2682
2676
  id: string;
2683
- updatedAt: string | Date;
2684
- createdAt: string | Date;
2685
- email: string;
2686
2677
  firstName: string;
2687
2678
  lastName: string;
2688
- roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2689
- office?: {
2690
- id: string;
2691
- name: string;
2692
- } | null | undefined;
2679
+ email: string;
2680
+ createdAt: string | Date;
2681
+ updatedAt: string | Date;
2693
2682
  phoneNumbers?: {
2694
2683
  id: string;
2695
2684
  phoneNumber: string;
2696
2685
  description?: string | null | undefined;
2697
2686
  isPrimary?: boolean | undefined;
2698
2687
  }[] | undefined;
2688
+ roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2689
+ office?: {
2690
+ id: string;
2691
+ name: string;
2692
+ } | null | undefined;
2699
2693
  canImpersonateUsers?: {
2700
2694
  id: string;
2701
2695
  firstName: string;
@@ -2703,9 +2697,15 @@ export declare const leadAssignmentsContract: {
2703
2697
  }[] | undefined;
2704
2698
  } | undefined;
2705
2699
  lead?: {
2706
- name: string;
2707
2700
  phoneNumber: string;
2701
+ name: string;
2708
2702
  } | undefined;
2703
+ company?: {
2704
+ id: string;
2705
+ name: string;
2706
+ createdAt: string | Date;
2707
+ updatedAt: string | Date;
2708
+ } | null | undefined;
2709
2709
  }>;
2710
2710
  404: z.ZodObject<{
2711
2711
  statusCode: z.ZodNumber;