@dakkitor/api-contracts 1.1.26 → 1.1.28

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 (54) hide show
  1. package/dist/actives/actives.contract.d.ts +4899 -597
  2. package/dist/actives/actives.contract.d.ts.map +1 -1
  3. package/dist/actives/actives.contract.js +0 -1
  4. package/dist/agent-client-links/agent-client-links.contract.d.ts +487 -487
  5. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
  6. package/dist/agent-client-links/agent-client-links.contract.js +2 -0
  7. package/dist/auth/auth.contract.d.ts +4 -4
  8. package/dist/bookings/bookings.contract.d.ts +5657 -1430
  9. package/dist/bookings/bookings.contract.d.ts.map +1 -1
  10. package/dist/bookings/bookings.contract.js +6 -6
  11. package/dist/call-history/call-history.contract.d.ts +1188 -262
  12. package/dist/call-history/call-history.contract.d.ts.map +1 -1
  13. package/dist/call-history/call-history.contract.js +3 -4
  14. package/dist/client-contacts/client-contacts.contract.d.ts +515 -515
  15. package/dist/clients/clients.contract.d.ts +380 -380
  16. package/dist/clients/clients.contract.d.ts.map +1 -1
  17. package/dist/clients/clients.contract.js +8 -2
  18. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3349 -1023
  19. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
  20. package/dist/collaboration-checkings/collaboration-checkings.contract.js +3 -10
  21. package/dist/collaborations/collaborations.contract.d.ts +2934 -219
  22. package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
  23. package/dist/collaborations/collaborations.contract.js +19 -33
  24. package/dist/common/common-schemas.d.ts +6 -6
  25. package/dist/common/common-schemas.d.ts.map +1 -1
  26. package/dist/common/common-schemas.js +3 -5
  27. package/dist/common/error-schemas.d.ts +6 -6
  28. package/dist/companies/companies.contract.d.ts +212 -212
  29. package/dist/cron-executions/cron-executions.contract.d.ts +228 -228
  30. package/dist/curated-workers/curated-workers.contract.d.ts +366 -366
  31. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
  32. package/dist/curated-workers/curated-workers.contract.js +4 -10
  33. package/dist/dashboards/agent-daily-metrics.contract.d.ts +120 -120
  34. package/dist/files/files.contract.d.ts +228 -228
  35. package/dist/health/health.contract.d.ts +22 -22
  36. package/dist/jobs/jobs.contract.d.ts +3517 -511
  37. package/dist/jobs/jobs.contract.d.ts.map +1 -1
  38. package/dist/jobs/jobs.contract.js +36 -17
  39. package/dist/lead-assignments/lead-assignments.contract.d.ts +272 -272
  40. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +63 -63
  41. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +146 -146
  42. package/dist/leads/leads.contract.d.ts +316 -316
  43. package/dist/locations/locations.contract.d.ts +161 -161
  44. package/dist/postcodes/postcodes.contract.d.ts +66 -66
  45. package/dist/qualifications/qualifications.contract.d.ts +256 -256
  46. package/dist/trades/trades.contract.d.ts +160 -160
  47. package/dist/users/users.contract.d.ts +100 -100
  48. package/dist/workers/workers.contract.d.ts +129 -75
  49. package/dist/workers/workers.contract.d.ts.map +1 -1
  50. package/dist/workers/workers.contract.js +20 -13
  51. package/package.json +1 -1
  52. package/dist/common/api-responses.d.ts +0 -105
  53. package/dist/common/api-responses.d.ts.map +0 -1
  54. package/dist/common/api-responses.js +0 -107
@@ -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
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
35
34
  id: string;
36
35
  name: string;
36
+ phoneNumber: string;
37
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
37
38
  createdAt: string;
38
39
  updatedAt: string;
39
40
  source: string;
40
- phoneNumber: string;
41
- blacklistReason?: string | null | undefined;
42
41
  totalCalls?: number | null | undefined;
43
42
  qualityScore?: number | null | undefined;
44
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
45
43
  conversionRate?: number | null | undefined;
44
+ blacklistReason?: string | null | undefined;
45
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
46
46
  }, {
47
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
48
47
  id: string;
49
48
  name: string;
49
+ phoneNumber: string;
50
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
50
51
  createdAt: string | Date;
51
52
  updatedAt: string | Date;
52
53
  source: string;
53
- phoneNumber: string;
54
- blacklistReason?: string | null | undefined;
55
54
  totalCalls?: number | null | undefined;
56
55
  qualityScore?: number | null | undefined;
57
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
58
56
  conversionRate?: number | null | undefined;
57
+ blacklistReason?: string | null | undefined;
58
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
59
59
  }>;
