@dakkitor/api-contracts 1.1.130 → 1.1.131

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,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from "zod";
2
2
  /**
3
3
  * Lead Status Enum
4
4
  */
@@ -6,7 +6,7 @@ export declare const LeadStatusSchema: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLAC
6
6
  /**
7
7
  * Lead Sortable Fields Enum
8
8
  */
9
- export declare const LeadSortableFieldsSchema: z.ZodEnum<["name", "phoneNumber", "status", "source", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>;
9
+ export declare const LeadSortableFieldsSchema: z.ZodEnum<["name", "phoneNumber", "status", "source", "lastCalledAt", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>;
10
10
  /**
11
11
  * Quality Tier Enum
12
12
  */
@@ -24,6 +24,7 @@ export declare const LeadSchema: z.ZodObject<{
24
24
  status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
25
25
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
26
  source: z.ZodString;
27
+ lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
27
28
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
28
29
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
29
30
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -31,29 +32,31 @@ export declare const LeadSchema: z.ZodObject<{
31
32
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
32
33
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
33
34
  }, "strip", z.ZodTypeAny, {
34
- createdAt: string;
35
35
  id: string;
36
+ name: string;
36
37
  phoneNumber: string;
37
38
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
39
+ createdAt: string;
38
40
  updatedAt: string;
39
- name: string;
40
41
  source: string;
41
- conversionRate?: number | null | undefined;
42
42
  totalCalls?: number | null | undefined;
43
+ lastCalledAt?: string | null | undefined;
43
44
  qualityScore?: number | null | undefined;
45
+ conversionRate?: number | null | undefined;
44
46
  blacklistReason?: string | null | undefined;
45
47
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
46
48
  }, {
47
- createdAt: string | Date;
48
49
  id: string;
50
+ name: string;
49
51
  phoneNumber: string;
50
52
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
53
+ createdAt: string | Date;
51
54
  updatedAt: string | Date;
52
- name: string;
53
55
  source: string;
54
- conversionRate?: number | null | undefined;
55
56
  totalCalls?: number | null | undefined;
57
+ lastCalledAt?: string | Date | null | undefined;
56
58
  qualityScore?: number | null | undefined;
59
+ conversionRate?: number | null | undefined;
57
60
  blacklistReason?: string | null | undefined;
58
61
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
59
62
  }>;
@@ -68,29 +71,29 @@ export declare const CreateLeadSchema: z.ZodEffects<z.ZodObject<{
68
71
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
69
72
  source: z.ZodString;
70
73
  }, "strip", z.ZodTypeAny, {
71
- phoneNumber: string;
72
74
  name: string;
75
+ phoneNumber: string;
73
76
  source: string;
74
77
  isBlacklisted: boolean;
75
78
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
76
79
  blacklistReason?: string | null | undefined;
77
80
  }, {
78
- phoneNumber: string;
79
81
  name: string;
82
+ phoneNumber: string;
80
83
  source: string;
81
84
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
82
85
  blacklistReason?: string | null | undefined;
83
86
  isBlacklisted?: boolean | undefined;
84
87
  }>, {
85
- phoneNumber: string;
86
88
  name: string;
89
+ phoneNumber: string;
87
90
  source: string;
88
91
  isBlacklisted: boolean;
89
92
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
90
93
  blacklistReason?: string | null | undefined;
91
94
  }, {
92
- phoneNumber: string;
93
95
  name: string;
96
+ phoneNumber: string;
94
97
  source: string;
95
98
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
96
99
  blacklistReason?: string | null | undefined;
@@ -106,27 +109,27 @@ export declare const UpdateLeadSchema: z.ZodEffects<z.ZodObject<{
106
109
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
107
110
  source: z.ZodOptional<z.ZodString>;
108
111
  }, "strip", z.ZodTypeAny, {
112
+ name?: string | undefined;
109
113
  phoneNumber?: string | undefined;
110
114
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
111
- name?: string | undefined;
112
115
  source?: string | undefined;
113
116
  blacklistReason?: string | null | undefined;
114
117
  }, {
118
+ name?: string | undefined;
115
119
  phoneNumber?: string | undefined;
116
120
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
117
- name?: string | undefined;
118
121
  source?: string | undefined;
119
122
  blacklistReason?: string | null | undefined;
120
123
  }>, {
124
+ name?: string | undefined;
121
125
  phoneNumber?: string | undefined;
122
126
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
123
- name?: string | undefined;
124
127
  source?: string | undefined;
125
128
  blacklistReason?: string | null | undefined;
126
129
  }, {
130
+ name?: string | undefined;
127
131
  phoneNumber?: string | undefined;
128
132
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
129
- name?: string | undefined;
130
133
  source?: string | undefined;
131
134
  blacklistReason?: string | null | undefined;
132
135
  }>;
@@ -146,31 +149,49 @@ export declare const FilterLeadSchema: z.ZodObject<{
146
149
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
147
150
  minConversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
148
151
  minTotalCalls: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
149
- sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "phoneNumber", "status", "source", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>>>;
152
+ lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
153
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ from?: string | null | undefined;
157
+ to?: string | null | undefined;
158
+ }, {
159
+ from?: string | null | undefined;
160
+ to?: string | null | undefined;
161
+ }>>>;
162
+ sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "phoneNumber", "status", "source", "lastCalledAt", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>>>;
150
163
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
151
164
  }, "strip", z.ZodTypeAny, {
152
165
  limit: number;
153
166
  page: number;
167
+ name?: string | null | undefined;
154
168
  phoneNumber?: string | null | undefined;
155
169
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
156
- name?: string | null | undefined;
157
- sortBy?: "createdAt" | "phoneNumber" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
170
+ sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | null | undefined;
158
171
  sortOrder?: "ASC" | "DESC" | null | undefined;
159
172
  source?: string | null | undefined;
173
+ lastCalledAt?: {
174
+ from?: string | null | undefined;
175
+ to?: string | null | undefined;
176
+ } | null | undefined;
160
177
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
161
178
  minQualityScore?: number | null | undefined;
162
179
  maxQualityScore?: number | null | undefined;
163
180
  minConversionRate?: number | null | undefined;
164
181
  minTotalCalls?: number | null | undefined;
165
182
  }, {
183
+ name?: string | null | undefined;
166
184
  phoneNumber?: string | null | undefined;
167
185
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
168
186
  limit?: number | undefined;
169
187
  page?: number | undefined;
170
- name?: string | null | undefined;
171
- sortBy?: "createdAt" | "phoneNumber" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
188
+ sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | null | undefined;
172
189
  sortOrder?: "ASC" | "DESC" | null | undefined;
173
190
  source?: string | null | undefined;
191
+ lastCalledAt?: {
192
+ from?: string | null | undefined;
193
+ to?: string | null | undefined;
194
+ } | null | undefined;
174
195
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
175
196
  minQualityScore?: number | null | undefined;
176
197
  maxQualityScore?: number | null | undefined;
@@ -193,27 +214,27 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
193
214
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
194
215
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
195
216
  }, "strip", z.ZodTypeAny, {
196
- createdAt: string;
197
217
  id: string;
198
- updatedAt: string;
199
- agentId: string;
200
- leadId: string;
201
- rating: import("../common/call-rating.schema").CallRating;
202
218
  assignmentId: string;
219
+ leadId: string;
220
+ agentId: string;
221
+ createdAt: string;
222
+ updatedAt: string;
203
223
  callDate: string;
204
224
  callType: import("../call-history/call-history.contract").CallType;
225
+ rating: import("../common/call-rating.schema").CallRating;
205
226
  ratingWeight: number;
206
227
  notes?: string | null | undefined;
207
228
  }, {
208
- createdAt: string | Date;
209
229
  id: string;
210
- updatedAt: string | Date;
211
- agentId: string;
212
- leadId: string;
213
- rating: import("../common/call-rating.schema").CallRating;
214
230
  assignmentId: string;
231
+ leadId: string;
232
+ agentId: string;
233
+ createdAt: string | Date;
234
+ updatedAt: string | Date;
215
235
  callDate: string | Date;
216
236
  callType: import("../call-history/call-history.contract").CallType;
237
+ rating: import("../common/call-rating.schema").CallRating;
217
238
  ratingWeight: number;
218
239
  notes?: string | null | undefined;
219
240
  }>;
@@ -288,6 +309,7 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
288
309
  status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
289
310
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
290
311
  source: z.ZodString;
312
+ lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
291
313
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
292
314
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
293
315
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -295,29 +317,31 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
295
317
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
296
318
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
297
319
  }, "strip", z.ZodTypeAny, {
298
- createdAt: string;
299
320
  id: string;
321
+ name: string;
300
322
  phoneNumber: string;
301
323
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
324
+ createdAt: string;
302
325
  updatedAt: string;
303
- name: string;
304
326
  source: string;
305
- conversionRate?: number | null | undefined;
306
327
  totalCalls?: number | null | undefined;
328
+ lastCalledAt?: string | null | undefined;
307
329
  qualityScore?: number | null | undefined;
330
+ conversionRate?: number | null | undefined;
308
331
  blacklistReason?: string | null | undefined;
309
332
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
310
333
  }, {
311
- createdAt: string | Date;
312
334
  id: string;
335
+ name: string;
313
336
  phoneNumber: string;
314
337
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
338
+ createdAt: string | Date;
315
339
  updatedAt: string | Date;
316
- name: string;
317
340
  source: string;
318
- conversionRate?: number | null | undefined;
319
341
  totalCalls?: number | null | undefined;
342
+ lastCalledAt?: string | Date | null | undefined;
320
343
  qualityScore?: number | null | undefined;
344
+ conversionRate?: number | null | undefined;
321
345
  blacklistReason?: string | null | undefined;
322
346
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
323
347
  }>, "many">;
@@ -327,42 +351,44 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
327
351
  currentPage: z.ZodNumber;
328
352
  totalPages: z.ZodNumber;
329
353
  }, "strip", z.ZodTypeAny, {
330
- limit: number;
331
354
  items: {
332
- createdAt: string;
333
355
  id: string;
356
+ name: string;
334
357
  phoneNumber: string;
335
358
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
359
+ createdAt: string;
336
360
  updatedAt: string;
337
- name: string;
338
361
  source: string;
339
- conversionRate?: number | null | undefined;
340
362
  totalCalls?: number | null | undefined;
363
+ lastCalledAt?: string | null | undefined;
341
364
  qualityScore?: number | null | undefined;
365
+ conversionRate?: number | null | undefined;
342
366
  blacklistReason?: string | null | undefined;
343
367
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
344
368
  }[];
345
369
  totalCount: number;
370
+ limit: number;
346
371
  skip: number;
347
372
  currentPage: number;
348
373
  totalPages: number;
349
374
  }, {
350
- limit: number;
351
375
  items: {
352
- createdAt: string | Date;
353
376
  id: string;
377
+ name: string;
354
378
  phoneNumber: string;
355
379
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
380
+ createdAt: string | Date;
356
381
  updatedAt: string | Date;
357
- name: string;
358
382
  source: string;
359
- conversionRate?: number | null | undefined;
360
383
  totalCalls?: number | null | undefined;
384
+ lastCalledAt?: string | Date | null | undefined;
361
385
  qualityScore?: number | null | undefined;
386
+ conversionRate?: number | null | undefined;
362
387
  blacklistReason?: string | null | undefined;
363
388
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
364
389
  }[];
365
390
  totalCount: number;
391
+ limit: number;
366
392
  skip: number;
367
393
  currentPage: number;
368
394
  totalPages: number;
@@ -393,29 +419,29 @@ export declare const leadsContractRouter: {
393
419
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
394
420
  source: z.ZodString;
395
421
  }, "strip", z.ZodTypeAny, {
396
- phoneNumber: string;
397
422
  name: string;
423
+ phoneNumber: string;
398
424
  source: string;
399
425
  isBlacklisted: boolean;
400
426
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
401
427
  blacklistReason?: string | null | undefined;
402
428
  }, {
403
- phoneNumber: string;
404
429
  name: string;
430
+ phoneNumber: string;
405
431
  source: string;
406
432
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
407
433
  blacklistReason?: string | null | undefined;
408
434
  isBlacklisted?: boolean | undefined;
409
435
  }>, {
410
- phoneNumber: string;
411
436
  name: string;
437
+ phoneNumber: string;
412
438
  source: string;
413
439
  isBlacklisted: boolean;
414
440
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
415
441
  blacklistReason?: string | null | undefined;
416
442
  }, {
417
- phoneNumber: string;
418
443
  name: string;
444
+ phoneNumber: string;
419
445
  source: string;
420
446
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
421
447
  blacklistReason?: string | null | undefined;
@@ -530,6 +556,7 @@ export declare const leadsContractRouter: {
530
556
  status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
531
557
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
532
558
  source: z.ZodString;
559
+ lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
533
560
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
534
561
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
535
562
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -537,29 +564,31 @@ export declare const leadsContractRouter: {
537
564
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
538
565
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
539
566
  }, "strip", z.ZodTypeAny, {
540
- createdAt: string;
541
567
  id: string;
568
+ name: string;
542
569
  phoneNumber: string;
543
570
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
571
+ createdAt: string;
544
572
  updatedAt: string;
545
- name: string;
546
573
  source: string;
547
- conversionRate?: number | null | undefined;
548
574
  totalCalls?: number | null | undefined;
575
+ lastCalledAt?: string | null | undefined;
549
576
  qualityScore?: number | null | undefined;
577
+ conversionRate?: number | null | undefined;
550
578
  blacklistReason?: string | null | undefined;
551
579
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
552
580
  }, {
553
- createdAt: string | Date;
554
581
  id: string;
582
+ name: string;
555
583
  phoneNumber: string;
556
584
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
585
+ createdAt: string | Date;
557
586
  updatedAt: string | Date;
558
- name: string;
559
587
  source: string;
560
- conversionRate?: number | null | undefined;
561
588
  totalCalls?: number | null | undefined;
589
+ lastCalledAt?: string | Date | null | undefined;
562
590
  qualityScore?: number | null | undefined;
591
+ conversionRate?: number | null | undefined;
563
592
  blacklistReason?: string | null | undefined;
564
593
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
565
594
  }>;
@@ -610,31 +639,49 @@ export declare const leadsContractRouter: {
610
639
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
611
640
  minConversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
612
641
  minTotalCalls: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
613
- sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "phoneNumber", "status", "source", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>>>;
642
+ lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
643
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
644
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ from?: string | null | undefined;
647
+ to?: string | null | undefined;
648
+ }, {
649
+ from?: string | null | undefined;
650
+ to?: string | null | undefined;
651
+ }>>>;
652
+ sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "phoneNumber", "status", "source", "lastCalledAt", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>>>;
614
653
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
615
654
  }, "strip", z.ZodTypeAny, {
616
655
  limit: number;
617
656
  page: number;
657
+ name?: string | null | undefined;
618
658
  phoneNumber?: string | null | undefined;
619
659
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
620
- name?: string | null | undefined;
621
- sortBy?: "createdAt" | "phoneNumber" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
660
+ sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | null | undefined;
622
661
  sortOrder?: "ASC" | "DESC" | null | undefined;
623
662
  source?: string | null | undefined;
663
+ lastCalledAt?: {
664
+ from?: string | null | undefined;
665
+ to?: string | null | undefined;
666
+ } | null | undefined;
624
667
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
625
668
  minQualityScore?: number | null | undefined;
626
669
  maxQualityScore?: number | null | undefined;
627
670
  minConversionRate?: number | null | undefined;
628
671
  minTotalCalls?: number | null | undefined;
629
672
  }, {
673
+ name?: string | null | undefined;
630
674
  phoneNumber?: string | null | undefined;
631
675
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
632
676
  limit?: number | undefined;
633
677
  page?: number | undefined;
634
- name?: string | null | undefined;
635
- sortBy?: "createdAt" | "phoneNumber" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
678
+ sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | null | undefined;
636
679
  sortOrder?: "ASC" | "DESC" | null | undefined;
637
680
  source?: string | null | undefined;
681
+ lastCalledAt?: {
682
+ from?: string | null | undefined;
683
+ to?: string | null | undefined;
684
+ } | null | undefined;
638
685
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
639
686
  minQualityScore?: number | null | undefined;
640
687
  maxQualityScore?: number | null | undefined;
@@ -753,6 +800,7 @@ export declare const leadsContractRouter: {
753
800
  status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
754
801
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
755
802
  source: z.ZodString;
803
+ lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
756
804
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
757
805
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
758
806
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -760,29 +808,31 @@ export declare const leadsContractRouter: {
760
808
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
761
809
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
762
810
  }, "strip", z.ZodTypeAny, {
763
- createdAt: string;
764
811
  id: string;
812
+ name: string;
765
813
  phoneNumber: string;
766
814
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
815
+ createdAt: string;
767
816
  updatedAt: string;
768
- name: string;
769
817
  source: string;
770
- conversionRate?: number | null | undefined;
771
818
  totalCalls?: number | null | undefined;
819
+ lastCalledAt?: string | null | undefined;
772
820
  qualityScore?: number | null | undefined;
821
+ conversionRate?: number | null | undefined;
773
822
  blacklistReason?: string | null | undefined;
774
823
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
775
824
  }, {
776
- createdAt: string | Date;
777
825
  id: string;
826
+ name: string;
778
827
  phoneNumber: string;
779
828
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
829
+ createdAt: string | Date;
780
830
  updatedAt: string | Date;
781
- name: string;
782
831
  source: string;
783
- conversionRate?: number | null | undefined;
784
832
  totalCalls?: number | null | undefined;
833
+ lastCalledAt?: string | Date | null | undefined;
785
834
  qualityScore?: number | null | undefined;
835
+ conversionRate?: number | null | undefined;
786
836
  blacklistReason?: string | null | undefined;
787
837
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
788
838
  }>, "many">;
@@ -792,42 +842,44 @@ export declare const leadsContractRouter: {
792
842
  currentPage: z.ZodNumber;
793
843
  totalPages: z.ZodNumber;
794
844
  }, "strip", z.ZodTypeAny, {
795
- limit: number;
796
845
  items: {
797
- createdAt: string;
798
846
  id: string;
847
+ name: string;
799
848
  phoneNumber: string;
800
849
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
850
+ createdAt: string;
801
851
  updatedAt: string;
802
- name: string;
803
852
  source: string;
804
- conversionRate?: number | null | undefined;
805
853
  totalCalls?: number | null | undefined;
854
+ lastCalledAt?: string | null | undefined;
806
855
  qualityScore?: number | null | undefined;
856
+ conversionRate?: number | null | undefined;
807
857
  blacklistReason?: string | null | undefined;
808
858
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
809
859
  }[];
810
860
  totalCount: number;
861
+ limit: number;
811
862
  skip: number;
812
863
  currentPage: number;
813
864
  totalPages: number;
814
865
  }, {
815
- limit: number;
816
866
  items: {
817
- createdAt: string | Date;
818
867
  id: string;
868
+ name: string;
819
869
  phoneNumber: string;
820
870
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
871
+ createdAt: string | Date;
821
872
  updatedAt: string | Date;
822
- name: string;
823
873
  source: string;
824
- conversionRate?: number | null | undefined;
825
874
  totalCalls?: number | null | undefined;
875
+ lastCalledAt?: string | Date | null | undefined;
826
876
  qualityScore?: number | null | undefined;
877
+ conversionRate?: number | null | undefined;
827
878
  blacklistReason?: string | null | undefined;
828
879
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
829
880
  }[];
830
881
  totalCount: number;
882
+ limit: number;
831
883
  skip: number;
832
884
  currentPage: number;
833
885
  totalPages: number;
@@ -959,6 +1011,7 @@ export declare const leadsContractRouter: {
959
1011
  status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
960
1012
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
961
1013
  source: z.ZodString;
1014
+ lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
962
1015
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
963
1016
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
964
1017
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -966,29 +1019,31 @@ export declare const leadsContractRouter: {
966
1019
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
967
1020
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
968
1021
  }, "strip", z.ZodTypeAny, {
969
- createdAt: string;
970
1022
  id: string;
1023
+ name: string;
971
1024
  phoneNumber: string;
972
1025
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1026
+ createdAt: string;
973
1027
  updatedAt: string;
974
- name: string;
975
1028
  source: string;
976
- conversionRate?: number | null | undefined;
977
1029
  totalCalls?: number | null | undefined;
1030
+ lastCalledAt?: string | null | undefined;
978
1031
  qualityScore?: number | null | undefined;
1032
+ conversionRate?: number | null | undefined;
979
1033
  blacklistReason?: string | null | undefined;
980
1034
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
981
1035
  }, {
982
- createdAt: string | Date;
983
1036
  id: string;
1037
+ name: string;
984
1038
  phoneNumber: string;
985
1039
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1040
+ createdAt: string | Date;
986
1041
  updatedAt: string | Date;
987
- name: string;
988
1042
  source: string;
989
- conversionRate?: number | null | undefined;
990
1043
  totalCalls?: number | null | undefined;
1044
+ lastCalledAt?: string | Date | null | undefined;
991
1045
  qualityScore?: number | null | undefined;
1046
+ conversionRate?: number | null | undefined;
992
1047
  blacklistReason?: string | null | undefined;
993
1048
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
994
1049
  }>;
@@ -1042,27 +1097,27 @@ export declare const leadsContractRouter: {
1042
1097
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1043
1098
  source: z.ZodOptional<z.ZodString>;
1044
1099
  }, "strip", z.ZodTypeAny, {
1100
+ name?: string | undefined;
1045
1101
  phoneNumber?: string | undefined;
1046
1102
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1047
- name?: string | undefined;
1048
1103
  source?: string | undefined;
1049
1104
  blacklistReason?: string | null | undefined;
1050
1105
  }, {
1106
+ name?: string | undefined;
1051
1107
  phoneNumber?: string | undefined;
1052
1108
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1053
- name?: string | undefined;
1054
1109
  source?: string | undefined;
1055
1110
  blacklistReason?: string | null | undefined;
1056
1111
  }>, {
1112
+ name?: string | undefined;
1057
1113
  phoneNumber?: string | undefined;
1058
1114
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1059
- name?: string | undefined;
1060
1115
  source?: string | undefined;
1061
1116
  blacklistReason?: string | null | undefined;
1062
1117
  }, {
1118
+ name?: string | undefined;
1063
1119
  phoneNumber?: string | undefined;
1064
1120
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1065
- name?: string | undefined;
1066
1121
  source?: string | undefined;
1067
1122
  blacklistReason?: string | null | undefined;
1068
1123
  }>;
@@ -1175,6 +1230,7 @@ export declare const leadsContractRouter: {
1175
1230
  status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>;
1176
1231
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1177
1232
  source: z.ZodString;
1233
+ lastCalledAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
1178
1234
  qualityScore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1179
1235
  qualityTier: z.ZodNullable<z.ZodOptional<z.ZodEnum<["high", "medium", "low", "untested"]>>>;
1180
1236
  conversionRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -1182,29 +1238,31 @@ export declare const leadsContractRouter: {
1182
1238
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1183
1239
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1184
1240
  }, "strip", z.ZodTypeAny, {
1185
- createdAt: string;
1186
1241
  id: string;
1242
+ name: string;
1187
1243
  phoneNumber: string;
1188
1244
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1245
+ createdAt: string;
1189
1246
  updatedAt: string;
1190
- name: string;
1191
1247
  source: string;
1192
- conversionRate?: number | null | undefined;
1193
1248
  totalCalls?: number | null | undefined;
1249
+ lastCalledAt?: string | null | undefined;
1194
1250
  qualityScore?: number | null | undefined;
1251
+ conversionRate?: number | null | undefined;
1195
1252
  blacklistReason?: string | null | undefined;
1196
1253
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1197
1254
  }, {
1198
- createdAt: string | Date;
1199
1255
  id: string;
1256
+ name: string;
1200
1257
  phoneNumber: string;
1201
1258
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1259
+ createdAt: string | Date;
1202
1260
  updatedAt: string | Date;
1203
- name: string;
1204
1261
  source: string;
1205
- conversionRate?: number | null | undefined;
1206
1262
  totalCalls?: number | null | undefined;
1263
+ lastCalledAt?: string | Date | null | undefined;
1207
1264
  qualityScore?: number | null | undefined;
1265
+ conversionRate?: number | null | undefined;
1208
1266
  blacklistReason?: string | null | undefined;
1209
1267
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1210
1268
  }>;
@@ -1429,14 +1487,14 @@ export declare const leadsContractRouter: {
1429
1487
  notes: z.ZodOptional<z.ZodString>;
1430
1488
  callType: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>;
1431
1489
  }, "strip", z.ZodTypeAny, {
1432
- rating: import("../common/call-rating.schema").CallRating;
1433
1490
  assignmentId: string;
1434
1491
  callType: import("../call-history/call-history.contract").CallType;
1492
+ rating: import("../common/call-rating.schema").CallRating;
1435
1493
  notes?: string | undefined;
1436
1494
  }, {
1437
- rating: import("../common/call-rating.schema").CallRating;
1438
1495
  assignmentId: string;
1439
1496
  callType: import("../call-history/call-history.contract").CallType;
1497
+ rating: import("../common/call-rating.schema").CallRating;
1440
1498
  notes?: string | undefined;
1441
1499
  }>;
1442
1500
  path: "/v2/leads/:id/call";
@@ -1554,27 +1612,27 @@ export declare const leadsContractRouter: {
1554
1612
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1555
1613
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1556
1614
  }, "strip", z.ZodTypeAny, {
1557
- createdAt: string;
1558
1615
  id: string;
1559
- updatedAt: string;
1560
- agentId: string;
1561
- leadId: string;
1562
- rating: import("../common/call-rating.schema").CallRating;
1563
1616
  assignmentId: string;
1617
+ leadId: string;
1618
+ agentId: string;
1619
+ createdAt: string;
1620
+ updatedAt: string;
1564
1621
  callDate: string;
1565
1622
  callType: import("../call-history/call-history.contract").CallType;
1623
+ rating: import("../common/call-rating.schema").CallRating;
1566
1624
  ratingWeight: number;
1567
1625
  notes?: string | null | undefined;
1568
1626
  }, {
1569
- createdAt: string | Date;
1570
1627
  id: string;
1571
- updatedAt: string | Date;
1572
- agentId: string;
1573
- leadId: string;
1574
- rating: import("../common/call-rating.schema").CallRating;
1575
1628
  assignmentId: string;
1629
+ leadId: string;
1630
+ agentId: string;
1631
+ createdAt: string | Date;
1632
+ updatedAt: string | Date;
1576
1633
  callDate: string | Date;
1577
1634
  callType: import("../call-history/call-history.contract").CallType;
1635
+ rating: import("../common/call-rating.schema").CallRating;
1578
1636
  ratingWeight: number;
1579
1637
  notes?: string | null | undefined;
1580
1638
  }>;