@dakkitor/api-contracts 1.1.146 → 1.1.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/abilities/first-agent.abilities.json +39 -0
  2. package/dist/abilities/second-agent.abilities.json +36 -0
  3. package/dist/abilities/team-leads.json +30 -0
  4. package/dist/actives/actives.contract.d.ts +8207 -7871
  5. package/dist/actives/actives.contract.d.ts.map +1 -1
  6. package/dist/agent-client-links/agent-client-links.contract.d.ts +973 -973
  7. package/dist/auth/auth.contract.d.ts +12 -12
  8. package/dist/bookings/bookings.contract.d.ts +12034 -11506
  9. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  10. package/dist/call-history/call-history.contract.d.ts +620 -620
  11. package/dist/client-contacts/client-contacts.contract.d.ts +277 -277
  12. package/dist/clients/clients.contract.d.ts +173 -173
  13. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1868 -1868
  14. package/dist/collaborations/collaborations.contract.d.ts +1548 -1548
  15. package/dist/common/common-schemas.d.ts +4 -4
  16. package/dist/common/common-schemas.d.ts.map +1 -1
  17. package/dist/common/common-schemas.js +9 -7
  18. package/dist/companies/companies.contract.d.ts +26 -26
  19. package/dist/crews/crews.contract.d.ts +2549 -0
  20. package/dist/crews/crews.contract.d.ts.map +1 -0
  21. package/dist/crews/crews.contract.js +203 -0
  22. package/dist/cron-executions/cron-executions.contract.d.ts +26 -26
  23. package/dist/curated-workers/curated-workers.contract.d.ts +517 -517
  24. package/dist/dashboards/dashboard-widgets.contract.d.ts +122 -122
  25. package/dist/dashboards/dashboard.contract.d.ts +26 -26
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +3 -0
  29. package/dist/jobs/jobs.contract.d.ts +4309 -4309
  30. package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +26 -26
  31. package/dist/lead-assignments/lead-assignments.contract.d.ts +498 -498
  32. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +131 -131
  33. package/dist/leads/leads.contract.d.ts +184 -184
  34. package/dist/locations/locations.contract.d.ts +28 -28
  35. package/dist/own-research/own-research.contract.d.ts +728 -728
  36. package/dist/users/users.contract.d.ts +154 -154
  37. package/dist/workers/workers.contract.d.ts +6476 -4566
  38. package/dist/workers/workers.contract.d.ts.map +1 -1
  39. package/dist/workers/workers.contract.js +217 -65
  40. package/package.json +1 -1
@@ -35,35 +35,35 @@ export declare const LeadSchema: z.ZodObject<{
35
35
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  id: string;
38
+ phoneNumber: string;
39
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
38
40
  name: string;
39
- updatedAt: string;
40
41
  createdAt: string;
41
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
42
+ updatedAt: string;
42
43
  source: string;
43
- phoneNumber: string;
44
- blacklistReason?: string | null | undefined;
45
44
  lastCalledAt?: string | null | undefined;
45
+ cooldownUntil?: string | null | undefined;
46
+ blacklistReason?: string | null | undefined;
46
47
  lastCallNotes?: string | null | undefined;
47
- totalCalls?: number | null | undefined;
48
- conversionRate?: number | null | undefined;
49
48
  qualityScore?: number | null | undefined;
50
- cooldownUntil?: string | null | undefined;
49
+ conversionRate?: number | null | undefined;
50
+ totalCalls?: number | null | undefined;
51
51
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
52
52
  }, {
53
53
  id: string;
54
+ phoneNumber: string;
55
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
54
56
  name: string;
55
- updatedAt: string | Date;
56
57
  createdAt: string | Date;
57
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
58
+ updatedAt: string | Date;
58
59
  source: string;
59
- phoneNumber: string;
60
- blacklistReason?: string | null | undefined;
61
60
  lastCalledAt?: string | Date | null | undefined;
61
+ cooldownUntil?: string | Date | null | undefined;
62
+ blacklistReason?: string | null | undefined;
62
63
  lastCallNotes?: string | null | undefined;
63
- totalCalls?: number | null | undefined;
64
- conversionRate?: number | null | undefined;
65
64
  qualityScore?: number | null | undefined;
66
- cooldownUntil?: string | Date | null | undefined;
65
+ conversionRate?: number | null | undefined;
66
+ totalCalls?: number | null | undefined;
67
67
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
68
68
  }>;
