@dakkitor/api-contracts 1.8.0 → 1.9.1
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 +1 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +1 -0
- package/dist/abilities/abilities.contract.spec.js +11 -0
- package/dist/abilities/second-agent.abilities.json +16 -0
- package/dist/actives/actives.contract.d.ts +6327 -6196
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1148 -1046
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.d.ts +23 -23
- package/dist/bookings/bookings.contract.d.ts +9238 -9006
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +768 -731
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +99 -92
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +13397 -0
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.js +206 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts +2 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.js +193 -0
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2738 -2634
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +2281 -2184
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.d.ts +7 -7
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +1 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2663 -2045
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +37 -4
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +228 -228
- package/dist/curated-worker-leads/contact-history.spec.js +55 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +1928 -1928
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +36 -36
- package/dist/curated-workers/curated-workers.contract.d.ts +1195 -1195
- package/dist/dashboards/dashboard-widgets.contract.d.ts +396 -396
- package/dist/dashboards/dashboard.contract.d.ts +16 -16
- package/dist/export-jobs/export-jobs.contract.d.ts +675 -675
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/jobs/jobs.contract.d.ts +7903 -7645
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +72 -72
- package/dist/lead-assignments/lead-assignments.contract.d.ts +999 -928
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +244 -220
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.d.ts +259 -259
- package/dist/notifications/notifications.contract.d.ts +67 -67
- package/dist/outreach/__tests__/outreach-claim.test.js +33 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
- package/dist/outreach/outreach.contract.d.ts +583 -162
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +50 -1
- package/dist/outreach/relay-hub-outreach.contract.d.ts +299 -121
- package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -1
- package/dist/outreach/relay-hub-outreach.contract.js +10 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.js +26 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts +94 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.schemas.js +15 -0
- package/dist/own-research/check-phone-response.spec.d.ts +2 -0
- package/dist/own-research/check-phone-response.spec.d.ts.map +1 -0
- package/dist/own-research/check-phone-response.spec.js +54 -0
- package/dist/own-research/own-research.contract.d.ts +801 -716
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/own-research/own-research.contract.js +6 -1
- package/dist/user-access-grants/user-access-grants.contract.d.ts +179 -179
- package/dist/users/users.contract.d.ts +227 -198
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +9 -1
- package/dist/users/users.contract.spec.js +39 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +124 -124
- package/dist/workers/workers.contract.d.ts +2761 -2717
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +12 -0
- package/package.json +1 -1
|
@@ -69,16 +69,16 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
69
69
|
firstName: string;
|
|
70
70
|
}>, "many">>;
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
id: string;
|
|
73
72
|
name: string;
|
|
73
|
+
id: string;
|
|
74
74
|
managers?: {
|
|
75
75
|
id: string;
|
|
76
76
|
lastName: string;
|
|
77
77
|
firstName: string;
|
|
78
78
|
}[] | undefined;
|
|
79
79
|
}, {
|
|
80
|
-
id: string;
|
|
81
80
|
name: string;
|
|
81
|
+
id: string;
|
|
82
82
|
managers?: {
|
|
83
83
|
id: string;
|
|
84
84
|
lastName: string;
|
|
@@ -99,15 +99,16 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
99
99
|
firstName: string;
|
|
100
100
|
}>, "many">>;
|
|
101
101
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
102
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
102
103
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
103
104
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
104
105
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
105
106
|
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
status: "ACTIVE" | "INACTIVE";
|
|
107
|
-
id: string;
|
|
108
|
-
updatedAt: string;
|
|
109
|
-
createdAt: string;
|
|
110
107
|
email: string;
|
|
108
|
+
createdAt: string;
|
|
109
|
+
updatedAt: string;
|
|
110
|
+
id: string;
|
|
111
|
+
status: "ACTIVE" | "INACTIVE";
|
|
111
112
|
lastName: string;
|
|
112
113
|
firstName: string;
|
|
113
114
|
phoneNumbers: {
|
|
@@ -119,8 +120,8 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
119
120
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
120
121
|
officeId?: string | null | undefined;
|
|
121
122
|
office?: {
|
|
122
|
-
id: string;
|
|
123
123
|
name: string;
|
|
124
|
+
id: string;
|
|
124
125
|
managers?: {
|
|
125
126
|
id: string;
|
|
126
127
|
lastName: string;
|
|
@@ -132,20 +133,21 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
132
133
|
lastName: string;
|
|
133
134
|
firstName: string;
|
|
134
135
|
}[] | undefined;
|
|
136
|
+
dialpadUserId?: string | null | undefined;
|
|
135
137
|
deletedAt?: string | null | undefined;
|
|
136
138
|
}, {
|
|
137
|
-
status: "ACTIVE" | "INACTIVE";
|
|
138
|
-
id: string;
|
|
139
|
-
updatedAt: string | Date;
|
|
140
|
-
createdAt: string | Date;
|
|
141
139
|
email: string;
|
|
140
|
+
createdAt: string | Date;
|
|
141
|
+
updatedAt: string | Date;
|
|
142
|
+
id: string;
|
|
143
|
+
status: "ACTIVE" | "INACTIVE";
|
|
142
144
|
lastName: string;
|
|
143
145
|
firstName: string;
|
|
144
146
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
145
147
|
officeId?: string | null | undefined;
|
|
146
148
|
office?: {
|
|
147
|
-
id: string;
|
|
148
149
|
name: string;
|
|
150
|
+
id: string;
|
|
149
151
|
managers?: {
|
|
150
152
|
id: string;
|
|
151
153
|
lastName: string;
|
|
@@ -163,6 +165,7 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
163
165
|
lastName: string;
|
|
164
166
|
firstName: string;
|
|
165
167
|
}[] | undefined;
|
|
168
|
+
dialpadUserId?: string | null | undefined;
|
|
166
169
|
deletedAt?: string | Date | null | undefined;
|
|
167
170
|
}>>;
|
|
168
171
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -175,44 +178,34 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
175
178
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
176
179
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
177
180
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
id: string;
|
|
179
181
|
name: string;
|
|
180
|
-
updatedAt: string;
|
|
181
182
|
createdAt: string;
|
|
182
|
-
|
|
183
|
+
updatedAt: string;
|
|
183
184
|
id: string;
|
|
185
|
+
}, {
|
|
184
186
|
name: string;
|
|
185
|
-
updatedAt: string | Date;
|
|
186
187
|
createdAt: string | Date;
|
|
188
|
+
updatedAt: string | Date;
|
|
189
|
+
id: string;
|
|
187
190
|
}>>>;
|
|
188
191
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
189
192
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
190
193
|
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
status: LeadAssignmentStatus;
|
|
192
|
-
id: string;
|
|
193
|
-
updatedAt: string;
|
|
194
194
|
createdAt: string;
|
|
195
|
-
|
|
195
|
+
updatedAt: string;
|
|
196
|
+
id: string;
|
|
197
|
+
status: LeadAssignmentStatus;
|
|
196
198
|
agentId: string | null;
|
|
197
199
|
leadId: string;
|
|
198
200
|
assignedAt: string;
|
|
199
201
|
assignedBy: string | null;
|
|
200
|
-
|
|
201
|
-
id: string;
|
|
202
|
-
name: string;
|
|
203
|
-
updatedAt: string;
|
|
204
|
-
createdAt: string;
|
|
205
|
-
} | null | undefined;
|
|
206
|
-
lead?: {
|
|
207
|
-
name: string;
|
|
208
|
-
phoneNumber: string;
|
|
209
|
-
} | undefined;
|
|
202
|
+
companyId: string | null;
|
|
210
203
|
agent?: {
|
|
211
|
-
status: "ACTIVE" | "INACTIVE";
|
|
212
|
-
id: string;
|
|
213
|
-
updatedAt: string;
|
|
214
|
-
createdAt: string;
|
|
215
204
|
email: string;
|
|
205
|
+
createdAt: string;
|
|
206
|
+
updatedAt: string;
|
|
207
|
+
id: string;
|
|
208
|
+
status: "ACTIVE" | "INACTIVE";
|
|
216
209
|
lastName: string;
|
|
217
210
|
firstName: string;
|
|
218
211
|
phoneNumbers: {
|
|
@@ -224,8 +217,8 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
224
217
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
225
218
|
officeId?: string | null | undefined;
|
|
226
219
|
office?: {
|
|
227
|
-
id: string;
|
|
228
220
|
name: string;
|
|
221
|
+
id: string;
|
|
229
222
|
managers?: {
|
|
230
223
|
id: string;
|
|
231
224
|
lastName: string;
|
|
@@ -237,41 +230,42 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
237
230
|
lastName: string;
|
|
238
231
|
firstName: string;
|
|
239
232
|
}[] | undefined;
|
|
233
|
+
dialpadUserId?: string | null | undefined;
|
|
240
234
|
deletedAt?: string | null | undefined;
|
|
241
235
|
} | undefined;
|
|
236
|
+
lead?: {
|
|
237
|
+
name: string;
|
|
238
|
+
phoneNumber: string;
|
|
239
|
+
} | undefined;
|
|
240
|
+
company?: {
|
|
241
|
+
name: string;
|
|
242
|
+
createdAt: string;
|
|
243
|
+
updatedAt: string;
|
|
244
|
+
id: string;
|
|
245
|
+
} | null | undefined;
|
|
242
246
|
}, {
|
|
243
|
-
status: LeadAssignmentStatus;
|
|
244
|
-
id: string;
|
|
245
|
-
updatedAt: string | Date;
|
|
246
247
|
createdAt: string | Date;
|
|
247
|
-
|
|
248
|
+
updatedAt: string | Date;
|
|
249
|
+
id: string;
|
|
250
|
+
status: LeadAssignmentStatus;
|
|
248
251
|
agentId: string | null;
|
|
249
252
|
leadId: string;
|
|
250
253
|
assignedAt: string | Date;
|
|
251
254
|
assignedBy: string | null;
|
|
252
|
-
|
|
253
|
-
id: string;
|
|
254
|
-
name: string;
|
|
255
|
-
updatedAt: string | Date;
|
|
256
|
-
createdAt: string | Date;
|
|
257
|
-
} | null | undefined;
|
|
258
|
-
lead?: {
|
|
259
|
-
name: string;
|
|
260
|
-
phoneNumber: string;
|
|
261
|
-
} | undefined;
|
|
255
|
+
companyId: string | null;
|
|
262
256
|
agent?: {
|
|
263
|
-
status: "ACTIVE" | "INACTIVE";
|
|
264
|
-
id: string;
|
|
265
|
-
updatedAt: string | Date;
|
|
266
|
-
createdAt: string | Date;
|
|
267
257
|
email: string;
|
|
258
|
+
createdAt: string | Date;
|
|
259
|
+
updatedAt: string | Date;
|
|
260
|
+
id: string;
|
|
261
|
+
status: "ACTIVE" | "INACTIVE";
|
|
268
262
|
lastName: string;
|
|
269
263
|
firstName: string;
|
|
270
264
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
271
265
|
officeId?: string | null | undefined;
|
|
272
266
|
office?: {
|
|
273
|
-
id: string;
|
|
274
267
|
name: string;
|
|
268
|
+
id: string;
|
|
275
269
|
managers?: {
|
|
276
270
|
id: string;
|
|
277
271
|
lastName: string;
|
|
@@ -289,8 +283,19 @@ export declare const LeadAssignmentSchema: z.ZodObject<{
|
|
|
289
283
|
lastName: string;
|
|
290
284
|
firstName: string;
|
|
291
285
|
}[] | undefined;
|
|
286
|
+
dialpadUserId?: string | null | undefined;
|
|
292
287
|
deletedAt?: string | Date | null | undefined;
|
|
293
288
|
} | undefined;
|
|
289
|
+
lead?: {
|
|
290
|
+
name: string;
|
|
291
|
+
phoneNumber: string;
|
|
292
|
+
} | undefined;
|
|
293
|
+
company?: {
|
|
294
|
+
name: string;
|
|
295
|
+
createdAt: string | Date;
|
|
296
|
+
updatedAt: string | Date;
|
|
297
|
+
id: string;
|
|
298
|
+
} | null | undefined;
|
|
294
299
|
}>;
|
|
295
300
|
export declare const CompleteAssignmentSchema: z.ZodObject<{
|
|
296
301
|
rating: z.ZodNativeEnum<typeof import("../common/call-rating.schema").CallRating>;
|
|
@@ -357,16 +362,16 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
357
362
|
firstName: string;
|
|
358
363
|
}>, "many">>;
|
|
359
364
|
}, "strip", z.ZodTypeAny, {
|
|
360
|
-
id: string;
|
|
361
365
|
name: string;
|
|
366
|
+
id: string;
|
|
362
367
|
managers?: {
|
|
363
368
|
id: string;
|
|
364
369
|
lastName: string;
|
|
365
370
|
firstName: string;
|
|
366
371
|
}[] | undefined;
|
|
367
372
|
}, {
|
|
368
|
-
id: string;
|
|
369
373
|
name: string;
|
|
374
|
+
id: string;
|
|
370
375
|
managers?: {
|
|
371
376
|
id: string;
|
|
372
377
|
lastName: string;
|
|
@@ -387,15 +392,16 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
387
392
|
firstName: string;
|
|
388
393
|
}>, "many">>;
|
|
389
394
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
395
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
390
396
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
391
397
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
392
398
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
393
399
|
}, "strip", z.ZodTypeAny, {
|
|
394
|
-
status: "ACTIVE" | "INACTIVE";
|
|
395
|
-
id: string;
|
|
396
|
-
updatedAt: string;
|
|
397
|
-
createdAt: string;
|
|
398
400
|
email: string;
|
|
401
|
+
createdAt: string;
|
|
402
|
+
updatedAt: string;
|
|
403
|
+
id: string;
|
|
404
|
+
status: "ACTIVE" | "INACTIVE";
|
|
399
405
|
lastName: string;
|
|
400
406
|
firstName: string;
|
|
401
407
|
phoneNumbers: {
|
|
@@ -407,8 +413,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
407
413
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
408
414
|
officeId?: string | null | undefined;
|
|
409
415
|
office?: {
|
|
410
|
-
id: string;
|
|
411
416
|
name: string;
|
|
417
|
+
id: string;
|
|
412
418
|
managers?: {
|
|
413
419
|
id: string;
|
|
414
420
|
lastName: string;
|
|
@@ -420,20 +426,21 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
420
426
|
lastName: string;
|
|
421
427
|
firstName: string;
|
|
422
428
|
}[] | undefined;
|
|
429
|
+
dialpadUserId?: string | null | undefined;
|
|
423
430
|
deletedAt?: string | null | undefined;
|
|
424
431
|
}, {
|
|
425
|
-
status: "ACTIVE" | "INACTIVE";
|
|
426
|
-
id: string;
|
|
427
|
-
updatedAt: string | Date;
|
|
428
|
-
createdAt: string | Date;
|
|
429
432
|
email: string;
|
|
433
|
+
createdAt: string | Date;
|
|
434
|
+
updatedAt: string | Date;
|
|
435
|
+
id: string;
|
|
436
|
+
status: "ACTIVE" | "INACTIVE";
|
|
430
437
|
lastName: string;
|
|
431
438
|
firstName: string;
|
|
432
439
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
433
440
|
officeId?: string | null | undefined;
|
|
434
441
|
office?: {
|
|
435
|
-
id: string;
|
|
436
442
|
name: string;
|
|
443
|
+
id: string;
|
|
437
444
|
managers?: {
|
|
438
445
|
id: string;
|
|
439
446
|
lastName: string;
|
|
@@ -451,6 +458,7 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
451
458
|
lastName: string;
|
|
452
459
|
firstName: string;
|
|
453
460
|
}[] | undefined;
|
|
461
|
+
dialpadUserId?: string | null | undefined;
|
|
454
462
|
deletedAt?: string | Date | null | undefined;
|
|
455
463
|
}>>;
|
|
456
464
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -463,44 +471,34 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
463
471
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
464
472
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
465
473
|
}, "strip", z.ZodTypeAny, {
|
|
466
|
-
id: string;
|
|
467
474
|
name: string;
|
|
468
|
-
updatedAt: string;
|
|
469
475
|
createdAt: string;
|
|
470
|
-
|
|
476
|
+
updatedAt: string;
|
|
471
477
|
id: string;
|
|
478
|
+
}, {
|
|
472
479
|
name: string;
|
|
473
|
-
updatedAt: string | Date;
|
|
474
480
|
createdAt: string | Date;
|
|
481
|
+
updatedAt: string | Date;
|
|
482
|
+
id: string;
|
|
475
483
|
}>>>;
|
|
476
484
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
477
485
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
478
486
|
}, "strip", z.ZodTypeAny, {
|
|
479
|
-
status: LeadAssignmentStatus;
|
|
480
|
-
id: string;
|
|
481
|
-
updatedAt: string;
|
|
482
487
|
createdAt: string;
|
|
483
|
-
|
|
488
|
+
updatedAt: string;
|
|
489
|
+
id: string;
|
|
490
|
+
status: LeadAssignmentStatus;
|
|
484
491
|
agentId: string | null;
|
|
485
492
|
leadId: string;
|
|
486
493
|
assignedAt: string;
|
|
487
494
|
assignedBy: string | null;
|
|
488
|
-
|
|
489
|
-
id: string;
|
|
490
|
-
name: string;
|
|
491
|
-
updatedAt: string;
|
|
492
|
-
createdAt: string;
|
|
493
|
-
} | null | undefined;
|
|
494
|
-
lead?: {
|
|
495
|
-
name: string;
|
|
496
|
-
phoneNumber: string;
|
|
497
|
-
} | undefined;
|
|
495
|
+
companyId: string | null;
|
|
498
496
|
agent?: {
|
|
499
|
-
status: "ACTIVE" | "INACTIVE";
|
|
500
|
-
id: string;
|
|
501
|
-
updatedAt: string;
|
|
502
|
-
createdAt: string;
|
|
503
497
|
email: string;
|
|
498
|
+
createdAt: string;
|
|
499
|
+
updatedAt: string;
|
|
500
|
+
id: string;
|
|
501
|
+
status: "ACTIVE" | "INACTIVE";
|
|
504
502
|
lastName: string;
|
|
505
503
|
firstName: string;
|
|
506
504
|
phoneNumbers: {
|
|
@@ -512,8 +510,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
512
510
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
513
511
|
officeId?: string | null | undefined;
|
|
514
512
|
office?: {
|
|
515
|
-
id: string;
|
|
516
513
|
name: string;
|
|
514
|
+
id: string;
|
|
517
515
|
managers?: {
|
|
518
516
|
id: string;
|
|
519
517
|
lastName: string;
|
|
@@ -525,41 +523,42 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
525
523
|
lastName: string;
|
|
526
524
|
firstName: string;
|
|
527
525
|
}[] | undefined;
|
|
526
|
+
dialpadUserId?: string | null | undefined;
|
|
528
527
|
deletedAt?: string | null | undefined;
|
|
529
528
|
} | undefined;
|
|
529
|
+
lead?: {
|
|
530
|
+
name: string;
|
|
531
|
+
phoneNumber: string;
|
|
532
|
+
} | undefined;
|
|
533
|
+
company?: {
|
|
534
|
+
name: string;
|
|
535
|
+
createdAt: string;
|
|
536
|
+
updatedAt: string;
|
|
537
|
+
id: string;
|
|
538
|
+
} | null | undefined;
|
|
530
539
|
}, {
|
|
531
|
-
status: LeadAssignmentStatus;
|
|
532
|
-
id: string;
|
|
533
|
-
updatedAt: string | Date;
|
|
534
540
|
createdAt: string | Date;
|
|
535
|
-
|
|
541
|
+
updatedAt: string | Date;
|
|
542
|
+
id: string;
|
|
543
|
+
status: LeadAssignmentStatus;
|
|
536
544
|
agentId: string | null;
|
|
537
545
|
leadId: string;
|
|
538
546
|
assignedAt: string | Date;
|
|
539
547
|
assignedBy: string | null;
|
|
540
|
-
|
|
541
|
-
id: string;
|
|
542
|
-
name: string;
|
|
543
|
-
updatedAt: string | Date;
|
|
544
|
-
createdAt: string | Date;
|
|
545
|
-
} | null | undefined;
|
|
546
|
-
lead?: {
|
|
547
|
-
name: string;
|
|
548
|
-
phoneNumber: string;
|
|
549
|
-
} | undefined;
|
|
548
|
+
companyId: string | null;
|
|
550
549
|
agent?: {
|
|
551
|
-
status: "ACTIVE" | "INACTIVE";
|
|
552
|
-
id: string;
|
|
553
|
-
updatedAt: string | Date;
|
|
554
|
-
createdAt: string | Date;
|
|
555
550
|
email: string;
|
|
551
|
+
createdAt: string | Date;
|
|
552
|
+
updatedAt: string | Date;
|
|
553
|
+
id: string;
|
|
554
|
+
status: "ACTIVE" | "INACTIVE";
|
|
556
555
|
lastName: string;
|
|
557
556
|
firstName: string;
|
|
558
557
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
559
558
|
officeId?: string | null | undefined;
|
|
560
559
|
office?: {
|
|
561
|
-
id: string;
|
|
562
560
|
name: string;
|
|
561
|
+
id: string;
|
|
563
562
|
managers?: {
|
|
564
563
|
id: string;
|
|
565
564
|
lastName: string;
|
|
@@ -577,8 +576,19 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
577
576
|
lastName: string;
|
|
578
577
|
firstName: string;
|
|
579
578
|
}[] | undefined;
|
|
579
|
+
dialpadUserId?: string | null | undefined;
|
|
580
580
|
deletedAt?: string | Date | null | undefined;
|
|
581
581
|
} | undefined;
|
|
582
|
+
lead?: {
|
|
583
|
+
name: string;
|
|
584
|
+
phoneNumber: string;
|
|
585
|
+
} | undefined;
|
|
586
|
+
company?: {
|
|
587
|
+
name: string;
|
|
588
|
+
createdAt: string | Date;
|
|
589
|
+
updatedAt: string | Date;
|
|
590
|
+
id: string;
|
|
591
|
+
} | null | undefined;
|
|
582
592
|
}>;
|
|
583
593
|
next: z.ZodNullable<z.ZodObject<{
|
|
584
594
|
id: z.ZodString;
|
|
@@ -634,16 +644,16 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
634
644
|
firstName: string;
|
|
635
645
|
}>, "many">>;
|
|
636
646
|
}, "strip", z.ZodTypeAny, {
|
|
637
|
-
id: string;
|
|
638
647
|
name: string;
|
|
648
|
+
id: string;
|
|
639
649
|
managers?: {
|
|
640
650
|
id: string;
|
|
641
651
|
lastName: string;
|
|
642
652
|
firstName: string;
|
|
643
653
|
}[] | undefined;
|
|
644
654
|
}, {
|
|
645
|
-
id: string;
|
|
646
655
|
name: string;
|
|
656
|
+
id: string;
|
|
647
657
|
managers?: {
|
|
648
658
|
id: string;
|
|
649
659
|
lastName: string;
|
|
@@ -664,15 +674,16 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
664
674
|
firstName: string;
|
|
665
675
|
}>, "many">>;
|
|
666
676
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
677
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
667
678
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
668
679
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
669
680
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
670
681
|
}, "strip", z.ZodTypeAny, {
|
|
671
|
-
status: "ACTIVE" | "INACTIVE";
|
|
672
|
-
id: string;
|
|
673
|
-
updatedAt: string;
|
|
674
|
-
createdAt: string;
|
|
675
682
|
email: string;
|
|
683
|
+
createdAt: string;
|
|
684
|
+
updatedAt: string;
|
|
685
|
+
id: string;
|
|
686
|
+
status: "ACTIVE" | "INACTIVE";
|
|
676
687
|
lastName: string;
|
|
677
688
|
firstName: string;
|
|
678
689
|
phoneNumbers: {
|
|
@@ -684,8 +695,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
684
695
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
685
696
|
officeId?: string | null | undefined;
|
|
686
697
|
office?: {
|
|
687
|
-
id: string;
|
|
688
698
|
name: string;
|
|
699
|
+
id: string;
|
|
689
700
|
managers?: {
|
|
690
701
|
id: string;
|
|
691
702
|
lastName: string;
|
|
@@ -697,20 +708,21 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
697
708
|
lastName: string;
|
|
698
709
|
firstName: string;
|
|
699
710
|
}[] | undefined;
|
|
711
|
+
dialpadUserId?: string | null | undefined;
|
|
700
712
|
deletedAt?: string | null | undefined;
|
|
701
713
|
}, {
|
|
702
|
-
status: "ACTIVE" | "INACTIVE";
|
|
703
|
-
id: string;
|
|
704
|
-
updatedAt: string | Date;
|
|
705
|
-
createdAt: string | Date;
|
|
706
714
|
email: string;
|
|
715
|
+
createdAt: string | Date;
|
|
716
|
+
updatedAt: string | Date;
|
|
717
|
+
id: string;
|
|
718
|
+
status: "ACTIVE" | "INACTIVE";
|
|
707
719
|
lastName: string;
|
|
708
720
|
firstName: string;
|
|
709
721
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
710
722
|
officeId?: string | null | undefined;
|
|
711
723
|
office?: {
|
|
712
|
-
id: string;
|
|
713
724
|
name: string;
|
|
725
|
+
id: string;
|
|
714
726
|
managers?: {
|
|
715
727
|
id: string;
|
|
716
728
|
lastName: string;
|
|
@@ -728,6 +740,7 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
728
740
|
lastName: string;
|
|
729
741
|
firstName: string;
|
|
730
742
|
}[] | undefined;
|
|
743
|
+
dialpadUserId?: string | null | undefined;
|
|
731
744
|
deletedAt?: string | Date | null | undefined;
|
|
732
745
|
}>>;
|
|
733
746
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -740,44 +753,34 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
740
753
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
741
754
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
742
755
|
}, "strip", z.ZodTypeAny, {
|
|
743
|
-
id: string;
|
|
744
756
|
name: string;
|
|
745
|
-
updatedAt: string;
|
|
746
757
|
createdAt: string;
|
|
747
|
-
|
|
758
|
+
updatedAt: string;
|
|
748
759
|
id: string;
|
|
760
|
+
}, {
|
|
749
761
|
name: string;
|
|
750
|
-
updatedAt: string | Date;
|
|
751
762
|
createdAt: string | Date;
|
|
763
|
+
updatedAt: string | Date;
|
|
764
|
+
id: string;
|
|
752
765
|
}>>>;
|
|
753
766
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
754
767
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
755
768
|
}, "strip", z.ZodTypeAny, {
|
|
756
|
-
status: LeadAssignmentStatus;
|
|
757
|
-
id: string;
|
|
758
|
-
updatedAt: string;
|
|
759
769
|
createdAt: string;
|
|
760
|
-
|
|
770
|
+
updatedAt: string;
|
|
771
|
+
id: string;
|
|
772
|
+
status: LeadAssignmentStatus;
|
|
761
773
|
agentId: string | null;
|
|
762
774
|
leadId: string;
|
|
763
775
|
assignedAt: string;
|
|
764
776
|
assignedBy: string | null;
|
|
765
|
-
|
|
766
|
-
id: string;
|
|
767
|
-
name: string;
|
|
768
|
-
updatedAt: string;
|
|
769
|
-
createdAt: string;
|
|
770
|
-
} | null | undefined;
|
|
771
|
-
lead?: {
|
|
772
|
-
name: string;
|
|
773
|
-
phoneNumber: string;
|
|
774
|
-
} | undefined;
|
|
777
|
+
companyId: string | null;
|
|
775
778
|
agent?: {
|
|
776
|
-
status: "ACTIVE" | "INACTIVE";
|
|
777
|
-
id: string;
|
|
778
|
-
updatedAt: string;
|
|
779
|
-
createdAt: string;
|
|
780
779
|
email: string;
|
|
780
|
+
createdAt: string;
|
|
781
|
+
updatedAt: string;
|
|
782
|
+
id: string;
|
|
783
|
+
status: "ACTIVE" | "INACTIVE";
|
|
781
784
|
lastName: string;
|
|
782
785
|
firstName: string;
|
|
783
786
|
phoneNumbers: {
|
|
@@ -789,8 +792,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
789
792
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
790
793
|
officeId?: string | null | undefined;
|
|
791
794
|
office?: {
|
|
792
|
-
id: string;
|
|
793
795
|
name: string;
|
|
796
|
+
id: string;
|
|
794
797
|
managers?: {
|
|
795
798
|
id: string;
|
|
796
799
|
lastName: string;
|
|
@@ -802,41 +805,42 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
802
805
|
lastName: string;
|
|
803
806
|
firstName: string;
|
|
804
807
|
}[] | undefined;
|
|
808
|
+
dialpadUserId?: string | null | undefined;
|
|
805
809
|
deletedAt?: string | null | undefined;
|
|
806
810
|
} | undefined;
|
|
811
|
+
lead?: {
|
|
812
|
+
name: string;
|
|
813
|
+
phoneNumber: string;
|
|
814
|
+
} | undefined;
|
|
815
|
+
company?: {
|
|
816
|
+
name: string;
|
|
817
|
+
createdAt: string;
|
|
818
|
+
updatedAt: string;
|
|
819
|
+
id: string;
|
|
820
|
+
} | null | undefined;
|
|
807
821
|
}, {
|
|
808
|
-
status: LeadAssignmentStatus;
|
|
809
|
-
id: string;
|
|
810
|
-
updatedAt: string | Date;
|
|
811
822
|
createdAt: string | Date;
|
|
812
|
-
|
|
823
|
+
updatedAt: string | Date;
|
|
824
|
+
id: string;
|
|
825
|
+
status: LeadAssignmentStatus;
|
|
813
826
|
agentId: string | null;
|
|
814
827
|
leadId: string;
|
|
815
828
|
assignedAt: string | Date;
|
|
816
829
|
assignedBy: string | null;
|
|
817
|
-
|
|
818
|
-
id: string;
|
|
819
|
-
name: string;
|
|
820
|
-
updatedAt: string | Date;
|
|
821
|
-
createdAt: string | Date;
|
|
822
|
-
} | null | undefined;
|
|
823
|
-
lead?: {
|
|
824
|
-
name: string;
|
|
825
|
-
phoneNumber: string;
|
|
826
|
-
} | undefined;
|
|
830
|
+
companyId: string | null;
|
|
827
831
|
agent?: {
|
|
828
|
-
status: "ACTIVE" | "INACTIVE";
|
|
829
|
-
id: string;
|
|
830
|
-
updatedAt: string | Date;
|
|
831
|
-
createdAt: string | Date;
|
|
832
832
|
email: string;
|
|
833
|
+
createdAt: string | Date;
|
|
834
|
+
updatedAt: string | Date;
|
|
835
|
+
id: string;
|
|
836
|
+
status: "ACTIVE" | "INACTIVE";
|
|
833
837
|
lastName: string;
|
|
834
838
|
firstName: string;
|
|
835
839
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
836
840
|
officeId?: string | null | undefined;
|
|
837
841
|
office?: {
|
|
838
|
-
id: string;
|
|
839
842
|
name: string;
|
|
843
|
+
id: string;
|
|
840
844
|
managers?: {
|
|
841
845
|
id: string;
|
|
842
846
|
lastName: string;
|
|
@@ -854,36 +858,37 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
854
858
|
lastName: string;
|
|
855
859
|
firstName: string;
|
|
856
860
|
}[] | undefined;
|
|
861
|
+
dialpadUserId?: string | null | undefined;
|
|
857
862
|
deletedAt?: string | Date | null | undefined;
|
|
858
863
|
} | undefined;
|
|
864
|
+
lead?: {
|
|
865
|
+
name: string;
|
|
866
|
+
phoneNumber: string;
|
|
867
|
+
} | undefined;
|
|
868
|
+
company?: {
|
|
869
|
+
name: string;
|
|
870
|
+
createdAt: string | Date;
|
|
871
|
+
updatedAt: string | Date;
|
|
872
|
+
id: string;
|
|
873
|
+
} | null | undefined;
|
|
859
874
|
}>>;
|
|
860
875
|
}, "strip", z.ZodTypeAny, {
|
|
861
876
|
completed: {
|
|
862
|
-
status: LeadAssignmentStatus;
|
|
863
|
-
id: string;
|
|
864
|
-
updatedAt: string;
|
|
865
877
|
createdAt: string;
|
|
866
|
-
|
|
878
|
+
updatedAt: string;
|
|
879
|
+
id: string;
|
|
880
|
+
status: LeadAssignmentStatus;
|
|
867
881
|
agentId: string | null;
|
|
868
882
|
leadId: string;
|
|
869
883
|
assignedAt: string;
|
|
870
884
|
assignedBy: string | null;
|
|
871
|
-
|
|
872
|
-
id: string;
|
|
873
|
-
name: string;
|
|
874
|
-
updatedAt: string;
|
|
875
|
-
createdAt: string;
|
|
876
|
-
} | null | undefined;
|
|
877
|
-
lead?: {
|
|
878
|
-
name: string;
|
|
879
|
-
phoneNumber: string;
|
|
880
|
-
} | undefined;
|
|
885
|
+
companyId: string | null;
|
|
881
886
|
agent?: {
|
|
882
|
-
status: "ACTIVE" | "INACTIVE";
|
|
883
|
-
id: string;
|
|
884
|
-
updatedAt: string;
|
|
885
|
-
createdAt: string;
|
|
886
887
|
email: string;
|
|
888
|
+
createdAt: string;
|
|
889
|
+
updatedAt: string;
|
|
890
|
+
id: string;
|
|
891
|
+
status: "ACTIVE" | "INACTIVE";
|
|
887
892
|
lastName: string;
|
|
888
893
|
firstName: string;
|
|
889
894
|
phoneNumbers: {
|
|
@@ -895,8 +900,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
895
900
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
896
901
|
officeId?: string | null | undefined;
|
|
897
902
|
office?: {
|
|
898
|
-
id: string;
|
|
899
903
|
name: string;
|
|
904
|
+
id: string;
|
|
900
905
|
managers?: {
|
|
901
906
|
id: string;
|
|
902
907
|
lastName: string;
|
|
@@ -908,35 +913,36 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
908
913
|
lastName: string;
|
|
909
914
|
firstName: string;
|
|
910
915
|
}[] | undefined;
|
|
916
|
+
dialpadUserId?: string | null | undefined;
|
|
911
917
|
deletedAt?: string | null | undefined;
|
|
912
918
|
} | undefined;
|
|
919
|
+
lead?: {
|
|
920
|
+
name: string;
|
|
921
|
+
phoneNumber: string;
|
|
922
|
+
} | undefined;
|
|
923
|
+
company?: {
|
|
924
|
+
name: string;
|
|
925
|
+
createdAt: string;
|
|
926
|
+
updatedAt: string;
|
|
927
|
+
id: string;
|
|
928
|
+
} | null | undefined;
|
|
913
929
|
};
|
|
914
930
|
next: {
|
|
915
|
-
status: LeadAssignmentStatus;
|
|
916
|
-
id: string;
|
|
917
|
-
updatedAt: string;
|
|
918
931
|
createdAt: string;
|
|
919
|
-
|
|
932
|
+
updatedAt: string;
|
|
933
|
+
id: string;
|
|
934
|
+
status: LeadAssignmentStatus;
|
|
920
935
|
agentId: string | null;
|
|
921
936
|
leadId: string;
|
|
922
937
|
assignedAt: string;
|
|
923
938
|
assignedBy: string | null;
|
|
924
|
-
|
|
925
|
-
id: string;
|
|
926
|
-
name: string;
|
|
927
|
-
updatedAt: string;
|
|
928
|
-
createdAt: string;
|
|
929
|
-
} | null | undefined;
|
|
930
|
-
lead?: {
|
|
931
|
-
name: string;
|
|
932
|
-
phoneNumber: string;
|
|
933
|
-
} | undefined;
|
|
939
|
+
companyId: string | null;
|
|
934
940
|
agent?: {
|
|
935
|
-
status: "ACTIVE" | "INACTIVE";
|
|
936
|
-
id: string;
|
|
937
|
-
updatedAt: string;
|
|
938
|
-
createdAt: string;
|
|
939
941
|
email: string;
|
|
942
|
+
createdAt: string;
|
|
943
|
+
updatedAt: string;
|
|
944
|
+
id: string;
|
|
945
|
+
status: "ACTIVE" | "INACTIVE";
|
|
940
946
|
lastName: string;
|
|
941
947
|
firstName: string;
|
|
942
948
|
phoneNumbers: {
|
|
@@ -948,8 +954,8 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
948
954
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
949
955
|
officeId?: string | null | undefined;
|
|
950
956
|
office?: {
|
|
951
|
-
id: string;
|
|
952
957
|
name: string;
|
|
958
|
+
id: string;
|
|
953
959
|
managers?: {
|
|
954
960
|
id: string;
|
|
955
961
|
lastName: string;
|
|
@@ -961,43 +967,44 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
961
967
|
lastName: string;
|
|
962
968
|
firstName: string;
|
|
963
969
|
}[] | undefined;
|
|
970
|
+
dialpadUserId?: string | null | undefined;
|
|
964
971
|
deletedAt?: string | null | undefined;
|
|
965
972
|
} | undefined;
|
|
973
|
+
lead?: {
|
|
974
|
+
name: string;
|
|
975
|
+
phoneNumber: string;
|
|
976
|
+
} | undefined;
|
|
977
|
+
company?: {
|
|
978
|
+
name: string;
|
|
979
|
+
createdAt: string;
|
|
980
|
+
updatedAt: string;
|
|
981
|
+
id: string;
|
|
982
|
+
} | null | undefined;
|
|
966
983
|
} | null;
|
|
967
984
|
}, {
|
|
968
985
|
completed: {
|
|
969
|
-
status: LeadAssignmentStatus;
|
|
970
|
-
id: string;
|
|
971
|
-
updatedAt: string | Date;
|
|
972
986
|
createdAt: string | Date;
|
|
973
|
-
|
|
987
|
+
updatedAt: string | Date;
|
|
988
|
+
id: string;
|
|
989
|
+
status: LeadAssignmentStatus;
|
|
974
990
|
agentId: string | null;
|
|
975
991
|
leadId: string;
|
|
976
992
|
assignedAt: string | Date;
|
|
977
993
|
assignedBy: string | null;
|
|
978
|
-
|
|
979
|
-
id: string;
|
|
980
|
-
name: string;
|
|
981
|
-
updatedAt: string | Date;
|
|
982
|
-
createdAt: string | Date;
|
|
983
|
-
} | null | undefined;
|
|
984
|
-
lead?: {
|
|
985
|
-
name: string;
|
|
986
|
-
phoneNumber: string;
|
|
987
|
-
} | undefined;
|
|
994
|
+
companyId: string | null;
|
|
988
995
|
agent?: {
|
|
989
|
-
status: "ACTIVE" | "INACTIVE";
|
|
990
|
-
id: string;
|
|
991
|
-
updatedAt: string | Date;
|
|
992
|
-
createdAt: string | Date;
|
|
993
996
|
email: string;
|
|
997
|
+
createdAt: string | Date;
|
|
998
|
+
updatedAt: string | Date;
|
|
999
|
+
id: string;
|
|
1000
|
+
status: "ACTIVE" | "INACTIVE";
|
|
994
1001
|
lastName: string;
|
|
995
1002
|
firstName: string;
|
|
996
1003
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
997
1004
|
officeId?: string | null | undefined;
|
|
998
1005
|
office?: {
|
|
999
|
-
id: string;
|
|
1000
1006
|
name: string;
|
|
1007
|
+
id: string;
|
|
1001
1008
|
managers?: {
|
|
1002
1009
|
id: string;
|
|
1003
1010
|
lastName: string;
|
|
@@ -1015,42 +1022,43 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
1015
1022
|
lastName: string;
|
|
1016
1023
|
firstName: string;
|
|
1017
1024
|
}[] | undefined;
|
|
1025
|
+
dialpadUserId?: string | null | undefined;
|
|
1018
1026
|
deletedAt?: string | Date | null | undefined;
|
|
1019
1027
|
} | undefined;
|
|
1028
|
+
lead?: {
|
|
1029
|
+
name: string;
|
|
1030
|
+
phoneNumber: string;
|
|
1031
|
+
} | undefined;
|
|
1032
|
+
company?: {
|
|
1033
|
+
name: string;
|
|
1034
|
+
createdAt: string | Date;
|
|
1035
|
+
updatedAt: string | Date;
|
|
1036
|
+
id: string;
|
|
1037
|
+
} | null | undefined;
|
|
1020
1038
|
};
|
|
1021
1039
|
next: {
|
|
1022
|
-
status: LeadAssignmentStatus;
|
|
1023
|
-
id: string;
|
|
1024
|
-
updatedAt: string | Date;
|
|
1025
1040
|
createdAt: string | Date;
|
|
1026
|
-
|
|
1041
|
+
updatedAt: string | Date;
|
|
1042
|
+
id: string;
|
|
1043
|
+
status: LeadAssignmentStatus;
|
|
1027
1044
|
agentId: string | null;
|
|
1028
1045
|
leadId: string;
|
|
1029
1046
|
assignedAt: string | Date;
|
|
1030
1047
|
assignedBy: string | null;
|
|
1031
|
-
|
|
1032
|
-
id: string;
|
|
1033
|
-
name: string;
|
|
1034
|
-
updatedAt: string | Date;
|
|
1035
|
-
createdAt: string | Date;
|
|
1036
|
-
} | null | undefined;
|
|
1037
|
-
lead?: {
|
|
1038
|
-
name: string;
|
|
1039
|
-
phoneNumber: string;
|
|
1040
|
-
} | undefined;
|
|
1048
|
+
companyId: string | null;
|
|
1041
1049
|
agent?: {
|
|
1042
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1043
|
-
id: string;
|
|
1044
|
-
updatedAt: string | Date;
|
|
1045
|
-
createdAt: string | Date;
|
|
1046
1050
|
email: string;
|
|
1051
|
+
createdAt: string | Date;
|
|
1052
|
+
updatedAt: string | Date;
|
|
1053
|
+
id: string;
|
|
1054
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1047
1055
|
lastName: string;
|
|
1048
1056
|
firstName: string;
|
|
1049
1057
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1050
1058
|
officeId?: string | null | undefined;
|
|
1051
1059
|
office?: {
|
|
1052
|
-
id: string;
|
|
1053
1060
|
name: string;
|
|
1061
|
+
id: string;
|
|
1054
1062
|
managers?: {
|
|
1055
1063
|
id: string;
|
|
1056
1064
|
lastName: string;
|
|
@@ -1068,8 +1076,19 @@ export declare const CompleteAssignmentResponseSchema: z.ZodObject<{
|
|
|
1068
1076
|
lastName: string;
|
|
1069
1077
|
firstName: string;
|
|
1070
1078
|
}[] | undefined;
|
|
1079
|
+
dialpadUserId?: string | null | undefined;
|
|
1071
1080
|
deletedAt?: string | Date | null | undefined;
|
|
1072
1081
|
} | undefined;
|
|
1082
|
+
lead?: {
|
|
1083
|
+
name: string;
|
|
1084
|
+
phoneNumber: string;
|
|
1085
|
+
} | undefined;
|
|
1086
|
+
company?: {
|
|
1087
|
+
name: string;
|
|
1088
|
+
createdAt: string | Date;
|
|
1089
|
+
updatedAt: string | Date;
|
|
1090
|
+
id: string;
|
|
1091
|
+
} | null | undefined;
|
|
1073
1092
|
} | null;
|
|
1074
1093
|
}>;
|
|
1075
1094
|
export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
@@ -1127,16 +1146,16 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1127
1146
|
firstName: string;
|
|
1128
1147
|
}>, "many">>;
|
|
1129
1148
|
}, "strip", z.ZodTypeAny, {
|
|
1130
|
-
id: string;
|
|
1131
1149
|
name: string;
|
|
1150
|
+
id: string;
|
|
1132
1151
|
managers?: {
|
|
1133
1152
|
id: string;
|
|
1134
1153
|
lastName: string;
|
|
1135
1154
|
firstName: string;
|
|
1136
1155
|
}[] | undefined;
|
|
1137
1156
|
}, {
|
|
1138
|
-
id: string;
|
|
1139
1157
|
name: string;
|
|
1158
|
+
id: string;
|
|
1140
1159
|
managers?: {
|
|
1141
1160
|
id: string;
|
|
1142
1161
|
lastName: string;
|
|
@@ -1157,15 +1176,16 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1157
1176
|
firstName: string;
|
|
1158
1177
|
}>, "many">>;
|
|
1159
1178
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1179
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1160
1180
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1161
1181
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1162
1182
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1163
1183
|
}, "strip", z.ZodTypeAny, {
|
|
1164
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1165
|
-
id: string;
|
|
1166
|
-
updatedAt: string;
|
|
1167
|
-
createdAt: string;
|
|
1168
1184
|
email: string;
|
|
1185
|
+
createdAt: string;
|
|
1186
|
+
updatedAt: string;
|
|
1187
|
+
id: string;
|
|
1188
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1169
1189
|
lastName: string;
|
|
1170
1190
|
firstName: string;
|
|
1171
1191
|
phoneNumbers: {
|
|
@@ -1177,8 +1197,8 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1177
1197
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1178
1198
|
officeId?: string | null | undefined;
|
|
1179
1199
|
office?: {
|
|
1180
|
-
id: string;
|
|
1181
1200
|
name: string;
|
|
1201
|
+
id: string;
|
|
1182
1202
|
managers?: {
|
|
1183
1203
|
id: string;
|
|
1184
1204
|
lastName: string;
|
|
@@ -1190,20 +1210,21 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1190
1210
|
lastName: string;
|
|
1191
1211
|
firstName: string;
|
|
1192
1212
|
}[] | undefined;
|
|
1213
|
+
dialpadUserId?: string | null | undefined;
|
|
1193
1214
|
deletedAt?: string | null | undefined;
|
|
1194
1215
|
}, {
|
|
1195
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1196
|
-
id: string;
|
|
1197
|
-
updatedAt: string | Date;
|
|
1198
|
-
createdAt: string | Date;
|
|
1199
1216
|
email: string;
|
|
1217
|
+
createdAt: string | Date;
|
|
1218
|
+
updatedAt: string | Date;
|
|
1219
|
+
id: string;
|
|
1220
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1200
1221
|
lastName: string;
|
|
1201
1222
|
firstName: string;
|
|
1202
1223
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1203
1224
|
officeId?: string | null | undefined;
|
|
1204
1225
|
office?: {
|
|
1205
|
-
id: string;
|
|
1206
1226
|
name: string;
|
|
1227
|
+
id: string;
|
|
1207
1228
|
managers?: {
|
|
1208
1229
|
id: string;
|
|
1209
1230
|
lastName: string;
|
|
@@ -1221,6 +1242,7 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1221
1242
|
lastName: string;
|
|
1222
1243
|
firstName: string;
|
|
1223
1244
|
}[] | undefined;
|
|
1245
|
+
dialpadUserId?: string | null | undefined;
|
|
1224
1246
|
deletedAt?: string | Date | null | undefined;
|
|
1225
1247
|
}>>;
|
|
1226
1248
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1233,44 +1255,34 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1233
1255
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1234
1256
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1235
1257
|
}, "strip", z.ZodTypeAny, {
|
|
1236
|
-
id: string;
|
|
1237
1258
|
name: string;
|
|
1238
|
-
updatedAt: string;
|
|
1239
1259
|
createdAt: string;
|
|
1240
|
-
|
|
1260
|
+
updatedAt: string;
|
|
1241
1261
|
id: string;
|
|
1262
|
+
}, {
|
|
1242
1263
|
name: string;
|
|
1243
|
-
updatedAt: string | Date;
|
|
1244
1264
|
createdAt: string | Date;
|
|
1265
|
+
updatedAt: string | Date;
|
|
1266
|
+
id: string;
|
|
1245
1267
|
}>>>;
|
|
1246
1268
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1247
1269
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1248
1270
|
}, "strip", z.ZodTypeAny, {
|
|
1249
|
-
status: LeadAssignmentStatus;
|
|
1250
|
-
id: string;
|
|
1251
|
-
updatedAt: string;
|
|
1252
1271
|
createdAt: string;
|
|
1253
|
-
|
|
1272
|
+
updatedAt: string;
|
|
1273
|
+
id: string;
|
|
1274
|
+
status: LeadAssignmentStatus;
|
|
1254
1275
|
agentId: string | null;
|
|
1255
1276
|
leadId: string;
|
|
1256
1277
|
assignedAt: string;
|
|
1257
1278
|
assignedBy: string | null;
|
|
1258
|
-
|
|
1259
|
-
id: string;
|
|
1260
|
-
name: string;
|
|
1261
|
-
updatedAt: string;
|
|
1262
|
-
createdAt: string;
|
|
1263
|
-
} | null | undefined;
|
|
1264
|
-
lead?: {
|
|
1265
|
-
name: string;
|
|
1266
|
-
phoneNumber: string;
|
|
1267
|
-
} | undefined;
|
|
1279
|
+
companyId: string | null;
|
|
1268
1280
|
agent?: {
|
|
1269
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1270
|
-
id: string;
|
|
1271
|
-
updatedAt: string;
|
|
1272
|
-
createdAt: string;
|
|
1273
1281
|
email: string;
|
|
1282
|
+
createdAt: string;
|
|
1283
|
+
updatedAt: string;
|
|
1284
|
+
id: string;
|
|
1285
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1274
1286
|
lastName: string;
|
|
1275
1287
|
firstName: string;
|
|
1276
1288
|
phoneNumbers: {
|
|
@@ -1282,8 +1294,8 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1282
1294
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1283
1295
|
officeId?: string | null | undefined;
|
|
1284
1296
|
office?: {
|
|
1285
|
-
id: string;
|
|
1286
1297
|
name: string;
|
|
1298
|
+
id: string;
|
|
1287
1299
|
managers?: {
|
|
1288
1300
|
id: string;
|
|
1289
1301
|
lastName: string;
|
|
@@ -1295,41 +1307,42 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1295
1307
|
lastName: string;
|
|
1296
1308
|
firstName: string;
|
|
1297
1309
|
}[] | undefined;
|
|
1310
|
+
dialpadUserId?: string | null | undefined;
|
|
1298
1311
|
deletedAt?: string | null | undefined;
|
|
1299
1312
|
} | undefined;
|
|
1313
|
+
lead?: {
|
|
1314
|
+
name: string;
|
|
1315
|
+
phoneNumber: string;
|
|
1316
|
+
} | undefined;
|
|
1317
|
+
company?: {
|
|
1318
|
+
name: string;
|
|
1319
|
+
createdAt: string;
|
|
1320
|
+
updatedAt: string;
|
|
1321
|
+
id: string;
|
|
1322
|
+
} | null | undefined;
|
|
1300
1323
|
}, {
|
|
1301
|
-
status: LeadAssignmentStatus;
|
|
1302
|
-
id: string;
|
|
1303
|
-
updatedAt: string | Date;
|
|
1304
1324
|
createdAt: string | Date;
|
|
1305
|
-
|
|
1325
|
+
updatedAt: string | Date;
|
|
1326
|
+
id: string;
|
|
1327
|
+
status: LeadAssignmentStatus;
|
|
1306
1328
|
agentId: string | null;
|
|
1307
1329
|
leadId: string;
|
|
1308
1330
|
assignedAt: string | Date;
|
|
1309
1331
|
assignedBy: string | null;
|
|
1310
|
-
|
|
1311
|
-
id: string;
|
|
1312
|
-
name: string;
|
|
1313
|
-
updatedAt: string | Date;
|
|
1314
|
-
createdAt: string | Date;
|
|
1315
|
-
} | null | undefined;
|
|
1316
|
-
lead?: {
|
|
1317
|
-
name: string;
|
|
1318
|
-
phoneNumber: string;
|
|
1319
|
-
} | undefined;
|
|
1332
|
+
companyId: string | null;
|
|
1320
1333
|
agent?: {
|
|
1321
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1322
|
-
id: string;
|
|
1323
|
-
updatedAt: string | Date;
|
|
1324
|
-
createdAt: string | Date;
|
|
1325
1334
|
email: string;
|
|
1335
|
+
createdAt: string | Date;
|
|
1336
|
+
updatedAt: string | Date;
|
|
1337
|
+
id: string;
|
|
1338
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1326
1339
|
lastName: string;
|
|
1327
1340
|
firstName: string;
|
|
1328
1341
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1329
1342
|
officeId?: string | null | undefined;
|
|
1330
1343
|
office?: {
|
|
1331
|
-
id: string;
|
|
1332
1344
|
name: string;
|
|
1345
|
+
id: string;
|
|
1333
1346
|
managers?: {
|
|
1334
1347
|
id: string;
|
|
1335
1348
|
lastName: string;
|
|
@@ -1347,8 +1360,19 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1347
1360
|
lastName: string;
|
|
1348
1361
|
firstName: string;
|
|
1349
1362
|
}[] | undefined;
|
|
1363
|
+
dialpadUserId?: string | null | undefined;
|
|
1350
1364
|
deletedAt?: string | Date | null | undefined;
|
|
1351
1365
|
} | undefined;
|
|
1366
|
+
lead?: {
|
|
1367
|
+
name: string;
|
|
1368
|
+
phoneNumber: string;
|
|
1369
|
+
} | undefined;
|
|
1370
|
+
company?: {
|
|
1371
|
+
name: string;
|
|
1372
|
+
createdAt: string | Date;
|
|
1373
|
+
updatedAt: string | Date;
|
|
1374
|
+
id: string;
|
|
1375
|
+
} | null | undefined;
|
|
1352
1376
|
}>;
|
|
1353
1377
|
next: z.ZodNullable<z.ZodObject<{
|
|
1354
1378
|
id: z.ZodString;
|
|
@@ -1404,16 +1428,16 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1404
1428
|
firstName: string;
|
|
1405
1429
|
}>, "many">>;
|
|
1406
1430
|
}, "strip", z.ZodTypeAny, {
|
|
1407
|
-
id: string;
|
|
1408
1431
|
name: string;
|
|
1432
|
+
id: string;
|
|
1409
1433
|
managers?: {
|
|
1410
1434
|
id: string;
|
|
1411
1435
|
lastName: string;
|
|
1412
1436
|
firstName: string;
|
|
1413
1437
|
}[] | undefined;
|
|
1414
1438
|
}, {
|
|
1415
|
-
id: string;
|
|
1416
1439
|
name: string;
|
|
1440
|
+
id: string;
|
|
1417
1441
|
managers?: {
|
|
1418
1442
|
id: string;
|
|
1419
1443
|
lastName: string;
|
|
@@ -1434,15 +1458,16 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1434
1458
|
firstName: string;
|
|
1435
1459
|
}>, "many">>;
|
|
1436
1460
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1461
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1437
1462
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1438
1463
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1439
1464
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1440
1465
|
}, "strip", z.ZodTypeAny, {
|
|
1441
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1442
|
-
id: string;
|
|
1443
|
-
updatedAt: string;
|
|
1444
|
-
createdAt: string;
|
|
1445
1466
|
email: string;
|
|
1467
|
+
createdAt: string;
|
|
1468
|
+
updatedAt: string;
|
|
1469
|
+
id: string;
|
|
1470
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1446
1471
|
lastName: string;
|
|
1447
1472
|
firstName: string;
|
|
1448
1473
|
phoneNumbers: {
|
|
@@ -1454,8 +1479,8 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1454
1479
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1455
1480
|
officeId?: string | null | undefined;
|
|
1456
1481
|
office?: {
|
|
1457
|
-
id: string;
|
|
1458
1482
|
name: string;
|
|
1483
|
+
id: string;
|
|
1459
1484
|
managers?: {
|
|
1460
1485
|
id: string;
|
|
1461
1486
|
lastName: string;
|
|
@@ -1467,20 +1492,21 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1467
1492
|
lastName: string;
|
|
1468
1493
|
firstName: string;
|
|
1469
1494
|
}[] | undefined;
|
|
1495
|
+
dialpadUserId?: string | null | undefined;
|
|
1470
1496
|
deletedAt?: string | null | undefined;
|
|
1471
1497
|
}, {
|
|
1472
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1473
|
-
id: string;
|
|
1474
|
-
updatedAt: string | Date;
|
|
1475
|
-
createdAt: string | Date;
|
|
1476
1498
|
email: string;
|
|
1499
|
+
createdAt: string | Date;
|
|
1500
|
+
updatedAt: string | Date;
|
|
1501
|
+
id: string;
|
|
1502
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1477
1503
|
lastName: string;
|
|
1478
1504
|
firstName: string;
|
|
1479
1505
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1480
1506
|
officeId?: string | null | undefined;
|
|
1481
1507
|
office?: {
|
|
1482
|
-
id: string;
|
|
1483
1508
|
name: string;
|
|
1509
|
+
id: string;
|
|
1484
1510
|
managers?: {
|
|
1485
1511
|
id: string;
|
|
1486
1512
|
lastName: string;
|
|
@@ -1498,6 +1524,7 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1498
1524
|
lastName: string;
|
|
1499
1525
|
firstName: string;
|
|
1500
1526
|
}[] | undefined;
|
|
1527
|
+
dialpadUserId?: string | null | undefined;
|
|
1501
1528
|
deletedAt?: string | Date | null | undefined;
|
|
1502
1529
|
}>>;
|
|
1503
1530
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1510,44 +1537,34 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1510
1537
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1511
1538
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1512
1539
|
}, "strip", z.ZodTypeAny, {
|
|
1513
|
-
id: string;
|
|
1514
1540
|
name: string;
|
|
1515
|
-
updatedAt: string;
|
|
1516
1541
|
createdAt: string;
|
|
1517
|
-
|
|
1542
|
+
updatedAt: string;
|
|
1518
1543
|
id: string;
|
|
1544
|
+
}, {
|
|
1519
1545
|
name: string;
|
|
1520
|
-
updatedAt: string | Date;
|
|
1521
1546
|
createdAt: string | Date;
|
|
1547
|
+
updatedAt: string | Date;
|
|
1548
|
+
id: string;
|
|
1522
1549
|
}>>>;
|
|
1523
1550
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1524
1551
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1525
1552
|
}, "strip", z.ZodTypeAny, {
|
|
1526
|
-
status: LeadAssignmentStatus;
|
|
1527
|
-
id: string;
|
|
1528
|
-
updatedAt: string;
|
|
1529
1553
|
createdAt: string;
|
|
1530
|
-
|
|
1554
|
+
updatedAt: string;
|
|
1555
|
+
id: string;
|
|
1556
|
+
status: LeadAssignmentStatus;
|
|
1531
1557
|
agentId: string | null;
|
|
1532
1558
|
leadId: string;
|
|
1533
1559
|
assignedAt: string;
|
|
1534
1560
|
assignedBy: string | null;
|
|
1535
|
-
|
|
1536
|
-
id: string;
|
|
1537
|
-
name: string;
|
|
1538
|
-
updatedAt: string;
|
|
1539
|
-
createdAt: string;
|
|
1540
|
-
} | null | undefined;
|
|
1541
|
-
lead?: {
|
|
1542
|
-
name: string;
|
|
1543
|
-
phoneNumber: string;
|
|
1544
|
-
} | undefined;
|
|
1561
|
+
companyId: string | null;
|
|
1545
1562
|
agent?: {
|
|
1546
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1547
|
-
id: string;
|
|
1548
|
-
updatedAt: string;
|
|
1549
|
-
createdAt: string;
|
|
1550
1563
|
email: string;
|
|
1564
|
+
createdAt: string;
|
|
1565
|
+
updatedAt: string;
|
|
1566
|
+
id: string;
|
|
1567
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1551
1568
|
lastName: string;
|
|
1552
1569
|
firstName: string;
|
|
1553
1570
|
phoneNumbers: {
|
|
@@ -1559,8 +1576,8 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1559
1576
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1560
1577
|
officeId?: string | null | undefined;
|
|
1561
1578
|
office?: {
|
|
1562
|
-
id: string;
|
|
1563
1579
|
name: string;
|
|
1580
|
+
id: string;
|
|
1564
1581
|
managers?: {
|
|
1565
1582
|
id: string;
|
|
1566
1583
|
lastName: string;
|
|
@@ -1572,41 +1589,42 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1572
1589
|
lastName: string;
|
|
1573
1590
|
firstName: string;
|
|
1574
1591
|
}[] | undefined;
|
|
1592
|
+
dialpadUserId?: string | null | undefined;
|
|
1575
1593
|
deletedAt?: string | null | undefined;
|
|
1576
1594
|
} | undefined;
|
|
1595
|
+
lead?: {
|
|
1596
|
+
name: string;
|
|
1597
|
+
phoneNumber: string;
|
|
1598
|
+
} | undefined;
|
|
1599
|
+
company?: {
|
|
1600
|
+
name: string;
|
|
1601
|
+
createdAt: string;
|
|
1602
|
+
updatedAt: string;
|
|
1603
|
+
id: string;
|
|
1604
|
+
} | null | undefined;
|
|
1577
1605
|
}, {
|
|
1578
|
-
status: LeadAssignmentStatus;
|
|
1579
|
-
id: string;
|
|
1580
|
-
updatedAt: string | Date;
|
|
1581
1606
|
createdAt: string | Date;
|
|
1582
|
-
|
|
1607
|
+
updatedAt: string | Date;
|
|
1608
|
+
id: string;
|
|
1609
|
+
status: LeadAssignmentStatus;
|
|
1583
1610
|
agentId: string | null;
|
|
1584
1611
|
leadId: string;
|
|
1585
1612
|
assignedAt: string | Date;
|
|
1586
1613
|
assignedBy: string | null;
|
|
1587
|
-
|
|
1588
|
-
id: string;
|
|
1589
|
-
name: string;
|
|
1590
|
-
updatedAt: string | Date;
|
|
1591
|
-
createdAt: string | Date;
|
|
1592
|
-
} | null | undefined;
|
|
1593
|
-
lead?: {
|
|
1594
|
-
name: string;
|
|
1595
|
-
phoneNumber: string;
|
|
1596
|
-
} | undefined;
|
|
1614
|
+
companyId: string | null;
|
|
1597
1615
|
agent?: {
|
|
1598
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1599
|
-
id: string;
|
|
1600
|
-
updatedAt: string | Date;
|
|
1601
|
-
createdAt: string | Date;
|
|
1602
1616
|
email: string;
|
|
1617
|
+
createdAt: string | Date;
|
|
1618
|
+
updatedAt: string | Date;
|
|
1619
|
+
id: string;
|
|
1620
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1603
1621
|
lastName: string;
|
|
1604
1622
|
firstName: string;
|
|
1605
1623
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1606
1624
|
officeId?: string | null | undefined;
|
|
1607
1625
|
office?: {
|
|
1608
|
-
id: string;
|
|
1609
1626
|
name: string;
|
|
1627
|
+
id: string;
|
|
1610
1628
|
managers?: {
|
|
1611
1629
|
id: string;
|
|
1612
1630
|
lastName: string;
|
|
@@ -1624,36 +1642,37 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1624
1642
|
lastName: string;
|
|
1625
1643
|
firstName: string;
|
|
1626
1644
|
}[] | undefined;
|
|
1645
|
+
dialpadUserId?: string | null | undefined;
|
|
1627
1646
|
deletedAt?: string | Date | null | undefined;
|
|
1628
1647
|
} | undefined;
|
|
1648
|
+
lead?: {
|
|
1649
|
+
name: string;
|
|
1650
|
+
phoneNumber: string;
|
|
1651
|
+
} | undefined;
|
|
1652
|
+
company?: {
|
|
1653
|
+
name: string;
|
|
1654
|
+
createdAt: string | Date;
|
|
1655
|
+
updatedAt: string | Date;
|
|
1656
|
+
id: string;
|
|
1657
|
+
} | null | undefined;
|
|
1629
1658
|
}>>;
|
|
1630
1659
|
}, "strip", z.ZodTypeAny, {
|
|
1631
|
-
|
|
1632
|
-
status: LeadAssignmentStatus;
|
|
1633
|
-
id: string;
|
|
1634
|
-
updatedAt: string;
|
|
1660
|
+
cancelled: {
|
|
1635
1661
|
createdAt: string;
|
|
1636
|
-
|
|
1662
|
+
updatedAt: string;
|
|
1663
|
+
id: string;
|
|
1664
|
+
status: LeadAssignmentStatus;
|
|
1637
1665
|
agentId: string | null;
|
|
1638
1666
|
leadId: string;
|
|
1639
1667
|
assignedAt: string;
|
|
1640
1668
|
assignedBy: string | null;
|
|
1641
|
-
|
|
1642
|
-
id: string;
|
|
1643
|
-
name: string;
|
|
1644
|
-
updatedAt: string;
|
|
1645
|
-
createdAt: string;
|
|
1646
|
-
} | null | undefined;
|
|
1647
|
-
lead?: {
|
|
1648
|
-
name: string;
|
|
1649
|
-
phoneNumber: string;
|
|
1650
|
-
} | undefined;
|
|
1669
|
+
companyId: string | null;
|
|
1651
1670
|
agent?: {
|
|
1652
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1653
|
-
id: string;
|
|
1654
|
-
updatedAt: string;
|
|
1655
|
-
createdAt: string;
|
|
1656
1671
|
email: string;
|
|
1672
|
+
createdAt: string;
|
|
1673
|
+
updatedAt: string;
|
|
1674
|
+
id: string;
|
|
1675
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1657
1676
|
lastName: string;
|
|
1658
1677
|
firstName: string;
|
|
1659
1678
|
phoneNumbers: {
|
|
@@ -1665,8 +1684,8 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1665
1684
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1666
1685
|
officeId?: string | null | undefined;
|
|
1667
1686
|
office?: {
|
|
1668
|
-
id: string;
|
|
1669
1687
|
name: string;
|
|
1688
|
+
id: string;
|
|
1670
1689
|
managers?: {
|
|
1671
1690
|
id: string;
|
|
1672
1691
|
lastName: string;
|
|
@@ -1678,35 +1697,36 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1678
1697
|
lastName: string;
|
|
1679
1698
|
firstName: string;
|
|
1680
1699
|
}[] | undefined;
|
|
1700
|
+
dialpadUserId?: string | null | undefined;
|
|
1681
1701
|
deletedAt?: string | null | undefined;
|
|
1682
1702
|
} | undefined;
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1703
|
+
lead?: {
|
|
1704
|
+
name: string;
|
|
1705
|
+
phoneNumber: string;
|
|
1706
|
+
} | undefined;
|
|
1707
|
+
company?: {
|
|
1708
|
+
name: string;
|
|
1709
|
+
createdAt: string;
|
|
1710
|
+
updatedAt: string;
|
|
1711
|
+
id: string;
|
|
1712
|
+
} | null | undefined;
|
|
1713
|
+
};
|
|
1714
|
+
next: {
|
|
1688
1715
|
createdAt: string;
|
|
1689
|
-
|
|
1716
|
+
updatedAt: string;
|
|
1717
|
+
id: string;
|
|
1718
|
+
status: LeadAssignmentStatus;
|
|
1690
1719
|
agentId: string | null;
|
|
1691
1720
|
leadId: string;
|
|
1692
1721
|
assignedAt: string;
|
|
1693
1722
|
assignedBy: string | null;
|
|
1694
|
-
|
|
1695
|
-
id: string;
|
|
1696
|
-
name: string;
|
|
1697
|
-
updatedAt: string;
|
|
1698
|
-
createdAt: string;
|
|
1699
|
-
} | null | undefined;
|
|
1700
|
-
lead?: {
|
|
1701
|
-
name: string;
|
|
1702
|
-
phoneNumber: string;
|
|
1703
|
-
} | undefined;
|
|
1723
|
+
companyId: string | null;
|
|
1704
1724
|
agent?: {
|
|
1705
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1706
|
-
id: string;
|
|
1707
|
-
updatedAt: string;
|
|
1708
|
-
createdAt: string;
|
|
1709
1725
|
email: string;
|
|
1726
|
+
createdAt: string;
|
|
1727
|
+
updatedAt: string;
|
|
1728
|
+
id: string;
|
|
1729
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1710
1730
|
lastName: string;
|
|
1711
1731
|
firstName: string;
|
|
1712
1732
|
phoneNumbers: {
|
|
@@ -1718,8 +1738,8 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1718
1738
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1719
1739
|
officeId?: string | null | undefined;
|
|
1720
1740
|
office?: {
|
|
1721
|
-
id: string;
|
|
1722
1741
|
name: string;
|
|
1742
|
+
id: string;
|
|
1723
1743
|
managers?: {
|
|
1724
1744
|
id: string;
|
|
1725
1745
|
lastName: string;
|
|
@@ -1731,43 +1751,44 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1731
1751
|
lastName: string;
|
|
1732
1752
|
firstName: string;
|
|
1733
1753
|
}[] | undefined;
|
|
1754
|
+
dialpadUserId?: string | null | undefined;
|
|
1734
1755
|
deletedAt?: string | null | undefined;
|
|
1735
1756
|
} | undefined;
|
|
1736
|
-
|
|
1757
|
+
lead?: {
|
|
1758
|
+
name: string;
|
|
1759
|
+
phoneNumber: string;
|
|
1760
|
+
} | undefined;
|
|
1761
|
+
company?: {
|
|
1762
|
+
name: string;
|
|
1763
|
+
createdAt: string;
|
|
1764
|
+
updatedAt: string;
|
|
1765
|
+
id: string;
|
|
1766
|
+
} | null | undefined;
|
|
1767
|
+
} | null;
|
|
1737
1768
|
}, {
|
|
1738
|
-
|
|
1739
|
-
status: LeadAssignmentStatus;
|
|
1740
|
-
id: string;
|
|
1741
|
-
updatedAt: string | Date;
|
|
1769
|
+
cancelled: {
|
|
1742
1770
|
createdAt: string | Date;
|
|
1743
|
-
|
|
1771
|
+
updatedAt: string | Date;
|
|
1772
|
+
id: string;
|
|
1773
|
+
status: LeadAssignmentStatus;
|
|
1744
1774
|
agentId: string | null;
|
|
1745
1775
|
leadId: string;
|
|
1746
1776
|
assignedAt: string | Date;
|
|
1747
1777
|
assignedBy: string | null;
|
|
1748
|
-
|
|
1749
|
-
id: string;
|
|
1750
|
-
name: string;
|
|
1751
|
-
updatedAt: string | Date;
|
|
1752
|
-
createdAt: string | Date;
|
|
1753
|
-
} | null | undefined;
|
|
1754
|
-
lead?: {
|
|
1755
|
-
name: string;
|
|
1756
|
-
phoneNumber: string;
|
|
1757
|
-
} | undefined;
|
|
1778
|
+
companyId: string | null;
|
|
1758
1779
|
agent?: {
|
|
1759
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1760
|
-
id: string;
|
|
1761
|
-
updatedAt: string | Date;
|
|
1762
|
-
createdAt: string | Date;
|
|
1763
1780
|
email: string;
|
|
1781
|
+
createdAt: string | Date;
|
|
1782
|
+
updatedAt: string | Date;
|
|
1783
|
+
id: string;
|
|
1784
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1764
1785
|
lastName: string;
|
|
1765
1786
|
firstName: string;
|
|
1766
1787
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1767
1788
|
officeId?: string | null | undefined;
|
|
1768
1789
|
office?: {
|
|
1769
|
-
id: string;
|
|
1770
1790
|
name: string;
|
|
1791
|
+
id: string;
|
|
1771
1792
|
managers?: {
|
|
1772
1793
|
id: string;
|
|
1773
1794
|
lastName: string;
|
|
@@ -1785,42 +1806,43 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1785
1806
|
lastName: string;
|
|
1786
1807
|
firstName: string;
|
|
1787
1808
|
}[] | undefined;
|
|
1809
|
+
dialpadUserId?: string | null | undefined;
|
|
1788
1810
|
deletedAt?: string | Date | null | undefined;
|
|
1789
1811
|
} | undefined;
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1812
|
+
lead?: {
|
|
1813
|
+
name: string;
|
|
1814
|
+
phoneNumber: string;
|
|
1815
|
+
} | undefined;
|
|
1816
|
+
company?: {
|
|
1817
|
+
name: string;
|
|
1818
|
+
createdAt: string | Date;
|
|
1819
|
+
updatedAt: string | Date;
|
|
1820
|
+
id: string;
|
|
1821
|
+
} | null | undefined;
|
|
1822
|
+
};
|
|
1823
|
+
next: {
|
|
1795
1824
|
createdAt: string | Date;
|
|
1796
|
-
|
|
1825
|
+
updatedAt: string | Date;
|
|
1826
|
+
id: string;
|
|
1827
|
+
status: LeadAssignmentStatus;
|
|
1797
1828
|
agentId: string | null;
|
|
1798
1829
|
leadId: string;
|
|
1799
1830
|
assignedAt: string | Date;
|
|
1800
1831
|
assignedBy: string | null;
|
|
1801
|
-
|
|
1802
|
-
id: string;
|
|
1803
|
-
name: string;
|
|
1804
|
-
updatedAt: string | Date;
|
|
1805
|
-
createdAt: string | Date;
|
|
1806
|
-
} | null | undefined;
|
|
1807
|
-
lead?: {
|
|
1808
|
-
name: string;
|
|
1809
|
-
phoneNumber: string;
|
|
1810
|
-
} | undefined;
|
|
1832
|
+
companyId: string | null;
|
|
1811
1833
|
agent?: {
|
|
1812
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1813
|
-
id: string;
|
|
1814
|
-
updatedAt: string | Date;
|
|
1815
|
-
createdAt: string | Date;
|
|
1816
1834
|
email: string;
|
|
1835
|
+
createdAt: string | Date;
|
|
1836
|
+
updatedAt: string | Date;
|
|
1837
|
+
id: string;
|
|
1838
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1817
1839
|
lastName: string;
|
|
1818
1840
|
firstName: string;
|
|
1819
1841
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1820
1842
|
officeId?: string | null | undefined;
|
|
1821
1843
|
office?: {
|
|
1822
|
-
id: string;
|
|
1823
1844
|
name: string;
|
|
1845
|
+
id: string;
|
|
1824
1846
|
managers?: {
|
|
1825
1847
|
id: string;
|
|
1826
1848
|
lastName: string;
|
|
@@ -1838,9 +1860,20 @@ export declare const CancelAssignmentResponseSchema: z.ZodObject<{
|
|
|
1838
1860
|
lastName: string;
|
|
1839
1861
|
firstName: string;
|
|
1840
1862
|
}[] | undefined;
|
|
1863
|
+
dialpadUserId?: string | null | undefined;
|
|
1841
1864
|
deletedAt?: string | Date | null | undefined;
|
|
1842
1865
|
} | undefined;
|
|
1843
|
-
|
|
1866
|
+
lead?: {
|
|
1867
|
+
name: string;
|
|
1868
|
+
phoneNumber: string;
|
|
1869
|
+
} | undefined;
|
|
1870
|
+
company?: {
|
|
1871
|
+
name: string;
|
|
1872
|
+
createdAt: string | Date;
|
|
1873
|
+
updatedAt: string | Date;
|
|
1874
|
+
id: string;
|
|
1875
|
+
} | null | undefined;
|
|
1876
|
+
} | null;
|
|
1844
1877
|
}>;
|
|
1845
1878
|
/**
|
|
1846
1879
|
* Why an agent's lead queue is in its current state.
|
|
@@ -1869,7 +1902,7 @@ export declare const QueueStatusSchema: z.ZodObject<{
|
|
|
1869
1902
|
currentPercentage: number;
|
|
1870
1903
|
needsRefill: boolean;
|
|
1871
1904
|
nextLeadAvailable: boolean;
|
|
1872
|
-
enrollmentStatus: "AVAILABLE" | "PAUSED" | "
|
|
1905
|
+
enrollmentStatus: "AVAILABLE" | "PAUSED" | "EXCLUDED" | "NOT_ENROLLED";
|
|
1873
1906
|
}, {
|
|
1874
1907
|
agentId: string;
|
|
1875
1908
|
activeAssignments: number;
|
|
@@ -1877,7 +1910,7 @@ export declare const QueueStatusSchema: z.ZodObject<{
|
|
|
1877
1910
|
currentPercentage: number;
|
|
1878
1911
|
needsRefill: boolean;
|
|
1879
1912
|
nextLeadAvailable: boolean;
|
|
1880
|
-
enrollmentStatus: "AVAILABLE" | "PAUSED" | "
|
|
1913
|
+
enrollmentStatus: "AVAILABLE" | "PAUSED" | "EXCLUDED" | "NOT_ENROLLED";
|
|
1881
1914
|
}>;
|
|
1882
1915
|
export type LeadAssignmentLead = z.infer<typeof LeadAssignmentLeadSchema>;
|
|
1883
1916
|
export type LeadAssignment = z.infer<typeof LeadAssignmentSchema>;
|
|
@@ -1937,7 +1970,7 @@ export declare const leadAssignmentsContract: {
|
|
|
1937
1970
|
details?: unknown;
|
|
1938
1971
|
correlationId?: string | undefined;
|
|
1939
1972
|
}>;
|
|
1940
|
-
|
|
1973
|
+
403: z.ZodObject<{
|
|
1941
1974
|
statusCode: z.ZodNumber;
|
|
1942
1975
|
message: z.ZodString;
|
|
1943
1976
|
code: z.ZodString;
|
|
@@ -1962,7 +1995,7 @@ export declare const leadAssignmentsContract: {
|
|
|
1962
1995
|
details?: unknown;
|
|
1963
1996
|
correlationId?: string | undefined;
|
|
1964
1997
|
}>;
|
|
1965
|
-
|
|
1998
|
+
401: z.ZodObject<{
|
|
1966
1999
|
statusCode: z.ZodNumber;
|
|
1967
2000
|
message: z.ZodString;
|
|
1968
2001
|
code: z.ZodString;
|
|
@@ -2067,16 +2100,16 @@ export declare const leadAssignmentsContract: {
|
|
|
2067
2100
|
firstName: string;
|
|
2068
2101
|
}>, "many">>;
|
|
2069
2102
|
}, "strip", z.ZodTypeAny, {
|
|
2070
|
-
id: string;
|
|
2071
2103
|
name: string;
|
|
2104
|
+
id: string;
|
|
2072
2105
|
managers?: {
|
|
2073
2106
|
id: string;
|
|
2074
2107
|
lastName: string;
|
|
2075
2108
|
firstName: string;
|
|
2076
2109
|
}[] | undefined;
|
|
2077
2110
|
}, {
|
|
2078
|
-
id: string;
|
|
2079
2111
|
name: string;
|
|
2112
|
+
id: string;
|
|
2080
2113
|
managers?: {
|
|
2081
2114
|
id: string;
|
|
2082
2115
|
lastName: string;
|
|
@@ -2097,15 +2130,16 @@ export declare const leadAssignmentsContract: {
|
|
|
2097
2130
|
firstName: string;
|
|
2098
2131
|
}>, "many">>;
|
|
2099
2132
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2133
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
2100
2134
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2101
2135
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2102
2136
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2103
2137
|
}, "strip", z.ZodTypeAny, {
|
|
2104
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2105
|
-
id: string;
|
|
2106
|
-
updatedAt: string;
|
|
2107
|
-
createdAt: string;
|
|
2108
2138
|
email: string;
|
|
2139
|
+
createdAt: string;
|
|
2140
|
+
updatedAt: string;
|
|
2141
|
+
id: string;
|
|
2142
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2109
2143
|
lastName: string;
|
|
2110
2144
|
firstName: string;
|
|
2111
2145
|
phoneNumbers: {
|
|
@@ -2117,8 +2151,8 @@ export declare const leadAssignmentsContract: {
|
|
|
2117
2151
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2118
2152
|
officeId?: string | null | undefined;
|
|
2119
2153
|
office?: {
|
|
2120
|
-
id: string;
|
|
2121
2154
|
name: string;
|
|
2155
|
+
id: string;
|
|
2122
2156
|
managers?: {
|
|
2123
2157
|
id: string;
|
|
2124
2158
|
lastName: string;
|
|
@@ -2130,20 +2164,21 @@ export declare const leadAssignmentsContract: {
|
|
|
2130
2164
|
lastName: string;
|
|
2131
2165
|
firstName: string;
|
|
2132
2166
|
}[] | undefined;
|
|
2167
|
+
dialpadUserId?: string | null | undefined;
|
|
2133
2168
|
deletedAt?: string | null | undefined;
|
|
2134
2169
|
}, {
|
|
2135
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2136
|
-
id: string;
|
|
2137
|
-
updatedAt: string | Date;
|
|
2138
|
-
createdAt: string | Date;
|
|
2139
2170
|
email: string;
|
|
2171
|
+
createdAt: string | Date;
|
|
2172
|
+
updatedAt: string | Date;
|
|
2173
|
+
id: string;
|
|
2174
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2140
2175
|
lastName: string;
|
|
2141
2176
|
firstName: string;
|
|
2142
2177
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2143
2178
|
officeId?: string | null | undefined;
|
|
2144
2179
|
office?: {
|
|
2145
|
-
id: string;
|
|
2146
2180
|
name: string;
|
|
2181
|
+
id: string;
|
|
2147
2182
|
managers?: {
|
|
2148
2183
|
id: string;
|
|
2149
2184
|
lastName: string;
|
|
@@ -2161,6 +2196,7 @@ export declare const leadAssignmentsContract: {
|
|
|
2161
2196
|
lastName: string;
|
|
2162
2197
|
firstName: string;
|
|
2163
2198
|
}[] | undefined;
|
|
2199
|
+
dialpadUserId?: string | null | undefined;
|
|
2164
2200
|
deletedAt?: string | Date | null | undefined;
|
|
2165
2201
|
}>>;
|
|
2166
2202
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2173,44 +2209,34 @@ export declare const leadAssignmentsContract: {
|
|
|
2173
2209
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2174
2210
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2175
2211
|
}, "strip", z.ZodTypeAny, {
|
|
2176
|
-
id: string;
|
|
2177
2212
|
name: string;
|
|
2178
|
-
updatedAt: string;
|
|
2179
2213
|
createdAt: string;
|
|
2180
|
-
|
|
2214
|
+
updatedAt: string;
|
|
2181
2215
|
id: string;
|
|
2216
|
+
}, {
|
|
2182
2217
|
name: string;
|
|
2183
|
-
updatedAt: string | Date;
|
|
2184
2218
|
createdAt: string | Date;
|
|
2219
|
+
updatedAt: string | Date;
|
|
2220
|
+
id: string;
|
|
2185
2221
|
}>>>;
|
|
2186
2222
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2187
2223
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2188
2224
|
}, "strip", z.ZodTypeAny, {
|
|
2189
|
-
status: LeadAssignmentStatus;
|
|
2190
|
-
id: string;
|
|
2191
|
-
updatedAt: string;
|
|
2192
2225
|
createdAt: string;
|
|
2193
|
-
|
|
2226
|
+
updatedAt: string;
|
|
2227
|
+
id: string;
|
|
2228
|
+
status: LeadAssignmentStatus;
|
|
2194
2229
|
agentId: string | null;
|
|
2195
2230
|
leadId: string;
|
|
2196
2231
|
assignedAt: string;
|
|
2197
2232
|
assignedBy: string | null;
|
|
2198
|
-
|
|
2199
|
-
id: string;
|
|
2200
|
-
name: string;
|
|
2201
|
-
updatedAt: string;
|
|
2202
|
-
createdAt: string;
|
|
2203
|
-
} | null | undefined;
|
|
2204
|
-
lead?: {
|
|
2205
|
-
name: string;
|
|
2206
|
-
phoneNumber: string;
|
|
2207
|
-
} | undefined;
|
|
2233
|
+
companyId: string | null;
|
|
2208
2234
|
agent?: {
|
|
2209
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2210
|
-
id: string;
|
|
2211
|
-
updatedAt: string;
|
|
2212
|
-
createdAt: string;
|
|
2213
2235
|
email: string;
|
|
2236
|
+
createdAt: string;
|
|
2237
|
+
updatedAt: string;
|
|
2238
|
+
id: string;
|
|
2239
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2214
2240
|
lastName: string;
|
|
2215
2241
|
firstName: string;
|
|
2216
2242
|
phoneNumbers: {
|
|
@@ -2222,8 +2248,8 @@ export declare const leadAssignmentsContract: {
|
|
|
2222
2248
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2223
2249
|
officeId?: string | null | undefined;
|
|
2224
2250
|
office?: {
|
|
2225
|
-
id: string;
|
|
2226
2251
|
name: string;
|
|
2252
|
+
id: string;
|
|
2227
2253
|
managers?: {
|
|
2228
2254
|
id: string;
|
|
2229
2255
|
lastName: string;
|
|
@@ -2235,41 +2261,42 @@ export declare const leadAssignmentsContract: {
|
|
|
2235
2261
|
lastName: string;
|
|
2236
2262
|
firstName: string;
|
|
2237
2263
|
}[] | undefined;
|
|
2264
|
+
dialpadUserId?: string | null | undefined;
|
|
2238
2265
|
deletedAt?: string | null | undefined;
|
|
2239
2266
|
} | undefined;
|
|
2267
|
+
lead?: {
|
|
2268
|
+
name: string;
|
|
2269
|
+
phoneNumber: string;
|
|
2270
|
+
} | undefined;
|
|
2271
|
+
company?: {
|
|
2272
|
+
name: string;
|
|
2273
|
+
createdAt: string;
|
|
2274
|
+
updatedAt: string;
|
|
2275
|
+
id: string;
|
|
2276
|
+
} | null | undefined;
|
|
2240
2277
|
}, {
|
|
2241
|
-
status: LeadAssignmentStatus;
|
|
2242
|
-
id: string;
|
|
2243
|
-
updatedAt: string | Date;
|
|
2244
2278
|
createdAt: string | Date;
|
|
2245
|
-
|
|
2279
|
+
updatedAt: string | Date;
|
|
2280
|
+
id: string;
|
|
2281
|
+
status: LeadAssignmentStatus;
|
|
2246
2282
|
agentId: string | null;
|
|
2247
2283
|
leadId: string;
|
|
2248
2284
|
assignedAt: string | Date;
|
|
2249
2285
|
assignedBy: string | null;
|
|
2250
|
-
|
|
2251
|
-
id: string;
|
|
2252
|
-
name: string;
|
|
2253
|
-
updatedAt: string | Date;
|
|
2254
|
-
createdAt: string | Date;
|
|
2255
|
-
} | null | undefined;
|
|
2256
|
-
lead?: {
|
|
2257
|
-
name: string;
|
|
2258
|
-
phoneNumber: string;
|
|
2259
|
-
} | undefined;
|
|
2286
|
+
companyId: string | null;
|
|
2260
2287
|
agent?: {
|
|
2261
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2262
|
-
id: string;
|
|
2263
|
-
updatedAt: string | Date;
|
|
2264
|
-
createdAt: string | Date;
|
|
2265
2288
|
email: string;
|
|
2289
|
+
createdAt: string | Date;
|
|
2290
|
+
updatedAt: string | Date;
|
|
2291
|
+
id: string;
|
|
2292
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2266
2293
|
lastName: string;
|
|
2267
2294
|
firstName: string;
|
|
2268
2295
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2269
2296
|
officeId?: string | null | undefined;
|
|
2270
2297
|
office?: {
|
|
2271
|
-
id: string;
|
|
2272
2298
|
name: string;
|
|
2299
|
+
id: string;
|
|
2273
2300
|
managers?: {
|
|
2274
2301
|
id: string;
|
|
2275
2302
|
lastName: string;
|
|
@@ -2287,8 +2314,19 @@ export declare const leadAssignmentsContract: {
|
|
|
2287
2314
|
lastName: string;
|
|
2288
2315
|
firstName: string;
|
|
2289
2316
|
}[] | undefined;
|
|
2317
|
+
dialpadUserId?: string | null | undefined;
|
|
2290
2318
|
deletedAt?: string | Date | null | undefined;
|
|
2291
2319
|
} | undefined;
|
|
2320
|
+
lead?: {
|
|
2321
|
+
name: string;
|
|
2322
|
+
phoneNumber: string;
|
|
2323
|
+
} | undefined;
|
|
2324
|
+
company?: {
|
|
2325
|
+
name: string;
|
|
2326
|
+
createdAt: string | Date;
|
|
2327
|
+
updatedAt: string | Date;
|
|
2328
|
+
id: string;
|
|
2329
|
+
} | null | undefined;
|
|
2292
2330
|
}>;
|
|
2293
2331
|
next: z.ZodNullable<z.ZodObject<{
|
|
2294
2332
|
id: z.ZodString;
|
|
@@ -2344,16 +2382,16 @@ export declare const leadAssignmentsContract: {
|
|
|
2344
2382
|
firstName: string;
|
|
2345
2383
|
}>, "many">>;
|
|
2346
2384
|
}, "strip", z.ZodTypeAny, {
|
|
2347
|
-
id: string;
|
|
2348
2385
|
name: string;
|
|
2386
|
+
id: string;
|
|
2349
2387
|
managers?: {
|
|
2350
2388
|
id: string;
|
|
2351
2389
|
lastName: string;
|
|
2352
2390
|
firstName: string;
|
|
2353
2391
|
}[] | undefined;
|
|
2354
2392
|
}, {
|
|
2355
|
-
id: string;
|
|
2356
2393
|
name: string;
|
|
2394
|
+
id: string;
|
|
2357
2395
|
managers?: {
|
|
2358
2396
|
id: string;
|
|
2359
2397
|
lastName: string;
|
|
@@ -2374,15 +2412,16 @@ export declare const leadAssignmentsContract: {
|
|
|
2374
2412
|
firstName: string;
|
|
2375
2413
|
}>, "many">>;
|
|
2376
2414
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2415
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
2377
2416
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2378
2417
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2379
2418
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2380
2419
|
}, "strip", z.ZodTypeAny, {
|
|
2381
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2382
|
-
id: string;
|
|
2383
|
-
updatedAt: string;
|
|
2384
|
-
createdAt: string;
|
|
2385
2420
|
email: string;
|
|
2421
|
+
createdAt: string;
|
|
2422
|
+
updatedAt: string;
|
|
2423
|
+
id: string;
|
|
2424
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2386
2425
|
lastName: string;
|
|
2387
2426
|
firstName: string;
|
|
2388
2427
|
phoneNumbers: {
|
|
@@ -2394,8 +2433,8 @@ export declare const leadAssignmentsContract: {
|
|
|
2394
2433
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2395
2434
|
officeId?: string | null | undefined;
|
|
2396
2435
|
office?: {
|
|
2397
|
-
id: string;
|
|
2398
2436
|
name: string;
|
|
2437
|
+
id: string;
|
|
2399
2438
|
managers?: {
|
|
2400
2439
|
id: string;
|
|
2401
2440
|
lastName: string;
|
|
@@ -2407,20 +2446,21 @@ export declare const leadAssignmentsContract: {
|
|
|
2407
2446
|
lastName: string;
|
|
2408
2447
|
firstName: string;
|
|
2409
2448
|
}[] | undefined;
|
|
2449
|
+
dialpadUserId?: string | null | undefined;
|
|
2410
2450
|
deletedAt?: string | null | undefined;
|
|
2411
2451
|
}, {
|
|
2412
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2413
|
-
id: string;
|
|
2414
|
-
updatedAt: string | Date;
|
|
2415
|
-
createdAt: string | Date;
|
|
2416
2452
|
email: string;
|
|
2453
|
+
createdAt: string | Date;
|
|
2454
|
+
updatedAt: string | Date;
|
|
2455
|
+
id: string;
|
|
2456
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2417
2457
|
lastName: string;
|
|
2418
2458
|
firstName: string;
|
|
2419
2459
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2420
2460
|
officeId?: string | null | undefined;
|
|
2421
2461
|
office?: {
|
|
2422
|
-
id: string;
|
|
2423
2462
|
name: string;
|
|
2463
|
+
id: string;
|
|
2424
2464
|
managers?: {
|
|
2425
2465
|
id: string;
|
|
2426
2466
|
lastName: string;
|
|
@@ -2438,6 +2478,7 @@ export declare const leadAssignmentsContract: {
|
|
|
2438
2478
|
lastName: string;
|
|
2439
2479
|
firstName: string;
|
|
2440
2480
|
}[] | undefined;
|
|
2481
|
+
dialpadUserId?: string | null | undefined;
|
|
2441
2482
|
deletedAt?: string | Date | null | undefined;
|
|
2442
2483
|
}>>;
|
|
2443
2484
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2450,44 +2491,34 @@ export declare const leadAssignmentsContract: {
|
|
|
2450
2491
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2451
2492
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2452
2493
|
}, "strip", z.ZodTypeAny, {
|
|
2453
|
-
id: string;
|
|
2454
2494
|
name: string;
|
|
2455
|
-
updatedAt: string;
|
|
2456
2495
|
createdAt: string;
|
|
2457
|
-
|
|
2496
|
+
updatedAt: string;
|
|
2458
2497
|
id: string;
|
|
2498
|
+
}, {
|
|
2459
2499
|
name: string;
|
|
2460
|
-
updatedAt: string | Date;
|
|
2461
2500
|
createdAt: string | Date;
|
|
2501
|
+
updatedAt: string | Date;
|
|
2502
|
+
id: string;
|
|
2462
2503
|
}>>>;
|
|
2463
2504
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2464
2505
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2465
2506
|
}, "strip", z.ZodTypeAny, {
|
|
2466
|
-
status: LeadAssignmentStatus;
|
|
2467
|
-
id: string;
|
|
2468
|
-
updatedAt: string;
|
|
2469
2507
|
createdAt: string;
|
|
2470
|
-
|
|
2508
|
+
updatedAt: string;
|
|
2509
|
+
id: string;
|
|
2510
|
+
status: LeadAssignmentStatus;
|
|
2471
2511
|
agentId: string | null;
|
|
2472
2512
|
leadId: string;
|
|
2473
2513
|
assignedAt: string;
|
|
2474
2514
|
assignedBy: string | null;
|
|
2475
|
-
|
|
2476
|
-
id: string;
|
|
2477
|
-
name: string;
|
|
2478
|
-
updatedAt: string;
|
|
2479
|
-
createdAt: string;
|
|
2480
|
-
} | null | undefined;
|
|
2481
|
-
lead?: {
|
|
2482
|
-
name: string;
|
|
2483
|
-
phoneNumber: string;
|
|
2484
|
-
} | undefined;
|
|
2515
|
+
companyId: string | null;
|
|
2485
2516
|
agent?: {
|
|
2486
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2487
|
-
id: string;
|
|
2488
|
-
updatedAt: string;
|
|
2489
|
-
createdAt: string;
|
|
2490
2517
|
email: string;
|
|
2518
|
+
createdAt: string;
|
|
2519
|
+
updatedAt: string;
|
|
2520
|
+
id: string;
|
|
2521
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2491
2522
|
lastName: string;
|
|
2492
2523
|
firstName: string;
|
|
2493
2524
|
phoneNumbers: {
|
|
@@ -2499,8 +2530,8 @@ export declare const leadAssignmentsContract: {
|
|
|
2499
2530
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2500
2531
|
officeId?: string | null | undefined;
|
|
2501
2532
|
office?: {
|
|
2502
|
-
id: string;
|
|
2503
2533
|
name: string;
|
|
2534
|
+
id: string;
|
|
2504
2535
|
managers?: {
|
|
2505
2536
|
id: string;
|
|
2506
2537
|
lastName: string;
|
|
@@ -2512,41 +2543,42 @@ export declare const leadAssignmentsContract: {
|
|
|
2512
2543
|
lastName: string;
|
|
2513
2544
|
firstName: string;
|
|
2514
2545
|
}[] | undefined;
|
|
2546
|
+
dialpadUserId?: string | null | undefined;
|
|
2515
2547
|
deletedAt?: string | null | undefined;
|
|
2516
2548
|
} | undefined;
|
|
2549
|
+
lead?: {
|
|
2550
|
+
name: string;
|
|
2551
|
+
phoneNumber: string;
|
|
2552
|
+
} | undefined;
|
|
2553
|
+
company?: {
|
|
2554
|
+
name: string;
|
|
2555
|
+
createdAt: string;
|
|
2556
|
+
updatedAt: string;
|
|
2557
|
+
id: string;
|
|
2558
|
+
} | null | undefined;
|
|
2517
2559
|
}, {
|
|
2518
|
-
status: LeadAssignmentStatus;
|
|
2519
|
-
id: string;
|
|
2520
|
-
updatedAt: string | Date;
|
|
2521
2560
|
createdAt: string | Date;
|
|
2522
|
-
|
|
2561
|
+
updatedAt: string | Date;
|
|
2562
|
+
id: string;
|
|
2563
|
+
status: LeadAssignmentStatus;
|
|
2523
2564
|
agentId: string | null;
|
|
2524
2565
|
leadId: string;
|
|
2525
2566
|
assignedAt: string | Date;
|
|
2526
2567
|
assignedBy: string | null;
|
|
2527
|
-
|
|
2528
|
-
id: string;
|
|
2529
|
-
name: string;
|
|
2530
|
-
updatedAt: string | Date;
|
|
2531
|
-
createdAt: string | Date;
|
|
2532
|
-
} | null | undefined;
|
|
2533
|
-
lead?: {
|
|
2534
|
-
name: string;
|
|
2535
|
-
phoneNumber: string;
|
|
2536
|
-
} | undefined;
|
|
2568
|
+
companyId: string | null;
|
|
2537
2569
|
agent?: {
|
|
2538
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2539
|
-
id: string;
|
|
2540
|
-
updatedAt: string | Date;
|
|
2541
|
-
createdAt: string | Date;
|
|
2542
2570
|
email: string;
|
|
2571
|
+
createdAt: string | Date;
|
|
2572
|
+
updatedAt: string | Date;
|
|
2573
|
+
id: string;
|
|
2574
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2543
2575
|
lastName: string;
|
|
2544
2576
|
firstName: string;
|
|
2545
2577
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2546
2578
|
officeId?: string | null | undefined;
|
|
2547
2579
|
office?: {
|
|
2548
|
-
id: string;
|
|
2549
2580
|
name: string;
|
|
2581
|
+
id: string;
|
|
2550
2582
|
managers?: {
|
|
2551
2583
|
id: string;
|
|
2552
2584
|
lastName: string;
|
|
@@ -2564,36 +2596,37 @@ export declare const leadAssignmentsContract: {
|
|
|
2564
2596
|
lastName: string;
|
|
2565
2597
|
firstName: string;
|
|
2566
2598
|
}[] | undefined;
|
|
2599
|
+
dialpadUserId?: string | null | undefined;
|
|
2567
2600
|
deletedAt?: string | Date | null | undefined;
|
|
2568
2601
|
} | undefined;
|
|
2602
|
+
lead?: {
|
|
2603
|
+
name: string;
|
|
2604
|
+
phoneNumber: string;
|
|
2605
|
+
} | undefined;
|
|
2606
|
+
company?: {
|
|
2607
|
+
name: string;
|
|
2608
|
+
createdAt: string | Date;
|
|
2609
|
+
updatedAt: string | Date;
|
|
2610
|
+
id: string;
|
|
2611
|
+
} | null | undefined;
|
|
2569
2612
|
}>>;
|
|
2570
2613
|
}, "strip", z.ZodTypeAny, {
|
|
2571
2614
|
completed: {
|
|
2572
|
-
status: LeadAssignmentStatus;
|
|
2573
|
-
id: string;
|
|
2574
|
-
updatedAt: string;
|
|
2575
2615
|
createdAt: string;
|
|
2576
|
-
|
|
2616
|
+
updatedAt: string;
|
|
2617
|
+
id: string;
|
|
2618
|
+
status: LeadAssignmentStatus;
|
|
2577
2619
|
agentId: string | null;
|
|
2578
2620
|
leadId: string;
|
|
2579
2621
|
assignedAt: string;
|
|
2580
2622
|
assignedBy: string | null;
|
|
2581
|
-
|
|
2582
|
-
id: string;
|
|
2583
|
-
name: string;
|
|
2584
|
-
updatedAt: string;
|
|
2585
|
-
createdAt: string;
|
|
2586
|
-
} | null | undefined;
|
|
2587
|
-
lead?: {
|
|
2588
|
-
name: string;
|
|
2589
|
-
phoneNumber: string;
|
|
2590
|
-
} | undefined;
|
|
2623
|
+
companyId: string | null;
|
|
2591
2624
|
agent?: {
|
|
2592
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2593
|
-
id: string;
|
|
2594
|
-
updatedAt: string;
|
|
2595
|
-
createdAt: string;
|
|
2596
2625
|
email: string;
|
|
2626
|
+
createdAt: string;
|
|
2627
|
+
updatedAt: string;
|
|
2628
|
+
id: string;
|
|
2629
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2597
2630
|
lastName: string;
|
|
2598
2631
|
firstName: string;
|
|
2599
2632
|
phoneNumbers: {
|
|
@@ -2605,8 +2638,8 @@ export declare const leadAssignmentsContract: {
|
|
|
2605
2638
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2606
2639
|
officeId?: string | null | undefined;
|
|
2607
2640
|
office?: {
|
|
2608
|
-
id: string;
|
|
2609
2641
|
name: string;
|
|
2642
|
+
id: string;
|
|
2610
2643
|
managers?: {
|
|
2611
2644
|
id: string;
|
|
2612
2645
|
lastName: string;
|
|
@@ -2618,35 +2651,36 @@ export declare const leadAssignmentsContract: {
|
|
|
2618
2651
|
lastName: string;
|
|
2619
2652
|
firstName: string;
|
|
2620
2653
|
}[] | undefined;
|
|
2654
|
+
dialpadUserId?: string | null | undefined;
|
|
2621
2655
|
deletedAt?: string | null | undefined;
|
|
2622
2656
|
} | undefined;
|
|
2657
|
+
lead?: {
|
|
2658
|
+
name: string;
|
|
2659
|
+
phoneNumber: string;
|
|
2660
|
+
} | undefined;
|
|
2661
|
+
company?: {
|
|
2662
|
+
name: string;
|
|
2663
|
+
createdAt: string;
|
|
2664
|
+
updatedAt: string;
|
|
2665
|
+
id: string;
|
|
2666
|
+
} | null | undefined;
|
|
2623
2667
|
};
|
|
2624
2668
|
next: {
|
|
2625
|
-
status: LeadAssignmentStatus;
|
|
2626
|
-
id: string;
|
|
2627
|
-
updatedAt: string;
|
|
2628
2669
|
createdAt: string;
|
|
2629
|
-
|
|
2670
|
+
updatedAt: string;
|
|
2671
|
+
id: string;
|
|
2672
|
+
status: LeadAssignmentStatus;
|
|
2630
2673
|
agentId: string | null;
|
|
2631
2674
|
leadId: string;
|
|
2632
2675
|
assignedAt: string;
|
|
2633
2676
|
assignedBy: string | null;
|
|
2634
|
-
|
|
2635
|
-
id: string;
|
|
2636
|
-
name: string;
|
|
2637
|
-
updatedAt: string;
|
|
2638
|
-
createdAt: string;
|
|
2639
|
-
} | null | undefined;
|
|
2640
|
-
lead?: {
|
|
2641
|
-
name: string;
|
|
2642
|
-
phoneNumber: string;
|
|
2643
|
-
} | undefined;
|
|
2677
|
+
companyId: string | null;
|
|
2644
2678
|
agent?: {
|
|
2645
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2646
|
-
id: string;
|
|
2647
|
-
updatedAt: string;
|
|
2648
|
-
createdAt: string;
|
|
2649
2679
|
email: string;
|
|
2680
|
+
createdAt: string;
|
|
2681
|
+
updatedAt: string;
|
|
2682
|
+
id: string;
|
|
2683
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2650
2684
|
lastName: string;
|
|
2651
2685
|
firstName: string;
|
|
2652
2686
|
phoneNumbers: {
|
|
@@ -2658,8 +2692,8 @@ export declare const leadAssignmentsContract: {
|
|
|
2658
2692
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2659
2693
|
officeId?: string | null | undefined;
|
|
2660
2694
|
office?: {
|
|
2661
|
-
id: string;
|
|
2662
2695
|
name: string;
|
|
2696
|
+
id: string;
|
|
2663
2697
|
managers?: {
|
|
2664
2698
|
id: string;
|
|
2665
2699
|
lastName: string;
|
|
@@ -2671,43 +2705,44 @@ export declare const leadAssignmentsContract: {
|
|
|
2671
2705
|
lastName: string;
|
|
2672
2706
|
firstName: string;
|
|
2673
2707
|
}[] | undefined;
|
|
2708
|
+
dialpadUserId?: string | null | undefined;
|
|
2674
2709
|
deletedAt?: string | null | undefined;
|
|
2675
2710
|
} | undefined;
|
|
2711
|
+
lead?: {
|
|
2712
|
+
name: string;
|
|
2713
|
+
phoneNumber: string;
|
|
2714
|
+
} | undefined;
|
|
2715
|
+
company?: {
|
|
2716
|
+
name: string;
|
|
2717
|
+
createdAt: string;
|
|
2718
|
+
updatedAt: string;
|
|
2719
|
+
id: string;
|
|
2720
|
+
} | null | undefined;
|
|
2676
2721
|
} | null;
|
|
2677
2722
|
}, {
|
|
2678
2723
|
completed: {
|
|
2679
|
-
status: LeadAssignmentStatus;
|
|
2680
|
-
id: string;
|
|
2681
|
-
updatedAt: string | Date;
|
|
2682
2724
|
createdAt: string | Date;
|
|
2683
|
-
|
|
2725
|
+
updatedAt: string | Date;
|
|
2726
|
+
id: string;
|
|
2727
|
+
status: LeadAssignmentStatus;
|
|
2684
2728
|
agentId: string | null;
|
|
2685
2729
|
leadId: string;
|
|
2686
2730
|
assignedAt: string | Date;
|
|
2687
2731
|
assignedBy: string | null;
|
|
2688
|
-
|
|
2689
|
-
id: string;
|
|
2690
|
-
name: string;
|
|
2691
|
-
updatedAt: string | Date;
|
|
2692
|
-
createdAt: string | Date;
|
|
2693
|
-
} | null | undefined;
|
|
2694
|
-
lead?: {
|
|
2695
|
-
name: string;
|
|
2696
|
-
phoneNumber: string;
|
|
2697
|
-
} | undefined;
|
|
2732
|
+
companyId: string | null;
|
|
2698
2733
|
agent?: {
|
|
2699
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2700
|
-
id: string;
|
|
2701
|
-
updatedAt: string | Date;
|
|
2702
|
-
createdAt: string | Date;
|
|
2703
2734
|
email: string;
|
|
2735
|
+
createdAt: string | Date;
|
|
2736
|
+
updatedAt: string | Date;
|
|
2737
|
+
id: string;
|
|
2738
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2704
2739
|
lastName: string;
|
|
2705
2740
|
firstName: string;
|
|
2706
2741
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2707
2742
|
officeId?: string | null | undefined;
|
|
2708
2743
|
office?: {
|
|
2709
|
-
id: string;
|
|
2710
2744
|
name: string;
|
|
2745
|
+
id: string;
|
|
2711
2746
|
managers?: {
|
|
2712
2747
|
id: string;
|
|
2713
2748
|
lastName: string;
|
|
@@ -2725,42 +2760,43 @@ export declare const leadAssignmentsContract: {
|
|
|
2725
2760
|
lastName: string;
|
|
2726
2761
|
firstName: string;
|
|
2727
2762
|
}[] | undefined;
|
|
2763
|
+
dialpadUserId?: string | null | undefined;
|
|
2728
2764
|
deletedAt?: string | Date | null | undefined;
|
|
2729
2765
|
} | undefined;
|
|
2766
|
+
lead?: {
|
|
2767
|
+
name: string;
|
|
2768
|
+
phoneNumber: string;
|
|
2769
|
+
} | undefined;
|
|
2770
|
+
company?: {
|
|
2771
|
+
name: string;
|
|
2772
|
+
createdAt: string | Date;
|
|
2773
|
+
updatedAt: string | Date;
|
|
2774
|
+
id: string;
|
|
2775
|
+
} | null | undefined;
|
|
2730
2776
|
};
|
|
2731
2777
|
next: {
|
|
2732
|
-
status: LeadAssignmentStatus;
|
|
2733
|
-
id: string;
|
|
2734
|
-
updatedAt: string | Date;
|
|
2735
2778
|
createdAt: string | Date;
|
|
2736
|
-
|
|
2779
|
+
updatedAt: string | Date;
|
|
2780
|
+
id: string;
|
|
2781
|
+
status: LeadAssignmentStatus;
|
|
2737
2782
|
agentId: string | null;
|
|
2738
2783
|
leadId: string;
|
|
2739
2784
|
assignedAt: string | Date;
|
|
2740
2785
|
assignedBy: string | null;
|
|
2741
|
-
|
|
2742
|
-
id: string;
|
|
2743
|
-
name: string;
|
|
2744
|
-
updatedAt: string | Date;
|
|
2745
|
-
createdAt: string | Date;
|
|
2746
|
-
} | null | undefined;
|
|
2747
|
-
lead?: {
|
|
2748
|
-
name: string;
|
|
2749
|
-
phoneNumber: string;
|
|
2750
|
-
} | undefined;
|
|
2786
|
+
companyId: string | null;
|
|
2751
2787
|
agent?: {
|
|
2752
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2753
|
-
id: string;
|
|
2754
|
-
updatedAt: string | Date;
|
|
2755
|
-
createdAt: string | Date;
|
|
2756
2788
|
email: string;
|
|
2789
|
+
createdAt: string | Date;
|
|
2790
|
+
updatedAt: string | Date;
|
|
2791
|
+
id: string;
|
|
2792
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2757
2793
|
lastName: string;
|
|
2758
2794
|
firstName: string;
|
|
2759
2795
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2760
2796
|
officeId?: string | null | undefined;
|
|
2761
2797
|
office?: {
|
|
2762
|
-
id: string;
|
|
2763
2798
|
name: string;
|
|
2799
|
+
id: string;
|
|
2764
2800
|
managers?: {
|
|
2765
2801
|
id: string;
|
|
2766
2802
|
lastName: string;
|
|
@@ -2778,8 +2814,19 @@ export declare const leadAssignmentsContract: {
|
|
|
2778
2814
|
lastName: string;
|
|
2779
2815
|
firstName: string;
|
|
2780
2816
|
}[] | undefined;
|
|
2817
|
+
dialpadUserId?: string | null | undefined;
|
|
2781
2818
|
deletedAt?: string | Date | null | undefined;
|
|
2782
2819
|
} | undefined;
|
|
2820
|
+
lead?: {
|
|
2821
|
+
name: string;
|
|
2822
|
+
phoneNumber: string;
|
|
2823
|
+
} | undefined;
|
|
2824
|
+
company?: {
|
|
2825
|
+
name: string;
|
|
2826
|
+
createdAt: string | Date;
|
|
2827
|
+
updatedAt: string | Date;
|
|
2828
|
+
id: string;
|
|
2829
|
+
} | null | undefined;
|
|
2783
2830
|
} | null;
|
|
2784
2831
|
}>>;
|
|
2785
2832
|
404: z.ZodObject<{
|
|
@@ -2842,7 +2889,7 @@ export declare const leadAssignmentsContract: {
|
|
|
2842
2889
|
details?: unknown;
|
|
2843
2890
|
correlationId?: string | undefined;
|
|
2844
2891
|
}>;
|
|
2845
|
-
|
|
2892
|
+
403: z.ZodObject<{
|
|
2846
2893
|
statusCode: z.ZodNumber;
|
|
2847
2894
|
message: z.ZodString;
|
|
2848
2895
|
code: z.ZodString;
|
|
@@ -2867,7 +2914,7 @@ export declare const leadAssignmentsContract: {
|
|
|
2867
2914
|
details?: unknown;
|
|
2868
2915
|
correlationId?: string | undefined;
|
|
2869
2916
|
}>;
|
|
2870
|
-
|
|
2917
|
+
401: z.ZodObject<{
|
|
2871
2918
|
statusCode: z.ZodNumber;
|
|
2872
2919
|
message: z.ZodString;
|
|
2873
2920
|
code: z.ZodString;
|
|
@@ -2971,16 +3018,16 @@ export declare const leadAssignmentsContract: {
|
|
|
2971
3018
|
firstName: string;
|
|
2972
3019
|
}>, "many">>;
|
|
2973
3020
|
}, "strip", z.ZodTypeAny, {
|
|
2974
|
-
id: string;
|
|
2975
3021
|
name: string;
|
|
3022
|
+
id: string;
|
|
2976
3023
|
managers?: {
|
|
2977
3024
|
id: string;
|
|
2978
3025
|
lastName: string;
|
|
2979
3026
|
firstName: string;
|
|
2980
3027
|
}[] | undefined;
|
|
2981
3028
|
}, {
|
|
2982
|
-
id: string;
|
|
2983
3029
|
name: string;
|
|
3030
|
+
id: string;
|
|
2984
3031
|
managers?: {
|
|
2985
3032
|
id: string;
|
|
2986
3033
|
lastName: string;
|
|
@@ -3001,15 +3048,16 @@ export declare const leadAssignmentsContract: {
|
|
|
3001
3048
|
firstName: string;
|
|
3002
3049
|
}>, "many">>;
|
|
3003
3050
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3051
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
3004
3052
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3005
3053
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3006
3054
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3007
3055
|
}, "strip", z.ZodTypeAny, {
|
|
3008
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3009
|
-
id: string;
|
|
3010
|
-
updatedAt: string;
|
|
3011
|
-
createdAt: string;
|
|
3012
3056
|
email: string;
|
|
3057
|
+
createdAt: string;
|
|
3058
|
+
updatedAt: string;
|
|
3059
|
+
id: string;
|
|
3060
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3013
3061
|
lastName: string;
|
|
3014
3062
|
firstName: string;
|
|
3015
3063
|
phoneNumbers: {
|
|
@@ -3021,8 +3069,8 @@ export declare const leadAssignmentsContract: {
|
|
|
3021
3069
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3022
3070
|
officeId?: string | null | undefined;
|
|
3023
3071
|
office?: {
|
|
3024
|
-
id: string;
|
|
3025
3072
|
name: string;
|
|
3073
|
+
id: string;
|
|
3026
3074
|
managers?: {
|
|
3027
3075
|
id: string;
|
|
3028
3076
|
lastName: string;
|
|
@@ -3034,20 +3082,21 @@ export declare const leadAssignmentsContract: {
|
|
|
3034
3082
|
lastName: string;
|
|
3035
3083
|
firstName: string;
|
|
3036
3084
|
}[] | undefined;
|
|
3085
|
+
dialpadUserId?: string | null | undefined;
|
|
3037
3086
|
deletedAt?: string | null | undefined;
|
|
3038
3087
|
}, {
|
|
3039
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3040
|
-
id: string;
|
|
3041
|
-
updatedAt: string | Date;
|
|
3042
|
-
createdAt: string | Date;
|
|
3043
3088
|
email: string;
|
|
3089
|
+
createdAt: string | Date;
|
|
3090
|
+
updatedAt: string | Date;
|
|
3091
|
+
id: string;
|
|
3092
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3044
3093
|
lastName: string;
|
|
3045
3094
|
firstName: string;
|
|
3046
3095
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3047
3096
|
officeId?: string | null | undefined;
|
|
3048
3097
|
office?: {
|
|
3049
|
-
id: string;
|
|
3050
3098
|
name: string;
|
|
3099
|
+
id: string;
|
|
3051
3100
|
managers?: {
|
|
3052
3101
|
id: string;
|
|
3053
3102
|
lastName: string;
|
|
@@ -3065,6 +3114,7 @@ export declare const leadAssignmentsContract: {
|
|
|
3065
3114
|
lastName: string;
|
|
3066
3115
|
firstName: string;
|
|
3067
3116
|
}[] | undefined;
|
|
3117
|
+
dialpadUserId?: string | null | undefined;
|
|
3068
3118
|
deletedAt?: string | Date | null | undefined;
|
|
3069
3119
|
}>>;
|
|
3070
3120
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -3077,44 +3127,34 @@ export declare const leadAssignmentsContract: {
|
|
|
3077
3127
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3078
3128
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3079
3129
|
}, "strip", z.ZodTypeAny, {
|
|
3080
|
-
id: string;
|
|
3081
3130
|
name: string;
|
|
3082
|
-
updatedAt: string;
|
|
3083
3131
|
createdAt: string;
|
|
3084
|
-
|
|
3132
|
+
updatedAt: string;
|
|
3085
3133
|
id: string;
|
|
3134
|
+
}, {
|
|
3086
3135
|
name: string;
|
|
3087
|
-
updatedAt: string | Date;
|
|
3088
3136
|
createdAt: string | Date;
|
|
3137
|
+
updatedAt: string | Date;
|
|
3138
|
+
id: string;
|
|
3089
3139
|
}>>>;
|
|
3090
3140
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3091
3141
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3092
3142
|
}, "strip", z.ZodTypeAny, {
|
|
3093
|
-
status: LeadAssignmentStatus;
|
|
3094
|
-
id: string;
|
|
3095
|
-
updatedAt: string;
|
|
3096
3143
|
createdAt: string;
|
|
3097
|
-
|
|
3144
|
+
updatedAt: string;
|
|
3145
|
+
id: string;
|
|
3146
|
+
status: LeadAssignmentStatus;
|
|
3098
3147
|
agentId: string | null;
|
|
3099
3148
|
leadId: string;
|
|
3100
3149
|
assignedAt: string;
|
|
3101
3150
|
assignedBy: string | null;
|
|
3102
|
-
|
|
3103
|
-
id: string;
|
|
3104
|
-
name: string;
|
|
3105
|
-
updatedAt: string;
|
|
3106
|
-
createdAt: string;
|
|
3107
|
-
} | null | undefined;
|
|
3108
|
-
lead?: {
|
|
3109
|
-
name: string;
|
|
3110
|
-
phoneNumber: string;
|
|
3111
|
-
} | undefined;
|
|
3151
|
+
companyId: string | null;
|
|
3112
3152
|
agent?: {
|
|
3113
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3114
|
-
id: string;
|
|
3115
|
-
updatedAt: string;
|
|
3116
|
-
createdAt: string;
|
|
3117
3153
|
email: string;
|
|
3154
|
+
createdAt: string;
|
|
3155
|
+
updatedAt: string;
|
|
3156
|
+
id: string;
|
|
3157
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3118
3158
|
lastName: string;
|
|
3119
3159
|
firstName: string;
|
|
3120
3160
|
phoneNumbers: {
|
|
@@ -3126,8 +3166,8 @@ export declare const leadAssignmentsContract: {
|
|
|
3126
3166
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3127
3167
|
officeId?: string | null | undefined;
|
|
3128
3168
|
office?: {
|
|
3129
|
-
id: string;
|
|
3130
3169
|
name: string;
|
|
3170
|
+
id: string;
|
|
3131
3171
|
managers?: {
|
|
3132
3172
|
id: string;
|
|
3133
3173
|
lastName: string;
|
|
@@ -3139,41 +3179,42 @@ export declare const leadAssignmentsContract: {
|
|
|
3139
3179
|
lastName: string;
|
|
3140
3180
|
firstName: string;
|
|
3141
3181
|
}[] | undefined;
|
|
3182
|
+
dialpadUserId?: string | null | undefined;
|
|
3142
3183
|
deletedAt?: string | null | undefined;
|
|
3143
3184
|
} | undefined;
|
|
3185
|
+
lead?: {
|
|
3186
|
+
name: string;
|
|
3187
|
+
phoneNumber: string;
|
|
3188
|
+
} | undefined;
|
|
3189
|
+
company?: {
|
|
3190
|
+
name: string;
|
|
3191
|
+
createdAt: string;
|
|
3192
|
+
updatedAt: string;
|
|
3193
|
+
id: string;
|
|
3194
|
+
} | null | undefined;
|
|
3144
3195
|
}, {
|
|
3145
|
-
status: LeadAssignmentStatus;
|
|
3146
|
-
id: string;
|
|
3147
|
-
updatedAt: string | Date;
|
|
3148
3196
|
createdAt: string | Date;
|
|
3149
|
-
|
|
3197
|
+
updatedAt: string | Date;
|
|
3198
|
+
id: string;
|
|
3199
|
+
status: LeadAssignmentStatus;
|
|
3150
3200
|
agentId: string | null;
|
|
3151
3201
|
leadId: string;
|
|
3152
3202
|
assignedAt: string | Date;
|
|
3153
3203
|
assignedBy: string | null;
|
|
3154
|
-
|
|
3155
|
-
id: string;
|
|
3156
|
-
name: string;
|
|
3157
|
-
updatedAt: string | Date;
|
|
3158
|
-
createdAt: string | Date;
|
|
3159
|
-
} | null | undefined;
|
|
3160
|
-
lead?: {
|
|
3161
|
-
name: string;
|
|
3162
|
-
phoneNumber: string;
|
|
3163
|
-
} | undefined;
|
|
3204
|
+
companyId: string | null;
|
|
3164
3205
|
agent?: {
|
|
3165
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3166
|
-
id: string;
|
|
3167
|
-
updatedAt: string | Date;
|
|
3168
|
-
createdAt: string | Date;
|
|
3169
3206
|
email: string;
|
|
3207
|
+
createdAt: string | Date;
|
|
3208
|
+
updatedAt: string | Date;
|
|
3209
|
+
id: string;
|
|
3210
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3170
3211
|
lastName: string;
|
|
3171
3212
|
firstName: string;
|
|
3172
3213
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3173
3214
|
officeId?: string | null | undefined;
|
|
3174
3215
|
office?: {
|
|
3175
|
-
id: string;
|
|
3176
3216
|
name: string;
|
|
3217
|
+
id: string;
|
|
3177
3218
|
managers?: {
|
|
3178
3219
|
id: string;
|
|
3179
3220
|
lastName: string;
|
|
@@ -3191,8 +3232,19 @@ export declare const leadAssignmentsContract: {
|
|
|
3191
3232
|
lastName: string;
|
|
3192
3233
|
firstName: string;
|
|
3193
3234
|
}[] | undefined;
|
|
3235
|
+
dialpadUserId?: string | null | undefined;
|
|
3194
3236
|
deletedAt?: string | Date | null | undefined;
|
|
3195
3237
|
} | undefined;
|
|
3238
|
+
lead?: {
|
|
3239
|
+
name: string;
|
|
3240
|
+
phoneNumber: string;
|
|
3241
|
+
} | undefined;
|
|
3242
|
+
company?: {
|
|
3243
|
+
name: string;
|
|
3244
|
+
createdAt: string | Date;
|
|
3245
|
+
updatedAt: string | Date;
|
|
3246
|
+
id: string;
|
|
3247
|
+
} | null | undefined;
|
|
3196
3248
|
}>>;
|
|
3197
3249
|
};
|
|
3198
3250
|
};
|
|
@@ -3237,7 +3289,7 @@ export declare const leadAssignmentsContract: {
|
|
|
3237
3289
|
details?: unknown;
|
|
3238
3290
|
correlationId?: string | undefined;
|
|
3239
3291
|
}>;
|
|
3240
|
-
|
|
3292
|
+
403: z.ZodObject<{
|
|
3241
3293
|
statusCode: z.ZodNumber;
|
|
3242
3294
|
message: z.ZodString;
|
|
3243
3295
|
code: z.ZodString;
|
|
@@ -3262,7 +3314,7 @@ export declare const leadAssignmentsContract: {
|
|
|
3262
3314
|
details?: unknown;
|
|
3263
3315
|
correlationId?: string | undefined;
|
|
3264
3316
|
}>;
|
|
3265
|
-
|
|
3317
|
+
401: z.ZodObject<{
|
|
3266
3318
|
statusCode: z.ZodNumber;
|
|
3267
3319
|
message: z.ZodString;
|
|
3268
3320
|
code: z.ZodString;
|
|
@@ -3367,16 +3419,16 @@ export declare const leadAssignmentsContract: {
|
|
|
3367
3419
|
firstName: string;
|
|
3368
3420
|
}>, "many">>;
|
|
3369
3421
|
}, "strip", z.ZodTypeAny, {
|
|
3370
|
-
id: string;
|
|
3371
3422
|
name: string;
|
|
3423
|
+
id: string;
|
|
3372
3424
|
managers?: {
|
|
3373
3425
|
id: string;
|
|
3374
3426
|
lastName: string;
|
|
3375
3427
|
firstName: string;
|
|
3376
3428
|
}[] | undefined;
|
|
3377
3429
|
}, {
|
|
3378
|
-
id: string;
|
|
3379
3430
|
name: string;
|
|
3431
|
+
id: string;
|
|
3380
3432
|
managers?: {
|
|
3381
3433
|
id: string;
|
|
3382
3434
|
lastName: string;
|
|
@@ -3397,15 +3449,16 @@ export declare const leadAssignmentsContract: {
|
|
|
3397
3449
|
firstName: string;
|
|
3398
3450
|
}>, "many">>;
|
|
3399
3451
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3452
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
3400
3453
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3401
3454
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3402
3455
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3403
3456
|
}, "strip", z.ZodTypeAny, {
|
|
3404
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3405
|
-
id: string;
|
|
3406
|
-
updatedAt: string;
|
|
3407
|
-
createdAt: string;
|
|
3408
3457
|
email: string;
|
|
3458
|
+
createdAt: string;
|
|
3459
|
+
updatedAt: string;
|
|
3460
|
+
id: string;
|
|
3461
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3409
3462
|
lastName: string;
|
|
3410
3463
|
firstName: string;
|
|
3411
3464
|
phoneNumbers: {
|
|
@@ -3417,8 +3470,8 @@ export declare const leadAssignmentsContract: {
|
|
|
3417
3470
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3418
3471
|
officeId?: string | null | undefined;
|
|
3419
3472
|
office?: {
|
|
3420
|
-
id: string;
|
|
3421
3473
|
name: string;
|
|
3474
|
+
id: string;
|
|
3422
3475
|
managers?: {
|
|
3423
3476
|
id: string;
|
|
3424
3477
|
lastName: string;
|
|
@@ -3430,20 +3483,21 @@ export declare const leadAssignmentsContract: {
|
|
|
3430
3483
|
lastName: string;
|
|
3431
3484
|
firstName: string;
|
|
3432
3485
|
}[] | undefined;
|
|
3486
|
+
dialpadUserId?: string | null | undefined;
|
|
3433
3487
|
deletedAt?: string | null | undefined;
|
|
3434
3488
|
}, {
|
|
3435
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3436
|
-
id: string;
|
|
3437
|
-
updatedAt: string | Date;
|
|
3438
|
-
createdAt: string | Date;
|
|
3439
3489
|
email: string;
|
|
3490
|
+
createdAt: string | Date;
|
|
3491
|
+
updatedAt: string | Date;
|
|
3492
|
+
id: string;
|
|
3493
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3440
3494
|
lastName: string;
|
|
3441
3495
|
firstName: string;
|
|
3442
3496
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3443
3497
|
officeId?: string | null | undefined;
|
|
3444
3498
|
office?: {
|
|
3445
|
-
id: string;
|
|
3446
3499
|
name: string;
|
|
3500
|
+
id: string;
|
|
3447
3501
|
managers?: {
|
|
3448
3502
|
id: string;
|
|
3449
3503
|
lastName: string;
|
|
@@ -3461,6 +3515,7 @@ export declare const leadAssignmentsContract: {
|
|
|
3461
3515
|
lastName: string;
|
|
3462
3516
|
firstName: string;
|
|
3463
3517
|
}[] | undefined;
|
|
3518
|
+
dialpadUserId?: string | null | undefined;
|
|
3464
3519
|
deletedAt?: string | Date | null | undefined;
|
|
3465
3520
|
}>>;
|
|
3466
3521
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -3473,44 +3528,34 @@ export declare const leadAssignmentsContract: {
|
|
|
3473
3528
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3474
3529
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3475
3530
|
}, "strip", z.ZodTypeAny, {
|
|
3476
|
-
id: string;
|
|
3477
3531
|
name: string;
|
|
3478
|
-
updatedAt: string;
|
|
3479
3532
|
createdAt: string;
|
|
3480
|
-
|
|
3533
|
+
updatedAt: string;
|
|
3481
3534
|
id: string;
|
|
3535
|
+
}, {
|
|
3482
3536
|
name: string;
|
|
3483
|
-
updatedAt: string | Date;
|
|
3484
3537
|
createdAt: string | Date;
|
|
3538
|
+
updatedAt: string | Date;
|
|
3539
|
+
id: string;
|
|
3485
3540
|
}>>>;
|
|
3486
3541
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3487
3542
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3488
3543
|
}, "strip", z.ZodTypeAny, {
|
|
3489
|
-
status: LeadAssignmentStatus;
|
|
3490
|
-
id: string;
|
|
3491
|
-
updatedAt: string;
|
|
3492
3544
|
createdAt: string;
|
|
3493
|
-
|
|
3545
|
+
updatedAt: string;
|
|
3546
|
+
id: string;
|
|
3547
|
+
status: LeadAssignmentStatus;
|
|
3494
3548
|
agentId: string | null;
|
|
3495
3549
|
leadId: string;
|
|
3496
3550
|
assignedAt: string;
|
|
3497
3551
|
assignedBy: string | null;
|
|
3498
|
-
|
|
3499
|
-
id: string;
|
|
3500
|
-
name: string;
|
|
3501
|
-
updatedAt: string;
|
|
3502
|
-
createdAt: string;
|
|
3503
|
-
} | null | undefined;
|
|
3504
|
-
lead?: {
|
|
3505
|
-
name: string;
|
|
3506
|
-
phoneNumber: string;
|
|
3507
|
-
} | undefined;
|
|
3552
|
+
companyId: string | null;
|
|
3508
3553
|
agent?: {
|
|
3509
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3510
|
-
id: string;
|
|
3511
|
-
updatedAt: string;
|
|
3512
|
-
createdAt: string;
|
|
3513
3554
|
email: string;
|
|
3555
|
+
createdAt: string;
|
|
3556
|
+
updatedAt: string;
|
|
3557
|
+
id: string;
|
|
3558
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3514
3559
|
lastName: string;
|
|
3515
3560
|
firstName: string;
|
|
3516
3561
|
phoneNumbers: {
|
|
@@ -3522,8 +3567,8 @@ export declare const leadAssignmentsContract: {
|
|
|
3522
3567
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3523
3568
|
officeId?: string | null | undefined;
|
|
3524
3569
|
office?: {
|
|
3525
|
-
id: string;
|
|
3526
3570
|
name: string;
|
|
3571
|
+
id: string;
|
|
3527
3572
|
managers?: {
|
|
3528
3573
|
id: string;
|
|
3529
3574
|
lastName: string;
|
|
@@ -3535,41 +3580,42 @@ export declare const leadAssignmentsContract: {
|
|
|
3535
3580
|
lastName: string;
|
|
3536
3581
|
firstName: string;
|
|
3537
3582
|
}[] | undefined;
|
|
3583
|
+
dialpadUserId?: string | null | undefined;
|
|
3538
3584
|
deletedAt?: string | null | undefined;
|
|
3539
3585
|
} | undefined;
|
|
3586
|
+
lead?: {
|
|
3587
|
+
name: string;
|
|
3588
|
+
phoneNumber: string;
|
|
3589
|
+
} | undefined;
|
|
3590
|
+
company?: {
|
|
3591
|
+
name: string;
|
|
3592
|
+
createdAt: string;
|
|
3593
|
+
updatedAt: string;
|
|
3594
|
+
id: string;
|
|
3595
|
+
} | null | undefined;
|
|
3540
3596
|
}, {
|
|
3541
|
-
status: LeadAssignmentStatus;
|
|
3542
|
-
id: string;
|
|
3543
|
-
updatedAt: string | Date;
|
|
3544
3597
|
createdAt: string | Date;
|
|
3545
|
-
|
|
3598
|
+
updatedAt: string | Date;
|
|
3599
|
+
id: string;
|
|
3600
|
+
status: LeadAssignmentStatus;
|
|
3546
3601
|
agentId: string | null;
|
|
3547
3602
|
leadId: string;
|
|
3548
3603
|
assignedAt: string | Date;
|
|
3549
3604
|
assignedBy: string | null;
|
|
3550
|
-
|
|
3551
|
-
id: string;
|
|
3552
|
-
name: string;
|
|
3553
|
-
updatedAt: string | Date;
|
|
3554
|
-
createdAt: string | Date;
|
|
3555
|
-
} | null | undefined;
|
|
3556
|
-
lead?: {
|
|
3557
|
-
name: string;
|
|
3558
|
-
phoneNumber: string;
|
|
3559
|
-
} | undefined;
|
|
3605
|
+
companyId: string | null;
|
|
3560
3606
|
agent?: {
|
|
3561
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3562
|
-
id: string;
|
|
3563
|
-
updatedAt: string | Date;
|
|
3564
|
-
createdAt: string | Date;
|
|
3565
3607
|
email: string;
|
|
3608
|
+
createdAt: string | Date;
|
|
3609
|
+
updatedAt: string | Date;
|
|
3610
|
+
id: string;
|
|
3611
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3566
3612
|
lastName: string;
|
|
3567
3613
|
firstName: string;
|
|
3568
3614
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3569
3615
|
officeId?: string | null | undefined;
|
|
3570
3616
|
office?: {
|
|
3571
|
-
id: string;
|
|
3572
3617
|
name: string;
|
|
3618
|
+
id: string;
|
|
3573
3619
|
managers?: {
|
|
3574
3620
|
id: string;
|
|
3575
3621
|
lastName: string;
|
|
@@ -3587,8 +3633,19 @@ export declare const leadAssignmentsContract: {
|
|
|
3587
3633
|
lastName: string;
|
|
3588
3634
|
firstName: string;
|
|
3589
3635
|
}[] | undefined;
|
|
3636
|
+
dialpadUserId?: string | null | undefined;
|
|
3590
3637
|
deletedAt?: string | Date | null | undefined;
|
|
3591
3638
|
} | undefined;
|
|
3639
|
+
lead?: {
|
|
3640
|
+
name: string;
|
|
3641
|
+
phoneNumber: string;
|
|
3642
|
+
} | undefined;
|
|
3643
|
+
company?: {
|
|
3644
|
+
name: string;
|
|
3645
|
+
createdAt: string | Date;
|
|
3646
|
+
updatedAt: string | Date;
|
|
3647
|
+
id: string;
|
|
3648
|
+
} | null | undefined;
|
|
3592
3649
|
}>;
|
|
3593
3650
|
next: z.ZodNullable<z.ZodObject<{
|
|
3594
3651
|
id: z.ZodString;
|
|
@@ -3644,16 +3701,16 @@ export declare const leadAssignmentsContract: {
|
|
|
3644
3701
|
firstName: string;
|
|
3645
3702
|
}>, "many">>;
|
|
3646
3703
|
}, "strip", z.ZodTypeAny, {
|
|
3647
|
-
id: string;
|
|
3648
3704
|
name: string;
|
|
3705
|
+
id: string;
|
|
3649
3706
|
managers?: {
|
|
3650
3707
|
id: string;
|
|
3651
3708
|
lastName: string;
|
|
3652
3709
|
firstName: string;
|
|
3653
3710
|
}[] | undefined;
|
|
3654
3711
|
}, {
|
|
3655
|
-
id: string;
|
|
3656
3712
|
name: string;
|
|
3713
|
+
id: string;
|
|
3657
3714
|
managers?: {
|
|
3658
3715
|
id: string;
|
|
3659
3716
|
lastName: string;
|
|
@@ -3674,15 +3731,16 @@ export declare const leadAssignmentsContract: {
|
|
|
3674
3731
|
firstName: string;
|
|
3675
3732
|
}>, "many">>;
|
|
3676
3733
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3734
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
3677
3735
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3678
3736
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3679
3737
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3680
3738
|
}, "strip", z.ZodTypeAny, {
|
|
3681
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3682
|
-
id: string;
|
|
3683
|
-
updatedAt: string;
|
|
3684
|
-
createdAt: string;
|
|
3685
3739
|
email: string;
|
|
3740
|
+
createdAt: string;
|
|
3741
|
+
updatedAt: string;
|
|
3742
|
+
id: string;
|
|
3743
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3686
3744
|
lastName: string;
|
|
3687
3745
|
firstName: string;
|
|
3688
3746
|
phoneNumbers: {
|
|
@@ -3694,8 +3752,8 @@ export declare const leadAssignmentsContract: {
|
|
|
3694
3752
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3695
3753
|
officeId?: string | null | undefined;
|
|
3696
3754
|
office?: {
|
|
3697
|
-
id: string;
|
|
3698
3755
|
name: string;
|
|
3756
|
+
id: string;
|
|
3699
3757
|
managers?: {
|
|
3700
3758
|
id: string;
|
|
3701
3759
|
lastName: string;
|
|
@@ -3707,20 +3765,21 @@ export declare const leadAssignmentsContract: {
|
|
|
3707
3765
|
lastName: string;
|
|
3708
3766
|
firstName: string;
|
|
3709
3767
|
}[] | undefined;
|
|
3768
|
+
dialpadUserId?: string | null | undefined;
|
|
3710
3769
|
deletedAt?: string | null | undefined;
|
|
3711
3770
|
}, {
|
|
3712
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3713
|
-
id: string;
|
|
3714
|
-
updatedAt: string | Date;
|
|
3715
|
-
createdAt: string | Date;
|
|
3716
3771
|
email: string;
|
|
3772
|
+
createdAt: string | Date;
|
|
3773
|
+
updatedAt: string | Date;
|
|
3774
|
+
id: string;
|
|
3775
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3717
3776
|
lastName: string;
|
|
3718
3777
|
firstName: string;
|
|
3719
3778
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3720
3779
|
officeId?: string | null | undefined;
|
|
3721
3780
|
office?: {
|
|
3722
|
-
id: string;
|
|
3723
3781
|
name: string;
|
|
3782
|
+
id: string;
|
|
3724
3783
|
managers?: {
|
|
3725
3784
|
id: string;
|
|
3726
3785
|
lastName: string;
|
|
@@ -3738,6 +3797,7 @@ export declare const leadAssignmentsContract: {
|
|
|
3738
3797
|
lastName: string;
|
|
3739
3798
|
firstName: string;
|
|
3740
3799
|
}[] | undefined;
|
|
3800
|
+
dialpadUserId?: string | null | undefined;
|
|
3741
3801
|
deletedAt?: string | Date | null | undefined;
|
|
3742
3802
|
}>>;
|
|
3743
3803
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -3750,44 +3810,34 @@ export declare const leadAssignmentsContract: {
|
|
|
3750
3810
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3751
3811
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3752
3812
|
}, "strip", z.ZodTypeAny, {
|
|
3753
|
-
id: string;
|
|
3754
3813
|
name: string;
|
|
3755
|
-
updatedAt: string;
|
|
3756
3814
|
createdAt: string;
|
|
3757
|
-
|
|
3815
|
+
updatedAt: string;
|
|
3758
3816
|
id: string;
|
|
3817
|
+
}, {
|
|
3759
3818
|
name: string;
|
|
3760
|
-
updatedAt: string | Date;
|
|
3761
3819
|
createdAt: string | Date;
|
|
3820
|
+
updatedAt: string | Date;
|
|
3821
|
+
id: string;
|
|
3762
3822
|
}>>>;
|
|
3763
3823
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3764
3824
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3765
3825
|
}, "strip", z.ZodTypeAny, {
|
|
3766
|
-
status: LeadAssignmentStatus;
|
|
3767
|
-
id: string;
|
|
3768
|
-
updatedAt: string;
|
|
3769
3826
|
createdAt: string;
|
|
3770
|
-
|
|
3827
|
+
updatedAt: string;
|
|
3828
|
+
id: string;
|
|
3829
|
+
status: LeadAssignmentStatus;
|
|
3771
3830
|
agentId: string | null;
|
|
3772
3831
|
leadId: string;
|
|
3773
3832
|
assignedAt: string;
|
|
3774
3833
|
assignedBy: string | null;
|
|
3775
|
-
|
|
3776
|
-
id: string;
|
|
3777
|
-
name: string;
|
|
3778
|
-
updatedAt: string;
|
|
3779
|
-
createdAt: string;
|
|
3780
|
-
} | null | undefined;
|
|
3781
|
-
lead?: {
|
|
3782
|
-
name: string;
|
|
3783
|
-
phoneNumber: string;
|
|
3784
|
-
} | undefined;
|
|
3834
|
+
companyId: string | null;
|
|
3785
3835
|
agent?: {
|
|
3786
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3787
|
-
id: string;
|
|
3788
|
-
updatedAt: string;
|
|
3789
|
-
createdAt: string;
|
|
3790
3836
|
email: string;
|
|
3837
|
+
createdAt: string;
|
|
3838
|
+
updatedAt: string;
|
|
3839
|
+
id: string;
|
|
3840
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3791
3841
|
lastName: string;
|
|
3792
3842
|
firstName: string;
|
|
3793
3843
|
phoneNumbers: {
|
|
@@ -3799,8 +3849,8 @@ export declare const leadAssignmentsContract: {
|
|
|
3799
3849
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3800
3850
|
officeId?: string | null | undefined;
|
|
3801
3851
|
office?: {
|
|
3802
|
-
id: string;
|
|
3803
3852
|
name: string;
|
|
3853
|
+
id: string;
|
|
3804
3854
|
managers?: {
|
|
3805
3855
|
id: string;
|
|
3806
3856
|
lastName: string;
|
|
@@ -3812,41 +3862,42 @@ export declare const leadAssignmentsContract: {
|
|
|
3812
3862
|
lastName: string;
|
|
3813
3863
|
firstName: string;
|
|
3814
3864
|
}[] | undefined;
|
|
3865
|
+
dialpadUserId?: string | null | undefined;
|
|
3815
3866
|
deletedAt?: string | null | undefined;
|
|
3816
3867
|
} | undefined;
|
|
3868
|
+
lead?: {
|
|
3869
|
+
name: string;
|
|
3870
|
+
phoneNumber: string;
|
|
3871
|
+
} | undefined;
|
|
3872
|
+
company?: {
|
|
3873
|
+
name: string;
|
|
3874
|
+
createdAt: string;
|
|
3875
|
+
updatedAt: string;
|
|
3876
|
+
id: string;
|
|
3877
|
+
} | null | undefined;
|
|
3817
3878
|
}, {
|
|
3818
|
-
status: LeadAssignmentStatus;
|
|
3819
|
-
id: string;
|
|
3820
|
-
updatedAt: string | Date;
|
|
3821
3879
|
createdAt: string | Date;
|
|
3822
|
-
|
|
3880
|
+
updatedAt: string | Date;
|
|
3881
|
+
id: string;
|
|
3882
|
+
status: LeadAssignmentStatus;
|
|
3823
3883
|
agentId: string | null;
|
|
3824
3884
|
leadId: string;
|
|
3825
3885
|
assignedAt: string | Date;
|
|
3826
3886
|
assignedBy: string | null;
|
|
3827
|
-
|
|
3828
|
-
id: string;
|
|
3829
|
-
name: string;
|
|
3830
|
-
updatedAt: string | Date;
|
|
3831
|
-
createdAt: string | Date;
|
|
3832
|
-
} | null | undefined;
|
|
3833
|
-
lead?: {
|
|
3834
|
-
name: string;
|
|
3835
|
-
phoneNumber: string;
|
|
3836
|
-
} | undefined;
|
|
3887
|
+
companyId: string | null;
|
|
3837
3888
|
agent?: {
|
|
3838
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3839
|
-
id: string;
|
|
3840
|
-
updatedAt: string | Date;
|
|
3841
|
-
createdAt: string | Date;
|
|
3842
3889
|
email: string;
|
|
3890
|
+
createdAt: string | Date;
|
|
3891
|
+
updatedAt: string | Date;
|
|
3892
|
+
id: string;
|
|
3893
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3843
3894
|
lastName: string;
|
|
3844
3895
|
firstName: string;
|
|
3845
3896
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3846
3897
|
officeId?: string | null | undefined;
|
|
3847
3898
|
office?: {
|
|
3848
|
-
id: string;
|
|
3849
3899
|
name: string;
|
|
3900
|
+
id: string;
|
|
3850
3901
|
managers?: {
|
|
3851
3902
|
id: string;
|
|
3852
3903
|
lastName: string;
|
|
@@ -3864,36 +3915,37 @@ export declare const leadAssignmentsContract: {
|
|
|
3864
3915
|
lastName: string;
|
|
3865
3916
|
firstName: string;
|
|
3866
3917
|
}[] | undefined;
|
|
3918
|
+
dialpadUserId?: string | null | undefined;
|
|
3867
3919
|
deletedAt?: string | Date | null | undefined;
|
|
3868
3920
|
} | undefined;
|
|
3921
|
+
lead?: {
|
|
3922
|
+
name: string;
|
|
3923
|
+
phoneNumber: string;
|
|
3924
|
+
} | undefined;
|
|
3925
|
+
company?: {
|
|
3926
|
+
name: string;
|
|
3927
|
+
createdAt: string | Date;
|
|
3928
|
+
updatedAt: string | Date;
|
|
3929
|
+
id: string;
|
|
3930
|
+
} | null | undefined;
|
|
3869
3931
|
}>>;
|
|
3870
3932
|
}, "strip", z.ZodTypeAny, {
|
|
3871
|
-
|
|
3872
|
-
status: LeadAssignmentStatus;
|
|
3873
|
-
id: string;
|
|
3874
|
-
updatedAt: string;
|
|
3933
|
+
cancelled: {
|
|
3875
3934
|
createdAt: string;
|
|
3876
|
-
|
|
3935
|
+
updatedAt: string;
|
|
3936
|
+
id: string;
|
|
3937
|
+
status: LeadAssignmentStatus;
|
|
3877
3938
|
agentId: string | null;
|
|
3878
3939
|
leadId: string;
|
|
3879
3940
|
assignedAt: string;
|
|
3880
3941
|
assignedBy: string | null;
|
|
3881
|
-
|
|
3882
|
-
id: string;
|
|
3883
|
-
name: string;
|
|
3884
|
-
updatedAt: string;
|
|
3885
|
-
createdAt: string;
|
|
3886
|
-
} | null | undefined;
|
|
3887
|
-
lead?: {
|
|
3888
|
-
name: string;
|
|
3889
|
-
phoneNumber: string;
|
|
3890
|
-
} | undefined;
|
|
3942
|
+
companyId: string | null;
|
|
3891
3943
|
agent?: {
|
|
3892
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3893
|
-
id: string;
|
|
3894
|
-
updatedAt: string;
|
|
3895
|
-
createdAt: string;
|
|
3896
3944
|
email: string;
|
|
3945
|
+
createdAt: string;
|
|
3946
|
+
updatedAt: string;
|
|
3947
|
+
id: string;
|
|
3948
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3897
3949
|
lastName: string;
|
|
3898
3950
|
firstName: string;
|
|
3899
3951
|
phoneNumbers: {
|
|
@@ -3905,8 +3957,8 @@ export declare const leadAssignmentsContract: {
|
|
|
3905
3957
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3906
3958
|
officeId?: string | null | undefined;
|
|
3907
3959
|
office?: {
|
|
3908
|
-
id: string;
|
|
3909
3960
|
name: string;
|
|
3961
|
+
id: string;
|
|
3910
3962
|
managers?: {
|
|
3911
3963
|
id: string;
|
|
3912
3964
|
lastName: string;
|
|
@@ -3918,35 +3970,36 @@ export declare const leadAssignmentsContract: {
|
|
|
3918
3970
|
lastName: string;
|
|
3919
3971
|
firstName: string;
|
|
3920
3972
|
}[] | undefined;
|
|
3973
|
+
dialpadUserId?: string | null | undefined;
|
|
3921
3974
|
deletedAt?: string | null | undefined;
|
|
3922
3975
|
} | undefined;
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3976
|
+
lead?: {
|
|
3977
|
+
name: string;
|
|
3978
|
+
phoneNumber: string;
|
|
3979
|
+
} | undefined;
|
|
3980
|
+
company?: {
|
|
3981
|
+
name: string;
|
|
3982
|
+
createdAt: string;
|
|
3983
|
+
updatedAt: string;
|
|
3984
|
+
id: string;
|
|
3985
|
+
} | null | undefined;
|
|
3986
|
+
};
|
|
3987
|
+
next: {
|
|
3928
3988
|
createdAt: string;
|
|
3929
|
-
|
|
3989
|
+
updatedAt: string;
|
|
3990
|
+
id: string;
|
|
3991
|
+
status: LeadAssignmentStatus;
|
|
3930
3992
|
agentId: string | null;
|
|
3931
3993
|
leadId: string;
|
|
3932
3994
|
assignedAt: string;
|
|
3933
3995
|
assignedBy: string | null;
|
|
3934
|
-
|
|
3935
|
-
id: string;
|
|
3936
|
-
name: string;
|
|
3937
|
-
updatedAt: string;
|
|
3938
|
-
createdAt: string;
|
|
3939
|
-
} | null | undefined;
|
|
3940
|
-
lead?: {
|
|
3941
|
-
name: string;
|
|
3942
|
-
phoneNumber: string;
|
|
3943
|
-
} | undefined;
|
|
3996
|
+
companyId: string | null;
|
|
3944
3997
|
agent?: {
|
|
3945
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3946
|
-
id: string;
|
|
3947
|
-
updatedAt: string;
|
|
3948
|
-
createdAt: string;
|
|
3949
3998
|
email: string;
|
|
3999
|
+
createdAt: string;
|
|
4000
|
+
updatedAt: string;
|
|
4001
|
+
id: string;
|
|
4002
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3950
4003
|
lastName: string;
|
|
3951
4004
|
firstName: string;
|
|
3952
4005
|
phoneNumbers: {
|
|
@@ -3958,8 +4011,8 @@ export declare const leadAssignmentsContract: {
|
|
|
3958
4011
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3959
4012
|
officeId?: string | null | undefined;
|
|
3960
4013
|
office?: {
|
|
3961
|
-
id: string;
|
|
3962
4014
|
name: string;
|
|
4015
|
+
id: string;
|
|
3963
4016
|
managers?: {
|
|
3964
4017
|
id: string;
|
|
3965
4018
|
lastName: string;
|
|
@@ -3971,43 +4024,44 @@ export declare const leadAssignmentsContract: {
|
|
|
3971
4024
|
lastName: string;
|
|
3972
4025
|
firstName: string;
|
|
3973
4026
|
}[] | undefined;
|
|
4027
|
+
dialpadUserId?: string | null | undefined;
|
|
3974
4028
|
deletedAt?: string | null | undefined;
|
|
3975
4029
|
} | undefined;
|
|
3976
|
-
|
|
4030
|
+
lead?: {
|
|
4031
|
+
name: string;
|
|
4032
|
+
phoneNumber: string;
|
|
4033
|
+
} | undefined;
|
|
4034
|
+
company?: {
|
|
4035
|
+
name: string;
|
|
4036
|
+
createdAt: string;
|
|
4037
|
+
updatedAt: string;
|
|
4038
|
+
id: string;
|
|
4039
|
+
} | null | undefined;
|
|
4040
|
+
} | null;
|
|
3977
4041
|
}, {
|
|
3978
|
-
|
|
3979
|
-
status: LeadAssignmentStatus;
|
|
3980
|
-
id: string;
|
|
3981
|
-
updatedAt: string | Date;
|
|
4042
|
+
cancelled: {
|
|
3982
4043
|
createdAt: string | Date;
|
|
3983
|
-
|
|
4044
|
+
updatedAt: string | Date;
|
|
4045
|
+
id: string;
|
|
4046
|
+
status: LeadAssignmentStatus;
|
|
3984
4047
|
agentId: string | null;
|
|
3985
4048
|
leadId: string;
|
|
3986
4049
|
assignedAt: string | Date;
|
|
3987
4050
|
assignedBy: string | null;
|
|
3988
|
-
|
|
3989
|
-
id: string;
|
|
3990
|
-
name: string;
|
|
3991
|
-
updatedAt: string | Date;
|
|
3992
|
-
createdAt: string | Date;
|
|
3993
|
-
} | null | undefined;
|
|
3994
|
-
lead?: {
|
|
3995
|
-
name: string;
|
|
3996
|
-
phoneNumber: string;
|
|
3997
|
-
} | undefined;
|
|
4051
|
+
companyId: string | null;
|
|
3998
4052
|
agent?: {
|
|
3999
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4000
|
-
id: string;
|
|
4001
|
-
updatedAt: string | Date;
|
|
4002
|
-
createdAt: string | Date;
|
|
4003
4053
|
email: string;
|
|
4054
|
+
createdAt: string | Date;
|
|
4055
|
+
updatedAt: string | Date;
|
|
4056
|
+
id: string;
|
|
4057
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4004
4058
|
lastName: string;
|
|
4005
4059
|
firstName: string;
|
|
4006
4060
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4007
4061
|
officeId?: string | null | undefined;
|
|
4008
4062
|
office?: {
|
|
4009
|
-
id: string;
|
|
4010
4063
|
name: string;
|
|
4064
|
+
id: string;
|
|
4011
4065
|
managers?: {
|
|
4012
4066
|
id: string;
|
|
4013
4067
|
lastName: string;
|
|
@@ -4025,42 +4079,43 @@ export declare const leadAssignmentsContract: {
|
|
|
4025
4079
|
lastName: string;
|
|
4026
4080
|
firstName: string;
|
|
4027
4081
|
}[] | undefined;
|
|
4082
|
+
dialpadUserId?: string | null | undefined;
|
|
4028
4083
|
deletedAt?: string | Date | null | undefined;
|
|
4029
4084
|
} | undefined;
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4085
|
+
lead?: {
|
|
4086
|
+
name: string;
|
|
4087
|
+
phoneNumber: string;
|
|
4088
|
+
} | undefined;
|
|
4089
|
+
company?: {
|
|
4090
|
+
name: string;
|
|
4091
|
+
createdAt: string | Date;
|
|
4092
|
+
updatedAt: string | Date;
|
|
4093
|
+
id: string;
|
|
4094
|
+
} | null | undefined;
|
|
4095
|
+
};
|
|
4096
|
+
next: {
|
|
4035
4097
|
createdAt: string | Date;
|
|
4036
|
-
|
|
4098
|
+
updatedAt: string | Date;
|
|
4099
|
+
id: string;
|
|
4100
|
+
status: LeadAssignmentStatus;
|
|
4037
4101
|
agentId: string | null;
|
|
4038
4102
|
leadId: string;
|
|
4039
4103
|
assignedAt: string | Date;
|
|
4040
4104
|
assignedBy: string | null;
|
|
4041
|
-
|
|
4042
|
-
id: string;
|
|
4043
|
-
name: string;
|
|
4044
|
-
updatedAt: string | Date;
|
|
4045
|
-
createdAt: string | Date;
|
|
4046
|
-
} | null | undefined;
|
|
4047
|
-
lead?: {
|
|
4048
|
-
name: string;
|
|
4049
|
-
phoneNumber: string;
|
|
4050
|
-
} | undefined;
|
|
4105
|
+
companyId: string | null;
|
|
4051
4106
|
agent?: {
|
|
4052
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4053
|
-
id: string;
|
|
4054
|
-
updatedAt: string | Date;
|
|
4055
|
-
createdAt: string | Date;
|
|
4056
4107
|
email: string;
|
|
4108
|
+
createdAt: string | Date;
|
|
4109
|
+
updatedAt: string | Date;
|
|
4110
|
+
id: string;
|
|
4111
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4057
4112
|
lastName: string;
|
|
4058
4113
|
firstName: string;
|
|
4059
4114
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4060
4115
|
officeId?: string | null | undefined;
|
|
4061
4116
|
office?: {
|
|
4062
|
-
id: string;
|
|
4063
4117
|
name: string;
|
|
4118
|
+
id: string;
|
|
4064
4119
|
managers?: {
|
|
4065
4120
|
id: string;
|
|
4066
4121
|
lastName: string;
|
|
@@ -4078,9 +4133,20 @@ export declare const leadAssignmentsContract: {
|
|
|
4078
4133
|
lastName: string;
|
|
4079
4134
|
firstName: string;
|
|
4080
4135
|
}[] | undefined;
|
|
4136
|
+
dialpadUserId?: string | null | undefined;
|
|
4081
4137
|
deletedAt?: string | Date | null | undefined;
|
|
4082
4138
|
} | undefined;
|
|
4083
|
-
|
|
4139
|
+
lead?: {
|
|
4140
|
+
name: string;
|
|
4141
|
+
phoneNumber: string;
|
|
4142
|
+
} | undefined;
|
|
4143
|
+
company?: {
|
|
4144
|
+
name: string;
|
|
4145
|
+
createdAt: string | Date;
|
|
4146
|
+
updatedAt: string | Date;
|
|
4147
|
+
id: string;
|
|
4148
|
+
} | null | undefined;
|
|
4149
|
+
} | null;
|
|
4084
4150
|
}>;
|
|
4085
4151
|
404: z.ZodObject<{
|
|
4086
4152
|
statusCode: z.ZodNumber;
|
|
@@ -4149,7 +4215,7 @@ export declare const leadAssignmentsContract: {
|
|
|
4149
4215
|
details?: unknown;
|
|
4150
4216
|
correlationId?: string | undefined;
|
|
4151
4217
|
}>;
|
|
4152
|
-
|
|
4218
|
+
403: z.ZodObject<{
|
|
4153
4219
|
statusCode: z.ZodNumber;
|
|
4154
4220
|
message: z.ZodString;
|
|
4155
4221
|
code: z.ZodString;
|
|
@@ -4174,7 +4240,7 @@ export declare const leadAssignmentsContract: {
|
|
|
4174
4240
|
details?: unknown;
|
|
4175
4241
|
correlationId?: string | undefined;
|
|
4176
4242
|
}>;
|
|
4177
|
-
|
|
4243
|
+
401: z.ZodObject<{
|
|
4178
4244
|
statusCode: z.ZodNumber;
|
|
4179
4245
|
message: z.ZodString;
|
|
4180
4246
|
code: z.ZodString;
|
|
@@ -4278,16 +4344,16 @@ export declare const leadAssignmentsContract: {
|
|
|
4278
4344
|
firstName: string;
|
|
4279
4345
|
}>, "many">>;
|
|
4280
4346
|
}, "strip", z.ZodTypeAny, {
|
|
4281
|
-
id: string;
|
|
4282
4347
|
name: string;
|
|
4348
|
+
id: string;
|
|
4283
4349
|
managers?: {
|
|
4284
4350
|
id: string;
|
|
4285
4351
|
lastName: string;
|
|
4286
4352
|
firstName: string;
|
|
4287
4353
|
}[] | undefined;
|
|
4288
4354
|
}, {
|
|
4289
|
-
id: string;
|
|
4290
4355
|
name: string;
|
|
4356
|
+
id: string;
|
|
4291
4357
|
managers?: {
|
|
4292
4358
|
id: string;
|
|
4293
4359
|
lastName: string;
|
|
@@ -4308,15 +4374,16 @@ export declare const leadAssignmentsContract: {
|
|
|
4308
4374
|
firstName: string;
|
|
4309
4375
|
}>, "many">>;
|
|
4310
4376
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
4377
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
4311
4378
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4312
4379
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4313
4380
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
4314
4381
|
}, "strip", z.ZodTypeAny, {
|
|
4315
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4316
|
-
id: string;
|
|
4317
|
-
updatedAt: string;
|
|
4318
|
-
createdAt: string;
|
|
4319
4382
|
email: string;
|
|
4383
|
+
createdAt: string;
|
|
4384
|
+
updatedAt: string;
|
|
4385
|
+
id: string;
|
|
4386
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4320
4387
|
lastName: string;
|
|
4321
4388
|
firstName: string;
|
|
4322
4389
|
phoneNumbers: {
|
|
@@ -4328,8 +4395,8 @@ export declare const leadAssignmentsContract: {
|
|
|
4328
4395
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4329
4396
|
officeId?: string | null | undefined;
|
|
4330
4397
|
office?: {
|
|
4331
|
-
id: string;
|
|
4332
4398
|
name: string;
|
|
4399
|
+
id: string;
|
|
4333
4400
|
managers?: {
|
|
4334
4401
|
id: string;
|
|
4335
4402
|
lastName: string;
|
|
@@ -4341,20 +4408,21 @@ export declare const leadAssignmentsContract: {
|
|
|
4341
4408
|
lastName: string;
|
|
4342
4409
|
firstName: string;
|
|
4343
4410
|
}[] | undefined;
|
|
4411
|
+
dialpadUserId?: string | null | undefined;
|
|
4344
4412
|
deletedAt?: string | null | undefined;
|
|
4345
4413
|
}, {
|
|
4346
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4347
|
-
id: string;
|
|
4348
|
-
updatedAt: string | Date;
|
|
4349
|
-
createdAt: string | Date;
|
|
4350
4414
|
email: string;
|
|
4415
|
+
createdAt: string | Date;
|
|
4416
|
+
updatedAt: string | Date;
|
|
4417
|
+
id: string;
|
|
4418
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4351
4419
|
lastName: string;
|
|
4352
4420
|
firstName: string;
|
|
4353
4421
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4354
4422
|
officeId?: string | null | undefined;
|
|
4355
4423
|
office?: {
|
|
4356
|
-
id: string;
|
|
4357
4424
|
name: string;
|
|
4425
|
+
id: string;
|
|
4358
4426
|
managers?: {
|
|
4359
4427
|
id: string;
|
|
4360
4428
|
lastName: string;
|
|
@@ -4372,6 +4440,7 @@ export declare const leadAssignmentsContract: {
|
|
|
4372
4440
|
lastName: string;
|
|
4373
4441
|
firstName: string;
|
|
4374
4442
|
}[] | undefined;
|
|
4443
|
+
dialpadUserId?: string | null | undefined;
|
|
4375
4444
|
deletedAt?: string | Date | null | undefined;
|
|
4376
4445
|
}>>;
|
|
4377
4446
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -4384,44 +4453,34 @@ export declare const leadAssignmentsContract: {
|
|
|
4384
4453
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4385
4454
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4386
4455
|
}, "strip", z.ZodTypeAny, {
|
|
4387
|
-
id: string;
|
|
4388
4456
|
name: string;
|
|
4389
|
-
updatedAt: string;
|
|
4390
4457
|
createdAt: string;
|
|
4391
|
-
|
|
4458
|
+
updatedAt: string;
|
|
4392
4459
|
id: string;
|
|
4460
|
+
}, {
|
|
4393
4461
|
name: string;
|
|
4394
|
-
updatedAt: string | Date;
|
|
4395
4462
|
createdAt: string | Date;
|
|
4463
|
+
updatedAt: string | Date;
|
|
4464
|
+
id: string;
|
|
4396
4465
|
}>>>;
|
|
4397
4466
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4398
4467
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4399
4468
|
}, "strip", z.ZodTypeAny, {
|
|
4400
|
-
status: LeadAssignmentStatus;
|
|
4401
|
-
id: string;
|
|
4402
|
-
updatedAt: string;
|
|
4403
4469
|
createdAt: string;
|
|
4404
|
-
|
|
4470
|
+
updatedAt: string;
|
|
4471
|
+
id: string;
|
|
4472
|
+
status: LeadAssignmentStatus;
|
|
4405
4473
|
agentId: string | null;
|
|
4406
4474
|
leadId: string;
|
|
4407
4475
|
assignedAt: string;
|
|
4408
4476
|
assignedBy: string | null;
|
|
4409
|
-
|
|
4410
|
-
id: string;
|
|
4411
|
-
name: string;
|
|
4412
|
-
updatedAt: string;
|
|
4413
|
-
createdAt: string;
|
|
4414
|
-
} | null | undefined;
|
|
4415
|
-
lead?: {
|
|
4416
|
-
name: string;
|
|
4417
|
-
phoneNumber: string;
|
|
4418
|
-
} | undefined;
|
|
4477
|
+
companyId: string | null;
|
|
4419
4478
|
agent?: {
|
|
4420
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4421
|
-
id: string;
|
|
4422
|
-
updatedAt: string;
|
|
4423
|
-
createdAt: string;
|
|
4424
4479
|
email: string;
|
|
4480
|
+
createdAt: string;
|
|
4481
|
+
updatedAt: string;
|
|
4482
|
+
id: string;
|
|
4483
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4425
4484
|
lastName: string;
|
|
4426
4485
|
firstName: string;
|
|
4427
4486
|
phoneNumbers: {
|
|
@@ -4433,8 +4492,8 @@ export declare const leadAssignmentsContract: {
|
|
|
4433
4492
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4434
4493
|
officeId?: string | null | undefined;
|
|
4435
4494
|
office?: {
|
|
4436
|
-
id: string;
|
|
4437
4495
|
name: string;
|
|
4496
|
+
id: string;
|
|
4438
4497
|
managers?: {
|
|
4439
4498
|
id: string;
|
|
4440
4499
|
lastName: string;
|
|
@@ -4446,41 +4505,42 @@ export declare const leadAssignmentsContract: {
|
|
|
4446
4505
|
lastName: string;
|
|
4447
4506
|
firstName: string;
|
|
4448
4507
|
}[] | undefined;
|
|
4508
|
+
dialpadUserId?: string | null | undefined;
|
|
4449
4509
|
deletedAt?: string | null | undefined;
|
|
4450
4510
|
} | undefined;
|
|
4511
|
+
lead?: {
|
|
4512
|
+
name: string;
|
|
4513
|
+
phoneNumber: string;
|
|
4514
|
+
} | undefined;
|
|
4515
|
+
company?: {
|
|
4516
|
+
name: string;
|
|
4517
|
+
createdAt: string;
|
|
4518
|
+
updatedAt: string;
|
|
4519
|
+
id: string;
|
|
4520
|
+
} | null | undefined;
|
|
4451
4521
|
}, {
|
|
4452
|
-
status: LeadAssignmentStatus;
|
|
4453
|
-
id: string;
|
|
4454
|
-
updatedAt: string | Date;
|
|
4455
4522
|
createdAt: string | Date;
|
|
4456
|
-
|
|
4523
|
+
updatedAt: string | Date;
|
|
4524
|
+
id: string;
|
|
4525
|
+
status: LeadAssignmentStatus;
|
|
4457
4526
|
agentId: string | null;
|
|
4458
4527
|
leadId: string;
|
|
4459
4528
|
assignedAt: string | Date;
|
|
4460
4529
|
assignedBy: string | null;
|
|
4461
|
-
|
|
4462
|
-
id: string;
|
|
4463
|
-
name: string;
|
|
4464
|
-
updatedAt: string | Date;
|
|
4465
|
-
createdAt: string | Date;
|
|
4466
|
-
} | null | undefined;
|
|
4467
|
-
lead?: {
|
|
4468
|
-
name: string;
|
|
4469
|
-
phoneNumber: string;
|
|
4470
|
-
} | undefined;
|
|
4530
|
+
companyId: string | null;
|
|
4471
4531
|
agent?: {
|
|
4472
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4473
|
-
id: string;
|
|
4474
|
-
updatedAt: string | Date;
|
|
4475
|
-
createdAt: string | Date;
|
|
4476
4532
|
email: string;
|
|
4533
|
+
createdAt: string | Date;
|
|
4534
|
+
updatedAt: string | Date;
|
|
4535
|
+
id: string;
|
|
4536
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4477
4537
|
lastName: string;
|
|
4478
4538
|
firstName: string;
|
|
4479
4539
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4480
4540
|
officeId?: string | null | undefined;
|
|
4481
4541
|
office?: {
|
|
4482
|
-
id: string;
|
|
4483
4542
|
name: string;
|
|
4543
|
+
id: string;
|
|
4484
4544
|
managers?: {
|
|
4485
4545
|
id: string;
|
|
4486
4546
|
lastName: string;
|
|
@@ -4498,8 +4558,19 @@ export declare const leadAssignmentsContract: {
|
|
|
4498
4558
|
lastName: string;
|
|
4499
4559
|
firstName: string;
|
|
4500
4560
|
}[] | undefined;
|
|
4561
|
+
dialpadUserId?: string | null | undefined;
|
|
4501
4562
|
deletedAt?: string | Date | null | undefined;
|
|
4502
4563
|
} | undefined;
|
|
4564
|
+
lead?: {
|
|
4565
|
+
name: string;
|
|
4566
|
+
phoneNumber: string;
|
|
4567
|
+
} | undefined;
|
|
4568
|
+
company?: {
|
|
4569
|
+
name: string;
|
|
4570
|
+
createdAt: string | Date;
|
|
4571
|
+
updatedAt: string | Date;
|
|
4572
|
+
id: string;
|
|
4573
|
+
} | null | undefined;
|
|
4503
4574
|
}>;
|
|
4504
4575
|
404: z.ZodObject<{
|
|
4505
4576
|
statusCode: z.ZodNumber;
|
|
@@ -4561,7 +4632,7 @@ export declare const leadAssignmentsContract: {
|
|
|
4561
4632
|
details?: unknown;
|
|
4562
4633
|
correlationId?: string | undefined;
|
|
4563
4634
|
}>;
|
|
4564
|
-
|
|
4635
|
+
403: z.ZodObject<{
|
|
4565
4636
|
statusCode: z.ZodNumber;
|
|
4566
4637
|
message: z.ZodString;
|
|
4567
4638
|
code: z.ZodString;
|
|
@@ -4586,7 +4657,7 @@ export declare const leadAssignmentsContract: {
|
|
|
4586
4657
|
details?: unknown;
|
|
4587
4658
|
correlationId?: string | undefined;
|
|
4588
4659
|
}>;
|
|
4589
|
-
|
|
4660
|
+
401: z.ZodObject<{
|
|
4590
4661
|
statusCode: z.ZodNumber;
|
|
4591
4662
|
message: z.ZodString;
|
|
4592
4663
|
code: z.ZodString;
|
|
@@ -4651,7 +4722,7 @@ export declare const leadAssignmentsContract: {
|
|
|
4651
4722
|
currentPercentage: number;
|
|
4652
4723
|
needsRefill: boolean;
|
|
4653
4724
|
nextLeadAvailable: boolean;
|
|
4654
|
-
enrollmentStatus: "AVAILABLE" | "PAUSED" | "
|
|
4725
|
+
enrollmentStatus: "AVAILABLE" | "PAUSED" | "EXCLUDED" | "NOT_ENROLLED";
|
|
4655
4726
|
}, {
|
|
4656
4727
|
agentId: string;
|
|
4657
4728
|
activeAssignments: number;
|
|
@@ -4659,7 +4730,7 @@ export declare const leadAssignmentsContract: {
|
|
|
4659
4730
|
currentPercentage: number;
|
|
4660
4731
|
needsRefill: boolean;
|
|
4661
4732
|
nextLeadAvailable: boolean;
|
|
4662
|
-
enrollmentStatus: "AVAILABLE" | "PAUSED" | "
|
|
4733
|
+
enrollmentStatus: "AVAILABLE" | "PAUSED" | "EXCLUDED" | "NOT_ENROLLED";
|
|
4663
4734
|
}>;
|
|
4664
4735
|
};
|
|
4665
4736
|
};
|