@dakkitor/api-contracts 1.1.136 → 1.1.138
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 +13 -19
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +18 -33
- package/dist/abilities/admin.abilities.json +10 -0
- package/dist/abilities/bot.abilities.json +4 -0
- package/dist/abilities/first-agent.abilities.json +21 -2
- package/dist/abilities/kpi.abilities.json +4 -0
- package/dist/abilities/second-agent.abilities.json +13 -1
- package/dist/abilities/team-leads.json +4 -0
- package/dist/actives/actives.contract.d.ts +7776 -5918
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +2521 -658
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.js +56 -2
- package/dist/auth/auth.contract.d.ts +16 -16
- package/dist/bookings/bookings.contract.d.ts +30403 -22293
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +161 -37
- package/dist/call-history/call-history.contract.d.ts +814 -640
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.d.ts +306 -306
- package/dist/clients/clients.contract.d.ts +189 -123
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +50 -6
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2136 -1752
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +2039 -1658
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.js +2 -2
- package/dist/common/common-schemas.d.ts +23 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +31 -1
- package/dist/companies/companies.contract.d.ts +28 -28
- package/dist/cron-executions/cron-executions.contract.d.ts +26 -26
- package/dist/curated-workers/curated-workers.contract.d.ts +762 -500
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +10 -0
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +173 -803
- package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -1
- package/dist/dashboards/agent-daily-metrics.contract.js +45 -108
- package/dist/dashboards/dashboard-widgets.contract.d.ts +398 -292
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +77 -32
- package/dist/dashboards/dashboard.contract.d.ts +215 -305
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/jobs/jobs.contract.d.ts +3932 -3272
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +1340 -0
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts.map +1 -0
- package/dist/kpi-impersonation/kpi-impersonation.contract.js +146 -0
- package/dist/lead-assignments/lead-assignments.contract.d.ts +754 -562
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +900 -408
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.js +57 -1
- package/dist/leads/leads.contract.d.ts +228 -228
- package/dist/locations/locations.contract.d.ts +22 -22
- package/dist/offices/offices.contract.d.ts +794 -0
- package/dist/offices/offices.contract.d.ts.map +1 -0
- package/dist/offices/offices.contract.js +93 -0
- package/dist/own-research/own-research.contract.d.ts +854 -563
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/users/users.contract.d.ts +345 -245
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +7 -25
- package/dist/workers/workers.contract.d.ts +1102 -702
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +13 -0
- package/package.json +1 -1
|
@@ -34,36 +34,36 @@ export declare const LeadSchema: z.ZodObject<{
|
|
|
34
34
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
35
35
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
|
|
37
|
+
createdAt: string;
|
|
38
|
+
id: string;
|
|
38
39
|
phoneNumber: string;
|
|
39
40
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
40
|
-
|
|
41
|
-
createdAt: string;
|
|
41
|
+
name: string;
|
|
42
42
|
updatedAt: string;
|
|
43
|
-
|
|
43
|
+
source: string;
|
|
44
44
|
lastCalledAt?: string | null | undefined;
|
|
45
|
-
qualityScore?: number | null | undefined;
|
|
46
|
-
conversionRate?: number | null | undefined;
|
|
47
|
-
totalCalls?: number | null | undefined;
|
|
48
|
-
blacklistReason?: string | null | undefined;
|
|
49
45
|
cooldownUntil?: string | null | undefined;
|
|
46
|
+
blacklistReason?: string | null | undefined;
|
|
50
47
|
lastCallNotes?: string | null | undefined;
|
|
48
|
+
conversionRate?: number | null | undefined;
|
|
49
|
+
totalCalls?: number | null | undefined;
|
|
50
|
+
qualityScore?: number | null | undefined;
|
|
51
51
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
52
52
|
}, {
|
|
53
|
-
|
|
53
|
+
createdAt: string | Date;
|
|
54
|
+
id: string;
|
|
54
55
|
phoneNumber: string;
|
|
55
56
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
56
|
-
|
|
57
|
-
createdAt: string | Date;
|
|
57
|
+
name: string;
|
|
58
58
|
updatedAt: string | Date;
|
|
59
|
-
|
|
59
|
+
source: string;
|
|
60
60
|
lastCalledAt?: string | Date | null | undefined;
|
|
61
|
-
qualityScore?: number | null | undefined;
|
|
62
|
-
conversionRate?: number | null | undefined;
|
|
63
|
-
totalCalls?: number | null | undefined;
|
|
64
|
-
blacklistReason?: string | null | undefined;
|
|
65
61
|
cooldownUntil?: string | Date | null | undefined;
|
|
62
|
+
blacklistReason?: string | null | undefined;
|
|
66
63
|
lastCallNotes?: string | null | undefined;
|
|
64
|
+
conversionRate?: number | null | undefined;
|
|
65
|
+
totalCalls?: number | null | undefined;
|
|
66
|
+
qualityScore?: number | null | undefined;
|
|
67
67
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
68
68
|
}>;
|
|
69
69
|
/**
|
|
@@ -77,29 +77,29 @@ export declare const CreateLeadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
77
77
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
78
78
|
source: z.ZodString;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
name: string;
|
|
81
80
|
phoneNumber: string;
|
|
81
|
+
name: string;
|
|
82
82
|
source: string;
|
|
83
83
|
isBlacklisted: boolean;
|
|
84
84
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
85
85
|
blacklistReason?: string | null | undefined;
|
|
86
86
|
}, {
|
|
87
|
-
name: string;
|
|
88
87
|
phoneNumber: string;
|
|
88
|
+
name: string;
|
|
89
89
|
source: string;
|
|
90
90
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
91
91
|
blacklistReason?: string | null | undefined;
|
|
92
92
|
isBlacklisted?: boolean | undefined;
|
|
93
93
|
}>, {
|
|
94
|
-
name: string;
|
|
95
94
|
phoneNumber: string;
|
|
95
|
+
name: string;
|
|
96
96
|
source: string;
|
|
97
97
|
isBlacklisted: boolean;
|
|
98
98
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
99
99
|
blacklistReason?: string | null | undefined;
|
|
100
100
|
}, {
|
|
101
|
-
name: string;
|
|
102
101
|
phoneNumber: string;
|
|
102
|
+
name: string;
|
|
103
103
|
source: string;
|
|
104
104
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
105
105
|
blacklistReason?: string | null | undefined;
|
|
@@ -115,29 +115,29 @@ export declare const UpdateLeadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
115
115
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
116
116
|
source: z.ZodOptional<z.ZodString>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
name?: string | undefined;
|
|
119
118
|
phoneNumber?: string | undefined;
|
|
120
119
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
121
|
-
|
|
120
|
+
name?: string | undefined;
|
|
122
121
|
blacklistReason?: string | null | undefined;
|
|
122
|
+
source?: string | undefined;
|
|
123
123
|
}, {
|
|
124
|
-
name?: string | undefined;
|
|
125
124
|
phoneNumber?: string | undefined;
|
|
126
125
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
127
|
-
|
|
126
|
+
name?: string | undefined;
|
|
128
127
|
blacklistReason?: string | null | undefined;
|
|
128
|
+
source?: string | undefined;
|
|
129
129
|
}>, {
|
|
130
|
-
name?: string | undefined;
|
|
131
130
|
phoneNumber?: string | undefined;
|
|
132
131
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
133
|
-
|
|
132
|
+
name?: string | undefined;
|
|
134
133
|
blacklistReason?: string | null | undefined;
|
|
134
|
+
source?: string | undefined;
|
|
135
135
|
}, {
|
|
136
|
-
name?: string | undefined;
|
|
137
136
|
phoneNumber?: string | undefined;
|
|
138
137
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
139
|
-
|
|
138
|
+
name?: string | undefined;
|
|
140
139
|
blacklistReason?: string | null | undefined;
|
|
140
|
+
source?: string | undefined;
|
|
141
141
|
}>;
|
|
142
142
|
/**
|
|
143
143
|
* Filter Lead Schema
|
|
@@ -170,39 +170,39 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
171
|
limit: number;
|
|
172
172
|
page: number;
|
|
173
|
-
name?: string | null | undefined;
|
|
174
173
|
phoneNumber?: string | null | undefined;
|
|
175
174
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
176
|
-
|
|
175
|
+
name?: string | null | undefined;
|
|
176
|
+
sortBy?: "createdAt" | "phoneNumber" | "status" | "name" | "updatedAt" | "lastCalledAt" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
|
|
177
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
177
178
|
lastCalledAt?: {
|
|
178
179
|
from?: string | null | undefined;
|
|
179
180
|
to?: string | null | undefined;
|
|
180
181
|
} | null | undefined;
|
|
182
|
+
minTotalCalls?: number | null | undefined;
|
|
183
|
+
source?: string | null | undefined;
|
|
181
184
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
182
185
|
minQualityScore?: number | null | undefined;
|
|
183
186
|
maxQualityScore?: number | null | undefined;
|
|
184
187
|
minConversionRate?: number | null | undefined;
|
|
185
|
-
minTotalCalls?: number | null | undefined;
|
|
186
|
-
sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
187
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
188
188
|
}, {
|
|
189
|
-
name?: string | null | undefined;
|
|
190
189
|
phoneNumber?: string | null | undefined;
|
|
191
190
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
192
|
-
|
|
191
|
+
name?: string | null | undefined;
|
|
192
|
+
limit?: number | undefined;
|
|
193
|
+
page?: number | undefined;
|
|
194
|
+
sortBy?: "createdAt" | "phoneNumber" | "status" | "name" | "updatedAt" | "lastCalledAt" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
|
|
195
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
193
196
|
lastCalledAt?: {
|
|
194
197
|
from?: string | null | undefined;
|
|
195
198
|
to?: string | null | undefined;
|
|
196
199
|
} | null | undefined;
|
|
200
|
+
minTotalCalls?: number | null | undefined;
|
|
201
|
+
source?: string | null | undefined;
|
|
197
202
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
198
|
-
limit?: number | undefined;
|
|
199
|
-
page?: number | undefined;
|
|
200
203
|
minQualityScore?: number | null | undefined;
|
|
201
204
|
maxQualityScore?: number | null | undefined;
|
|
202
205
|
minConversionRate?: number | null | undefined;
|
|
203
|
-
minTotalCalls?: number | null | undefined;
|
|
204
|
-
sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
205
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
206
206
|
}>;
|
|
207
207
|
/**
|
|
208
208
|
* Call History Response Schema for leads
|
|
@@ -221,26 +221,26 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
221
221
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
222
222
|
}, "strip", z.ZodTypeAny, {
|
|
223
223
|
createdAt: string;
|
|
224
|
-
updatedAt: string;
|
|
225
224
|
id: string;
|
|
226
|
-
|
|
227
|
-
leadId: string;
|
|
225
|
+
updatedAt: string;
|
|
228
226
|
agentId: string;
|
|
229
|
-
callDate: string;
|
|
230
|
-
callType: import("../call-history/call-history.contract").CallType;
|
|
231
227
|
rating: import("../common/call-rating.schema").CallRating;
|
|
228
|
+
callType: import("../call-history/call-history.contract").CallType;
|
|
229
|
+
leadId: string;
|
|
230
|
+
assignmentId: string;
|
|
231
|
+
callDate: string;
|
|
232
232
|
ratingWeight: number;
|
|
233
233
|
notes?: string | null | undefined;
|
|
234
234
|
}, {
|
|
235
235
|
createdAt: string | Date;
|
|
236
|
-
updatedAt: string | Date;
|
|
237
236
|
id: string;
|
|
238
|
-
|
|
239
|
-
leadId: string;
|
|
237
|
+
updatedAt: string | Date;
|
|
240
238
|
agentId: string;
|
|
241
|
-
callDate: string | Date;
|
|
242
|
-
callType: import("../call-history/call-history.contract").CallType;
|
|
243
239
|
rating: import("../common/call-rating.schema").CallRating;
|
|
240
|
+
callType: import("../call-history/call-history.contract").CallType;
|
|
241
|
+
leadId: string;
|
|
242
|
+
assignmentId: string;
|
|
243
|
+
callDate: string | Date;
|
|
244
244
|
ratingWeight: number;
|
|
245
245
|
notes?: string | null | undefined;
|
|
246
246
|
}>;
|
|
@@ -325,36 +325,36 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
325
325
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
326
326
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
327
327
|
}, "strip", z.ZodTypeAny, {
|
|
328
|
-
|
|
328
|
+
createdAt: string;
|
|
329
|
+
id: string;
|
|
329
330
|
phoneNumber: string;
|
|
330
331
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
331
|
-
|
|
332
|
-
createdAt: string;
|
|
332
|
+
name: string;
|
|
333
333
|
updatedAt: string;
|
|
334
|
-
|
|
334
|
+
source: string;
|
|
335
335
|
lastCalledAt?: string | null | undefined;
|
|
336
|
-
qualityScore?: number | null | undefined;
|
|
337
|
-
conversionRate?: number | null | undefined;
|
|
338
|
-
totalCalls?: number | null | undefined;
|
|
339
|
-
blacklistReason?: string | null | undefined;
|
|
340
336
|
cooldownUntil?: string | null | undefined;
|
|
337
|
+
blacklistReason?: string | null | undefined;
|
|
341
338
|
lastCallNotes?: string | null | undefined;
|
|
339
|
+
conversionRate?: number | null | undefined;
|
|
340
|
+
totalCalls?: number | null | undefined;
|
|
341
|
+
qualityScore?: number | null | undefined;
|
|
342
342
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
343
343
|
}, {
|
|
344
|
-
|
|
344
|
+
createdAt: string | Date;
|
|
345
|
+
id: string;
|
|
345
346
|
phoneNumber: string;
|
|
346
347
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
347
|
-
|
|
348
|
-
createdAt: string | Date;
|
|
348
|
+
name: string;
|
|
349
349
|
updatedAt: string | Date;
|
|
350
|
-
|
|
350
|
+
source: string;
|
|
351
351
|
lastCalledAt?: string | Date | null | undefined;
|
|
352
|
-
qualityScore?: number | null | undefined;
|
|
353
|
-
conversionRate?: number | null | undefined;
|
|
354
|
-
totalCalls?: number | null | undefined;
|
|
355
|
-
blacklistReason?: string | null | undefined;
|
|
356
352
|
cooldownUntil?: string | Date | null | undefined;
|
|
353
|
+
blacklistReason?: string | null | undefined;
|
|
357
354
|
lastCallNotes?: string | null | undefined;
|
|
355
|
+
conversionRate?: number | null | undefined;
|
|
356
|
+
totalCalls?: number | null | undefined;
|
|
357
|
+
qualityScore?: number | null | undefined;
|
|
358
358
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
359
359
|
}>, "many">;
|
|
360
360
|
totalCount: z.ZodNumber;
|
|
@@ -365,20 +365,20 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
365
365
|
}, "strip", z.ZodTypeAny, {
|
|
366
366
|
limit: number;
|
|
367
367
|
items: {
|
|
368
|
-
|
|
368
|
+
createdAt: string;
|
|
369
|
+
id: string;
|
|
369
370
|
phoneNumber: string;
|
|
370
371
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
371
|
-
|
|
372
|
-
createdAt: string;
|
|
372
|
+
name: string;
|
|
373
373
|
updatedAt: string;
|
|
374
|
-
|
|
374
|
+
source: string;
|
|
375
375
|
lastCalledAt?: string | null | undefined;
|
|
376
|
-
qualityScore?: number | null | undefined;
|
|
377
|
-
conversionRate?: number | null | undefined;
|
|
378
|
-
totalCalls?: number | null | undefined;
|
|
379
|
-
blacklistReason?: string | null | undefined;
|
|
380
376
|
cooldownUntil?: string | null | undefined;
|
|
377
|
+
blacklistReason?: string | null | undefined;
|
|
381
378
|
lastCallNotes?: string | null | undefined;
|
|
379
|
+
conversionRate?: number | null | undefined;
|
|
380
|
+
totalCalls?: number | null | undefined;
|
|
381
|
+
qualityScore?: number | null | undefined;
|
|
382
382
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
383
383
|
}[];
|
|
384
384
|
totalCount: number;
|
|
@@ -388,20 +388,20 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
388
388
|
}, {
|
|
389
389
|
limit: number;
|
|
390
390
|
items: {
|
|
391
|
-
|
|
391
|
+
createdAt: string | Date;
|
|
392
|
+
id: string;
|
|
392
393
|
phoneNumber: string;
|
|
393
394
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
394
|
-
|
|
395
|
-
createdAt: string | Date;
|
|
395
|
+
name: string;
|
|
396
396
|
updatedAt: string | Date;
|
|
397
|
-
|
|
397
|
+
source: string;
|
|
398
398
|
lastCalledAt?: string | Date | null | undefined;
|
|
399
|
-
qualityScore?: number | null | undefined;
|
|
400
|
-
conversionRate?: number | null | undefined;
|
|
401
|
-
totalCalls?: number | null | undefined;
|
|
402
|
-
blacklistReason?: string | null | undefined;
|
|
403
399
|
cooldownUntil?: string | Date | null | undefined;
|
|
400
|
+
blacklistReason?: string | null | undefined;
|
|
404
401
|
lastCallNotes?: string | null | undefined;
|
|
402
|
+
conversionRate?: number | null | undefined;
|
|
403
|
+
totalCalls?: number | null | undefined;
|
|
404
|
+
qualityScore?: number | null | undefined;
|
|
405
405
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
406
406
|
}[];
|
|
407
407
|
totalCount: number;
|
|
@@ -435,29 +435,29 @@ export declare const leadsContractRouter: {
|
|
|
435
435
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
436
436
|
source: z.ZodString;
|
|
437
437
|
}, "strip", z.ZodTypeAny, {
|
|
438
|
-
name: string;
|
|
439
438
|
phoneNumber: string;
|
|
439
|
+
name: string;
|
|
440
440
|
source: string;
|
|
441
441
|
isBlacklisted: boolean;
|
|
442
442
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
443
443
|
blacklistReason?: string | null | undefined;
|
|
444
444
|
}, {
|
|
445
|
-
name: string;
|
|
446
445
|
phoneNumber: string;
|
|
446
|
+
name: string;
|
|
447
447
|
source: string;
|
|
448
448
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
449
449
|
blacklistReason?: string | null | undefined;
|
|
450
450
|
isBlacklisted?: boolean | undefined;
|
|
451
451
|
}>, {
|
|
452
|
-
name: string;
|
|
453
452
|
phoneNumber: string;
|
|
453
|
+
name: string;
|
|
454
454
|
source: string;
|
|
455
455
|
isBlacklisted: boolean;
|
|
456
456
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
457
457
|
blacklistReason?: string | null | undefined;
|
|
458
458
|
}, {
|
|
459
|
-
name: string;
|
|
460
459
|
phoneNumber: string;
|
|
460
|
+
name: string;
|
|
461
461
|
source: string;
|
|
462
462
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
463
463
|
blacklistReason?: string | null | undefined;
|
|
@@ -465,7 +465,7 @@ export declare const leadsContractRouter: {
|
|
|
465
465
|
}>;
|
|
466
466
|
path: "/v2/leads";
|
|
467
467
|
responses: {
|
|
468
|
-
|
|
468
|
+
400: z.ZodObject<{
|
|
469
469
|
statusCode: z.ZodNumber;
|
|
470
470
|
message: z.ZodString;
|
|
471
471
|
code: z.ZodString;
|
|
@@ -490,7 +490,7 @@ export declare const leadsContractRouter: {
|
|
|
490
490
|
details?: unknown;
|
|
491
491
|
correlationId?: string | undefined;
|
|
492
492
|
}>;
|
|
493
|
-
|
|
493
|
+
401: z.ZodObject<{
|
|
494
494
|
statusCode: z.ZodNumber;
|
|
495
495
|
message: z.ZodString;
|
|
496
496
|
code: z.ZodString;
|
|
@@ -515,7 +515,7 @@ export declare const leadsContractRouter: {
|
|
|
515
515
|
details?: unknown;
|
|
516
516
|
correlationId?: string | undefined;
|
|
517
517
|
}>;
|
|
518
|
-
|
|
518
|
+
403: z.ZodObject<{
|
|
519
519
|
statusCode: z.ZodNumber;
|
|
520
520
|
message: z.ZodString;
|
|
521
521
|
code: z.ZodString;
|
|
@@ -540,7 +540,7 @@ export declare const leadsContractRouter: {
|
|
|
540
540
|
details?: unknown;
|
|
541
541
|
correlationId?: string | undefined;
|
|
542
542
|
}>;
|
|
543
|
-
|
|
543
|
+
500: z.ZodObject<{
|
|
544
544
|
statusCode: z.ZodNumber;
|
|
545
545
|
message: z.ZodString;
|
|
546
546
|
code: z.ZodString;
|
|
@@ -582,36 +582,36 @@ export declare const leadsContractRouter: {
|
|
|
582
582
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
583
583
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
584
584
|
}, "strip", z.ZodTypeAny, {
|
|
585
|
-
|
|
585
|
+
createdAt: string;
|
|
586
|
+
id: string;
|
|
586
587
|
phoneNumber: string;
|
|
587
588
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
588
|
-
|
|
589
|
-
createdAt: string;
|
|
589
|
+
name: string;
|
|
590
590
|
updatedAt: string;
|
|
591
|
-
|
|
591
|
+
source: string;
|
|
592
592
|
lastCalledAt?: string | null | undefined;
|
|
593
|
-
qualityScore?: number | null | undefined;
|
|
594
|
-
conversionRate?: number | null | undefined;
|
|
595
|
-
totalCalls?: number | null | undefined;
|
|
596
|
-
blacklistReason?: string | null | undefined;
|
|
597
593
|
cooldownUntil?: string | null | undefined;
|
|
594
|
+
blacklistReason?: string | null | undefined;
|
|
598
595
|
lastCallNotes?: string | null | undefined;
|
|
596
|
+
conversionRate?: number | null | undefined;
|
|
597
|
+
totalCalls?: number | null | undefined;
|
|
598
|
+
qualityScore?: number | null | undefined;
|
|
599
599
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
600
600
|
}, {
|
|
601
|
-
|
|
601
|
+
createdAt: string | Date;
|
|
602
|
+
id: string;
|
|
602
603
|
phoneNumber: string;
|
|
603
604
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
604
|
-
|
|
605
|
-
createdAt: string | Date;
|
|
605
|
+
name: string;
|
|
606
606
|
updatedAt: string | Date;
|
|
607
|
-
|
|
607
|
+
source: string;
|
|
608
608
|
lastCalledAt?: string | Date | null | undefined;
|
|
609
|
-
qualityScore?: number | null | undefined;
|
|
610
|
-
conversionRate?: number | null | undefined;
|
|
611
|
-
totalCalls?: number | null | undefined;
|
|
612
|
-
blacklistReason?: string | null | undefined;
|
|
613
609
|
cooldownUntil?: string | Date | null | undefined;
|
|
610
|
+
blacklistReason?: string | null | undefined;
|
|
614
611
|
lastCallNotes?: string | null | undefined;
|
|
612
|
+
conversionRate?: number | null | undefined;
|
|
613
|
+
totalCalls?: number | null | undefined;
|
|
614
|
+
qualityScore?: number | null | undefined;
|
|
615
615
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
616
616
|
}>;
|
|
617
617
|
409: z.ZodObject<{
|
|
@@ -676,45 +676,45 @@ export declare const leadsContractRouter: {
|
|
|
676
676
|
}, "strip", z.ZodTypeAny, {
|
|
677
677
|
limit: number;
|
|
678
678
|
page: number;
|
|
679
|
-
name?: string | null | undefined;
|
|
680
679
|
phoneNumber?: string | null | undefined;
|
|
681
680
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
682
|
-
|
|
681
|
+
name?: string | null | undefined;
|
|
682
|
+
sortBy?: "createdAt" | "phoneNumber" | "status" | "name" | "updatedAt" | "lastCalledAt" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
|
|
683
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
683
684
|
lastCalledAt?: {
|
|
684
685
|
from?: string | null | undefined;
|
|
685
686
|
to?: string | null | undefined;
|
|
686
687
|
} | null | undefined;
|
|
688
|
+
minTotalCalls?: number | null | undefined;
|
|
689
|
+
source?: string | null | undefined;
|
|
687
690
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
688
691
|
minQualityScore?: number | null | undefined;
|
|
689
692
|
maxQualityScore?: number | null | undefined;
|
|
690
693
|
minConversionRate?: number | null | undefined;
|
|
691
|
-
minTotalCalls?: number | null | undefined;
|
|
692
|
-
sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
693
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
694
694
|
}, {
|
|
695
|
-
name?: string | null | undefined;
|
|
696
695
|
phoneNumber?: string | null | undefined;
|
|
697
696
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
|
|
698
|
-
|
|
697
|
+
name?: string | null | undefined;
|
|
698
|
+
limit?: number | undefined;
|
|
699
|
+
page?: number | undefined;
|
|
700
|
+
sortBy?: "createdAt" | "phoneNumber" | "status" | "name" | "updatedAt" | "lastCalledAt" | "conversionRate" | "totalCalls" | "source" | "qualityScore" | null | undefined;
|
|
701
|
+
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
699
702
|
lastCalledAt?: {
|
|
700
703
|
from?: string | null | undefined;
|
|
701
704
|
to?: string | null | undefined;
|
|
702
705
|
} | null | undefined;
|
|
706
|
+
minTotalCalls?: number | null | undefined;
|
|
707
|
+
source?: string | null | undefined;
|
|
703
708
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
704
|
-
limit?: number | undefined;
|
|
705
|
-
page?: number | undefined;
|
|
706
709
|
minQualityScore?: number | null | undefined;
|
|
707
710
|
maxQualityScore?: number | null | undefined;
|
|
708
711
|
minConversionRate?: number | null | undefined;
|
|
709
|
-
minTotalCalls?: number | null | undefined;
|
|
710
|
-
sortBy?: "name" | "phoneNumber" | "status" | "source" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls" | "createdAt" | "updatedAt" | null | undefined;
|
|
711
|
-
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
712
712
|
}>;
|
|
713
713
|
summary: "Get all leads";
|
|
714
714
|
method: "GET";
|
|
715
715
|
path: "/v2/leads";
|
|
716
716
|
responses: {
|
|
717
|
-
|
|
717
|
+
400: z.ZodObject<{
|
|
718
718
|
statusCode: z.ZodNumber;
|
|
719
719
|
message: z.ZodString;
|
|
720
720
|
code: z.ZodString;
|
|
@@ -739,7 +739,7 @@ export declare const leadsContractRouter: {
|
|
|
739
739
|
details?: unknown;
|
|
740
740
|
correlationId?: string | undefined;
|
|
741
741
|
}>;
|
|
742
|
-
|
|
742
|
+
401: z.ZodObject<{
|
|
743
743
|
statusCode: z.ZodNumber;
|
|
744
744
|
message: z.ZodString;
|
|
745
745
|
code: z.ZodString;
|
|
@@ -764,7 +764,7 @@ export declare const leadsContractRouter: {
|
|
|
764
764
|
details?: unknown;
|
|
765
765
|
correlationId?: string | undefined;
|
|
766
766
|
}>;
|
|
767
|
-
|
|
767
|
+
403: z.ZodObject<{
|
|
768
768
|
statusCode: z.ZodNumber;
|
|
769
769
|
message: z.ZodString;
|
|
770
770
|
code: z.ZodString;
|
|
@@ -789,7 +789,7 @@ export declare const leadsContractRouter: {
|
|
|
789
789
|
details?: unknown;
|
|
790
790
|
correlationId?: string | undefined;
|
|
791
791
|
}>;
|
|
792
|
-
|
|
792
|
+
500: z.ZodObject<{
|
|
793
793
|
statusCode: z.ZodNumber;
|
|
794
794
|
message: z.ZodString;
|
|
795
795
|
code: z.ZodString;
|
|
@@ -832,36 +832,36 @@ export declare const leadsContractRouter: {
|
|
|
832
832
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
833
833
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
834
834
|
}, "strip", z.ZodTypeAny, {
|
|
835
|
-
|
|
835
|
+
createdAt: string;
|
|
836
|
+
id: string;
|
|
836
837
|
phoneNumber: string;
|
|
837
838
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
838
|
-
|
|
839
|
-
createdAt: string;
|
|
839
|
+
name: string;
|
|
840
840
|
updatedAt: string;
|
|
841
|
-
|
|
841
|
+
source: string;
|
|
842
842
|
lastCalledAt?: string | null | undefined;
|
|
843
|
-
qualityScore?: number | null | undefined;
|
|
844
|
-
conversionRate?: number | null | undefined;
|
|
845
|
-
totalCalls?: number | null | undefined;
|
|
846
|
-
blacklistReason?: string | null | undefined;
|
|
847
843
|
cooldownUntil?: string | null | undefined;
|
|
844
|
+
blacklistReason?: string | null | undefined;
|
|
848
845
|
lastCallNotes?: string | null | undefined;
|
|
846
|
+
conversionRate?: number | null | undefined;
|
|
847
|
+
totalCalls?: number | null | undefined;
|
|
848
|
+
qualityScore?: number | null | undefined;
|
|
849
849
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
850
850
|
}, {
|
|
851
|
-
|
|
851
|
+
createdAt: string | Date;
|
|
852
|
+
id: string;
|
|
852
853
|
phoneNumber: string;
|
|
853
854
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
854
|
-
|
|
855
|
-
createdAt: string | Date;
|
|
855
|
+
name: string;
|
|
856
856
|
updatedAt: string | Date;
|
|
857
|
-
|
|
857
|
+
source: string;
|
|
858
858
|
lastCalledAt?: string | Date | null | undefined;
|
|
859
|
-
qualityScore?: number | null | undefined;
|
|
860
|
-
conversionRate?: number | null | undefined;
|
|
861
|
-
totalCalls?: number | null | undefined;
|
|
862
|
-
blacklistReason?: string | null | undefined;
|
|
863
859
|
cooldownUntil?: string | Date | null | undefined;
|
|
860
|
+
blacklistReason?: string | null | undefined;
|
|
864
861
|
lastCallNotes?: string | null | undefined;
|
|
862
|
+
conversionRate?: number | null | undefined;
|
|
863
|
+
totalCalls?: number | null | undefined;
|
|
864
|
+
qualityScore?: number | null | undefined;
|
|
865
865
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
866
866
|
}>, "many">;
|
|
867
867
|
totalCount: z.ZodNumber;
|
|
@@ -872,20 +872,20 @@ export declare const leadsContractRouter: {
|
|
|
872
872
|
}, "strip", z.ZodTypeAny, {
|
|
873
873
|
limit: number;
|
|
874
874
|
items: {
|
|
875
|
-
|
|
875
|
+
createdAt: string;
|
|
876
|
+
id: string;
|
|
876
877
|
phoneNumber: string;
|
|
877
878
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
878
|
-
|
|
879
|
-
createdAt: string;
|
|
879
|
+
name: string;
|
|
880
880
|
updatedAt: string;
|
|
881
|
-
|
|
881
|
+
source: string;
|
|
882
882
|
lastCalledAt?: string | null | undefined;
|
|
883
|
-
qualityScore?: number | null | undefined;
|
|
884
|
-
conversionRate?: number | null | undefined;
|
|
885
|
-
totalCalls?: number | null | undefined;
|
|
886
|
-
blacklistReason?: string | null | undefined;
|
|
887
883
|
cooldownUntil?: string | null | undefined;
|
|
884
|
+
blacklistReason?: string | null | undefined;
|
|
888
885
|
lastCallNotes?: string | null | undefined;
|
|
886
|
+
conversionRate?: number | null | undefined;
|
|
887
|
+
totalCalls?: number | null | undefined;
|
|
888
|
+
qualityScore?: number | null | undefined;
|
|
889
889
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
890
890
|
}[];
|
|
891
891
|
totalCount: number;
|
|
@@ -895,20 +895,20 @@ export declare const leadsContractRouter: {
|
|
|
895
895
|
}, {
|
|
896
896
|
limit: number;
|
|
897
897
|
items: {
|
|
898
|
-
|
|
898
|
+
createdAt: string | Date;
|
|
899
|
+
id: string;
|
|
899
900
|
phoneNumber: string;
|
|
900
901
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
901
|
-
|
|
902
|
-
createdAt: string | Date;
|
|
902
|
+
name: string;
|
|
903
903
|
updatedAt: string | Date;
|
|
904
|
-
|
|
904
|
+
source: string;
|
|
905
905
|
lastCalledAt?: string | Date | null | undefined;
|
|
906
|
-
qualityScore?: number | null | undefined;
|
|
907
|
-
conversionRate?: number | null | undefined;
|
|
908
|
-
totalCalls?: number | null | undefined;
|
|
909
|
-
blacklistReason?: string | null | undefined;
|
|
910
906
|
cooldownUntil?: string | Date | null | undefined;
|
|
907
|
+
blacklistReason?: string | null | undefined;
|
|
911
908
|
lastCallNotes?: string | null | undefined;
|
|
909
|
+
conversionRate?: number | null | undefined;
|
|
910
|
+
totalCalls?: number | null | undefined;
|
|
911
|
+
qualityScore?: number | null | undefined;
|
|
912
912
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
913
913
|
}[];
|
|
914
914
|
totalCount: number;
|
|
@@ -936,7 +936,7 @@ export declare const leadsContractRouter: {
|
|
|
936
936
|
method: "GET";
|
|
937
937
|
path: "/v2/leads/:id";
|
|
938
938
|
responses: {
|
|
939
|
-
|
|
939
|
+
400: z.ZodObject<{
|
|
940
940
|
statusCode: z.ZodNumber;
|
|
941
941
|
message: z.ZodString;
|
|
942
942
|
code: z.ZodString;
|
|
@@ -961,7 +961,7 @@ export declare const leadsContractRouter: {
|
|
|
961
961
|
details?: unknown;
|
|
962
962
|
correlationId?: string | undefined;
|
|
963
963
|
}>;
|
|
964
|
-
|
|
964
|
+
401: z.ZodObject<{
|
|
965
965
|
statusCode: z.ZodNumber;
|
|
966
966
|
message: z.ZodString;
|
|
967
967
|
code: z.ZodString;
|
|
@@ -986,7 +986,7 @@ export declare const leadsContractRouter: {
|
|
|
986
986
|
details?: unknown;
|
|
987
987
|
correlationId?: string | undefined;
|
|
988
988
|
}>;
|
|
989
|
-
|
|
989
|
+
403: z.ZodObject<{
|
|
990
990
|
statusCode: z.ZodNumber;
|
|
991
991
|
message: z.ZodString;
|
|
992
992
|
code: z.ZodString;
|
|
@@ -1011,7 +1011,7 @@ export declare const leadsContractRouter: {
|
|
|
1011
1011
|
details?: unknown;
|
|
1012
1012
|
correlationId?: string | undefined;
|
|
1013
1013
|
}>;
|
|
1014
|
-
|
|
1014
|
+
500: z.ZodObject<{
|
|
1015
1015
|
statusCode: z.ZodNumber;
|
|
1016
1016
|
message: z.ZodString;
|
|
1017
1017
|
code: z.ZodString;
|
|
@@ -1053,36 +1053,36 @@ export declare const leadsContractRouter: {
|
|
|
1053
1053
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1054
1054
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1055
1055
|
}, "strip", z.ZodTypeAny, {
|
|
1056
|
-
|
|
1056
|
+
createdAt: string;
|
|
1057
|
+
id: string;
|
|
1057
1058
|
phoneNumber: string;
|
|
1058
1059
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1059
|
-
|
|
1060
|
-
createdAt: string;
|
|
1060
|
+
name: string;
|
|
1061
1061
|
updatedAt: string;
|
|
1062
|
-
|
|
1062
|
+
source: string;
|
|
1063
1063
|
lastCalledAt?: string | null | undefined;
|
|
1064
|
-
qualityScore?: number | null | undefined;
|
|
1065
|
-
conversionRate?: number | null | undefined;
|
|
1066
|
-
totalCalls?: number | null | undefined;
|
|
1067
|
-
blacklistReason?: string | null | undefined;
|
|
1068
1064
|
cooldownUntil?: string | null | undefined;
|
|
1065
|
+
blacklistReason?: string | null | undefined;
|
|
1069
1066
|
lastCallNotes?: string | null | undefined;
|
|
1067
|
+
conversionRate?: number | null | undefined;
|
|
1068
|
+
totalCalls?: number | null | undefined;
|
|
1069
|
+
qualityScore?: number | null | undefined;
|
|
1070
1070
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1071
1071
|
}, {
|
|
1072
|
-
|
|
1072
|
+
createdAt: string | Date;
|
|
1073
|
+
id: string;
|
|
1073
1074
|
phoneNumber: string;
|
|
1074
1075
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1075
|
-
|
|
1076
|
-
createdAt: string | Date;
|
|
1076
|
+
name: string;
|
|
1077
1077
|
updatedAt: string | Date;
|
|
1078
|
-
|
|
1078
|
+
source: string;
|
|
1079
1079
|
lastCalledAt?: string | Date | null | undefined;
|
|
1080
|
-
qualityScore?: number | null | undefined;
|
|
1081
|
-
conversionRate?: number | null | undefined;
|
|
1082
|
-
totalCalls?: number | null | undefined;
|
|
1083
|
-
blacklistReason?: string | null | undefined;
|
|
1084
1080
|
cooldownUntil?: string | Date | null | undefined;
|
|
1081
|
+
blacklistReason?: string | null | undefined;
|
|
1085
1082
|
lastCallNotes?: string | null | undefined;
|
|
1083
|
+
conversionRate?: number | null | undefined;
|
|
1084
|
+
totalCalls?: number | null | undefined;
|
|
1085
|
+
qualityScore?: number | null | undefined;
|
|
1086
1086
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1087
1087
|
}>;
|
|
1088
1088
|
404: z.ZodObject<{
|
|
@@ -1135,33 +1135,33 @@ export declare const leadsContractRouter: {
|
|
|
1135
1135
|
blacklistReason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1136
1136
|
source: z.ZodOptional<z.ZodString>;
|
|
1137
1137
|
}, "strip", z.ZodTypeAny, {
|
|
1138
|
-
name?: string | undefined;
|
|
1139
1138
|
phoneNumber?: string | undefined;
|
|
1140
1139
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1141
|
-
|
|
1140
|
+
name?: string | undefined;
|
|
1142
1141
|
blacklistReason?: string | null | undefined;
|
|
1142
|
+
source?: string | undefined;
|
|
1143
1143
|
}, {
|
|
1144
|
-
name?: string | undefined;
|
|
1145
1144
|
phoneNumber?: string | undefined;
|
|
1146
1145
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1147
|
-
|
|
1146
|
+
name?: string | undefined;
|
|
1148
1147
|
blacklistReason?: string | null | undefined;
|
|
1148
|
+
source?: string | undefined;
|
|
1149
1149
|
}>, {
|
|
1150
|
-
name?: string | undefined;
|
|
1151
1150
|
phoneNumber?: string | undefined;
|
|
1152
1151
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1153
|
-
|
|
1152
|
+
name?: string | undefined;
|
|
1154
1153
|
blacklistReason?: string | null | undefined;
|
|
1154
|
+
source?: string | undefined;
|
|
1155
1155
|
}, {
|
|
1156
|
-
name?: string | undefined;
|
|
1157
1156
|
phoneNumber?: string | undefined;
|
|
1158
1157
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1159
|
-
|
|
1158
|
+
name?: string | undefined;
|
|
1160
1159
|
blacklistReason?: string | null | undefined;
|
|
1160
|
+
source?: string | undefined;
|
|
1161
1161
|
}>;
|
|
1162
1162
|
path: "/v2/leads/:id";
|
|
1163
1163
|
responses: {
|
|
1164
|
-
|
|
1164
|
+
400: z.ZodObject<{
|
|
1165
1165
|
statusCode: z.ZodNumber;
|
|
1166
1166
|
message: z.ZodString;
|
|
1167
1167
|
code: z.ZodString;
|
|
@@ -1186,7 +1186,7 @@ export declare const leadsContractRouter: {
|
|
|
1186
1186
|
details?: unknown;
|
|
1187
1187
|
correlationId?: string | undefined;
|
|
1188
1188
|
}>;
|
|
1189
|
-
|
|
1189
|
+
401: z.ZodObject<{
|
|
1190
1190
|
statusCode: z.ZodNumber;
|
|
1191
1191
|
message: z.ZodString;
|
|
1192
1192
|
code: z.ZodString;
|
|
@@ -1211,7 +1211,7 @@ export declare const leadsContractRouter: {
|
|
|
1211
1211
|
details?: unknown;
|
|
1212
1212
|
correlationId?: string | undefined;
|
|
1213
1213
|
}>;
|
|
1214
|
-
|
|
1214
|
+
403: z.ZodObject<{
|
|
1215
1215
|
statusCode: z.ZodNumber;
|
|
1216
1216
|
message: z.ZodString;
|
|
1217
1217
|
code: z.ZodString;
|
|
@@ -1236,7 +1236,7 @@ export declare const leadsContractRouter: {
|
|
|
1236
1236
|
details?: unknown;
|
|
1237
1237
|
correlationId?: string | undefined;
|
|
1238
1238
|
}>;
|
|
1239
|
-
|
|
1239
|
+
500: z.ZodObject<{
|
|
1240
1240
|
statusCode: z.ZodNumber;
|
|
1241
1241
|
message: z.ZodString;
|
|
1242
1242
|
code: z.ZodString;
|
|
@@ -1278,36 +1278,36 @@ export declare const leadsContractRouter: {
|
|
|
1278
1278
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1279
1279
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1280
1280
|
}, "strip", z.ZodTypeAny, {
|
|
1281
|
-
|
|
1281
|
+
createdAt: string;
|
|
1282
|
+
id: string;
|
|
1282
1283
|
phoneNumber: string;
|
|
1283
1284
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1284
|
-
|
|
1285
|
-
createdAt: string;
|
|
1285
|
+
name: string;
|
|
1286
1286
|
updatedAt: string;
|
|
1287
|
-
|
|
1287
|
+
source: string;
|
|
1288
1288
|
lastCalledAt?: string | null | undefined;
|
|
1289
|
-
qualityScore?: number | null | undefined;
|
|
1290
|
-
conversionRate?: number | null | undefined;
|
|
1291
|
-
totalCalls?: number | null | undefined;
|
|
1292
|
-
blacklistReason?: string | null | undefined;
|
|
1293
1289
|
cooldownUntil?: string | null | undefined;
|
|
1290
|
+
blacklistReason?: string | null | undefined;
|
|
1294
1291
|
lastCallNotes?: string | null | undefined;
|
|
1292
|
+
conversionRate?: number | null | undefined;
|
|
1293
|
+
totalCalls?: number | null | undefined;
|
|
1294
|
+
qualityScore?: number | null | undefined;
|
|
1295
1295
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1296
1296
|
}, {
|
|
1297
|
-
|
|
1297
|
+
createdAt: string | Date;
|
|
1298
|
+
id: string;
|
|
1298
1299
|
phoneNumber: string;
|
|
1299
1300
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1300
|
-
|
|
1301
|
-
createdAt: string | Date;
|
|
1301
|
+
name: string;
|
|
1302
1302
|
updatedAt: string | Date;
|
|
1303
|
-
|
|
1303
|
+
source: string;
|
|
1304
1304
|
lastCalledAt?: string | Date | null | undefined;
|
|
1305
|
-
qualityScore?: number | null | undefined;
|
|
1306
|
-
conversionRate?: number | null | undefined;
|
|
1307
|
-
totalCalls?: number | null | undefined;
|
|
1308
|
-
blacklistReason?: string | null | undefined;
|
|
1309
1305
|
cooldownUntil?: string | Date | null | undefined;
|
|
1306
|
+
blacklistReason?: string | null | undefined;
|
|
1310
1307
|
lastCallNotes?: string | null | undefined;
|
|
1308
|
+
conversionRate?: number | null | undefined;
|
|
1309
|
+
totalCalls?: number | null | undefined;
|
|
1310
|
+
qualityScore?: number | null | undefined;
|
|
1311
1311
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1312
1312
|
}>;
|
|
1313
1313
|
404: z.ZodObject<{
|
|
@@ -1381,7 +1381,7 @@ export declare const leadsContractRouter: {
|
|
|
1381
1381
|
body: typeof import("@ts-rest/core").ContractNoBody;
|
|
1382
1382
|
path: "/v2/leads/:id";
|
|
1383
1383
|
responses: {
|
|
1384
|
-
|
|
1384
|
+
400: z.ZodObject<{
|
|
1385
1385
|
statusCode: z.ZodNumber;
|
|
1386
1386
|
message: z.ZodString;
|
|
1387
1387
|
code: z.ZodString;
|
|
@@ -1406,7 +1406,7 @@ export declare const leadsContractRouter: {
|
|
|
1406
1406
|
details?: unknown;
|
|
1407
1407
|
correlationId?: string | undefined;
|
|
1408
1408
|
}>;
|
|
1409
|
-
|
|
1409
|
+
401: z.ZodObject<{
|
|
1410
1410
|
statusCode: z.ZodNumber;
|
|
1411
1411
|
message: z.ZodString;
|
|
1412
1412
|
code: z.ZodString;
|
|
@@ -1431,7 +1431,7 @@ export declare const leadsContractRouter: {
|
|
|
1431
1431
|
details?: unknown;
|
|
1432
1432
|
correlationId?: string | undefined;
|
|
1433
1433
|
}>;
|
|
1434
|
-
|
|
1434
|
+
403: z.ZodObject<{
|
|
1435
1435
|
statusCode: z.ZodNumber;
|
|
1436
1436
|
message: z.ZodString;
|
|
1437
1437
|
code: z.ZodString;
|
|
@@ -1456,7 +1456,7 @@ export declare const leadsContractRouter: {
|
|
|
1456
1456
|
details?: unknown;
|
|
1457
1457
|
correlationId?: string | undefined;
|
|
1458
1458
|
}>;
|
|
1459
|
-
|
|
1459
|
+
500: z.ZodObject<{
|
|
1460
1460
|
statusCode: z.ZodNumber;
|
|
1461
1461
|
message: z.ZodString;
|
|
1462
1462
|
code: z.ZodString;
|
|
@@ -1531,19 +1531,19 @@ export declare const leadsContractRouter: {
|
|
|
1531
1531
|
notes: z.ZodOptional<z.ZodString>;
|
|
1532
1532
|
callType: z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>;
|
|
1533
1533
|
}, "strip", z.ZodTypeAny, {
|
|
1534
|
-
assignmentId: string;
|
|
1535
|
-
callType: import("../call-history/call-history.contract").CallType;
|
|
1536
1534
|
rating: import("../common/call-rating.schema").CallRating;
|
|
1535
|
+
callType: import("../call-history/call-history.contract").CallType;
|
|
1536
|
+
assignmentId: string;
|
|
1537
1537
|
notes?: string | undefined;
|
|
1538
1538
|
}, {
|
|
1539
|
-
assignmentId: string;
|
|
1540
|
-
callType: import("../call-history/call-history.contract").CallType;
|
|
1541
1539
|
rating: import("../common/call-rating.schema").CallRating;
|
|
1540
|
+
callType: import("../call-history/call-history.contract").CallType;
|
|
1541
|
+
assignmentId: string;
|
|
1542
1542
|
notes?: string | undefined;
|
|
1543
1543
|
}>;
|
|
1544
1544
|
path: "/v2/leads/:id/call";
|
|
1545
1545
|
responses: {
|
|
1546
|
-
|
|
1546
|
+
400: z.ZodObject<{
|
|
1547
1547
|
statusCode: z.ZodNumber;
|
|
1548
1548
|
message: z.ZodString;
|
|
1549
1549
|
code: z.ZodString;
|
|
@@ -1568,7 +1568,7 @@ export declare const leadsContractRouter: {
|
|
|
1568
1568
|
details?: unknown;
|
|
1569
1569
|
correlationId?: string | undefined;
|
|
1570
1570
|
}>;
|
|
1571
|
-
|
|
1571
|
+
401: z.ZodObject<{
|
|
1572
1572
|
statusCode: z.ZodNumber;
|
|
1573
1573
|
message: z.ZodString;
|
|
1574
1574
|
code: z.ZodString;
|
|
@@ -1593,7 +1593,7 @@ export declare const leadsContractRouter: {
|
|
|
1593
1593
|
details?: unknown;
|
|
1594
1594
|
correlationId?: string | undefined;
|
|
1595
1595
|
}>;
|
|
1596
|
-
|
|
1596
|
+
403: z.ZodObject<{
|
|
1597
1597
|
statusCode: z.ZodNumber;
|
|
1598
1598
|
message: z.ZodString;
|
|
1599
1599
|
code: z.ZodString;
|
|
@@ -1618,7 +1618,7 @@ export declare const leadsContractRouter: {
|
|
|
1618
1618
|
details?: unknown;
|
|
1619
1619
|
correlationId?: string | undefined;
|
|
1620
1620
|
}>;
|
|
1621
|
-
|
|
1621
|
+
500: z.ZodObject<{
|
|
1622
1622
|
statusCode: z.ZodNumber;
|
|
1623
1623
|
message: z.ZodString;
|
|
1624
1624
|
code: z.ZodString;
|
|
@@ -1657,26 +1657,26 @@ export declare const leadsContractRouter: {
|
|
|
1657
1657
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1658
1658
|
}, "strip", z.ZodTypeAny, {
|
|
1659
1659
|
createdAt: string;
|
|
1660
|
-
updatedAt: string;
|
|
1661
1660
|
id: string;
|
|
1662
|
-
|
|
1663
|
-
leadId: string;
|
|
1661
|
+
updatedAt: string;
|
|
1664
1662
|
agentId: string;
|
|
1665
|
-
callDate: string;
|
|
1666
|
-
callType: import("../call-history/call-history.contract").CallType;
|
|
1667
1663
|
rating: import("../common/call-rating.schema").CallRating;
|
|
1664
|
+
callType: import("../call-history/call-history.contract").CallType;
|
|
1665
|
+
leadId: string;
|
|
1666
|
+
assignmentId: string;
|
|
1667
|
+
callDate: string;
|
|
1668
1668
|
ratingWeight: number;
|
|
1669
1669
|
notes?: string | null | undefined;
|
|
1670
1670
|
}, {
|
|
1671
1671
|
createdAt: string | Date;
|
|
1672
|
-
updatedAt: string | Date;
|
|
1673
1672
|
id: string;
|
|
1674
|
-
|
|
1675
|
-
leadId: string;
|
|
1673
|
+
updatedAt: string | Date;
|
|
1676
1674
|
agentId: string;
|
|
1677
|
-
callDate: string | Date;
|
|
1678
|
-
callType: import("../call-history/call-history.contract").CallType;
|
|
1679
1675
|
rating: import("../common/call-rating.schema").CallRating;
|
|
1676
|
+
callType: import("../call-history/call-history.contract").CallType;
|
|
1677
|
+
leadId: string;
|
|
1678
|
+
assignmentId: string;
|
|
1679
|
+
callDate: string | Date;
|
|
1680
1680
|
ratingWeight: number;
|
|
1681
1681
|
notes?: string | null | undefined;
|
|
1682
1682
|
}>;
|
|
@@ -1694,7 +1694,7 @@ export declare const leadsContractRouter: {
|
|
|
1694
1694
|
method: "GET";
|
|
1695
1695
|
path: "/v2/leads/analytics/quality-dashboard";
|
|
1696
1696
|
responses: {
|
|
1697
|
-
|
|
1697
|
+
400: z.ZodObject<{
|
|
1698
1698
|
statusCode: z.ZodNumber;
|
|
1699
1699
|
message: z.ZodString;
|
|
1700
1700
|
code: z.ZodString;
|
|
@@ -1719,7 +1719,7 @@ export declare const leadsContractRouter: {
|
|
|
1719
1719
|
details?: unknown;
|
|
1720
1720
|
correlationId?: string | undefined;
|
|
1721
1721
|
}>;
|
|
1722
|
-
|
|
1722
|
+
401: z.ZodObject<{
|
|
1723
1723
|
statusCode: z.ZodNumber;
|
|
1724
1724
|
message: z.ZodString;
|
|
1725
1725
|
code: z.ZodString;
|
|
@@ -1744,7 +1744,7 @@ export declare const leadsContractRouter: {
|
|
|
1744
1744
|
details?: unknown;
|
|
1745
1745
|
correlationId?: string | undefined;
|
|
1746
1746
|
}>;
|
|
1747
|
-
|
|
1747
|
+
403: z.ZodObject<{
|
|
1748
1748
|
statusCode: z.ZodNumber;
|
|
1749
1749
|
message: z.ZodString;
|
|
1750
1750
|
code: z.ZodString;
|
|
@@ -1769,7 +1769,7 @@ export declare const leadsContractRouter: {
|
|
|
1769
1769
|
details?: unknown;
|
|
1770
1770
|
correlationId?: string | undefined;
|
|
1771
1771
|
}>;
|
|
1772
|
-
|
|
1772
|
+
500: z.ZodObject<{
|
|
1773
1773
|
statusCode: z.ZodNumber;
|
|
1774
1774
|
message: z.ZodString;
|
|
1775
1775
|
code: z.ZodString;
|