@dakkitor/api-contracts 1.1.39 → 1.1.41

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.
@@ -1 +1 @@
1
- {"version":3,"file":"agent-lead-distribution.contract.d.ts","sourceRoot":"","sources":["../../contracts/lead-distribution/agent-lead-distribution.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,iCAAiC,gDAEM,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBM,CAAC;AAE/C,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIQ,CAAC;AAE1D,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;EAiBM,CAAC;AAErD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAgBM,CAAC;AAErD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;EAU5C,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrD,CAAC;AAGL,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC;AACF,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFzC,CAAC"}
1
+ {"version":3,"file":"agent-lead-distribution.contract.d.ts","sourceRoot":"","sources":["../../contracts/lead-distribution/agent-lead-distribution.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,iCAAiC,gDAEM,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBM,CAAC;AAE/C,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIQ,CAAC;AAE1D,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;EAiBM,CAAC;AAErD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAgBM,CAAC;AAErD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;EAU5C,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFzC,CAAC"}
@@ -31,31 +31,31 @@ export declare const LeadSchema: z.ZodObject<{
31
31
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
32
32
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
33
33
  }, "strip", z.ZodTypeAny, {
34
+ createdAt: string;
35
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
34
36
  id: string;
37
+ updatedAt: string;
35
38
  name: string;
36
39
  phoneNumber: string;
37
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
38
- createdAt: string;
39
- updatedAt: string;
40
40
  source: string;
41
+ blacklistReason?: string | null | undefined;
41
42
  totalCalls?: number | null | undefined;
42
43
  qualityScore?: number | null | undefined;
43
- conversionRate?: number | null | undefined;
44
- blacklistReason?: string | null | undefined;
45
44
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
45
+ conversionRate?: number | null | undefined;
46
46
  }, {
47
+ createdAt: string | Date;
48
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
47
49
  id: string;
50
+ updatedAt: string | Date;
48
51
  name: string;
49
52
  phoneNumber: string;
50
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
51
- createdAt: string | Date;
52
- updatedAt: string | Date;
53
53
  source: string;
54
+ blacklistReason?: string | null | undefined;
54
55
  totalCalls?: number | null | undefined;
55
56
  qualityScore?: number | null | undefined;
56
- conversionRate?: number | null | undefined;
57
- blacklistReason?: string | null | undefined;
58
57
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
58
+ conversionRate?: number | null | undefined;
59
59
  }>;
60
60
  /**
61
61
  * Create Lead Schema
@@ -72,13 +72,13 @@ export declare const CreateLeadSchema: z.ZodObject<{
72
72
  phoneNumber: string;
73
73
  source: string;
74
74
  isBlacklisted: boolean;
75
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
75
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | undefined;
76
76
  blacklistReason?: string | undefined;
77
77
  }, {
78
78
  name: string;
79
79
  phoneNumber: string;
80
80
  source: string;
81
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
81
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | undefined;
82
82
  blacklistReason?: string | undefined;
83
83
  isBlacklisted?: boolean | undefined;
84
84
  }>;
@@ -92,17 +92,17 @@ export declare const UpdateLeadSchema: z.ZodObject<{
92
92
  blacklistReason: z.ZodOptional<z.ZodString>;
93
93
  source: z.ZodOptional<z.ZodString>;
94
94
  }, "strip", z.ZodTypeAny, {
95
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | undefined;
95
96
  name?: string | undefined;
96
97
  phoneNumber?: string | undefined;
97
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
98
- source?: string | undefined;
99
98
  blacklistReason?: string | undefined;
99
+ source?: string | undefined;
100
100
  }, {
101
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | undefined;
101
102
  name?: string | undefined;
102
103
  phoneNumber?: string | undefined;
103
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
104
- source?: string | undefined;
105
104
  blacklistReason?: string | undefined;
105
+ source?: string | undefined;
106
106
  }>;
107
107
  /**
108
108
  * Filter Lead Schema
@@ -125,11 +125,11 @@ export declare const FilterLeadSchema: z.ZodObject<{
125
125
  }, "strip", z.ZodTypeAny, {
126
126
  limit: number;
127
127
  page: number;
128
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | null | undefined;
128
129
  name?: string | null | undefined;
129
- phoneNumber?: string | null | undefined;
130
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
131
- sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
130
+ sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
132
131
  sortOrder?: "ASC" | "DESC" | null | undefined;
132
+ phoneNumber?: string | null | undefined;
133
133
  source?: string | null | undefined;
134
134
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
135
135
  minQualityScore?: number | null | undefined;
@@ -137,13 +137,13 @@ export declare const FilterLeadSchema: z.ZodObject<{
137
137
  minConversionRate?: number | null | undefined;
138
138
  minTotalCalls?: number | null | undefined;
139
139
  }, {
140
- name?: string | null | undefined;
141
- phoneNumber?: string | null | undefined;
142
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
140
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | null | undefined;
143
141
  limit?: number | undefined;
144
142
  page?: number | undefined;
145
- sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
143
+ name?: string | null | undefined;
144
+ sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
146
145
  sortOrder?: "ASC" | "DESC" | null | undefined;
146
+ phoneNumber?: string | null | undefined;
147
147
  source?: string | null | undefined;
148
148
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
149
149
  minQualityScore?: number | null | undefined;
@@ -167,27 +167,27 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
167
167
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
168
168
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
169
169
  }, "strip", z.ZodTypeAny, {
170
- id: string;
171
- assignmentId: string;
172
- leadId: string;
173
- agentId: string;
174
170
  createdAt: string;
171
+ id: string;
175
172
  updatedAt: string;
176
- callDate: string;
177
- callType: import("../call-history/call-history.contract").CallType;
173
+ agentId: string;
174
+ leadId: string;
175
+ assignmentId: string;
178
176
  rating: import("../common/call-rating.schema").CallRating;
177
+ callType: import("../call-history/call-history.contract").CallType;
178
+ callDate: string;
179
179
  ratingWeight: number;
180
180
  notes?: string | null | undefined;
181
181
  }, {
182
- id: string;
183
- assignmentId: string;
184
- leadId: string;
185
- agentId: string;
186
182
  createdAt: string | Date;
183
+ id: string;
187
184
  updatedAt: string | Date;
188
- callDate: string | Date;
189
- callType: import("../call-history/call-history.contract").CallType;
185
+ agentId: string;
186
+ leadId: string;
187
+ assignmentId: string;
190
188
  rating: import("../common/call-rating.schema").CallRating;
189
+ callType: import("../call-history/call-history.contract").CallType;
190
+ callDate: string | Date;
191
191
  ratingWeight: number;
192
192
  notes?: string | null | undefined;
193
193
  }>;
@@ -269,31 +269,31 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
269
269
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
270
270
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
271
271
  }, "strip", z.ZodTypeAny, {
272
+ createdAt: string;
273
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
272
274
  id: string;
275
+ updatedAt: string;
273
276
  name: string;
274
277
  phoneNumber: string;
275
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
276
- createdAt: string;
277
- updatedAt: string;
278
278
  source: string;
279
+ blacklistReason?: string | null | undefined;
279
280
  totalCalls?: number | null | undefined;
280
281
  qualityScore?: number | null | undefined;
281
- conversionRate?: number | null | undefined;
282
- blacklistReason?: string | null | undefined;
283
282
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
283
+ conversionRate?: number | null | undefined;
284
284
  }, {
285
+ createdAt: string | Date;
286
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
285
287
  id: string;
288
+ updatedAt: string | Date;
286
289
  name: string;
287
290
  phoneNumber: string;
288
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
289
- createdAt: string | Date;
290
- updatedAt: string | Date;
291
291
  source: string;
292
+ blacklistReason?: string | null | undefined;
292
293
  totalCalls?: number | null | undefined;
293
294
  qualityScore?: number | null | undefined;
294
- conversionRate?: number | null | undefined;
295
- blacklistReason?: string | null | undefined;
296
295
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
296
+ conversionRate?: number | null | undefined;
297
297
  }>, "many">;
298
298
  totalCount: z.ZodNumber;
299
299
  limit: z.ZodNumber;
@@ -301,42 +301,42 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
301
301
  currentPage: z.ZodNumber;
302
302
  totalPages: z.ZodNumber;
303
303
  }, "strip", z.ZodTypeAny, {
304
+ limit: number;
304
305
  items: {
306
+ createdAt: string;
307
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
305
308
  id: string;
309
+ updatedAt: string;
306
310
  name: string;
307
311
  phoneNumber: string;
308
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
309
- createdAt: string;
310
- updatedAt: string;
311
312
  source: string;
313
+ blacklistReason?: string | null | undefined;
312
314
  totalCalls?: number | null | undefined;
313
315
  qualityScore?: number | null | undefined;
314
- conversionRate?: number | null | undefined;
315
- blacklistReason?: string | null | undefined;
316
316
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
317
+ conversionRate?: number | null | undefined;
317
318
  }[];
318
319
  totalCount: number;
319
- limit: number;
320
320
  skip: number;
321
321
  currentPage: number;
322
322
  totalPages: number;
323
323
  }, {
324
+ limit: number;
324
325
  items: {
326
+ createdAt: string | Date;
327
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
325
328
  id: string;
329
+ updatedAt: string | Date;
326
330
  name: string;
327
331
  phoneNumber: string;
328
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
329
- createdAt: string | Date;
330
- updatedAt: string | Date;
331
332
  source: string;
333
+ blacklistReason?: string | null | undefined;
332
334
  totalCalls?: number | null | undefined;
333
335
  qualityScore?: number | null | undefined;
334
- conversionRate?: number | null | undefined;
335
- blacklistReason?: string | null | undefined;
336
336
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
337
+ conversionRate?: number | null | undefined;
337
338
  }[];
338
339
  totalCount: number;
339
- limit: number;
340
340
  skip: number;
341
341
  currentPage: number;
342
342
  totalPages: number;
@@ -371,13 +371,13 @@ export declare const leadsContractRouter: {
371
371
  phoneNumber: string;
372
372
  source: string;
373
373
  isBlacklisted: boolean;
374
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
374
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | undefined;
375
375
  blacklistReason?: string | undefined;
376
376
  }, {
377
377
  name: string;
378
378
  phoneNumber: string;
379
379
  source: string;
380
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
380
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | undefined;
381
381
  blacklistReason?: string | undefined;
382
382
  isBlacklisted?: boolean | undefined;
383
383
  }>;
@@ -497,31 +497,31 @@ export declare const leadsContractRouter: {
497
497
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
498
498
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
499
499
  }, "strip", z.ZodTypeAny, {
500
+ createdAt: string;
501
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
500
502
  id: string;
503
+ updatedAt: string;
501
504
  name: string;
502
505
  phoneNumber: string;
503
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
504
- createdAt: string;
505
- updatedAt: string;
506
506
  source: string;
507
+ blacklistReason?: string | null | undefined;
507
508
  totalCalls?: number | null | undefined;
508
509
  qualityScore?: number | null | undefined;
509
- conversionRate?: number | null | undefined;
510
- blacklistReason?: string | null | undefined;
511
510
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
511
+ conversionRate?: number | null | undefined;
512
512
  }, {
513
+ createdAt: string | Date;
514
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
513
515
  id: string;
516
+ updatedAt: string | Date;
514
517
  name: string;
515
518
  phoneNumber: string;
516
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
517
- createdAt: string | Date;
518
- updatedAt: string | Date;
519
519
  source: string;
520
+ blacklistReason?: string | null | undefined;
520
521
  totalCalls?: number | null | undefined;
521
522
  qualityScore?: number | null | undefined;
522
- conversionRate?: number | null | undefined;
523
- blacklistReason?: string | null | undefined;
524
523
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
524
+ conversionRate?: number | null | undefined;
525
525
  }>;
526
526
  409: z.ZodObject<{
527
527
  statusCode: z.ZodNumber;
@@ -575,11 +575,11 @@ export declare const leadsContractRouter: {
575
575
  }, "strip", z.ZodTypeAny, {
576
576
  limit: number;
577
577
  page: number;
578
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | null | undefined;
578
579
  name?: string | null | undefined;
579
- phoneNumber?: string | null | undefined;
580
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
581
- sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
580
+ sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
582
581
  sortOrder?: "ASC" | "DESC" | null | undefined;
582
+ phoneNumber?: string | null | undefined;
583
583
  source?: string | null | undefined;
584
584
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
585
585
  minQualityScore?: number | null | undefined;
@@ -587,13 +587,13 @@ export declare const leadsContractRouter: {
587
587
  minConversionRate?: number | null | undefined;
588
588
  minTotalCalls?: number | null | undefined;
589
589
  }, {
590
- name?: string | null | undefined;
591
- phoneNumber?: string | null | undefined;
592
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
590
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | null | undefined;
593
591
  limit?: number | undefined;
594
592
  page?: number | undefined;
595
- sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
593
+ name?: string | null | undefined;
594
+ sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
596
595
  sortOrder?: "ASC" | "DESC" | null | undefined;
596
+ phoneNumber?: string | null | undefined;
597
597
  source?: string | null | undefined;
598
598
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
599
599
  minQualityScore?: number | null | undefined;
@@ -720,31 +720,31 @@ export declare const leadsContractRouter: {
720
720
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
721
721
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
722
722
  }, "strip", z.ZodTypeAny, {
723
+ createdAt: string;
724
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
723
725
  id: string;
726
+ updatedAt: string;
724
727
  name: string;
725
728
  phoneNumber: string;
726
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
727
- createdAt: string;
728
- updatedAt: string;
729
729
  source: string;
730
+ blacklistReason?: string | null | undefined;
730
731
  totalCalls?: number | null | undefined;
731
732
  qualityScore?: number | null | undefined;
732
- conversionRate?: number | null | undefined;
733
- blacklistReason?: string | null | undefined;
734
733
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
734
+ conversionRate?: number | null | undefined;
735
735
  }, {
736
+ createdAt: string | Date;
737
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
736
738
  id: string;
739
+ updatedAt: string | Date;
737
740
  name: string;
738
741
  phoneNumber: string;
739
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
740
- createdAt: string | Date;
741
- updatedAt: string | Date;
742
742
  source: string;
743
+ blacklistReason?: string | null | undefined;
743
744
  totalCalls?: number | null | undefined;
744
745
  qualityScore?: number | null | undefined;
745
- conversionRate?: number | null | undefined;
746
- blacklistReason?: string | null | undefined;
747
746
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
747
+ conversionRate?: number | null | undefined;
748
748
  }>, "many">;
749
749
  totalCount: z.ZodNumber;
750
750
  limit: z.ZodNumber;
@@ -752,42 +752,42 @@ export declare const leadsContractRouter: {
752
752
  currentPage: z.ZodNumber;
753
753
  totalPages: z.ZodNumber;
754
754
  }, "strip", z.ZodTypeAny, {
755
+ limit: number;
755
756
  items: {
757
+ createdAt: string;
758
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
756
759
  id: string;
760
+ updatedAt: string;
757
761
  name: string;
758
762
  phoneNumber: string;
759
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
760
- createdAt: string;
761
- updatedAt: string;
762
763
  source: string;
764
+ blacklistReason?: string | null | undefined;
763
765
  totalCalls?: number | null | undefined;
764
766
  qualityScore?: number | null | undefined;
765
- conversionRate?: number | null | undefined;
766
- blacklistReason?: string | null | undefined;
767
767
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
768
+ conversionRate?: number | null | undefined;
768
769
  }[];
769
770
  totalCount: number;
770
- limit: number;
771
771
  skip: number;
772
772
  currentPage: number;
773
773
  totalPages: number;
774
774
  }, {
775
+ limit: number;
775
776
  items: {
777
+ createdAt: string | Date;
778
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
776
779
  id: string;
780
+ updatedAt: string | Date;
777
781
  name: string;
778
782
  phoneNumber: string;
779
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
780
- createdAt: string | Date;
781
- updatedAt: string | Date;
782
783
  source: string;
784
+ blacklistReason?: string | null | undefined;
783
785
  totalCalls?: number | null | undefined;
784
786
  qualityScore?: number | null | undefined;
785
- conversionRate?: number | null | undefined;
786
- blacklistReason?: string | null | undefined;
787
787
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
788
+ conversionRate?: number | null | undefined;
788
789
  }[];
789
790
  totalCount: number;
790
- limit: number;
791
791
  skip: number;
792
792
  currentPage: number;
793
793
  totalPages: number;
@@ -926,31 +926,31 @@ export declare const leadsContractRouter: {
926
926
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
927
927
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
928
928
  }, "strip", z.ZodTypeAny, {
929
+ createdAt: string;
930
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
929
931
  id: string;
932
+ updatedAt: string;
930
933
  name: string;
931
934
  phoneNumber: string;
932
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
933
- createdAt: string;
934
- updatedAt: string;
935
935
  source: string;
936
+ blacklistReason?: string | null | undefined;
936
937
  totalCalls?: number | null | undefined;
937
938
  qualityScore?: number | null | undefined;
938
- conversionRate?: number | null | undefined;
939
- blacklistReason?: string | null | undefined;
940
939
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
940
+ conversionRate?: number | null | undefined;
941
941
  }, {
942
+ createdAt: string | Date;
943
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
942
944
  id: string;
945
+ updatedAt: string | Date;
943
946
  name: string;
944
947
  phoneNumber: string;
945
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
946
- createdAt: string | Date;
947
- updatedAt: string | Date;
948
948
  source: string;
949
+ blacklistReason?: string | null | undefined;
949
950
  totalCalls?: number | null | undefined;
950
951
  qualityScore?: number | null | undefined;
951
- conversionRate?: number | null | undefined;
952
- blacklistReason?: string | null | undefined;
953
952
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
953
+ conversionRate?: number | null | undefined;
954
954
  }>;
955
955
  404: z.ZodObject<{
956
956
  statusCode: z.ZodNumber;
@@ -1002,17 +1002,17 @@ export declare const leadsContractRouter: {
1002
1002
  blacklistReason: z.ZodOptional<z.ZodString>;
1003
1003
  source: z.ZodOptional<z.ZodString>;
1004
1004
  }, "strip", z.ZodTypeAny, {
1005
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | undefined;
1005
1006
  name?: string | undefined;
1006
1007
  phoneNumber?: string | undefined;
1007
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1008
- source?: string | undefined;
1009
1008
  blacklistReason?: string | undefined;
1009
+ source?: string | undefined;
1010
1010
  }, {
1011
+ status?: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED" | undefined;
1011
1012
  name?: string | undefined;
1012
1013
  phoneNumber?: string | undefined;
1013
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1014
- source?: string | undefined;
1015
1014
  blacklistReason?: string | undefined;
1015
+ source?: string | undefined;
1016
1016
  }>;
1017
1017
  path: "/v2/leads/:id";
1018
1018
  responses: {
@@ -1130,31 +1130,31 @@ export declare const leadsContractRouter: {
1130
1130
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1131
1131
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1132
1132
  }, "strip", z.ZodTypeAny, {
1133
+ createdAt: string;
1134
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
1133
1135
  id: string;
1136
+ updatedAt: string;
1134
1137
  name: string;
1135
1138
  phoneNumber: string;
1136
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1137
- createdAt: string;
1138
- updatedAt: string;
1139
1139
  source: string;
1140
+ blacklistReason?: string | null | undefined;
1140
1141
  totalCalls?: number | null | undefined;
1141
1142
  qualityScore?: number | null | undefined;
1142
- conversionRate?: number | null | undefined;
1143
- blacklistReason?: string | null | undefined;
1144
1143
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1144
+ conversionRate?: number | null | undefined;
1145
1145
  }, {
1146
+ createdAt: string | Date;
1147
+ status: "AVAILABLE" | "BLACKLISTED" | "ASSIGNED";
1146
1148
  id: string;
1149
+ updatedAt: string | Date;
1147
1150
  name: string;
1148
1151
  phoneNumber: string;
1149
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1150
- createdAt: string | Date;
1151
- updatedAt: string | Date;
1152
1152
  source: string;
1153
+ blacklistReason?: string | null | undefined;
1153
1154
  totalCalls?: number | null | undefined;
1154
1155
  qualityScore?: number | null | undefined;
1155
- conversionRate?: number | null | undefined;
1156
- blacklistReason?: string | null | undefined;
1157
1156
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1157
+ conversionRate?: number | null | undefined;
1158
1158
  }>;
1159
1159
  404: z.ZodObject<{
1160
1160
  statusCode: z.ZodNumber;
@@ -1378,13 +1378,13 @@ export declare const leadsContractRouter: {
1378
1378
  callType: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>;
1379
1379
  }, "strip", z.ZodTypeAny, {
1380
1380
  assignmentId: string;
1381
- callType: import("../call-history/call-history.contract").CallType;
1382
1381
  rating: import("../common/call-rating.schema").CallRating;
1382
+ callType: import("../call-history/call-history.contract").CallType;
1383
1383
  notes?: string | undefined;
1384
1384
  }, {
1385
1385
  assignmentId: string;
1386
- callType: import("../call-history/call-history.contract").CallType;
1387
1386
  rating: import("../common/call-rating.schema").CallRating;
1387
+ callType: import("../call-history/call-history.contract").CallType;
1388
1388
  notes?: string | undefined;
1389
1389
  }>;
1390
1390
  path: "/v2/leads/:id/call";
@@ -1502,27 +1502,27 @@ export declare const leadsContractRouter: {
1502
1502
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1503
1503
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1504
1504
  }, "strip", z.ZodTypeAny, {
1505
- id: string;
1506
- assignmentId: string;
1507
- leadId: string;
1508
- agentId: string;
1509
1505
  createdAt: string;
1506
+ id: string;
1510
1507
  updatedAt: string;
1511
- callDate: string;
1512
- callType: import("../call-history/call-history.contract").CallType;
1508
+ agentId: string;
1509
+ leadId: string;
1510
+ assignmentId: string;
1513
1511
  rating: import("../common/call-rating.schema").CallRating;
1512
+ callType: import("../call-history/call-history.contract").CallType;
1513
+ callDate: string;
1514
1514
  ratingWeight: number;
1515
1515
  notes?: string | null | undefined;
1516
1516
  }, {
1517
- id: string;
1518
- assignmentId: string;
1519
- leadId: string;
1520
- agentId: string;
1521
1517
  createdAt: string | Date;
1518
+ id: string;
1522
1519
  updatedAt: string | Date;
1523
- callDate: string | Date;
1524
- callType: import("../call-history/call-history.contract").CallType;
1520
+ agentId: string;
1521
+ leadId: string;
1522
+ assignmentId: string;
1525
1523
  rating: import("../common/call-rating.schema").CallRating;
1524
+ callType: import("../call-history/call-history.contract").CallType;
1525
+ callDate: string | Date;
1526
1526
  ratingWeight: number;
1527
1527
  notes?: string | null | undefined;
1528
1528
  }>;