@dakkitor/api-contracts 1.1.109 → 1.1.112

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 (31) hide show
  1. package/dist/actives/actives.contract.d.ts +3059 -3059
  2. package/dist/agent-client-links/agent-client-links.contract.d.ts +74 -74
  3. package/dist/bookings/bookings.contract.d.ts +11037 -11037
  4. package/dist/call-history/call-history.contract.d.ts +294 -294
  5. package/dist/client-contacts/client-contacts.contract.d.ts +186 -186
  6. package/dist/clients/clients.contract.d.ts +99 -99
  7. package/dist/clients/clients.contract.d.ts.map +1 -1
  8. package/dist/clients/clients.contract.js +5 -5
  9. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +440 -440
  10. package/dist/collaborations/collaborations.contract.d.ts +328 -328
  11. package/dist/companies/companies.contract.d.ts +22 -22
  12. package/dist/curated-workers/curated-workers.contract.d.ts +76 -76
  13. package/dist/dashboards/agent-daily-metrics.contract.d.ts +3 -3
  14. package/dist/dashboards/dashboard-widgets.contract.d.ts +224 -150
  15. package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
  16. package/dist/dashboards/dashboard-widgets.contract.js +124 -101
  17. package/dist/dashboards/dashboard.contract.d.ts +14 -14
  18. package/dist/files/files.contract.d.ts +24 -24
  19. package/dist/jobs/jobs.contract.d.ts +907 -907
  20. package/dist/lead-assignments/lead-assignments.contract.d.ts +160 -160
  21. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +34 -34
  22. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +7 -7
  23. package/dist/leads/leads.contract.d.ts +136 -136
  24. package/dist/postcodes/postcodes.contract.d.ts +18 -18
  25. package/dist/qualifications/qualifications.contract.d.ts +22 -22
  26. package/dist/trades/trades.contract.d.ts +16 -16
  27. package/dist/users/users.contract.d.ts +6 -6
  28. package/dist/workers/workers.contract.d.ts +288 -288
  29. package/package.json +41 -41
  30. package/dist/abilities/interconnection.json +0 -370
  31. package/dist/abilities/second-agent.abilities copy.json +0 -370
@@ -33,28 +33,28 @@ export declare const LeadSchema: z.ZodObject<{
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  id: string;
35
35
  phoneNumber: string;
36
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
36
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
37
+ name: string;
37
38
  createdAt: string;
38
39
  updatedAt: string;
39
- name: string;
40
40
  source: string;
41
- qualityScore?: number | null | undefined;
42
- conversionRate?: number | null | undefined;
43
- totalCalls?: number | null | undefined;
44
41
  blacklistReason?: string | null | undefined;
42
+ totalCalls?: number | null | undefined;
43
+ conversionRate?: number | null | undefined;
44
+ qualityScore?: number | null | undefined;
45
45
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
46
46
  }, {
47
47
  id: string;
48
48
  phoneNumber: string;
49
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
49
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
50
+ name: string;
50
51
  createdAt: string | Date;
51
52
  updatedAt: string | Date;
52
- name: string;
53
53
  source: string;
54
- qualityScore?: number | null | undefined;
55
- conversionRate?: number | null | undefined;
56
- totalCalls?: number | null | undefined;
57
54
  blacklistReason?: string | null | undefined;
55
+ totalCalls?: number | null | undefined;
56
+ conversionRate?: number | null | undefined;
57
+ qualityScore?: number | null | undefined;
58
58
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
59
59
  }>;
