@dakkitor/api-contracts 1.1.101 → 1.1.103
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 +2 -0
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +4 -1
- package/dist/abilities/interconnection.json +370 -0
- package/dist/abilities/second-agent.abilities copy.json +370 -0
- package/dist/abilities/team-leads.json +88 -0
- package/dist/actives/actives.contract.d.ts +3475 -3475
- package/dist/agent-client-links/agent-client-links.contract.d.ts +489 -489
- package/dist/auth/auth.contract.d.ts +13 -13
- package/dist/bookings/bookings.contract.d.ts +13250 -13250
- package/dist/call-history/call-history.contract.d.ts +620 -620
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1190 -1190
- package/dist/collaborations/collaborations.contract.d.ts +1047 -1047
- package/dist/curated-workers/curated-workers.contract.d.ts +256 -256
- package/dist/dashboards/dashboard.contract.d.ts +14 -14
- package/dist/jobs/jobs.contract.d.ts +2473 -2289
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +47 -3
- package/dist/lead-assignments/lead-assignments.contract.d.ts +448 -448
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +199 -199
- package/dist/leads/leads.contract.d.ts +150 -150
- package/dist/users/users.contract.d.ts +180 -180
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +1 -0
- package/dist/workers/workers.contract.d.ts +377 -377
- package/package.json +1 -1
|
@@ -31,29 +31,29 @@ export declare const LeadSchema: z.ZodObject<{
|
|
|
31
31
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
32
32
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
createdAt: string;
|
|
35
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
36
|
+
id: string;
|
|
37
|
+
updatedAt: string;
|
|
34
38
|
name: string;
|
|
35
39
|
phoneNumber: string;
|
|
36
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
37
40
|
source: string;
|
|
38
|
-
createdAt: string;
|
|
39
|
-
updatedAt: string;
|
|
40
|
-
id: string;
|
|
41
|
-
qualityScore?: number | null | undefined;
|
|
42
41
|
conversionRate?: number | null | undefined;
|
|
43
42
|
totalCalls?: number | null | undefined;
|
|
43
|
+
qualityScore?: number | null | undefined;
|
|
44
44
|
blacklistReason?: string | null | undefined;
|
|
45
45
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
46
46
|
}, {
|
|
47
|
+
createdAt: string | Date;
|
|
48
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
49
|
+
id: string;
|
|
50
|
+
updatedAt: string | Date;
|
|
47
51
|
name: string;
|
|
48
52
|
phoneNumber: string;
|
|
49
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
50
53
|
source: string;
|
|
51
|
-
createdAt: string | Date;
|
|
52
|
-
updatedAt: string | Date;
|
|
53
|
-
id: string;
|
|
54
|
-
qualityScore?: number | null | undefined;
|
|
55
54
|
conversionRate?: number | null | undefined;
|
|
56
55
|
totalCalls?: number | null | undefined;
|
|
56
|
+
qualityScore?: number | null | undefined;
|
|
57
57
|
blacklistReason?: string | null | undefined;
|
|
58
58
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
59
59
|
}>;
|
|
@@ -106,27 +106,27 @@ export declare const UpdateLeadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
106
106
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
107
107
|
source: z.ZodOptional<z.ZodString>;
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
109
110
|
name?: string | undefined;
|
|
110
111
|
phoneNumber?: string | undefined;
|
|
111
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
112
112
|
source?: string | undefined;
|
|
113
113
|
blacklistReason?: string | null | undefined;
|
|
114
114
|
}, {
|
|
115
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
115
116
|
name?: string | undefined;
|
|
116
117
|
phoneNumber?: string | undefined;
|
|
117
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
118
118
|
source?: string | undefined;
|
|
119
119
|
blacklistReason?: string | null | undefined;
|
|
120
120
|
}>, {
|
|
121
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
121
122
|
name?: string | undefined;
|
|
122
123
|
phoneNumber?: string | undefined;
|
|
123
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
124
124
|
source?: string | undefined;
|
|
125
125
|
blacklistReason?: string | null | undefined;
|
|
126
126
|
}, {
|
|
127
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
127
128
|
name?: string | undefined;
|
|
128
129
|
phoneNumber?: string | undefined;
|
|
129
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
130
130
|
source?: string | undefined;
|
|
131
131
|
blacklistReason?: string | null | undefined;
|
|
132
132
|
}>;
|
|
@@ -151,31 +151,31 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
152
|
limit: number;
|
|
153
153
|
page: number;
|
|
154
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
154
155
|
name?: string | null | undefined;
|
|
156
|
+
sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "phoneNumber" | "source" | "qualityScore" | null | undefined;
|
|
157
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
155
158
|
phoneNumber?: string | null | undefined;
|
|
156
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
157
159
|
source?: string | null | undefined;
|
|
158
160
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
159
161
|
minQualityScore?: number | null | undefined;
|
|
160
162
|
maxQualityScore?: number | null | undefined;
|
|
161
163
|
minConversionRate?: number | null | undefined;
|
|
162
164
|
minTotalCalls?: number | null | undefined;
|
|
163
|
-
sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
164
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
165
165
|
}, {
|
|
166
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
167
|
+
limit?: number | undefined;
|
|
168
|
+
page?: number | undefined;
|
|
166
169
|
name?: string | null | undefined;
|
|
170
|
+
sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "phoneNumber" | "source" | "qualityScore" | null | undefined;
|
|
171
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
167
172
|
phoneNumber?: string | null | undefined;
|
|
168
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
169
173
|
source?: string | null | undefined;
|
|
170
174
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
171
|
-
limit?: number | undefined;
|
|
172
|
-
page?: number | undefined;
|
|
173
175
|
minQualityScore?: number | null | undefined;
|
|
174
176
|
maxQualityScore?: number | null | undefined;
|
|
175
177
|
minConversionRate?: number | null | undefined;
|
|
176
178
|
minTotalCalls?: number | null | undefined;
|
|
177
|
-
sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
178
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
179
179
|
}>;
|
|
180
180
|
/**
|
|
181
181
|
* Call History Response Schema for leads
|
|
@@ -194,26 +194,26 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
194
194
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
195
195
|
}, "strip", z.ZodTypeAny, {
|
|
196
196
|
createdAt: string;
|
|
197
|
-
updatedAt: string;
|
|
198
197
|
id: string;
|
|
199
|
-
|
|
200
|
-
leadId: string;
|
|
198
|
+
updatedAt: string;
|
|
201
199
|
agentId: string;
|
|
200
|
+
leadId: string;
|
|
201
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
202
|
+
assignmentId: string;
|
|
202
203
|
callDate: string;
|
|
203
204
|
callType: import("../call-history/call-history.contract").CallType;
|
|
204
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
205
205
|
ratingWeight: number;
|
|
206
206
|
notes?: string | null | undefined;
|
|
207
207
|
}, {
|
|
208
208
|
createdAt: string | Date;
|
|
209
|
-
updatedAt: string | Date;
|
|
210
209
|
id: string;
|
|
211
|
-
|
|
212
|
-
leadId: string;
|
|
210
|
+
updatedAt: string | Date;
|
|
213
211
|
agentId: string;
|
|
212
|
+
leadId: string;
|
|
213
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
214
|
+
assignmentId: string;
|
|
214
215
|
callDate: string | Date;
|
|
215
216
|
callType: import("../call-history/call-history.contract").CallType;
|
|
216
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
217
217
|
ratingWeight: number;
|
|
218
218
|
notes?: string | null | undefined;
|
|
219
219
|
}>;
|
|
@@ -295,29 +295,29 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
295
295
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
296
296
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
297
297
|
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
createdAt: string;
|
|
299
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
300
|
+
id: string;
|
|
301
|
+
updatedAt: string;
|
|
298
302
|
name: string;
|
|
299
303
|
phoneNumber: string;
|
|
300
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
301
304
|
source: string;
|
|
302
|
-
createdAt: string;
|
|
303
|
-
updatedAt: string;
|
|
304
|
-
id: string;
|
|
305
|
-
qualityScore?: number | null | undefined;
|
|
306
305
|
conversionRate?: number | null | undefined;
|
|
307
306
|
totalCalls?: number | null | undefined;
|
|
307
|
+
qualityScore?: number | null | undefined;
|
|
308
308
|
blacklistReason?: string | null | undefined;
|
|
309
309
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
310
310
|
}, {
|
|
311
|
+
createdAt: string | Date;
|
|
312
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
313
|
+
id: string;
|
|
314
|
+
updatedAt: string | Date;
|
|
311
315
|
name: string;
|
|
312
316
|
phoneNumber: string;
|
|
313
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
314
317
|
source: string;
|
|
315
|
-
createdAt: string | Date;
|
|
316
|
-
updatedAt: string | Date;
|
|
317
|
-
id: string;
|
|
318
|
-
qualityScore?: number | null | undefined;
|
|
319
318
|
conversionRate?: number | null | undefined;
|
|
320
319
|
totalCalls?: number | null | undefined;
|
|
320
|
+
qualityScore?: number | null | undefined;
|
|
321
321
|
blacklistReason?: string | null | undefined;
|
|
322
322
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
323
323
|
}>, "many">;
|
|
@@ -329,16 +329,16 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
329
329
|
}, "strip", z.ZodTypeAny, {
|
|
330
330
|
limit: number;
|
|
331
331
|
items: {
|
|
332
|
+
createdAt: string;
|
|
333
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
334
|
+
id: string;
|
|
335
|
+
updatedAt: string;
|
|
332
336
|
name: string;
|
|
333
337
|
phoneNumber: string;
|
|
334
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
335
338
|
source: string;
|
|
336
|
-
createdAt: string;
|
|
337
|
-
updatedAt: string;
|
|
338
|
-
id: string;
|
|
339
|
-
qualityScore?: number | null | undefined;
|
|
340
339
|
conversionRate?: number | null | undefined;
|
|
341
340
|
totalCalls?: number | null | undefined;
|
|
341
|
+
qualityScore?: number | null | undefined;
|
|
342
342
|
blacklistReason?: string | null | undefined;
|
|
343
343
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
344
344
|
}[];
|
|
@@ -349,16 +349,16 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
349
349
|
}, {
|
|
350
350
|
limit: number;
|
|
351
351
|
items: {
|
|
352
|
+
createdAt: string | Date;
|
|
353
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
354
|
+
id: string;
|
|
355
|
+
updatedAt: string | Date;
|
|
352
356
|
name: string;
|
|
353
357
|
phoneNumber: string;
|
|
354
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
355
358
|
source: string;
|
|
356
|
-
createdAt: string | Date;
|
|
357
|
-
updatedAt: string | Date;
|
|
358
|
-
id: string;
|
|
359
|
-
qualityScore?: number | null | undefined;
|
|
360
359
|
conversionRate?: number | null | undefined;
|
|
361
360
|
totalCalls?: number | null | undefined;
|
|
361
|
+
qualityScore?: number | null | undefined;
|
|
362
362
|
blacklistReason?: string | null | undefined;
|
|
363
363
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
364
364
|
}[];
|
|
@@ -423,7 +423,7 @@ export declare const leadsContractRouter: {
|
|
|
423
423
|
}>;
|
|
424
424
|
path: "/v2/leads";
|
|
425
425
|
responses: {
|
|
426
|
-
|
|
426
|
+
400: z.ZodObject<{
|
|
427
427
|
statusCode: z.ZodNumber;
|
|
428
428
|
message: z.ZodString;
|
|
429
429
|
code: z.ZodString;
|
|
@@ -448,7 +448,7 @@ export declare const leadsContractRouter: {
|
|
|
448
448
|
details?: unknown;
|
|
449
449
|
correlationId?: string | undefined;
|
|
450
450
|
}>;
|
|
451
|
-
|
|
451
|
+
401: z.ZodObject<{
|
|
452
452
|
statusCode: z.ZodNumber;
|
|
453
453
|
message: z.ZodString;
|
|
454
454
|
code: z.ZodString;
|
|
@@ -473,7 +473,7 @@ export declare const leadsContractRouter: {
|
|
|
473
473
|
details?: unknown;
|
|
474
474
|
correlationId?: string | undefined;
|
|
475
475
|
}>;
|
|
476
|
-
|
|
476
|
+
403: z.ZodObject<{
|
|
477
477
|
statusCode: z.ZodNumber;
|
|
478
478
|
message: z.ZodString;
|
|
479
479
|
code: z.ZodString;
|
|
@@ -498,7 +498,7 @@ export declare const leadsContractRouter: {
|
|
|
498
498
|
details?: unknown;
|
|
499
499
|
correlationId?: string | undefined;
|
|
500
500
|
}>;
|
|
501
|
-
|
|
501
|
+
500: z.ZodObject<{
|
|
502
502
|
statusCode: z.ZodNumber;
|
|
503
503
|
message: z.ZodString;
|
|
504
504
|
code: z.ZodString;
|
|
@@ -537,29 +537,29 @@ export declare const leadsContractRouter: {
|
|
|
537
537
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
538
538
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
539
539
|
}, "strip", z.ZodTypeAny, {
|
|
540
|
+
createdAt: string;
|
|
541
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
542
|
+
id: string;
|
|
543
|
+
updatedAt: string;
|
|
540
544
|
name: string;
|
|
541
545
|
phoneNumber: string;
|
|
542
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
543
546
|
source: string;
|
|
544
|
-
createdAt: string;
|
|
545
|
-
updatedAt: string;
|
|
546
|
-
id: string;
|
|
547
|
-
qualityScore?: number | null | undefined;
|
|
548
547
|
conversionRate?: number | null | undefined;
|
|
549
548
|
totalCalls?: number | null | undefined;
|
|
549
|
+
qualityScore?: number | null | undefined;
|
|
550
550
|
blacklistReason?: string | null | undefined;
|
|
551
551
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
552
552
|
}, {
|
|
553
|
+
createdAt: string | Date;
|
|
554
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
555
|
+
id: string;
|
|
556
|
+
updatedAt: string | Date;
|
|
553
557
|
name: string;
|
|
554
558
|
phoneNumber: string;
|
|
555
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
556
559
|
source: string;
|
|
557
|
-
createdAt: string | Date;
|
|
558
|
-
updatedAt: string | Date;
|
|
559
|
-
id: string;
|
|
560
|
-
qualityScore?: number | null | undefined;
|
|
561
560
|
conversionRate?: number | null | undefined;
|
|
562
561
|
totalCalls?: number | null | undefined;
|
|
562
|
+
qualityScore?: number | null | undefined;
|
|
563
563
|
blacklistReason?: string | null | undefined;
|
|
564
564
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
565
565
|
}>;
|
|
@@ -615,37 +615,37 @@ export declare const leadsContractRouter: {
|
|
|
615
615
|
}, "strip", z.ZodTypeAny, {
|
|
616
616
|
limit: number;
|
|
617
617
|
page: number;
|
|
618
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
618
619
|
name?: string | null | undefined;
|
|
620
|
+
sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "phoneNumber" | "source" | "qualityScore" | null | undefined;
|
|
621
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
619
622
|
phoneNumber?: string | null | undefined;
|
|
620
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
621
623
|
source?: string | null | undefined;
|
|
622
624
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
623
625
|
minQualityScore?: number | null | undefined;
|
|
624
626
|
maxQualityScore?: number | null | undefined;
|
|
625
627
|
minConversionRate?: number | null | undefined;
|
|
626
628
|
minTotalCalls?: number | null | undefined;
|
|
627
|
-
sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
628
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
629
629
|
}, {
|
|
630
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
631
|
+
limit?: number | undefined;
|
|
632
|
+
page?: number | undefined;
|
|
630
633
|
name?: string | null | undefined;
|
|
634
|
+
sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "phoneNumber" | "source" | "qualityScore" | null | undefined;
|
|
635
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
631
636
|
phoneNumber?: string | null | undefined;
|
|
632
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
633
637
|
source?: string | null | undefined;
|
|
634
638
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
635
|
-
limit?: number | undefined;
|
|
636
|
-
page?: number | undefined;
|
|
637
639
|
minQualityScore?: number | null | undefined;
|
|
638
640
|
maxQualityScore?: number | null | undefined;
|
|
639
641
|
minConversionRate?: number | null | undefined;
|
|
640
642
|
minTotalCalls?: number | null | undefined;
|
|
641
|
-
sortBy?: "name" | "phoneNumber" | "status" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
642
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
643
643
|
}>;
|
|
644
644
|
summary: "Get all leads";
|
|
645
645
|
method: "GET";
|
|
646
646
|
path: "/v2/leads";
|
|
647
647
|
responses: {
|
|
648
|
-
|
|
648
|
+
400: z.ZodObject<{
|
|
649
649
|
statusCode: z.ZodNumber;
|
|
650
650
|
message: z.ZodString;
|
|
651
651
|
code: z.ZodString;
|
|
@@ -670,7 +670,7 @@ export declare const leadsContractRouter: {
|
|
|
670
670
|
details?: unknown;
|
|
671
671
|
correlationId?: string | undefined;
|
|
672
672
|
}>;
|
|
673
|
-
|
|
673
|
+
401: z.ZodObject<{
|
|
674
674
|
statusCode: z.ZodNumber;
|
|
675
675
|
message: z.ZodString;
|
|
676
676
|
code: z.ZodString;
|
|
@@ -695,7 +695,7 @@ export declare const leadsContractRouter: {
|
|
|
695
695
|
details?: unknown;
|
|
696
696
|
correlationId?: string | undefined;
|
|
697
697
|
}>;
|
|
698
|
-
|
|
698
|
+
403: z.ZodObject<{
|
|
699
699
|
statusCode: z.ZodNumber;
|
|
700
700
|
message: z.ZodString;
|
|
701
701
|
code: z.ZodString;
|
|
@@ -720,7 +720,7 @@ export declare const leadsContractRouter: {
|
|
|
720
720
|
details?: unknown;
|
|
721
721
|
correlationId?: string | undefined;
|
|
722
722
|
}>;
|
|
723
|
-
|
|
723
|
+
500: z.ZodObject<{
|
|
724
724
|
statusCode: z.ZodNumber;
|
|
725
725
|
message: z.ZodString;
|
|
726
726
|
code: z.ZodString;
|
|
@@ -760,29 +760,29 @@ export declare const leadsContractRouter: {
|
|
|
760
760
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
761
761
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
762
762
|
}, "strip", z.ZodTypeAny, {
|
|
763
|
+
createdAt: string;
|
|
764
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
765
|
+
id: string;
|
|
766
|
+
updatedAt: string;
|
|
763
767
|
name: string;
|
|
764
768
|
phoneNumber: string;
|
|
765
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
766
769
|
source: string;
|
|
767
|
-
createdAt: string;
|
|
768
|
-
updatedAt: string;
|
|
769
|
-
id: string;
|
|
770
|
-
qualityScore?: number | null | undefined;
|
|
771
770
|
conversionRate?: number | null | undefined;
|
|
772
771
|
totalCalls?: number | null | undefined;
|
|
772
|
+
qualityScore?: number | null | undefined;
|
|
773
773
|
blacklistReason?: string | null | undefined;
|
|
774
774
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
775
775
|
}, {
|
|
776
|
+
createdAt: string | Date;
|
|
777
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
778
|
+
id: string;
|
|
779
|
+
updatedAt: string | Date;
|
|
776
780
|
name: string;
|
|
777
781
|
phoneNumber: string;
|
|
778
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
779
782
|
source: string;
|
|
780
|
-
createdAt: string | Date;
|
|
781
|
-
updatedAt: string | Date;
|
|
782
|
-
id: string;
|
|
783
|
-
qualityScore?: number | null | undefined;
|
|
784
783
|
conversionRate?: number | null | undefined;
|
|
785
784
|
totalCalls?: number | null | undefined;
|
|
785
|
+
qualityScore?: number | null | undefined;
|
|
786
786
|
blacklistReason?: string | null | undefined;
|
|
787
787
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
788
788
|
}>, "many">;
|
|
@@ -794,16 +794,16 @@ export declare const leadsContractRouter: {
|
|
|
794
794
|
}, "strip", z.ZodTypeAny, {
|
|
795
795
|
limit: number;
|
|
796
796
|
items: {
|
|
797
|
+
createdAt: string;
|
|
798
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
799
|
+
id: string;
|
|
800
|
+
updatedAt: string;
|
|
797
801
|
name: string;
|
|
798
802
|
phoneNumber: string;
|
|
799
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
800
803
|
source: string;
|
|
801
|
-
createdAt: string;
|
|
802
|
-
updatedAt: string;
|
|
803
|
-
id: string;
|
|
804
|
-
qualityScore?: number | null | undefined;
|
|
805
804
|
conversionRate?: number | null | undefined;
|
|
806
805
|
totalCalls?: number | null | undefined;
|
|
806
|
+
qualityScore?: number | null | undefined;
|
|
807
807
|
blacklistReason?: string | null | undefined;
|
|
808
808
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
809
809
|
}[];
|
|
@@ -814,16 +814,16 @@ export declare const leadsContractRouter: {
|
|
|
814
814
|
}, {
|
|
815
815
|
limit: number;
|
|
816
816
|
items: {
|
|
817
|
+
createdAt: string | Date;
|
|
818
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
819
|
+
id: string;
|
|
820
|
+
updatedAt: string | Date;
|
|
817
821
|
name: string;
|
|
818
822
|
phoneNumber: string;
|
|
819
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
820
823
|
source: string;
|
|
821
|
-
createdAt: string | Date;
|
|
822
|
-
updatedAt: string | Date;
|
|
823
|
-
id: string;
|
|
824
|
-
qualityScore?: number | null | undefined;
|
|
825
824
|
conversionRate?: number | null | undefined;
|
|
826
825
|
totalCalls?: number | null | undefined;
|
|
826
|
+
qualityScore?: number | null | undefined;
|
|
827
827
|
blacklistReason?: string | null | undefined;
|
|
828
828
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
829
829
|
}[];
|
|
@@ -852,7 +852,7 @@ export declare const leadsContractRouter: {
|
|
|
852
852
|
method: "GET";
|
|
853
853
|
path: "/v2/leads/:id";
|
|
854
854
|
responses: {
|
|
855
|
-
|
|
855
|
+
400: z.ZodObject<{
|
|
856
856
|
statusCode: z.ZodNumber;
|
|
857
857
|
message: z.ZodString;
|
|
858
858
|
code: z.ZodString;
|
|
@@ -877,7 +877,7 @@ export declare const leadsContractRouter: {
|
|
|
877
877
|
details?: unknown;
|
|
878
878
|
correlationId?: string | undefined;
|
|
879
879
|
}>;
|
|
880
|
-
|
|
880
|
+
401: z.ZodObject<{
|
|
881
881
|
statusCode: z.ZodNumber;
|
|
882
882
|
message: z.ZodString;
|
|
883
883
|
code: z.ZodString;
|
|
@@ -902,7 +902,7 @@ export declare const leadsContractRouter: {
|
|
|
902
902
|
details?: unknown;
|
|
903
903
|
correlationId?: string | undefined;
|
|
904
904
|
}>;
|
|
905
|
-
|
|
905
|
+
403: z.ZodObject<{
|
|
906
906
|
statusCode: z.ZodNumber;
|
|
907
907
|
message: z.ZodString;
|
|
908
908
|
code: z.ZodString;
|
|
@@ -927,7 +927,7 @@ export declare const leadsContractRouter: {
|
|
|
927
927
|
details?: unknown;
|
|
928
928
|
correlationId?: string | undefined;
|
|
929
929
|
}>;
|
|
930
|
-
|
|
930
|
+
500: z.ZodObject<{
|
|
931
931
|
statusCode: z.ZodNumber;
|
|
932
932
|
message: z.ZodString;
|
|
933
933
|
code: z.ZodString;
|
|
@@ -966,29 +966,29 @@ export declare const leadsContractRouter: {
|
|
|
966
966
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
967
967
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
968
968
|
}, "strip", z.ZodTypeAny, {
|
|
969
|
+
createdAt: string;
|
|
970
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
971
|
+
id: string;
|
|
972
|
+
updatedAt: string;
|
|
969
973
|
name: string;
|
|
970
974
|
phoneNumber: string;
|
|
971
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
972
975
|
source: string;
|
|
973
|
-
createdAt: string;
|
|
974
|
-
updatedAt: string;
|
|
975
|
-
id: string;
|
|
976
|
-
qualityScore?: number | null | undefined;
|
|
977
976
|
conversionRate?: number | null | undefined;
|
|
978
977
|
totalCalls?: number | null | undefined;
|
|
978
|
+
qualityScore?: number | null | undefined;
|
|
979
979
|
blacklistReason?: string | null | undefined;
|
|
980
980
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
981
981
|
}, {
|
|
982
|
+
createdAt: string | Date;
|
|
983
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
984
|
+
id: string;
|
|
985
|
+
updatedAt: string | Date;
|
|
982
986
|
name: string;
|
|
983
987
|
phoneNumber: string;
|
|
984
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
985
988
|
source: string;
|
|
986
|
-
createdAt: string | Date;
|
|
987
|
-
updatedAt: string | Date;
|
|
988
|
-
id: string;
|
|
989
|
-
qualityScore?: number | null | undefined;
|
|
990
989
|
conversionRate?: number | null | undefined;
|
|
991
990
|
totalCalls?: number | null | undefined;
|
|
991
|
+
qualityScore?: number | null | undefined;
|
|
992
992
|
blacklistReason?: string | null | undefined;
|
|
993
993
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
994
994
|
}>;
|
|
@@ -1042,33 +1042,33 @@ export declare const leadsContractRouter: {
|
|
|
1042
1042
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1043
1043
|
source: z.ZodOptional<z.ZodString>;
|
|
1044
1044
|
}, "strip", z.ZodTypeAny, {
|
|
1045
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1045
1046
|
name?: string | undefined;
|
|
1046
1047
|
phoneNumber?: string | undefined;
|
|
1047
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1048
1048
|
source?: string | undefined;
|
|
1049
1049
|
blacklistReason?: string | null | undefined;
|
|
1050
1050
|
}, {
|
|
1051
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1051
1052
|
name?: string | undefined;
|
|
1052
1053
|
phoneNumber?: string | undefined;
|
|
1053
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1054
1054
|
source?: string | undefined;
|
|
1055
1055
|
blacklistReason?: string | null | undefined;
|
|
1056
1056
|
}>, {
|
|
1057
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1057
1058
|
name?: string | undefined;
|
|
1058
1059
|
phoneNumber?: string | undefined;
|
|
1059
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1060
1060
|
source?: string | undefined;
|
|
1061
1061
|
blacklistReason?: string | null | undefined;
|
|
1062
1062
|
}, {
|
|
1063
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1063
1064
|
name?: string | undefined;
|
|
1064
1065
|
phoneNumber?: string | undefined;
|
|
1065
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1066
1066
|
source?: string | undefined;
|
|
1067
1067
|
blacklistReason?: string | null | undefined;
|
|
1068
1068
|
}>;
|
|
1069
1069
|
path: "/v2/leads/:id";
|
|
1070
1070
|
responses: {
|
|
1071
|
-
|
|
1071
|
+
400: z.ZodObject<{
|
|
1072
1072
|
statusCode: z.ZodNumber;
|
|
1073
1073
|
message: z.ZodString;
|
|
1074
1074
|
code: z.ZodString;
|
|
@@ -1093,7 +1093,7 @@ export declare const leadsContractRouter: {
|
|
|
1093
1093
|
details?: unknown;
|
|
1094
1094
|
correlationId?: string | undefined;
|
|
1095
1095
|
}>;
|
|
1096
|
-
|
|
1096
|
+
401: z.ZodObject<{
|
|
1097
1097
|
statusCode: z.ZodNumber;
|
|
1098
1098
|
message: z.ZodString;
|
|
1099
1099
|
code: z.ZodString;
|
|
@@ -1118,7 +1118,7 @@ export declare const leadsContractRouter: {
|
|
|
1118
1118
|
details?: unknown;
|
|
1119
1119
|
correlationId?: string | undefined;
|
|
1120
1120
|
}>;
|
|
1121
|
-
|
|
1121
|
+
403: z.ZodObject<{
|
|
1122
1122
|
statusCode: z.ZodNumber;
|
|
1123
1123
|
message: z.ZodString;
|
|
1124
1124
|
code: z.ZodString;
|
|
@@ -1143,7 +1143,7 @@ export declare const leadsContractRouter: {
|
|
|
1143
1143
|
details?: unknown;
|
|
1144
1144
|
correlationId?: string | undefined;
|
|
1145
1145
|
}>;
|
|
1146
|
-
|
|
1146
|
+
500: z.ZodObject<{
|
|
1147
1147
|
statusCode: z.ZodNumber;
|
|
1148
1148
|
message: z.ZodString;
|
|
1149
1149
|
code: z.ZodString;
|
|
@@ -1182,29 +1182,29 @@ export declare const leadsContractRouter: {
|
|
|
1182
1182
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1183
1183
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1184
1184
|
}, "strip", z.ZodTypeAny, {
|
|
1185
|
+
createdAt: string;
|
|
1186
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1187
|
+
id: string;
|
|
1188
|
+
updatedAt: string;
|
|
1185
1189
|
name: string;
|
|
1186
1190
|
phoneNumber: string;
|
|
1187
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1188
1191
|
source: string;
|
|
1189
|
-
createdAt: string;
|
|
1190
|
-
updatedAt: string;
|
|
1191
|
-
id: string;
|
|
1192
|
-
qualityScore?: number | null | undefined;
|
|
1193
1192
|
conversionRate?: number | null | undefined;
|
|
1194
1193
|
totalCalls?: number | null | undefined;
|
|
1194
|
+
qualityScore?: number | null | undefined;
|
|
1195
1195
|
blacklistReason?: string | null | undefined;
|
|
1196
1196
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1197
1197
|
}, {
|
|
1198
|
+
createdAt: string | Date;
|
|
1199
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1200
|
+
id: string;
|
|
1201
|
+
updatedAt: string | Date;
|
|
1198
1202
|
name: string;
|
|
1199
1203
|
phoneNumber: string;
|
|
1200
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1201
1204
|
source: string;
|
|
1202
|
-
createdAt: string | Date;
|
|
1203
|
-
updatedAt: string | Date;
|
|
1204
|
-
id: string;
|
|
1205
|
-
qualityScore?: number | null | undefined;
|
|
1206
1205
|
conversionRate?: number | null | undefined;
|
|
1207
1206
|
totalCalls?: number | null | undefined;
|
|
1207
|
+
qualityScore?: number | null | undefined;
|
|
1208
1208
|
blacklistReason?: string | null | undefined;
|
|
1209
1209
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1210
1210
|
}>;
|
|
@@ -1279,7 +1279,7 @@ export declare const leadsContractRouter: {
|
|
|
1279
1279
|
body: typeof import("@ts-rest/core").ContractNoBody;
|
|
1280
1280
|
path: "/v2/leads/:id";
|
|
1281
1281
|
responses: {
|
|
1282
|
-
|
|
1282
|
+
400: z.ZodObject<{
|
|
1283
1283
|
statusCode: z.ZodNumber;
|
|
1284
1284
|
message: z.ZodString;
|
|
1285
1285
|
code: z.ZodString;
|
|
@@ -1304,7 +1304,7 @@ export declare const leadsContractRouter: {
|
|
|
1304
1304
|
details?: unknown;
|
|
1305
1305
|
correlationId?: string | undefined;
|
|
1306
1306
|
}>;
|
|
1307
|
-
|
|
1307
|
+
401: z.ZodObject<{
|
|
1308
1308
|
statusCode: z.ZodNumber;
|
|
1309
1309
|
message: z.ZodString;
|
|
1310
1310
|
code: z.ZodString;
|
|
@@ -1329,7 +1329,7 @@ export declare const leadsContractRouter: {
|
|
|
1329
1329
|
details?: unknown;
|
|
1330
1330
|
correlationId?: string | undefined;
|
|
1331
1331
|
}>;
|
|
1332
|
-
|
|
1332
|
+
403: z.ZodObject<{
|
|
1333
1333
|
statusCode: z.ZodNumber;
|
|
1334
1334
|
message: z.ZodString;
|
|
1335
1335
|
code: z.ZodString;
|
|
@@ -1354,7 +1354,7 @@ export declare const leadsContractRouter: {
|
|
|
1354
1354
|
details?: unknown;
|
|
1355
1355
|
correlationId?: string | undefined;
|
|
1356
1356
|
}>;
|
|
1357
|
-
|
|
1357
|
+
500: z.ZodObject<{
|
|
1358
1358
|
statusCode: z.ZodNumber;
|
|
1359
1359
|
message: z.ZodString;
|
|
1360
1360
|
code: z.ZodString;
|
|
@@ -1429,19 +1429,19 @@ export declare const leadsContractRouter: {
|
|
|
1429
1429
|
notes: z.ZodOptional<z.ZodString>;
|
|
1430
1430
|
callType: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>;
|
|
1431
1431
|
}, "strip", z.ZodTypeAny, {
|
|
1432
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1432
1433
|
assignmentId: string;
|
|
1433
1434
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1434
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
1435
1435
|
notes?: string | undefined;
|
|
1436
1436
|
}, {
|
|
1437
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1437
1438
|
assignmentId: string;
|
|
1438
1439
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1439
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
1440
1440
|
notes?: string | undefined;
|
|
1441
1441
|
}>;
|
|
1442
1442
|
path: "/v2/leads/:id/call";
|
|
1443
1443
|
responses: {
|
|
1444
|
-
|
|
1444
|
+
400: z.ZodObject<{
|
|
1445
1445
|
statusCode: z.ZodNumber;
|
|
1446
1446
|
message: z.ZodString;
|
|
1447
1447
|
code: z.ZodString;
|
|
@@ -1466,7 +1466,7 @@ export declare const leadsContractRouter: {
|
|
|
1466
1466
|
details?: unknown;
|
|
1467
1467
|
correlationId?: string | undefined;
|
|
1468
1468
|
}>;
|
|
1469
|
-
|
|
1469
|
+
401: z.ZodObject<{
|
|
1470
1470
|
statusCode: z.ZodNumber;
|
|
1471
1471
|
message: z.ZodString;
|
|
1472
1472
|
code: z.ZodString;
|
|
@@ -1491,7 +1491,7 @@ export declare const leadsContractRouter: {
|
|
|
1491
1491
|
details?: unknown;
|
|
1492
1492
|
correlationId?: string | undefined;
|
|
1493
1493
|
}>;
|
|
1494
|
-
|
|
1494
|
+
403: z.ZodObject<{
|
|
1495
1495
|
statusCode: z.ZodNumber;
|
|
1496
1496
|
message: z.ZodString;
|
|
1497
1497
|
code: z.ZodString;
|
|
@@ -1516,7 +1516,7 @@ export declare const leadsContractRouter: {
|
|
|
1516
1516
|
details?: unknown;
|
|
1517
1517
|
correlationId?: string | undefined;
|
|
1518
1518
|
}>;
|
|
1519
|
-
|
|
1519
|
+
500: z.ZodObject<{
|
|
1520
1520
|
statusCode: z.ZodNumber;
|
|
1521
1521
|
message: z.ZodString;
|
|
1522
1522
|
code: z.ZodString;
|
|
@@ -1555,26 +1555,26 @@ export declare const leadsContractRouter: {
|
|
|
1555
1555
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1556
1556
|
}, "strip", z.ZodTypeAny, {
|
|
1557
1557
|
createdAt: string;
|
|
1558
|
-
updatedAt: string;
|
|
1559
1558
|
id: string;
|
|
1560
|
-
|
|
1561
|
-
leadId: string;
|
|
1559
|
+
updatedAt: string;
|
|
1562
1560
|
agentId: string;
|
|
1561
|
+
leadId: string;
|
|
1562
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1563
|
+
assignmentId: string;
|
|
1563
1564
|
callDate: string;
|
|
1564
1565
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1565
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
1566
1566
|
ratingWeight: number;
|
|
1567
1567
|
notes?: string | null | undefined;
|
|
1568
1568
|
}, {
|
|
1569
1569
|
createdAt: string | Date;
|
|
1570
|
-
updatedAt: string | Date;
|
|
1571
1570
|
id: string;
|
|
1572
|
-
|
|
1573
|
-
leadId: string;
|
|
1571
|
+
updatedAt: string | Date;
|
|
1574
1572
|
agentId: string;
|
|
1573
|
+
leadId: string;
|
|
1574
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1575
|
+
assignmentId: string;
|
|
1575
1576
|
callDate: string | Date;
|
|
1576
1577
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1577
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
1578
1578
|
ratingWeight: number;
|
|
1579
1579
|
notes?: string | null | undefined;
|
|
1580
1580
|
}>;
|
|
@@ -1592,7 +1592,7 @@ export declare const leadsContractRouter: {
|
|
|
1592
1592
|
method: "GET";
|
|
1593
1593
|
path: "/v2/leads/analytics/quality-dashboard";
|
|
1594
1594
|
responses: {
|
|
1595
|
-
|
|
1595
|
+
400: z.ZodObject<{
|
|
1596
1596
|
statusCode: z.ZodNumber;
|
|
1597
1597
|
message: z.ZodString;
|
|
1598
1598
|
code: z.ZodString;
|
|
@@ -1617,7 +1617,7 @@ export declare const leadsContractRouter: {
|
|
|
1617
1617
|
details?: unknown;
|
|
1618
1618
|
correlationId?: string | undefined;
|
|
1619
1619
|
}>;
|
|
1620
|
-
|
|
1620
|
+
401: z.ZodObject<{
|
|
1621
1621
|
statusCode: z.ZodNumber;
|
|
1622
1622
|
message: z.ZodString;
|
|
1623
1623
|
code: z.ZodString;
|
|
@@ -1642,7 +1642,7 @@ export declare const leadsContractRouter: {
|
|
|
1642
1642
|
details?: unknown;
|
|
1643
1643
|
correlationId?: string | undefined;
|
|
1644
1644
|
}>;
|
|
1645
|
-
|
|
1645
|
+
403: z.ZodObject<{
|
|
1646
1646
|
statusCode: z.ZodNumber;
|
|
1647
1647
|
message: z.ZodString;
|
|
1648
1648
|
code: z.ZodString;
|
|
@@ -1667,7 +1667,7 @@ export declare const leadsContractRouter: {
|
|
|
1667
1667
|
details?: unknown;
|
|
1668
1668
|
correlationId?: string | undefined;
|
|
1669
1669
|
}>;
|
|
1670
|
-
|
|
1670
|
+
500: z.ZodObject<{
|
|
1671
1671
|
statusCode: z.ZodNumber;
|
|
1672
1672
|
message: z.ZodString;
|
|
1673
1673
|
code: z.ZodString;
|