@dakkitor/api-contracts 1.9.1 → 1.9.2
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 +28 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +31 -1
- package/dist/abilities/abilities.contract.spec.js +52 -3
- package/dist/abilities/admin-dashboard.abilities.test.js +1 -0
- package/dist/abilities/automatic-caller.abilities.json +1 -0
- package/dist/abilities/first-agent.abilities.json +14 -0
- package/dist/abilities/interconnection.abilities.json +17 -1
- package/dist/abilities/office-manager.abilities.json +4 -0
- package/dist/abilities/second-agent.abilities.json +32 -1
- package/dist/abilities/worker-curator.abilities.json +17 -1
- package/dist/actives/actives.contract.d.ts +7200 -6919
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +137 -137
- package/dist/auth/auth.contract.d.ts +85 -85
- package/dist/bookings/backdate-guard.spec.js +24 -32
- package/dist/bookings/bookings.contract.d.ts +10542 -10116
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +2 -16
- package/dist/call-history/call-history.contract.d.ts +315 -140
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +39 -6
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +6847 -1872
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.js +304 -16
- package/dist/candidate-calling/candidate-calling.contract.spec.js +164 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts +10 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.js +33 -0
- package/dist/client-contacts/client-contacts.contract.d.ts +622 -622
- package/dist/clients/clients.contract.d.ts +289 -289
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +601 -601
- package/dist/collaborations/collaborations.contract.d.ts +538 -538
- package/dist/common/callback-slots.d.ts +4 -0
- package/dist/common/callback-slots.d.ts.map +1 -0
- package/dist/common/callback-slots.js +20 -0
- package/dist/common/common-schemas.d.ts +10 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +6 -0
- package/dist/companies/companies.contract.d.ts +120 -120
- package/dist/crews/crews.contract.d.ts +278 -278
- package/dist/cron-executions/cron-executions.contract.d.ts +238 -238
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2154 -1296
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +36 -3
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +300 -300
- package/dist/curated-worker-leads/contact-history.spec.js +86 -0
- package/dist/curated-worker-leads/job-candidate-cards.spec.js +19 -0
- package/dist/curated-worker-leads/job-candidates.spec.js +179 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +8598 -2519
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +126 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +110 -110
- package/dist/curated-workers/curated-workers.contract.d.ts +1213 -1131
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts +2 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts.map +1 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.js +160 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +1278 -535
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +46 -1
- package/dist/dashboards/dashboard.contract.d.ts +8 -8
- package/dist/document-intake/document-intake.contract.d.ts +1145 -1145
- package/dist/export-jobs/export-jobs.contract.d.ts +663 -663
- package/dist/exports-events/exports-events.schemas.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/jobs/jobs.contract.d.ts +5586 -3381
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +95 -2
- package/dist/jobs/jobs.contract.spec.js +231 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +123 -123
- package/dist/lead-assignments/lead-assignments.contract.d.ts +1897 -122
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.js +102 -2
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts +2 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts.map +1 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.js +51 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +103 -103
- package/dist/leads/leads.contract.d.ts +210 -210
- package/dist/locations/location-enrichment.contract.spec.d.ts +2 -0
- package/dist/locations/location-enrichment.contract.spec.d.ts.map +1 -0
- package/dist/locations/location-enrichment.contract.spec.js +50 -0
- package/dist/locations/locations.contract.d.ts +132 -98
- package/dist/locations/locations.contract.d.ts.map +1 -1
- package/dist/locations/locations.contract.js +10 -0
- package/dist/notifications/notifications.contract.d.ts +512 -40
- package/dist/notifications/notifications.contract.d.ts.map +1 -1
- package/dist/notifications/notifications.contract.js +36 -2
- package/dist/notifications/notifications.contract.spec.d.ts +2 -0
- package/dist/notifications/notifications.contract.spec.d.ts.map +1 -0
- package/dist/notifications/notifications.contract.spec.js +39 -0
- package/dist/own-research/own-research.contract.d.ts +196 -130
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/proofs/proofs.contract.d.ts +356 -356
- package/dist/proofs/proofs.dtos.d.ts +148 -148
- package/dist/realtime/job-call-priority-updated.d.ts +18 -0
- package/dist/realtime/job-call-priority-updated.d.ts.map +1 -0
- package/dist/realtime/job-call-priority-updated.js +17 -0
- package/dist/shared/summary-schemas.d.ts +36 -27
- package/dist/shared/summary-schemas.d.ts.map +1 -1
- package/dist/shared/summary-schemas.js +7 -0
- package/dist/sheets-sync/sheets-sync.contract.d.ts +683 -683
- package/dist/user-access-grants/user-access-grants.contract.d.ts +55 -55
- package/dist/users/users.contract.d.ts +236 -236
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +69 -69
- package/dist/workers/workers.contract.d.ts +2620 -2420
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -41,15 +41,15 @@ export declare const LeadSchema: z.ZodObject<{
|
|
|
41
41
|
updatedAt: string;
|
|
42
42
|
id: string;
|
|
43
43
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
44
|
-
phoneNumber: string;
|
|
45
44
|
source: string;
|
|
45
|
+
phoneNumber: string;
|
|
46
46
|
lastCalledAt?: string | null | undefined;
|
|
47
47
|
cooldownUntil?: string | null | undefined;
|
|
48
48
|
blacklistReason?: string | null | undefined;
|
|
49
49
|
lastCallNotes?: string | null | undefined;
|
|
50
|
-
totalCalls?: number | null | undefined;
|
|
51
|
-
conversionRate?: number | null | undefined;
|
|
52
50
|
qualityScore?: number | null | undefined;
|
|
51
|
+
conversionRate?: number | null | undefined;
|
|
52
|
+
totalCalls?: number | null | undefined;
|
|
53
53
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
name: string;
|
|
@@ -57,15 +57,15 @@ export declare const LeadSchema: z.ZodObject<{
|
|
|
57
57
|
updatedAt: string | Date;
|
|
58
58
|
id: string;
|
|
59
59
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
60
|
-
phoneNumber: string;
|
|
61
60
|
source: string;
|
|
61
|
+
phoneNumber: string;
|
|
62
62
|
lastCalledAt?: string | Date | null | undefined;
|
|
63
63
|
cooldownUntil?: string | Date | null | undefined;
|
|
64
64
|
blacklistReason?: string | null | undefined;
|
|
65
65
|
lastCallNotes?: string | null | undefined;
|
|
66
|
-
totalCalls?: number | null | undefined;
|
|
67
|
-
conversionRate?: number | null | undefined;
|
|
68
66
|
qualityScore?: number | null | undefined;
|
|
67
|
+
conversionRate?: number | null | undefined;
|
|
68
|
+
totalCalls?: number | null | undefined;
|
|
69
69
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
70
70
|
}>;
|
|
71
71
|
/**
|
|
@@ -80,29 +80,29 @@ export declare const CreateLeadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
80
80
|
source: z.ZodString;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
82
|
name: string;
|
|
83
|
-
phoneNumber: string;
|
|
84
83
|
source: string;
|
|
84
|
+
phoneNumber: string;
|
|
85
85
|
isBlacklisted: boolean;
|
|
86
86
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
87
87
|
blacklistReason?: string | null | undefined;
|
|
88
88
|
}, {
|
|
89
89
|
name: string;
|
|
90
|
-
phoneNumber: string;
|
|
91
90
|
source: string;
|
|
91
|
+
phoneNumber: string;
|
|
92
92
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
93
93
|
blacklistReason?: string | null | undefined;
|
|
94
94
|
isBlacklisted?: boolean | undefined;
|
|
95
95
|
}>, {
|
|
96
96
|
name: string;
|
|
97
|
-
phoneNumber: string;
|
|
98
97
|
source: string;
|
|
98
|
+
phoneNumber: string;
|
|
99
99
|
isBlacklisted: boolean;
|
|
100
100
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
101
101
|
blacklistReason?: string | null | undefined;
|
|
102
102
|
}, {
|
|
103
103
|
name: string;
|
|
104
|
-
phoneNumber: string;
|
|
105
104
|
source: string;
|
|
105
|
+
phoneNumber: string;
|
|
106
106
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
107
107
|
blacklistReason?: string | null | undefined;
|
|
108
108
|
isBlacklisted?: boolean | undefined;
|
|
@@ -119,27 +119,27 @@ export declare const UpdateLeadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
120
|
name?: string | undefined;
|
|
121
121
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
122
|
+
source?: string | undefined;
|
|
122
123
|
phoneNumber?: string | undefined;
|
|
123
124
|
blacklistReason?: string | null | undefined;
|
|
124
|
-
source?: string | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
name?: string | undefined;
|
|
127
127
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
128
|
+
source?: string | undefined;
|
|
128
129
|
phoneNumber?: string | undefined;
|
|
129
130
|
blacklistReason?: string | null | undefined;
|
|
130
|
-
source?: string | undefined;
|
|
131
131
|
}>, {
|
|
132
132
|
name?: string | undefined;
|
|
133
133
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
134
|
+
source?: string | undefined;
|
|
134
135
|
phoneNumber?: string | undefined;
|
|
135
136
|
blacklistReason?: string | null | undefined;
|
|
136
|
-
source?: string | undefined;
|
|
137
137
|
}, {
|
|
138
138
|
name?: string | undefined;
|
|
139
139
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
140
|
+
source?: string | undefined;
|
|
140
141
|
phoneNumber?: string | undefined;
|
|
141
142
|
blacklistReason?: string | null | undefined;
|
|
142
|
-
source?: string | undefined;
|
|
143
143
|
}>;
|
|
144
144
|
/**
|
|
145
145
|
* Filter Lead Schema
|
|
@@ -171,10 +171,10 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
171
171
|
field: z.ZodEnum<["name", "phoneNumber", "status", "source", "lastCalledAt", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>;
|
|
172
172
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
field: "name" | "createdAt" | "updatedAt" | "status" | "
|
|
174
|
+
field: "name" | "createdAt" | "updatedAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls";
|
|
175
175
|
order: "ASC" | "DESC";
|
|
176
176
|
}, {
|
|
177
|
-
field: "name" | "createdAt" | "updatedAt" | "status" | "
|
|
177
|
+
field: "name" | "createdAt" | "updatedAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls";
|
|
178
178
|
order: "ASC" | "DESC";
|
|
179
179
|
}>, "many">>>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -182,17 +182,17 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
182
182
|
limit: number;
|
|
183
183
|
name?: string | null | undefined;
|
|
184
184
|
sort?: {
|
|
185
|
-
field: "name" | "createdAt" | "updatedAt" | "status" | "
|
|
185
|
+
field: "name" | "createdAt" | "updatedAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls";
|
|
186
186
|
order: "ASC" | "DESC";
|
|
187
187
|
}[] | null | undefined;
|
|
188
188
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | null | undefined;
|
|
189
|
+
source?: string | null | undefined;
|
|
189
190
|
phoneNumber?: string | null | undefined;
|
|
190
191
|
lastCalledAt?: {
|
|
191
192
|
from?: string | null | undefined;
|
|
192
193
|
to?: string | null | undefined;
|
|
193
194
|
} | null | undefined;
|
|
194
195
|
minTotalCalls?: number | null | undefined;
|
|
195
|
-
source?: string | null | undefined;
|
|
196
196
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
197
197
|
minQualityScore?: number | null | undefined;
|
|
198
198
|
maxQualityScore?: number | null | undefined;
|
|
@@ -200,19 +200,19 @@ export declare const FilterLeadSchema: z.ZodObject<{
|
|
|
200
200
|
}, {
|
|
201
201
|
name?: string | null | undefined;
|
|
202
202
|
sort?: {
|
|
203
|
-
field: "name" | "createdAt" | "updatedAt" | "status" | "
|
|
203
|
+
field: "name" | "createdAt" | "updatedAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls";
|
|
204
204
|
order: "ASC" | "DESC";
|
|
205
205
|
}[] | null | undefined;
|
|
206
206
|
page?: number | undefined;
|
|
207
207
|
limit?: number | undefined;
|
|
208
208
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | null | undefined;
|
|
209
|
+
source?: string | null | undefined;
|
|
209
210
|
phoneNumber?: string | null | undefined;
|
|
210
211
|
lastCalledAt?: {
|
|
211
212
|
from?: string | null | undefined;
|
|
212
213
|
to?: string | null | undefined;
|
|
213
214
|
} | null | undefined;
|
|
214
215
|
minTotalCalls?: number | null | undefined;
|
|
215
|
-
source?: string | null | undefined;
|
|
216
216
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
217
217
|
minQualityScore?: number | null | undefined;
|
|
218
218
|
maxQualityScore?: number | null | undefined;
|
|
@@ -240,8 +240,8 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
240
240
|
rating: import("../common/call-rating.schema").CallRating;
|
|
241
241
|
callType: import("../call-history/call-history.contract").CallType;
|
|
242
242
|
leadId: string;
|
|
243
|
-
ratingWeight: number;
|
|
244
243
|
assignmentId: string;
|
|
244
|
+
ratingWeight: number;
|
|
245
245
|
notes?: string | null | undefined;
|
|
246
246
|
}, {
|
|
247
247
|
createdAt: string | Date;
|
|
@@ -251,8 +251,8 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
|
|
|
251
251
|
rating: import("../common/call-rating.schema").CallRating;
|
|
252
252
|
callType: import("../call-history/call-history.contract").CallType;
|
|
253
253
|
leadId: string;
|
|
254
|
-
ratingWeight: number;
|
|
255
254
|
assignmentId: string;
|
|
255
|
+
ratingWeight: number;
|
|
256
256
|
notes?: string | null | undefined;
|
|
257
257
|
}>;
|
|
258
258
|
/**
|
|
@@ -341,15 +341,15 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
341
341
|
updatedAt: string;
|
|
342
342
|
id: string;
|
|
343
343
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
344
|
-
phoneNumber: string;
|
|
345
344
|
source: string;
|
|
345
|
+
phoneNumber: string;
|
|
346
346
|
lastCalledAt?: string | null | undefined;
|
|
347
347
|
cooldownUntil?: string | null | undefined;
|
|
348
348
|
blacklistReason?: string | null | undefined;
|
|
349
349
|
lastCallNotes?: string | null | undefined;
|
|
350
|
-
totalCalls?: number | null | undefined;
|
|
351
|
-
conversionRate?: number | null | undefined;
|
|
352
350
|
qualityScore?: number | null | undefined;
|
|
351
|
+
conversionRate?: number | null | undefined;
|
|
352
|
+
totalCalls?: number | null | undefined;
|
|
353
353
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
354
354
|
}, {
|
|
355
355
|
name: string;
|
|
@@ -357,15 +357,15 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
357
357
|
updatedAt: string | Date;
|
|
358
358
|
id: string;
|
|
359
359
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
360
|
-
phoneNumber: string;
|
|
361
360
|
source: string;
|
|
361
|
+
phoneNumber: string;
|
|
362
362
|
lastCalledAt?: string | Date | null | undefined;
|
|
363
363
|
cooldownUntil?: string | Date | null | undefined;
|
|
364
364
|
blacklistReason?: string | null | undefined;
|
|
365
365
|
lastCallNotes?: string | null | undefined;
|
|
366
|
-
totalCalls?: number | null | undefined;
|
|
367
|
-
conversionRate?: number | null | undefined;
|
|
368
366
|
qualityScore?: number | null | undefined;
|
|
367
|
+
conversionRate?: number | null | undefined;
|
|
368
|
+
totalCalls?: number | null | undefined;
|
|
369
369
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
370
370
|
}>, "many">;
|
|
371
371
|
totalCount: z.ZodNumber;
|
|
@@ -381,15 +381,15 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
381
381
|
updatedAt: string;
|
|
382
382
|
id: string;
|
|
383
383
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
384
|
-
phoneNumber: string;
|
|
385
384
|
source: string;
|
|
385
|
+
phoneNumber: string;
|
|
386
386
|
lastCalledAt?: string | null | undefined;
|
|
387
387
|
cooldownUntil?: string | null | undefined;
|
|
388
388
|
blacklistReason?: string | null | undefined;
|
|
389
389
|
lastCallNotes?: string | null | undefined;
|
|
390
|
-
totalCalls?: number | null | undefined;
|
|
391
|
-
conversionRate?: number | null | undefined;
|
|
392
390
|
qualityScore?: number | null | undefined;
|
|
391
|
+
conversionRate?: number | null | undefined;
|
|
392
|
+
totalCalls?: number | null | undefined;
|
|
393
393
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
394
394
|
}[];
|
|
395
395
|
totalCount: number;
|
|
@@ -404,15 +404,15 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
|
|
|
404
404
|
updatedAt: string | Date;
|
|
405
405
|
id: string;
|
|
406
406
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
407
|
-
phoneNumber: string;
|
|
408
407
|
source: string;
|
|
408
|
+
phoneNumber: string;
|
|
409
409
|
lastCalledAt?: string | Date | null | undefined;
|
|
410
410
|
cooldownUntil?: string | Date | null | undefined;
|
|
411
411
|
blacklistReason?: string | null | undefined;
|
|
412
412
|
lastCallNotes?: string | null | undefined;
|
|
413
|
-
totalCalls?: number | null | undefined;
|
|
414
|
-
conversionRate?: number | null | undefined;
|
|
415
413
|
qualityScore?: number | null | undefined;
|
|
414
|
+
conversionRate?: number | null | undefined;
|
|
415
|
+
totalCalls?: number | null | undefined;
|
|
416
416
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
417
417
|
}[];
|
|
418
418
|
totalCount: number;
|
|
@@ -434,46 +434,46 @@ export declare const BatchUpdateLeadSchema: z.ZodObject<{
|
|
|
434
434
|
}, "strip", z.ZodTypeAny, {
|
|
435
435
|
name?: string | undefined;
|
|
436
436
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
437
|
+
source?: string | undefined;
|
|
437
438
|
phoneNumber?: string | undefined;
|
|
438
439
|
blacklistReason?: string | null | undefined;
|
|
439
|
-
source?: string | undefined;
|
|
440
440
|
}, {
|
|
441
441
|
name?: string | undefined;
|
|
442
442
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
443
|
+
source?: string | undefined;
|
|
443
444
|
phoneNumber?: string | undefined;
|
|
444
445
|
blacklistReason?: string | null | undefined;
|
|
445
|
-
source?: string | undefined;
|
|
446
446
|
}>, {
|
|
447
447
|
name?: string | undefined;
|
|
448
448
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
449
|
+
source?: string | undefined;
|
|
449
450
|
phoneNumber?: string | undefined;
|
|
450
451
|
blacklistReason?: string | null | undefined;
|
|
451
|
-
source?: string | undefined;
|
|
452
452
|
}, {
|
|
453
453
|
name?: string | undefined;
|
|
454
454
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
455
|
+
source?: string | undefined;
|
|
455
456
|
phoneNumber?: string | undefined;
|
|
456
457
|
blacklistReason?: string | null | undefined;
|
|
457
|
-
source?: string | undefined;
|
|
458
458
|
}>;
|
|
459
459
|
}, "strip", z.ZodTypeAny, {
|
|
460
|
+
leadIds: string[];
|
|
460
461
|
data: {
|
|
461
462
|
name?: string | undefined;
|
|
462
463
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
464
|
+
source?: string | undefined;
|
|
463
465
|
phoneNumber?: string | undefined;
|
|
464
466
|
blacklistReason?: string | null | undefined;
|
|
465
|
-
source?: string | undefined;
|
|
466
467
|
};
|
|
467
|
-
leadIds: string[];
|
|
468
468
|
}, {
|
|
469
|
+
leadIds: string[];
|
|
469
470
|
data: {
|
|
470
471
|
name?: string | undefined;
|
|
471
472
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
473
|
+
source?: string | undefined;
|
|
472
474
|
phoneNumber?: string | undefined;
|
|
473
475
|
blacklistReason?: string | null | undefined;
|
|
474
|
-
source?: string | undefined;
|
|
475
476
|
};
|
|
476
|
-
leadIds: string[];
|
|
477
477
|
}>;
|
|
478
478
|
/**
|
|
479
479
|
* Batch Update Lead Response Schema
|
|
@@ -534,36 +534,36 @@ export declare const leadsContractRouter: {
|
|
|
534
534
|
source: z.ZodString;
|
|
535
535
|
}, "strip", z.ZodTypeAny, {
|
|
536
536
|
name: string;
|
|
537
|
-
phoneNumber: string;
|
|
538
537
|
source: string;
|
|
538
|
+
phoneNumber: string;
|
|
539
539
|
isBlacklisted: boolean;
|
|
540
540
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
541
541
|
blacklistReason?: string | null | undefined;
|
|
542
542
|
}, {
|
|
543
543
|
name: string;
|
|
544
|
-
phoneNumber: string;
|
|
545
544
|
source: string;
|
|
545
|
+
phoneNumber: string;
|
|
546
546
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
547
547
|
blacklistReason?: string | null | undefined;
|
|
548
548
|
isBlacklisted?: boolean | undefined;
|
|
549
549
|
}>, {
|
|
550
550
|
name: string;
|
|
551
|
-
phoneNumber: string;
|
|
552
551
|
source: string;
|
|
552
|
+
phoneNumber: string;
|
|
553
553
|
isBlacklisted: boolean;
|
|
554
554
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
555
555
|
blacklistReason?: string | null | undefined;
|
|
556
556
|
}, {
|
|
557
557
|
name: string;
|
|
558
|
-
phoneNumber: string;
|
|
559
558
|
source: string;
|
|
559
|
+
phoneNumber: string;
|
|
560
560
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
561
561
|
blacklistReason?: string | null | undefined;
|
|
562
562
|
isBlacklisted?: boolean | undefined;
|
|
563
563
|
}>;
|
|
564
564
|
path: "/v2/leads";
|
|
565
565
|
responses: {
|
|
566
|
-
|
|
566
|
+
401: z.ZodObject<{
|
|
567
567
|
statusCode: z.ZodNumber;
|
|
568
568
|
message: z.ZodString;
|
|
569
569
|
code: z.ZodString;
|
|
@@ -572,23 +572,23 @@ export declare const leadsContractRouter: {
|
|
|
572
572
|
path: z.ZodString;
|
|
573
573
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
574
574
|
}, "strip", z.ZodTypeAny, {
|
|
575
|
-
message: string;
|
|
576
575
|
code: string;
|
|
577
576
|
path: string;
|
|
577
|
+
message: string;
|
|
578
578
|
statusCode: number;
|
|
579
579
|
timestamp: string;
|
|
580
580
|
details?: unknown;
|
|
581
581
|
correlationId?: string | undefined;
|
|
582
582
|
}, {
|
|
583
|
-
message: string;
|
|
584
583
|
code: string;
|
|
585
584
|
path: string;
|
|
585
|
+
message: string;
|
|
586
586
|
statusCode: number;
|
|
587
587
|
timestamp: string;
|
|
588
588
|
details?: unknown;
|
|
589
589
|
correlationId?: string | undefined;
|
|
590
590
|
}>;
|
|
591
|
-
|
|
591
|
+
400: z.ZodObject<{
|
|
592
592
|
statusCode: z.ZodNumber;
|
|
593
593
|
message: z.ZodString;
|
|
594
594
|
code: z.ZodString;
|
|
@@ -597,23 +597,23 @@ export declare const leadsContractRouter: {
|
|
|
597
597
|
path: z.ZodString;
|
|
598
598
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
599
599
|
}, "strip", z.ZodTypeAny, {
|
|
600
|
-
message: string;
|
|
601
600
|
code: string;
|
|
602
601
|
path: string;
|
|
602
|
+
message: string;
|
|
603
603
|
statusCode: number;
|
|
604
604
|
timestamp: string;
|
|
605
605
|
details?: unknown;
|
|
606
606
|
correlationId?: string | undefined;
|
|
607
607
|
}, {
|
|
608
|
-
message: string;
|
|
609
608
|
code: string;
|
|
610
609
|
path: string;
|
|
610
|
+
message: string;
|
|
611
611
|
statusCode: number;
|
|
612
612
|
timestamp: string;
|
|
613
613
|
details?: unknown;
|
|
614
614
|
correlationId?: string | undefined;
|
|
615
615
|
}>;
|
|
616
|
-
|
|
616
|
+
403: z.ZodObject<{
|
|
617
617
|
statusCode: z.ZodNumber;
|
|
618
618
|
message: z.ZodString;
|
|
619
619
|
code: z.ZodString;
|
|
@@ -622,17 +622,17 @@ export declare const leadsContractRouter: {
|
|
|
622
622
|
path: z.ZodString;
|
|
623
623
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
624
624
|
}, "strip", z.ZodTypeAny, {
|
|
625
|
-
message: string;
|
|
626
625
|
code: string;
|
|
627
626
|
path: string;
|
|
627
|
+
message: string;
|
|
628
628
|
statusCode: number;
|
|
629
629
|
timestamp: string;
|
|
630
630
|
details?: unknown;
|
|
631
631
|
correlationId?: string | undefined;
|
|
632
632
|
}, {
|
|
633
|
-
message: string;
|
|
634
633
|
code: string;
|
|
635
634
|
path: string;
|
|
635
|
+
message: string;
|
|
636
636
|
statusCode: number;
|
|
637
637
|
timestamp: string;
|
|
638
638
|
details?: unknown;
|
|
@@ -647,17 +647,17 @@ export declare const leadsContractRouter: {
|
|
|
647
647
|
path: z.ZodString;
|
|
648
648
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
649
649
|
}, "strip", z.ZodTypeAny, {
|
|
650
|
-
message: string;
|
|
651
650
|
code: string;
|
|
652
651
|
path: string;
|
|
652
|
+
message: string;
|
|
653
653
|
statusCode: number;
|
|
654
654
|
timestamp: string;
|
|
655
655
|
details?: unknown;
|
|
656
656
|
correlationId?: string | undefined;
|
|
657
657
|
}, {
|
|
658
|
-
message: string;
|
|
659
658
|
code: string;
|
|
660
659
|
path: string;
|
|
660
|
+
message: string;
|
|
661
661
|
statusCode: number;
|
|
662
662
|
timestamp: string;
|
|
663
663
|
details?: unknown;
|
|
@@ -685,15 +685,15 @@ export declare const leadsContractRouter: {
|
|
|
685
685
|
updatedAt: string;
|
|
686
686
|
id: string;
|
|
687
687
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
688
|
-
phoneNumber: string;
|
|
689
688
|
source: string;
|
|
689
|
+
phoneNumber: string;
|
|
690
690
|
lastCalledAt?: string | null | undefined;
|
|
691
691
|
cooldownUntil?: string | null | undefined;
|
|
692
692
|
blacklistReason?: string | null | undefined;
|
|
693
693
|
lastCallNotes?: string | null | undefined;
|
|
694
|
-
totalCalls?: number | null | undefined;
|
|
695
|
-
conversionRate?: number | null | undefined;
|
|
696
694
|
qualityScore?: number | null | undefined;
|
|
695
|
+
conversionRate?: number | null | undefined;
|
|
696
|
+
totalCalls?: number | null | undefined;
|
|
697
697
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
698
698
|
}, {
|
|
699
699
|
name: string;
|
|
@@ -701,15 +701,15 @@ export declare const leadsContractRouter: {
|
|
|
701
701
|
updatedAt: string | Date;
|
|
702
702
|
id: string;
|
|
703
703
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
704
|
-
phoneNumber: string;
|
|
705
704
|
source: string;
|
|
705
|
+
phoneNumber: string;
|
|
706
706
|
lastCalledAt?: string | Date | null | undefined;
|
|
707
707
|
cooldownUntil?: string | Date | null | undefined;
|
|
708
708
|
blacklistReason?: string | null | undefined;
|
|
709
709
|
lastCallNotes?: string | null | undefined;
|
|
710
|
-
totalCalls?: number | null | undefined;
|
|
711
|
-
conversionRate?: number | null | undefined;
|
|
712
710
|
qualityScore?: number | null | undefined;
|
|
711
|
+
conversionRate?: number | null | undefined;
|
|
712
|
+
totalCalls?: number | null | undefined;
|
|
713
713
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
714
714
|
}>;
|
|
715
715
|
409: z.ZodObject<{
|
|
@@ -721,17 +721,17 @@ export declare const leadsContractRouter: {
|
|
|
721
721
|
path: z.ZodString;
|
|
722
722
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
723
723
|
}, "strip", z.ZodTypeAny, {
|
|
724
|
-
message: string;
|
|
725
724
|
code: string;
|
|
726
725
|
path: string;
|
|
726
|
+
message: string;
|
|
727
727
|
statusCode: number;
|
|
728
728
|
timestamp: string;
|
|
729
729
|
details?: unknown;
|
|
730
730
|
correlationId?: string | undefined;
|
|
731
731
|
}, {
|
|
732
|
-
message: string;
|
|
733
732
|
code: string;
|
|
734
733
|
path: string;
|
|
734
|
+
message: string;
|
|
735
735
|
statusCode: number;
|
|
736
736
|
timestamp: string;
|
|
737
737
|
details?: unknown;
|
|
@@ -740,12 +740,6 @@ export declare const leadsContractRouter: {
|
|
|
740
740
|
};
|
|
741
741
|
};
|
|
742
742
|
findAll: {
|
|
743
|
-
metadata: {
|
|
744
|
-
tags: string[];
|
|
745
|
-
openApi: {
|
|
746
|
-
operationId: string;
|
|
747
|
-
};
|
|
748
|
-
};
|
|
749
743
|
query: z.ZodObject<{
|
|
750
744
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
751
745
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -773,10 +767,10 @@ export declare const leadsContractRouter: {
|
|
|
773
767
|
field: z.ZodEnum<["name", "phoneNumber", "status", "source", "lastCalledAt", "qualityScore", "conversionRate", "totalCalls", "createdAt", "updatedAt"]>;
|
|
774
768
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
775
769
|
}, "strip", z.ZodTypeAny, {
|
|
776
|
-
field: "name" | "createdAt" | "updatedAt" | "status" | "
|
|
770
|
+
field: "name" | "createdAt" | "updatedAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls";
|
|
777
771
|
order: "ASC" | "DESC";
|
|
778
772
|
}, {
|
|
779
|
-
field: "name" | "createdAt" | "updatedAt" | "status" | "
|
|
773
|
+
field: "name" | "createdAt" | "updatedAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls";
|
|
780
774
|
order: "ASC" | "DESC";
|
|
781
775
|
}>, "many">>>;
|
|
782
776
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -784,17 +778,17 @@ export declare const leadsContractRouter: {
|
|
|
784
778
|
limit: number;
|
|
785
779
|
name?: string | null | undefined;
|
|
786
780
|
sort?: {
|
|
787
|
-
field: "name" | "createdAt" | "updatedAt" | "status" | "
|
|
781
|
+
field: "name" | "createdAt" | "updatedAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls";
|
|
788
782
|
order: "ASC" | "DESC";
|
|
789
783
|
}[] | null | undefined;
|
|
790
784
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | null | undefined;
|
|
785
|
+
source?: string | null | undefined;
|
|
791
786
|
phoneNumber?: string | null | undefined;
|
|
792
787
|
lastCalledAt?: {
|
|
793
788
|
from?: string | null | undefined;
|
|
794
789
|
to?: string | null | undefined;
|
|
795
790
|
} | null | undefined;
|
|
796
791
|
minTotalCalls?: number | null | undefined;
|
|
797
|
-
source?: string | null | undefined;
|
|
798
792
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
799
793
|
minQualityScore?: number | null | undefined;
|
|
800
794
|
maxQualityScore?: number | null | undefined;
|
|
@@ -802,29 +796,35 @@ export declare const leadsContractRouter: {
|
|
|
802
796
|
}, {
|
|
803
797
|
name?: string | null | undefined;
|
|
804
798
|
sort?: {
|
|
805
|
-
field: "name" | "createdAt" | "updatedAt" | "status" | "
|
|
799
|
+
field: "name" | "createdAt" | "updatedAt" | "status" | "source" | "phoneNumber" | "lastCalledAt" | "qualityScore" | "conversionRate" | "totalCalls";
|
|
806
800
|
order: "ASC" | "DESC";
|
|
807
801
|
}[] | null | undefined;
|
|
808
802
|
page?: number | undefined;
|
|
809
803
|
limit?: number | undefined;
|
|
810
804
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | null | undefined;
|
|
805
|
+
source?: string | null | undefined;
|
|
811
806
|
phoneNumber?: string | null | undefined;
|
|
812
807
|
lastCalledAt?: {
|
|
813
808
|
from?: string | null | undefined;
|
|
814
809
|
to?: string | null | undefined;
|
|
815
810
|
} | null | undefined;
|
|
816
811
|
minTotalCalls?: number | null | undefined;
|
|
817
|
-
source?: string | null | undefined;
|
|
818
812
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
819
813
|
minQualityScore?: number | null | undefined;
|
|
820
814
|
maxQualityScore?: number | null | undefined;
|
|
821
815
|
minConversionRate?: number | null | undefined;
|
|
822
816
|
}>;
|
|
817
|
+
metadata: {
|
|
818
|
+
tags: string[];
|
|
819
|
+
openApi: {
|
|
820
|
+
operationId: string;
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
823
|
summary: "Get all leads";
|
|
824
824
|
method: "GET";
|
|
825
825
|
path: "/v2/leads";
|
|
826
826
|
responses: {
|
|
827
|
-
|
|
827
|
+
401: z.ZodObject<{
|
|
828
828
|
statusCode: z.ZodNumber;
|
|
829
829
|
message: z.ZodString;
|
|
830
830
|
code: z.ZodString;
|
|
@@ -833,23 +833,23 @@ export declare const leadsContractRouter: {
|
|
|
833
833
|
path: z.ZodString;
|
|
834
834
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
835
835
|
}, "strip", z.ZodTypeAny, {
|
|
836
|
-
message: string;
|
|
837
836
|
code: string;
|
|
838
837
|
path: string;
|
|
838
|
+
message: string;
|
|
839
839
|
statusCode: number;
|
|
840
840
|
timestamp: string;
|
|
841
841
|
details?: unknown;
|
|
842
842
|
correlationId?: string | undefined;
|
|
843
843
|
}, {
|
|
844
|
-
message: string;
|
|
845
844
|
code: string;
|
|
846
845
|
path: string;
|
|
846
|
+
message: string;
|
|
847
847
|
statusCode: number;
|
|
848
848
|
timestamp: string;
|
|
849
849
|
details?: unknown;
|
|
850
850
|
correlationId?: string | undefined;
|
|
851
851
|
}>;
|
|
852
|
-
|
|
852
|
+
400: z.ZodObject<{
|
|
853
853
|
statusCode: z.ZodNumber;
|
|
854
854
|
message: z.ZodString;
|
|
855
855
|
code: z.ZodString;
|
|
@@ -858,23 +858,23 @@ export declare const leadsContractRouter: {
|
|
|
858
858
|
path: z.ZodString;
|
|
859
859
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
860
860
|
}, "strip", z.ZodTypeAny, {
|
|
861
|
-
message: string;
|
|
862
861
|
code: string;
|
|
863
862
|
path: string;
|
|
863
|
+
message: string;
|
|
864
864
|
statusCode: number;
|
|
865
865
|
timestamp: string;
|
|
866
866
|
details?: unknown;
|
|
867
867
|
correlationId?: string | undefined;
|
|
868
868
|
}, {
|
|
869
|
-
message: string;
|
|
870
869
|
code: string;
|
|
871
870
|
path: string;
|
|
871
|
+
message: string;
|
|
872
872
|
statusCode: number;
|
|
873
873
|
timestamp: string;
|
|
874
874
|
details?: unknown;
|
|
875
875
|
correlationId?: string | undefined;
|
|
876
876
|
}>;
|
|
877
|
-
|
|
877
|
+
403: z.ZodObject<{
|
|
878
878
|
statusCode: z.ZodNumber;
|
|
879
879
|
message: z.ZodString;
|
|
880
880
|
code: z.ZodString;
|
|
@@ -883,17 +883,17 @@ export declare const leadsContractRouter: {
|
|
|
883
883
|
path: z.ZodString;
|
|
884
884
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
885
885
|
}, "strip", z.ZodTypeAny, {
|
|
886
|
-
message: string;
|
|
887
886
|
code: string;
|
|
888
887
|
path: string;
|
|
888
|
+
message: string;
|
|
889
889
|
statusCode: number;
|
|
890
890
|
timestamp: string;
|
|
891
891
|
details?: unknown;
|
|
892
892
|
correlationId?: string | undefined;
|
|
893
893
|
}, {
|
|
894
|
-
message: string;
|
|
895
894
|
code: string;
|
|
896
895
|
path: string;
|
|
896
|
+
message: string;
|
|
897
897
|
statusCode: number;
|
|
898
898
|
timestamp: string;
|
|
899
899
|
details?: unknown;
|
|
@@ -908,17 +908,17 @@ export declare const leadsContractRouter: {
|
|
|
908
908
|
path: z.ZodString;
|
|
909
909
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
910
910
|
}, "strip", z.ZodTypeAny, {
|
|
911
|
-
message: string;
|
|
912
911
|
code: string;
|
|
913
912
|
path: string;
|
|
913
|
+
message: string;
|
|
914
914
|
statusCode: number;
|
|
915
915
|
timestamp: string;
|
|
916
916
|
details?: unknown;
|
|
917
917
|
correlationId?: string | undefined;
|
|
918
918
|
}, {
|
|
919
|
-
message: string;
|
|
920
919
|
code: string;
|
|
921
920
|
path: string;
|
|
921
|
+
message: string;
|
|
922
922
|
statusCode: number;
|
|
923
923
|
timestamp: string;
|
|
924
924
|
details?: unknown;
|
|
@@ -947,15 +947,15 @@ export declare const leadsContractRouter: {
|
|
|
947
947
|
updatedAt: string;
|
|
948
948
|
id: string;
|
|
949
949
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
950
|
-
phoneNumber: string;
|
|
951
950
|
source: string;
|
|
951
|
+
phoneNumber: string;
|
|
952
952
|
lastCalledAt?: string | null | undefined;
|
|
953
953
|
cooldownUntil?: string | null | undefined;
|
|
954
954
|
blacklistReason?: string | null | undefined;
|
|
955
955
|
lastCallNotes?: string | null | undefined;
|
|
956
|
-
totalCalls?: number | null | undefined;
|
|
957
|
-
conversionRate?: number | null | undefined;
|
|
958
956
|
qualityScore?: number | null | undefined;
|
|
957
|
+
conversionRate?: number | null | undefined;
|
|
958
|
+
totalCalls?: number | null | undefined;
|
|
959
959
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
960
960
|
}, {
|
|
961
961
|
name: string;
|
|
@@ -963,15 +963,15 @@ export declare const leadsContractRouter: {
|
|
|
963
963
|
updatedAt: string | Date;
|
|
964
964
|
id: string;
|
|
965
965
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
966
|
-
phoneNumber: string;
|
|
967
966
|
source: string;
|
|
967
|
+
phoneNumber: string;
|
|
968
968
|
lastCalledAt?: string | Date | null | undefined;
|
|
969
969
|
cooldownUntil?: string | Date | null | undefined;
|
|
970
970
|
blacklistReason?: string | null | undefined;
|
|
971
971
|
lastCallNotes?: string | null | undefined;
|
|
972
|
-
totalCalls?: number | null | undefined;
|
|
973
|
-
conversionRate?: number | null | undefined;
|
|
974
972
|
qualityScore?: number | null | undefined;
|
|
973
|
+
conversionRate?: number | null | undefined;
|
|
974
|
+
totalCalls?: number | null | undefined;
|
|
975
975
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
976
976
|
}>, "many">;
|
|
977
977
|
totalCount: z.ZodNumber;
|
|
@@ -987,15 +987,15 @@ export declare const leadsContractRouter: {
|
|
|
987
987
|
updatedAt: string;
|
|
988
988
|
id: string;
|
|
989
989
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
990
|
-
phoneNumber: string;
|
|
991
990
|
source: string;
|
|
991
|
+
phoneNumber: string;
|
|
992
992
|
lastCalledAt?: string | null | undefined;
|
|
993
993
|
cooldownUntil?: string | null | undefined;
|
|
994
994
|
blacklistReason?: string | null | undefined;
|
|
995
995
|
lastCallNotes?: string | null | undefined;
|
|
996
|
-
totalCalls?: number | null | undefined;
|
|
997
|
-
conversionRate?: number | null | undefined;
|
|
998
996
|
qualityScore?: number | null | undefined;
|
|
997
|
+
conversionRate?: number | null | undefined;
|
|
998
|
+
totalCalls?: number | null | undefined;
|
|
999
999
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1000
1000
|
}[];
|
|
1001
1001
|
totalCount: number;
|
|
@@ -1010,15 +1010,15 @@ export declare const leadsContractRouter: {
|
|
|
1010
1010
|
updatedAt: string | Date;
|
|
1011
1011
|
id: string;
|
|
1012
1012
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1013
|
-
phoneNumber: string;
|
|
1014
1013
|
source: string;
|
|
1014
|
+
phoneNumber: string;
|
|
1015
1015
|
lastCalledAt?: string | Date | null | undefined;
|
|
1016
1016
|
cooldownUntil?: string | Date | null | undefined;
|
|
1017
1017
|
blacklistReason?: string | null | undefined;
|
|
1018
1018
|
lastCallNotes?: string | null | undefined;
|
|
1019
|
-
totalCalls?: number | null | undefined;
|
|
1020
|
-
conversionRate?: number | null | undefined;
|
|
1021
1019
|
qualityScore?: number | null | undefined;
|
|
1020
|
+
conversionRate?: number | null | undefined;
|
|
1021
|
+
totalCalls?: number | null | undefined;
|
|
1022
1022
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1023
1023
|
}[];
|
|
1024
1024
|
totalCount: number;
|
|
@@ -1048,46 +1048,46 @@ export declare const leadsContractRouter: {
|
|
|
1048
1048
|
}, "strip", z.ZodTypeAny, {
|
|
1049
1049
|
name?: string | undefined;
|
|
1050
1050
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1051
|
+
source?: string | undefined;
|
|
1051
1052
|
phoneNumber?: string | undefined;
|
|
1052
1053
|
blacklistReason?: string | null | undefined;
|
|
1053
|
-
source?: string | undefined;
|
|
1054
1054
|
}, {
|
|
1055
1055
|
name?: string | undefined;
|
|
1056
1056
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1057
|
+
source?: string | undefined;
|
|
1057
1058
|
phoneNumber?: string | undefined;
|
|
1058
1059
|
blacklistReason?: string | null | undefined;
|
|
1059
|
-
source?: string | undefined;
|
|
1060
1060
|
}>, {
|
|
1061
1061
|
name?: string | undefined;
|
|
1062
1062
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1063
|
+
source?: string | undefined;
|
|
1063
1064
|
phoneNumber?: string | undefined;
|
|
1064
1065
|
blacklistReason?: string | null | undefined;
|
|
1065
|
-
source?: string | undefined;
|
|
1066
1066
|
}, {
|
|
1067
1067
|
name?: string | undefined;
|
|
1068
1068
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1069
|
+
source?: string | undefined;
|
|
1069
1070
|
phoneNumber?: string | undefined;
|
|
1070
1071
|
blacklistReason?: string | null | undefined;
|
|
1071
|
-
source?: string | undefined;
|
|
1072
1072
|
}>;
|
|
1073
1073
|
}, "strip", z.ZodTypeAny, {
|
|
1074
|
+
leadIds: string[];
|
|
1074
1075
|
data: {
|
|
1075
1076
|
name?: string | undefined;
|
|
1076
1077
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1078
|
+
source?: string | undefined;
|
|
1077
1079
|
phoneNumber?: string | undefined;
|
|
1078
1080
|
blacklistReason?: string | null | undefined;
|
|
1079
|
-
source?: string | undefined;
|
|
1080
1081
|
};
|
|
1081
|
-
leadIds: string[];
|
|
1082
1082
|
}, {
|
|
1083
|
+
leadIds: string[];
|
|
1083
1084
|
data: {
|
|
1084
1085
|
name?: string | undefined;
|
|
1085
1086
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1087
|
+
source?: string | undefined;
|
|
1086
1088
|
phoneNumber?: string | undefined;
|
|
1087
1089
|
blacklistReason?: string | null | undefined;
|
|
1088
|
-
source?: string | undefined;
|
|
1089
1090
|
};
|
|
1090
|
-
leadIds: string[];
|
|
1091
1091
|
}>;
|
|
1092
1092
|
path: "/v2/leads/batch";
|
|
1093
1093
|
responses: {
|
|
@@ -1100,17 +1100,17 @@ export declare const leadsContractRouter: {
|
|
|
1100
1100
|
path: z.ZodString;
|
|
1101
1101
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1102
1102
|
}, "strip", z.ZodTypeAny, {
|
|
1103
|
-
message: string;
|
|
1104
1103
|
code: string;
|
|
1105
1104
|
path: string;
|
|
1105
|
+
message: string;
|
|
1106
1106
|
statusCode: number;
|
|
1107
1107
|
timestamp: string;
|
|
1108
1108
|
details?: unknown;
|
|
1109
1109
|
correlationId?: string | undefined;
|
|
1110
1110
|
}, {
|
|
1111
|
-
message: string;
|
|
1112
1111
|
code: string;
|
|
1113
1112
|
path: string;
|
|
1113
|
+
message: string;
|
|
1114
1114
|
statusCode: number;
|
|
1115
1115
|
timestamp: string;
|
|
1116
1116
|
details?: unknown;
|
|
@@ -1125,17 +1125,17 @@ export declare const leadsContractRouter: {
|
|
|
1125
1125
|
path: z.ZodString;
|
|
1126
1126
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1127
1127
|
}, "strip", z.ZodTypeAny, {
|
|
1128
|
-
message: string;
|
|
1129
1128
|
code: string;
|
|
1130
1129
|
path: string;
|
|
1130
|
+
message: string;
|
|
1131
1131
|
statusCode: number;
|
|
1132
1132
|
timestamp: string;
|
|
1133
1133
|
details?: unknown;
|
|
1134
1134
|
correlationId?: string | undefined;
|
|
1135
1135
|
}, {
|
|
1136
|
-
message: string;
|
|
1137
1136
|
code: string;
|
|
1138
1137
|
path: string;
|
|
1138
|
+
message: string;
|
|
1139
1139
|
statusCode: number;
|
|
1140
1140
|
timestamp: string;
|
|
1141
1141
|
details?: unknown;
|
|
@@ -1157,17 +1157,17 @@ export declare const leadsContractRouter: {
|
|
|
1157
1157
|
path: z.ZodString;
|
|
1158
1158
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1159
1159
|
}, "strip", z.ZodTypeAny, {
|
|
1160
|
-
message: string;
|
|
1161
1160
|
code: string;
|
|
1162
1161
|
path: string;
|
|
1162
|
+
message: string;
|
|
1163
1163
|
statusCode: number;
|
|
1164
1164
|
timestamp: string;
|
|
1165
1165
|
details?: unknown;
|
|
1166
1166
|
correlationId?: string | undefined;
|
|
1167
1167
|
}, {
|
|
1168
|
-
message: string;
|
|
1169
1168
|
code: string;
|
|
1170
1169
|
path: string;
|
|
1170
|
+
message: string;
|
|
1171
1171
|
statusCode: number;
|
|
1172
1172
|
timestamp: string;
|
|
1173
1173
|
details?: unknown;
|
|
@@ -1182,17 +1182,17 @@ export declare const leadsContractRouter: {
|
|
|
1182
1182
|
path: z.ZodString;
|
|
1183
1183
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1184
1184
|
}, "strip", z.ZodTypeAny, {
|
|
1185
|
-
message: string;
|
|
1186
1185
|
code: string;
|
|
1187
1186
|
path: string;
|
|
1187
|
+
message: string;
|
|
1188
1188
|
statusCode: number;
|
|
1189
1189
|
timestamp: string;
|
|
1190
1190
|
details?: unknown;
|
|
1191
1191
|
correlationId?: string | undefined;
|
|
1192
1192
|
}, {
|
|
1193
|
-
message: string;
|
|
1194
1193
|
code: string;
|
|
1195
1194
|
path: string;
|
|
1195
|
+
message: string;
|
|
1196
1196
|
statusCode: number;
|
|
1197
1197
|
timestamp: string;
|
|
1198
1198
|
details?: unknown;
|
|
@@ -1207,17 +1207,17 @@ export declare const leadsContractRouter: {
|
|
|
1207
1207
|
path: z.ZodString;
|
|
1208
1208
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1209
1209
|
}, "strip", z.ZodTypeAny, {
|
|
1210
|
-
message: string;
|
|
1211
1210
|
code: string;
|
|
1212
1211
|
path: string;
|
|
1212
|
+
message: string;
|
|
1213
1213
|
statusCode: number;
|
|
1214
1214
|
timestamp: string;
|
|
1215
1215
|
details?: unknown;
|
|
1216
1216
|
correlationId?: string | undefined;
|
|
1217
1217
|
}, {
|
|
1218
|
-
message: string;
|
|
1219
1218
|
code: string;
|
|
1220
1219
|
path: string;
|
|
1220
|
+
message: string;
|
|
1221
1221
|
statusCode: number;
|
|
1222
1222
|
timestamp: string;
|
|
1223
1223
|
details?: unknown;
|
|
@@ -1252,17 +1252,17 @@ export declare const leadsContractRouter: {
|
|
|
1252
1252
|
path: z.ZodString;
|
|
1253
1253
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1254
1254
|
}, "strip", z.ZodTypeAny, {
|
|
1255
|
-
message: string;
|
|
1256
1255
|
code: string;
|
|
1257
1256
|
path: string;
|
|
1257
|
+
message: string;
|
|
1258
1258
|
statusCode: number;
|
|
1259
1259
|
timestamp: string;
|
|
1260
1260
|
details?: unknown;
|
|
1261
1261
|
correlationId?: string | undefined;
|
|
1262
1262
|
}, {
|
|
1263
|
-
message: string;
|
|
1264
1263
|
code: string;
|
|
1265
1264
|
path: string;
|
|
1265
|
+
message: string;
|
|
1266
1266
|
statusCode: number;
|
|
1267
1267
|
timestamp: string;
|
|
1268
1268
|
details?: unknown;
|
|
@@ -1277,17 +1277,17 @@ export declare const leadsContractRouter: {
|
|
|
1277
1277
|
path: z.ZodString;
|
|
1278
1278
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1279
1279
|
}, "strip", z.ZodTypeAny, {
|
|
1280
|
-
message: string;
|
|
1281
1280
|
code: string;
|
|
1282
1281
|
path: string;
|
|
1282
|
+
message: string;
|
|
1283
1283
|
statusCode: number;
|
|
1284
1284
|
timestamp: string;
|
|
1285
1285
|
details?: unknown;
|
|
1286
1286
|
correlationId?: string | undefined;
|
|
1287
1287
|
}, {
|
|
1288
|
-
message: string;
|
|
1289
1288
|
code: string;
|
|
1290
1289
|
path: string;
|
|
1290
|
+
message: string;
|
|
1291
1291
|
statusCode: number;
|
|
1292
1292
|
timestamp: string;
|
|
1293
1293
|
details?: unknown;
|
|
@@ -1309,17 +1309,17 @@ export declare const leadsContractRouter: {
|
|
|
1309
1309
|
path: z.ZodString;
|
|
1310
1310
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1311
1311
|
}, "strip", z.ZodTypeAny, {
|
|
1312
|
-
message: string;
|
|
1313
1312
|
code: string;
|
|
1314
1313
|
path: string;
|
|
1314
|
+
message: string;
|
|
1315
1315
|
statusCode: number;
|
|
1316
1316
|
timestamp: string;
|
|
1317
1317
|
details?: unknown;
|
|
1318
1318
|
correlationId?: string | undefined;
|
|
1319
1319
|
}, {
|
|
1320
|
-
message: string;
|
|
1321
1320
|
code: string;
|
|
1322
1321
|
path: string;
|
|
1322
|
+
message: string;
|
|
1323
1323
|
statusCode: number;
|
|
1324
1324
|
timestamp: string;
|
|
1325
1325
|
details?: unknown;
|
|
@@ -1334,17 +1334,17 @@ export declare const leadsContractRouter: {
|
|
|
1334
1334
|
path: z.ZodString;
|
|
1335
1335
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1336
1336
|
}, "strip", z.ZodTypeAny, {
|
|
1337
|
-
message: string;
|
|
1338
1337
|
code: string;
|
|
1339
1338
|
path: string;
|
|
1339
|
+
message: string;
|
|
1340
1340
|
statusCode: number;
|
|
1341
1341
|
timestamp: string;
|
|
1342
1342
|
details?: unknown;
|
|
1343
1343
|
correlationId?: string | undefined;
|
|
1344
1344
|
}, {
|
|
1345
|
-
message: string;
|
|
1346
1345
|
code: string;
|
|
1347
1346
|
path: string;
|
|
1347
|
+
message: string;
|
|
1348
1348
|
statusCode: number;
|
|
1349
1349
|
timestamp: string;
|
|
1350
1350
|
details?: unknown;
|
|
@@ -1359,17 +1359,17 @@ export declare const leadsContractRouter: {
|
|
|
1359
1359
|
path: z.ZodString;
|
|
1360
1360
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1361
1361
|
}, "strip", z.ZodTypeAny, {
|
|
1362
|
-
message: string;
|
|
1363
1362
|
code: string;
|
|
1364
1363
|
path: string;
|
|
1364
|
+
message: string;
|
|
1365
1365
|
statusCode: number;
|
|
1366
1366
|
timestamp: string;
|
|
1367
1367
|
details?: unknown;
|
|
1368
1368
|
correlationId?: string | undefined;
|
|
1369
1369
|
}, {
|
|
1370
|
-
message: string;
|
|
1371
1370
|
code: string;
|
|
1372
1371
|
path: string;
|
|
1372
|
+
message: string;
|
|
1373
1373
|
statusCode: number;
|
|
1374
1374
|
timestamp: string;
|
|
1375
1375
|
details?: unknown;
|
|
@@ -1378,18 +1378,18 @@ export declare const leadsContractRouter: {
|
|
|
1378
1378
|
};
|
|
1379
1379
|
};
|
|
1380
1380
|
getQualityDashboard: {
|
|
1381
|
+
query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1381
1382
|
metadata: {
|
|
1382
1383
|
tags: string[];
|
|
1383
1384
|
openApi: {
|
|
1384
1385
|
operationId: string;
|
|
1385
1386
|
};
|
|
1386
1387
|
};
|
|
1387
|
-
query: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1388
1388
|
summary: "Get lead quality analytics dashboard";
|
|
1389
1389
|
method: "GET";
|
|
1390
1390
|
path: "/v2/leads/analytics/quality-dashboard";
|
|
1391
1391
|
responses: {
|
|
1392
|
-
|
|
1392
|
+
401: z.ZodObject<{
|
|
1393
1393
|
statusCode: z.ZodNumber;
|
|
1394
1394
|
message: z.ZodString;
|
|
1395
1395
|
code: z.ZodString;
|
|
@@ -1398,23 +1398,23 @@ export declare const leadsContractRouter: {
|
|
|
1398
1398
|
path: z.ZodString;
|
|
1399
1399
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1400
1400
|
}, "strip", z.ZodTypeAny, {
|
|
1401
|
-
message: string;
|
|
1402
1401
|
code: string;
|
|
1403
1402
|
path: string;
|
|
1403
|
+
message: string;
|
|
1404
1404
|
statusCode: number;
|
|
1405
1405
|
timestamp: string;
|
|
1406
1406
|
details?: unknown;
|
|
1407
1407
|
correlationId?: string | undefined;
|
|
1408
1408
|
}, {
|
|
1409
|
-
message: string;
|
|
1410
1409
|
code: string;
|
|
1411
1410
|
path: string;
|
|
1411
|
+
message: string;
|
|
1412
1412
|
statusCode: number;
|
|
1413
1413
|
timestamp: string;
|
|
1414
1414
|
details?: unknown;
|
|
1415
1415
|
correlationId?: string | undefined;
|
|
1416
1416
|
}>;
|
|
1417
|
-
|
|
1417
|
+
400: z.ZodObject<{
|
|
1418
1418
|
statusCode: z.ZodNumber;
|
|
1419
1419
|
message: z.ZodString;
|
|
1420
1420
|
code: z.ZodString;
|
|
@@ -1423,23 +1423,23 @@ export declare const leadsContractRouter: {
|
|
|
1423
1423
|
path: z.ZodString;
|
|
1424
1424
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1425
1425
|
}, "strip", z.ZodTypeAny, {
|
|
1426
|
-
message: string;
|
|
1427
1426
|
code: string;
|
|
1428
1427
|
path: string;
|
|
1428
|
+
message: string;
|
|
1429
1429
|
statusCode: number;
|
|
1430
1430
|
timestamp: string;
|
|
1431
1431
|
details?: unknown;
|
|
1432
1432
|
correlationId?: string | undefined;
|
|
1433
1433
|
}, {
|
|
1434
|
-
message: string;
|
|
1435
1434
|
code: string;
|
|
1436
1435
|
path: string;
|
|
1436
|
+
message: string;
|
|
1437
1437
|
statusCode: number;
|
|
1438
1438
|
timestamp: string;
|
|
1439
1439
|
details?: unknown;
|
|
1440
1440
|
correlationId?: string | undefined;
|
|
1441
1441
|
}>;
|
|
1442
|
-
|
|
1442
|
+
403: z.ZodObject<{
|
|
1443
1443
|
statusCode: z.ZodNumber;
|
|
1444
1444
|
message: z.ZodString;
|
|
1445
1445
|
code: z.ZodString;
|
|
@@ -1448,17 +1448,17 @@ export declare const leadsContractRouter: {
|
|
|
1448
1448
|
path: z.ZodString;
|
|
1449
1449
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1450
1450
|
}, "strip", z.ZodTypeAny, {
|
|
1451
|
-
message: string;
|
|
1452
1451
|
code: string;
|
|
1453
1452
|
path: string;
|
|
1453
|
+
message: string;
|
|
1454
1454
|
statusCode: number;
|
|
1455
1455
|
timestamp: string;
|
|
1456
1456
|
details?: unknown;
|
|
1457
1457
|
correlationId?: string | undefined;
|
|
1458
1458
|
}, {
|
|
1459
|
-
message: string;
|
|
1460
1459
|
code: string;
|
|
1461
1460
|
path: string;
|
|
1461
|
+
message: string;
|
|
1462
1462
|
statusCode: number;
|
|
1463
1463
|
timestamp: string;
|
|
1464
1464
|
details?: unknown;
|
|
@@ -1473,17 +1473,17 @@ export declare const leadsContractRouter: {
|
|
|
1473
1473
|
path: z.ZodString;
|
|
1474
1474
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1475
1475
|
}, "strip", z.ZodTypeAny, {
|
|
1476
|
-
message: string;
|
|
1477
1476
|
code: string;
|
|
1478
1477
|
path: string;
|
|
1478
|
+
message: string;
|
|
1479
1479
|
statusCode: number;
|
|
1480
1480
|
timestamp: string;
|
|
1481
1481
|
details?: unknown;
|
|
1482
1482
|
correlationId?: string | undefined;
|
|
1483
1483
|
}, {
|
|
1484
|
-
message: string;
|
|
1485
1484
|
code: string;
|
|
1486
1485
|
path: string;
|
|
1486
|
+
message: string;
|
|
1487
1487
|
statusCode: number;
|
|
1488
1488
|
timestamp: string;
|
|
1489
1489
|
details?: unknown;
|
|
@@ -1553,7 +1553,7 @@ export declare const leadsContractRouter: {
|
|
|
1553
1553
|
method: "GET";
|
|
1554
1554
|
path: "/v2/leads/:id";
|
|
1555
1555
|
responses: {
|
|
1556
|
-
|
|
1556
|
+
401: z.ZodObject<{
|
|
1557
1557
|
statusCode: z.ZodNumber;
|
|
1558
1558
|
message: z.ZodString;
|
|
1559
1559
|
code: z.ZodString;
|
|
@@ -1562,23 +1562,23 @@ export declare const leadsContractRouter: {
|
|
|
1562
1562
|
path: z.ZodString;
|
|
1563
1563
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1564
1564
|
}, "strip", z.ZodTypeAny, {
|
|
1565
|
-
message: string;
|
|
1566
1565
|
code: string;
|
|
1567
1566
|
path: string;
|
|
1567
|
+
message: string;
|
|
1568
1568
|
statusCode: number;
|
|
1569
1569
|
timestamp: string;
|
|
1570
1570
|
details?: unknown;
|
|
1571
1571
|
correlationId?: string | undefined;
|
|
1572
1572
|
}, {
|
|
1573
|
-
message: string;
|
|
1574
1573
|
code: string;
|
|
1575
1574
|
path: string;
|
|
1575
|
+
message: string;
|
|
1576
1576
|
statusCode: number;
|
|
1577
1577
|
timestamp: string;
|
|
1578
1578
|
details?: unknown;
|
|
1579
1579
|
correlationId?: string | undefined;
|
|
1580
1580
|
}>;
|
|
1581
|
-
|
|
1581
|
+
400: z.ZodObject<{
|
|
1582
1582
|
statusCode: z.ZodNumber;
|
|
1583
1583
|
message: z.ZodString;
|
|
1584
1584
|
code: z.ZodString;
|
|
@@ -1587,23 +1587,23 @@ export declare const leadsContractRouter: {
|
|
|
1587
1587
|
path: z.ZodString;
|
|
1588
1588
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1589
1589
|
}, "strip", z.ZodTypeAny, {
|
|
1590
|
-
message: string;
|
|
1591
1590
|
code: string;
|
|
1592
1591
|
path: string;
|
|
1592
|
+
message: string;
|
|
1593
1593
|
statusCode: number;
|
|
1594
1594
|
timestamp: string;
|
|
1595
1595
|
details?: unknown;
|
|
1596
1596
|
correlationId?: string | undefined;
|
|
1597
1597
|
}, {
|
|
1598
|
-
message: string;
|
|
1599
1598
|
code: string;
|
|
1600
1599
|
path: string;
|
|
1600
|
+
message: string;
|
|
1601
1601
|
statusCode: number;
|
|
1602
1602
|
timestamp: string;
|
|
1603
1603
|
details?: unknown;
|
|
1604
1604
|
correlationId?: string | undefined;
|
|
1605
1605
|
}>;
|
|
1606
|
-
|
|
1606
|
+
403: z.ZodObject<{
|
|
1607
1607
|
statusCode: z.ZodNumber;
|
|
1608
1608
|
message: z.ZodString;
|
|
1609
1609
|
code: z.ZodString;
|
|
@@ -1612,17 +1612,17 @@ export declare const leadsContractRouter: {
|
|
|
1612
1612
|
path: z.ZodString;
|
|
1613
1613
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1614
1614
|
}, "strip", z.ZodTypeAny, {
|
|
1615
|
-
message: string;
|
|
1616
1615
|
code: string;
|
|
1617
1616
|
path: string;
|
|
1617
|
+
message: string;
|
|
1618
1618
|
statusCode: number;
|
|
1619
1619
|
timestamp: string;
|
|
1620
1620
|
details?: unknown;
|
|
1621
1621
|
correlationId?: string | undefined;
|
|
1622
1622
|
}, {
|
|
1623
|
-
message: string;
|
|
1624
1623
|
code: string;
|
|
1625
1624
|
path: string;
|
|
1625
|
+
message: string;
|
|
1626
1626
|
statusCode: number;
|
|
1627
1627
|
timestamp: string;
|
|
1628
1628
|
details?: unknown;
|
|
@@ -1637,17 +1637,17 @@ export declare const leadsContractRouter: {
|
|
|
1637
1637
|
path: z.ZodString;
|
|
1638
1638
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1639
1639
|
}, "strip", z.ZodTypeAny, {
|
|
1640
|
-
message: string;
|
|
1641
1640
|
code: string;
|
|
1642
1641
|
path: string;
|
|
1642
|
+
message: string;
|
|
1643
1643
|
statusCode: number;
|
|
1644
1644
|
timestamp: string;
|
|
1645
1645
|
details?: unknown;
|
|
1646
1646
|
correlationId?: string | undefined;
|
|
1647
1647
|
}, {
|
|
1648
|
-
message: string;
|
|
1649
1648
|
code: string;
|
|
1650
1649
|
path: string;
|
|
1650
|
+
message: string;
|
|
1651
1651
|
statusCode: number;
|
|
1652
1652
|
timestamp: string;
|
|
1653
1653
|
details?: unknown;
|
|
@@ -1675,15 +1675,15 @@ export declare const leadsContractRouter: {
|
|
|
1675
1675
|
updatedAt: string;
|
|
1676
1676
|
id: string;
|
|
1677
1677
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1678
|
-
phoneNumber: string;
|
|
1679
1678
|
source: string;
|
|
1679
|
+
phoneNumber: string;
|
|
1680
1680
|
lastCalledAt?: string | null | undefined;
|
|
1681
1681
|
cooldownUntil?: string | null | undefined;
|
|
1682
1682
|
blacklistReason?: string | null | undefined;
|
|
1683
1683
|
lastCallNotes?: string | null | undefined;
|
|
1684
|
-
totalCalls?: number | null | undefined;
|
|
1685
|
-
conversionRate?: number | null | undefined;
|
|
1686
1684
|
qualityScore?: number | null | undefined;
|
|
1685
|
+
conversionRate?: number | null | undefined;
|
|
1686
|
+
totalCalls?: number | null | undefined;
|
|
1687
1687
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1688
1688
|
}, {
|
|
1689
1689
|
name: string;
|
|
@@ -1691,15 +1691,15 @@ export declare const leadsContractRouter: {
|
|
|
1691
1691
|
updatedAt: string | Date;
|
|
1692
1692
|
id: string;
|
|
1693
1693
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1694
|
-
phoneNumber: string;
|
|
1695
1694
|
source: string;
|
|
1695
|
+
phoneNumber: string;
|
|
1696
1696
|
lastCalledAt?: string | Date | null | undefined;
|
|
1697
1697
|
cooldownUntil?: string | Date | null | undefined;
|
|
1698
1698
|
blacklistReason?: string | null | undefined;
|
|
1699
1699
|
lastCallNotes?: string | null | undefined;
|
|
1700
|
-
totalCalls?: number | null | undefined;
|
|
1701
|
-
conversionRate?: number | null | undefined;
|
|
1702
1700
|
qualityScore?: number | null | undefined;
|
|
1701
|
+
conversionRate?: number | null | undefined;
|
|
1702
|
+
totalCalls?: number | null | undefined;
|
|
1703
1703
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1704
1704
|
}>;
|
|
1705
1705
|
404: z.ZodObject<{
|
|
@@ -1711,17 +1711,17 @@ export declare const leadsContractRouter: {
|
|
|
1711
1711
|
path: z.ZodString;
|
|
1712
1712
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1713
1713
|
}, "strip", z.ZodTypeAny, {
|
|
1714
|
-
message: string;
|
|
1715
1714
|
code: string;
|
|
1716
1715
|
path: string;
|
|
1716
|
+
message: string;
|
|
1717
1717
|
statusCode: number;
|
|
1718
1718
|
timestamp: string;
|
|
1719
1719
|
details?: unknown;
|
|
1720
1720
|
correlationId?: string | undefined;
|
|
1721
1721
|
}, {
|
|
1722
|
-
message: string;
|
|
1723
1722
|
code: string;
|
|
1724
1723
|
path: string;
|
|
1724
|
+
message: string;
|
|
1725
1725
|
statusCode: number;
|
|
1726
1726
|
timestamp: string;
|
|
1727
1727
|
details?: unknown;
|
|
@@ -1754,31 +1754,31 @@ export declare const leadsContractRouter: {
|
|
|
1754
1754
|
}, "strip", z.ZodTypeAny, {
|
|
1755
1755
|
name?: string | undefined;
|
|
1756
1756
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1757
|
+
source?: string | undefined;
|
|
1757
1758
|
phoneNumber?: string | undefined;
|
|
1758
1759
|
blacklistReason?: string | null | undefined;
|
|
1759
|
-
source?: string | undefined;
|
|
1760
1760
|
}, {
|
|
1761
1761
|
name?: string | undefined;
|
|
1762
1762
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1763
|
+
source?: string | undefined;
|
|
1763
1764
|
phoneNumber?: string | undefined;
|
|
1764
1765
|
blacklistReason?: string | null | undefined;
|
|
1765
|
-
source?: string | undefined;
|
|
1766
1766
|
}>, {
|
|
1767
1767
|
name?: string | undefined;
|
|
1768
1768
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1769
|
+
source?: string | undefined;
|
|
1769
1770
|
phoneNumber?: string | undefined;
|
|
1770
1771
|
blacklistReason?: string | null | undefined;
|
|
1771
|
-
source?: string | undefined;
|
|
1772
1772
|
}, {
|
|
1773
1773
|
name?: string | undefined;
|
|
1774
1774
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1775
|
+
source?: string | undefined;
|
|
1775
1776
|
phoneNumber?: string | undefined;
|
|
1776
1777
|
blacklistReason?: string | null | undefined;
|
|
1777
|
-
source?: string | undefined;
|
|
1778
1778
|
}>;
|
|
1779
1779
|
path: "/v2/leads/:id";
|
|
1780
1780
|
responses: {
|
|
1781
|
-
|
|
1781
|
+
401: z.ZodObject<{
|
|
1782
1782
|
statusCode: z.ZodNumber;
|
|
1783
1783
|
message: z.ZodString;
|
|
1784
1784
|
code: z.ZodString;
|
|
@@ -1787,23 +1787,23 @@ export declare const leadsContractRouter: {
|
|
|
1787
1787
|
path: z.ZodString;
|
|
1788
1788
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1789
1789
|
}, "strip", z.ZodTypeAny, {
|
|
1790
|
-
message: string;
|
|
1791
1790
|
code: string;
|
|
1792
1791
|
path: string;
|
|
1792
|
+
message: string;
|
|
1793
1793
|
statusCode: number;
|
|
1794
1794
|
timestamp: string;
|
|
1795
1795
|
details?: unknown;
|
|
1796
1796
|
correlationId?: string | undefined;
|
|
1797
1797
|
}, {
|
|
1798
|
-
message: string;
|
|
1799
1798
|
code: string;
|
|
1800
1799
|
path: string;
|
|
1800
|
+
message: string;
|
|
1801
1801
|
statusCode: number;
|
|
1802
1802
|
timestamp: string;
|
|
1803
1803
|
details?: unknown;
|
|
1804
1804
|
correlationId?: string | undefined;
|
|
1805
1805
|
}>;
|
|
1806
|
-
|
|
1806
|
+
400: z.ZodObject<{
|
|
1807
1807
|
statusCode: z.ZodNumber;
|
|
1808
1808
|
message: z.ZodString;
|
|
1809
1809
|
code: z.ZodString;
|
|
@@ -1812,23 +1812,23 @@ export declare const leadsContractRouter: {
|
|
|
1812
1812
|
path: z.ZodString;
|
|
1813
1813
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1814
1814
|
}, "strip", z.ZodTypeAny, {
|
|
1815
|
-
message: string;
|
|
1816
1815
|
code: string;
|
|
1817
1816
|
path: string;
|
|
1817
|
+
message: string;
|
|
1818
1818
|
statusCode: number;
|
|
1819
1819
|
timestamp: string;
|
|
1820
1820
|
details?: unknown;
|
|
1821
1821
|
correlationId?: string | undefined;
|
|
1822
1822
|
}, {
|
|
1823
|
-
message: string;
|
|
1824
1823
|
code: string;
|
|
1825
1824
|
path: string;
|
|
1825
|
+
message: string;
|
|
1826
1826
|
statusCode: number;
|
|
1827
1827
|
timestamp: string;
|
|
1828
1828
|
details?: unknown;
|
|
1829
1829
|
correlationId?: string | undefined;
|
|
1830
1830
|
}>;
|
|
1831
|
-
|
|
1831
|
+
403: z.ZodObject<{
|
|
1832
1832
|
statusCode: z.ZodNumber;
|
|
1833
1833
|
message: z.ZodString;
|
|
1834
1834
|
code: z.ZodString;
|
|
@@ -1837,17 +1837,17 @@ export declare const leadsContractRouter: {
|
|
|
1837
1837
|
path: z.ZodString;
|
|
1838
1838
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1839
1839
|
}, "strip", z.ZodTypeAny, {
|
|
1840
|
-
message: string;
|
|
1841
1840
|
code: string;
|
|
1842
1841
|
path: string;
|
|
1842
|
+
message: string;
|
|
1843
1843
|
statusCode: number;
|
|
1844
1844
|
timestamp: string;
|
|
1845
1845
|
details?: unknown;
|
|
1846
1846
|
correlationId?: string | undefined;
|
|
1847
1847
|
}, {
|
|
1848
|
-
message: string;
|
|
1849
1848
|
code: string;
|
|
1850
1849
|
path: string;
|
|
1850
|
+
message: string;
|
|
1851
1851
|
statusCode: number;
|
|
1852
1852
|
timestamp: string;
|
|
1853
1853
|
details?: unknown;
|
|
@@ -1862,17 +1862,17 @@ export declare const leadsContractRouter: {
|
|
|
1862
1862
|
path: z.ZodString;
|
|
1863
1863
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1864
1864
|
}, "strip", z.ZodTypeAny, {
|
|
1865
|
-
message: string;
|
|
1866
1865
|
code: string;
|
|
1867
1866
|
path: string;
|
|
1867
|
+
message: string;
|
|
1868
1868
|
statusCode: number;
|
|
1869
1869
|
timestamp: string;
|
|
1870
1870
|
details?: unknown;
|
|
1871
1871
|
correlationId?: string | undefined;
|
|
1872
1872
|
}, {
|
|
1873
|
-
message: string;
|
|
1874
1873
|
code: string;
|
|
1875
1874
|
path: string;
|
|
1875
|
+
message: string;
|
|
1876
1876
|
statusCode: number;
|
|
1877
1877
|
timestamp: string;
|
|
1878
1878
|
details?: unknown;
|
|
@@ -1900,15 +1900,15 @@ export declare const leadsContractRouter: {
|
|
|
1900
1900
|
updatedAt: string;
|
|
1901
1901
|
id: string;
|
|
1902
1902
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1903
|
-
phoneNumber: string;
|
|
1904
1903
|
source: string;
|
|
1904
|
+
phoneNumber: string;
|
|
1905
1905
|
lastCalledAt?: string | null | undefined;
|
|
1906
1906
|
cooldownUntil?: string | null | undefined;
|
|
1907
1907
|
blacklistReason?: string | null | undefined;
|
|
1908
1908
|
lastCallNotes?: string | null | undefined;
|
|
1909
|
-
totalCalls?: number | null | undefined;
|
|
1910
|
-
conversionRate?: number | null | undefined;
|
|
1911
1909
|
qualityScore?: number | null | undefined;
|
|
1910
|
+
conversionRate?: number | null | undefined;
|
|
1911
|
+
totalCalls?: number | null | undefined;
|
|
1912
1912
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1913
1913
|
}, {
|
|
1914
1914
|
name: string;
|
|
@@ -1916,15 +1916,15 @@ export declare const leadsContractRouter: {
|
|
|
1916
1916
|
updatedAt: string | Date;
|
|
1917
1917
|
id: string;
|
|
1918
1918
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1919
|
-
phoneNumber: string;
|
|
1920
1919
|
source: string;
|
|
1920
|
+
phoneNumber: string;
|
|
1921
1921
|
lastCalledAt?: string | Date | null | undefined;
|
|
1922
1922
|
cooldownUntil?: string | Date | null | undefined;
|
|
1923
1923
|
blacklistReason?: string | null | undefined;
|
|
1924
1924
|
lastCallNotes?: string | null | undefined;
|
|
1925
|
-
totalCalls?: number | null | undefined;
|
|
1926
|
-
conversionRate?: number | null | undefined;
|
|
1927
1925
|
qualityScore?: number | null | undefined;
|
|
1926
|
+
conversionRate?: number | null | undefined;
|
|
1927
|
+
totalCalls?: number | null | undefined;
|
|
1928
1928
|
qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
|
|
1929
1929
|
}>;
|
|
1930
1930
|
404: z.ZodObject<{
|
|
@@ -1936,17 +1936,17 @@ export declare const leadsContractRouter: {
|
|
|
1936
1936
|
path: z.ZodString;
|
|
1937
1937
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1938
1938
|
}, "strip", z.ZodTypeAny, {
|
|
1939
|
-
message: string;
|
|
1940
1939
|
code: string;
|
|
1941
1940
|
path: string;
|
|
1941
|
+
message: string;
|
|
1942
1942
|
statusCode: number;
|
|
1943
1943
|
timestamp: string;
|
|
1944
1944
|
details?: unknown;
|
|
1945
1945
|
correlationId?: string | undefined;
|
|
1946
1946
|
}, {
|
|
1947
|
-
message: string;
|
|
1948
1947
|
code: string;
|
|
1949
1948
|
path: string;
|
|
1949
|
+
message: string;
|
|
1950
1950
|
statusCode: number;
|
|
1951
1951
|
timestamp: string;
|
|
1952
1952
|
details?: unknown;
|
|
@@ -1961,17 +1961,17 @@ export declare const leadsContractRouter: {
|
|
|
1961
1961
|
path: z.ZodString;
|
|
1962
1962
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1963
1963
|
}, "strip", z.ZodTypeAny, {
|
|
1964
|
-
message: string;
|
|
1965
1964
|
code: string;
|
|
1966
1965
|
path: string;
|
|
1966
|
+
message: string;
|
|
1967
1967
|
statusCode: number;
|
|
1968
1968
|
timestamp: string;
|
|
1969
1969
|
details?: unknown;
|
|
1970
1970
|
correlationId?: string | undefined;
|
|
1971
1971
|
}, {
|
|
1972
|
-
message: string;
|
|
1973
1972
|
code: string;
|
|
1974
1973
|
path: string;
|
|
1974
|
+
message: string;
|
|
1975
1975
|
statusCode: number;
|
|
1976
1976
|
timestamp: string;
|
|
1977
1977
|
details?: unknown;
|
|
@@ -1998,7 +1998,7 @@ export declare const leadsContractRouter: {
|
|
|
1998
1998
|
body: typeof import("@ts-rest/core").ContractNoBody;
|
|
1999
1999
|
path: "/v2/leads/:id";
|
|
2000
2000
|
responses: {
|
|
2001
|
-
|
|
2001
|
+
401: z.ZodObject<{
|
|
2002
2002
|
statusCode: z.ZodNumber;
|
|
2003
2003
|
message: z.ZodString;
|
|
2004
2004
|
code: z.ZodString;
|
|
@@ -2007,23 +2007,23 @@ export declare const leadsContractRouter: {
|
|
|
2007
2007
|
path: z.ZodString;
|
|
2008
2008
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2009
2009
|
}, "strip", z.ZodTypeAny, {
|
|
2010
|
-
message: string;
|
|
2011
2010
|
code: string;
|
|
2012
2011
|
path: string;
|
|
2012
|
+
message: string;
|
|
2013
2013
|
statusCode: number;
|
|
2014
2014
|
timestamp: string;
|
|
2015
2015
|
details?: unknown;
|
|
2016
2016
|
correlationId?: string | undefined;
|
|
2017
2017
|
}, {
|
|
2018
|
-
message: string;
|
|
2019
2018
|
code: string;
|
|
2020
2019
|
path: string;
|
|
2020
|
+
message: string;
|
|
2021
2021
|
statusCode: number;
|
|
2022
2022
|
timestamp: string;
|
|
2023
2023
|
details?: unknown;
|
|
2024
2024
|
correlationId?: string | undefined;
|
|
2025
2025
|
}>;
|
|
2026
|
-
|
|
2026
|
+
400: z.ZodObject<{
|
|
2027
2027
|
statusCode: z.ZodNumber;
|
|
2028
2028
|
message: z.ZodString;
|
|
2029
2029
|
code: z.ZodString;
|
|
@@ -2032,23 +2032,23 @@ export declare const leadsContractRouter: {
|
|
|
2032
2032
|
path: z.ZodString;
|
|
2033
2033
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2034
2034
|
}, "strip", z.ZodTypeAny, {
|
|
2035
|
-
message: string;
|
|
2036
2035
|
code: string;
|
|
2037
2036
|
path: string;
|
|
2037
|
+
message: string;
|
|
2038
2038
|
statusCode: number;
|
|
2039
2039
|
timestamp: string;
|
|
2040
2040
|
details?: unknown;
|
|
2041
2041
|
correlationId?: string | undefined;
|
|
2042
2042
|
}, {
|
|
2043
|
-
message: string;
|
|
2044
2043
|
code: string;
|
|
2045
2044
|
path: string;
|
|
2045
|
+
message: string;
|
|
2046
2046
|
statusCode: number;
|
|
2047
2047
|
timestamp: string;
|
|
2048
2048
|
details?: unknown;
|
|
2049
2049
|
correlationId?: string | undefined;
|
|
2050
2050
|
}>;
|
|
2051
|
-
|
|
2051
|
+
403: z.ZodObject<{
|
|
2052
2052
|
statusCode: z.ZodNumber;
|
|
2053
2053
|
message: z.ZodString;
|
|
2054
2054
|
code: z.ZodString;
|
|
@@ -2057,17 +2057,17 @@ export declare const leadsContractRouter: {
|
|
|
2057
2057
|
path: z.ZodString;
|
|
2058
2058
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2059
2059
|
}, "strip", z.ZodTypeAny, {
|
|
2060
|
-
message: string;
|
|
2061
2060
|
code: string;
|
|
2062
2061
|
path: string;
|
|
2062
|
+
message: string;
|
|
2063
2063
|
statusCode: number;
|
|
2064
2064
|
timestamp: string;
|
|
2065
2065
|
details?: unknown;
|
|
2066
2066
|
correlationId?: string | undefined;
|
|
2067
2067
|
}, {
|
|
2068
|
-
message: string;
|
|
2069
2068
|
code: string;
|
|
2070
2069
|
path: string;
|
|
2070
|
+
message: string;
|
|
2071
2071
|
statusCode: number;
|
|
2072
2072
|
timestamp: string;
|
|
2073
2073
|
details?: unknown;
|
|
@@ -2082,17 +2082,17 @@ export declare const leadsContractRouter: {
|
|
|
2082
2082
|
path: z.ZodString;
|
|
2083
2083
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2084
2084
|
}, "strip", z.ZodTypeAny, {
|
|
2085
|
-
message: string;
|
|
2086
2085
|
code: string;
|
|
2087
2086
|
path: string;
|
|
2087
|
+
message: string;
|
|
2088
2088
|
statusCode: number;
|
|
2089
2089
|
timestamp: string;
|
|
2090
2090
|
details?: unknown;
|
|
2091
2091
|
correlationId?: string | undefined;
|
|
2092
2092
|
}, {
|
|
2093
|
-
message: string;
|
|
2094
2093
|
code: string;
|
|
2095
2094
|
path: string;
|
|
2095
|
+
message: string;
|
|
2096
2096
|
statusCode: number;
|
|
2097
2097
|
timestamp: string;
|
|
2098
2098
|
details?: unknown;
|
|
@@ -2108,17 +2108,17 @@ export declare const leadsContractRouter: {
|
|
|
2108
2108
|
path: z.ZodString;
|
|
2109
2109
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2110
2110
|
}, "strip", z.ZodTypeAny, {
|
|
2111
|
-
message: string;
|
|
2112
2111
|
code: string;
|
|
2113
2112
|
path: string;
|
|
2113
|
+
message: string;
|
|
2114
2114
|
statusCode: number;
|
|
2115
2115
|
timestamp: string;
|
|
2116
2116
|
details?: unknown;
|
|
2117
2117
|
correlationId?: string | undefined;
|
|
2118
2118
|
}, {
|
|
2119
|
-
message: string;
|
|
2120
2119
|
code: string;
|
|
2121
2120
|
path: string;
|
|
2121
|
+
message: string;
|
|
2122
2122
|
statusCode: number;
|
|
2123
2123
|
timestamp: string;
|
|
2124
2124
|
details?: unknown;
|
|
@@ -2160,7 +2160,7 @@ export declare const leadsContractRouter: {
|
|
|
2160
2160
|
}>;
|
|
2161
2161
|
path: "/v2/leads/:id/call";
|
|
2162
2162
|
responses: {
|
|
2163
|
-
|
|
2163
|
+
401: z.ZodObject<{
|
|
2164
2164
|
statusCode: z.ZodNumber;
|
|
2165
2165
|
message: z.ZodString;
|
|
2166
2166
|
code: z.ZodString;
|
|
@@ -2169,23 +2169,23 @@ export declare const leadsContractRouter: {
|
|
|
2169
2169
|
path: z.ZodString;
|
|
2170
2170
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2171
2171
|
}, "strip", z.ZodTypeAny, {
|
|
2172
|
-
message: string;
|
|
2173
2172
|
code: string;
|
|
2174
2173
|
path: string;
|
|
2174
|
+
message: string;
|
|
2175
2175
|
statusCode: number;
|
|
2176
2176
|
timestamp: string;
|
|
2177
2177
|
details?: unknown;
|
|
2178
2178
|
correlationId?: string | undefined;
|
|
2179
2179
|
}, {
|
|
2180
|
-
message: string;
|
|
2181
2180
|
code: string;
|
|
2182
2181
|
path: string;
|
|
2182
|
+
message: string;
|
|
2183
2183
|
statusCode: number;
|
|
2184
2184
|
timestamp: string;
|
|
2185
2185
|
details?: unknown;
|
|
2186
2186
|
correlationId?: string | undefined;
|
|
2187
2187
|
}>;
|
|
2188
|
-
|
|
2188
|
+
400: z.ZodObject<{
|
|
2189
2189
|
statusCode: z.ZodNumber;
|
|
2190
2190
|
message: z.ZodString;
|
|
2191
2191
|
code: z.ZodString;
|
|
@@ -2194,23 +2194,23 @@ export declare const leadsContractRouter: {
|
|
|
2194
2194
|
path: z.ZodString;
|
|
2195
2195
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2196
2196
|
}, "strip", z.ZodTypeAny, {
|
|
2197
|
-
message: string;
|
|
2198
2197
|
code: string;
|
|
2199
2198
|
path: string;
|
|
2199
|
+
message: string;
|
|
2200
2200
|
statusCode: number;
|
|
2201
2201
|
timestamp: string;
|
|
2202
2202
|
details?: unknown;
|
|
2203
2203
|
correlationId?: string | undefined;
|
|
2204
2204
|
}, {
|
|
2205
|
-
message: string;
|
|
2206
2205
|
code: string;
|
|
2207
2206
|
path: string;
|
|
2207
|
+
message: string;
|
|
2208
2208
|
statusCode: number;
|
|
2209
2209
|
timestamp: string;
|
|
2210
2210
|
details?: unknown;
|
|
2211
2211
|
correlationId?: string | undefined;
|
|
2212
2212
|
}>;
|
|
2213
|
-
|
|
2213
|
+
403: z.ZodObject<{
|
|
2214
2214
|
statusCode: z.ZodNumber;
|
|
2215
2215
|
message: z.ZodString;
|
|
2216
2216
|
code: z.ZodString;
|
|
@@ -2219,17 +2219,17 @@ export declare const leadsContractRouter: {
|
|
|
2219
2219
|
path: z.ZodString;
|
|
2220
2220
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2221
2221
|
}, "strip", z.ZodTypeAny, {
|
|
2222
|
-
message: string;
|
|
2223
2222
|
code: string;
|
|
2224
2223
|
path: string;
|
|
2224
|
+
message: string;
|
|
2225
2225
|
statusCode: number;
|
|
2226
2226
|
timestamp: string;
|
|
2227
2227
|
details?: unknown;
|
|
2228
2228
|
correlationId?: string | undefined;
|
|
2229
2229
|
}, {
|
|
2230
|
-
message: string;
|
|
2231
2230
|
code: string;
|
|
2232
2231
|
path: string;
|
|
2232
|
+
message: string;
|
|
2233
2233
|
statusCode: number;
|
|
2234
2234
|
timestamp: string;
|
|
2235
2235
|
details?: unknown;
|
|
@@ -2244,17 +2244,17 @@ export declare const leadsContractRouter: {
|
|
|
2244
2244
|
path: z.ZodString;
|
|
2245
2245
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2246
2246
|
}, "strip", z.ZodTypeAny, {
|
|
2247
|
-
message: string;
|
|
2248
2247
|
code: string;
|
|
2249
2248
|
path: string;
|
|
2249
|
+
message: string;
|
|
2250
2250
|
statusCode: number;
|
|
2251
2251
|
timestamp: string;
|
|
2252
2252
|
details?: unknown;
|
|
2253
2253
|
correlationId?: string | undefined;
|
|
2254
2254
|
}, {
|
|
2255
|
-
message: string;
|
|
2256
2255
|
code: string;
|
|
2257
2256
|
path: string;
|
|
2257
|
+
message: string;
|
|
2258
2258
|
statusCode: number;
|
|
2259
2259
|
timestamp: string;
|
|
2260
2260
|
details?: unknown;
|
|
@@ -2279,8 +2279,8 @@ export declare const leadsContractRouter: {
|
|
|
2279
2279
|
rating: import("../common/call-rating.schema").CallRating;
|
|
2280
2280
|
callType: import("../call-history/call-history.contract").CallType;
|
|
2281
2281
|
leadId: string;
|
|
2282
|
-
ratingWeight: number;
|
|
2283
2282
|
assignmentId: string;
|
|
2283
|
+
ratingWeight: number;
|
|
2284
2284
|
notes?: string | null | undefined;
|
|
2285
2285
|
}, {
|
|
2286
2286
|
createdAt: string | Date;
|
|
@@ -2290,8 +2290,8 @@ export declare const leadsContractRouter: {
|
|
|
2290
2290
|
rating: import("../common/call-rating.schema").CallRating;
|
|
2291
2291
|
callType: import("../call-history/call-history.contract").CallType;
|
|
2292
2292
|
leadId: string;
|
|
2293
|
-
ratingWeight: number;
|
|
2294
2293
|
assignmentId: string;
|
|
2294
|
+
ratingWeight: number;
|
|
2295
2295
|
notes?: string | null | undefined;
|
|
2296
2296
|
}>;
|
|
2297
2297
|
};
|