@dakkitor/api-contracts 1.1.126 → 1.1.128
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/actives/actives.contract.d.ts +3851 -3851
- package/dist/agent-client-links/agent-client-links.contract.d.ts +538 -538
- package/dist/bookings/bookings.contract.d.ts +14861 -14861
- package/dist/call-history/call-history.contract.d.ts +183 -183
- package/dist/client-contacts/client-contacts.contract.d.ts +502 -502
- package/dist/clients/clients.contract.d.ts +172 -172
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1558 -1558
- package/dist/collaborations/collaborations.contract.d.ts +1316 -1316
- package/dist/common/common-schemas.d.ts +8 -8
- package/dist/companies/companies.contract.d.ts +12 -12
- package/dist/cron-executions/cron-executions.contract.d.ts +6 -6
- package/dist/curated-workers/curated-workers.contract.d.ts +450 -450
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +4 -2
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +3 -3
- package/dist/dashboards/dashboard-widgets.contract.d.ts +54 -54
- package/dist/dashboards/dashboard.contract.d.ts +34 -34
- package/dist/files/files.contract.d.ts +24 -24
- 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 +1717 -1717
- package/dist/lead-assignments/lead-assignments.contract.d.ts +66 -66
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +53 -53
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +7 -7
- package/dist/leads/leads.contract.d.ts +161 -161
- package/dist/locations/locations.contract.d.ts +21 -21
- 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/postcodes/postcodes.contract.d.ts +18 -18
- package/dist/qualifications/qualifications.contract.d.ts +22 -22
- package/dist/trades/trades.contract.d.ts +16 -16
- package/dist/users/users.contract.d.ts +36 -36
- package/dist/workers/workers.contract.d.ts +651 -651
- package/package.json +1 -1
|
@@ -32,29 +32,29 @@ export declare const LeadSchema: z.ZodObject<{
|
|
|
32
32
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
id: string;
|
|
35
|
-
phoneNumber: string;
|
|
36
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
37
35
|
name: string;
|
|
36
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
38
37
|
createdAt: string;
|
|
39
38
|
updatedAt: string;
|
|
39
|
+
phoneNumber: string;
|
|
40
40
|
source: string;
|
|
41
|
-
blacklistReason?: string | null | undefined;
|
|
42
|
-
totalCalls?: number | null | undefined;
|
|
43
|
-
conversionRate?: number | null | undefined;
|
|
44
41
|
qualityScore?: number | null | undefined;
|
|
42
|
+
conversionRate?: number | null | undefined;
|
|
43
|
+
totalCalls?: number | null | undefined;
|
|
44
|
+
blacklistReason?: string | null | undefined;
|
|
45
45
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
id: string;
|
|
48
|
-
phoneNumber: string;
|
|
49
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
50
48
|
name: string;
|
|
49
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
51
50
|
createdAt: string | Date;
|
|
52
51
|
updatedAt: string | Date;
|
|
52
|
+
phoneNumber: string;
|
|
53
53
|
source: string;
|
|
54
|
-
blacklistReason?: string | null | undefined;
|
|
55
|
-
totalCalls?: number | null | undefined;
|
|
56
|
-
conversionRate?: number | null | undefined;
|
|
57
54
|
qualityScore?: number | null | undefined;
|
|
55
|
+
conversionRate?: number | null | undefined;
|
|
56
|
+
totalCalls?: number | null | undefined;
|
|
57
|
+
blacklistReason?: string | null | undefined;
|
|
58
58
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
/**
|
|
@@ -68,31 +68,31 @@ 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
|
-
status?: "
|
|
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
|
-
status?: "
|
|
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
|
-
status?: "
|
|
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
|
-
status?: "
|
|
95
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
96
96
|
blacklistReason?: string | null | undefined;
|
|
97
97
|
isBlacklisted?: boolean | undefined;
|
|
98
98
|
}>;
|
|
@@ -106,29 +106,29 @@ 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
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
111
109
|
name?: string | undefined;
|
|
112
|
-
|
|
110
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
111
|
+
phoneNumber?: string | undefined;
|
|
113
112
|
source?: string | undefined;
|
|
113
|
+
blacklistReason?: string | null | undefined;
|
|
114
114
|
}, {
|
|
115
|
-
phoneNumber?: string | undefined;
|
|
116
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
117
115
|
name?: string | undefined;
|
|
118
|
-
|
|
116
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
117
|
+
phoneNumber?: string | undefined;
|
|
119
118
|
source?: string | undefined;
|
|
119
|
+
blacklistReason?: string | null | undefined;
|
|
120
120
|
}>, {
|
|
121
|
-
phoneNumber?: string | undefined;
|
|
122
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
123
121
|
name?: string | undefined;
|
|
124
|
-
|
|
122
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
123
|
+
phoneNumber?: string | undefined;
|
|
125
124
|
source?: string | undefined;
|
|
125
|
+
blacklistReason?: string | null | undefined;
|
|
126
126
|
}, {
|
|
127
|
-
phoneNumber?: string | undefined;
|
|
128
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
129
127
|
name?: string | undefined;
|
|
130
|
-
|
|
128
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
129
|
+
phoneNumber?: string | undefined;
|
|
131
130
|
source?: string | undefined;
|
|
131
|
+
blacklistReason?: string | null | undefined;
|
|
132
132
|
}>;
|
|
133
133
|
/**
|
|
134
134
|
* Filter Lead Schema
|
|
@@ -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
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
|
|
156
154
|
name?: string | null | undefined;
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
156
|
+
phoneNumber?: string | null | undefined;
|
|
159
157
|
source?: string | null | undefined;
|
|
160
158
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
161
159
|
minQualityScore?: number | null | undefined;
|
|
162
160
|
maxQualityScore?: number | null | undefined;
|
|
163
161
|
minConversionRate?: number | null | undefined;
|
|
164
162
|
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
|
-
phoneNumber?: string | null | undefined;
|
|
167
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
|
|
168
166
|
name?: string | null | undefined;
|
|
167
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
169
168
|
limit?: number | undefined;
|
|
170
169
|
page?: number | undefined;
|
|
171
|
-
|
|
172
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
170
|
+
phoneNumber?: string | null | undefined;
|
|
173
171
|
source?: string | null | undefined;
|
|
174
172
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
175
173
|
minQualityScore?: number | null | undefined;
|
|
176
174
|
maxQualityScore?: number | null | undefined;
|
|
177
175
|
minConversionRate?: number | null | undefined;
|
|
178
176
|
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
|
|
@@ -196,25 +196,25 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
196
196
|
id: string;
|
|
197
197
|
createdAt: string;
|
|
198
198
|
updatedAt: string;
|
|
199
|
-
|
|
200
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
199
|
+
assignmentId: string;
|
|
201
200
|
leadId: string;
|
|
201
|
+
agentId: string;
|
|
202
202
|
callDate: string;
|
|
203
|
-
ratingWeight: number;
|
|
204
|
-
assignmentId: string;
|
|
205
203
|
callType: import("../call-history/call-history.contract").CallType;
|
|
204
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
205
|
+
ratingWeight: number;
|
|
206
206
|
notes?: string | null | undefined;
|
|
207
207
|
}, {
|
|
208
208
|
id: string;
|
|
209
209
|
createdAt: string | Date;
|
|
210
210
|
updatedAt: string | Date;
|
|
211
|
-
|
|
212
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
211
|
+
assignmentId: string;
|
|
213
212
|
leadId: string;
|
|
213
|
+
agentId: string;
|
|
214
214
|
callDate: string | Date;
|
|
215
|
-
ratingWeight: number;
|
|
216
|
-
assignmentId: string;
|
|
217
215
|
callType: import("../call-history/call-history.contract").CallType;
|
|
216
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
217
|
+
ratingWeight: number;
|
|
218
218
|
notes?: string | null | undefined;
|
|
219
219
|
}>;
|
|
220
220
|
/**
|
|
@@ -296,29 +296,29 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
296
296
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
297
297
|
}, "strip", z.ZodTypeAny, {
|
|
298
298
|
id: string;
|
|
299
|
-
phoneNumber: string;
|
|
300
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
301
299
|
name: string;
|
|
300
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
302
301
|
createdAt: string;
|
|
303
302
|
updatedAt: string;
|
|
303
|
+
phoneNumber: string;
|
|
304
304
|
source: string;
|
|
305
|
-
blacklistReason?: string | null | undefined;
|
|
306
|
-
totalCalls?: number | null | undefined;
|
|
307
|
-
conversionRate?: number | null | undefined;
|
|
308
305
|
qualityScore?: number | null | undefined;
|
|
306
|
+
conversionRate?: number | null | undefined;
|
|
307
|
+
totalCalls?: number | null | undefined;
|
|
308
|
+
blacklistReason?: string | null | undefined;
|
|
309
309
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
310
310
|
}, {
|
|
311
311
|
id: string;
|
|
312
|
-
phoneNumber: string;
|
|
313
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
314
312
|
name: string;
|
|
313
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
315
314
|
createdAt: string | Date;
|
|
316
315
|
updatedAt: string | Date;
|
|
316
|
+
phoneNumber: string;
|
|
317
317
|
source: string;
|
|
318
|
-
blacklistReason?: string | null | undefined;
|
|
319
|
-
totalCalls?: number | null | undefined;
|
|
320
|
-
conversionRate?: number | null | undefined;
|
|
321
318
|
qualityScore?: number | null | undefined;
|
|
319
|
+
conversionRate?: number | null | undefined;
|
|
320
|
+
totalCalls?: number | null | undefined;
|
|
321
|
+
blacklistReason?: string | null | undefined;
|
|
322
322
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
323
323
|
}>, "many">;
|
|
324
324
|
totalCount: z.ZodNumber;
|
|
@@ -330,16 +330,16 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
330
330
|
limit: number;
|
|
331
331
|
items: {
|
|
332
332
|
id: string;
|
|
333
|
-
phoneNumber: string;
|
|
334
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
335
333
|
name: string;
|
|
334
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
336
335
|
createdAt: string;
|
|
337
336
|
updatedAt: string;
|
|
337
|
+
phoneNumber: string;
|
|
338
338
|
source: string;
|
|
339
|
-
blacklistReason?: string | null | undefined;
|
|
340
|
-
totalCalls?: number | null | undefined;
|
|
341
|
-
conversionRate?: number | null | undefined;
|
|
342
339
|
qualityScore?: number | null | undefined;
|
|
340
|
+
conversionRate?: number | null | undefined;
|
|
341
|
+
totalCalls?: number | null | undefined;
|
|
342
|
+
blacklistReason?: string | null | undefined;
|
|
343
343
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
344
344
|
}[];
|
|
345
345
|
totalCount: number;
|
|
@@ -350,16 +350,16 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
350
350
|
limit: number;
|
|
351
351
|
items: {
|
|
352
352
|
id: string;
|
|
353
|
-
phoneNumber: string;
|
|
354
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
355
353
|
name: string;
|
|
354
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
356
355
|
createdAt: string | Date;
|
|
357
356
|
updatedAt: string | Date;
|
|
357
|
+
phoneNumber: string;
|
|
358
358
|
source: string;
|
|
359
|
-
blacklistReason?: string | null | undefined;
|
|
360
|
-
totalCalls?: number | null | undefined;
|
|
361
|
-
conversionRate?: number | null | undefined;
|
|
362
359
|
qualityScore?: number | null | undefined;
|
|
360
|
+
conversionRate?: number | null | undefined;
|
|
361
|
+
totalCalls?: number | null | undefined;
|
|
362
|
+
blacklistReason?: string | null | undefined;
|
|
363
363
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
364
364
|
}[];
|
|
365
365
|
totalCount: number;
|
|
@@ -393,31 +393,31 @@ 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
|
-
status?: "
|
|
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
|
-
status?: "
|
|
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
|
-
status?: "
|
|
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
|
-
status?: "
|
|
420
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
421
421
|
blacklistReason?: string | null | undefined;
|
|
422
422
|
isBlacklisted?: boolean | undefined;
|
|
423
423
|
}>;
|
|
@@ -538,29 +538,29 @@ export declare const leadsContractRouter: {
|
|
|
538
538
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
539
539
|
}, "strip", z.ZodTypeAny, {
|
|
540
540
|
id: string;
|
|
541
|
-
phoneNumber: string;
|
|
542
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
543
541
|
name: string;
|
|
542
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
544
543
|
createdAt: string;
|
|
545
544
|
updatedAt: string;
|
|
545
|
+
phoneNumber: string;
|
|
546
546
|
source: string;
|
|
547
|
-
blacklistReason?: string | null | undefined;
|
|
548
|
-
totalCalls?: number | null | undefined;
|
|
549
|
-
conversionRate?: number | null | undefined;
|
|
550
547
|
qualityScore?: number | null | undefined;
|
|
548
|
+
conversionRate?: number | null | undefined;
|
|
549
|
+
totalCalls?: number | null | undefined;
|
|
550
|
+
blacklistReason?: string | null | undefined;
|
|
551
551
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
552
552
|
}, {
|
|
553
553
|
id: string;
|
|
554
|
-
phoneNumber: string;
|
|
555
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
556
554
|
name: string;
|
|
555
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
557
556
|
createdAt: string | Date;
|
|
558
557
|
updatedAt: string | Date;
|
|
558
|
+
phoneNumber: string;
|
|
559
559
|
source: string;
|
|
560
|
-
blacklistReason?: string | null | undefined;
|
|
561
|
-
totalCalls?: number | null | undefined;
|
|
562
|
-
conversionRate?: number | null | undefined;
|
|
563
560
|
qualityScore?: number | null | undefined;
|
|
561
|
+
conversionRate?: number | null | undefined;
|
|
562
|
+
totalCalls?: number | null | undefined;
|
|
563
|
+
blacklistReason?: string | null | undefined;
|
|
564
564
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
565
565
|
}>;
|
|
566
566
|
409: z.ZodObject<{
|
|
@@ -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
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
|
|
614
618
|
name?: string | null | undefined;
|
|
615
|
-
|
|
616
|
-
|
|
619
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
620
|
+
phoneNumber?: string | null | undefined;
|
|
617
621
|
source?: string | null | undefined;
|
|
618
622
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
619
623
|
minQualityScore?: number | null | undefined;
|
|
620
624
|
maxQualityScore?: number | null | undefined;
|
|
621
625
|
minConversionRate?: number | null | undefined;
|
|
622
626
|
minTotalCalls?: number | null | undefined;
|
|
627
|
+
sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
628
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
623
629
|
}, {
|
|
624
|
-
phoneNumber?: string | null | undefined;
|
|
625
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | null | undefined;
|
|
626
630
|
name?: string | null | undefined;
|
|
631
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
627
632
|
limit?: number | undefined;
|
|
628
633
|
page?: number | undefined;
|
|
629
|
-
|
|
630
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
634
|
+
phoneNumber?: string | null | undefined;
|
|
631
635
|
source?: string | null | undefined;
|
|
632
636
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
633
637
|
minQualityScore?: number | null | undefined;
|
|
634
638
|
maxQualityScore?: number | null | undefined;
|
|
635
639
|
minConversionRate?: number | null | undefined;
|
|
636
640
|
minTotalCalls?: number | null | undefined;
|
|
641
|
+
sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "source" | "qualityScore" | "conversionRate" | "totalCalls" | null | undefined;
|
|
642
|
+
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";
|
|
@@ -761,29 +761,29 @@ export declare const leadsContractRouter: {
|
|
|
761
761
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
762
762
|
}, "strip", z.ZodTypeAny, {
|
|
763
763
|
id: string;
|
|
764
|
-
phoneNumber: string;
|
|
765
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
766
764
|
name: string;
|
|
765
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
767
766
|
createdAt: string;
|
|
768
767
|
updatedAt: string;
|
|
768
|
+
phoneNumber: string;
|
|
769
769
|
source: string;
|
|
770
|
-
blacklistReason?: string | null | undefined;
|
|
771
|
-
totalCalls?: number | null | undefined;
|
|
772
|
-
conversionRate?: number | null | undefined;
|
|
773
770
|
qualityScore?: number | null | undefined;
|
|
771
|
+
conversionRate?: number | null | undefined;
|
|
772
|
+
totalCalls?: number | null | undefined;
|
|
773
|
+
blacklistReason?: string | null | undefined;
|
|
774
774
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
775
775
|
}, {
|
|
776
776
|
id: string;
|
|
777
|
-
phoneNumber: string;
|
|
778
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
779
777
|
name: string;
|
|
778
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
780
779
|
createdAt: string | Date;
|
|
781
780
|
updatedAt: string | Date;
|
|
781
|
+
phoneNumber: string;
|
|
782
782
|
source: string;
|
|
783
|
-
blacklistReason?: string | null | undefined;
|
|
784
|
-
totalCalls?: number | null | undefined;
|
|
785
|
-
conversionRate?: number | null | undefined;
|
|
786
783
|
qualityScore?: number | null | undefined;
|
|
784
|
+
conversionRate?: number | null | undefined;
|
|
785
|
+
totalCalls?: number | null | undefined;
|
|
786
|
+
blacklistReason?: string | null | undefined;
|
|
787
787
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
788
788
|
}>, "many">;
|
|
789
789
|
totalCount: z.ZodNumber;
|
|
@@ -795,16 +795,16 @@ export declare const leadsContractRouter: {
|
|
|
795
795
|
limit: number;
|
|
796
796
|
items: {
|
|
797
797
|
id: string;
|
|
798
|
-
phoneNumber: string;
|
|
799
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
800
798
|
name: string;
|
|
799
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
801
800
|
createdAt: string;
|
|
802
801
|
updatedAt: string;
|
|
802
|
+
phoneNumber: string;
|
|
803
803
|
source: string;
|
|
804
|
-
blacklistReason?: string | null | undefined;
|
|
805
|
-
totalCalls?: number | null | undefined;
|
|
806
|
-
conversionRate?: number | null | undefined;
|
|
807
804
|
qualityScore?: number | null | undefined;
|
|
805
|
+
conversionRate?: number | null | undefined;
|
|
806
|
+
totalCalls?: number | null | undefined;
|
|
807
|
+
blacklistReason?: string | null | undefined;
|
|
808
808
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
809
809
|
}[];
|
|
810
810
|
totalCount: number;
|
|
@@ -815,16 +815,16 @@ export declare const leadsContractRouter: {
|
|
|
815
815
|
limit: number;
|
|
816
816
|
items: {
|
|
817
817
|
id: string;
|
|
818
|
-
phoneNumber: string;
|
|
819
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
820
818
|
name: string;
|
|
819
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
821
820
|
createdAt: string | Date;
|
|
822
821
|
updatedAt: string | Date;
|
|
822
|
+
phoneNumber: string;
|
|
823
823
|
source: string;
|
|
824
|
-
blacklistReason?: string | null | undefined;
|
|
825
|
-
totalCalls?: number | null | undefined;
|
|
826
|
-
conversionRate?: number | null | undefined;
|
|
827
824
|
qualityScore?: number | null | undefined;
|
|
825
|
+
conversionRate?: number | null | undefined;
|
|
826
|
+
totalCalls?: number | null | undefined;
|
|
827
|
+
blacklistReason?: string | null | undefined;
|
|
828
828
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
829
829
|
}[];
|
|
830
830
|
totalCount: number;
|
|
@@ -967,29 +967,29 @@ export declare const leadsContractRouter: {
|
|
|
967
967
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
968
968
|
}, "strip", z.ZodTypeAny, {
|
|
969
969
|
id: string;
|
|
970
|
-
phoneNumber: string;
|
|
971
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
972
970
|
name: string;
|
|
971
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
973
972
|
createdAt: string;
|
|
974
973
|
updatedAt: string;
|
|
974
|
+
phoneNumber: string;
|
|
975
975
|
source: string;
|
|
976
|
-
blacklistReason?: string | null | undefined;
|
|
977
|
-
totalCalls?: number | null | undefined;
|
|
978
|
-
conversionRate?: number | null | undefined;
|
|
979
976
|
qualityScore?: number | null | undefined;
|
|
977
|
+
conversionRate?: number | null | undefined;
|
|
978
|
+
totalCalls?: number | null | undefined;
|
|
979
|
+
blacklistReason?: string | null | undefined;
|
|
980
980
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
981
981
|
}, {
|
|
982
982
|
id: string;
|
|
983
|
-
phoneNumber: string;
|
|
984
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
985
983
|
name: string;
|
|
984
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
986
985
|
createdAt: string | Date;
|
|
987
986
|
updatedAt: string | Date;
|
|
987
|
+
phoneNumber: string;
|
|
988
988
|
source: string;
|
|
989
|
-
blacklistReason?: string | null | undefined;
|
|
990
|
-
totalCalls?: number | null | undefined;
|
|
991
|
-
conversionRate?: number | null | undefined;
|
|
992
989
|
qualityScore?: number | null | undefined;
|
|
990
|
+
conversionRate?: number | null | undefined;
|
|
991
|
+
totalCalls?: number | null | undefined;
|
|
992
|
+
blacklistReason?: string | null | undefined;
|
|
993
993
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
994
994
|
}>;
|
|
995
995
|
404: z.ZodObject<{
|
|
@@ -1042,29 +1042,29 @@ 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
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1047
1045
|
name?: string | undefined;
|
|
1048
|
-
|
|
1046
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1047
|
+
phoneNumber?: string | undefined;
|
|
1049
1048
|
source?: string | undefined;
|
|
1049
|
+
blacklistReason?: string | null | undefined;
|
|
1050
1050
|
}, {
|
|
1051
|
-
phoneNumber?: string | undefined;
|
|
1052
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1053
1051
|
name?: string | undefined;
|
|
1054
|
-
|
|
1052
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1053
|
+
phoneNumber?: string | undefined;
|
|
1055
1054
|
source?: string | undefined;
|
|
1055
|
+
blacklistReason?: string | null | undefined;
|
|
1056
1056
|
}>, {
|
|
1057
|
-
phoneNumber?: string | undefined;
|
|
1058
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1059
1057
|
name?: string | undefined;
|
|
1060
|
-
|
|
1058
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1059
|
+
phoneNumber?: string | undefined;
|
|
1061
1060
|
source?: string | undefined;
|
|
1061
|
+
blacklistReason?: string | null | undefined;
|
|
1062
1062
|
}, {
|
|
1063
|
-
phoneNumber?: string | undefined;
|
|
1064
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1065
1063
|
name?: string | undefined;
|
|
1066
|
-
|
|
1064
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1065
|
+
phoneNumber?: string | undefined;
|
|
1067
1066
|
source?: string | undefined;
|
|
1067
|
+
blacklistReason?: string | null | undefined;
|
|
1068
1068
|
}>;
|
|
1069
1069
|
path: "/v2/leads/:id";
|
|
1070
1070
|
responses: {
|
|
@@ -1183,29 +1183,29 @@ export declare const leadsContractRouter: {
|
|
|
1183
1183
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1184
1184
|
}, "strip", z.ZodTypeAny, {
|
|
1185
1185
|
id: string;
|
|
1186
|
-
phoneNumber: string;
|
|
1187
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
1188
1186
|
name: string;
|
|
1187
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1189
1188
|
createdAt: string;
|
|
1190
1189
|
updatedAt: string;
|
|
1190
|
+
phoneNumber: string;
|
|
1191
1191
|
source: string;
|
|
1192
|
-
blacklistReason?: string | null | undefined;
|
|
1193
|
-
totalCalls?: number | null | undefined;
|
|
1194
|
-
conversionRate?: number | null | undefined;
|
|
1195
1192
|
qualityScore?: number | null | undefined;
|
|
1193
|
+
conversionRate?: number | null | undefined;
|
|
1194
|
+
totalCalls?: number | null | undefined;
|
|
1195
|
+
blacklistReason?: string | null | undefined;
|
|
1196
1196
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1197
1197
|
}, {
|
|
1198
1198
|
id: string;
|
|
1199
|
-
phoneNumber: string;
|
|
1200
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
1201
1199
|
name: string;
|
|
1200
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1202
1201
|
createdAt: string | Date;
|
|
1203
1202
|
updatedAt: string | Date;
|
|
1203
|
+
phoneNumber: string;
|
|
1204
1204
|
source: string;
|
|
1205
|
-
blacklistReason?: string | null | undefined;
|
|
1206
|
-
totalCalls?: number | null | undefined;
|
|
1207
|
-
conversionRate?: number | null | undefined;
|
|
1208
1205
|
qualityScore?: number | null | undefined;
|
|
1206
|
+
conversionRate?: number | null | undefined;
|
|
1207
|
+
totalCalls?: number | null | undefined;
|
|
1208
|
+
blacklistReason?: string | null | undefined;
|
|
1209
1209
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1210
1210
|
}>;
|
|
1211
1211
|
404: z.ZodObject<{
|
|
@@ -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;
|
|
1433
1432
|
assignmentId: string;
|
|
1434
1433
|
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;
|
|
1438
1437
|
assignmentId: string;
|
|
1439
1438
|
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";
|
|
@@ -1557,37 +1557,37 @@ export declare const leadsContractRouter: {
|
|
|
1557
1557
|
id: string;
|
|
1558
1558
|
createdAt: string;
|
|
1559
1559
|
updatedAt: string;
|
|
1560
|
-
|
|
1561
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
1560
|
+
assignmentId: string;
|
|
1562
1561
|
leadId: string;
|
|
1562
|
+
agentId: string;
|
|
1563
1563
|
callDate: string;
|
|
1564
|
-
ratingWeight: number;
|
|
1565
|
-
assignmentId: string;
|
|
1566
1564
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1565
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
1566
|
+
ratingWeight: number;
|
|
1567
1567
|
notes?: string | null | undefined;
|
|
1568
1568
|
}, {
|
|
1569
1569
|
id: string;
|
|
1570
1570
|
createdAt: string | Date;
|
|
1571
1571
|
updatedAt: string | Date;
|
|
1572
|
-
|
|
1573
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
1572
|
+
assignmentId: string;
|
|
1574
1573
|
leadId: string;
|
|
1574
|
+
agentId: string;
|
|
1575
1575
|
callDate: string | Date;
|
|
1576
|
-
ratingWeight: number;
|
|
1577
|
-
assignmentId: string;
|
|
1578
1576
|
callType: import("../call-history/call-history.contract").CallType;
|
|
1577
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
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";
|