@dakkitor/api-contracts 1.1.147 → 1.1.149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- phoneNumber: string;
13
12
  name: string;
14
- }, {
15
13
  phoneNumber: string;
14
+ }, {
16
15
  name: string;
16
+ phoneNumber: 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
- phoneNumber: string;
26
25
  name: string;
27
- }, {
28
26
  phoneNumber: string;
27
+ }, {
29
28
  name: string;
29
+ phoneNumber: string;
30
30
  }>>;
31
31
  agentId: z.ZodNullable<z.ZodString>;
32
32
  agent: z.ZodOptional<z.ZodObject<{
@@ -40,13 +40,13 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
40
40
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  isPrimary: z.ZodDefault<z.ZodBoolean>;
42
42
  }, "strip", z.ZodTypeAny, {
43
- id: string;
44
43
  phoneNumber: string;
44
+ id: string;
45
45
  isPrimary: boolean;
46
46
  description?: string | null | undefined;
47
47
  }, {
48
- id: string;
49
48
  phoneNumber: string;
49
+ id: string;
50
50
  description?: string | null | undefined;
51
51
  isPrimary?: boolean | undefined;
52
52
  }>, "many">>>;
@@ -55,11 +55,11 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
55
55
  id: z.ZodString;
56
56
  name: z.ZodString;
57
57
  }, "strip", z.ZodTypeAny, {
58
- id: string;
59
58
  name: string;
60
- }, {
61
59
  id: string;
60
+ }, {
62
61
  name: string;
62
+ id: string;
63
63
  }>>>;
64
64
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
65
65
  id: z.ZodString;
@@ -82,8 +82,8 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
82
82
  lastName: string;
83
83
  email: string;
84
84
  phoneNumbers: {
85
- id: string;
86
85
  phoneNumber: string;
86
+ id: string;
87
87
  isPrimary: boolean;
88
88
  description?: string | null | undefined;
89
89
  }[];
@@ -91,8 +91,8 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
91
91
  updatedAt: string;
92
92
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
93
93
  office?: {
94
- id: string;
95
94
  name: string;
95
+ id: string;
96
96
  } | null | undefined;
97
97
  canImpersonateUsers?: {
98
98
  id: string;
@@ -107,15 +107,15 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
107
107
  createdAt: string | Date;
108
108
  updatedAt: string | Date;
109
109
  phoneNumbers?: {
110
- id: string;
111
110
  phoneNumber: string;
111
+ id: string;
112
112
  description?: string | null | undefined;
113
113
  isPrimary?: boolean | undefined;
114
114
  }[] | undefined;
115
115
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
116
116
  office?: {
117
- id: string;
118
117
  name: string;
118
+ id: string;
119
119
  } | null | undefined;
120
120
  canImpersonateUsers?: {
121
121
  id: string;
@@ -133,36 +133,40 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
133
133
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
134
134
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
135
135
  }, "strip", z.ZodTypeAny, {
136
- id: string;
137
136
  name: string;
137
+ id: string;
138
138
  createdAt: string;
139
139
  updatedAt: string;
140
140
  }, {
141
- id: string;
142
141
  name: string;
142
+ id: string;
143
143
  createdAt: string | Date;
144
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
- id: string;
150
149
  status: LeadAssignmentStatus;
150
+ id: string;
151
+ leadId: string;
151
152
  agentId: string | null;
152
153
  createdAt: string;
153
154
  updatedAt: string;
154
- leadId: string;
155
155
  assignedAt: string;
156
156
  assignedBy: string | null;
157
157
  companyId: string | null;
158
+ lead?: {
159
+ name: string;
160
+ phoneNumber: string;
161
+ } | undefined;
158
162
  agent?: {
159
163
  id: string;
160
164
  firstName: string;
161
165
  lastName: string;
162
166
  email: string;
163
167
  phoneNumbers: {
164
- id: string;
165
168
  phoneNumber: string;
169
+ id: string;
166
170
  isPrimary: boolean;
167
171
  description?: string | null | undefined;
168
172
  }[];
@@ -170,8 +174,8 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
170
174
  updatedAt: string;
171
175
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
172
176
  office?: {
173
- id: string;
174
177
  name: string;
178
+ id: string;
175
179
  } | null | undefined;
176
180
  canImpersonateUsers?: {
177
181
  id: string;
@@ -179,26 +183,26 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
179
183
  lastName: string;
180
184
  }[] | undefined;
181
185
  } | undefined;
182
- lead?: {
183
- phoneNumber: string;
184
- name: string;
185
- } | undefined;
186
186
  company?: {
187
- id: string;
188
187
  name: string;
188
+ id: string;
189
189
  createdAt: string;
190
190
  updatedAt: string;
191
191
  } | null | undefined;
192
192
  }, {
193
- id: string;
194
193
  status: LeadAssignmentStatus;
194
+ id: string;
195
+ leadId: string;
195
196
  agentId: string | null;
196
197
  createdAt: string | Date;
197
198
  updatedAt: string | Date;
198
- leadId: string;
199
199
  assignedAt: string | Date;
200
200
  assignedBy: string | null;
201
201
  companyId: string | null;
202
+ lead?: {
203
+ name: string;
204
+ phoneNumber: string;
205
+ } | undefined;
202
206
  agent?: {
203
207
  id: string;
204
208
  firstName: string;
@@ -207,15 +211,15 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
207
211
  createdAt: string | Date;
208
212
  updatedAt: string | Date;
209
213
  phoneNumbers?: {
210
- id: string;
211
214
  phoneNumber: string;
215
+ id: string;
212
216
  description?: string | null | undefined;
213
217
  isPrimary?: boolean | undefined;
214
218
  }[] | undefined;
215
219
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
216
220
  office?: {
217
- id: string;
218
221
  name: string;
222
+ id: string;
219
223
  } | null | undefined;
220
224
  canImpersonateUsers?: {
221
225
  id: string;
@@ -223,13 +227,9 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
223
227
  lastName: string;
224
228
  }[] | undefined;
225
229
  } | undefined;
226
- lead?: {
227
- phoneNumber: string;
228
- name: string;
229
- } | undefined;
230
230
  company?: {
231
- id: string;
232
231
  name: string;
232
+ id: string;
233
233
  createdAt: string | Date;
234
234
  updatedAt: string | Date;
235
235
  } | null | undefined;
@@ -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
- phoneNumber: string;
256
255
  name: string;
257
- }, {
258
256
  phoneNumber: string;
257
+ }, {
259
258
  name: string;
259
+ phoneNumber: string;
260
260
  }>>;
261
261
  agentId: z.ZodNullable<z.ZodString>;
262
262
  agent: z.ZodOptional<z.ZodObject<{
@@ -270,13 +270,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
270
270
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
271
  isPrimary: z.ZodDefault<z.ZodBoolean>;
272
272
  }, "strip", z.ZodTypeAny, {
273
- id: string;
274
273
  phoneNumber: string;
274
+ id: string;
275
275
  isPrimary: boolean;
276
276
  description?: string | null | undefined;
277
277
  }, {
278
- id: string;
279
278
  phoneNumber: string;
279
+ id: string;
280
280
  description?: string | null | undefined;
281
281
  isPrimary?: boolean | undefined;
282
282
  }>, "many">>>;
@@ -285,11 +285,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
285
285
  id: z.ZodString;
286
286
  name: z.ZodString;
287
287
  }, "strip", z.ZodTypeAny, {
288
- id: string;
289
288
  name: string;
290
- }, {
291
289
  id: string;
290
+ }, {
292
291
  name: string;
292
+ id: string;
293
293
  }>>>;
294
294
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
295
295
  id: z.ZodString;
@@ -312,8 +312,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
312
312
  lastName: string;
313
313
  email: string;
314
314
  phoneNumbers: {
315
- id: string;
316
315
  phoneNumber: string;
316
+ id: string;
317
317
  isPrimary: boolean;
318
318
  description?: string | null | undefined;
319
319
  }[];
@@ -321,8 +321,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
321
321
  updatedAt: string;
322
322
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
323
323
  office?: {
324
- id: string;
325
324
  name: string;
325
+ id: string;
326
326
  } | null | undefined;
