@dakkitor/api-contracts 1.1.102 → 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 +4232 -4232
- package/dist/agent-client-links/agent-client-links.contract.d.ts +489 -489
- package/dist/auth/auth.contract.d.ts +7 -7
- package/dist/bookings/bookings.contract.d.ts +15542 -15542
- package/dist/call-history/call-history.contract.d.ts +537 -537
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1190 -1190
- package/dist/collaborations/collaborations.contract.d.ts +1047 -1047
- package/dist/dashboards/dashboard.contract.d.ts +14 -14
- package/dist/jobs/jobs.contract.d.ts +2279 -2279
- package/dist/lead-assignments/lead-assignments.contract.d.ts +434 -434
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +199 -199
- package/dist/leads/leads.contract.d.ts +117 -117
- 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 +218 -218
- 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
|
-
id: string;
|
|
35
|
-
phoneNumber: string;
|
|
36
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
37
34
|
createdAt: string;
|
|
35
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
36
|
+
id: string;
|
|
38
37
|
updatedAt: string;
|
|
39
38
|
name: string;
|
|
39
|
+
phoneNumber: string;
|
|
40
40
|
source: 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
|
-
id: string;
|
|
48
|
-
phoneNumber: string;
|
|
49
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
50
47
|
createdAt: string | Date;
|
|
48
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
49
|
+
id: string;
|
|
51
50
|
updatedAt: string | Date;
|
|
52
51
|
name: string;
|
|
52
|
+
phoneNumber: string;
|
|
53
53
|
source: 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
|
}>;
|
|
@@ -68,29 +68,29 @@ export declare const CreateLeadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
68
68
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
69
69
|
source: z.ZodString;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
phoneNumber: string;
|
|
72
71
|
name: string;
|
|
72
|
+
phoneNumber: string;
|
|
73
73
|
source: string;
|
|
74
74
|
isBlacklisted: boolean;
|
|
75
75
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
76
76
|
blacklistReason?: string | null | undefined;
|
|
77
77
|
}, {
|
|
78
|
-
phoneNumber: string;
|
|
79
78
|
name: string;
|
|
79
|
+
phoneNumber: string;
|
|
80
80
|
source: string;
|
|
81
81
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
82
82
|
blacklistReason?: string | null | undefined;
|
|
83
83
|
isBlacklisted?: boolean | undefined;
|
|
84
84
|
}>, {
|
|
85
|
-
phoneNumber: string;
|
|
86
85
|
name: string;
|
|
86
|
+
phoneNumber: string;
|
|
87
87
|
source: string;
|
|
88
88
|
isBlacklisted: boolean;
|
|
89
89
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
90
90
|
blacklistReason?: string | null | undefined;
|
|
91
91
|
}, {
|
|
92
|
-
phoneNumber: string;
|
|
93
92
|
name: string;
|
|
93
|
+
phoneNumber: string;
|
|
94
94
|
source: string;
|
|
95
95
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
96
96
|
blacklistReason?: string | null | undefined;
|
|
@@ -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
|
-
phoneNumber?: string | undefined;
|
|
110
109
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
111
110
|
name?: string | undefined;
|
|
111
|
+
phoneNumber?: string | undefined;
|
|
112
112
|
source?: string | undefined;
|
|
113
113
|
blacklistReason?: string | null | undefined;
|
|
114
114
|
}, {
|
|
115
|
-
phoneNumber?: string | undefined;
|
|
116
115
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
117
116
|
name?: string | undefined;
|
|
117
|
+
phoneNumber?: string | undefined;
|
|
118
118
|
source?: string | undefined;
|
|
119
119
|
blacklistReason?: string | null | undefined;
|
|
120
120
|
}>, {
|
|
121
|
-
phoneNumber?: string | undefined;
|
|
122
121
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
123
122
|
name?: string | undefined;
|
|
123
|
+
phoneNumber?: string | undefined;
|
|
124
124
|
source?: string | undefined;
|
|
125
125
|
blacklistReason?: string | null | undefined;
|
|
126
126
|
}, {
|
|
127
|
-
phoneNumber?: string | undefined;
|
|
128
127
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
129
128
|
name?: string | undefined;
|
|
129
|
+
phoneNumber?: string | 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
|
-
phoneNumber?: string | null | undefined;
|
|
155
154
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
156
155
|
name?: string | null | undefined;
|
|
156
|
+
sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "phoneNumber" | "source" | "qualityScore" | null | undefined;
|
|
157
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
158
|
+
phoneNumber?: string | 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?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
164
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
165
165
|
}, {
|
|
166
|
-
phoneNumber?: string | null | undefined;
|
|
167
166
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
168
167
|
limit?: number | undefined;
|
|
169
168
|
page?: number | undefined;
|
|
170
169
|
name?: string | null | undefined;
|
|
170
|
+
sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "phoneNumber" | "source" | "qualityScore" | null | undefined;
|
|
171
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
172
|
+
phoneNumber?: string | null | undefined;
|
|
171
173
|
source?: string | null | undefined;
|
|
172
174
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | 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?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
178
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
179
179
|
}>;
|
|
180
180
|
/**
|
|
181
181
|
* Call History Response Schema for leads
|
|
@@ -193,27 +193,27 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
193
193
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
194
194
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
195
195
|
}, "strip", z.ZodTypeAny, {
|
|
196
|
-
id: string;
|
|
197
196
|
createdAt: string;
|
|
197
|
+
id: string;
|
|
198
198
|
updatedAt: string;
|
|
199
|
-
assignmentId: string;
|
|
200
|
-
leadId: 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
|
-
id: string;
|
|
209
208
|
createdAt: string | Date;
|
|
209
|
+
id: string;
|
|
210
210
|
updatedAt: string | Date;
|
|
211
|
-
assignmentId: string;
|
|
212
|
-
leadId: string;
|
|
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
|
-
id: string;
|
|
299
|
-
phoneNumber: string;
|
|
300
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
301
298
|
createdAt: string;
|
|
299
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
300
|
+
id: string;
|
|
302
301
|
updatedAt: string;
|
|
303
302
|
name: string;
|
|
303
|
+
phoneNumber: string;
|
|
304
304
|
source: 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
|
-
id: string;
|
|
312
|
-
phoneNumber: string;
|
|
313
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
314
311
|
createdAt: string | Date;
|
|
312
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
313
|
+
id: string;
|
|
315
314
|
updatedAt: string | Date;
|
|
316
315
|
name: string;
|
|
316
|
+
phoneNumber: string;
|
|
317
317
|
source: 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
|
-
id: string;
|
|
333
|
-
phoneNumber: string;
|
|
334
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
335
332
|
createdAt: string;
|
|
333
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
334
|
+
id: string;
|
|
336
335
|
updatedAt: string;
|
|
337
336
|
name: string;
|
|
337
|
+
phoneNumber: string;
|
|
338
338
|
source: 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
|
-
id: string;
|
|
353
|
-
phoneNumber: string;
|
|
354
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
355
352
|
createdAt: string | Date;
|
|
353
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
354
|
+
id: string;
|
|
356
355
|
updatedAt: string | Date;
|
|
357
356
|
name: string;
|
|
357
|
+
phoneNumber: string;
|
|
358
358
|
source: 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
|
}[];
|
|
@@ -393,29 +393,29 @@ export declare const leadsContractRouter: {
|
|
|
393
393
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
394
394
|
source: z.ZodString;
|
|
395
395
|
}, "strip", z.ZodTypeAny, {
|
|
396
|
-
phoneNumber: string;
|
|
397
396
|
name: string;
|
|
397
|
+
phoneNumber: string;
|
|
398
398
|
source: string;
|
|
399
399
|
isBlacklisted: boolean;
|
|
400
400
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
401
401
|
blacklistReason?: string | null | undefined;
|
|
402
402
|
}, {
|
|
403
|
-
phoneNumber: string;
|
|
404
403
|
name: string;
|
|
404
|
+
phoneNumber: string;
|
|
405
405
|
source: string;
|
|
406
406
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
407
407
|
blacklistReason?: string | null | undefined;
|
|
408
408
|
isBlacklisted?: boolean | undefined;
|
|
409
409
|
}>, {
|
|
410
|
-
phoneNumber: string;
|
|
411
410
|
name: string;
|
|
411
|
+
phoneNumber: string;
|
|
412
412
|
source: string;
|
|
413
413
|
isBlacklisted: boolean;
|
|
414
414
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
415
415
|
blacklistReason?: string | null | undefined;
|
|
416
416
|
}, {
|
|
417
|
-
phoneNumber: string;
|
|
418
417
|
name: string;
|
|
418
|
+
phoneNumber: string;
|
|
419
419
|
source: string;
|
|
420
420
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
421
421
|
blacklistReason?: string | null | undefined;
|
|
@@ -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
|
-
id: string;
|
|
541
|
-
phoneNumber: string;
|
|
542
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
543
540
|
createdAt: string;
|
|
541
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
542
|
+
id: string;
|
|
544
543
|
updatedAt: string;
|
|
545
544
|
name: string;
|
|
545
|
+
phoneNumber: string;
|
|
546
546
|
source: 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
|
-
id: string;
|
|
554
|
-
phoneNumber: string;
|
|
555
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
556
553
|
createdAt: string | Date;
|
|
554
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
555
|
+
id: string;
|
|
557
556
|
updatedAt: string | Date;
|
|
558
557
|
name: string;
|
|
558
|
+
phoneNumber: string;
|
|
559
559
|
source: 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
|
}>;
|
|
@@ -591,6 +591,12 @@ export declare const leadsContractRouter: {
|
|
|
591
591
|
};
|
|
592
592
|
};
|
|
593
593
|
findAll: {
|
|
594
|
+
metadata: {
|
|
595
|
+
tags: string[];
|
|
596
|
+
openApi: {
|
|
597
|
+
operationId: string;
|
|
598
|
+
};
|
|
599
|
+
};
|
|
594
600
|
query: z.ZodObject<{
|
|
595
601
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
596
602
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -609,38 +615,32 @@ export declare const leadsContractRouter: {
|
|
|
609
615
|
}, "strip", z.ZodTypeAny, {
|
|
610
616
|
limit: number;
|
|
611
617
|
page: number;
|
|
612
|
-
phoneNumber?: string | null | undefined;
|
|
613
618
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
614
619
|
name?: string | null | undefined;
|
|
620
|
+
sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "phoneNumber" | "source" | "qualityScore" | null | undefined;
|
|
621
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
622
|
+
phoneNumber?: string | null | undefined;
|
|
615
623
|
source?: string | null | undefined;
|
|
616
624
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
617
625
|
minQualityScore?: number | null | undefined;
|
|
618
626
|
maxQualityScore?: number | null | undefined;
|
|
619
627
|
minConversionRate?: number | null | undefined;
|
|
620
628
|
minTotalCalls?: number | null | undefined;
|
|
621
|
-
sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
622
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
623
629
|
}, {
|
|
624
|
-
phoneNumber?: string | null | undefined;
|
|
625
630
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
626
631
|
limit?: number | undefined;
|
|
627
632
|
page?: number | undefined;
|
|
628
633
|
name?: string | null | undefined;
|
|
634
|
+
sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "phoneNumber" | "source" | "qualityScore" | null | undefined;
|
|
635
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
636
|
+
phoneNumber?: string | null | undefined;
|
|
629
637
|
source?: string | null | undefined;
|
|
630
638
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
631
639
|
minQualityScore?: number | null | undefined;
|
|
632
640
|
maxQualityScore?: number | null | undefined;
|
|
633
641
|
minConversionRate?: number | null | undefined;
|
|
634
642
|
minTotalCalls?: number | null | undefined;
|
|
635
|
-
sortBy?: "phoneNumber" | "status" | "createdAt" | "updatedAt" | "name" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
636
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
637
643
|
}>;
|
|
638
|
-
metadata: {
|
|
639
|
-
tags: string[];
|
|
640
|
-
openApi: {
|
|
641
|
-
operationId: string;
|
|
642
|
-
};
|
|
643
|
-
};
|
|
644
644
|
summary: "Get all leads";
|
|
645
645
|
method: "GET";
|
|
646
646
|
path: "/v2/leads";
|
|
@@ -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
|
-
id: string;
|
|
764
|
-
phoneNumber: string;
|
|
765
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
766
763
|
createdAt: string;
|
|
764
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
765
|
+
id: string;
|
|
767
766
|
updatedAt: string;
|
|
768
767
|
name: string;
|
|
768
|
+
phoneNumber: string;
|
|
769
769
|
source: 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
|
-
id: string;
|
|
777
|
-
phoneNumber: string;
|
|
778
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
779
776
|
createdAt: string | Date;
|
|
777
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
778
|
+
id: string;
|
|
780
779
|
updatedAt: string | Date;
|
|
781
780
|
name: string;
|
|
781
|
+
phoneNumber: string;
|
|
782
782
|
source: 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
|
-
id: string;
|
|
798
|
-
phoneNumber: string;
|
|
799
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
800
797
|
createdAt: string;
|
|
798
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
799
|
+
id: string;
|
|
801
800
|
updatedAt: string;
|
|
802
801
|
name: string;
|
|
802
|
+
phoneNumber: string;
|
|
803
803
|
source: 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
|
-
id: string;
|
|
818
|
-
phoneNumber: string;
|
|
819
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
820
817
|
createdAt: string | Date;
|
|
818
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
819
|
+
id: string;
|
|
821
820
|
updatedAt: string | Date;
|
|
822
821
|
name: string;
|
|
822
|
+
phoneNumber: string;
|
|
823
823
|
source: 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
|
}[];
|
|
@@ -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
|
-
id: string;
|
|
970
|
-
phoneNumber: string;
|
|
971
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
972
969
|
createdAt: string;
|
|
970
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
971
|
+
id: string;
|
|
973
972
|
updatedAt: string;
|
|
974
973
|
name: string;
|
|
974
|
+
phoneNumber: string;
|
|
975
975
|
source: 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
|
-
id: string;
|
|
983
|
-
phoneNumber: string;
|
|
984
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
985
982
|
createdAt: string | Date;
|
|
983
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
984
|
+
id: string;
|
|
986
985
|
updatedAt: string | Date;
|
|
987
986
|
name: string;
|
|
987
|
+
phoneNumber: string;
|
|
988
988
|
source: 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,27 +1042,27 @@ 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
|
-
phoneNumber?: string | undefined;
|
|
1046
1045
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1047
1046
|
name?: string | undefined;
|
|
1047
|
+
phoneNumber?: string | undefined;
|
|
1048
1048
|
source?: string | undefined;
|
|
1049
1049
|
blacklistReason?: string | null | undefined;
|
|
1050
1050
|
}, {
|
|
1051
|
-
phoneNumber?: string | undefined;
|
|
1052
1051
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1053
1052
|
name?: string | undefined;
|
|
1053
|
+
phoneNumber?: string | undefined;
|
|
1054
1054
|
source?: string | undefined;
|
|
1055
1055
|
blacklistReason?: string | null | undefined;
|
|
1056
1056
|
}>, {
|
|
1057
|
-
phoneNumber?: string | undefined;
|
|
1058
1057
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1059
1058
|
name?: string | undefined;
|
|
1059
|
+
phoneNumber?: string | undefined;
|
|
1060
1060
|
source?: string | undefined;
|
|
1061
1061
|
blacklistReason?: string | null | undefined;
|
|
1062
1062
|
}, {
|
|
1063
|
-
phoneNumber?: string | undefined;
|
|
1064
1063
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1065
1064
|
name?: string | undefined;
|
|
1065
|
+
phoneNumber?: string | undefined;
|
|
1066
1066
|
source?: string | undefined;
|
|
1067
1067
|
blacklistReason?: string | null | undefined;
|
|
1068
1068
|
}>;
|
|
@@ -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
|
-
id: string;
|
|
1186
|
-
phoneNumber: string;
|
|
1187
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1188
1185
|
createdAt: string;
|
|
1186
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1187
|
+
id: string;
|
|
1189
1188
|
updatedAt: string;
|
|
1190
1189
|
name: string;
|
|
1190
|
+
phoneNumber: string;
|
|
1191
1191
|
source: 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
|
-
id: string;
|
|
1199
|
-
phoneNumber: string;
|
|
1200
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1201
1198
|
createdAt: string | Date;
|
|
1199
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1200
|
+
id: string;
|
|
1202
1201
|
updatedAt: string | Date;
|
|
1203
1202
|
name: string;
|
|
1203
|
+
phoneNumber: string;
|
|
1204
1204
|
source: 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
|
}>;
|
|
@@ -1429,14 +1429,14 @@ 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";
|
|
@@ -1554,40 +1554,40 @@ export declare const leadsContractRouter: {
|
|
|
1554
1554
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1555
1555
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1556
1556
|
}, "strip", z.ZodTypeAny, {
|
|
1557
|
-
id: string;
|
|
1558
1557
|
createdAt: string;
|
|
1558
|
+
id: string;
|
|
1559
1559
|
updatedAt: string;
|
|
1560
|
-
assignmentId: string;
|
|
1561
|
-
leadId: 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
|
-
id: string;
|
|
1570
1569
|
createdAt: string | Date;
|
|
1570
|
+
id: string;
|
|
1571
1571
|
updatedAt: string | Date;
|
|
1572
|
-
assignmentId: string;
|
|
1573
|
-
leadId: string;
|
|
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
|
}>;
|
|
1581
1581
|
};
|
|
1582
1582
|
};
|
|
1583
1583
|
getQualityDashboard: {
|
|
1584
|
-
query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1585
1584
|
metadata: {
|
|
1586
1585
|
tags: string[];
|
|
1587
1586
|
openApi: {
|
|
1588
1587
|
operationId: string;
|
|
1589
1588
|
};
|
|
1590
1589
|
};
|
|
1590
|
+
query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1591
1591
|
summary: "Get lead quality analytics dashboard";
|
|
1592
1592
|
method: "GET";
|
|
1593
1593
|
path: "/v2/leads/analytics/quality-dashboard";
|