@dakkitor/api-contracts 1.1.98 → 1.1.100
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.
- package/dist/abilities/abilities.contract.d.ts +1 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.d.ts +1871 -1871
- package/dist/actives/actives.contract.js +1 -1
- package/dist/bookings/bookings.contract.d.ts +22540 -10476
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +24 -3
- package/dist/dashboards/dashboard-widgets.contract.d.ts +223 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +40 -1
- package/dist/leads/leads.contract.d.ts +168 -116
- package/dist/leads/leads.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.js +26 -3
- package/dist/workers/workers.contract.d.ts +72 -0
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +2 -0
- package/package.json +1 -1
|
@@ -31,41 +31,41 @@ 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
|
-
id: string;
|
|
35
34
|
name: string;
|
|
36
35
|
phoneNumber: string;
|
|
37
36
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
37
|
+
source: string;
|
|
38
38
|
createdAt: string;
|
|
39
39
|
updatedAt: string;
|
|
40
|
-
|
|
41
|
-
totalCalls?: number | null | undefined;
|
|
40
|
+
id: string;
|
|
42
41
|
qualityScore?: number | null | undefined;
|
|
43
42
|
conversionRate?: number | null | undefined;
|
|
43
|
+
totalCalls?: number | null | undefined;
|
|
44
44
|
blacklistReason?: string | null | undefined;
|
|
45
45
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
46
46
|
}, {
|
|
47
|
-
id: string;
|
|
48
47
|
name: string;
|
|
49
48
|
phoneNumber: string;
|
|
50
49
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
50
|
+
source: string;
|
|
51
51
|
createdAt: string | Date;
|
|
52
52
|
updatedAt: string | Date;
|
|
53
|
-
|
|
54
|
-
totalCalls?: number | null | undefined;
|
|
53
|
+
id: string;
|
|
55
54
|
qualityScore?: number | null | undefined;
|
|
56
55
|
conversionRate?: number | null | undefined;
|
|
56
|
+
totalCalls?: number | null | undefined;
|
|
57
57
|
blacklistReason?: string | null | undefined;
|
|
58
58
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
/**
|
|
61
61
|
* Create Lead Schema
|
|
62
62
|
*/
|
|
63
|
-
export declare const CreateLeadSchema: z.ZodObject<{
|
|
63
|
+
export declare const CreateLeadSchema: z.ZodEffects<z.ZodObject<{
|
|
64
64
|
name: z.ZodString;
|
|
65
65
|
phoneNumber: z.ZodString;
|
|
66
66
|
status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>>;
|
|
67
67
|
isBlacklisted: z.ZodDefault<z.ZodBoolean>;
|
|
68
|
-
blacklistReason: z.ZodOptional<z.ZodString
|
|
68
|
+
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
69
69
|
source: z.ZodString;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
71
|
name: string;
|
|
@@ -73,36 +73,62 @@ export declare const CreateLeadSchema: z.ZodObject<{
|
|
|
73
73
|
source: string;
|
|
74
74
|
isBlacklisted: boolean;
|
|
75
75
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
76
|
-
blacklistReason?: string | undefined;
|
|
76
|
+
blacklistReason?: string | null | undefined;
|
|
77
77
|
}, {
|
|
78
78
|
name: string;
|
|
79
79
|
phoneNumber: string;
|
|
80
80
|
source: string;
|
|
81
81
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
82
|
-
blacklistReason?: string | undefined;
|
|
82
|
+
blacklistReason?: string | null | undefined;
|
|
83
|
+
isBlacklisted?: boolean | undefined;
|
|
84
|
+
}>, {
|
|
85
|
+
name: string;
|
|
86
|
+
phoneNumber: string;
|
|
87
|
+
source: string;
|
|
88
|
+
isBlacklisted: boolean;
|
|
89
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
90
|
+
blacklistReason?: string | null | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
name: string;
|
|
93
|
+
phoneNumber: string;
|
|
94
|
+
source: string;
|
|
95
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
96
|
+
blacklistReason?: string | null | undefined;
|
|
83
97
|
isBlacklisted?: boolean | undefined;
|
|
84
98
|
}>;
|
|
85
99
|
/**
|
|
86
100
|
* Update Lead Schema
|
|
87
101
|
*/
|
|
88
|
-
export declare const UpdateLeadSchema: z.ZodObject<{
|
|
102
|
+
export declare const UpdateLeadSchema: z.ZodEffects<z.ZodObject<{
|
|
89
103
|
name: z.ZodOptional<z.ZodString>;
|
|
90
104
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
91
105
|
status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>>;
|
|
92
|
-
blacklistReason: z.ZodOptional<z.ZodString
|
|
106
|
+
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
93
107
|
source: z.ZodOptional<z.ZodString>;
|
|
94
108
|
}, "strip", z.ZodTypeAny, {
|
|
95
109
|
name?: string | undefined;
|
|
96
110
|
phoneNumber?: string | undefined;
|
|
97
111
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
98
112
|
source?: string | undefined;
|
|
99
|
-
blacklistReason?: string | undefined;
|
|
113
|
+
blacklistReason?: string | null | undefined;
|
|
100
114
|
}, {
|
|
101
115
|
name?: string | undefined;
|
|
102
116
|
phoneNumber?: string | undefined;
|
|
103
117
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
104
118
|
source?: string | undefined;
|
|
105
|
-
blacklistReason?: string | undefined;
|
|
119
|
+
blacklistReason?: string | null | undefined;
|
|
120
|
+
}>, {
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
phoneNumber?: string | undefined;
|
|
123
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
124
|
+
source?: string | undefined;
|
|
125
|
+
blacklistReason?: string | null | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
name?: string | undefined;
|
|
128
|
+
phoneNumber?: string | undefined;
|
|
129
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
130
|
+
source?: string | undefined;
|
|
131
|
+
blacklistReason?: string | null | undefined;
|
|
106
132
|
}>;
|
|
107
133
|
/**
|
|
108
134
|
* Filter Lead Schema
|
|
@@ -128,28 +154,28 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
128
154
|
name?: string | null | undefined;
|
|
129
155
|
phoneNumber?: string | null | undefined;
|
|
130
156
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
131
|
-
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
132
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
133
157
|
source?: string | null | undefined;
|
|
134
158
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
135
159
|
minQualityScore?: number | null | undefined;
|
|
136
160
|
maxQualityScore?: number | null | undefined;
|
|
137
161
|
minConversionRate?: number | null | undefined;
|
|
138
162
|
minTotalCalls?: number | null | undefined;
|
|
163
|
+
sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
164
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
139
165
|
}, {
|
|
140
166
|
name?: string | null | undefined;
|
|
141
167
|
phoneNumber?: string | null | undefined;
|
|
142
168
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
143
|
-
limit?: number | undefined;
|
|
144
|
-
page?: number | undefined;
|
|
145
|
-
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
146
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
147
169
|
source?: string | null | undefined;
|
|
148
170
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
171
|
+
limit?: number | undefined;
|
|
172
|
+
page?: number | undefined;
|
|
149
173
|
minQualityScore?: number | null | undefined;
|
|
150
174
|
maxQualityScore?: number | null | undefined;
|
|
151
175
|
minConversionRate?: number | null | undefined;
|
|
152
176
|
minTotalCalls?: number | null | undefined;
|
|
177
|
+
sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
178
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
153
179
|
}>;
|
|
154
180
|
/**
|
|
155
181
|
* Call History Response Schema for leads
|
|
@@ -167,24 +193,24 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
167
193
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
168
194
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
169
195
|
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
createdAt: string;
|
|
197
|
+
updatedAt: string;
|
|
170
198
|
id: string;
|
|
171
199
|
assignmentId: string;
|
|
172
200
|
leadId: string;
|
|
173
201
|
agentId: string;
|
|
174
|
-
createdAt: string;
|
|
175
|
-
updatedAt: string;
|
|
176
202
|
callDate: string;
|
|
177
203
|
callType: import("../call-history/call-history.contract").CallType;
|
|
178
204
|
rating: import("../common/call-rating.schema").CallRating;
|
|
179
205
|
ratingWeight: number;
|
|
180
206
|
notes?: string | null | undefined;
|
|
181
207
|
}, {
|
|
208
|
+
createdAt: string | Date;
|
|
209
|
+
updatedAt: string | Date;
|
|
182
210
|
id: string;
|
|
183
211
|
assignmentId: string;
|
|
184
212
|
leadId: string;
|
|
185
213
|
agentId: string;
|
|
186
|
-
createdAt: string | Date;
|
|
187
|
-
updatedAt: string | Date;
|
|
188
214
|
callDate: string | Date;
|
|
189
215
|
callType: import("../call-history/call-history.contract").CallType;
|
|
190
216
|
rating: import("../common/call-rating.schema").CallRating;
|
|
@@ -269,29 +295,29 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
269
295
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
270
296
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
271
297
|
}, "strip", z.ZodTypeAny, {
|
|
272
|
-
id: string;
|
|
273
298
|
name: string;
|
|
274
299
|
phoneNumber: string;
|
|
275
300
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
301
|
+
source: string;
|
|
276
302
|
createdAt: string;
|
|
277
303
|
updatedAt: string;
|
|
278
|
-
|
|
279
|
-
totalCalls?: number | null | undefined;
|
|
304
|
+
id: string;
|
|
280
305
|
qualityScore?: number | null | undefined;
|
|
281
306
|
conversionRate?: number | null | undefined;
|
|
307
|
+
totalCalls?: number | null | undefined;
|
|
282
308
|
blacklistReason?: string | null | undefined;
|
|
283
309
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
284
310
|
}, {
|
|
285
|
-
id: string;
|
|
286
311
|
name: string;
|
|
287
312
|
phoneNumber: string;
|
|
288
313
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
314
|
+
source: string;
|
|
289
315
|
createdAt: string | Date;
|
|
290
316
|
updatedAt: string | Date;
|
|
291
|
-
|
|
292
|
-
totalCalls?: number | null | undefined;
|
|
317
|
+
id: string;
|
|
293
318
|
qualityScore?: number | null | undefined;
|
|
294
319
|
conversionRate?: number | null | undefined;
|
|
320
|
+
totalCalls?: number | null | undefined;
|
|
295
321
|
blacklistReason?: string | null | undefined;
|
|
296
322
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
297
323
|
}>, "many">;
|
|
@@ -301,42 +327,42 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
301
327
|
currentPage: z.ZodNumber;
|
|
302
328
|
totalPages: z.ZodNumber;
|
|
303
329
|
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
limit: number;
|
|
304
331
|
items: {
|
|
305
|
-
id: string;
|
|
306
332
|
name: string;
|
|
307
333
|
phoneNumber: string;
|
|
308
334
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
335
|
+
source: string;
|
|
309
336
|
createdAt: string;
|
|
310
337
|
updatedAt: string;
|
|
311
|
-
|
|
312
|
-
totalCalls?: number | null | undefined;
|
|
338
|
+
id: string;
|
|
313
339
|
qualityScore?: number | null | undefined;
|
|
314
340
|
conversionRate?: number | null | undefined;
|
|
341
|
+
totalCalls?: number | null | undefined;
|
|
315
342
|
blacklistReason?: string | null | undefined;
|
|
316
343
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
317
344
|
}[];
|
|
318
345
|
totalCount: number;
|
|
319
|
-
limit: number;
|
|
320
346
|
skip: number;
|
|
321
347
|
currentPage: number;
|
|
322
348
|
totalPages: number;
|
|
323
349
|
}, {
|
|
350
|
+
limit: number;
|
|
324
351
|
items: {
|
|
325
|
-
id: string;
|
|
326
352
|
name: string;
|
|
327
353
|
phoneNumber: string;
|
|
328
354
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
355
|
+
source: string;
|
|
329
356
|
createdAt: string | Date;
|
|
330
357
|
updatedAt: string | Date;
|
|
331
|
-
|
|
332
|
-
totalCalls?: number | null | undefined;
|
|
358
|
+
id: string;
|
|
333
359
|
qualityScore?: number | null | undefined;
|
|
334
360
|
conversionRate?: number | null | undefined;
|
|
361
|
+
totalCalls?: number | null | undefined;
|
|
335
362
|
blacklistReason?: string | null | undefined;
|
|
336
363
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
337
364
|
}[];
|
|
338
365
|
totalCount: number;
|
|
339
|
-
limit: number;
|
|
340
366
|
skip: number;
|
|
341
367
|
currentPage: number;
|
|
342
368
|
totalPages: number;
|
|
@@ -359,12 +385,12 @@ export declare const leadsContractRouter: {
|
|
|
359
385
|
};
|
|
360
386
|
summary: "Create a new lead";
|
|
361
387
|
method: "POST";
|
|
362
|
-
body: z.ZodObject<{
|
|
388
|
+
body: z.ZodEffects<z.ZodObject<{
|
|
363
389
|
name: z.ZodString;
|
|
364
390
|
phoneNumber: z.ZodString;
|
|
365
391
|
status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>>;
|
|
366
392
|
isBlacklisted: z.ZodDefault<z.ZodBoolean>;
|
|
367
|
-
blacklistReason: z.ZodOptional<z.ZodString
|
|
393
|
+
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
368
394
|
source: z.ZodString;
|
|
369
395
|
}, "strip", z.ZodTypeAny, {
|
|
370
396
|
name: string;
|
|
@@ -372,18 +398,32 @@ export declare const leadsContractRouter: {
|
|
|
372
398
|
source: string;
|
|
373
399
|
isBlacklisted: boolean;
|
|
374
400
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
375
|
-
blacklistReason?: string | undefined;
|
|
401
|
+
blacklistReason?: string | null | undefined;
|
|
376
402
|
}, {
|
|
377
403
|
name: string;
|
|
378
404
|
phoneNumber: string;
|
|
379
405
|
source: string;
|
|
380
406
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
381
|
-
blacklistReason?: string | undefined;
|
|
407
|
+
blacklistReason?: string | null | undefined;
|
|
408
|
+
isBlacklisted?: boolean | undefined;
|
|
409
|
+
}>, {
|
|
410
|
+
name: string;
|
|
411
|
+
phoneNumber: string;
|
|
412
|
+
source: string;
|
|
413
|
+
isBlacklisted: boolean;
|
|
414
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
415
|
+
blacklistReason?: string | null | undefined;
|
|
416
|
+
}, {
|
|
417
|
+
name: string;
|
|
418
|
+
phoneNumber: string;
|
|
419
|
+
source: string;
|
|
420
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
421
|
+
blacklistReason?: string | null | undefined;
|
|
382
422
|
isBlacklisted?: boolean | undefined;
|
|
383
423
|
}>;
|
|
384
424
|
path: "/v2/leads";
|
|
385
425
|
responses: {
|
|
386
|
-
|
|
426
|
+
500: z.ZodObject<{
|
|
387
427
|
statusCode: z.ZodNumber;
|
|
388
428
|
message: z.ZodString;
|
|
389
429
|
code: z.ZodString;
|
|
@@ -408,7 +448,7 @@ export declare const leadsContractRouter: {
|
|
|
408
448
|
details?: unknown;
|
|
409
449
|
correlationId?: string | undefined;
|
|
410
450
|
}>;
|
|
411
|
-
|
|
451
|
+
400: z.ZodObject<{
|
|
412
452
|
statusCode: z.ZodNumber;
|
|
413
453
|
message: z.ZodString;
|
|
414
454
|
code: z.ZodString;
|
|
@@ -433,7 +473,7 @@ export declare const leadsContractRouter: {
|
|
|
433
473
|
details?: unknown;
|
|
434
474
|
correlationId?: string | undefined;
|
|
435
475
|
}>;
|
|
436
|
-
|
|
476
|
+
401: z.ZodObject<{
|
|
437
477
|
statusCode: z.ZodNumber;
|
|
438
478
|
message: z.ZodString;
|
|
439
479
|
code: z.ZodString;
|
|
@@ -458,7 +498,7 @@ export declare const leadsContractRouter: {
|
|
|
458
498
|
details?: unknown;
|
|
459
499
|
correlationId?: string | undefined;
|
|
460
500
|
}>;
|
|
461
|
-
|
|
501
|
+
403: z.ZodObject<{
|
|
462
502
|
statusCode: z.ZodNumber;
|
|
463
503
|
message: z.ZodString;
|
|
464
504
|
code: z.ZodString;
|
|
@@ -497,29 +537,29 @@ export declare const leadsContractRouter: {
|
|
|
497
537
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
498
538
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
499
539
|
}, "strip", z.ZodTypeAny, {
|
|
500
|
-
id: string;
|
|
501
540
|
name: string;
|
|
502
541
|
phoneNumber: string;
|
|
503
542
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
543
|
+
source: string;
|
|
504
544
|
createdAt: string;
|
|
505
545
|
updatedAt: string;
|
|
506
|
-
|
|
507
|
-
totalCalls?: number | null | undefined;
|
|
546
|
+
id: string;
|
|
508
547
|
qualityScore?: number | null | undefined;
|
|
509
548
|
conversionRate?: number | null | undefined;
|
|
549
|
+
totalCalls?: number | null | undefined;
|
|
510
550
|
blacklistReason?: string | null | undefined;
|
|
511
551
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
512
552
|
}, {
|
|
513
|
-
id: string;
|
|
514
553
|
name: string;
|
|
515
554
|
phoneNumber: string;
|
|
516
555
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
556
|
+
source: string;
|
|
517
557
|
createdAt: string | Date;
|
|
518
558
|
updatedAt: string | Date;
|
|
519
|
-
|
|
520
|
-
totalCalls?: number | null | undefined;
|
|
559
|
+
id: string;
|
|
521
560
|
qualityScore?: number | null | undefined;
|
|
522
561
|
conversionRate?: number | null | undefined;
|
|
562
|
+
totalCalls?: number | null | undefined;
|
|
523
563
|
blacklistReason?: string | null | undefined;
|
|
524
564
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
525
565
|
}>;
|
|
@@ -578,34 +618,34 @@ export declare const leadsContractRouter: {
|
|
|
578
618
|
name?: string | null | undefined;
|
|
579
619
|
phoneNumber?: string | null | undefined;
|
|
580
620
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
581
|
-
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
582
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
583
621
|
source?: string | null | undefined;
|
|
584
622
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
585
623
|
minQualityScore?: number | null | undefined;
|
|
586
624
|
maxQualityScore?: number | null | undefined;
|
|
587
625
|
minConversionRate?: number | null | undefined;
|
|
588
626
|
minTotalCalls?: number | null | undefined;
|
|
627
|
+
sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
628
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
589
629
|
}, {
|
|
590
630
|
name?: string | null | undefined;
|
|
591
631
|
phoneNumber?: string | null | undefined;
|
|
592
632
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
593
|
-
limit?: number | undefined;
|
|
594
|
-
page?: number | undefined;
|
|
595
|
-
sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
|
|
596
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
597
633
|
source?: string | null | undefined;
|
|
598
634
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
635
|
+
limit?: number | undefined;
|
|
636
|
+
page?: number | undefined;
|
|
599
637
|
minQualityScore?: number | null | undefined;
|
|
600
638
|
maxQualityScore?: number | null | undefined;
|
|
601
639
|
minConversionRate?: number | null | undefined;
|
|
602
640
|
minTotalCalls?: number | null | undefined;
|
|
641
|
+
sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
642
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
603
643
|
}>;
|
|
604
644
|
summary: "Get all leads";
|
|
605
645
|
method: "GET";
|
|
606
646
|
path: "/v2/leads";
|
|
607
647
|
responses: {
|
|
608
|
-
|
|
648
|
+
500: z.ZodObject<{
|
|
609
649
|
statusCode: z.ZodNumber;
|
|
610
650
|
message: z.ZodString;
|
|
611
651
|
code: z.ZodString;
|
|
@@ -630,7 +670,7 @@ export declare const leadsContractRouter: {
|
|
|
630
670
|
details?: unknown;
|
|
631
671
|
correlationId?: string | undefined;
|
|
632
672
|
}>;
|
|
633
|
-
|
|
673
|
+
400: z.ZodObject<{
|
|
634
674
|
statusCode: z.ZodNumber;
|
|
635
675
|
message: z.ZodString;
|
|
636
676
|
code: z.ZodString;
|
|
@@ -655,7 +695,7 @@ export declare const leadsContractRouter: {
|
|
|
655
695
|
details?: unknown;
|
|
656
696
|
correlationId?: string | undefined;
|
|
657
697
|
}>;
|
|
658
|
-
|
|
698
|
+
401: z.ZodObject<{
|
|
659
699
|
statusCode: z.ZodNumber;
|
|
660
700
|
message: z.ZodString;
|
|
661
701
|
code: z.ZodString;
|
|
@@ -680,7 +720,7 @@ export declare const leadsContractRouter: {
|
|
|
680
720
|
details?: unknown;
|
|
681
721
|
correlationId?: string | undefined;
|
|
682
722
|
}>;
|
|
683
|
-
|
|
723
|
+
403: z.ZodObject<{
|
|
684
724
|
statusCode: z.ZodNumber;
|
|
685
725
|
message: z.ZodString;
|
|
686
726
|
code: z.ZodString;
|
|
@@ -720,29 +760,29 @@ export declare const leadsContractRouter: {
|
|
|
720
760
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
721
761
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
722
762
|
}, "strip", z.ZodTypeAny, {
|
|
723
|
-
id: string;
|
|
724
763
|
name: string;
|
|
725
764
|
phoneNumber: string;
|
|
726
765
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
766
|
+
source: string;
|
|
727
767
|
createdAt: string;
|
|
728
768
|
updatedAt: string;
|
|
729
|
-
|
|
730
|
-
totalCalls?: number | null | undefined;
|
|
769
|
+
id: string;
|
|
731
770
|
qualityScore?: number | null | undefined;
|
|
732
771
|
conversionRate?: number | null | undefined;
|
|
772
|
+
totalCalls?: number | null | undefined;
|
|
733
773
|
blacklistReason?: string | null | undefined;
|
|
734
774
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
735
775
|
}, {
|
|
736
|
-
id: string;
|
|
737
776
|
name: string;
|
|
738
777
|
phoneNumber: string;
|
|
739
778
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
779
|
+
source: string;
|
|
740
780
|
createdAt: string | Date;
|
|
741
781
|
updatedAt: string | Date;
|
|
742
|
-
|
|
743
|
-
totalCalls?: number | null | undefined;
|
|
782
|
+
id: string;
|
|
744
783
|
qualityScore?: number | null | undefined;
|
|
745
784
|
conversionRate?: number | null | undefined;
|
|
785
|
+
totalCalls?: number | null | undefined;
|
|
746
786
|
blacklistReason?: string | null | undefined;
|
|
747
787
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
748
788
|
}>, "many">;
|
|
@@ -752,42 +792,42 @@ export declare const leadsContractRouter: {
|
|
|
752
792
|
currentPage: z.ZodNumber;
|
|
753
793
|
totalPages: z.ZodNumber;
|
|
754
794
|
}, "strip", z.ZodTypeAny, {
|
|
795
|
+
limit: number;
|
|
755
796
|
items: {
|
|
756
|
-
id: string;
|
|
757
797
|
name: string;
|
|
758
798
|
phoneNumber: string;
|
|
759
799
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
800
|
+
source: string;
|
|
760
801
|
createdAt: string;
|
|
761
802
|
updatedAt: string;
|
|
762
|
-
|
|
763
|
-
totalCalls?: number | null | undefined;
|
|
803
|
+
id: string;
|
|
764
804
|
qualityScore?: number | null | undefined;
|
|
765
805
|
conversionRate?: number | null | undefined;
|
|
806
|
+
totalCalls?: number | null | undefined;
|
|
766
807
|
blacklistReason?: string | null | undefined;
|
|
767
808
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
768
809
|
}[];
|
|
769
810
|
totalCount: number;
|
|
770
|
-
limit: number;
|
|
771
811
|
skip: number;
|
|
772
812
|
currentPage: number;
|
|
773
813
|
totalPages: number;
|
|
774
814
|
}, {
|
|
815
|
+
limit: number;
|
|
775
816
|
items: {
|
|
776
|
-
id: string;
|
|
777
817
|
name: string;
|
|
778
818
|
phoneNumber: string;
|
|
779
819
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
820
|
+
source: string;
|
|
780
821
|
createdAt: string | Date;
|
|
781
822
|
updatedAt: string | Date;
|
|
782
|
-
|
|
783
|
-
totalCalls?: number | null | undefined;
|
|
823
|
+
id: string;
|
|
784
824
|
qualityScore?: number | null | undefined;
|
|
785
825
|
conversionRate?: number | null | undefined;
|
|
826
|
+
totalCalls?: number | null | undefined;
|
|
786
827
|
blacklistReason?: string | null | undefined;
|
|
787
828
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
788
829
|
}[];
|
|
789
830
|
totalCount: number;
|
|
790
|
-
limit: number;
|
|
791
831
|
skip: number;
|
|
792
832
|
currentPage: number;
|
|
793
833
|
totalPages: number;
|
|
@@ -812,7 +852,7 @@ export declare const leadsContractRouter: {
|
|
|
812
852
|
method: "GET";
|
|
813
853
|
path: "/v2/leads/:id";
|
|
814
854
|
responses: {
|
|
815
|
-
|
|
855
|
+
500: z.ZodObject<{
|
|
816
856
|
statusCode: z.ZodNumber;
|
|
817
857
|
message: z.ZodString;
|
|
818
858
|
code: z.ZodString;
|
|
@@ -837,7 +877,7 @@ export declare const leadsContractRouter: {
|
|
|
837
877
|
details?: unknown;
|
|
838
878
|
correlationId?: string | undefined;
|
|
839
879
|
}>;
|
|
840
|
-
|
|
880
|
+
400: z.ZodObject<{
|
|
841
881
|
statusCode: z.ZodNumber;
|
|
842
882
|
message: z.ZodString;
|
|
843
883
|
code: z.ZodString;
|
|
@@ -862,7 +902,7 @@ export declare const leadsContractRouter: {
|
|
|
862
902
|
details?: unknown;
|
|
863
903
|
correlationId?: string | undefined;
|
|
864
904
|
}>;
|
|
865
|
-
|
|
905
|
+
401: z.ZodObject<{
|
|
866
906
|
statusCode: z.ZodNumber;
|
|
867
907
|
message: z.ZodString;
|
|
868
908
|
code: z.ZodString;
|
|
@@ -887,7 +927,7 @@ export declare const leadsContractRouter: {
|
|
|
887
927
|
details?: unknown;
|
|
888
928
|
correlationId?: string | undefined;
|
|
889
929
|
}>;
|
|
890
|
-
|
|
930
|
+
403: z.ZodObject<{
|
|
891
931
|
statusCode: z.ZodNumber;
|
|
892
932
|
message: z.ZodString;
|
|
893
933
|
code: z.ZodString;
|
|
@@ -926,29 +966,29 @@ export declare const leadsContractRouter: {
|
|
|
926
966
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
927
967
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
928
968
|
}, "strip", z.ZodTypeAny, {
|
|
929
|
-
id: string;
|
|
930
969
|
name: string;
|
|
931
970
|
phoneNumber: string;
|
|
932
971
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
972
|
+
source: string;
|
|
933
973
|
createdAt: string;
|
|
934
974
|
updatedAt: string;
|
|
935
|
-
|
|
936
|
-
totalCalls?: number | null | undefined;
|
|
975
|
+
id: string;
|
|
937
976
|
qualityScore?: number | null | undefined;
|
|
938
977
|
conversionRate?: number | null | undefined;
|
|
978
|
+
totalCalls?: number | null | undefined;
|
|
939
979
|
blacklistReason?: string | null | undefined;
|
|
940
980
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
941
981
|
}, {
|
|
942
|
-
id: string;
|
|
943
982
|
name: string;
|
|
944
983
|
phoneNumber: string;
|
|
945
984
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
985
|
+
source: string;
|
|
946
986
|
createdAt: string | Date;
|
|
947
987
|
updatedAt: string | Date;
|
|
948
|
-
|
|
949
|
-
totalCalls?: number | null | undefined;
|
|
988
|
+
id: string;
|
|
950
989
|
qualityScore?: number | null | undefined;
|
|
951
990
|
conversionRate?: number | null | undefined;
|
|
991
|
+
totalCalls?: number | null | undefined;
|
|
952
992
|
blacklistReason?: string | null | undefined;
|
|
953
993
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
954
994
|
}>;
|
|
@@ -995,28 +1035,40 @@ export declare const leadsContractRouter: {
|
|
|
995
1035
|
}>;
|
|
996
1036
|
summary: "Update a lead";
|
|
997
1037
|
method: "PATCH";
|
|
998
|
-
body: z.ZodObject<{
|
|
1038
|
+
body: z.ZodEffects<z.ZodObject<{
|
|
999
1039
|
name: z.ZodOptional<z.ZodString>;
|
|
1000
1040
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1001
1041
|
status: z.ZodOptional<z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED"]>>;
|
|
1002
|
-
blacklistReason: z.ZodOptional<z.ZodString
|
|
1042
|
+
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1003
1043
|
source: z.ZodOptional<z.ZodString>;
|
|
1004
1044
|
}, "strip", z.ZodTypeAny, {
|
|
1005
1045
|
name?: string | undefined;
|
|
1006
1046
|
phoneNumber?: string | undefined;
|
|
1007
1047
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1008
1048
|
source?: string | undefined;
|
|
1009
|
-
blacklistReason?: string | undefined;
|
|
1049
|
+
blacklistReason?: string | null | undefined;
|
|
1010
1050
|
}, {
|
|
1011
1051
|
name?: string | undefined;
|
|
1012
1052
|
phoneNumber?: string | undefined;
|
|
1013
1053
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1014
1054
|
source?: string | undefined;
|
|
1015
|
-
blacklistReason?: string | undefined;
|
|
1055
|
+
blacklistReason?: string | null | undefined;
|
|
1056
|
+
}>, {
|
|
1057
|
+
name?: string | undefined;
|
|
1058
|
+
phoneNumber?: string | undefined;
|
|
1059
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1060
|
+
source?: string | undefined;
|
|
1061
|
+
blacklistReason?: string | null | undefined;
|
|
1062
|
+
}, {
|
|
1063
|
+
name?: string | undefined;
|
|
1064
|
+
phoneNumber?: string | undefined;
|
|
1065
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1066
|
+
source?: string | undefined;
|
|
1067
|
+
blacklistReason?: string | null | undefined;
|
|
1016
1068
|
}>;
|
|
1017
1069
|
path: "/v2/leads/:id";
|
|
1018
1070
|
responses: {
|
|
1019
|
-
|
|
1071
|
+
500: z.ZodObject<{
|
|
1020
1072
|
statusCode: z.ZodNumber;
|
|
1021
1073
|
message: z.ZodString;
|
|
1022
1074
|
code: z.ZodString;
|
|
@@ -1041,7 +1093,7 @@ export declare const leadsContractRouter: {
|
|
|
1041
1093
|
details?: unknown;
|
|
1042
1094
|
correlationId?: string | undefined;
|
|
1043
1095
|
}>;
|
|
1044
|
-
|
|
1096
|
+
400: z.ZodObject<{
|
|
1045
1097
|
statusCode: z.ZodNumber;
|
|
1046
1098
|
message: z.ZodString;
|
|
1047
1099
|
code: z.ZodString;
|
|
@@ -1066,7 +1118,7 @@ export declare const leadsContractRouter: {
|
|
|
1066
1118
|
details?: unknown;
|
|
1067
1119
|
correlationId?: string | undefined;
|
|
1068
1120
|
}>;
|
|
1069
|
-
|
|
1121
|
+
401: z.ZodObject<{
|
|
1070
1122
|
statusCode: z.ZodNumber;
|
|
1071
1123
|
message: z.ZodString;
|
|
1072
1124
|
code: z.ZodString;
|
|
@@ -1091,7 +1143,7 @@ export declare const leadsContractRouter: {
|
|
|
1091
1143
|
details?: unknown;
|
|
1092
1144
|
correlationId?: string | undefined;
|
|
1093
1145
|
}>;
|
|
1094
|
-
|
|
1146
|
+
403: z.ZodObject<{
|
|
1095
1147
|
statusCode: z.ZodNumber;
|
|
1096
1148
|
message: z.ZodString;
|
|
1097
1149
|
code: z.ZodString;
|
|
@@ -1130,29 +1182,29 @@ export declare const leadsContractRouter: {
|
|
|
1130
1182
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1131
1183
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1132
1184
|
}, "strip", z.ZodTypeAny, {
|
|
1133
|
-
id: string;
|
|
1134
1185
|
name: string;
|
|
1135
1186
|
phoneNumber: string;
|
|
1136
1187
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1188
|
+
source: string;
|
|
1137
1189
|
createdAt: string;
|
|
1138
1190
|
updatedAt: string;
|
|
1139
|
-
|
|
1140
|
-
totalCalls?: number | null | undefined;
|
|
1191
|
+
id: string;
|
|
1141
1192
|
qualityScore?: number | null | undefined;
|
|
1142
1193
|
conversionRate?: number | null | undefined;
|
|
1194
|
+
totalCalls?: number | null | undefined;
|
|
1143
1195
|
blacklistReason?: string | null | undefined;
|
|
1144
1196
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1145
1197
|
}, {
|
|
1146
|
-
id: string;
|
|
1147
1198
|
name: string;
|
|
1148
1199
|
phoneNumber: string;
|
|
1149
1200
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1201
|
+
source: string;
|
|
1150
1202
|
createdAt: string | Date;
|
|
1151
1203
|
updatedAt: string | Date;
|
|
1152
|
-
|
|
1153
|
-
totalCalls?: number | null | undefined;
|
|
1204
|
+
id: string;
|
|
1154
1205
|
qualityScore?: number | null | undefined;
|
|
1155
1206
|
conversionRate?: number | null | undefined;
|
|
1207
|
+
totalCalls?: number | null | undefined;
|
|
1156
1208
|
blacklistReason?: string | null | undefined;
|
|
1157
1209
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1158
1210
|
}>;
|
|
@@ -1227,7 +1279,7 @@ export declare const leadsContractRouter: {
|
|
|
1227
1279
|
body: typeof import("@ts-rest/core").ContractNoBody;
|
|
1228
1280
|
path: "/v2/leads/:id";
|
|
1229
1281
|
responses: {
|
|
1230
|
-
|
|
1282
|
+
500: z.ZodObject<{
|
|
1231
1283
|
statusCode: z.ZodNumber;
|
|
1232
1284
|
message: z.ZodString;
|
|
1233
1285
|
code: z.ZodString;
|
|
@@ -1252,7 +1304,7 @@ export declare const leadsContractRouter: {
|
|
|
1252
1304
|
details?: unknown;
|
|
1253
1305
|
correlationId?: string | undefined;
|
|
1254
1306
|
}>;
|
|
1255
|
-
|
|
1307
|
+
400: z.ZodObject<{
|
|
1256
1308
|
statusCode: z.ZodNumber;
|
|
1257
1309
|
message: z.ZodString;
|
|
1258
1310
|
code: z.ZodString;
|
|
@@ -1277,7 +1329,7 @@ export declare const leadsContractRouter: {
|
|
|
1277
1329
|
details?: unknown;
|
|
1278
1330
|
correlationId?: string | undefined;
|
|
1279
1331
|
}>;
|
|
1280
|
-
|
|
1332
|
+
401: z.ZodObject<{
|
|
1281
1333
|
statusCode: z.ZodNumber;
|
|
1282
1334
|
message: z.ZodString;
|
|
1283
1335
|
code: z.ZodString;
|
|
@@ -1302,7 +1354,7 @@ export declare const leadsContractRouter: {
|
|
|
1302
1354
|
details?: unknown;
|
|
1303
1355
|
correlationId?: string | undefined;
|
|
1304
1356
|
}>;
|
|
1305
|
-
|
|
1357
|
+
403: z.ZodObject<{
|
|
1306
1358
|
statusCode: z.ZodNumber;
|
|
1307
1359
|
message: z.ZodString;
|
|
1308
1360
|
code: z.ZodString;
|
|
@@ -1389,7 +1441,7 @@ export declare const leadsContractRouter: {
|
|
|
1389
1441
|
}>;
|
|
1390
1442
|
path: "/v2/leads/:id/call";
|
|
1391
1443
|
responses: {
|
|
1392
|
-
|
|
1444
|
+
500: z.ZodObject<{
|
|
1393
1445
|
statusCode: z.ZodNumber;
|
|
1394
1446
|
message: z.ZodString;
|
|
1395
1447
|
code: z.ZodString;
|
|
@@ -1414,7 +1466,7 @@ export declare const leadsContractRouter: {
|
|
|
1414
1466
|
details?: unknown;
|
|
1415
1467
|
correlationId?: string | undefined;
|
|
1416
1468
|
}>;
|
|
1417
|
-
|
|
1469
|
+
400: z.ZodObject<{
|
|
1418
1470
|
statusCode: z.ZodNumber;
|
|
1419
1471
|
message: z.ZodString;
|
|
1420
1472
|
code: z.ZodString;
|
|
@@ -1439,7 +1491,7 @@ export declare const leadsContractRouter: {
|
|
|
1439
1491
|
details?: unknown;
|
|
1440
1492
|
correlationId?: string | undefined;
|
|
1441
1493
|
}>;
|
|
1442
|
-
|
|
1494
|
+
401: z.ZodObject<{
|
|
1443
1495
|
statusCode: z.ZodNumber;
|
|
1444
1496
|
message: z.ZodString;
|
|
1445
1497
|
code: z.ZodString;
|
|
@@ -1464,7 +1516,7 @@ export declare const leadsContractRouter: {
|
|
|
1464
1516
|
details?: unknown;
|
|
1465
1517
|
correlationId?: string | undefined;
|
|
1466
1518
|
}>;
|
|
1467
|
-
|
|
1519
|
+
403: z.ZodObject<{
|
|
1468
1520
|
statusCode: z.ZodNumber;
|
|
1469
1521
|
message: z.ZodString;
|
|
1470
1522
|
code: z.ZodString;
|
|
@@ -1502,24 +1554,24 @@ export declare const leadsContractRouter: {
|
|
|
1502
1554
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1503
1555
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1504
1556
|
}, "strip", z.ZodTypeAny, {
|
|
1557
|
+
createdAt: string;
|
|
1558
|
+
updatedAt: string;
|
|
1505
1559
|
id: string;
|
|
1506
1560
|
assignmentId: string;
|
|
1507
1561
|
leadId: string;
|
|
1508
1562
|
agentId: string;
|
|
1509
|
-
createdAt: string;
|
|
1510
|
-
updatedAt: string;
|
|
1511
1563
|
callDate: string;
|
|
1512
1564
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1513
1565
|
rating: import("../common/call-rating.schema").CallRating;
|
|
1514
1566
|
ratingWeight: number;
|
|
1515
1567
|
notes?: string | null | undefined;
|
|
1516
1568
|
}, {
|
|
1569
|
+
createdAt: string | Date;
|
|
1570
|
+
updatedAt: string | Date;
|
|
1517
1571
|
id: string;
|
|
1518
1572
|
assignmentId: string;
|
|
1519
1573
|
leadId: string;
|
|
1520
1574
|
agentId: string;
|
|
1521
|
-
createdAt: string | Date;
|
|
1522
|
-
updatedAt: string | Date;
|
|
1523
1575
|
callDate: string | Date;
|
|
1524
1576
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1525
1577
|
rating: import("../common/call-rating.schema").CallRating;
|
|
@@ -1540,7 +1592,7 @@ export declare const leadsContractRouter: {
|
|
|
1540
1592
|
method: "GET";
|
|
1541
1593
|
path: "/v2/leads/analytics/quality-dashboard";
|
|
1542
1594
|
responses: {
|
|
1543
|
-
|
|
1595
|
+
500: z.ZodObject<{
|
|
1544
1596
|
statusCode: z.ZodNumber;
|
|
1545
1597
|
message: z.ZodString;
|
|
1546
1598
|
code: z.ZodString;
|
|
@@ -1565,7 +1617,7 @@ export declare const leadsContractRouter: {
|
|
|
1565
1617
|
details?: unknown;
|
|
1566
1618
|
correlationId?: string | undefined;
|
|
1567
1619
|
}>;
|
|
1568
|
-
|
|
1620
|
+
400: z.ZodObject<{
|
|
1569
1621
|
statusCode: z.ZodNumber;
|
|
1570
1622
|
message: z.ZodString;
|
|
1571
1623
|
code: z.ZodString;
|
|
@@ -1590,7 +1642,7 @@ export declare const leadsContractRouter: {
|
|
|
1590
1642
|
details?: unknown;
|
|
1591
1643
|
correlationId?: string | undefined;
|
|
1592
1644
|
}>;
|
|
1593
|
-
|
|
1645
|
+
401: z.ZodObject<{
|
|
1594
1646
|
statusCode: z.ZodNumber;
|
|
1595
1647
|
message: z.ZodString;
|
|
1596
1648
|
code: z.ZodString;
|
|
@@ -1615,7 +1667,7 @@ export declare const leadsContractRouter: {
|
|
|
1615
1667
|
details?: unknown;
|
|
1616
1668
|
correlationId?: string | undefined;
|
|
1617
1669
|
}>;
|
|
1618
|
-
|
|
1670
|
+
403: z.ZodObject<{
|
|
1619
1671
|
statusCode: z.ZodNumber;
|
|
1620
1672
|
message: z.ZodString;
|
|
1621
1673
|
code: z.ZodString;
|