60
60
  /**
@@ -72,13 +72,13 @@ export declare const CreateLeadSchema: z.ZodEffects<z.ZodObject<{
72
72
  name: string;
73
73
  source: string;
74
74
  isBlacklisted: boolean;
75
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
75
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
76
76
  blacklistReason?: string | null | undefined;
77
77
  }, {
78
78
  phoneNumber: string;
79
79
  name: string;
80
80
  source: string;
81
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
81
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
82
82
  blacklistReason?: string | null | undefined;
83
83
  isBlacklisted?: boolean | undefined;
84
84
  }>, {
@@ -86,13 +86,13 @@ export declare const CreateLeadSchema: z.ZodEffects<z.ZodObject<{
86
86
  name: string;
87
87
  source: string;
88
88
  isBlacklisted: boolean;
89
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
89
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
90
90
  blacklistReason?: string | null | undefined;
91
91
  }, {
92
92
  phoneNumber: string;
93
93
  name: string;
94
94
  source: string;
95
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
95
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
96
96
  blacklistReason?: string | null | undefined;
97
97
  isBlacklisted?: boolean | undefined;
98
98
  }>;
@@ -107,28 +107,28 @@ export declare const UpdateLeadSchema: z.ZodEffects<z.ZodObject<{
107
107
  source: z.ZodOptional<z.ZodString>;
108
108
  }, "strip", z.ZodTypeAny, {
109
109
  phoneNumber?: string | undefined;
110
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
110
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
111
111
  name?: string | undefined;
112
- source?: string | undefined;
113
112
  blacklistReason?: string | null | undefined;
113
+ source?: string | undefined;
114
114
  }, {
115
115
  phoneNumber?: string | undefined;
116
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
116
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
117
117
  name?: string | undefined;
118
- source?: string | undefined;
119
118
  blacklistReason?: string | null | undefined;
119
+ source?: string | undefined;
120
120
  }>, {
121
121
  phoneNumber?: string | undefined;
122
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
122
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
123
123
  name?: string | undefined;
124
- source?: string | undefined;
125
124
  blacklistReason?: string | null | undefined;
125
+ source?: string | undefined;
126
126
  }, {
127
127
  phoneNumber?: string | undefined;
128
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
128
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
129
129
  name?: string | undefined;
130
- source?: string | undefined;
131
130
  blacklistReason?: string | null | undefined;
131
+ source?: string | undefined;
132
132
  }>;
133
133
  /**
134
134
  * Filter Lead Schema
@@ -152,30 +152,30 @@ export declare const FilterLeadSchema: z.ZodObject<{
152
152
  limit: number;
153
153
  page: number;
154
154
  phoneNumber?: string | null | undefined;
155
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
155
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
156
156
  name?: string | null | undefined;
157
+ sortBy?: "phoneNumber" | "status" | "name" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "conversionRate" | "qualityScore" | null | undefined;
158
+ sortOrder?: "ASC" | "DESC" | null | undefined;
157
159
  source?: string | null | undefined;
158
160
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
159
161
  minQualityScore?: number | null | undefined;
160
162
  maxQualityScore?: number | null | undefined;
161
163
  minConversionRate?: number | null | undefined;
162
164
  minTotalCalls?: number | null | undefined;
163
- sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
164
- sortOrder?: "ASC" | "DESC" | null | undefined;
165
165
  }, {
166
166
  phoneNumber?: string | null | undefined;
167
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
167
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
168
+ name?: string | null | undefined;
168
169
  limit?: number | undefined;
169
170
  page?: number | undefined;
170
- name?: string | null | undefined;
171
+ sortBy?: "phoneNumber" | "status" | "name" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "conversionRate" | "qualityScore" | null | undefined;
172
+ sortOrder?: "ASC" | "DESC" | null | undefined;
171
173
  source?: string | null | undefined;
172
174
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
173
175
  minQualityScore?: number | null | undefined;
174
176
  maxQualityScore?: number | null | undefined;
175
177
  minConversionRate?: number | null | undefined;
176
178
  minTotalCalls?: number | null | undefined;
177
- sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
178
- sortOrder?: "ASC" | "DESC" | null | undefined;
179
179
  }>;
180
180
  /**
181
181
  * Call History Response Schema for leads
@@ -196,25 +196,25 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
196
196
  id: string;
197
197
  createdAt: string;
198
198
  updatedAt: string;
199
- assignmentId: string;
200
- leadId: string;
201
199
  agentId: string;
202
- callDate: string;
203
- callType: import("../call-history/call-history.contract").CallType;
204
200
  rating: import("../common/call-rating.schema").CallRating;
201
+ leadId: string;
202
+ callDate: string;
205
203
  ratingWeight: number;
204
+ assignmentId: string;
205
+ callType: import("../call-history/call-history.contract").CallType;
206
206
  notes?: string | null | undefined;
207
207
  }, {
208
208
  id: string;
209
209
  createdAt: string | Date;
210
210
  updatedAt: string | Date;
211
- assignmentId: string;
212
- leadId: string;
213
211
  agentId: string;
214
- callDate: string | Date;
215
- callType: import("../call-history/call-history.contract").CallType;
216
212
  rating: import("../common/call-rating.schema").CallRating;
213
+ leadId: string;
214
+ callDate: string | Date;
217
215
  ratingWeight: number;
216
+ assignmentId: string;
217
+ callType: import("../call-history/call-history.contract").CallType;
218
218
  notes?: string | null | undefined;
219
219
  }>;
220
220
  /**
@@ -297,28 +297,28 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
297
297
  }, "strip", z.ZodTypeAny, {
298
298
  id: string;
299
299
  phoneNumber: string;
300
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
300
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
301
+ name: string;
301
302
  createdAt: string;
302
303
  updatedAt: string;
303
- name: string;
304
304
  source: string;
305
- qualityScore?: number | null | undefined;
306
- conversionRate?: number | null | undefined;
307
- totalCalls?: number | null | undefined;
308
305
  blacklistReason?: string | null | undefined;
306
+ totalCalls?: number | null | undefined;
307
+ conversionRate?: number | null | undefined;
308
+ qualityScore?: number | null | undefined;
309
309
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
310
310
  }, {
311
311
  id: string;
312
312
  phoneNumber: string;
313
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
313
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
314
+ name: string;
314
315
  createdAt: string | Date;
315
316
  updatedAt: string | Date;
316
- name: string;
317
317
  source: string;
318
- qualityScore?: number | null | undefined;
319
- conversionRate?: number | null | undefined;
320
- totalCalls?: number | null | undefined;
321
318
  blacklistReason?: string | null | undefined;
319
+ totalCalls?: number | null | undefined;
320
+ conversionRate?: number | null | undefined;
321
+ qualityScore?: number | null | undefined;
322
322
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
323
323
  }>, "many">;
324
324
  totalCount: z.ZodNumber;
@@ -331,15 +331,15 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
331
331
  items: {
332
332
  id: string;
333
333
  phoneNumber: string;
334
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
334
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
335
+ name: string;
335
336
  createdAt: string;
336
337
  updatedAt: string;
337
- name: string;
338
338
  source: string;
339
- qualityScore?: number | null | undefined;
340
- conversionRate?: number | null | undefined;
341
- totalCalls?: number | null | undefined;
342
339
  blacklistReason?: string | null | undefined;
340
+ totalCalls?: number | null | undefined;
341
+ conversionRate?: number | null | undefined;
342
+ qualityScore?: number | null | undefined;
343
343
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
344
344
  }[];
345
345
  totalCount: number;
@@ -351,15 +351,15 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
351
351
  items: {
352
352
  id: string;
353
353
  phoneNumber: string;
354
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
354
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
355
+ name: string;
355
356
  createdAt: string | Date;
356
357
  updatedAt: string | Date;
357
- name: string;
358
358
  source: string;
359
- qualityScore?: number | null | undefined;
360
- conversionRate?: number | null | undefined;
361
- totalCalls?: number | null | undefined;
362
359
  blacklistReason?: string | null | undefined;
360
+ totalCalls?: number | null | undefined;
361
+ conversionRate?: number | null | undefined;
362
+ qualityScore?: number | null | undefined;
363
363
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
364
364
  }[];
365
365
  totalCount: number;
@@ -397,13 +397,13 @@ export declare const leadsContractRouter: {
397
397
  name: string;
398
398
  source: string;
399
399
  isBlacklisted: boolean;
400
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
400
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
401
401
  blacklistReason?: string | null | undefined;
402
402
  }, {
403
403
  phoneNumber: string;
404
404
  name: string;
405
405
  source: string;
406
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
406
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
407
407
  blacklistReason?: string | null | undefined;
408
408
  isBlacklisted?: boolean | undefined;
409
409
  }>, {
@@ -411,13 +411,13 @@ export declare const leadsContractRouter: {
411
411
  name: string;
412
412
  source: string;
413
413
  isBlacklisted: boolean;
414
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
414
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
415
415
  blacklistReason?: string | null | undefined;
416
416
  }, {
417
417
  phoneNumber: string;
418
418
  name: string;
419
419
  source: string;
420
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
420
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
421
421
  blacklistReason?: string | null | undefined;
422
422
  isBlacklisted?: boolean | undefined;
423
423
  }>;
@@ -539,28 +539,28 @@ export declare const leadsContractRouter: {
539
539
  }, "strip", z.ZodTypeAny, {
540
540
  id: string;
541
541
  phoneNumber: string;
542
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
542
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
543
+ name: string;
543
544
  createdAt: string;
544
545
  updatedAt: string;
545
- name: string;
546
546
  source: string;
547
- qualityScore?: number | null | undefined;
548
- conversionRate?: number | null | undefined;
549
- totalCalls?: number | null | undefined;
550
547
  blacklistReason?: string | null | undefined;
548
+ totalCalls?: number | null | undefined;
549
+ conversionRate?: number | null | undefined;
550
+ qualityScore?: number | null | undefined;
551
551
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
552
552
  }, {
553
553
  id: string;
554
554
  phoneNumber: string;
555
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
555
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
556
+ name: string;
556
557
  createdAt: string | Date;
557
558
  updatedAt: string | Date;
558
- name: string;
559
559
  source: string;
560
- qualityScore?: number | null | undefined;
561
- conversionRate?: number | null | undefined;
562
- totalCalls?: number | null | undefined;
563
560
  blacklistReason?: string | null | undefined;
561
+ totalCalls?: number | null | undefined;
562
+ conversionRate?: number | null | undefined;
563
+ qualityScore?: number | null | undefined;
564
564
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
565
565
  }>;
566
566
  409: z.ZodObject<{
@@ -610,30 +610,30 @@ export declare const leadsContractRouter: {
610
610
  limit: number;
611
611
  page: number;
612
612
  phoneNumber?: string | null | undefined;
613
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
613
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
614
614
  name?: string | null | undefined;
615
+ sortBy?: "phoneNumber" | "status" | "name" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "conversionRate" | "qualityScore" | null | undefined;
616
+ sortOrder?: "ASC" | "DESC" | null | undefined;
615
617
  source?: string | null | undefined;
616
618
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
617
619
  minQualityScore?: number | null | undefined;
618
620
  maxQualityScore?: number | null | undefined;
619
621
  minConversionRate?: number | null | undefined;
620
622
  minTotalCalls?: number | null | undefined;
621
- sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
622
- sortOrder?: "ASC" | "DESC" | null | undefined;
623
623
  }, {
624
624
  phoneNumber?: string | null | undefined;
625
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
625
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
626
+ name?: string | null | undefined;
626
627
  limit?: number | undefined;
627
628
  page?: number | undefined;
628
- name?: string | null | undefined;
629
+ sortBy?: "phoneNumber" | "status" | "name" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "conversionRate" | "qualityScore" | null | undefined;
630
+ sortOrder?: "ASC" | "DESC" | null | undefined;
629
631
  source?: string | null | undefined;
630
632
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
631
633
  minQualityScore?: number | null | undefined;
632
634
  maxQualityScore?: number | null | undefined;
633
635
  minConversionRate?: number | null | undefined;
634
636
  minTotalCalls?: number | null | undefined;
635
- sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
636
- sortOrder?: "ASC" | "DESC" | null | undefined;
637
637
  }>;
638
638
  metadata: {
639
639
  tags: string[];
@@ -762,28 +762,28 @@ export declare const leadsContractRouter: {
762
762
  }, "strip", z.ZodTypeAny, {
763
763
  id: string;
764
764
  phoneNumber: string;
765
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
765
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
766
+ name: string;
766
767
  createdAt: string;
767
768
  updatedAt: string;
768
- name: string;
769
769
  source: string;
770
- qualityScore?: number | null | undefined;
771
- conversionRate?: number | null | undefined;
772
- totalCalls?: number | null | undefined;
773
770
  blacklistReason?: string | null | undefined;
771
+ totalCalls?: number | null | undefined;
772
+ conversionRate?: number | null | undefined;
773
+ qualityScore?: number | null | undefined;
774
774
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
775
775
  }, {
776
776
  id: string;
777
777
  phoneNumber: string;
778
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
778
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
779
+ name: string;
779
780
  createdAt: string | Date;
780
781
  updatedAt: string | Date;
781
- name: string;
782
782
  source: string;
783
- qualityScore?: number | null | undefined;
784
- conversionRate?: number | null | undefined;
785
- totalCalls?: number | null | undefined;
786
783
  blacklistReason?: string | null | undefined;
784
+ totalCalls?: number | null | undefined;
785
+ conversionRate?: number | null | undefined;
786
+ qualityScore?: number | null | undefined;
787
787
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
788
788
  }>, "many">;
789
789
  totalCount: z.ZodNumber;
@@ -796,15 +796,15 @@ export declare const leadsContractRouter: {
796
796
  items: {
797
797
  id: string;
798
798
  phoneNumber: string;
799
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
799
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
800
+ name: string;
800
801
  createdAt: string;
801
802
  updatedAt: string;
802
- name: string;
803
803
  source: string;
804
- qualityScore?: number | null | undefined;
805
- conversionRate?: number | null | undefined;
806
- totalCalls?: number | null | undefined;
807
804
  blacklistReason?: string | null | undefined;
805
+ totalCalls?: number | null | undefined;
806
+ conversionRate?: number | null | undefined;
807
+ qualityScore?: number | null | undefined;
808
808
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
809
809
  }[];
810
810
  totalCount: number;
@@ -816,15 +816,15 @@ export declare const leadsContractRouter: {
816
816
  items: {
817
817
  id: string;
818
818
  phoneNumber: string;
819
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
819
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
820
+ name: string;
820
821
  createdAt: string | Date;
821
822
  updatedAt: string | Date;
822
- name: string;
823
823
  source: string;
824
- qualityScore?: number | null | undefined;
825
- conversionRate?: number | null | undefined;
826
- totalCalls?: number | null | undefined;
827
824
  blacklistReason?: string | null | undefined;
825
+ totalCalls?: number | null | undefined;
826
+ conversionRate?: number | null | undefined;
827
+ qualityScore?: number | null | undefined;
828
828
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
829
829
  }[];
830
830
  totalCount: number;
@@ -968,28 +968,28 @@ export declare const leadsContractRouter: {
968
968
  }, "strip", z.ZodTypeAny, {
969
969
  id: string;
970
970
  phoneNumber: string;
971
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
971
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
972
+ name: string;
972
973
  createdAt: string;
973
974
  updatedAt: string;
974
- name: string;
975
975
  source: string;
976
- qualityScore?: number | null | undefined;
977
- conversionRate?: number | null | undefined;
978
- totalCalls?: number | null | undefined;
979
976
  blacklistReason?: string | null | undefined;
977
+ totalCalls?: number | null | undefined;
978
+ conversionRate?: number | null | undefined;
979
+ qualityScore?: number | null | undefined;
980
980
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
981
981
  }, {
982
982
  id: string;
983
983
  phoneNumber: string;
984
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
984
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
985
+ name: string;
985
986
  createdAt: string | Date;
986
987
  updatedAt: string | Date;
987
- name: string;
988
988
  source: string;
989
- qualityScore?: number | null | undefined;
990
- conversionRate?: number | null | undefined;
991
- totalCalls?: number | null | undefined;
992
989
  blacklistReason?: string | null | undefined;
990
+ totalCalls?: number | null | undefined;
991
+ conversionRate?: number | null | undefined;
992
+ qualityScore?: number | null | undefined;
993
993
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
994
994
  }>;
995
995
  404: z.ZodObject<{
@@ -1043,28 +1043,28 @@ export declare const leadsContractRouter: {
1043
1043
  source: z.ZodOptional<z.ZodString>;
1044
1044
  }, "strip", z.ZodTypeAny, {
1045
1045
  phoneNumber?: string | undefined;
1046
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1046
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
1047
1047
  name?: string | undefined;
1048
- source?: string | undefined;
1049
1048
  blacklistReason?: string | null | undefined;
1049
+ source?: string | undefined;
1050
1050
  }, {
1051
1051
  phoneNumber?: string | undefined;
1052
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1052
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
1053
1053
  name?: string | undefined;
1054
- source?: string | undefined;
1055
1054
  blacklistReason?: string | null | undefined;
1055
+ source?: string | undefined;
1056
1056
  }>, {
1057
1057
  phoneNumber?: string | undefined;
1058
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1058
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
1059
1059
  name?: string | undefined;
1060
- source?: string | undefined;
1061
1060
  blacklistReason?: string | null | undefined;
1061
+ source?: string | undefined;
1062
1062
  }, {
1063
1063
  phoneNumber?: string | undefined;
1064
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1064
+ status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
1065
1065
  name?: string | undefined;
1066
- source?: string | undefined;
1067
1066
  blacklistReason?: string | null | undefined;
1067
+ source?: string | undefined;
1068
1068
  }>;
1069
1069
  path: "/v2/leads/:id";
1070
1070
  responses: {
@@ -1184,28 +1184,28 @@ export declare const leadsContractRouter: {
1184
1184
  }, "strip", z.ZodTypeAny, {
1185
1185
  id: string;
1186
1186
  phoneNumber: string;
1187
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1187
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
1188
+ name: string;
1188
1189
  createdAt: string;
1189
1190
  updatedAt: string;
1190
- name: string;
1191
1191
  source: string;
1192
- qualityScore?: number | null | undefined;
1193
- conversionRate?: number | null | undefined;
1194
- totalCalls?: number | null | undefined;
1195
1192
  blacklistReason?: string | null | undefined;
1193
+ totalCalls?: number | null | undefined;
1194
+ conversionRate?: number | null | undefined;
1195
+ qualityScore?: number | null | undefined;
1196
1196
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1197
1197
  }, {
1198
1198
  id: string;
1199
1199
  phoneNumber: string;
1200
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1200
+ status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
1201
+ name: string;
1201
1202
  createdAt: string | Date;
1202
1203
  updatedAt: string | Date;
1203
- name: string;
1204
1204
  source: string;
1205
- qualityScore?: number | null | undefined;
1206
- conversionRate?: number | null | undefined;
1207
- totalCalls?: number | null | undefined;
1208
1205
  blacklistReason?: string | null | undefined;
1206
+ totalCalls?: number | null | undefined;
1207
+ conversionRate?: number | null | undefined;
1208
+ qualityScore?: number | null | undefined;
1209
1209
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1210
1210
  }>;
1211
1211
  404: z.ZodObject<{
@@ -1429,14 +1429,14 @@ export declare const leadsContractRouter: {
1429
1429
  notes: z.ZodOptional<z.ZodString>;
1430
1430
  callType: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>;
1431
1431
  }, "strip", z.ZodTypeAny, {
1432
+ rating: import("../common/call-rating.schema").CallRating;
1432
1433
  assignmentId: string;
1433
1434
  callType: import("../call-history/call-history.contract").CallType;
1434
- rating: import("../common/call-rating.schema").CallRating;
1435
1435
  notes?: string | undefined;
1436
1436
  }, {
1437
+ rating: import("../common/call-rating.schema").CallRating;
1437
1438
  assignmentId: string;
1438
1439
  callType: import("../call-history/call-history.contract").CallType;
1439
- rating: import("../common/call-rating.schema").CallRating;
1440
1440
  notes?: string | undefined;
1441
1441
  }>;
1442
1442
  path: "/v2/leads/:id/call";
@@ -1557,25 +1557,25 @@ export declare const leadsContractRouter: {
1557
1557
  id: string;
1558
1558
  createdAt: string;
1559
1559
  updatedAt: string;
1560
- assignmentId: string;
1561
- leadId: string;
1562
1560
  agentId: string;
1563
- callDate: string;
1564
- callType: import("../call-history/call-history.contract").CallType;
1565
1561
  rating: import("../common/call-rating.schema").CallRating;
1562
+ leadId: string;
1563
+ callDate: string;
1566
1564
  ratingWeight: number;
1565
+ assignmentId: string;
1566
+ callType: import("../call-history/call-history.contract").CallType;
1567
1567
  notes?: string | null | undefined;
1568
1568
  }, {
1569
1569
  id: string;
1570
1570
  createdAt: string | Date;
1571
1571
  updatedAt: string | Date;
1572
- assignmentId: string;
1573
- leadId: string;
1574
1572
  agentId: string;
1575
- callDate: string | Date;
1576
- callType: import("../call-history/call-history.contract").CallType;
1577
1573
  rating: import("../common/call-rating.schema").CallRating;
1574
+ leadId: string;
1575
+ callDate: string | Date;
1578
1576
  ratingWeight: number;
1577
+ assignmentId: string;
1578
+ callType: import("../call-history/call-history.contract").CallType;
1579
1579
  notes?: string | null | undefined;
1580
1580
  }>;
1581
1581
  };