@dakkitor/api-contracts 1.1.146 → 1.1.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/abilities/first-agent.abilities.json +39 -0
  2. package/dist/abilities/second-agent.abilities.json +36 -0
  3. package/dist/abilities/team-leads.json +30 -0
  4. package/dist/actives/actives.contract.d.ts +8207 -7871
  5. package/dist/actives/actives.contract.d.ts.map +1 -1
  6. package/dist/agent-client-links/agent-client-links.contract.d.ts +973 -973
  7. package/dist/auth/auth.contract.d.ts +12 -12
  8. package/dist/bookings/bookings.contract.d.ts +12034 -11506
  9. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  10. package/dist/call-history/call-history.contract.d.ts +620 -620
  11. package/dist/client-contacts/client-contacts.contract.d.ts +277 -277
  12. package/dist/clients/clients.contract.d.ts +173 -173
  13. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1868 -1868
  14. package/dist/collaborations/collaborations.contract.d.ts +1548 -1548
  15. package/dist/common/common-schemas.d.ts +4 -4
  16. package/dist/common/common-schemas.d.ts.map +1 -1
  17. package/dist/common/common-schemas.js +10 -8
  18. package/dist/companies/companies.contract.d.ts +26 -26
  19. package/dist/crews/crews.contract.d.ts +2549 -0
  20. package/dist/crews/crews.contract.d.ts.map +1 -0
  21. package/dist/crews/crews.contract.js +203 -0
  22. package/dist/cron-executions/cron-executions.contract.d.ts +26 -26
  23. package/dist/curated-workers/curated-workers.contract.d.ts +517 -517
  24. package/dist/dashboards/dashboard-widgets.contract.d.ts +122 -122
  25. package/dist/dashboards/dashboard.contract.d.ts +26 -26
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +3 -0
  29. package/dist/jobs/jobs.contract.d.ts +4309 -4309
  30. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +26 -26
  31. package/dist/lead-assignments/lead-assignments.contract.d.ts +498 -498
  32. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +131 -131
  33. package/dist/leads/leads.contract.d.ts +184 -184
  34. package/dist/locations/locations.contract.d.ts +28 -28
  35. package/dist/own-research/own-research.contract.d.ts +728 -728
  36. package/dist/users/users.contract.d.ts +154 -154
  37. package/dist/workers/workers.contract.d.ts +6476 -4566
  38. package/dist/workers/workers.contract.d.ts.map +1 -1
  39. package/dist/workers/workers.contract.js +217 -65
  40. package/package.json +1 -1
@@ -23,9 +23,8 @@ export declare const AgentLeadDistributionSchema: z.ZodObject<{
23
23
  updatedAt: string | Date;
24
24
  }>>>;
25
25
  }, "strip", z.ZodTypeAny, {
26
- agentId: string;
27
26
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
28
- leadDistributionConfigId?: string | null | undefined;
27
+ agentId: string;
29
28
  companyId?: string | null | undefined;
30
29
  company?: {
31
30
  id: string;
@@ -33,10 +32,10 @@ export declare const AgentLeadDistributionSchema: z.ZodObject<{
33
32
  createdAt: string;
34
33
  updatedAt: string;
35
34
  } | null | undefined;
35
+ leadDistributionConfigId?: string | null | undefined;
36
36
  }, {
37
- agentId: string;
38
37
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
39
- leadDistributionConfigId?: string | null | undefined;
38
+ agentId: string;
40
39
  companyId?: string | null | undefined;
41
40
  company?: {
42
41
  id: string;
@@ -44,6 +43,7 @@ export declare const AgentLeadDistributionSchema: z.ZodObject<{
44
43
  createdAt: string | Date;
45
44
  updatedAt: string | Date;
46
45
  } | null | undefined;
46
+ leadDistributionConfigId?: string | null | undefined;
47
47
  }>;
48
48
  export declare const AgentLeadDistributionConfigRefSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
49
49
  id: z.ZodString;
@@ -134,8 +134,6 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
134
134
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
135
135
  }, "strip", z.ZodTypeAny, {
136
136
  id: string;
137
- createdAt: string;
138
- updatedAt: string;
139
137
  firstName: string;
140
138
  lastName: string;
141
139
  email: string;
@@ -145,6 +143,8 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
145
143
  isPrimary: boolean;
146
144
  description?: string | null | undefined;
147
145
  }[];
146
+ createdAt: string;
147
+ updatedAt: string;
148
148
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
149
149
  office?: {
150
150
  id: string;
@@ -157,11 +157,11 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
157
157
  }[] | undefined;
158
158
  }, {
159
159
  id: string;
160
- createdAt: string | Date;
161
- updatedAt: string | Date;
162
160
  firstName: string;
163
161
  lastName: string;
164
162
  email: string;
163
+ createdAt: string | Date;
164
+ updatedAt: string | Date;
165
165
  phoneNumbers?: {
166
166
  id: string;
167
167
  phoneNumber: string;
@@ -197,13 +197,11 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
197
197
  name: string;
198
198
  }>>>;
199
199
  }, "strip", z.ZodTypeAny, {
200
- agentId: string;
201
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
202
200
  id: string;
201
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
202
+ agentId: string;
203
203
  agent: {
204
204
  id: string;
205
- createdAt: string;
206
- updatedAt: string;
207
205
  firstName: string;
208
206
  lastName: string;
209
207
  email: string;
@@ -213,6 +211,8 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
213
211
  isPrimary: boolean;
214
212
  description?: string | null | undefined;
215
213
  }[];
214
+ createdAt: string;
215
+ updatedAt: string;
216
216
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
217
217
  office?: {
218
218
  id: string;
@@ -224,7 +224,6 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
224
224
  lastName: string;
225
225
  }[] | undefined;
226
226
  };