69
69
  /**
@@ -77,31 +77,31 @@ export declare const CreateLeadSchema: z.ZodEffects<z.ZodObject<{
77
77
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
78
78
  source: z.ZodString;
79
79
  }, "strip", z.ZodTypeAny, {
80
+ phoneNumber: string;
80
81
  name: string;
81
82
  source: string;
82
- phoneNumber: string;
83
83
  isBlacklisted: boolean;
84
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
84
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
85
85
  blacklistReason?: string | null | undefined;
86
86
  }, {
87
+ phoneNumber: string;
87
88
  name: string;
88
89
  source: string;
89
- phoneNumber: string;
90
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
90
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
91
91
  blacklistReason?: string | null | undefined;
92
92
  isBlacklisted?: boolean | undefined;
93
93
  }>, {
94
+ phoneNumber: string;
94
95
  name: string;
95
96
  source: string;
96
- phoneNumber: string;
97
97
  isBlacklisted: boolean;
98
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
98
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
99
99
  blacklistReason?: string | null | undefined;
100
100
  }, {
101
+ phoneNumber: string;
101
102
  name: string;
102
103
  source: string;
103
- phoneNumber: string;
104
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
104
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
105
105
  blacklistReason?: string | null | undefined;
106
106
  isBlacklisted?: boolean | undefined;
107
107
  }>;
@@ -115,29 +115,29 @@ export declare const UpdateLeadSchema: z.ZodEffects<z.ZodObject<{
115
115
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
116
  source: z.ZodOptional<z.ZodString>;
117
117
  }, "strip", z.ZodTypeAny, {
118
+ phoneNumber?: string | undefined;
119
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
118
120
  name?: string | undefined;
119
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
120
121
  blacklistReason?: string | null | undefined;
121
122
  source?: string | undefined;
122
- phoneNumber?: string | undefined;
123
123
  }, {
124
+ phoneNumber?: string | undefined;
125
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
124
126
  name?: string | undefined;
125
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
126
127
  blacklistReason?: string | null | undefined;
127
128
  source?: string | undefined;
128
- phoneNumber?: string | undefined;
129
129
  }>, {
130
+ phoneNumber?: string | undefined;
131
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
130
132
  name?: string | undefined;
131
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
132
133
  blacklistReason?: string | null | undefined;
133
134
  source?: string | undefined;
134
- phoneNumber?: string | undefined;
135
135
  }, {
136
+ phoneNumber?: string | undefined;
137
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
136
138
  name?: string | undefined;
137
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
138
139
  blacklistReason?: string | null | undefined;
139
140
  source?: string | undefined;
140
- phoneNumber?: string | undefined;
141
141
  }>;
142
142
  /**
143
143
  * Filter Lead Schema
@@ -168,37 +168,37 @@ export declare const FilterLeadSchema: z.ZodObject<{
168
168
  sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "phoneNumber", "status", "source", "lastCalledAt", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>>>;
169
169
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
170
170
  }, "strip", z.ZodTypeAny, {
171
- page: number;
172
171
  limit: number;
173
- name?: string | null | undefined;
174
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
175
- sortBy?: "name" | "updatedAt" | "createdAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "totalCalls" | "conversionRate" | "qualityScore" | null | undefined;
176
- sortOrder?: "ASC" | "DESC" | null | undefined;
177
- source?: string | null | undefined;
172
+ page: number;
178
173
  phoneNumber?: string | null | undefined;
174
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
175
+ name?: string | null | undefined;
179
176
  lastCalledAt?: {
180
177
  from?: string | null | undefined;
181
178
  to?: string | null | undefined;
182
179
  } | null | undefined;
183
180
  minTotalCalls?: number | null | undefined;
181
+ sortBy?: "phoneNumber" | "status" | "name" | "createdAt" | "updatedAt" | "lastCalledAt" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
182
+ sortOrder?: "ASC" | "DESC" | null | undefined;
183
+ source?: string | null | undefined;
184
184
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
185
185
  minQualityScore?: number | null | undefined;
186
186
  maxQualityScore?: number | null | undefined;
187
187
  minConversionRate?: number | null | undefined;
188
188
  }, {
189
- name?: string | null | undefined;
190
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
191
- sortBy?: "name" | "updatedAt" | "createdAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "totalCalls" | "conversionRate" | "qualityScore" | null | undefined;
192
- sortOrder?: "ASC" | "DESC" | null | undefined;
193
- page?: number | undefined;
194
- limit?: number | undefined;
195
- source?: string | null | undefined;
196
189
  phoneNumber?: string | null | undefined;
190
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
191
+ name?: string | null | undefined;
197
192
  lastCalledAt?: {
198
193
  from?: string | null | undefined;
199
194
  to?: string | null | undefined;
200
195
  } | null | undefined;
196
+ limit?: number | undefined;
197
+ page?: number | undefined;
201
198
  minTotalCalls?: number | null | undefined;
199
+ sortBy?: "phoneNumber" | "status" | "name" | "createdAt" | "updatedAt" | "lastCalledAt" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
200
+ sortOrder?: "ASC" | "DESC" | null | undefined;
201
+ source?: string | null | undefined;
202
202
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
203
203
  minQualityScore?: number | null | undefined;
204
204
  maxQualityScore?: number | null | undefined;
@@ -220,24 +220,24 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
220
220
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
221
221
  }, "strip", z.ZodTypeAny, {
222
222
  id: string;
223
- updatedAt: string;
224
- createdAt: string;
225
223
  agentId: string;
226
- assignmentId: string;
224
+ createdAt: string;
225
+ updatedAt: string;
227
226
  rating: import("../common/call-rating.schema").CallRating;
228
227
  callType: import("../call-history/call-history.contract").CallType;
229
228
  leadId: string;
229
+ assignmentId: string;
230
230
  ratingWeight: number;
231
231
  notes?: string | null | undefined;
232
232
  }, {
233
233
  id: string;
234
- updatedAt: string | Date;
235
- createdAt: string | Date;
236
234
  agentId: string;
237
- assignmentId: string;
235
+ createdAt: string | Date;
236
+ updatedAt: string | Date;
238
237
  rating: import("../common/call-rating.schema").CallRating;
239
238
  callType: import("../call-history/call-history.contract").CallType;
240
239
  leadId: string;
240
+ assignmentId: string;
241
241
  ratingWeight: number;
242
242
  notes?: string | null | undefined;
243
243
  }>;
@@ -323,35 +323,35 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
323
323
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
324
324
  }, "strip", z.ZodTypeAny, {
325
325
  id: string;
326
+ phoneNumber: string;
327
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
326
328
  name: string;
327
- updatedAt: string;
328
329
  createdAt: string;
329
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
330
+ updatedAt: string;
330
331
  source: string;
331
- phoneNumber: string;
332
- blacklistReason?: string | null | undefined;
333
332
  lastCalledAt?: string | null | undefined;
333
+ cooldownUntil?: string | null | undefined;
334
+ blacklistReason?: string | null | undefined;
334
335
  lastCallNotes?: string | null | undefined;
335
- totalCalls?: number | null | undefined;
336
- conversionRate?: number | null | undefined;
337
336
  qualityScore?: number | null | undefined;
338
- cooldownUntil?: string | null | undefined;
337
+ conversionRate?: number | null | undefined;
338
+ totalCalls?: number | null | undefined;
339
339
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
340
340
  }, {
341
341
  id: string;
342
+ phoneNumber: string;
343
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
342
344
  name: string;
343
- updatedAt: string | Date;
344
345
  createdAt: string | Date;
345
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
346
+ updatedAt: string | Date;
346
347
  source: string;
347
- phoneNumber: string;
348
- blacklistReason?: string | null | undefined;
349
348
  lastCalledAt?: string | Date | null | undefined;
349
+ cooldownUntil?: string | Date | null | undefined;
350
+ blacklistReason?: string | null | undefined;
350
351
  lastCallNotes?: string | null | undefined;
351
- totalCalls?: number | null | undefined;
352
- conversionRate?: number | null | undefined;
353
352
  qualityScore?: number | null | undefined;
354
- cooldownUntil?: string | Date | null | undefined;
353
+ conversionRate?: number | null | undefined;
354
+ totalCalls?: number | null | undefined;
355
355
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
356
356
  }>, "many">;
357
357
  totalCount: z.ZodNumber;
@@ -363,19 +363,19 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
363
363
  limit: number;
364
364
  items: {
365
365
  id: string;
366
+ phoneNumber: string;
367
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
366
368
  name: string;
367
- updatedAt: string;
368
369
  createdAt: string;
369
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
370
+ updatedAt: string;
370
371
  source: string;
371
- phoneNumber: string;
372
- blacklistReason?: string | null | undefined;
373
372
  lastCalledAt?: string | null | undefined;
373
+ cooldownUntil?: string | null | undefined;
374
+ blacklistReason?: string | null | undefined;
374
375
  lastCallNotes?: string | null | undefined;
375
- totalCalls?: number | null | undefined;
376
- conversionRate?: number | null | undefined;
377
376
  qualityScore?: number | null | undefined;
378
- cooldownUntil?: string | null | undefined;
377
+ conversionRate?: number | null | undefined;
378
+ totalCalls?: number | null | undefined;
379
379
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
380
380
  }[];
381
381
  totalCount: number;
@@ -386,19 +386,19 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
386
386
  limit: number;
387
387
  items: {
388
388
  id: string;
389
+ phoneNumber: string;
390
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
389
391
  name: string;
390
- updatedAt: string | Date;
391
392
  createdAt: string | Date;
392
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
393
+ updatedAt: string | Date;
393
394
  source: string;
394
- phoneNumber: string;
395
- blacklistReason?: string | null | undefined;
396
395
  lastCalledAt?: string | Date | null | undefined;
396
+ cooldownUntil?: string | Date | null | undefined;
397
+ blacklistReason?: string | null | undefined;
397
398
  lastCallNotes?: string | null | undefined;
398
- totalCalls?: number | null | undefined;
399
- conversionRate?: number | null | undefined;
400
399
  qualityScore?: number | null | undefined;
401
- cooldownUntil?: string | Date | null | undefined;
400
+ conversionRate?: number | null | undefined;
401
+ totalCalls?: number | null | undefined;
402
402
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
403
403
  }[];
404
404
  totalCount: number;
@@ -432,31 +432,31 @@ export declare const leadsContractRouter: {
432
432
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
433
433
  source: z.ZodString;
434
434
  }, "strip", z.ZodTypeAny, {
435
+ phoneNumber: string;
435
436
  name: string;
436
437
  source: string;
437
- phoneNumber: string;
438
438
  isBlacklisted: boolean;
439
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
439
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
440
440
  blacklistReason?: string | null | undefined;
441
441
  }, {
442
+ phoneNumber: string;
442
443
  name: string;
443
444
  source: string;
444
- phoneNumber: string;
445
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
445
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
446
446
  blacklistReason?: string | null | undefined;
447
447
  isBlacklisted?: boolean | undefined;
448
448
  }>, {
449
+ phoneNumber: string;
449
450
  name: string;
450
451
  source: string;
451
- phoneNumber: string;
452
452
  isBlacklisted: boolean;
453
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
453
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
454
454
  blacklistReason?: string | null | undefined;
455
455
  }, {
456
+ phoneNumber: string;
456
457
  name: string;
457
458
  source: string;
458
- phoneNumber: string;
459
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
459
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
460
460
  blacklistReason?: string | null | undefined;
461
461
  isBlacklisted?: boolean | undefined;
462
462
  }>;
@@ -580,35 +580,35 @@ export declare const leadsContractRouter: {
580
580
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
581
581
  }, "strip", z.ZodTypeAny, {
582
582
  id: string;
583
+ phoneNumber: string;
584
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
583
585
  name: string;
584
- updatedAt: string;
585
586
  createdAt: string;
586
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
587
+ updatedAt: string;
587
588
  source: string;
588
- phoneNumber: string;
589
- blacklistReason?: string | null | undefined;
590
589
  lastCalledAt?: string | null | undefined;
590
+ cooldownUntil?: string | null | undefined;
591
+ blacklistReason?: string | null | undefined;
591
592
  lastCallNotes?: string | null | undefined;
592
- totalCalls?: number | null | undefined;
593
- conversionRate?: number | null | undefined;
594
593
  qualityScore?: number | null | undefined;
595
- cooldownUntil?: string | null | undefined;
594
+ conversionRate?: number | null | undefined;
595
+ totalCalls?: number | null | undefined;
596
596
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
597
597
  }, {
598
598
  id: string;
599
+ phoneNumber: string;
600
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
599
601
  name: string;
600
- updatedAt: string | Date;
601
602
  createdAt: string | Date;
602
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
603
+ updatedAt: string | Date;
603
604
  source: string;
604
- phoneNumber: string;
605
- blacklistReason?: string | null | undefined;
606
605
  lastCalledAt?: string | Date | null | undefined;
606
+ cooldownUntil?: string | Date | null | undefined;
607
+ blacklistReason?: string | null | undefined;
607
608
  lastCallNotes?: string | null | undefined;
608
- totalCalls?: number | null | undefined;
609
- conversionRate?: number | null | undefined;
610
609
  qualityScore?: number | null | undefined;
611
- cooldownUntil?: string | Date | null | undefined;
610
+ conversionRate?: number | null | undefined;
611
+ totalCalls?: number | null | undefined;
612
612
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
613
613
  }>;
614
614
  409: z.ZodObject<{
@@ -665,37 +665,37 @@ export declare const leadsContractRouter: {
665
665
  sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "phoneNumber", "status", "source", "lastCalledAt", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>>>;
666
666
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
667
667
  }, "strip", z.ZodTypeAny, {
668
- page: number;
669
668
  limit: number;
670
- name?: string | null | undefined;
671
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
672
- sortBy?: "name" | "updatedAt" | "createdAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "totalCalls" | "conversionRate" | "qualityScore" | null | undefined;
673
- sortOrder?: "ASC" | "DESC" | null | undefined;
674
- source?: string | null | undefined;
669
+ page: number;
675
670
  phoneNumber?: string | null | undefined;
671
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
672
+ name?: string | null | undefined;
676
673
  lastCalledAt?: {
677
674
  from?: string | null | undefined;
678
675
  to?: string | null | undefined;
679
676
  } | null | undefined;
680
677
  minTotalCalls?: number | null | undefined;
678
+ sortBy?: "phoneNumber" | "status" | "name" | "createdAt" | "updatedAt" | "lastCalledAt" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
679
+ sortOrder?: "ASC" | "DESC" | null | undefined;
680
+ source?: string | null | undefined;
681
681
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
682
682
  minQualityScore?: number | null | undefined;
683
683
  maxQualityScore?: number | null | undefined;
684
684
  minConversionRate?: number | null | undefined;
685
685
  }, {
686
- name?: string | null | undefined;
687
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
688
- sortBy?: "name" | "updatedAt" | "createdAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "totalCalls" | "conversionRate" | "qualityScore" | null | undefined;
689
- sortOrder?: "ASC" | "DESC" | null | undefined;
690
- page?: number | undefined;
691
- limit?: number | undefined;
692
- source?: string | null | undefined;
693
686
  phoneNumber?: string | null | undefined;
687
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
688
+ name?: string | null | undefined;
694
689
  lastCalledAt?: {
695
690
  from?: string | null | undefined;
696
691
  to?: string | null | undefined;
697
692
  } | null | undefined;
693
+ limit?: number | undefined;
694
+ page?: number | undefined;
698
695
  minTotalCalls?: number | null | undefined;
696
+ sortBy?: "phoneNumber" | "status" | "name" | "createdAt" | "updatedAt" | "lastCalledAt" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
697
+ sortOrder?: "ASC" | "DESC" | null | undefined;
698
+ source?: string | null | undefined;
699
699
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
700
700
  minQualityScore?: number | null | undefined;
701
701
  maxQualityScore?: number | null | undefined;
@@ -830,35 +830,35 @@ export declare const leadsContractRouter: {
830
830
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
831
831
  }, "strip", z.ZodTypeAny, {
832
832
  id: string;
833
+ phoneNumber: string;
834
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
833
835
  name: string;
834
- updatedAt: string;
835
836
  createdAt: string;
836
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
837
+ updatedAt: string;
837
838
  source: string;
838
- phoneNumber: string;
839
- blacklistReason?: string | null | undefined;
840
839
  lastCalledAt?: string | null | undefined;
840
+ cooldownUntil?: string | null | undefined;
841
+ blacklistReason?: string | null | undefined;
841
842
  lastCallNotes?: string | null | undefined;
842
- totalCalls?: number | null | undefined;
843
- conversionRate?: number | null | undefined;
844
843
  qualityScore?: number | null | undefined;
845
- cooldownUntil?: string | null | undefined;
844
+ conversionRate?: number | null | undefined;
845
+ totalCalls?: number | null | undefined;
846
846
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
847
847
  }, {
848
848
  id: string;
849
+ phoneNumber: string;
850
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
849
851
  name: string;
850
- updatedAt: string | Date;
851
852
  createdAt: string | Date;
852
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
853
+ updatedAt: string | Date;
853
854
  source: string;
854
- phoneNumber: string;
855
- blacklistReason?: string | null | undefined;
856
855
  lastCalledAt?: string | Date | null | undefined;
856
+ cooldownUntil?: string | Date | null | undefined;
857
+ blacklistReason?: string | null | undefined;
857
858
  lastCallNotes?: string | null | undefined;
858
- totalCalls?: number | null | undefined;
859
- conversionRate?: number | null | undefined;
860
859
  qualityScore?: number | null | undefined;
861
- cooldownUntil?: string | Date | null | undefined;
860
+ conversionRate?: number | null | undefined;
861
+ totalCalls?: number | null | undefined;
862
862
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
863
863
  }>, "many">;
864
864
  totalCount: z.ZodNumber;
@@ -870,19 +870,19 @@ export declare const leadsContractRouter: {
870
870
  limit: number;
871
871
  items: {
872
872
  id: string;
873
+ phoneNumber: string;
874
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
873
875
  name: string;
874
- updatedAt: string;
875
876
  createdAt: string;
876
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
877
+ updatedAt: string;
877
878
  source: string;
878
- phoneNumber: string;
879
- blacklistReason?: string | null | undefined;
880
879
  lastCalledAt?: string | null | undefined;
880
+ cooldownUntil?: string | null | undefined;
881
+ blacklistReason?: string | null | undefined;
881
882
  lastCallNotes?: string | null | undefined;
882
- totalCalls?: number | null | undefined;
883
- conversionRate?: number | null | undefined;
884
883
  qualityScore?: number | null | undefined;
885
- cooldownUntil?: string | null | undefined;
884
+ conversionRate?: number | null | undefined;
885
+ totalCalls?: number | null | undefined;
886
886
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
887
887
  }[];
888
888
  totalCount: number;
@@ -893,19 +893,19 @@ export declare const leadsContractRouter: {
893
893
  limit: number;
894
894
  items: {
895
895
  id: string;
896
+ phoneNumber: string;
897
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
896
898
  name: string;
897
- updatedAt: string | Date;
898
899
  createdAt: string | Date;
899
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
900
+ updatedAt: string | Date;
900
901
  source: string;
901
- phoneNumber: string;
902
- blacklistReason?: string | null | undefined;
903
902
  lastCalledAt?: string | Date | null | undefined;
903
+ cooldownUntil?: string | Date | null | undefined;
904
+ blacklistReason?: string | null | undefined;
904
905
  lastCallNotes?: string | null | undefined;
905
- totalCalls?: number | null | undefined;
906
- conversionRate?: number | null | undefined;
907
906
  qualityScore?: number | null | undefined;
908
- cooldownUntil?: string | Date | null | undefined;
907
+ conversionRate?: number | null | undefined;
908
+ totalCalls?: number | null | undefined;
909
909
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
910
910
  }[];
911
911
  totalCount: number;
@@ -1051,35 +1051,35 @@ export declare const leadsContractRouter: {
1051
1051
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1052
1052
  }, "strip", z.ZodTypeAny, {
1053
1053
  id: string;
1054
+ phoneNumber: string;
1055
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1054
1056
  name: string;
1055
- updatedAt: string;
1056
1057
  createdAt: string;
1057
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
1058
+ updatedAt: string;
1058
1059
  source: string;
1059
- phoneNumber: string;
1060
- blacklistReason?: string | null | undefined;
1061
1060
  lastCalledAt?: string | null | undefined;
1061
+ cooldownUntil?: string | null | undefined;
1062
+ blacklistReason?: string | null | undefined;
1062
1063
  lastCallNotes?: string | null | undefined;
1063
- totalCalls?: number | null | undefined;
1064
- conversionRate?: number | null | undefined;
1065
1064
  qualityScore?: number | null | undefined;
1066
- cooldownUntil?: string | null | undefined;
1065
+ conversionRate?: number | null | undefined;
1066
+ totalCalls?: number | null | undefined;
1067
1067
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1068
1068
  }, {
1069
1069
  id: string;
1070
+ phoneNumber: string;
1071
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1070
1072
  name: string;
1071
- updatedAt: string | Date;
1072
1073
  createdAt: string | Date;
1073
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
1074
+ updatedAt: string | Date;
1074
1075
  source: string;
1075
- phoneNumber: string;
1076
- blacklistReason?: string | null | undefined;
1077
1076
  lastCalledAt?: string | Date | null | undefined;
1077
+ cooldownUntil?: string | Date | null | undefined;
1078
+ blacklistReason?: string | null | undefined;
1078
1079
  lastCallNotes?: string | null | undefined;
1079
- totalCalls?: number | null | undefined;
1080
- conversionRate?: number | null | undefined;
1081
1080
  qualityScore?: number | null | undefined;
1082
- cooldownUntil?: string | Date | null | undefined;
1081
+ conversionRate?: number | null | undefined;
1082
+ totalCalls?: number | null | undefined;
1083
1083
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1084
1084
  }>;
1085
1085
  404: z.ZodObject<{
@@ -1132,29 +1132,29 @@ export declare const leadsContractRouter: {
1132
1132
  blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1133
1133
  source: z.ZodOptional<z.ZodString>;
1134
1134
  }, "strip", z.ZodTypeAny, {
1135
+ phoneNumber?: string | undefined;
1136
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1135
1137
  name?: string | undefined;
1136
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
1137
1138
  blacklistReason?: string | null | undefined;
1138
1139
  source?: string | undefined;
1139
- phoneNumber?: string | undefined;
1140
1140
  }, {
1141
+ phoneNumber?: string | undefined;
1142
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1141
1143
  name?: string | undefined;
1142
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
1143
1144
  blacklistReason?: string | null | undefined;
1144
1145
  source?: string | undefined;
1145
- phoneNumber?: string | undefined;
1146
1146
  }>, {
1147
+ phoneNumber?: string | undefined;
1148
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1147
1149
  name?: string | undefined;
1148
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
1149
1150
  blacklistReason?: string | null | undefined;
1150
1151
  source?: string | undefined;
1151
- phoneNumber?: string | undefined;
1152
1152
  }, {
1153
+ phoneNumber?: string | undefined;
1154
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1153
1155
  name?: string | undefined;
1154
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
1155
1156
  blacklistReason?: string | null | undefined;
1156
1157
  source?: string | undefined;
1157
- phoneNumber?: string | undefined;
1158
1158
  }>;
1159
1159
  path: "/v2/leads/:id";
1160
1160
  responses: {
@@ -1276,35 +1276,35 @@ export declare const leadsContractRouter: {
1276
1276
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1277
1277
  }, "strip", z.ZodTypeAny, {
1278
1278
  id: string;
1279
+ phoneNumber: string;
1280
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1279
1281
  name: string;
1280
- updatedAt: string;
1281
1282
  createdAt: string;
1282
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
1283
+ updatedAt: string;
1283
1284
  source: string;
1284
- phoneNumber: string;
1285
- blacklistReason?: string | null | undefined;
1286
1285
  lastCalledAt?: string | null | undefined;
1286
+ cooldownUntil?: string | null | undefined;
1287
+ blacklistReason?: string | null | undefined;
1287
1288
  lastCallNotes?: string | null | undefined;
1288
- totalCalls?: number | null | undefined;
1289
- conversionRate?: number | null | undefined;
1290
1289
  qualityScore?: number | null | undefined;
1291
- cooldownUntil?: string | null | undefined;
1290
+ conversionRate?: number | null | undefined;
1291
+ totalCalls?: number | null | undefined;
1292
1292
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1293
1293
  }, {
1294
1294
  id: string;
1295
+ phoneNumber: string;
1296
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1295
1297
  name: string;
1296
- updatedAt: string | Date;
1297
1298
  createdAt: string | Date;
1298
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
1299
+ updatedAt: string | Date;
1299
1300
  source: string;
1300
- phoneNumber: string;
1301
- blacklistReason?: string | null | undefined;
1302
1301
  lastCalledAt?: string | Date | null | undefined;
1302
+ cooldownUntil?: string | Date | null | undefined;
1303
+ blacklistReason?: string | null | undefined;
1303
1304
  lastCallNotes?: string | null | undefined;
1304
- totalCalls?: number | null | undefined;
1305
- conversionRate?: number | null | undefined;
1306
1305
  qualityScore?: number | null | undefined;
1307
- cooldownUntil?: string | Date | null | undefined;
1306
+ conversionRate?: number | null | undefined;
1307
+ totalCalls?: number | null | undefined;
1308
1308
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1309
1309
  }>;
1310
1310
  404: z.ZodObject<{
@@ -1528,14 +1528,14 @@ export declare const leadsContractRouter: {
1528
1528
  notes: z.ZodOptional<z.ZodString>;
1529
1529
  callType: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>;
1530
1530
  }, "strip", z.ZodTypeAny, {
1531
- assignmentId: string;
1532
1531
  rating: import("../common/call-rating.schema").CallRating;
1533
1532
  callType: import("../call-history/call-history.contract").CallType;
1533
+ assignmentId: string;
1534
1534
  notes?: string | undefined;
1535
1535
  }, {
1536
- assignmentId: string;
1537
1536
  rating: import("../common/call-rating.schema").CallRating;
1538
1537
  callType: import("../call-history/call-history.contract").CallType;
1538
+ assignmentId: string;
1539
1539
  notes?: string | undefined;
1540
1540
  }>;
1541
1541
  path: "/v2/leads/:id/call";
@@ -1653,24 +1653,24 @@ export declare const leadsContractRouter: {
1653
1653
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1654
1654
  }, "strip", z.ZodTypeAny, {
1655
1655
  id: string;
1656
- updatedAt: string;
1657
- createdAt: string;
1658
1656
  agentId: string;
1659
- assignmentId: string;
1657
+ createdAt: string;
1658
+ updatedAt: string;
1660
1659
  rating: import("../common/call-rating.schema").CallRating;
1661
1660
  callType: import("../call-history/call-history.contract").CallType;
1662
1661
  leadId: string;
1662
+ assignmentId: string;
1663
1663
  ratingWeight: number;
1664
1664
  notes?: string | null | undefined;
1665
1665
  }, {
1666
1666
  id: string;
1667
- updatedAt: string | Date;
1668
- createdAt: string | Date;
1669
1667
  agentId: string;
1670
- assignmentId: string;
1668
+ createdAt: string | Date;
1669
+ updatedAt: string | Date;
1671
1670
  rating: import("../common/call-rating.schema").CallRating;
1672
1671
  callType: import("../call-history/call-history.contract").CallType;
1673
1672
  leadId: string;
1673
+ assignmentId: string;
1674
1674
  ratingWeight: number;
1675
1675
  notes?: string | null | undefined;
1676
1676
  }>;