327
327
  canImpersonateUsers?: {
328
328
  id: string;
@@ -337,15 +337,15 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
337
337
  createdAt: string | Date;
338
338
  updatedAt: string | Date;
339
339
  phoneNumbers?: {
340
- id: string;
341
340
  phoneNumber: string;
341
+ id: string;
342
342
  description?: string | null | undefined;
343
343
  isPrimary?: boolean | undefined;
344
344
  }[] | undefined;
345
345
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
346
346
  office?: {
347
- id: string;
348
347
  name: string;
348
+ id: string;
349
349
  } | null | undefined;
350
350
  canImpersonateUsers?: {
351
351
  id: string;
@@ -363,36 +363,40 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
363
363
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
364
364
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
365
365
  }, "strip", z.ZodTypeAny, {
366
- id: string;
367
366
  name: string;
367
+ id: string;
368
368
  createdAt: string;
369
369
  updatedAt: string;
370
370
  }, {
371
- id: string;
372
371
  name: string;
372
+ id: string;
373
373
  createdAt: string | Date;
374
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
- id: string;
380
379
  status: LeadAssignmentStatus;
380
+ id: string;
381
+ leadId: string;
381
382
  agentId: string | null;
382
383
  createdAt: string;
383
384
  updatedAt: string;
384
- leadId: string;
385
385
  assignedAt: string;
386
386
  assignedBy: string | null;
387
387
  companyId: string | null;
388
+ lead?: {
389
+ name: string;
390
+ phoneNumber: string;
391
+ } | undefined;
388
392
  agent?: {
389
393
  id: string;
390
394
  firstName: string;
391
395
  lastName: string;
392
396
  email: string;
393
397
  phoneNumbers: {
394
- id: string;
395
398
  phoneNumber: string;
399
+ id: string;
396
400
  isPrimary: boolean;
397
401
  description?: string | null | undefined;
398
402
  }[];
@@ -400,8 +404,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
400
404
  updatedAt: string;
401
405
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
402
406
  office?: {
403
- id: string;
404
407
  name: string;
408
+ id: string;
405
409
  } | null | undefined;
406
410
  canImpersonateUsers?: {
407
411
  id: string;
@@ -409,26 +413,26 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
409
413
  lastName: string;
410
414
  }[] | undefined;
411
415
  } | undefined;
412
- lead?: {
413
- phoneNumber: string;
414
- name: string;
415
- } | undefined;
416
416
  company?: {
417
- id: string;
418
417
  name: string;
418
+ id: string;
419
419
  createdAt: string;
420
420
  updatedAt: string;
421
421
  } | null | undefined;
422
422
  }, {
423
- id: string;
424
423
  status: LeadAssignmentStatus;
424
+ id: string;
425
+ leadId: string;
425
426
  agentId: string | null;
426
427
  createdAt: string | Date;
427
428
  updatedAt: string | Date;
428
- leadId: string;
429
429
  assignedAt: string | Date;
430
430
  assignedBy: string | null;
431
431
  companyId: string | null;
432
+ lead?: {
433
+ name: string;
434
+ phoneNumber: string;
435
+ } | undefined;
432
436
  agent?: {
433
437
  id: string;
434
438
  firstName: string;
@@ -437,15 +441,15 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
437
441
  createdAt: string | Date;
438
442
  updatedAt: string | Date;
439
443
  phoneNumbers?: {
440
- id: string;
441
444
  phoneNumber: string;
445
+ id: string;
442
446
  description?: string | null | undefined;
443
447
  isPrimary?: boolean | undefined;
444
448
  }[] | undefined;
445
449
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
446
450
  office?: {
447
- id: string;
448
451
  name: string;
452
+ id: string;
449
453
  } | null | undefined;
450
454
  canImpersonateUsers?: {
451
455
  id: string;
@@ -453,13 +457,9 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
453
457
  lastName: string;
454
458
  }[] | undefined;
455
459
  } | undefined;
456
- lead?: {
457
- phoneNumber: string;
458
- name: string;
459
- } | undefined;
460
460
  company?: {
461
- id: string;
462
461
  name: string;
462
+ id: string;
463
463
  createdAt: string | Date;
464
464
  updatedAt: string | Date;
465
465
  } | null | undefined;
@@ -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
- phoneNumber: string;
475
474
  name: string;
476
- }, {
477
475
  phoneNumber: string;
476
+ }, {
478
477
  name: string;
478
+ phoneNumber: string;
479
479
  }>>;
480
480
  agentId: z.ZodNullable<z.ZodString>;
481
481
  agent: z.ZodOptional<z.ZodObject<{
@@ -489,13 +489,13 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
489
489
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
490
490
  isPrimary: z.ZodDefault<z.ZodBoolean>;
491
491
  }, "strip", z.ZodTypeAny, {
492
- id: string;
493
492
  phoneNumber: string;
493
+ id: string;
494
494
  isPrimary: boolean;
495
495
  description?: string | null | undefined;
496
496
  }, {
497
- id: string;
498
497
  phoneNumber: string;
498
+ id: string;
499
499
  description?: string | null | undefined;
500
500
  isPrimary?: boolean | undefined;
501
501
  }>, "many">>>;
@@ -504,11 +504,11 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
504
504
  id: z.ZodString;
505
505
  name: z.ZodString;
506
506
  }, "strip", z.ZodTypeAny, {
507
- id: string;
508
507
  name: string;
509
- }, {
510
508
  id: string;
509
+ }, {
511
510
  name: string;
511
+ id: string;
512
512
  }>>>;
513
513
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
514
514
  id: z.ZodString;
@@ -531,8 +531,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
531
531
  lastName: string;
532
532
  email: string;
533
533
  phoneNumbers: {
534
- id: string;
535
534
  phoneNumber: string;
535
+ id: string;
536
536
  isPrimary: boolean;
537
537
  description?: string | null | undefined;
538
538
  }[];
@@ -540,8 +540,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
540
540
  updatedAt: string;
541
541
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
542
542
  office?: {
543
- id: string;
544
543
  name: string;
544
+ id: string;
545
545
  } | null | undefined;