227
- leadDistributionConfigId?: string | null | undefined;
228
227
  companyId?: string | null | undefined;
229
228
  company?: {
230
229
  id: string;
@@ -232,21 +231,22 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
232
231
  createdAt: string;
233
232
  updatedAt: string;
234
233
  } | null | undefined;
234
+ leadDistributionConfigId?: string | null | undefined;
235
235
  leadDistributionConfig?: {
236
236
  id: string;
237
237
  name: string;
238
238
  } | null | undefined;
239
239
  }, {
240
- agentId: string;
241
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
242
240
  id: string;
241
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
242
+ agentId: string;
243
243
  agent: {
244
244
  id: string;
245
- createdAt: string | Date;
246
- updatedAt: string | Date;
247
245
  firstName: string;
248
246
  lastName: string;
249
247
  email: string;
248
+ createdAt: string | Date;
249
+ updatedAt: string | Date;
250
250
  phoneNumbers?: {
251
251
  id: string;
252
252
  phoneNumber: string;
@@ -264,7 +264,6 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
264
264
  lastName: string;
265
265
  }[] | undefined;
266
266
  };
267
- leadDistributionConfigId?: string | null | undefined;
268
267
  companyId?: string | null | undefined;
269
268
  company?: {
270
269
  id: string;
@@ -272,6 +271,7 @@ export declare const AgentLeadDistributionWithAgentSchema: z.ZodObject<{
272
271
  createdAt: string | Date;
273
272
  updatedAt: string | Date;
274
273
  } | null | undefined;
274
+ leadDistributionConfigId?: string | null | undefined;
275
275
  leadDistributionConfig?: {
276
276
  id: string;
277
277
  name: string;
@@ -283,15 +283,15 @@ export declare const CreateAgentLeadDistributionSchema: z.ZodObject<{
283
283
  leadDistributionConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
284
284
  companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
285
  }, "strip", z.ZodTypeAny, {
286
- agentId: string;
287
286
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
288
- leadDistributionConfigId?: string | null | undefined;
287
+ agentId: string;
289
288
  companyId?: string | null | undefined;
289
+ leadDistributionConfigId?: string | null | undefined;
290
290
  }, {
291
- agentId: string;
292
291
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
293
- leadDistributionConfigId?: string | null | undefined;
292
+ agentId: string;
294
293
  companyId?: string | null | undefined;
294
+ leadDistributionConfigId?: string | null | undefined;
295
295
  }>;
296
296
  export declare const UpdateAgentLeadDistributionSchema: z.ZodObject<{
297
297
  status: z.ZodEnum<["AVAILABLE", "PAUSED", "EXCLUDED"]>;
@@ -299,12 +299,12 @@ export declare const UpdateAgentLeadDistributionSchema: z.ZodObject<{
299
299
  companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
300
  }, "strip", z.ZodTypeAny, {
301
301
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
302
- leadDistributionConfigId?: string | null | undefined;
303
302
  companyId?: string | null | undefined;
303
+ leadDistributionConfigId?: string | null | undefined;
304
304
  }, {
305
305
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
306
- leadDistributionConfigId?: string | null | undefined;
307
306
  companyId?: string | null | undefined;
307
+ leadDistributionConfigId?: string | null | undefined;
308
308
  }>;
309
309
  export declare const FilterAgentLeadDistributionSchema: z.ZodObject<{
310
310
  limit: z.ZodDefault<z.ZodNumber>;
@@ -317,17 +317,17 @@ export declare const FilterAgentLeadDistributionSchema: z.ZodObject<{
317
317
  }, "strip", z.ZodTypeAny, {
318
318
  limit: number;
319
319
  page: number;
320
- agentId?: string | undefined;
321
320
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
322
- leadDistributionConfigId?: string | undefined;
321
+ agentId?: string | undefined;
323
322
  companyId?: string | undefined;
323
+ leadDistributionConfigId?: string | undefined;
324
324
  }, {
325
- agentId?: string | undefined;
326
325
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
327
- leadDistributionConfigId?: string | undefined;
326
+ agentId?: string | undefined;
328
327
  companyId?: string | undefined;
329
328
  limit?: number | undefined;
330
329
  page?: number | undefined;
330
+ leadDistributionConfigId?: string | undefined;
331
331
  }>;
332
332
  export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
333
333
  items: z.ZodArray<z.ZodObject<{
@@ -402,8 +402,6 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
402
402
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
403
403
  }, "strip", z.ZodTypeAny, {
404
404
  id: string;
405
- createdAt: string;
406
- updatedAt: string;
407
405
  firstName: string;
408
406
  lastName: string;
409
407
  email: string;
@@ -413,6 +411,8 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
413
411
  isPrimary: boolean;
414
412
  description?: string | null | undefined;
415
413
  }[];
414
+ createdAt: string;
415
+ updatedAt: string;
416
416
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
417
417
  office?: {
418
418
  id: string;
@@ -425,11 +425,11 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
425
425
  }[] | undefined;
426
426
  }, {
427
427
  id: string;
428
- createdAt: string | Date;
429
- updatedAt: string | Date;
430
428
  firstName: string;
431
429
  lastName: string;
432
430
  email: string;
431
+ createdAt: string | Date;
432
+ updatedAt: string | Date;
433
433
  phoneNumbers?: {
434
434
  id: string;
435
435
  phoneNumber: string;
@@ -465,13 +465,11 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
465
465
  name: string;
466
466
  }>>>;
467
467
  }, "strip", z.ZodTypeAny, {
468
- agentId: string;
469
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
470
468
  id: string;
469
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
470
+ agentId: string;
471
471
  agent: {
472
472
  id: string;
473
- createdAt: string;
474
- updatedAt: string;
475
473
  firstName: string;
476
474
  lastName: string;
477
475
  email: string;
@@ -481,6 +479,8 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
481
479
  isPrimary: boolean;
482
480
  description?: string | null | undefined;
483
481
  }[];
482
+ createdAt: string;
483
+ updatedAt: string;
484
484
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
485
485
  office?: {
486
486
  id: string;
@@ -492,7 +492,6 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
492
492
  lastName: string;
493
493
  }[] | undefined;
494
494
  };
495
- leadDistributionConfigId?: string | null | undefined;
496
495
  companyId?: string | null | undefined;
497
496
  company?: {
498
497
  id: string;
@@ -500,21 +499,22 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
500
499
  createdAt: string;
501
500
  updatedAt: string;
502
501
  } | null | undefined;
502
+ leadDistributionConfigId?: string | null | undefined;
503
503
  leadDistributionConfig?: {
504
504
  id: string;
505
505
  name: string;
506
506
  } | null | undefined;
507
507
  }, {
508
- agentId: string;
509
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
510
508
  id: string;
509
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
510
+ agentId: string;
511
511
  agent: {
512
512
  id: string;
513
- createdAt: string | Date;
514
- updatedAt: string | Date;
515
513
  firstName: string;
516
514
  lastName: string;
517
515
  email: string;
516
+ createdAt: string | Date;
517
+ updatedAt: string | Date;
518
518
  phoneNumbers?: {
519
519
  id: string;
520
520
  phoneNumber: string;
@@ -532,7 +532,6 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
532
532
  lastName: string;
533
533
  }[] | undefined;
534
534
  };
535
- leadDistributionConfigId?: string | null | undefined;
536
535
  companyId?: string | null | undefined;
537
536
  company?: {
538
537
  id: string;
@@ -540,6 +539,7 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
540
539
  createdAt: string | Date;
541
540
  updatedAt: string | Date;
542
541
  } | null | undefined;
542
+ leadDistributionConfigId?: string | null | undefined;
543
543
  leadDistributionConfig?: {
544
544
  id: string;
545
545
  name: string;
@@ -553,13 +553,11 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
553
553
  }, "strip", z.ZodTypeAny, {
554
554
  limit: number;
555
555
  items: {
556
- agentId: string;
557
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
558
556
  id: string;
557
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
558
+ agentId: string;
559
559
  agent: {
560
560
  id: string;
561
- createdAt: string;
562
- updatedAt: string;
563
561
  firstName: string;
564
562
  lastName: string;
565
563
  email: string;
@@ -569,6 +567,8 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
569
567
  isPrimary: boolean;
570
568
  description?: string | null | undefined;
571
569
  }[];
570
+ createdAt: string;
571
+ updatedAt: string;
572
572
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
573
573
  office?: {
574
574
  id: string;
@@ -580,7 +580,6 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
580
580
  lastName: string;
581
581
  }[] | undefined;
582
582
  };
583
- leadDistributionConfigId?: string | null | undefined;
584
583
  companyId?: string | null | undefined;
585
584
  company?: {
586
585
  id: string;
@@ -588,6 +587,7 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
588
587
  createdAt: string;
589
588
  updatedAt: string;
590
589
  } | null | undefined;
590
+ leadDistributionConfigId?: string | null | undefined;
591
591
  leadDistributionConfig?: {
592
592
  id: string;
593
593
  name: string;
@@ -600,16 +600,16 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
600
600
  }, {
601
601
  limit: number;
602
602
  items: {
603
- agentId: string;
604
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
605
603
  id: string;
604
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
605
+ agentId: string;
606
606
  agent: {
607
607
  id: string;
608
- createdAt: string | Date;
609
- updatedAt: string | Date;
610
608
  firstName: string;
611
609
  lastName: string;
612
610
  email: string;
611
+ createdAt: string | Date;
612
+ updatedAt: string | Date;
613
613
  phoneNumbers?: {
614
614
  id: string;
615
615
  phoneNumber: string;
@@ -627,7 +627,6 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
627
627
  lastName: string;
628
628
  }[] | undefined;
629
629
  };
630
- leadDistributionConfigId?: string | null | undefined;
631
630
  companyId?: string | null | undefined;
632
631
  company?: {
633
632
  id: string;
@@ -635,6 +634,7 @@ export declare const PaginatedAgentLeadDistributionResponseSchema: z.ZodObject<{
635
634
  createdAt: string | Date;
636
635
  updatedAt: string | Date;
637
636
  } | null | undefined;
637
+ leadDistributionConfigId?: string | null | undefined;
638
638
  leadDistributionConfig?: {
639
639
  id: string;
640
640
  name: string;
@@ -653,41 +653,41 @@ export declare const BatchUpdateAgentLeadDistributionSchema: z.ZodEffects<z.ZodO
653
653
  companyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
654
654
  }, "strip", z.ZodTypeAny, {
655
655
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
656
- leadDistributionConfigId?: string | null | undefined;
657
656
  companyId?: string | null | undefined;
657
+ leadDistributionConfigId?: string | null | undefined;
658
658
  }, {
659
659
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
660
- leadDistributionConfigId?: string | null | undefined;
661
660
  companyId?: string | null | undefined;
661
+ leadDistributionConfigId?: string | null | undefined;
662
662
  }>;
663
663
  }, "strip", z.ZodTypeAny, {
664
- agentIds: string[];
665
664
  data: {
666
665
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
667
- leadDistributionConfigId?: string | null | undefined;
668
666
  companyId?: string | null | undefined;
667
+ leadDistributionConfigId?: string | null | undefined;
669
668
  };
670
- }, {
671
669
  agentIds: string[];
670
+ }, {
672
671
  data: {
673
672
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
674
- leadDistributionConfigId?: string | null | undefined;
675
673
  companyId?: string | null | undefined;
674
+ leadDistributionConfigId?: string | null | undefined;
676
675
  };
677
- }>, {
678
676
  agentIds: string[];
677
+ }>, {
679
678
  data: {
680
679
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
681
- leadDistributionConfigId?: string | null | undefined;
682
680
  companyId?: string | null | undefined;
681
+ leadDistributionConfigId?: string | null | undefined;
683
682
  };
684
- }, {
685
683
  agentIds: string[];
684
+ }, {
686
685
  data: {
687
686
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
688
- leadDistributionConfigId?: string | null | undefined;
689
687
  companyId?: string | null | undefined;
688
+ leadDistributionConfigId?: string | null | undefined;
690
689
  };
690
+ agentIds: string[];
691
691
  }>;
692
692
  export declare const BatchDeleteAgentLeadDistributionSchema: z.ZodObject<{
693
693
  agentIds: z.ZodArray<z.ZodString, "many">;
@@ -715,9 +715,6 @@ export type AgentLeadDistributionConfigRef = z.infer<typeof AgentLeadDistributio
715
715
  export type BatchResult = z.infer<typeof BatchResultSchema>;
716
716
  export declare const agentLeadDistributionContract: {
717
717
  findAll: {
718
- metadata: {
719
- tags: string[];
720
- };
721
718
  query: z.ZodObject<{
722
719
  limit: z.ZodDefault<z.ZodNumber>;
723
720
  page: z.ZodDefault<z.ZodNumber>;
@@ -729,18 +726,21 @@ export declare const agentLeadDistributionContract: {
729
726
  }, "strip", z.ZodTypeAny, {
730
727
  limit: number;
731
728
  page: number;
732
- agentId?: string | undefined;
733
729
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
734
- leadDistributionConfigId?: string | undefined;
730
+ agentId?: string | undefined;
735
731
  companyId?: string | undefined;
732
+ leadDistributionConfigId?: string | undefined;
736
733
  }, {
737
- agentId?: string | undefined;
738
734
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
739
- leadDistributionConfigId?: string | undefined;
735
+ agentId?: string | undefined;
740
736
  companyId?: string | undefined;
741
737
  limit?: number | undefined;
742
738
  page?: number | undefined;
739
+ leadDistributionConfigId?: string | undefined;
743
740
  }>;
741
+ metadata: {
742
+ tags: string[];
743
+ };
744
744
  summary: "List all agent lead distribution records";
745
745
  method: "GET";
746
746
  path: "/v2/agent-lead-distribution";
@@ -893,8 +893,6 @@ export declare const agentLeadDistributionContract: {
893
893
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
894
894
  }, "strip", z.ZodTypeAny, {
895
895
  id: string;
896
- createdAt: string;
897
- updatedAt: string;
898
896
  firstName: string;
899
897
  lastName: string;
900
898
  email: string;
@@ -904,6 +902,8 @@ export declare const agentLeadDistributionContract: {
904
902
  isPrimary: boolean;
905
903
  description?: string | null | undefined;
906
904
  }[];
905
+ createdAt: string;
906
+ updatedAt: string;
907
907
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
908
908
  office?: {
909
909
  id: string;
@@ -916,11 +916,11 @@ export declare const agentLeadDistributionContract: {
916
916
  }[] | undefined;
917
917
  }, {
918
918
  id: string;
919
- createdAt: string | Date;
920
- updatedAt: string | Date;
921
919
  firstName: string;
922
920
  lastName: string;
923
921
  email: string;
922
+ createdAt: string | Date;
923
+ updatedAt: string | Date;
924
924
  phoneNumbers?: {
925
925
  id: string;
926
926
  phoneNumber: string;
@@ -956,13 +956,11 @@ export declare const agentLeadDistributionContract: {
956
956
  name: string;
957
957
  }>>>;
958
958
  }, "strip", z.ZodTypeAny, {
959
- agentId: string;
960
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
961
959
  id: string;
960
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
961
+ agentId: string;
962
962
  agent: {
963
963
  id: string;
964
- createdAt: string;
965
- updatedAt: string;
966
964
  firstName: string;
967
965
  lastName: string;
968
966
  email: string;
@@ -972,6 +970,8 @@ export declare const agentLeadDistributionContract: {
972
970
  isPrimary: boolean;
973
971
  description?: string | null | undefined;
974
972
  }[];
973
+ createdAt: string;
974
+ updatedAt: string;
975
975
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
976
976
  office?: {
977
977
  id: string;
@@ -983,7 +983,6 @@ export declare const agentLeadDistributionContract: {
983
983
  lastName: string;
984
984
  }[] | undefined;
985
985
  };
986
- leadDistributionConfigId?: string | null | undefined;
987
986
  companyId?: string | null | undefined;
988
987
  company?: {
989
988
  id: string;
@@ -991,21 +990,22 @@ export declare const agentLeadDistributionContract: {
991
990
  createdAt: string;
992
991
  updatedAt: string;
993
992
  } | null | undefined;
993
+ leadDistributionConfigId?: string | null | undefined;
994
994
  leadDistributionConfig?: {
995
995
  id: string;
996
996
  name: string;
997
997
  } | null | undefined;
998
998
  }, {
999
- agentId: string;
1000
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1001
999
  id: string;
1000
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1001
+ agentId: string;
1002
1002
  agent: {
1003
1003
  id: string;
1004
- createdAt: string | Date;
1005
- updatedAt: string | Date;
1006
1004
  firstName: string;
1007
1005
  lastName: string;
1008
1006
  email: string;
1007
+ createdAt: string | Date;
1008
+ updatedAt: string | Date;
1009
1009
  phoneNumbers?: {
1010
1010
  id: string;
1011
1011
  phoneNumber: string;
@@ -1023,7 +1023,6 @@ export declare const agentLeadDistributionContract: {
1023
1023
  lastName: string;
1024
1024
  }[] | undefined;
1025
1025
  };
1026
- leadDistributionConfigId?: string | null | undefined;
1027
1026
  companyId?: string | null | undefined;
1028
1027
  company?: {
1029
1028
  id: string;
@@ -1031,6 +1030,7 @@ export declare const agentLeadDistributionContract: {
1031
1030
  createdAt: string | Date;
1032
1031
  updatedAt: string | Date;
1033
1032
  } | null | undefined;
1033
+ leadDistributionConfigId?: string | null | undefined;
1034
1034
  leadDistributionConfig?: {
1035
1035
  id: string;
1036
1036
  name: string;
@@ -1044,13 +1044,11 @@ export declare const agentLeadDistributionContract: {
1044
1044
  }, "strip", z.ZodTypeAny, {
1045
1045
  limit: number;
1046
1046
  items: {
1047
- agentId: string;
1048
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1049
1047
  id: string;
1048
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1049
+ agentId: string;
1050
1050
  agent: {
1051
1051
  id: string;
1052
- createdAt: string;
1053
- updatedAt: string;
1054
1052
  firstName: string;
1055
1053
  lastName: string;
1056
1054
  email: string;
@@ -1060,6 +1058,8 @@ export declare const agentLeadDistributionContract: {
1060
1058
  isPrimary: boolean;
1061
1059
  description?: string | null | undefined;
1062
1060
  }[];
1061
+ createdAt: string;
1062
+ updatedAt: string;
1063
1063
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1064
1064
  office?: {
1065
1065
  id: string;
@@ -1071,7 +1071,6 @@ export declare const agentLeadDistributionContract: {
1071
1071
  lastName: string;
1072
1072
  }[] | undefined;
1073
1073
  };
1074
- leadDistributionConfigId?: string | null | undefined;
1075
1074
  companyId?: string | null | undefined;
1076
1075
  company?: {
1077
1076
  id: string;
@@ -1079,6 +1078,7 @@ export declare const agentLeadDistributionContract: {
1079
1078
  createdAt: string;
1080
1079
  updatedAt: string;
1081
1080
  } | null | undefined;
1081
+ leadDistributionConfigId?: string | null | undefined;
1082
1082
  leadDistributionConfig?: {
1083
1083
  id: string;
1084
1084
  name: string;
@@ -1091,16 +1091,16 @@ export declare const agentLeadDistributionContract: {
1091
1091
  }, {
1092
1092
  limit: number;
1093
1093
  items: {
1094
- agentId: string;
1095
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1096
1094
  id: string;
1095
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1096
+ agentId: string;
1097
1097
  agent: {
1098
1098
  id: string;
1099
- createdAt: string | Date;
1100
- updatedAt: string | Date;
1101
1099
  firstName: string;
1102
1100
  lastName: string;
1103
1101
  email: string;
1102
+ createdAt: string | Date;
1103
+ updatedAt: string | Date;
1104
1104
  phoneNumbers?: {
1105
1105
  id: string;
1106
1106
  phoneNumber: string;
@@ -1118,7 +1118,6 @@ export declare const agentLeadDistributionContract: {
1118
1118
  lastName: string;
1119
1119
  }[] | undefined;
1120
1120
  };
1121
- leadDistributionConfigId?: string | null | undefined;
1122
1121
  companyId?: string | null | undefined;
1123
1122
  company?: {
1124
1123
  id: string;
@@ -1126,6 +1125,7 @@ export declare const agentLeadDistributionContract: {
1126
1125
  createdAt: string | Date;
1127
1126
  updatedAt: string | Date;
1128
1127
  } | null | undefined;
1128
+ leadDistributionConfigId?: string | null | undefined;
1129
1129
  leadDistributionConfig?: {
1130
1130
  id: string;
1131
1131
  name: string;
@@ -1325,8 +1325,6 @@ export declare const agentLeadDistributionContract: {
1325
1325
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1326
1326
  }, "strip", z.ZodTypeAny, {
1327
1327
  id: string;
1328
- createdAt: string;
1329
- updatedAt: string;
1330
1328
  firstName: string;
1331
1329
  lastName: string;
1332
1330
  email: string;
@@ -1336,6 +1334,8 @@ export declare const agentLeadDistributionContract: {
1336
1334
  isPrimary: boolean;
1337
1335
  description?: string | null | undefined;
1338
1336
  }[];
1337
+ createdAt: string;
1338
+ updatedAt: string;
1339
1339
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1340
1340
  office?: {
1341
1341
  id: string;
@@ -1348,11 +1348,11 @@ export declare const agentLeadDistributionContract: {
1348
1348
  }[] | undefined;
1349
1349
  }, {
1350
1350
  id: string;
1351
- createdAt: string | Date;
1352
- updatedAt: string | Date;
1353
1351
  firstName: string;
1354
1352
  lastName: string;
1355
1353
  email: string;
1354
+ createdAt: string | Date;
1355
+ updatedAt: string | Date;
1356
1356
  phoneNumbers?: {
1357
1357
  id: string;
1358
1358
  phoneNumber: string;
@@ -1388,13 +1388,11 @@ export declare const agentLeadDistributionContract: {
1388
1388
  name: string;
1389
1389
  }>>>;
1390
1390
  }, "strip", z.ZodTypeAny, {
1391
- agentId: string;
1392
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1393
1391
  id: string;
1392
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1393
+ agentId: string;
1394
1394
  agent: {
1395
1395
  id: string;
1396
- createdAt: string;
1397
- updatedAt: string;
1398
1396
  firstName: string;
1399
1397
  lastName: string;
1400
1398
  email: string;
@@ -1404,6 +1402,8 @@ export declare const agentLeadDistributionContract: {
1404
1402
  isPrimary: boolean;
1405
1403
  description?: string | null | undefined;
1406
1404
  }[];
1405
+ createdAt: string;
1406
+ updatedAt: string;
1407
1407
  roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
1408
1408
  office?: {
1409
1409
  id: string;
@@ -1415,7 +1415,6 @@ export declare const agentLeadDistributionContract: {
1415
1415
  lastName: string;
1416
1416
  }[] | undefined;
1417
1417
  };
1418
- leadDistributionConfigId?: string | null | undefined;
1419
1418
  companyId?: string | null | undefined;
1420
1419
  company?: {
1421
1420
  id: string;
@@ -1423,21 +1422,22 @@ export declare const agentLeadDistributionContract: {
1423
1422
  createdAt: string;
1424
1423
  updatedAt: string;
1425
1424
  } | null | undefined;
1425
+ leadDistributionConfigId?: string | null | undefined;
1426
1426
  leadDistributionConfig?: {
1427
1427
  id: string;
1428
1428
  name: string;
1429
1429
  } | null | undefined;
1430
1430
  }, {
1431
- agentId: string;
1432
- status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1433
1431
  id: string;
1432
+ status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1433
+ agentId: string;
1434
1434
  agent: {
1435
1435
  id: string;
1436
- createdAt: string | Date;
1437
- updatedAt: string | Date;
1438
1436
  firstName: string;
1439
1437
  lastName: string;
1440
1438
  email: string;
1439
+ createdAt: string | Date;
1440
+ updatedAt: string | Date;
1441
1441
  phoneNumbers?: {
1442
1442
  id: string;
1443
1443
  phoneNumber: string;
@@ -1455,7 +1455,6 @@ export declare const agentLeadDistributionContract: {
1455
1455
  lastName: string;
1456
1456
  }[] | undefined;
1457
1457
  };
1458
- leadDistributionConfigId?: string | null | undefined;
1459
1458
  companyId?: string | null | undefined;
1460
1459
  company?: {
1461
1460
  id: string;
@@ -1463,6 +1462,7 @@ export declare const agentLeadDistributionContract: {
1463
1462
  createdAt: string | Date;
1464
1463
  updatedAt: string | Date;
1465
1464
  } | null | undefined;
1465
+ leadDistributionConfigId?: string | null | undefined;
1466
1466
  leadDistributionConfig?: {
1467
1467
  id: string;
1468
1468
  name: string;
@@ -1532,15 +1532,15 @@ export declare const agentLeadDistributionContract: {
1532
1532
  leadDistributionConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1533
1533
  companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1534
1534
  }, "strip", z.ZodTypeAny, {
1535
- agentId: string;
1536
1535
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1537
- leadDistributionConfigId?: string | null | undefined;
1536
+ agentId: string;
1538
1537
  companyId?: string | null | undefined;
1538
+ leadDistributionConfigId?: string | null | undefined;
1539
1539
  }, {
1540
- agentId: string;
1541
1540
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1542
- leadDistributionConfigId?: string | null | undefined;
1541
+ agentId: string;
1543
1542
  companyId?: string | null | undefined;
1543
+ leadDistributionConfigId?: string | null | undefined;
1544
1544
  }>;
1545
1545
  path: "/v2/agent-lead-distribution";
1546
1546
  responses: {
@@ -1641,9 +1641,8 @@ export declare const agentLeadDistributionContract: {
1641
1641
  updatedAt: string | Date;
1642
1642
  }>>>;
1643
1643
  }, "strip", z.ZodTypeAny, {
1644
- agentId: string;
1645
1644
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1646
- leadDistributionConfigId?: string | null | undefined;
1645
+ agentId: string;
1647
1646
  companyId?: string | null | undefined;
1648
1647
  company?: {
1649
1648
  id: string;
@@ -1651,10 +1650,10 @@ export declare const agentLeadDistributionContract: {
1651
1650
  createdAt: string;
1652
1651
  updatedAt: string;
1653
1652
  } | null | undefined;
1653
+ leadDistributionConfigId?: string | null | undefined;
1654
1654
  }, {
1655
- agentId: string;
1656
1655
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1657
- leadDistributionConfigId?: string | null | undefined;
1656
+ agentId: string;
1658
1657
  companyId?: string | null | undefined;
1659
1658
  company?: {
1660
1659
  id: string;
@@ -1662,6 +1661,7 @@ export declare const agentLeadDistributionContract: {
1662
1661
  createdAt: string | Date;
1663
1662
  updatedAt: string | Date;
1664
1663
  } | null | undefined;
1664
+ leadDistributionConfigId?: string | null | undefined;
1665
1665
  }>;
1666
1666
  403: z.ZodObject<{
1667
1667
  statusCode: z.ZodNumber;
@@ -1709,12 +1709,12 @@ export declare const agentLeadDistributionContract: {
1709
1709
  companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1710
1710
  }, "strip", z.ZodTypeAny, {
1711
1711
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1712
- leadDistributionConfigId?: string | null | undefined;
1713
1712
  companyId?: string | null | undefined;
1713
+ leadDistributionConfigId?: string | null | undefined;
1714
1714
  }, {
1715
1715
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1716
- leadDistributionConfigId?: string | null | undefined;
1717
1716
  companyId?: string | null | undefined;
1717
+ leadDistributionConfigId?: string | null | undefined;
1718
1718
  }>;
1719
1719
  path: "/v2/agent-lead-distribution/:agentId";
1720
1720
  responses: {
@@ -1815,9 +1815,8 @@ export declare const agentLeadDistributionContract: {
1815
1815
  updatedAt: string | Date;
1816
1816
  }>>>;
1817
1817
  }, "strip", z.ZodTypeAny, {
1818
- agentId: string;
1819
1818
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1820
- leadDistributionConfigId?: string | null | undefined;
1819
+ agentId: string;
1821
1820
  companyId?: string | null | undefined;
1822
1821
  company?: {
1823
1822
  id: string;
@@ -1825,10 +1824,10 @@ export declare const agentLeadDistributionContract: {
1825
1824
  createdAt: string;
1826
1825
  updatedAt: string;
1827
1826
  } | null | undefined;
1827
+ leadDistributionConfigId?: string | null | undefined;
1828
1828
  }, {
1829
- agentId: string;
1830
1829
  status: "AVAILABLE" | "PAUSED" | "EXCLUDED";
1831
- leadDistributionConfigId?: string | null | undefined;
1830
+ agentId: string;
1832
1831
  companyId?: string | null | undefined;
1833
1832
  company?: {
1834
1833
  id: string;
@@ -1836,6 +1835,7 @@ export declare const agentLeadDistributionContract: {
1836
1835
  createdAt: string | Date;
1837
1836
  updatedAt: string | Date;
1838
1837
  } | null | undefined;
1838
+ leadDistributionConfigId?: string | null | undefined;
1839
1839
  }>;
1840
1840
  404: z.ZodObject<{
1841
1841
  statusCode: z.ZodNumber;
@@ -2047,41 +2047,41 @@ export declare const agentLeadDistributionContract: {
2047
2047
  companyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2048
2048
  }, "strip", z.ZodTypeAny, {
2049
2049
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
2050
- leadDistributionConfigId?: string | null | undefined;
2051
2050
  companyId?: string | null | undefined;
2051
+ leadDistributionConfigId?: string | null | undefined;
2052
2052
  }, {
2053
2053
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
2054
- leadDistributionConfigId?: string | null | undefined;
2055
2054
  companyId?: string | null | undefined;
2055
+ leadDistributionConfigId?: string | null | undefined;
2056
2056
  }>;
2057
2057
  }, "strip", z.ZodTypeAny, {
2058
- agentIds: string[];
2059
2058
  data: {
2060
2059
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
2061
- leadDistributionConfigId?: string | null | undefined;
2062
2060
  companyId?: string | null | undefined;
2061
+ leadDistributionConfigId?: string | null | undefined;
2063
2062
  };
2064
- }, {
2065
2063
  agentIds: string[];
2064
+ }, {
2066
2065
  data: {
2067
2066
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
2068
- leadDistributionConfigId?: string | null | undefined;
2069
2067
  companyId?: string | null | undefined;
2068
+ leadDistributionConfigId?: string | null | undefined;
2070
2069
  };
2071
- }>, {
2072
2070
  agentIds: string[];
2071
+ }>, {
2073
2072
  data: {
2074
2073
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
2075
- leadDistributionConfigId?: string | null | undefined;
2076
2074
  companyId?: string | null | undefined;
2075
+ leadDistributionConfigId?: string | null | undefined;
2077
2076
  };
2078
- }, {
2079
2077
  agentIds: string[];
2078
+ }, {
2080
2079
  data: {
2081
2080
  status?: "AVAILABLE" | "PAUSED" | "EXCLUDED" | undefined;
2082
- leadDistributionConfigId?: string | null | undefined;
2083
2081
  companyId?: string | null | undefined;
2082
+ leadDistributionConfigId?: string | null | undefined;
2084
2083
  };
2084
+ agentIds: string[];
2085
2085
  }>;
2086
2086
  path: "/v2/agent-lead-distribution/batch";
2087
2087
  responses: {