60
60
  /**
61
61
  * Create Lead Schema
@@ -69,16 +69,16 @@ export declare const CreateLeadSchema: z.ZodObject<{
69
69
  source: z.ZodString;
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  name: string;
72
- source: string;
73
72
  phoneNumber: string;
73
+ source: string;
74
74
  isBlacklisted: boolean;
75
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
75
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
76
76
  blacklistReason?: string | undefined;
77
77
  }, {
78
78
  name: string;
79
- source: string;
80
79
  phoneNumber: string;
81
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
80
+ source: string;
81
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | 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?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
96
95
  name?: string | undefined;
97
- blacklistReason?: string | undefined;
98
- source?: string | undefined;
99
96
  phoneNumber?: string | undefined;
97
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
98
+ source?: string | undefined;
99
+ blacklistReason?: string | undefined;
100
100
  }, {
101
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
102
101
  name?: string | undefined;
103
- blacklistReason?: string | undefined;
104
- source?: string | undefined;
105
102
  phoneNumber?: string | undefined;
103
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
104
+ source?: string | undefined;
105
+ blacklistReason?: string | undefined;
106
106
  }>;
107
107
  /**
108
108
  * Filter Lead Schema
@@ -125,26 +125,26 @@ export declare const FilterLeadSchema: z.ZodObject<{
125
125
  }, "strip", z.ZodTypeAny, {
126
126
  limit: number;
127
127
  page: number;
128
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
129
128
  name?: string | null | undefined;
130
- sortBy?: "status" | "name" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "phoneNumber" | "qualityScore" | "conversionRate" | 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;
131
132
  sortOrder?: "ASC" | "DESC" | null | undefined;
132
133
  source?: string | null | undefined;
133
- phoneNumber?: string | null | undefined;
134
134
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
135
135
  minQualityScore?: number | null | undefined;
136
136
  maxQualityScore?: number | null | undefined;
137
137
  minConversionRate?: number | null | undefined;
138
138
  minTotalCalls?: number | null | undefined;
139
139
  }, {
140
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
141
140
  name?: string | null | undefined;
141
+ phoneNumber?: string | null | undefined;
142
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
142
143
  limit?: number | undefined;
143
144
  page?: number | undefined;
144
- sortBy?: "status" | "name" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "phoneNumber" | "qualityScore" | "conversionRate" | null | undefined;
145
+ sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
145
146
  sortOrder?: "ASC" | "DESC" | null | undefined;
146
147
  source?: string | null | undefined;
147
- phoneNumber?: string | null | undefined;
148
148
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
149
149
  minQualityScore?: number | null | undefined;
150
150
  maxQualityScore?: number | null | undefined;
@@ -168,26 +168,26 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
168
168
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
169
169
  }, "strip", z.ZodTypeAny, {
170
170
  id: string;
171
- createdAt: string;
172
- updatedAt: string;
173
- agentId: string;
174
171
  assignmentId: string;
175
- rating: import("../call-history/call-history.contract").CallRating;
176
- callType: import("../call-history/call-history.contract").CallType;
177
172
  leadId: string;
173
+ agentId: string;
174
+ createdAt: string;
175
+ updatedAt: string;
178
176
  callDate: string;
177
+ callType: import("../call-history/call-history.contract").CallType;
178
+ rating: import("../call-history/call-history.contract").CallRating;
179
179
  ratingWeight: number;
180
180
  notes?: string | null | undefined;
181
181
  }, {
182
182
  id: string;
183
- createdAt: string | Date;
184
- updatedAt: string | Date;
185
- agentId: string;
186
183
  assignmentId: string;
187
- rating: import("../call-history/call-history.contract").CallRating;
188
- callType: import("../call-history/call-history.contract").CallType;
189
184
  leadId: string;
185
+ agentId: string;
186
+ createdAt: string | Date;
187
+ updatedAt: string | Date;
190
188
  callDate: string | Date;
189
+ callType: import("../call-history/call-history.contract").CallType;
190
+ rating: import("../call-history/call-history.contract").CallRating;
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
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
273
272
  id: string;
274
273
  name: string;
274
+ phoneNumber: string;
275
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
275
276
  createdAt: string;
276
277
  updatedAt: string;
277
278
  source: string;
278
- phoneNumber: string;
279
- blacklistReason?: string | null | undefined;
280
279
  totalCalls?: number | null | undefined;
281
280
  qualityScore?: number | null | undefined;
282
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
283
281
  conversionRate?: number | null | undefined;
282
+ blacklistReason?: string | null | undefined;
283
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
284
284
  }, {
285
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
286
285
  id: string;
287
286
  name: string;
287
+ phoneNumber: string;
288
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
288
289
  createdAt: string | Date;
289
290
  updatedAt: string | Date;
290
291
  source: string;
291
- phoneNumber: string;
292
- blacklistReason?: string | null | undefined;
293
292
  totalCalls?: number | null | undefined;
294
293
  qualityScore?: number | null | undefined;
295
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
296
294
  conversionRate?: number | null | undefined;
295
+ blacklistReason?: string | null | undefined;
296
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
297
297
  }>, "many">;
298
298
  totalCount: z.ZodNumber;
299
299
  limit: z.ZodNumber;
@@ -302,18 +302,18 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
302
302
  totalPages: z.ZodNumber;
303
303
  }, "strip", z.ZodTypeAny, {
304
304
  items: {
305
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
306
305
  id: string;
307
306
  name: string;
307
+ phoneNumber: string;
308
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
308
309
  createdAt: string;
309
310
  updatedAt: string;
310
311
  source: string;
311
- phoneNumber: string;
312
- blacklistReason?: string | null | undefined;
313
312
  totalCalls?: number | null | undefined;
314
313
  qualityScore?: number | null | undefined;
315
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
316
314
  conversionRate?: number | null | undefined;
315
+ blacklistReason?: string | null | undefined;
316
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
317
317
  }[];
318
318
  totalCount: number;
319
319
  limit: number;
@@ -322,18 +322,18 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
322
322
  totalPages: number;
323
323
  }, {
324
324
  items: {
325
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
326
325
  id: string;
327
326
  name: string;
327
+ phoneNumber: string;
328
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
328
329
  createdAt: string | Date;
329
330
  updatedAt: string | Date;
330
331
  source: string;
331
- phoneNumber: string;
332
- blacklistReason?: string | null | undefined;
333
332
  totalCalls?: number | null | undefined;
334
333
  qualityScore?: number | null | undefined;
335
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
336
334
  conversionRate?: number | null | undefined;
335
+ blacklistReason?: string | null | undefined;
336
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
337
337
  }[];
338
338
  totalCount: number;
339
339
  limit: number;
@@ -368,16 +368,16 @@ export declare const leadsContractRouter: {
368
368
  source: z.ZodString;
369
369
  }, "strip", z.ZodTypeAny, {
370
370
  name: string;
371
- source: string;
372
371
  phoneNumber: string;
372
+ source: string;
373
373
  isBlacklisted: boolean;
374
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
374
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
375
375
  blacklistReason?: string | undefined;
376
376
  }, {
377
377
  name: string;
378
- source: string;
379
378
  phoneNumber: string;
380
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
379
+ source: string;
380
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
381
381
  blacklistReason?: string | undefined;
382
382
  isBlacklisted?: boolean | undefined;
383
383
  }>;
@@ -392,19 +392,19 @@ export declare const leadsContractRouter: {
392
392
  path: z.ZodString;
393
393
  correlationId: z.ZodOptional<z.ZodString>;
394
394
  }, "strip", z.ZodTypeAny, {
395
- statusCode: number;
396
- message: string;
397
395
  code: string;
398
- timestamp: string;
399
396
  path: string;
397
+ message: string;
398
+ statusCode: number;
399
+ timestamp: string;
400
400
  details?: unknown;
401
401
  correlationId?: string | undefined;
402
402
  }, {
403
- statusCode: number;
404
- message: string;
405
403
  code: string;
406
- timestamp: string;
407
404
  path: string;
405
+ message: string;
406
+ statusCode: number;
407
+ timestamp: string;
408
408
  details?: unknown;
409
409
  correlationId?: string | undefined;
410
410
  }>;
@@ -417,19 +417,19 @@ export declare const leadsContractRouter: {
417
417
  path: z.ZodString;
418
418
  correlationId: z.ZodOptional<z.ZodString>;
419
419
  }, "strip", z.ZodTypeAny, {
420
- statusCode: number;
421
- message: string;
422
420
  code: string;
423
- timestamp: string;
424
421
  path: string;
422
+ message: string;
423
+ statusCode: number;
424
+ timestamp: string;
425
425
  details?: unknown;
426
426
  correlationId?: string | undefined;
427
427
  }, {
428
- statusCode: number;
429
- message: string;
430
428
  code: string;
431
- timestamp: string;
432
429
  path: string;
430
+ message: string;
431
+ statusCode: number;
432
+ timestamp: string;
433
433
  details?: unknown;
434
434
  correlationId?: string | undefined;
435
435
  }>;
@@ -442,19 +442,19 @@ export declare const leadsContractRouter: {
442
442
  path: z.ZodString;
443
443
  correlationId: z.ZodOptional<z.ZodString>;
444
444
  }, "strip", z.ZodTypeAny, {
445
- statusCode: number;
446
- message: string;
447
445
  code: string;
448
- timestamp: string;
449
446
  path: string;
447
+ message: string;
448
+ statusCode: number;
449
+ timestamp: string;
450
450
  details?: unknown;
451
451
  correlationId?: string | undefined;
452
452
  }, {
453
- statusCode: number;
454
- message: string;
455
453
  code: string;
456
- timestamp: string;
457
454
  path: string;
455
+ message: string;
456
+ statusCode: number;
457
+ timestamp: string;
458
458
  details?: unknown;
459
459
  correlationId?: string | undefined;
460
460
  }>;
@@ -467,19 +467,19 @@ export declare const leadsContractRouter: {
467
467
  path: z.ZodString;
468
468
  correlationId: z.ZodOptional<z.ZodString>;
469
469
  }, "strip", z.ZodTypeAny, {
470
- statusCode: number;
471
- message: string;
472
470
  code: string;
473
- timestamp: string;
474
471
  path: string;
472
+ message: string;
473
+ statusCode: number;
474
+ timestamp: string;
475
475
  details?: unknown;
476
476
  correlationId?: string | undefined;
477
477
  }, {
478
- statusCode: number;
479
- message: string;
480
478
  code: string;
481
- timestamp: string;
482
479
  path: string;
480
+ message: string;
481
+ statusCode: number;
482
+ timestamp: string;
483
483
  details?: unknown;
484
484
  correlationId?: string | undefined;
485
485
  }>;
@@ -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
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
501
500
  id: string;
502
501
  name: string;
502
+ phoneNumber: string;
503
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
503
504
  createdAt: string;
504
505
  updatedAt: string;
505
506
  source: string;
506
- phoneNumber: string;
507
- blacklistReason?: string | null | undefined;
508
507
  totalCalls?: number | null | undefined;
509
508
  qualityScore?: number | null | undefined;
510
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
511
509
  conversionRate?: number | null | undefined;
510
+ blacklistReason?: string | null | undefined;
511
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
512
512
  }, {
513
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
514
513
  id: string;
515
514
  name: string;
515
+ phoneNumber: string;
516
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
516
517
  createdAt: string | Date;
517
518
  updatedAt: string | Date;
518
519
  source: string;
519
- phoneNumber: string;
520
- blacklistReason?: string | null | undefined;
521
520
  totalCalls?: number | null | undefined;
522
521
  qualityScore?: number | null | undefined;
523
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
524
522
  conversionRate?: number | null | undefined;
523
+ blacklistReason?: string | null | undefined;
524
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
525
525
  }>;
526
526
  409: z.ZodObject<{
527
527
  statusCode: z.ZodNumber;
@@ -532,19 +532,19 @@ export declare const leadsContractRouter: {
532
532
  path: z.ZodString;
533
533
  correlationId: z.ZodOptional<z.ZodString>;
534
534
  }, "strip", z.ZodTypeAny, {
535
- statusCode: number;
536
- message: string;
537
535
  code: string;
538
- timestamp: string;
539
536
  path: string;
537
+ message: string;
538
+ statusCode: number;
539
+ timestamp: string;
540
540
  details?: unknown;
541
541
  correlationId?: string | undefined;
542
542
  }, {
543
- statusCode: number;
544
- message: string;
545
543
  code: string;
546
- timestamp: string;
547
544
  path: string;
545
+ message: string;
546
+ statusCode: number;
547
+ timestamp: string;
548
548
  details?: unknown;
549
549
  correlationId?: string | undefined;
550
550
  }>;
@@ -575,26 +575,26 @@ export declare const leadsContractRouter: {
575
575
  }, "strip", z.ZodTypeAny, {
576
576
  limit: number;
577
577
  page: number;
578
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
579
578
  name?: string | null | undefined;
580
- sortBy?: "status" | "name" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "phoneNumber" | "qualityScore" | "conversionRate" | 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;
581
582
  sortOrder?: "ASC" | "DESC" | null | undefined;
582
583
  source?: string | null | undefined;
583
- phoneNumber?: string | null | undefined;
584
584
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
585
585
  minQualityScore?: number | null | undefined;
586
586
  maxQualityScore?: number | null | undefined;
587
587
  minConversionRate?: number | null | undefined;
588
588
  minTotalCalls?: number | null | undefined;
589
589
  }, {
590
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
591
590
  name?: string | null | undefined;
591
+ phoneNumber?: string | null | undefined;
592
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
592
593
  limit?: number | undefined;
593
594
  page?: number | undefined;
594
- sortBy?: "status" | "name" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "phoneNumber" | "qualityScore" | "conversionRate" | null | undefined;
595
+ sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
595
596
  sortOrder?: "ASC" | "DESC" | null | undefined;
596
597
  source?: string | null | undefined;
597
- phoneNumber?: string | null | undefined;
598
598
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
599
599
  minQualityScore?: number | null | undefined;
600
600
  maxQualityScore?: number | null | undefined;
@@ -614,19 +614,19 @@ export declare const leadsContractRouter: {
614
614
  path: z.ZodString;
615
615
  correlationId: z.ZodOptional<z.ZodString>;
616
616
  }, "strip", z.ZodTypeAny, {
617
- statusCode: number;
618
- message: string;
619
617
  code: string;
620
- timestamp: string;
621
618
  path: string;
619
+ message: string;
620
+ statusCode: number;
621
+ timestamp: string;
622
622
  details?: unknown;
623
623
  correlationId?: string | undefined;
624
624
  }, {
625
- statusCode: number;
626
- message: string;
627
625
  code: string;
628
- timestamp: string;
629
626
  path: string;
627
+ message: string;
628
+ statusCode: number;
629
+ timestamp: string;
630
630
  details?: unknown;
631
631
  correlationId?: string | undefined;
632
632
  }>;
@@ -639,19 +639,19 @@ export declare const leadsContractRouter: {
639
639
  path: z.ZodString;
640
640
  correlationId: z.ZodOptional<z.ZodString>;
641
641
  }, "strip", z.ZodTypeAny, {
642
- statusCode: number;
643
- message: string;
644
642
  code: string;
645
- timestamp: string;
646
643
  path: string;
644
+ message: string;
645
+ statusCode: number;
646
+ timestamp: string;
647
647
  details?: unknown;
648
648
  correlationId?: string | undefined;
649
649
  }, {
650
- statusCode: number;
651
- message: string;
652
650
  code: string;
653
- timestamp: string;
654
651
  path: string;
652
+ message: string;
653
+ statusCode: number;
654
+ timestamp: string;
655
655
  details?: unknown;
656
656
  correlationId?: string | undefined;
657
657
  }>;
@@ -664,19 +664,19 @@ export declare const leadsContractRouter: {
664
664
  path: z.ZodString;
665
665
  correlationId: z.ZodOptional<z.ZodString>;
666
666
  }, "strip", z.ZodTypeAny, {
667
- statusCode: number;
668
- message: string;
669
667
  code: string;
670
- timestamp: string;
671
668
  path: string;
669
+ message: string;
670
+ statusCode: number;
671
+ timestamp: string;
672
672
  details?: unknown;
673
673
  correlationId?: string | undefined;
674
674
  }, {
675
- statusCode: number;
676
- message: string;
677
675
  code: string;
678
- timestamp: string;
679
676
  path: string;
677
+ message: string;
678
+ statusCode: number;
679
+ timestamp: string;
680
680
  details?: unknown;
681
681
  correlationId?: string | undefined;
682
682
  }>;
@@ -689,19 +689,19 @@ export declare const leadsContractRouter: {
689
689
  path: z.ZodString;
690
690
  correlationId: z.ZodOptional<z.ZodString>;
691
691
  }, "strip", z.ZodTypeAny, {
692
- statusCode: number;
693
- message: string;
694
692
  code: string;
695
- timestamp: string;
696
693
  path: string;
694
+ message: string;
695
+ statusCode: number;
696
+ timestamp: string;
697
697
  details?: unknown;
698
698
  correlationId?: string | undefined;
699
699
  }, {
700
- statusCode: number;
701
- message: string;
702
700
  code: string;
703
- timestamp: string;
704
701
  path: string;
702
+ message: string;
703
+ statusCode: number;
704
+ timestamp: string;
705
705
  details?: unknown;
706
706
  correlationId?: string | undefined;
707
707
  }>;
@@ -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
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
724
723
  id: string;
725
724
  name: string;
725
+ phoneNumber: string;
726
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
726
727
  createdAt: string;
727
728
  updatedAt: string;
728
729
  source: string;
729
- phoneNumber: string;
730
- blacklistReason?: string | null | undefined;
731
730
  totalCalls?: number | null | undefined;
732
731
  qualityScore?: number | null | undefined;
733
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
734
732
  conversionRate?: number | null | undefined;
733
+ blacklistReason?: string | null | undefined;
734
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
735
735
  }, {
736
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
737
736
  id: string;
738
737
  name: string;
738
+ phoneNumber: string;
739
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
739
740
  createdAt: string | Date;
740
741
  updatedAt: string | Date;
741
742
  source: string;
742
- phoneNumber: string;
743
- blacklistReason?: string | null | undefined;
744
743
  totalCalls?: number | null | undefined;
745
744
  qualityScore?: number | null | undefined;
746
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
747
745
  conversionRate?: number | null | undefined;
746
+ blacklistReason?: string | null | undefined;
747
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
748
748
  }>, "many">;
749
749
  totalCount: z.ZodNumber;
750
750
  limit: z.ZodNumber;
@@ -753,18 +753,18 @@ export declare const leadsContractRouter: {
753
753
  totalPages: z.ZodNumber;
754
754
  }, "strip", z.ZodTypeAny, {
755
755
  items: {
756
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
757
756
  id: string;
758
757
  name: string;
758
+ phoneNumber: string;
759
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
759
760
  createdAt: string;
760
761
  updatedAt: string;
761
762
  source: string;
762
- phoneNumber: string;
763
- blacklistReason?: string | null | undefined;
764
763
  totalCalls?: number | null | undefined;
765
764
  qualityScore?: number | null | undefined;
766
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
767
765
  conversionRate?: number | null | undefined;
766
+ blacklistReason?: string | null | undefined;
767
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
768
768
  }[];
769
769
  totalCount: number;
770
770
  limit: number;
@@ -773,18 +773,18 @@ export declare const leadsContractRouter: {
773
773
  totalPages: number;
774
774
  }, {
775
775
  items: {
776
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
777
776
  id: string;
778
777
  name: string;
778
+ phoneNumber: string;
779
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
779
780
  createdAt: string | Date;
780
781
  updatedAt: string | Date;
781
782
  source: string;
782
- phoneNumber: string;
783
- blacklistReason?: string | null | undefined;
784
783
  totalCalls?: number | null | undefined;
785
784
  qualityScore?: number | null | undefined;
786
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
787
785
  conversionRate?: number | null | undefined;
786
+ blacklistReason?: string | null | undefined;
787
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
788
788
  }[];
789
789
  totalCount: number;
790
790
  limit: number;
@@ -821,19 +821,19 @@ export declare const leadsContractRouter: {
821
821
  path: z.ZodString;
822
822
  correlationId: z.ZodOptional<z.ZodString>;
823
823
  }, "strip", z.ZodTypeAny, {
824
- statusCode: number;
825
- message: string;
826
824
  code: string;
827
- timestamp: string;
828
825
  path: string;
826
+ message: string;
827
+ statusCode: number;
828
+ timestamp: string;
829
829
  details?: unknown;
830
830
  correlationId?: string | undefined;
831
831
  }, {
832
- statusCode: number;
833
- message: string;
834
832
  code: string;
835
- timestamp: string;
836
833
  path: string;
834
+ message: string;
835
+ statusCode: number;
836
+ timestamp: string;
837
837
  details?: unknown;
838
838
  correlationId?: string | undefined;
839
839
  }>;
@@ -846,19 +846,19 @@ export declare const leadsContractRouter: {
846
846
  path: z.ZodString;
847
847
  correlationId: z.ZodOptional<z.ZodString>;
848
848
  }, "strip", z.ZodTypeAny, {
849
- statusCode: number;
850
- message: string;
851
849
  code: string;
852
- timestamp: string;
853
850
  path: string;
851
+ message: string;
852
+ statusCode: number;
853
+ timestamp: string;
854
854
  details?: unknown;
855
855
  correlationId?: string | undefined;
856
856
  }, {
857
- statusCode: number;
858
- message: string;
859
857
  code: string;
860
- timestamp: string;
861
858
  path: string;
859
+ message: string;
860
+ statusCode: number;
861
+ timestamp: string;
862
862
  details?: unknown;
863
863
  correlationId?: string | undefined;
864
864
  }>;
@@ -871,19 +871,19 @@ export declare const leadsContractRouter: {
871
871
  path: z.ZodString;
872
872
  correlationId: z.ZodOptional<z.ZodString>;
873
873
  }, "strip", z.ZodTypeAny, {
874
- statusCode: number;
875
- message: string;
876
874
  code: string;
877
- timestamp: string;
878
875
  path: string;
876
+ message: string;
877
+ statusCode: number;
878
+ timestamp: string;
879
879
  details?: unknown;
880
880
  correlationId?: string | undefined;
881
881
  }, {
882
- statusCode: number;
883
- message: string;
884
882
  code: string;
885
- timestamp: string;
886
883
  path: string;
884
+ message: string;
885
+ statusCode: number;
886
+ timestamp: string;
887
887
  details?: unknown;
888
888
  correlationId?: string | undefined;
889
889
  }>;
@@ -896,19 +896,19 @@ export declare const leadsContractRouter: {
896
896
  path: z.ZodString;
897
897
  correlationId: z.ZodOptional<z.ZodString>;
898
898
  }, "strip", z.ZodTypeAny, {
899
- statusCode: number;
900
- message: string;
901
899
  code: string;
902
- timestamp: string;
903
900
  path: string;
901
+ message: string;
902
+ statusCode: number;
903
+ timestamp: string;
904
904
  details?: unknown;
905
905
  correlationId?: string | undefined;
906
906
  }, {
907
- statusCode: number;
908
- message: string;
909
907
  code: string;
910
- timestamp: string;
911
908
  path: string;
909
+ message: string;
910
+ statusCode: number;
911
+ timestamp: string;
912
912
  details?: unknown;
913
913
  correlationId?: string | undefined;
914
914
  }>;
@@ -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
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
930
929
  id: string;
931
930
  name: string;
931
+ phoneNumber: string;
932
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
932
933
  createdAt: string;
933
934
  updatedAt: string;
934
935
  source: string;
935
- phoneNumber: string;
936
- blacklistReason?: string | null | undefined;
937
936
  totalCalls?: number | null | undefined;
938
937
  qualityScore?: number | null | undefined;
939
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
940
938
  conversionRate?: number | null | undefined;
939
+ blacklistReason?: string | null | undefined;
940
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
941
941
  }, {
942
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
943
942
  id: string;
944
943
  name: string;
944
+ phoneNumber: string;
945
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
945
946
  createdAt: string | Date;
946
947
  updatedAt: string | Date;
947
948
  source: string;
948
- phoneNumber: string;
949
- blacklistReason?: string | null | undefined;
950
949
  totalCalls?: number | null | undefined;
951
950
  qualityScore?: number | null | undefined;
952
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
953
951
  conversionRate?: number | null | undefined;
952
+ blacklistReason?: string | null | undefined;
953
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
954
954
  }>;
955
955
  404: z.ZodObject<{
956
956
  statusCode: z.ZodNumber;
@@ -961,19 +961,19 @@ export declare const leadsContractRouter: {
961
961
  path: z.ZodString;
962
962
  correlationId: z.ZodOptional<z.ZodString>;
963
963
  }, "strip", z.ZodTypeAny, {
964
- statusCode: number;
965
- message: string;
966
964
  code: string;
967
- timestamp: string;
968
965
  path: string;
966
+ message: string;
967
+ statusCode: number;
968
+ timestamp: string;
969
969
  details?: unknown;
970
970
  correlationId?: string | undefined;
971
971
  }, {
972
- statusCode: number;
973
- message: string;
974
972
  code: string;
975
- timestamp: string;
976
973
  path: string;
974
+ message: string;
975
+ statusCode: number;
976
+ timestamp: string;
977
977
  details?: unknown;
978
978
  correlationId?: string | undefined;
979
979
  }>;
@@ -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?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
1006
1005
  name?: string | undefined;
1007
- blacklistReason?: string | undefined;
1008
- source?: string | undefined;
1009
1006
  phoneNumber?: string | undefined;
1007
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1008
+ source?: string | undefined;
1009
+ blacklistReason?: string | undefined;
1010
1010
  }, {
1011
- status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
1012
1011
  name?: string | undefined;
1013
- blacklistReason?: string | undefined;
1014
- source?: string | undefined;
1015
1012
  phoneNumber?: string | undefined;
1013
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1014
+ source?: string | undefined;
1015
+ blacklistReason?: string | undefined;
1016
1016
  }>;
1017
1017
  path: "/v2/leads/:id";
1018
1018
  responses: {
@@ -1025,19 +1025,19 @@ export declare const leadsContractRouter: {
1025
1025
  path: z.ZodString;
1026
1026
  correlationId: z.ZodOptional<z.ZodString>;
1027
1027
  }, "strip", z.ZodTypeAny, {
1028
- statusCode: number;
1029
- message: string;
1030
1028
  code: string;
1031
- timestamp: string;
1032
1029
  path: string;
1030
+ message: string;
1031
+ statusCode: number;
1032
+ timestamp: string;
1033
1033
  details?: unknown;
1034
1034
  correlationId?: string | undefined;
1035
1035
  }, {
1036
- statusCode: number;
1037
- message: string;
1038
1036
  code: string;
1039
- timestamp: string;
1040
1037
  path: string;
1038
+ message: string;
1039
+ statusCode: number;
1040
+ timestamp: string;
1041
1041
  details?: unknown;
1042
1042
  correlationId?: string | undefined;
1043
1043
  }>;
@@ -1050,19 +1050,19 @@ export declare const leadsContractRouter: {
1050
1050
  path: z.ZodString;
1051
1051
  correlationId: z.ZodOptional<z.ZodString>;
1052
1052
  }, "strip", z.ZodTypeAny, {
1053
- statusCode: number;
1054
- message: string;
1055
1053
  code: string;
1056
- timestamp: string;
1057
1054
  path: string;
1055
+ message: string;
1056
+ statusCode: number;
1057
+ timestamp: string;
1058
1058
  details?: unknown;
1059
1059
  correlationId?: string | undefined;
1060
1060
  }, {
1061
- statusCode: number;
1062
- message: string;
1063
1061
  code: string;
1064
- timestamp: string;
1065
1062
  path: string;
1063
+ message: string;
1064
+ statusCode: number;
1065
+ timestamp: string;
1066
1066
  details?: unknown;
1067
1067
  correlationId?: string | undefined;
1068
1068
  }>;
@@ -1075,19 +1075,19 @@ export declare const leadsContractRouter: {
1075
1075
  path: z.ZodString;
1076
1076
  correlationId: z.ZodOptional<z.ZodString>;
1077
1077
  }, "strip", z.ZodTypeAny, {
1078
- statusCode: number;
1079
- message: string;
1080
1078
  code: string;
1081
- timestamp: string;
1082
1079
  path: string;
1080
+ message: string;
1081
+ statusCode: number;
1082
+ timestamp: string;
1083
1083
  details?: unknown;
1084
1084
  correlationId?: string | undefined;
1085
1085
  }, {
1086
- statusCode: number;
1087
- message: string;
1088
1086
  code: string;
1089
- timestamp: string;
1090
1087
  path: string;
1088
+ message: string;
1089
+ statusCode: number;
1090
+ timestamp: string;
1091
1091
  details?: unknown;
1092
1092
  correlationId?: string | undefined;
1093
1093
  }>;
@@ -1100,19 +1100,19 @@ export declare const leadsContractRouter: {
1100
1100
  path: z.ZodString;
1101
1101
  correlationId: z.ZodOptional<z.ZodString>;
1102
1102
  }, "strip", z.ZodTypeAny, {
1103
- statusCode: number;
1104
- message: string;
1105
1103
  code: string;
1106
- timestamp: string;
1107
1104
  path: string;
1105
+ message: string;
1106
+ statusCode: number;
1107
+ timestamp: string;
1108
1108
  details?: unknown;
1109
1109
  correlationId?: string | undefined;
1110
1110
  }, {
1111
- statusCode: number;
1112
- message: string;
1113
1111
  code: string;
1114
- timestamp: string;
1115
1112
  path: string;
1113
+ message: string;
1114
+ statusCode: number;
1115
+ timestamp: string;
1116
1116
  details?: unknown;
1117
1117
  correlationId?: string | undefined;
1118
1118
  }>;
@@ -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
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
1134
1133
  id: string;
1135
1134
  name: string;
1135
+ phoneNumber: string;
1136
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1136
1137
  createdAt: string;
1137
1138
  updatedAt: string;
1138
1139
  source: string;
1139
- phoneNumber: string;
1140
- blacklistReason?: string | null | undefined;
1141
1140
  totalCalls?: number | null | undefined;
1142
1141
  qualityScore?: number | null | undefined;
1143
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1144
1142
  conversionRate?: number | null | undefined;
1143
+ blacklistReason?: string | null | undefined;
1144
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1145
1145
  }, {
1146
- status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
1147
1146
  id: string;
1148
1147
  name: string;
1148
+ phoneNumber: string;
1149
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1149
1150
  createdAt: string | Date;
1150
1151
  updatedAt: string | Date;
1151
1152
  source: string;
1152
- phoneNumber: string;
1153
- blacklistReason?: string | null | undefined;
1154
1153
  totalCalls?: number | null | undefined;
1155
1154
  qualityScore?: number | null | undefined;
1156
- qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1157
1155
  conversionRate?: number | null | undefined;
1156
+ blacklistReason?: string | null | undefined;
1157
+ qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1158
1158
  }>;
1159
1159
  404: z.ZodObject<{
1160
1160
  statusCode: z.ZodNumber;
@@ -1165,19 +1165,19 @@ export declare const leadsContractRouter: {
1165
1165
  path: z.ZodString;
1166
1166
  correlationId: z.ZodOptional<z.ZodString>;
1167
1167
  }, "strip", z.ZodTypeAny, {
1168
- statusCode: number;
1169
- message: string;
1170
1168
  code: string;
1171
- timestamp: string;
1172
1169
  path: string;
1170
+ message: string;
1171
+ statusCode: number;
1172
+ timestamp: string;
1173
1173
  details?: unknown;
1174
1174
  correlationId?: string | undefined;
1175
1175
  }, {
1176
- statusCode: number;
1177
- message: string;
1178
1176
  code: string;
1179
- timestamp: string;
1180
1177
  path: string;
1178
+ message: string;
1179
+ statusCode: number;
1180
+ timestamp: string;
1181
1181
  details?: unknown;
1182
1182
  correlationId?: string | undefined;
1183
1183
  }>;
@@ -1190,19 +1190,19 @@ export declare const leadsContractRouter: {
1190
1190
  path: z.ZodString;
1191
1191
  correlationId: z.ZodOptional<z.ZodString>;
1192
1192
  }, "strip", z.ZodTypeAny, {
1193
- statusCode: number;
1194
- message: string;
1195
1193
  code: string;
1196
- timestamp: string;
1197
1194
  path: string;
1195
+ message: string;
1196
+ statusCode: number;
1197
+ timestamp: string;
1198
1198
  details?: unknown;
1199
1199
  correlationId?: string | undefined;
1200
1200
  }, {
1201
- statusCode: number;
1202
- message: string;
1203
1201
  code: string;
1204
- timestamp: string;
1205
1202
  path: string;
1203
+ message: string;
1204
+ statusCode: number;
1205
+ timestamp: string;
1206
1206
  details?: unknown;
1207
1207
  correlationId?: string | undefined;
1208
1208
  }>;
@@ -1236,19 +1236,19 @@ export declare const leadsContractRouter: {
1236
1236
  path: z.ZodString;
1237
1237
  correlationId: z.ZodOptional<z.ZodString>;
1238
1238
  }, "strip", z.ZodTypeAny, {
1239
- statusCode: number;
1240
- message: string;
1241
1239
  code: string;
1242
- timestamp: string;
1243
1240
  path: string;
1241
+ message: string;
1242
+ statusCode: number;
1243
+ timestamp: string;
1244
1244
  details?: unknown;
1245
1245
  correlationId?: string | undefined;
1246
1246
  }, {
1247
- statusCode: number;
1248
- message: string;
1249
1247
  code: string;
1250
- timestamp: string;
1251
1248
  path: string;
1249
+ message: string;
1250
+ statusCode: number;
1251
+ timestamp: string;
1252
1252
  details?: unknown;
1253
1253
  correlationId?: string | undefined;
1254
1254
  }>;
@@ -1261,19 +1261,19 @@ export declare const leadsContractRouter: {
1261
1261
  path: z.ZodString;
1262
1262
  correlationId: z.ZodOptional<z.ZodString>;
1263
1263
  }, "strip", z.ZodTypeAny, {
1264
- statusCode: number;
1265
- message: string;
1266
1264
  code: string;
1267
- timestamp: string;
1268
1265
  path: string;
1266
+ message: string;
1267
+ statusCode: number;
1268
+ timestamp: string;
1269
1269
  details?: unknown;
1270
1270
  correlationId?: string | undefined;
1271
1271
  }, {
1272
- statusCode: number;
1273
- message: string;
1274
1272
  code: string;
1275
- timestamp: string;
1276
1273
  path: string;
1274
+ message: string;
1275
+ statusCode: number;
1276
+ timestamp: string;
1277
1277
  details?: unknown;
1278
1278
  correlationId?: string | undefined;
1279
1279
  }>;
@@ -1286,19 +1286,19 @@ export declare const leadsContractRouter: {
1286
1286
  path: z.ZodString;
1287
1287
  correlationId: z.ZodOptional<z.ZodString>;
1288
1288
  }, "strip", z.ZodTypeAny, {
1289
- statusCode: number;
1290
- message: string;
1291
1289
  code: string;
1292
- timestamp: string;
1293
1290
  path: string;
1291
+ message: string;
1292
+ statusCode: number;
1293
+ timestamp: string;
1294
1294
  details?: unknown;
1295
1295
  correlationId?: string | undefined;
1296
1296
  }, {
1297
- statusCode: number;
1298
- message: string;
1299
1297
  code: string;
1300
- timestamp: string;
1301
1298
  path: string;
1299
+ message: string;
1300
+ statusCode: number;
1301
+ timestamp: string;
1302
1302
  details?: unknown;
1303
1303
  correlationId?: string | undefined;
1304
1304
  }>;
@@ -1311,19 +1311,19 @@ export declare const leadsContractRouter: {
1311
1311
  path: z.ZodString;
1312
1312
  correlationId: z.ZodOptional<z.ZodString>;
1313
1313
  }, "strip", z.ZodTypeAny, {
1314
- statusCode: number;
1315
- message: string;
1316
1314
  code: string;
1317
- timestamp: string;
1318
1315
  path: string;
1316
+ message: string;
1317
+ statusCode: number;
1318
+ timestamp: string;
1319
1319
  details?: unknown;
1320
1320
  correlationId?: string | undefined;
1321
1321
  }, {
1322
- statusCode: number;
1323
- message: string;
1324
1322
  code: string;
1325
- timestamp: string;
1326
1323
  path: string;
1324
+ message: string;
1325
+ statusCode: number;
1326
+ timestamp: string;
1327
1327
  details?: unknown;
1328
1328
  correlationId?: string | undefined;
1329
1329
  }>;
@@ -1337,19 +1337,19 @@ export declare const leadsContractRouter: {
1337
1337
  path: z.ZodString;
1338
1338
  correlationId: z.ZodOptional<z.ZodString>;
1339
1339
  }, "strip", z.ZodTypeAny, {
1340
- statusCode: number;
1341
- message: string;
1342
1340
  code: string;
1343
- timestamp: string;
1344
1341
  path: string;
1342
+ message: string;
1343
+ statusCode: number;
1344
+ timestamp: string;
1345
1345
  details?: unknown;
1346
1346
  correlationId?: string | undefined;
1347
1347
  }, {
1348
- statusCode: number;
1349
- message: string;
1350
1348
  code: string;
1351
- timestamp: string;
1352
1349
  path: string;
1350
+ message: string;
1351
+ statusCode: number;
1352
+ timestamp: string;
1353
1353
  details?: unknown;
1354
1354
  correlationId?: string | undefined;
1355
1355
  }>;
@@ -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
- rating: import("../call-history/call-history.contract").CallRating;
1382
1381
  callType: import("../call-history/call-history.contract").CallType;
1382
+ rating: import("../call-history/call-history.contract").CallRating;
1383
1383
  notes?: string | undefined;
1384
1384
  }, {
1385
1385
  assignmentId: string;
1386
- rating: import("../call-history/call-history.contract").CallRating;
1387
1386
  callType: import("../call-history/call-history.contract").CallType;
1387
+ rating: import("../call-history/call-history.contract").CallRating;
1388
1388
  notes?: string | undefined;
1389
1389
  }>;
1390
1390
  path: "/v2/leads/:id/call";
@@ -1398,19 +1398,19 @@ export declare const leadsContractRouter: {
1398
1398
  path: z.ZodString;
1399
1399
  correlationId: z.ZodOptional<z.ZodString>;
1400
1400
  }, "strip", z.ZodTypeAny, {
1401
- statusCode: number;
1402
- message: string;
1403
1401
  code: string;
1404
- timestamp: string;
1405
1402
  path: string;
1403
+ message: string;
1404
+ statusCode: number;
1405
+ timestamp: string;
1406
1406
  details?: unknown;
1407
1407
  correlationId?: string | undefined;
1408
1408
  }, {
1409
- statusCode: number;
1410
- message: string;
1411
1409
  code: string;
1412
- timestamp: string;
1413
1410
  path: string;
1411
+ message: string;
1412
+ statusCode: number;
1413
+ timestamp: string;
1414
1414
  details?: unknown;
1415
1415
  correlationId?: string | undefined;
1416
1416
  }>;
@@ -1423,19 +1423,19 @@ export declare const leadsContractRouter: {
1423
1423
  path: z.ZodString;
1424
1424
  correlationId: z.ZodOptional<z.ZodString>;
1425
1425
  }, "strip", z.ZodTypeAny, {
1426
- statusCode: number;
1427
- message: string;
1428
1426
  code: string;
1429
- timestamp: string;
1430
1427
  path: string;
1428
+ message: string;
1429
+ statusCode: number;
1430
+ timestamp: string;
1431
1431
  details?: unknown;
1432
1432
  correlationId?: string | undefined;
1433
1433
  }, {
1434
- statusCode: number;
1435
- message: string;
1436
1434
  code: string;
1437
- timestamp: string;
1438
1435
  path: string;
1436
+ message: string;
1437
+ statusCode: number;
1438
+ timestamp: string;
1439
1439
  details?: unknown;
1440
1440
  correlationId?: string | undefined;
1441
1441
  }>;
@@ -1448,19 +1448,19 @@ export declare const leadsContractRouter: {
1448
1448
  path: z.ZodString;
1449
1449
  correlationId: z.ZodOptional<z.ZodString>;
1450
1450
  }, "strip", z.ZodTypeAny, {
1451
- statusCode: number;
1452
- message: string;
1453
1451
  code: string;
1454
- timestamp: string;
1455
1452
  path: string;
1453
+ message: string;
1454
+ statusCode: number;
1455
+ timestamp: string;
1456
1456
  details?: unknown;
1457
1457
  correlationId?: string | undefined;
1458
1458
  }, {
1459
- statusCode: number;
1460
- message: string;
1461
1459
  code: string;
1462
- timestamp: string;
1463
1460
  path: string;
1461
+ message: string;
1462
+ statusCode: number;
1463
+ timestamp: string;
1464
1464
  details?: unknown;
1465
1465
  correlationId?: string | undefined;
1466
1466
  }>;
@@ -1473,19 +1473,19 @@ export declare const leadsContractRouter: {
1473
1473
  path: z.ZodString;
1474
1474
  correlationId: z.ZodOptional<z.ZodString>;
1475
1475
  }, "strip", z.ZodTypeAny, {
1476
- statusCode: number;
1477
- message: string;
1478
1476
  code: string;
1479
- timestamp: string;
1480
1477
  path: string;
1478
+ message: string;
1479
+ statusCode: number;
1480
+ timestamp: string;
1481
1481
  details?: unknown;
1482
1482
  correlationId?: string | undefined;
1483
1483
  }, {
1484
- statusCode: number;
1485
- message: string;
1486
1484
  code: string;
1487
- timestamp: string;
1488
1485
  path: string;
1486
+ message: string;
1487
+ statusCode: number;
1488
+ timestamp: string;
1489
1489
  details?: unknown;
1490
1490
  correlationId?: string | undefined;
1491
1491
  }>;
@@ -1503,26 +1503,26 @@ export declare const leadsContractRouter: {
1503
1503
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1504
1504
  }, "strip", z.ZodTypeAny, {
1505
1505
  id: string;
1506
- createdAt: string;
1507
- updatedAt: string;
1508
- agentId: string;
1509
1506
  assignmentId: string;
1510
- rating: import("../call-history/call-history.contract").CallRating;
1511
- callType: import("../call-history/call-history.contract").CallType;
1512
1507
  leadId: string;
1508
+ agentId: string;
1509
+ createdAt: string;
1510
+ updatedAt: string;
1513
1511
  callDate: string;
1512
+ callType: import("../call-history/call-history.contract").CallType;
1513
+ rating: import("../call-history/call-history.contract").CallRating;
1514
1514
  ratingWeight: number;
1515
1515
  notes?: string | null | undefined;
1516
1516
  }, {
1517
1517
  id: string;
1518
- createdAt: string | Date;
1519
- updatedAt: string | Date;
1520
- agentId: string;
1521
1518
  assignmentId: string;
1522
- rating: import("../call-history/call-history.contract").CallRating;
1523
- callType: import("../call-history/call-history.contract").CallType;
1524
1519
  leadId: string;
1520
+ agentId: string;
1521
+ createdAt: string | Date;
1522
+ updatedAt: string | Date;
1525
1523
  callDate: string | Date;
1524
+ callType: import("../call-history/call-history.contract").CallType;
1525
+ rating: import("../call-history/call-history.contract").CallRating;
1526
1526
  ratingWeight: number;
1527
1527
  notes?: string | null | undefined;
1528
1528
  }>;
@@ -1549,19 +1549,19 @@ export declare const leadsContractRouter: {
1549
1549
  path: z.ZodString;
1550
1550
  correlationId: z.ZodOptional<z.ZodString>;
1551
1551
  }, "strip", z.ZodTypeAny, {
1552
- statusCode: number;
1553
- message: string;
1554
1552
  code: string;
1555
- timestamp: string;
1556
1553
  path: string;
1554
+ message: string;
1555
+ statusCode: number;
1556
+ timestamp: string;
1557
1557
  details?: unknown;
1558
1558
  correlationId?: string | undefined;
1559
1559
  }, {
1560
- statusCode: number;
1561
- message: string;
1562
1560
  code: string;
1563
- timestamp: string;
1564
1561
  path: string;
1562
+ message: string;
1563
+ statusCode: number;
1564
+ timestamp: string;
1565
1565
  details?: unknown;
1566
1566
  correlationId?: string | undefined;
1567
1567
  }>;
@@ -1574,19 +1574,19 @@ export declare const leadsContractRouter: {
1574
1574
  path: z.ZodString;
1575
1575
  correlationId: z.ZodOptional<z.ZodString>;
1576
1576
  }, "strip", z.ZodTypeAny, {
1577
- statusCode: number;
1578
- message: string;
1579
1577
  code: string;
1580
- timestamp: string;
1581
1578
  path: string;
1579
+ message: string;
1580
+ statusCode: number;
1581
+ timestamp: string;
1582
1582
  details?: unknown;
1583
1583
  correlationId?: string | undefined;
1584
1584
  }, {
1585
- statusCode: number;
1586
- message: string;
1587
1585
  code: string;
1588
- timestamp: string;
1589
1586
  path: string;
1587
+ message: string;
1588
+ statusCode: number;
1589
+ timestamp: string;
1590
1590
  details?: unknown;
1591
1591
  correlationId?: string | undefined;
1592
1592
  }>;
@@ -1599,19 +1599,19 @@ export declare const leadsContractRouter: {
1599
1599
  path: z.ZodString;
1600
1600
  correlationId: z.ZodOptional<z.ZodString>;
1601
1601
  }, "strip", z.ZodTypeAny, {
1602
- statusCode: number;
1603
- message: string;
1604
1602
  code: string;
1605
- timestamp: string;
1606
1603
  path: string;
1604
+ message: string;
1605
+ statusCode: number;
1606
+ timestamp: string;
1607
1607
  details?: unknown;
1608
1608
  correlationId?: string | undefined;
1609
1609
  }, {
1610
- statusCode: number;
1611
- message: string;
1612
1610
  code: string;
1613
- timestamp: string;
1614
1611
  path: string;
1612
+ message: string;
1613
+ statusCode: number;
1614
+ timestamp: string;
1615
1615
  details?: unknown;
1616
1616
  correlationId?: string | undefined;
1617
1617
  }>;
@@ -1624,19 +1624,19 @@ export declare const leadsContractRouter: {
1624
1624
  path: z.ZodString;
1625
1625
  correlationId: z.ZodOptional<z.ZodString>;
1626
1626
  }, "strip", z.ZodTypeAny, {
1627
- statusCode: number;
1628
- message: string;
1629
1627
  code: string;
1630
- timestamp: string;
1631
1628
  path: string;
1629
+ message: string;
1630
+ statusCode: number;
1631
+ timestamp: string;
1632
1632
  details?: unknown;
1633
1633
  correlationId?: string | undefined;
1634
1634
  }, {
1635
- statusCode: number;
1636
- message: string;
1637
1635
  code: string;
1638
- timestamp: string;
1639
1636
  path: string;
1637
+ message: string;
1638
+ statusCode: number;
1639
+ timestamp: string;
1640
1640
  details?: unknown;
1641
1641
  correlationId?: string | undefined;
1642
1642
  }>;