@dakkitor/api-contracts 1.1.127 → 1.1.129
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/admin.abilities.json +4 -0
- package/dist/abilities/kpi.abilities.json +9 -0
- package/dist/actives/actives.contract.d.ts +4811 -3339
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +721 -351
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.d.ts +16 -16
- package/dist/bookings/bookings.contract.d.ts +18386 -12658
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +706 -428
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.d.ts +356 -356
- package/dist/clients/clients.contract.d.ts +106 -106
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1813 -1197
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +1629 -1024
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.d.ts +350 -350
- package/dist/dashboards/dashboard-widgets.contract.d.ts +52 -52
- package/dist/dashboards/dashboard.contract.d.ts +26 -26
- package/dist/index.d.ts +66 -63
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/jobs/jobs.contract.d.ts +3290 -2230
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.d.ts +636 -332
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +296 -144
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.d.ts +122 -122
- package/dist/monitoring/monitoring.contract.d.ts +615 -0
- package/dist/monitoring/monitoring.contract.d.ts.map +1 -0
- package/dist/monitoring/monitoring.contract.js +106 -0
- package/dist/users/users.contract.d.ts +322 -158
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +133 -125
- package/dist/workers/workers.contract.d.ts +630 -412
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-lead-distribution.contract.d.ts","sourceRoot":"","sources":["../../contracts/lead-distribution/agent-lead-distribution.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,iCAAiC,gDAEM,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBM,CAAC;AAE/C,eAAO,MAAM,oCAAoC
|
|
1
|
+
{"version":3,"file":"agent-lead-distribution.contract.d.ts","sourceRoot":"","sources":["../../contracts/lead-distribution/agent-lead-distribution.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,iCAAiC,gDAEM,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBM,CAAC;AAE/C,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIQ,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFzC,CAAC"}
|
|
@@ -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;
|
|
34
35
|
id: string;
|
|
35
|
-
|
|
36
|
+
phoneNumber: string;
|
|
36
37
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
37
|
-
createdAt: string;
|
|
38
38
|
updatedAt: string;
|
|
39
|
-
|
|
39
|
+
name: 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
|
+
createdAt: string | Date;
|
|
47
48
|
id: string;
|
|
48
|
-
|
|
49
|
+
phoneNumber: string;
|
|
49
50
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
50
|
-
createdAt: string | Date;
|
|
51
51
|
updatedAt: string | Date;
|
|
52
|
-
|
|
52
|
+
name: 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
|
-
name: string;
|
|
72
71
|
phoneNumber: string;
|
|
72
|
+
name: 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
|
-
name: string;
|
|
79
78
|
phoneNumber: string;
|
|
79
|
+
name: 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
|
-
name: string;
|
|
86
85
|
phoneNumber: string;
|
|
86
|
+
name: 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
|
-
name: string;
|
|
93
92
|
phoneNumber: string;
|
|
93
|
+
name: 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
|
-
name?: string | undefined;
|
|
110
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
111
109
|
phoneNumber?: string | undefined;
|
|
110
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
111
|
+
name?: string | undefined;
|
|
112
112
|
source?: string | undefined;
|
|
113
113
|
blacklistReason?: string | null | undefined;
|
|
114
114
|
}, {
|
|
115
|
-
name?: string | undefined;
|
|
116
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
117
115
|
phoneNumber?: string | undefined;
|
|
116
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
117
|
+
name?: string | undefined;
|
|
118
118
|
source?: string | undefined;
|
|
119
119
|
blacklistReason?: string | null | undefined;
|
|
120
120
|
}>, {
|
|
121
|
-
name?: string | undefined;
|
|
122
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
123
121
|
phoneNumber?: string | undefined;
|
|
122
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
123
|
+
name?: string | undefined;
|
|
124
124
|
source?: string | undefined;
|
|
125
125
|
blacklistReason?: string | null | undefined;
|
|
126
126
|
}, {
|
|
127
|
-
name?: string | undefined;
|
|
128
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
129
127
|
phoneNumber?: string | undefined;
|
|
128
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
129
|
+
name?: 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
|
-
name?: string | null | undefined;
|
|
155
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
156
154
|
phoneNumber?: string | null | undefined;
|
|
155
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
156
|
+
name?: string | null | undefined;
|
|
157
|
+
sortBy?: "createdAt" | "phoneNumber" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
|
|
158
|
+
sortOrder?: "ASC" | "DESC" | 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" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
164
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
165
165
|
}, {
|
|
166
|
-
|
|
166
|
+
phoneNumber?: string | null | undefined;
|
|
167
167
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
168
168
|
limit?: number | undefined;
|
|
169
169
|
page?: number | undefined;
|
|
170
|
-
|
|
170
|
+
name?: string | null | undefined;
|
|
171
|
+
sortBy?: "createdAt" | "phoneNumber" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
|
|
172
|
+
sortOrder?: "ASC" | "DESC" | 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?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "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
|
+
createdAt: string;
|
|
298
299
|
id: string;
|
|
299
|
-
|
|
300
|
+
phoneNumber: string;
|
|
300
301
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
301
|
-
createdAt: string;
|
|
302
302
|
updatedAt: string;
|
|
303
|
-
|
|
303
|
+
name: 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
|
+
createdAt: string | Date;
|
|
311
312
|
id: string;
|
|
312
|
-
|
|
313
|
+
phoneNumber: string;
|
|
313
314
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
314
|
-
createdAt: string | Date;
|
|
315
315
|
updatedAt: string | Date;
|
|
316
|
-
|
|
316
|
+
name: 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
|
+
createdAt: string;
|
|
332
333
|
id: string;
|
|
333
|
-
|
|
334
|
+
phoneNumber: string;
|
|
334
335
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
335
|
-
createdAt: string;
|
|
336
336
|
updatedAt: string;
|
|
337
|
-
|
|
337
|
+
name: 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
|
+
createdAt: string | Date;
|
|
352
353
|
id: string;
|
|
353
|
-
|
|
354
|
+
phoneNumber: string;
|
|
354
355
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
355
|
-
createdAt: string | Date;
|
|
356
356
|
updatedAt: string | Date;
|
|
357
|
-
|
|
357
|
+
name: 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
|
-
name: string;
|
|
397
396
|
phoneNumber: string;
|
|
397
|
+
name: 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
|
-
name: string;
|
|
404
403
|
phoneNumber: string;
|
|
404
|
+
name: 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
|
-
name: string;
|
|
411
410
|
phoneNumber: string;
|
|
411
|
+
name: 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
|
-
name: string;
|
|
418
417
|
phoneNumber: string;
|
|
418
|
+
name: 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
|
+
createdAt: string;
|
|
540
541
|
id: string;
|
|
541
|
-
|
|
542
|
+
phoneNumber: string;
|
|
542
543
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
543
|
-
createdAt: string;
|
|
544
544
|
updatedAt: string;
|
|
545
|
-
|
|
545
|
+
name: 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
|
+
createdAt: string | Date;
|
|
553
554
|
id: string;
|
|
554
|
-
|
|
555
|
+
phoneNumber: string;
|
|
555
556
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
556
|
-
createdAt: string | Date;
|
|
557
557
|
updatedAt: string | Date;
|
|
558
|
-
|
|
558
|
+
name: 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
|
}>;
|
|
@@ -615,31 +615,31 @@ export declare const leadsContractRouter: {
|
|
|
615
615
|
}, "strip", z.ZodTypeAny, {
|
|
616
616
|
limit: number;
|
|
617
617
|
page: number;
|
|
618
|
-
name?: string | null | undefined;
|
|
619
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
620
618
|
phoneNumber?: string | null | undefined;
|
|
619
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
620
|
+
name?: string | null | undefined;
|
|
621
|
+
sortBy?: "createdAt" | "phoneNumber" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
|
|
622
|
+
sortOrder?: "ASC" | "DESC" | 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" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
628
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
629
629
|
}, {
|
|
630
|
-
|
|
630
|
+
phoneNumber?: string | null | undefined;
|
|
631
631
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
632
632
|
limit?: number | undefined;
|
|
633
633
|
page?: number | undefined;
|
|
634
|
-
|
|
634
|
+
name?: string | null | undefined;
|
|
635
|
+
sortBy?: "createdAt" | "phoneNumber" | "status" | "updatedAt" | "name" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
|
|
636
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
635
637
|
source?: string | null | undefined;
|
|
636
638
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | 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" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
642
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
643
643
|
}>;
|
|
644
644
|
summary: "Get all leads";
|
|
645
645
|
method: "GET";
|
|
@@ -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;
|
|
763
764
|
id: string;
|
|
764
|
-
|
|
765
|
+
phoneNumber: string;
|
|
765
766
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
766
|
-
createdAt: string;
|
|
767
767
|
updatedAt: string;
|
|
768
|
-
|
|
768
|
+
name: 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
|
+
createdAt: string | Date;
|
|
776
777
|
id: string;
|
|
777
|
-
|
|
778
|
+
phoneNumber: string;
|
|
778
779
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
779
|
-
createdAt: string | Date;
|
|
780
780
|
updatedAt: string | Date;
|
|
781
|
-
|
|
781
|
+
name: 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
|
+
createdAt: string;
|
|
797
798
|
id: string;
|
|
798
|
-
|
|
799
|
+
phoneNumber: string;
|
|
799
800
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
800
|
-
createdAt: string;
|
|
801
801
|
updatedAt: string;
|
|
802
|
-
|
|
802
|
+
name: 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
|
+
createdAt: string | Date;
|
|
817
818
|
id: string;
|
|
818
|
-
|
|
819
|
+
phoneNumber: string;
|
|
819
820
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
820
|
-
createdAt: string | Date;
|
|
821
821
|
updatedAt: string | Date;
|
|
822
|
-
|
|
822
|
+
name: 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
|
+
createdAt: string;
|
|
969
970
|
id: string;
|
|
970
|
-
|
|
971
|
+
phoneNumber: string;
|
|
971
972
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
972
|
-
createdAt: string;
|
|
973
973
|
updatedAt: string;
|
|
974
|
-
|
|
974
|
+
name: 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
|
+
createdAt: string | Date;
|
|
982
983
|
id: string;
|
|
983
|
-
|
|
984
|
+
phoneNumber: string;
|
|
984
985
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
985
|
-
createdAt: string | Date;
|
|
986
986
|
updatedAt: string | Date;
|
|
987
|
-
|
|
987
|
+
name: 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
|
-
name?: string | undefined;
|
|
1046
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1047
1045
|
phoneNumber?: string | undefined;
|
|
1046
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1047
|
+
name?: string | undefined;
|
|
1048
1048
|
source?: string | undefined;
|
|
1049
1049
|
blacklistReason?: string | null | undefined;
|
|
1050
1050
|
}, {
|
|
1051
|
-
name?: string | undefined;
|
|
1052
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1053
1051
|
phoneNumber?: string | undefined;
|
|
1052
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1053
|
+
name?: string | undefined;
|
|
1054
1054
|
source?: string | undefined;
|
|
1055
1055
|
blacklistReason?: string | null | undefined;
|
|
1056
1056
|
}>, {
|
|
1057
|
-
name?: string | undefined;
|
|
1058
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1059
1057
|
phoneNumber?: string | undefined;
|
|
1058
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1059
|
+
name?: string | undefined;
|
|
1060
1060
|
source?: string | undefined;
|
|
1061
1061
|
blacklistReason?: string | null | undefined;
|
|
1062
1062
|
}, {
|
|
1063
|
-
name?: string | undefined;
|
|
1064
|
-
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1065
1063
|
phoneNumber?: string | undefined;
|
|
1064
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1065
|
+
name?: 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
|
+
createdAt: string;
|
|
1185
1186
|
id: string;
|
|
1186
|
-
|
|
1187
|
+
phoneNumber: string;
|
|
1187
1188
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1188
|
-
createdAt: string;
|
|
1189
1189
|
updatedAt: string;
|
|
1190
|
-
|
|
1190
|
+
name: 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
|
+
createdAt: string | Date;
|
|
1198
1199
|
id: string;
|
|
1199
|
-
|
|
1200
|
+
phoneNumber: string;
|
|
1200
1201
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1201
|
-
createdAt: string | Date;
|
|
1202
1202
|
updatedAt: string | Date;
|
|
1203
|
-
|
|
1203
|
+
name: 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,27 +1554,27 @@ 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
|
}>;
|