546
546
  canImpersonateUsers?: {
547
547
  id: string;
@@ -556,15 +556,15 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
556
556
  createdAt: string | Date;
557
557
  updatedAt: string | Date;
558
558
  phoneNumbers?: {
559
- id: string;
560
559
  phoneNumber: string;
560
+ id: string;
561
561
  description?: string | null | undefined;
562
562
  isPrimary?: boolean | undefined;
563
563
  }[] | undefined;
564
564
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
565
565
  office?: {
566
- id: string;
567
566
  name: string;
567
+ id: string;
568
568
  } | null | undefined;
569
569
  canImpersonateUsers?: {
570
570
  id: string;
@@ -582,36 +582,40 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
582
582
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
583
583
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
584
584
  }, "strip", z.ZodTypeAny, {
585
- id: string;
586
585
  name: string;
586
+ id: string;
587
587
  createdAt: string;
588
588
  updatedAt: string;
589
589
  }, {
590
- id: string;
591
590
  name: string;
591
+ id: string;
592
592
  createdAt: string | Date;
593
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
- id: string;
599
598
  status: LeadAssignmentStatus;
599
+ id: string;
600
+ leadId: string;
600
601
  agentId: string | null;
601
602
  createdAt: string;
602
603
  updatedAt: string;
603
- leadId: string;
604
604
  assignedAt: string;
605
605
  assignedBy: string | null;
606
606
  companyId: string | null;
607
+ lead?: {
608
+ name: string;
609
+ phoneNumber: string;
610
+ } | undefined;
607
611
  agent?: {
608
612
  id: string;
609
613
  firstName: string;
610
614
  lastName: string;
611
615
  email: string;
612
616
  phoneNumbers: {
613
- id: string;
614
617
  phoneNumber: string;
618
+ id: string;
615
619
  isPrimary: boolean;
616
620
  description?: string | null | undefined;
617
621
  }[];
@@ -619,8 +623,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
619
623
  updatedAt: string;
620
624
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
621
625
  office?: {
622
- id: string;
623
626
  name: string;
627
+ id: string;
624
628
  } | null | undefined;
625
629
  canImpersonateUsers?: {
626
630
  id: string;
@@ -628,26 +632,26 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
628
632
  lastName: string;
629
633
  }[] | undefined;
630
634
  } | undefined;
631
- lead?: {
632
- phoneNumber: string;
633
- name: string;
634
- } | undefined;
635
635
  company?: {
636
- id: string;
637
636
  name: string;
637
+ id: string;
638
638
  createdAt: string;
639
639
  updatedAt: string;
640
640
  } | null | undefined;
641
641
  }, {
642
- id: string;
643
642
  status: LeadAssignmentStatus;
643
+ id: string;
644
+ leadId: string;
644
645
  agentId: string | null;
645
646
  createdAt: string | Date;
646
647
  updatedAt: string | Date;
647
- leadId: string;
648
648
  assignedAt: string | Date;
649
649
  assignedBy: string | null;
650
650
  companyId: string | null;
651
+ lead?: {
652
+ name: string;
653
+ phoneNumber: string;
654
+ } | undefined;
651
655
  agent?: {
652
656
  id: string;
653
657
  firstName: string;
@@ -656,15 +660,15 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
656
660
  createdAt: string | Date;
657
661
  updatedAt: string | Date;
658
662
  phoneNumbers?: {
659
- id: string;
660
663
  phoneNumber: string;
664
+ id: string;
661
665
  description?: string | null | undefined;
662
666
  isPrimary?: boolean | undefined;
663
667
  }[] | undefined;
664
668
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
665
669
  office?: {
666
- id: string;
667
670
  name: string;
671
+ id: string;
668
672
  } | null | undefined;
669
673
  canImpersonateUsers?: {
670
674
  id: string;
@@ -672,36 +676,36 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
672
676
  lastName: string;
673
677
  }[] | undefined;
674
678
  } | undefined;
675
- lead?: {
676
- phoneNumber: string;
677
- name: string;
678
- } | undefined;
679
679
  company?: {
680
- id: string;
681
680
  name: string;
681
+ id: string;
682
682
  createdAt: string | Date;
683
683
  updatedAt: string | Date;
684
684
  } | null | undefined;
685
685
  }>>;
686
686
  }, "strip", z.ZodTypeAny, {
687
687
  completed: {
688
- id: string;
689
688
  status: LeadAssignmentStatus;
689
+ id: string;
690
+ leadId: string;
690
691
  agentId: string | null;
691
692
  createdAt: string;
692
693
  updatedAt: string;
693
- leadId: string;
694
694
  assignedAt: string;
695
695
  assignedBy: string | null;
696
696
  companyId: string | null;
697
+ lead?: {
698
+ name: string;
699
+ phoneNumber: string;
700
+ } | undefined;
697
701
  agent?: {
698
702
  id: string;
699
703
  firstName: string;
700
704
  lastName: string;
701
705
  email: string;
702
706
  phoneNumbers: {
703
- id: string;
704
707
  phoneNumber: string;
708
+ id: string;
705
709
  isPrimary: boolean;
706
710
  description?: string | null | undefined;
707
711
  }[];
@@ -709,8 +713,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
709
713
  updatedAt: string;
710
714
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
711
715
  office?: {
712
- id: string;
713
716
  name: string;
717
+ id: string;
714
718
  } | null | undefined;
715
719
  canImpersonateUsers?: {
716
720
  id: string;
@@ -718,35 +722,35 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
718
722
  lastName: string;
719
723
  }[] | undefined;
720
724
  } | undefined;
721
- lead?: {
722
- phoneNumber: string;
723
- name: string;
724
- } | undefined;
725
725
  company?: {
726
- id: string;
727
726
  name: string;
727
+ id: string;
728
728
  createdAt: string;
729
729
  updatedAt: string;
730
730
  } | null | undefined;
731
731
  };
732
732
  next: {
733
- id: string;
734
733
  status: LeadAssignmentStatus;
734
+ id: string;
735
+ leadId: string;
735
736
  agentId: string | null;
736
737
  createdAt: string;
737
738
  updatedAt: string;
738
- leadId: string;
739
739
  assignedAt: string;
740
740
  assignedBy: string | null;
741
741
  companyId: string | null;
742
+ lead?: {
743
+ name: string;
744
+ phoneNumber: string;
745
+ } | undefined;
742
746
  agent?: {
743
747
  id: string;
744
748
  firstName: string;
745
749
  lastName: string;
746
750
  email: string;
747
751
  phoneNumbers: {
748
- id: string;
749
752
  phoneNumber: string;
753
+ id: string;
750
754
  isPrimary: boolean;
751
755
  description?: string | null | undefined;
752
756
  }[];
@@ -754,8 +758,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
754
758
  updatedAt: string;
755
759
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
756
760
  office?: {
757
- id: string;
758
761
  name: string;
762
+ id: string;
759
763
  } | null | undefined;
760
764
  canImpersonateUsers?: {
761
765
  id: string;
@@ -763,28 +767,28 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
763
767
  lastName: string;
764
768
  }[] | undefined;
765
769
  } | undefined;
766
- lead?: {
767
- phoneNumber: string;
768
- name: string;
769
- } | undefined;
770
770
  company?: {
771
- id: string;
772
771
  name: string;
772
+ id: string;
773
773
  createdAt: string;
774
774
  updatedAt: string;
775
775
  } | null | undefined;
776
776
  } | null;
777
777
  }, {
778
778
  completed: {
779
- id: string;
780
779
  status: LeadAssignmentStatus;
780
+ id: string;
781
+ leadId: string;
781
782
  agentId: string | null;
782
783
  createdAt: string | Date;
783
784
  updatedAt: string | Date;
784
- leadId: string;
785
785
  assignedAt: string | Date;
786
786
  assignedBy: string | null;
787
787
  companyId: string | null;
788
+ lead?: {
789
+ name: string;
790
+ phoneNumber: string;
791
+ } | undefined;
788
792
  agent?: {
789
793
  id: string;
790
794
  firstName: string;
@@ -793,15 +797,15 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
793
797
  createdAt: string | Date;
794
798
  updatedAt: string | Date;
795
799
  phoneNumbers?: {
796
- id: string;
797
800
  phoneNumber: string;
801
+ id: string;
798
802
  description?: string | null | undefined;
799
803
  isPrimary?: boolean | undefined;
800
804
  }[] | undefined;
801
805
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
802
806
  office?: {
803
- id: string;
804
807
  name: string;
808
+ id: string;
805
809
  } | null | undefined;
806
810
  canImpersonateUsers?: {
807
811
  id: string;
@@ -809,27 +813,27 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
809
813
  lastName: string;
810
814
  }[] | undefined;
811
815
  } | undefined;
812
- lead?: {
813
- phoneNumber: string;
814
- name: string;
815
- } | undefined;
816
816
  company?: {
817
- id: string;
818
817
  name: string;
818
+ id: string;
819
819
  createdAt: string | Date;
820
820
  updatedAt: string | Date;
821
821
  } | null | undefined;
822
822
  };
823
823
  next: {
824
- id: string;
825
824
  status: LeadAssignmentStatus;
825
+ id: string;
826
+ leadId: string;
826
827
  agentId: string | null;
827
828
  createdAt: string | Date;
828
829
  updatedAt: string | Date;
829
- leadId: string;
830
830
  assignedAt: string | Date;
831
831
  assignedBy: string | null;
832
832
  companyId: string | null;
833
+ lead?: {
834
+ name: string;
835
+ phoneNumber: string;
836
+ } | undefined;
833
837
  agent?: {
834
838
  id: string;
835
839
  firstName: string;
@@ -838,15 +842,15 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
838
842
  createdAt: string | Date;
839
843
  updatedAt: string | Date;
840
844
  phoneNumbers?: {
841
- id: string;
842
845
  phoneNumber: string;
846
+ id: string;
843
847
  description?: string | null | undefined;
844
848
  isPrimary?: boolean | undefined;
845
849
  }[] | undefined;
846
850
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
847
851
  office?: {
848
- id: string;
849
852
  name: string;
853
+ id: string;
850
854
  } | null | undefined;
851
855
  canImpersonateUsers?: {
852
856
  id: string;
@@ -854,13 +858,9 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
854
858
  lastName: string;
855
859
  }[] | undefined;
856
860
  } | undefined;
857
- lead?: {
858
- phoneNumber: string;
859
- name: string;
860
- } | undefined;
861
861
  company?: {
862
- id: string;
863
862
  name: string;
863
+ id: string;
864
864
  createdAt: string | Date;
865
865
  updatedAt: string | Date;
866
866
  } | null | undefined;
@@ -888,25 +888,11 @@ export declare const QueueStatusSchema: z.ZodObject<{
888
888
  needsRefill: boolean;
889
889
  nextLeadAvailable: boolean;
890
890
  }>;
891
- export declare const DistributeResponseSchema: z.ZodObject<{
892
- success: z.ZodBoolean;
893
- message: z.ZodString;
894
- result: z.ZodOptional<z.ZodAny>;
895
- }, "strip", z.ZodTypeAny, {
896
- message: string;
897
- success: boolean;
898
- result?: any;
899
- }, {
900
- message: string;
901
- success: boolean;
902
- result?: any;
903
- }>;
904
891
  export type LeadAssignmentLead = z.infer<typeof LeadAssignmentLeadSchema>;
905
892
  export type LeadAssignment = z.infer<typeof LeadAssignmentSchema>;
906
893
  export type CompleteAssignment = z.infer<typeof CompleteAssignmentSchema>;
907
894
  export type CompleteAssignmentResponse = z.infer<typeof CompleteAssignmentResponseSchema>;
908
895
  export type QueueStatus = z.infer<typeof QueueStatusSchema>;
909
- export type DistributeResponse = z.infer<typeof DistributeResponseSchema>;
910
896
  export declare const leadAssignmentsContract: {
911
897
  completeAssignment: {
912
898
  metadata: {
@@ -1041,11 +1027,11 @@ export declare const leadAssignmentsContract: {
1041
1027
  name: z.ZodString;
1042
1028
  phoneNumber: z.ZodString;
1043
1029
  }, "strip", z.ZodTypeAny, {
1044
- phoneNumber: string;
1045
1030
  name: string;
1046
- }, {
1047
1031
  phoneNumber: string;
1032
+ }, {
1048
1033
  name: string;
1034
+ phoneNumber: string;
1049
1035
  }>>;
1050
1036
  agentId: z.ZodNullable<z.ZodString>;
1051
1037
  agent: z.ZodOptional<z.ZodObject<{
@@ -1059,13 +1045,13 @@ export declare const leadAssignmentsContract: {
1059
1045
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1060
1046
  isPrimary: z.ZodDefault<z.ZodBoolean>;
1061
1047
  }, "strip", z.ZodTypeAny, {
1062
- id: string;
1063
1048
  phoneNumber: string;
1049
+ id: string;
1064
1050
  isPrimary: boolean;
1065
1051
  description?: string | null | undefined;
1066
1052
  }, {
1067
- id: string;
1068
1053
  phoneNumber: string;
1054
+ id: string;
1069
1055
  description?: string | null | undefined;
1070
1056
  isPrimary?: boolean | undefined;
1071
1057
  }>, "many">>>;
@@ -1074,11 +1060,11 @@ export declare const leadAssignmentsContract: {
1074
1060
  id: z.ZodString;
1075
1061
  name: z.ZodString;
1076
1062
  }, "strip", z.ZodTypeAny, {
1077
- id: string;
1078
1063
  name: string;
1079
- }, {
1080
1064
  id: string;
1065
+ }, {
1081
1066
  name: string;
1067
+ id: string;
1082
1068
  }>>>;
1083
1069
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1084
1070
  id: z.ZodString;
@@ -1101,8 +1087,8 @@ export declare const leadAssignmentsContract: {
1101
1087
  lastName: string;
1102
1088
  email: string;
1103
1089
  phoneNumbers: {
1104
- id: string;
1105
1090
  phoneNumber: string;
1091
+ id: string;
1106
1092
  isPrimary: boolean;
1107
1093
  description?: string | null | undefined;
1108
1094
  }[];
@@ -1110,8 +1096,8 @@ export declare const leadAssignmentsContract: {
1110
1096
  updatedAt: string;
1111
1097
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1112
1098
  office?: {
1113
- id: string;
1114
1099
  name: string;
1100
+ id: string;
1115
1101
  } | null | undefined;
1116
1102
  canImpersonateUsers?: {
1117
1103
  id: string;
@@ -1126,15 +1112,15 @@ export declare const leadAssignmentsContract: {
1126
1112
  createdAt: string | Date;
1127
1113
  updatedAt: string | Date;
1128
1114
  phoneNumbers?: {
1129
- id: string;
1130
1115
  phoneNumber: string;
1116
+ id: string;
1131
1117
  description?: string | null | undefined;
1132
1118
  isPrimary?: boolean | undefined;
1133
1119
  }[] | undefined;
1134
1120
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1135
1121
  office?: {
1136
- id: string;
1137
1122
  name: string;
1123
+ id: string;
1138
1124
  } | null | undefined;
1139
1125
  canImpersonateUsers?: {
1140
1126
  id: string;
@@ -1152,36 +1138,40 @@ export declare const leadAssignmentsContract: {
1152
1138
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1153
1139
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1154
1140
  }, "strip", z.ZodTypeAny, {
1155
- id: string;
1156
1141
  name: string;
1142
+ id: string;
1157
1143
  createdAt: string;
1158
1144
  updatedAt: string;
1159
1145
  }, {
1160
- id: string;
1161
1146
  name: string;
1147
+ id: string;
1162
1148
  createdAt: string | Date;
1163
1149
  updatedAt: string | Date;
1164
1150
  }>>>;
1165
1151
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1166
1152
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1167
1153
  }, "strip", z.ZodTypeAny, {
1168
- id: string;
1169
1154
  status: LeadAssignmentStatus;
1155
+ id: string;
1156
+ leadId: string;
1170
1157
  agentId: string | null;
1171
1158
  createdAt: string;
1172
1159
  updatedAt: string;
1173
- leadId: string;
1174
1160
  assignedAt: string;
1175
1161
  assignedBy: string | null;
1176
1162
  companyId: string | null;
1163
+ lead?: {
1164
+ name: string;
1165
+ phoneNumber: string;
1166
+ } | undefined;
1177
1167
  agent?: {
1178
1168
  id: string;
1179
1169
  firstName: string;
1180
1170
  lastName: string;
1181
1171
  email: string;
1182
1172
  phoneNumbers: {
1183
- id: string;
1184
1173
  phoneNumber: string;
1174
+ id: string;
1185
1175
  isPrimary: boolean;
1186
1176
  description?: string | null | undefined;
1187
1177
  }[];
@@ -1189,8 +1179,8 @@ export declare const leadAssignmentsContract: {
1189
1179
  updatedAt: string;
1190
1180
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1191
1181
  office?: {
1192
- id: string;
1193
1182
  name: string;
1183
+ id: string;
1194
1184
  } | null | undefined;
1195
1185
  canImpersonateUsers?: {
1196
1186
  id: string;
@@ -1198,26 +1188,26 @@ export declare const leadAssignmentsContract: {
1198
1188
  lastName: string;
1199
1189
  }[] | undefined;
1200
1190
  } | undefined;
1201
- lead?: {
1202
- phoneNumber: string;
1203
- name: string;
1204
- } | undefined;
1205
1191
  company?: {
1206
- id: string;
1207
1192
  name: string;
1193
+ id: string;
1208
1194
  createdAt: string;
1209
1195
  updatedAt: string;
1210
1196
  } | null | undefined;
1211
1197
  }, {
1212
- id: string;
1213
1198
  status: LeadAssignmentStatus;
1199
+ id: string;
1200
+ leadId: string;
1214
1201
  agentId: string | null;
1215
1202
  createdAt: string | Date;
1216
1203
  updatedAt: string | Date;
1217
- leadId: string;
1218
1204
  assignedAt: string | Date;
1219
1205
  assignedBy: string | null;
1220
1206
  companyId: string | null;
1207
+ lead?: {
1208
+ name: string;
1209
+ phoneNumber: string;
1210
+ } | undefined;
1221
1211
  agent?: {
1222
1212
  id: string;
1223
1213
  firstName: string;
@@ -1226,15 +1216,15 @@ export declare const leadAssignmentsContract: {
1226
1216
  createdAt: string | Date;
1227
1217
  updatedAt: string | Date;
1228
1218
  phoneNumbers?: {
1229
- id: string;
1230
1219
  phoneNumber: string;
1220
+ id: string;
1231
1221
  description?: string | null | undefined;
1232
1222
  isPrimary?: boolean | undefined;
1233
1223
  }[] | undefined;
1234
1224
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1235
1225
  office?: {
1236
- id: string;
1237
1226
  name: string;
1227
+ id: string;
1238
1228
  } | null | undefined;
1239
1229
  canImpersonateUsers?: {
1240
1230
  id: string;
@@ -1242,13 +1232,9 @@ export declare const leadAssignmentsContract: {
1242
1232
  lastName: string;
1243
1233
  }[] | undefined;
1244
1234
  } | undefined;
1245
- lead?: {
1246
- phoneNumber: string;
1247
- name: string;
1248
- } | undefined;
1249
1235
  company?: {
1250
- id: string;
1251
1236
  name: string;
1237
+ id: string;
1252
1238
  createdAt: string | Date;
1253
1239
  updatedAt: string | Date;
1254
1240
  } | null | undefined;
@@ -1260,11 +1246,11 @@ export declare const leadAssignmentsContract: {
1260
1246
  name: z.ZodString;
1261
1247
  phoneNumber: z.ZodString;
1262
1248
  }, "strip", z.ZodTypeAny, {
1263
- phoneNumber: string;
1264
1249
  name: string;
1265
- }, {
1266
1250
  phoneNumber: string;
1251
+ }, {
1267
1252
  name: string;
1253
+ phoneNumber: string;
1268
1254
  }>>;
1269
1255
  agentId: z.ZodNullable<z.ZodString>;
1270
1256
  agent: z.ZodOptional<z.ZodObject<{
@@ -1278,13 +1264,13 @@ export declare const leadAssignmentsContract: {
1278
1264
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1279
1265
  isPrimary: z.ZodDefault<z.ZodBoolean>;
1280
1266
  }, "strip", z.ZodTypeAny, {
1281
- id: string;
1282
1267
  phoneNumber: string;
1268
+ id: string;
1283
1269
  isPrimary: boolean;
1284
1270
  description?: string | null | undefined;
1285
1271
  }, {
1286
- id: string;
1287
1272
  phoneNumber: string;
1273
+ id: string;
1288
1274
  description?: string | null | undefined;
1289
1275
  isPrimary?: boolean | undefined;
1290
1276
  }>, "many">>>;
@@ -1293,11 +1279,11 @@ export declare const leadAssignmentsContract: {
1293
1279
  id: z.ZodString;
1294
1280
  name: z.ZodString;
1295
1281
  }, "strip", z.ZodTypeAny, {
1296
- id: string;
1297
1282
  name: string;
1298
- }, {
1299
1283
  id: string;
1284
+ }, {
1300
1285
  name: string;
1286
+ id: string;
1301
1287
  }>>>;
1302
1288
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1303
1289
  id: z.ZodString;
@@ -1320,8 +1306,8 @@ export declare const leadAssignmentsContract: {
1320
1306
  lastName: string;
1321
1307
  email: string;
1322
1308
  phoneNumbers: {
1323
- id: string;
1324
1309
  phoneNumber: string;
1310
+ id: string;
1325
1311
  isPrimary: boolean;
1326
1312
  description?: string | null | undefined;
1327
1313
  }[];
@@ -1329,8 +1315,8 @@ export declare const leadAssignmentsContract: {
1329
1315
  updatedAt: string;
1330
1316
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1331
1317
  office?: {
1332
- id: string;
1333
1318
  name: string;
1319
+ id: string;
1334
1320
  } | null | undefined;
1335
1321
  canImpersonateUsers?: {
1336
1322
  id: string;
@@ -1345,15 +1331,15 @@ export declare const leadAssignmentsContract: {
1345
1331
  createdAt: string | Date;
1346
1332
  updatedAt: string | Date;
1347
1333
  phoneNumbers?: {
1348
- id: string;
1349
1334
  phoneNumber: string;
1335
+ id: string;
1350
1336
  description?: string | null | undefined;
1351
1337
  isPrimary?: boolean | undefined;
1352
1338
  }[] | undefined;
1353
1339
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1354
1340
  office?: {
1355
- id: string;
1356
1341
  name: string;
1342
+ id: string;
1357
1343
  } | null | undefined;
1358
1344
  canImpersonateUsers?: {
1359
1345
  id: string;
@@ -1371,36 +1357,40 @@ export declare const leadAssignmentsContract: {
1371
1357
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1372
1358
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1373
1359
  }, "strip", z.ZodTypeAny, {
1374
- id: string;
1375
1360
  name: string;
1361
+ id: string;
1376
1362
  createdAt: string;
1377
1363
  updatedAt: string;
1378
1364
  }, {
1379
- id: string;
1380
1365
  name: string;
1366
+ id: string;
1381
1367
  createdAt: string | Date;
1382
1368
  updatedAt: string | Date;
1383
1369
  }>>>;
1384
1370
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1385
1371
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1386
1372
  }, "strip", z.ZodTypeAny, {
1387
- id: string;
1388
1373
  status: LeadAssignmentStatus;
1374
+ id: string;
1375
+ leadId: string;
1389
1376
  agentId: string | null;
1390
1377
  createdAt: string;
1391
1378
  updatedAt: string;
1392
- leadId: string;
1393
1379
  assignedAt: string;
1394
1380
  assignedBy: string | null;
1395
1381
  companyId: string | null;
1382
+ lead?: {
1383
+ name: string;
1384
+ phoneNumber: string;
1385
+ } | undefined;
1396
1386
  agent?: {
1397
1387
  id: string;
1398
1388
  firstName: string;
1399
1389
  lastName: string;
1400
1390
  email: string;
1401
1391
  phoneNumbers: {
1402
- id: string;
1403
1392
  phoneNumber: string;
1393
+ id: string;
1404
1394
  isPrimary: boolean;
1405
1395
  description?: string | null | undefined;
1406
1396
  }[];
@@ -1408,8 +1398,8 @@ export declare const leadAssignmentsContract: {
1408
1398
  updatedAt: string;
1409
1399
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1410
1400
  office?: {
1411
- id: string;
1412
1401
  name: string;
1402
+ id: string;
1413
1403
  } | null | undefined;
1414
1404
  canImpersonateUsers?: {
1415
1405
  id: string;
@@ -1417,26 +1407,26 @@ export declare const leadAssignmentsContract: {
1417
1407
  lastName: string;
1418
1408
  }[] | undefined;
1419
1409
  } | undefined;
1420
- lead?: {
1421
- phoneNumber: string;
1422
- name: string;
1423
- } | undefined;
1424
1410
  company?: {
1425
- id: string;
1426
1411
  name: string;
1412
+ id: string;
1427
1413
  createdAt: string;
1428
1414
  updatedAt: string;
1429
1415
  } | null | undefined;
1430
1416
  }, {
1431
- id: string;
1432
1417
  status: LeadAssignmentStatus;
1418
+ id: string;
1419
+ leadId: string;
1433
1420
  agentId: string | null;
1434
1421
  createdAt: string | Date;
1435
1422
  updatedAt: string | Date;
1436
- leadId: string;
1437
1423
  assignedAt: string | Date;
1438
1424
  assignedBy: string | null;
1439
1425
  companyId: string | null;
1426
+ lead?: {
1427
+ name: string;
1428
+ phoneNumber: string;
1429
+ } | undefined;
1440
1430
  agent?: {
1441
1431
  id: string;
1442
1432
  firstName: string;
@@ -1445,15 +1435,15 @@ export declare const leadAssignmentsContract: {
1445
1435
  createdAt: string | Date;
1446
1436
  updatedAt: string | Date;
1447
1437
  phoneNumbers?: {
1448
- id: string;
1449
1438
  phoneNumber: string;
1439
+ id: string;
1450
1440
  description?: string | null | undefined;
1451
1441
  isPrimary?: boolean | undefined;
1452
1442
  }[] | undefined;
1453
1443
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1454
1444
  office?: {
1455
- id: string;
1456
1445
  name: string;
1446
+ id: string;
1457
1447
  } | null | undefined;
1458
1448
  canImpersonateUsers?: {
1459
1449
  id: string;
@@ -1461,36 +1451,36 @@ export declare const leadAssignmentsContract: {
1461
1451
  lastName: string;
1462
1452
  }[] | undefined;
1463
1453
  } | undefined;
1464
- lead?: {
1465
- phoneNumber: string;
1466
- name: string;
1467
- } | undefined;
1468
1454
  company?: {
1469
- id: string;
1470
1455
  name: string;
1456
+ id: string;
1471
1457
  createdAt: string | Date;
1472
1458
  updatedAt: string | Date;
1473
1459
  } | null | undefined;
1474
1460
  }>>;
1475
1461
  }, "strip", z.ZodTypeAny, {
1476
1462
  completed: {
1477
- id: string;
1478
1463
  status: LeadAssignmentStatus;
1464
+ id: string;
1465
+ leadId: string;
1479
1466
  agentId: string | null;
1480
1467
  createdAt: string;
1481
1468
  updatedAt: string;
1482
- leadId: string;
1483
1469
  assignedAt: string;
1484
1470
  assignedBy: string | null;
1485
1471
  companyId: string | null;
1472
+ lead?: {
1473
+ name: string;
1474
+ phoneNumber: string;
1475
+ } | undefined;
1486
1476
  agent?: {
1487
1477
  id: string;
1488
1478
  firstName: string;
1489
1479
  lastName: string;
1490
1480
  email: string;
1491
1481
  phoneNumbers: {
1492
- id: string;
1493
1482
  phoneNumber: string;
1483
+ id: string;
1494
1484
  isPrimary: boolean;
1495
1485
  description?: string | null | undefined;
1496
1486
  }[];
@@ -1498,8 +1488,8 @@ export declare const leadAssignmentsContract: {
1498
1488
  updatedAt: string;
1499
1489
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1500
1490
  office?: {
1501
- id: string;
1502
1491
  name: string;
1492
+ id: string;
1503
1493
  } | null | undefined;
1504
1494
  canImpersonateUsers?: {
1505
1495
  id: string;
@@ -1507,35 +1497,35 @@ export declare const leadAssignmentsContract: {
1507
1497
  lastName: string;
1508
1498
  }[] | undefined;
1509
1499
  } | undefined;
1510
- lead?: {
1511
- phoneNumber: string;
1512
- name: string;
1513
- } | undefined;
1514
1500
  company?: {
1515
- id: string;
1516
1501
  name: string;
1502
+ id: string;
1517
1503
  createdAt: string;
1518
1504
  updatedAt: string;
1519
1505
  } | null | undefined;
1520
1506
  };
1521
1507
  next: {
1522
- id: string;
1523
1508
  status: LeadAssignmentStatus;
1509
+ id: string;
1510
+ leadId: string;
1524
1511
  agentId: string | null;
1525
1512
  createdAt: string;
1526
1513
  updatedAt: string;
1527
- leadId: string;
1528
1514
  assignedAt: string;
1529
1515
  assignedBy: string | null;
1530
1516
  companyId: string | null;
1517
+ lead?: {
1518
+ name: string;
1519
+ phoneNumber: string;
1520
+ } | undefined;
1531
1521
  agent?: {
1532
1522
  id: string;
1533
1523
  firstName: string;
1534
1524
  lastName: string;
1535
1525
  email: string;
1536
1526
  phoneNumbers: {
1537
- id: string;
1538
1527
  phoneNumber: string;
1528
+ id: string;
1539
1529
  isPrimary: boolean;
1540
1530
  description?: string | null | undefined;
1541
1531
  }[];
@@ -1543,8 +1533,8 @@ export declare const leadAssignmentsContract: {
1543
1533
  updatedAt: string;
1544
1534
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1545
1535
  office?: {
1546
- id: string;
1547
1536
  name: string;
1537
+ id: string;
1548
1538
  } | null | undefined;
1549
1539
  canImpersonateUsers?: {
1550
1540
  id: string;
@@ -1552,28 +1542,28 @@ export declare const leadAssignmentsContract: {
1552
1542
  lastName: string;
1553
1543
  }[] | undefined;
1554
1544
  } | undefined;
1555
- lead?: {
1556
- phoneNumber: string;
1557
- name: string;
1558
- } | undefined;
1559
1545
  company?: {
1560
- id: string;
1561
1546
  name: string;
1547
+ id: string;
1562
1548
  createdAt: string;
1563
1549
  updatedAt: string;
1564
1550
  } | null | undefined;
1565
1551
  } | null;
1566
1552
  }, {
1567
1553
  completed: {
1568
- id: string;
1569
1554
  status: LeadAssignmentStatus;
1555
+ id: string;
1556
+ leadId: string;
1570
1557
  agentId: string | null;
1571
1558
  createdAt: string | Date;
1572
1559
  updatedAt: string | Date;
1573
- leadId: string;
1574
1560
  assignedAt: string | Date;
1575
1561
  assignedBy: string | null;
1576
1562
  companyId: string | null;
1563
+ lead?: {
1564
+ name: string;
1565
+ phoneNumber: string;
1566
+ } | undefined;
1577
1567
  agent?: {
1578
1568
  id: string;
1579
1569
  firstName: string;
@@ -1582,15 +1572,15 @@ export declare const leadAssignmentsContract: {
1582
1572
  createdAt: string | Date;
1583
1573
  updatedAt: string | Date;
1584
1574
  phoneNumbers?: {
1585
- id: string;
1586
1575
  phoneNumber: string;
1576
+ id: string;
1587
1577
  description?: string | null | undefined;
1588
1578
  isPrimary?: boolean | undefined;
1589
1579
  }[] | undefined;
1590
1580
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1591
1581
  office?: {
1592
- id: string;
1593
1582
  name: string;
1583
+ id: string;
1594
1584
  } | null | undefined;
1595
1585
  canImpersonateUsers?: {
1596
1586
  id: string;
@@ -1598,27 +1588,27 @@ export declare const leadAssignmentsContract: {
1598
1588
  lastName: string;
1599
1589
  }[] | undefined;
1600
1590
  } | undefined;
1601
- lead?: {
1602
- phoneNumber: string;
1603
- name: string;
1604
- } | undefined;
1605
1591
  company?: {
1606
- id: string;
1607
1592
  name: string;
1593
+ id: string;
1608
1594
  createdAt: string | Date;
1609
1595
  updatedAt: string | Date;
1610
1596
  } | null | undefined;
1611
1597
  };
1612
1598
  next: {
1613
- id: string;
1614
1599
  status: LeadAssignmentStatus;
1600
+ id: string;
1601
+ leadId: string;
1615
1602
  agentId: string | null;
1616
1603
  createdAt: string | Date;
1617
1604
  updatedAt: string | Date;
1618
- leadId: string;
1619
1605
  assignedAt: string | Date;
1620
1606
  assignedBy: string | null;
1621
1607
  companyId: string | null;
1608
+ lead?: {
1609
+ name: string;
1610
+ phoneNumber: string;
1611
+ } | undefined;
1622
1612
  agent?: {
1623
1613
  id: string;
1624
1614
  firstName: string;
@@ -1627,15 +1617,15 @@ export declare const leadAssignmentsContract: {
1627
1617
  createdAt: string | Date;
1628
1618
  updatedAt: string | Date;
1629
1619
  phoneNumbers?: {
1630
- id: string;
1631
1620
  phoneNumber: string;
1621
+ id: string;
1632
1622
  description?: string | null | undefined;
1633
1623
  isPrimary?: boolean | undefined;
1634
1624
  }[] | undefined;
1635
1625
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1636
1626
  office?: {
1637
- id: string;
1638
1627
  name: string;
1628
+ id: string;
1639
1629
  } | null | undefined;
1640
1630
  canImpersonateUsers?: {
1641
1631
  id: string;
@@ -1643,13 +1633,9 @@ export declare const leadAssignmentsContract: {
1643
1633
  lastName: string;
1644
1634
  }[] | undefined;
1645
1635
  } | undefined;
1646
- lead?: {
1647
- phoneNumber: string;
1648
- name: string;
1649
- } | undefined;
1650
1636
  company?: {
1651
- id: string;
1652
1637
  name: string;
1638
+ id: string;
1653
1639
  createdAt: string | Date;
1654
1640
  updatedAt: string | Date;
1655
1641
  } | null | undefined;
@@ -1797,11 +1783,11 @@ export declare const leadAssignmentsContract: {
1797
1783
  name: z.ZodString;
1798
1784
  phoneNumber: z.ZodString;
1799
1785
  }, "strip", z.ZodTypeAny, {
1800
- phoneNumber: string;
1801
1786
  name: string;
1802
- }, {
1803
1787
  phoneNumber: string;
1788
+ }, {
1804
1789
  name: string;
1790
+ phoneNumber: string;
1805
1791
  }>>;
1806
1792
  agentId: z.ZodNullable<z.ZodString>;
1807
1793
  agent: z.ZodOptional<z.ZodObject<{
@@ -1815,13 +1801,13 @@ export declare const leadAssignmentsContract: {
1815
1801
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1816
1802
  isPrimary: z.ZodDefault<z.ZodBoolean>;
1817
1803
  }, "strip", z.ZodTypeAny, {
1818
- id: string;
1819
1804
  phoneNumber: string;
1805
+ id: string;
1820
1806
  isPrimary: boolean;
1821
1807
  description?: string | null | undefined;
1822
1808
  }, {
1823
- id: string;
1824
1809
  phoneNumber: string;
1810
+ id: string;
1825
1811
  description?: string | null | undefined;
1826
1812
  isPrimary?: boolean | undefined;
1827
1813
  }>, "many">>>;
@@ -1830,11 +1816,11 @@ export declare const leadAssignmentsContract: {
1830
1816
  id: z.ZodString;
1831
1817
  name: z.ZodString;
1832
1818
  }, "strip", z.ZodTypeAny, {
1833
- id: string;
1834
1819
  name: string;
1835
- }, {
1836
1820
  id: string;
1821
+ }, {
1837
1822
  name: string;
1823
+ id: string;
1838
1824
  }>>>;
1839
1825
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1840
1826
  id: z.ZodString;
@@ -1857,8 +1843,8 @@ export declare const leadAssignmentsContract: {
1857
1843
  lastName: string;
1858
1844
  email: string;
1859
1845
  phoneNumbers: {
1860
- id: string;
1861
1846
  phoneNumber: string;
1847
+ id: string;
1862
1848
  isPrimary: boolean;
1863
1849
  description?: string | null | undefined;
1864
1850
  }[];
@@ -1866,8 +1852,8 @@ export declare const leadAssignmentsContract: {
1866
1852
  updatedAt: string;
1867
1853
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1868
1854
  office?: {
1869
- id: string;
1870
1855
  name: string;
1856
+ id: string;
1871
1857
  } | null | undefined;
1872
1858
  canImpersonateUsers?: {
1873
1859
  id: string;
@@ -1882,15 +1868,15 @@ export declare const leadAssignmentsContract: {
1882
1868
  createdAt: string | Date;
1883
1869
  updatedAt: string | Date;
1884
1870
  phoneNumbers?: {
1885
- id: string;
1886
1871
  phoneNumber: string;
1872
+ id: string;
1887
1873
  description?: string | null | undefined;
1888
1874
  isPrimary?: boolean | undefined;
1889
1875
  }[] | undefined;
1890
1876
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1891
1877
  office?: {
1892
- id: string;
1893
1878
  name: string;
1879
+ id: string;
1894
1880
  } | null | undefined;
1895
1881
  canImpersonateUsers?: {
1896
1882
  id: string;
@@ -1908,36 +1894,40 @@ export declare const leadAssignmentsContract: {
1908
1894
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1909
1895
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1910
1896
  }, "strip", z.ZodTypeAny, {
1911
- id: string;
1912
1897
  name: string;
1898
+ id: string;
1913
1899
  createdAt: string;
1914
1900
  updatedAt: string;
1915
1901
  }, {
1916
- id: string;
1917
1902
  name: string;
1903
+ id: string;
1918
1904
  createdAt: string | Date;
1919
1905
  updatedAt: string | Date;
1920
1906
  }>>>;
1921
1907
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1922
1908
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1923
1909
  }, "strip", z.ZodTypeAny, {
1924
- id: string;
1925
1910
  status: LeadAssignmentStatus;
1911
+ id: string;
1912
+ leadId: string;
1926
1913
  agentId: string | null;
1927
1914
  createdAt: string;
1928
1915
  updatedAt: string;
1929
- leadId: string;
1930
1916
  assignedAt: string;
1931
1917
  assignedBy: string | null;
1932
1918
  companyId: string | null;
1919
+ lead?: {
1920
+ name: string;
1921
+ phoneNumber: string;
1922
+ } | undefined;
1933
1923
  agent?: {
1934
1924
  id: string;
1935
1925
  firstName: string;
1936
1926
  lastName: string;
1937
1927
  email: string;
1938
1928
  phoneNumbers: {
1939
- id: string;
1940
1929
  phoneNumber: string;
1930
+ id: string;
1941
1931
  isPrimary: boolean;
1942
1932
  description?: string | null | undefined;
1943
1933
  }[];
@@ -1945,35 +1935,35 @@ export declare const leadAssignmentsContract: {
1945
1935
  updatedAt: string;
1946
1936
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1947
1937
  office?: {
1948
- id: string;
1949
1938
  name: string;
1939
+ id: string;
1950
1940
  } | null | undefined;
1951
1941
  canImpersonateUsers?: {
1952
1942
  id: string;
1953
1943
  firstName: string;
1954
- lastName: string;
1955
- }[] | undefined;
1956
- } | undefined;
1957
- lead?: {
1958
- phoneNumber: string;
1959
- name: string;
1944
+ lastName: string;
1945
+ }[] | undefined;
1960
1946
  } | undefined;
1961
1947
  company?: {
1962
- id: string;
1963
1948
  name: string;
1949
+ id: string;
1964
1950
  createdAt: string;
1965
1951
  updatedAt: string;
1966
1952
  } | null | undefined;
1967
1953
  }, {
1968
- id: string;
1969
1954
  status: LeadAssignmentStatus;
1955
+ id: string;
1956
+ leadId: string;
1970
1957
  agentId: string | null;
1971
1958
  createdAt: string | Date;
1972
1959
  updatedAt: string | Date;
1973
- leadId: string;
1974
1960
  assignedAt: string | Date;
1975
1961
  assignedBy: string | null;
1976
1962
  companyId: string | null;
1963
+ lead?: {
1964
+ name: string;
1965
+ phoneNumber: string;
1966
+ } | undefined;
1977
1967
  agent?: {
1978
1968
  id: string;
1979
1969
  firstName: string;
@@ -1982,15 +1972,15 @@ export declare const leadAssignmentsContract: {
1982
1972
  createdAt: string | Date;
1983
1973
  updatedAt: string | Date;
1984
1974
  phoneNumbers?: {
1985
- id: string;
1986
1975
  phoneNumber: string;
1976
+ id: string;
1987
1977
  description?: string | null | undefined;
1988
1978
  isPrimary?: boolean | undefined;
1989
1979
  }[] | undefined;
1990
1980
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1991
1981
  office?: {
1992
- id: string;
1993
1982
  name: string;
1983
+ id: string;
1994
1984
  } | null | undefined;
1995
1985
  canImpersonateUsers?: {
1996
1986
  id: string;
@@ -1998,13 +1988,9 @@ export declare const leadAssignmentsContract: {
1998
1988
  lastName: string;
1999
1989
  }[] | undefined;
2000
1990
  } | undefined;
2001
- lead?: {
2002
- phoneNumber: string;
2003
- name: string;
2004
- } | undefined;
2005
1991
  company?: {
2006
- id: string;
2007
1992
  name: string;
1993
+ id: string;
2008
1994
  createdAt: string | Date;
2009
1995
  updatedAt: string | Date;
2010
1996
  } | null | undefined;
@@ -2134,11 +2120,11 @@ export declare const leadAssignmentsContract: {
2134
2120
  name: z.ZodString;
2135
2121
  phoneNumber: z.ZodString;
2136
2122
  }, "strip", z.ZodTypeAny, {
2137
- phoneNumber: string;
2138
2123
  name: string;
2139
- }, {
2140
2124
  phoneNumber: string;
2125
+ }, {
2141
2126
  name: string;
2127
+ phoneNumber: string;
2142
2128
  }>>;
2143
2129
  agentId: z.ZodNullable<z.ZodString>;
2144
2130
  agent: z.ZodOptional<z.ZodObject<{
@@ -2152,13 +2138,13 @@ export declare const leadAssignmentsContract: {
2152
2138
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2153
2139
  isPrimary: z.ZodDefault<z.ZodBoolean>;
2154
2140
  }, "strip", z.ZodTypeAny, {
2155
- id: string;
2156
2141
  phoneNumber: string;
2142
+ id: string;
2157
2143
  isPrimary: boolean;
2158
2144
  description?: string | null | undefined;
2159
2145
  }, {
2160
- id: string;
2161
2146
  phoneNumber: string;
2147
+ id: string;
2162
2148
  description?: string | null | undefined;
2163
2149
  isPrimary?: boolean | undefined;
2164
2150
  }>, "many">>>;
@@ -2167,11 +2153,11 @@ export declare const leadAssignmentsContract: {
2167
2153
  id: z.ZodString;
2168
2154
  name: z.ZodString;
2169
2155
  }, "strip", z.ZodTypeAny, {
2170
- id: string;
2171
2156
  name: string;
2172
- }, {
2173
2157
  id: string;
2158
+ }, {
2174
2159
  name: string;
2160
+ id: string;
2175
2161
  }>>>;
2176
2162
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2177
2163
  id: z.ZodString;
@@ -2194,8 +2180,8 @@ export declare const leadAssignmentsContract: {
2194
2180
  lastName: string;
2195
2181
  email: string;
2196
2182
  phoneNumbers: {
2197
- id: string;
2198
2183
  phoneNumber: string;
2184
+ id: string;
2199
2185
  isPrimary: boolean;
2200
2186
  description?: string | null | undefined;
2201
2187
  }[];
@@ -2203,8 +2189,8 @@ export declare const leadAssignmentsContract: {
2203
2189
  updatedAt: string;
2204
2190
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2205
2191
  office?: {
2206
- id: string;
2207
2192
  name: string;
2193
+ id: string;
2208
2194
  } | null | undefined;
2209
2195
  canImpersonateUsers?: {
2210
2196
  id: string;
@@ -2219,15 +2205,15 @@ export declare const leadAssignmentsContract: {
2219
2205
  createdAt: string | Date;
2220
2206
  updatedAt: string | Date;
2221
2207
  phoneNumbers?: {
2222
- id: string;
2223
2208
  phoneNumber: string;
2209
+ id: string;
2224
2210
  description?: string | null | undefined;
2225
2211
  isPrimary?: boolean | undefined;
2226
2212
  }[] | undefined;
2227
2213
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2228
2214
  office?: {
2229
- id: string;
2230
2215
  name: string;
2216
+ id: string;
2231
2217
  } | null | undefined;
2232
2218
  canImpersonateUsers?: {
2233
2219
  id: string;
@@ -2245,36 +2231,40 @@ export declare const leadAssignmentsContract: {
2245
2231
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2246
2232
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2247
2233
  }, "strip", z.ZodTypeAny, {
2248
- id: string;
2249
2234
  name: string;
2235
+ id: string;
2250
2236
  createdAt: string;
2251
2237
  updatedAt: string;
2252
2238
  }, {
2253
- id: string;
2254
2239
  name: string;
2240
+ id: string;
2255
2241
  createdAt: string | Date;
2256
2242
  updatedAt: string | Date;
2257
2243
  }>>>;
2258
2244
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2259
2245
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2260
2246
  }, "strip", z.ZodTypeAny, {
2261
- id: string;
2262
2247
  status: LeadAssignmentStatus;
2248
+ id: string;
2249
+ leadId: string;
2263
2250
  agentId: string | null;
2264
2251
  createdAt: string;
2265
2252
  updatedAt: string;
2266
- leadId: string;
2267
2253
  assignedAt: string;
2268
2254
  assignedBy: string | null;
2269
2255
  companyId: string | null;
2256
+ lead?: {
2257
+ name: string;
2258
+ phoneNumber: string;
2259
+ } | undefined;
2270
2260
  agent?: {
2271
2261
  id: string;
2272
2262
  firstName: string;
2273
2263
  lastName: string;
2274
2264
  email: string;
2275
2265
  phoneNumbers: {
2276
- id: string;
2277
2266
  phoneNumber: string;
2267
+ id: string;
2278
2268
  isPrimary: boolean;
2279
2269
  description?: string | null | undefined;
2280
2270
  }[];
@@ -2282,8 +2272,8 @@ export declare const leadAssignmentsContract: {
2282
2272
  updatedAt: string;
2283
2273
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2284
2274
  office?: {
2285
- id: string;
2286
2275
  name: string;
2276
+ id: string;
2287
2277
  } | null | undefined;
2288
2278
  canImpersonateUsers?: {
2289
2279
  id: string;
@@ -2291,26 +2281,26 @@ export declare const leadAssignmentsContract: {
2291
2281
  lastName: string;
2292
2282
  }[] | undefined;
2293
2283
  } | undefined;
2294
- lead?: {
2295
- phoneNumber: string;
2296
- name: string;
2297
- } | undefined;
2298
2284
  company?: {
2299
- id: string;
2300
2285
  name: string;
2286
+ id: string;
2301
2287
  createdAt: string;
2302
2288
  updatedAt: string;
2303
2289
  } | null | undefined;
2304
2290
  }, {
2305
- id: string;
2306
2291
  status: LeadAssignmentStatus;
2292
+ id: string;
2293
+ leadId: string;
2307
2294
  agentId: string | null;
2308
2295
  createdAt: string | Date;
2309
2296
  updatedAt: string | Date;
2310
- leadId: string;
2311
2297
  assignedAt: string | Date;
2312
2298
  assignedBy: string | null;
2313
2299
  companyId: string | null;
2300
+ lead?: {
2301
+ name: string;
2302
+ phoneNumber: string;
2303
+ } | undefined;
2314
2304
  agent?: {
2315
2305
  id: string;
2316
2306
  firstName: string;
@@ -2319,15 +2309,15 @@ export declare const leadAssignmentsContract: {
2319
2309
  createdAt: string | Date;
2320
2310
  updatedAt: string | Date;
2321
2311
  phoneNumbers?: {
2322
- id: string;
2323
2312
  phoneNumber: string;
2313
+ id: string;
2324
2314
  description?: string | null | undefined;
2325
2315
  isPrimary?: boolean | undefined;
2326
2316
  }[] | undefined;
2327
2317
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2328
2318
  office?: {
2329
- id: string;
2330
2319
  name: string;
2320
+ id: string;
2331
2321
  } | null | undefined;
2332
2322
  canImpersonateUsers?: {
2333
2323
  id: string;
@@ -2335,13 +2325,9 @@ export declare const leadAssignmentsContract: {
2335
2325
  lastName: string;
2336
2326
  }[] | undefined;
2337
2327
  } | undefined;
2338
- lead?: {
2339
- phoneNumber: string;
2340
- name: string;
2341
- } | undefined;
2342
2328
  company?: {
2343
- id: string;
2344
2329
  name: string;
2330
+ id: string;
2345
2331
  createdAt: string | Date;
2346
2332
  updatedAt: string | Date;
2347
2333
  } | null | undefined;
@@ -2495,11 +2481,11 @@ export declare const leadAssignmentsContract: {
2495
2481
  name: z.ZodString;
2496
2482
  phoneNumber: z.ZodString;
2497
2483
  }, "strip", z.ZodTypeAny, {
2498
- phoneNumber: string;
2499
2484
  name: string;
2500
- }, {
2501
2485
  phoneNumber: string;
2486
+ }, {
2502
2487
  name: string;
2488
+ phoneNumber: string;
2503
2489
  }>>;
2504
2490
  agentId: z.ZodNullable<z.ZodString>;
2505
2491
  agent: z.ZodOptional<z.ZodObject<{
@@ -2513,13 +2499,13 @@ export declare const leadAssignmentsContract: {
2513
2499
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2514
2500
  isPrimary: z.ZodDefault<z.ZodBoolean>;
2515
2501
  }, "strip", z.ZodTypeAny, {
2516
- id: string;
2517
2502
  phoneNumber: string;
2503
+ id: string;
2518
2504
  isPrimary: boolean;
2519
2505
  description?: string | null | undefined;
2520
2506
  }, {
2521
- id: string;
2522
2507
  phoneNumber: string;
2508
+ id: string;
2523
2509
  description?: string | null | undefined;
2524
2510
  isPrimary?: boolean | undefined;
2525
2511
  }>, "many">>>;
@@ -2528,11 +2514,11 @@ export declare const leadAssignmentsContract: {
2528
2514
  id: z.ZodString;
2529
2515
  name: z.ZodString;
2530
2516
  }, "strip", z.ZodTypeAny, {
2531
- id: string;
2532
2517
  name: string;
2533
- }, {
2534
2518
  id: string;
2519
+ }, {
2535
2520
  name: string;
2521
+ id: string;
2536
2522
  }>>>;
2537
2523
  canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2538
2524
  id: z.ZodString;
@@ -2555,8 +2541,8 @@ export declare const leadAssignmentsContract: {
2555
2541
  lastName: string;
2556
2542
  email: string;
2557
2543
  phoneNumbers: {
2558
- id: string;
2559
2544
  phoneNumber: string;
2545
+ id: string;
2560
2546
  isPrimary: boolean;
2561
2547
  description?: string | null | undefined;
2562
2548
  }[];
@@ -2564,8 +2550,8 @@ export declare const leadAssignmentsContract: {
2564
2550
  updatedAt: string;
2565
2551
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2566
2552
  office?: {
2567
- id: string;
2568
2553
  name: string;
2554
+ id: string;
2569
2555
  } | null | undefined;
2570
2556
  canImpersonateUsers?: {
2571
2557
  id: string;
@@ -2580,15 +2566,15 @@ export declare const leadAssignmentsContract: {
2580
2566
  createdAt: string | Date;
2581
2567
  updatedAt: string | Date;
2582
2568
  phoneNumbers?: {
2583
- id: string;
2584
2569
  phoneNumber: string;
2570
+ id: string;
2585
2571
  description?: string | null | undefined;
2586
2572
  isPrimary?: boolean | undefined;
2587
2573
  }[] | undefined;
2588
2574
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2589
2575
  office?: {
2590
- id: string;
2591
2576
  name: string;
2577
+ id: string;
2592
2578
  } | null | undefined;
2593
2579
  canImpersonateUsers?: {
2594
2580
  id: string;
@@ -2606,36 +2592,40 @@ export declare const leadAssignmentsContract: {
2606
2592
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2607
2593
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2608
2594
  }, "strip", z.ZodTypeAny, {
2609
- id: string;
2610
2595
  name: string;
2596
+ id: string;
2611
2597
  createdAt: string;
2612
2598
  updatedAt: string;
2613
2599
  }, {
2614
- id: string;
2615
2600
  name: string;
2601
+ id: string;
2616
2602
  createdAt: string | Date;
2617
2603
  updatedAt: string | Date;
2618
2604
  }>>>;
2619
2605
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2620
2606
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
2621
2607
  }, "strip", z.ZodTypeAny, {
2622
- id: string;
2623
2608
  status: LeadAssignmentStatus;
2609
+ id: string;
2610
+ leadId: string;
2624
2611
  agentId: string | null;
2625
2612
  createdAt: string;
2626
2613
  updatedAt: string;
2627
- leadId: string;
2628
2614
  assignedAt: string;
2629
2615
  assignedBy: string | null;
2630
2616
  companyId: string | null;
2617
+ lead?: {
2618
+ name: string;
2619
+ phoneNumber: string;
2620
+ } | undefined;
2631
2621
  agent?: {
2632
2622
  id: string;
2633
2623
  firstName: string;
2634
2624
  lastName: string;
2635
2625
  email: string;
2636
2626
  phoneNumbers: {
2637
- id: string;
2638
2627
  phoneNumber: string;
2628
+ id: string;
2639
2629
  isPrimary: boolean;
2640
2630
  description?: string | null | undefined;
2641
2631
  }[];
@@ -2643,8 +2633,8 @@ export declare const leadAssignmentsContract: {
2643
2633
  updatedAt: string;
2644
2634
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2645
2635
  office?: {
2646
- id: string;
2647
2636
  name: string;
2637
+ id: string;
2648
2638
  } | null | undefined;
2649
2639
  canImpersonateUsers?: {
2650
2640
  id: string;
@@ -2652,26 +2642,26 @@ export declare const leadAssignmentsContract: {
2652
2642
  lastName: string;
2653
2643
  }[] | undefined;
2654
2644
  } | undefined;
2655
- lead?: {
2656
- phoneNumber: string;
2657
- name: string;
2658
- } | undefined;
2659
2645
  company?: {
2660
- id: string;
2661
2646
  name: string;
2647
+ id: string;
2662
2648
  createdAt: string;
2663
2649
  updatedAt: string;
2664
2650
  } | null | undefined;
2665
2651
  }, {
2666
- id: string;
2667
2652
  status: LeadAssignmentStatus;
2653
+ id: string;
2654
+ leadId: string;
2668
2655
  agentId: string | null;
2669
2656
  createdAt: string | Date;
2670
2657
  updatedAt: string | Date;
2671
- leadId: string;
2672
2658
  assignedAt: string | Date;
2673
2659
  assignedBy: string | null;
2674
2660
  companyId: string | null;
2661
+ lead?: {
2662
+ name: string;
2663
+ phoneNumber: string;
2664
+ } | undefined;
2675
2665
  agent?: {
2676
2666
  id: string;
2677
2667
  firstName: string;
@@ -2680,15 +2670,15 @@ export declare const leadAssignmentsContract: {
2680
2670
  createdAt: string | Date;
2681
2671
  updatedAt: string | Date;
2682
2672
  phoneNumbers?: {
2683
- id: string;
2684
2673
  phoneNumber: string;
2674
+ id: string;
2685
2675
  description?: string | null | undefined;
2686
2676
  isPrimary?: boolean | undefined;
2687
2677
  }[] | undefined;
2688
2678
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
2689
2679
  office?: {
2690
- id: string;
2691
2680
  name: string;
2681
+ id: string;
2692
2682
  } | null | undefined;
2693
2683
  canImpersonateUsers?: {
2694
2684
  id: string;
@@ -2696,13 +2686,9 @@ export declare const leadAssignmentsContract: {
2696
2686
  lastName: string;
2697
2687
  }[] | undefined;
2698
2688
  } | undefined;
2699
- lead?: {
2700
- phoneNumber: string;
2701
- name: string;
2702
- } | undefined;
2703
2689
  company?: {
2704
- id: string;
2705
2690
  name: string;
2691
+ id: string;
2706
2692
  createdAt: string | Date;
2707
2693
  updatedAt: string | Date;
2708
2694
  } | null | undefined;
@@ -2866,129 +2852,5 @@ export declare const leadAssignmentsContract: {
2866
2852
  }>;
2867
2853
  };
2868
2854
  };
2869
- triggerDistribution: {
2870
- metadata: {
2871
- tags: string[];
2872
- };
2873
- summary: "Trigger manual lead refill for all agents (Admin)";
2874
- method: "POST";
2875
- body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2876
- path: "/v2/lead-assignments/distribute";
2877
- responses: {
2878
- 400: z.ZodObject<{
2879
- statusCode: z.ZodNumber;
2880
- message: z.ZodString;
2881
- code: z.ZodString;
2882
- details: z.ZodOptional<z.ZodUnknown>;
2883
- timestamp: z.ZodString;
2884
- path: z.ZodString;
2885
- correlationId: z.ZodOptional<z.ZodString>;
2886
- }, "strip", z.ZodTypeAny, {
2887
- code: string;
2888
- path: string;
2889
- message: string;
2890
- statusCode: number;
2891
- timestamp: string;
2892
- details?: unknown;
2893
- correlationId?: string | undefined;
2894
- }, {
2895
- code: string;
2896
- path: string;
2897
- message: string;
2898
- statusCode: number;
2899
- timestamp: string;
2900
- details?: unknown;
2901
- correlationId?: string | undefined;
2902
- }>;
2903
- 401: z.ZodObject<{
2904
- statusCode: z.ZodNumber;
2905
- message: z.ZodString;
2906
- code: z.ZodString;
2907
- details: z.ZodOptional<z.ZodUnknown>;
2908
- timestamp: z.ZodString;
2909
- path: z.ZodString;
2910
- correlationId: z.ZodOptional<z.ZodString>;
2911
- }, "strip", z.ZodTypeAny, {
2912
- code: string;
2913
- path: string;
2914
- message: string;
2915
- statusCode: number;
2916
- timestamp: string;
2917
- details?: unknown;
2918
- correlationId?: string | undefined;
2919
- }, {
2920
- code: string;
2921
- path: string;
2922
- message: string;
2923
- statusCode: number;
2924
- timestamp: string;
2925
- details?: unknown;
2926
- correlationId?: string | undefined;
2927
- }>;
2928
- 403: z.ZodObject<{
2929
- statusCode: z.ZodNumber;
2930
- message: z.ZodString;
2931
- code: z.ZodString;
2932
- details: z.ZodOptional<z.ZodUnknown>;
2933
- timestamp: z.ZodString;
2934
- path: z.ZodString;
2935
- correlationId: z.ZodOptional<z.ZodString>;
2936
- }, "strip", z.ZodTypeAny, {
2937
- code: string;
2938
- path: string;
2939
- message: string;
2940
- statusCode: number;
2941
- timestamp: string;
2942
- details?: unknown;
2943
- correlationId?: string | undefined;
2944
- }, {
2945
- code: string;
2946
- path: string;
2947
- message: string;
2948
- statusCode: number;
2949
- timestamp: string;
2950
- details?: unknown;
2951
- correlationId?: string | undefined;
2952
- }>;
2953
- 500: z.ZodObject<{
2954
- statusCode: z.ZodNumber;
2955
- message: z.ZodString;
2956
- code: z.ZodString;
2957
- details: z.ZodOptional<z.ZodUnknown>;
2958
- timestamp: z.ZodString;
2959
- path: z.ZodString;
2960
- correlationId: z.ZodOptional<z.ZodString>;
2961
- }, "strip", z.ZodTypeAny, {
2962
- code: string;
2963
- path: string;
2964
- message: string;
2965
- statusCode: number;
2966
- timestamp: string;
2967
- details?: unknown;
2968
- correlationId?: string | undefined;
2969
- }, {
2970
- code: string;
2971
- path: string;
2972
- message: string;
2973
- statusCode: number;
2974
- timestamp: string;
2975
- details?: unknown;
2976
- correlationId?: string | undefined;
2977
- }>;
2978
- 201: z.ZodObject<{
2979
- success: z.ZodBoolean;
2980
- message: z.ZodString;
2981
- result: z.ZodOptional<z.ZodAny>;
2982
- }, "strip", z.ZodTypeAny, {
2983
- message: string;
2984
- success: boolean;
2985
- result?: any;
2986
- }, {
2987
- message: string;
2988
- success: boolean;
2989
- result?: any;
2990
- }>;
2991
- };
2992
- };
2993
2855
  };
2994
2856
  //# sourceMappingURL=lead-assignments.contract.d.ts.map