@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
|
@@ -93,16 +93,16 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
93
93
|
firstName: string;
|
|
94
94
|
}>, "many">>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
id: string;
|
|
97
96
|
name: string;
|
|
97
|
+
id: string;
|
|
98
98
|
managers?: {
|
|
99
99
|
id: string;
|
|
100
100
|
lastName: string;
|
|
101
101
|
firstName: string;
|
|
102
102
|
}[] | undefined;
|
|
103
103
|
}, {
|
|
104
|
-
id: string;
|
|
105
104
|
name: string;
|
|
105
|
+
id: string;
|
|
106
106
|
managers?: {
|
|
107
107
|
id: string;
|
|
108
108
|
lastName: string;
|
|
@@ -123,15 +123,16 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
123
123
|
firstName: string;
|
|
124
124
|
}>, "many">>;
|
|
125
125
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
126
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
126
127
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
127
128
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
128
129
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
129
130
|
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
status: "ACTIVE" | "INACTIVE";
|
|
131
|
-
id: string;
|
|
132
|
-
updatedAt: string;
|
|
133
|
-
createdAt: string;
|
|
134
131
|
email: string;
|
|
132
|
+
createdAt: string;
|
|
133
|
+
updatedAt: string;
|
|
134
|
+
id: string;
|
|
135
|
+
status: "ACTIVE" | "INACTIVE";
|
|
135
136
|
lastName: string;
|
|
136
137
|
firstName: string;
|
|
137
138
|
phoneNumbers: {
|
|
@@ -143,8 +144,8 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
143
144
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
144
145
|
officeId?: string | null | undefined;
|
|
145
146
|
office?: {
|
|
146
|
-
id: string;
|
|
147
147
|
name: string;
|
|
148
|
+
id: string;
|
|
148
149
|
managers?: {
|
|
149
150
|
id: string;
|
|
150
151
|
lastName: string;
|
|
@@ -156,20 +157,21 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
156
157
|
lastName: string;
|
|
157
158
|
firstName: string;
|
|
158
159
|
}[] | undefined;
|
|
160
|
+
dialpadUserId?: string | null | undefined;
|
|
159
161
|
deletedAt?: string | null | undefined;
|
|
160
162
|
}, {
|
|
161
|
-
status: "ACTIVE" | "INACTIVE";
|
|
162
|
-
id: string;
|
|
163
|
-
updatedAt: string | Date;
|
|
164
|
-
createdAt: string | Date;
|
|
165
163
|
email: string;
|
|
164
|
+
createdAt: string | Date;
|
|
165
|
+
updatedAt: string | Date;
|
|
166
|
+
id: string;
|
|
167
|
+
status: "ACTIVE" | "INACTIVE";
|
|
166
168
|
lastName: string;
|
|
167
169
|
firstName: string;
|
|
168
170
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
169
171
|
officeId?: string | null | undefined;
|
|
170
172
|
office?: {
|
|
171
|
-
id: string;
|
|
172
173
|
name: string;
|
|
174
|
+
id: string;
|
|
173
175
|
managers?: {
|
|
174
176
|
id: string;
|
|
175
177
|
lastName: string;
|
|
@@ -187,6 +189,7 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
187
189
|
lastName: string;
|
|
188
190
|
firstName: string;
|
|
189
191
|
}[] | undefined;
|
|
192
|
+
dialpadUserId?: string | null | undefined;
|
|
190
193
|
deletedAt?: string | Date | null | undefined;
|
|
191
194
|
}>>;
|
|
192
195
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -199,44 +202,34 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
199
202
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
200
203
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
201
204
|
}, "strip", z.ZodTypeAny, {
|
|
202
|
-
id: string;
|
|
203
205
|
name: string;
|
|
204
|
-
updatedAt: string;
|
|
205
206
|
createdAt: string;
|
|
206
|
-
|
|
207
|
+
updatedAt: string;
|
|
207
208
|
id: string;
|
|
209
|
+
}, {
|
|
208
210
|
name: string;
|
|
209
|
-
updatedAt: string | Date;
|
|
210
211
|
createdAt: string | Date;
|
|
212
|
+
updatedAt: string | Date;
|
|
213
|
+
id: string;
|
|
211
214
|
}>>>;
|
|
212
215
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
213
216
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
214
217
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
216
|
-
id: string;
|
|
217
|
-
updatedAt: string;
|
|
218
218
|
createdAt: string;
|
|
219
|
-
|
|
219
|
+
updatedAt: string;
|
|
220
|
+
id: string;
|
|
221
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
220
222
|
agentId: string | null;
|
|
221
223
|
leadId: string;
|
|
222
224
|
assignedAt: string;
|
|
223
225
|
assignedBy: string | null;
|
|
224
|
-
|
|
225
|
-
id: string;
|
|
226
|
-
name: string;
|
|
227
|
-
updatedAt: string;
|
|
228
|
-
createdAt: string;
|
|
229
|
-
} | null | undefined;
|
|
230
|
-
lead?: {
|
|
231
|
-
name: string;
|
|
232
|
-
phoneNumber: string;
|
|
233
|
-
} | undefined;
|
|
226
|
+
companyId: string | null;
|
|
234
227
|
agent?: {
|
|
235
|
-
status: "ACTIVE" | "INACTIVE";
|
|
236
|
-
id: string;
|
|
237
|
-
updatedAt: string;
|
|
238
|
-
createdAt: string;
|
|
239
228
|
email: string;
|
|
229
|
+
createdAt: string;
|
|
230
|
+
updatedAt: string;
|
|
231
|
+
id: string;
|
|
232
|
+
status: "ACTIVE" | "INACTIVE";
|
|
240
233
|
lastName: string;
|
|
241
234
|
firstName: string;
|
|
242
235
|
phoneNumbers: {
|
|
@@ -248,8 +241,8 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
248
241
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
249
242
|
officeId?: string | null | undefined;
|
|
250
243
|
office?: {
|
|
251
|
-
id: string;
|
|
252
244
|
name: string;
|
|
245
|
+
id: string;
|
|
253
246
|
managers?: {
|
|
254
247
|
id: string;
|
|
255
248
|
lastName: string;
|
|
@@ -261,41 +254,42 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
261
254
|
lastName: string;
|
|
262
255
|
firstName: string;
|
|
263
256
|
}[] | undefined;
|
|
257
|
+
dialpadUserId?: string | null | undefined;
|
|
264
258
|
deletedAt?: string | null | undefined;
|
|
265
259
|
} | undefined;
|
|
260
|
+
lead?: {
|
|
261
|
+
name: string;
|
|
262
|
+
phoneNumber: string;
|
|
263
|
+
} | undefined;
|
|
264
|
+
company?: {
|
|
265
|
+
name: string;
|
|
266
|
+
createdAt: string;
|
|
267
|
+
updatedAt: string;
|
|
268
|
+
id: string;
|
|
269
|
+
} | null | undefined;
|
|
266
270
|
}, {
|
|
267
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
268
|
-
id: string;
|
|
269
|
-
updatedAt: string | Date;
|
|
270
271
|
createdAt: string | Date;
|
|
271
|
-
|
|
272
|
+
updatedAt: string | Date;
|
|
273
|
+
id: string;
|
|
274
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
272
275
|
agentId: string | null;
|
|
273
276
|
leadId: string;
|
|
274
277
|
assignedAt: string | Date;
|
|
275
278
|
assignedBy: string | null;
|
|
276
|
-
|
|
277
|
-
id: string;
|
|
278
|
-
name: string;
|
|
279
|
-
updatedAt: string | Date;
|
|
280
|
-
createdAt: string | Date;
|
|
281
|
-
} | null | undefined;
|
|
282
|
-
lead?: {
|
|
283
|
-
name: string;
|
|
284
|
-
phoneNumber: string;
|
|
285
|
-
} | undefined;
|
|
279
|
+
companyId: string | null;
|
|
286
280
|
agent?: {
|
|
287
|
-
status: "ACTIVE" | "INACTIVE";
|
|
288
|
-
id: string;
|
|
289
|
-
updatedAt: string | Date;
|
|
290
|
-
createdAt: string | Date;
|
|
291
281
|
email: string;
|
|
282
|
+
createdAt: string | Date;
|
|
283
|
+
updatedAt: string | Date;
|
|
284
|
+
id: string;
|
|
285
|
+
status: "ACTIVE" | "INACTIVE";
|
|
292
286
|
lastName: string;
|
|
293
287
|
firstName: string;
|
|
294
288
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
295
289
|
officeId?: string | null | undefined;
|
|
296
290
|
office?: {
|
|
297
|
-
id: string;
|
|
298
291
|
name: string;
|
|
292
|
+
id: string;
|
|
299
293
|
managers?: {
|
|
300
294
|
id: string;
|
|
301
295
|
lastName: string;
|
|
@@ -313,8 +307,19 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
313
307
|
lastName: string;
|
|
314
308
|
firstName: string;
|
|
315
309
|
}[] | undefined;
|
|
310
|
+
dialpadUserId?: string | null | undefined;
|
|
316
311
|
deletedAt?: string | Date | null | undefined;
|
|
317
312
|
} | undefined;
|
|
313
|
+
lead?: {
|
|
314
|
+
name: string;
|
|
315
|
+
phoneNumber: string;
|
|
316
|
+
} | undefined;
|
|
317
|
+
company?: {
|
|
318
|
+
name: string;
|
|
319
|
+
createdAt: string | Date;
|
|
320
|
+
updatedAt: string | Date;
|
|
321
|
+
id: string;
|
|
322
|
+
} | null | undefined;
|
|
318
323
|
}>>>;
|
|
319
324
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
320
325
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -324,43 +329,33 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
324
329
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
325
330
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
326
331
|
}, "strip", z.ZodTypeAny, {
|
|
327
|
-
id: string;
|
|
328
|
-
updatedAt: string;
|
|
329
332
|
createdAt: string;
|
|
330
|
-
|
|
333
|
+
updatedAt: string;
|
|
334
|
+
id: string;
|
|
331
335
|
rating: CallRating;
|
|
336
|
+
notes: string | null;
|
|
332
337
|
callType: CallType;
|
|
333
338
|
leadSource: LeadSource;
|
|
334
339
|
ratingWeight: number;
|
|
335
|
-
|
|
340
|
+
assignmentId: string;
|
|
336
341
|
agentId?: string | undefined;
|
|
337
342
|
leadId?: string | undefined;
|
|
338
343
|
assignment?: {
|
|
339
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
340
|
-
id: string;
|
|
341
|
-
updatedAt: string;
|
|
342
344
|
createdAt: string;
|
|
343
|
-
|
|
345
|
+
updatedAt: string;
|
|
346
|
+
id: string;
|
|
347
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
344
348
|
agentId: string | null;
|
|
345
349
|
leadId: string;
|
|
346
350
|
assignedAt: string;
|
|
347
351
|
assignedBy: string | null;
|
|
348
|
-
|
|
349
|
-
id: string;
|
|
350
|
-
name: string;
|
|
351
|
-
updatedAt: string;
|
|
352
|
-
createdAt: string;
|
|
353
|
-
} | null | undefined;
|
|
354
|
-
lead?: {
|
|
355
|
-
name: string;
|
|
356
|
-
phoneNumber: string;
|
|
357
|
-
} | undefined;
|
|
352
|
+
companyId: string | null;
|
|
358
353
|
agent?: {
|
|
359
|
-
status: "ACTIVE" | "INACTIVE";
|
|
360
|
-
id: string;
|
|
361
|
-
updatedAt: string;
|
|
362
|
-
createdAt: string;
|
|
363
354
|
email: string;
|
|
355
|
+
createdAt: string;
|
|
356
|
+
updatedAt: string;
|
|
357
|
+
id: string;
|
|
358
|
+
status: "ACTIVE" | "INACTIVE";
|
|
364
359
|
lastName: string;
|
|
365
360
|
firstName: string;
|
|
366
361
|
phoneNumbers: {
|
|
@@ -372,8 +367,8 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
372
367
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
373
368
|
officeId?: string | null | undefined;
|
|
374
369
|
office?: {
|
|
375
|
-
id: string;
|
|
376
370
|
name: string;
|
|
371
|
+
id: string;
|
|
377
372
|
managers?: {
|
|
378
373
|
id: string;
|
|
379
374
|
lastName: string;
|
|
@@ -385,54 +380,55 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
385
380
|
lastName: string;
|
|
386
381
|
firstName: string;
|
|
387
382
|
}[] | undefined;
|
|
383
|
+
dialpadUserId?: string | null | undefined;
|
|
388
384
|
deletedAt?: string | null | undefined;
|
|
389
385
|
} | undefined;
|
|
386
|
+
lead?: {
|
|
387
|
+
name: string;
|
|
388
|
+
phoneNumber: string;
|
|
389
|
+
} | undefined;
|
|
390
|
+
company?: {
|
|
391
|
+
name: string;
|
|
392
|
+
createdAt: string;
|
|
393
|
+
updatedAt: string;
|
|
394
|
+
id: string;
|
|
395
|
+
} | null | undefined;
|
|
390
396
|
} | null | undefined;
|
|
391
397
|
}, {
|
|
392
|
-
id: string;
|
|
393
|
-
updatedAt: string | Date;
|
|
394
398
|
createdAt: string | Date;
|
|
395
|
-
|
|
399
|
+
updatedAt: string | Date;
|
|
400
|
+
id: string;
|
|
396
401
|
rating: CallRating;
|
|
402
|
+
notes: string | null;
|
|
397
403
|
callType: CallType;
|
|
398
404
|
leadSource: LeadSource;
|
|
399
405
|
ratingWeight: number;
|
|
400
|
-
|
|
406
|
+
assignmentId: string;
|
|
401
407
|
agentId?: string | undefined;
|
|
402
408
|
leadId?: string | undefined;
|
|
403
409
|
assignment?: {
|
|
404
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
405
|
-
id: string;
|
|
406
|
-
updatedAt: string | Date;
|
|
407
410
|
createdAt: string | Date;
|
|
408
|
-
|
|
411
|
+
updatedAt: string | Date;
|
|
412
|
+
id: string;
|
|
413
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
409
414
|
agentId: string | null;
|
|
410
415
|
leadId: string;
|
|
411
416
|
assignedAt: string | Date;
|
|
412
417
|
assignedBy: string | null;
|
|
413
|
-
|
|
414
|
-
id: string;
|
|
415
|
-
name: string;
|
|
416
|
-
updatedAt: string | Date;
|
|
417
|
-
createdAt: string | Date;
|
|
418
|
-
} | null | undefined;
|
|
419
|
-
lead?: {
|
|
420
|
-
name: string;
|
|
421
|
-
phoneNumber: string;
|
|
422
|
-
} | undefined;
|
|
418
|
+
companyId: string | null;
|
|
423
419
|
agent?: {
|
|
424
|
-
status: "ACTIVE" | "INACTIVE";
|
|
425
|
-
id: string;
|
|
426
|
-
updatedAt: string | Date;
|
|
427
|
-
createdAt: string | Date;
|
|
428
420
|
email: string;
|
|
421
|
+
createdAt: string | Date;
|
|
422
|
+
updatedAt: string | Date;
|
|
423
|
+
id: string;
|
|
424
|
+
status: "ACTIVE" | "INACTIVE";
|
|
429
425
|
lastName: string;
|
|
430
426
|
firstName: string;
|
|
431
427
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
432
428
|
officeId?: string | null | undefined;
|
|
433
429
|
office?: {
|
|
434
|
-
id: string;
|
|
435
430
|
name: string;
|
|
431
|
+
id: string;
|
|
436
432
|
managers?: {
|
|
437
433
|
id: string;
|
|
438
434
|
lastName: string;
|
|
@@ -450,8 +446,19 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
450
446
|
lastName: string;
|
|
451
447
|
firstName: string;
|
|
452
448
|
}[] | undefined;
|
|
449
|
+
dialpadUserId?: string | null | undefined;
|
|
453
450
|
deletedAt?: string | Date | null | undefined;
|
|
454
451
|
} | undefined;
|
|
452
|
+
lead?: {
|
|
453
|
+
name: string;
|
|
454
|
+
phoneNumber: string;
|
|
455
|
+
} | undefined;
|
|
456
|
+
company?: {
|
|
457
|
+
name: string;
|
|
458
|
+
createdAt: string | Date;
|
|
459
|
+
updatedAt: string | Date;
|
|
460
|
+
id: string;
|
|
461
|
+
} | null | undefined;
|
|
455
462
|
} | null | undefined;
|
|
456
463
|
}>;
|
|
457
464
|
export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
@@ -514,16 +521,16 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
514
521
|
firstName: string;
|
|
515
522
|
}>, "many">>;
|
|
516
523
|
}, "strip", z.ZodTypeAny, {
|
|
517
|
-
id: string;
|
|
518
524
|
name: string;
|
|
525
|
+
id: string;
|
|
519
526
|
managers?: {
|
|
520
527
|
id: string;
|
|
521
528
|
lastName: string;
|
|
522
529
|
firstName: string;
|
|
523
530
|
}[] | undefined;
|
|
524
531
|
}, {
|
|
525
|
-
id: string;
|
|
526
532
|
name: string;
|
|
533
|
+
id: string;
|
|
527
534
|
managers?: {
|
|
528
535
|
id: string;
|
|
529
536
|
lastName: string;
|
|
@@ -544,15 +551,16 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
544
551
|
firstName: string;
|
|
545
552
|
}>, "many">>;
|
|
546
553
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
554
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
547
555
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
548
556
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
549
557
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
550
558
|
}, "strip", z.ZodTypeAny, {
|
|
551
|
-
status: "ACTIVE" | "INACTIVE";
|
|
552
|
-
id: string;
|
|
553
|
-
updatedAt: string;
|
|
554
|
-
createdAt: string;
|
|
555
559
|
email: string;
|
|
560
|
+
createdAt: string;
|
|
561
|
+
updatedAt: string;
|
|
562
|
+
id: string;
|
|
563
|
+
status: "ACTIVE" | "INACTIVE";
|
|
556
564
|
lastName: string;
|
|
557
565
|
firstName: string;
|
|
558
566
|
phoneNumbers: {
|
|
@@ -564,8 +572,8 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
564
572
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
565
573
|
officeId?: string | null | undefined;
|
|
566
574
|
office?: {
|
|
567
|
-
id: string;
|
|
568
575
|
name: string;
|
|
576
|
+
id: string;
|
|
569
577
|
managers?: {
|
|
570
578
|
id: string;
|
|
571
579
|
lastName: string;
|
|
@@ -577,20 +585,21 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
577
585
|
lastName: string;
|
|
578
586
|
firstName: string;
|
|
579
587
|
}[] | undefined;
|
|
588
|
+
dialpadUserId?: string | null | undefined;
|
|
580
589
|
deletedAt?: string | null | undefined;
|
|
581
590
|
}, {
|
|
582
|
-
status: "ACTIVE" | "INACTIVE";
|
|
583
|
-
id: string;
|
|
584
|
-
updatedAt: string | Date;
|
|
585
|
-
createdAt: string | Date;
|
|
586
591
|
email: string;
|
|
592
|
+
createdAt: string | Date;
|
|
593
|
+
updatedAt: string | Date;
|
|
594
|
+
id: string;
|
|
595
|
+
status: "ACTIVE" | "INACTIVE";
|
|
587
596
|
lastName: string;
|
|
588
597
|
firstName: string;
|
|
589
598
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
590
599
|
officeId?: string | null | undefined;
|
|
591
600
|
office?: {
|
|
592
|
-
id: string;
|
|
593
601
|
name: string;
|
|
602
|
+
id: string;
|
|
594
603
|
managers?: {
|
|
595
604
|
id: string;
|
|
596
605
|
lastName: string;
|
|
@@ -608,6 +617,7 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
608
617
|
lastName: string;
|
|
609
618
|
firstName: string;
|
|
610
619
|
}[] | undefined;
|
|
620
|
+
dialpadUserId?: string | null | undefined;
|
|
611
621
|
deletedAt?: string | Date | null | undefined;
|
|
612
622
|
}>>;
|
|
613
623
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -620,44 +630,34 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
620
630
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
621
631
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
622
632
|
}, "strip", z.ZodTypeAny, {
|
|
623
|
-
id: string;
|
|
624
633
|
name: string;
|
|
625
|
-
updatedAt: string;
|
|
626
634
|
createdAt: string;
|
|
627
|
-
|
|
635
|
+
updatedAt: string;
|
|
628
636
|
id: string;
|
|
637
|
+
}, {
|
|
629
638
|
name: string;
|
|
630
|
-
updatedAt: string | Date;
|
|
631
639
|
createdAt: string | Date;
|
|
640
|
+
updatedAt: string | Date;
|
|
641
|
+
id: string;
|
|
632
642
|
}>>>;
|
|
633
643
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
634
644
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
635
645
|
}, "strip", z.ZodTypeAny, {
|
|
636
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
637
|
-
id: string;
|
|
638
|
-
updatedAt: string;
|
|
639
646
|
createdAt: string;
|
|
640
|
-
|
|
647
|
+
updatedAt: string;
|
|
648
|
+
id: string;
|
|
649
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
641
650
|
agentId: string | null;
|
|
642
651
|
leadId: string;
|
|
643
652
|
assignedAt: string;
|
|
644
653
|
assignedBy: string | null;
|
|
645
|
-
|
|
646
|
-
id: string;
|
|
647
|
-
name: string;
|
|
648
|
-
updatedAt: string;
|
|
649
|
-
createdAt: string;
|
|
650
|
-
} | null | undefined;
|
|
651
|
-
lead?: {
|
|
652
|
-
name: string;
|
|
653
|
-
phoneNumber: string;
|
|
654
|
-
} | undefined;
|
|
654
|
+
companyId: string | null;
|
|
655
655
|
agent?: {
|
|
656
|
-
status: "ACTIVE" | "INACTIVE";
|
|
657
|
-
id: string;
|
|
658
|
-
updatedAt: string;
|
|
659
|
-
createdAt: string;
|
|
660
656
|
email: string;
|
|
657
|
+
createdAt: string;
|
|
658
|
+
updatedAt: string;
|
|
659
|
+
id: string;
|
|
660
|
+
status: "ACTIVE" | "INACTIVE";
|
|
661
661
|
lastName: string;
|
|
662
662
|
firstName: string;
|
|
663
663
|
phoneNumbers: {
|
|
@@ -669,8 +669,8 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
669
669
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
670
670
|
officeId?: string | null | undefined;
|
|
671
671
|
office?: {
|
|
672
|
-
id: string;
|
|
673
672
|
name: string;
|
|
673
|
+
id: string;
|
|
674
674
|
managers?: {
|
|
675
675
|
id: string;
|
|
676
676
|
lastName: string;
|
|
@@ -682,41 +682,42 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
682
682
|
lastName: string;
|
|
683
683
|
firstName: string;
|
|
684
684
|
}[] | undefined;
|
|
685
|
+
dialpadUserId?: string | null | undefined;
|
|
685
686
|
deletedAt?: string | null | undefined;
|
|
686
687
|
} | undefined;
|
|
688
|
+
lead?: {
|
|
689
|
+
name: string;
|
|
690
|
+
phoneNumber: string;
|
|
691
|
+
} | undefined;
|
|
692
|
+
company?: {
|
|
693
|
+
name: string;
|
|
694
|
+
createdAt: string;
|
|
695
|
+
updatedAt: string;
|
|
696
|
+
id: string;
|
|
697
|
+
} | null | undefined;
|
|
687
698
|
}, {
|
|
688
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
689
|
-
id: string;
|
|
690
|
-
updatedAt: string | Date;
|
|
691
699
|
createdAt: string | Date;
|
|
692
|
-
|
|
700
|
+
updatedAt: string | Date;
|
|
701
|
+
id: string;
|
|
702
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
693
703
|
agentId: string | null;
|
|
694
704
|
leadId: string;
|
|
695
705
|
assignedAt: string | Date;
|
|
696
706
|
assignedBy: string | null;
|
|
697
|
-
|
|
698
|
-
id: string;
|
|
699
|
-
name: string;
|
|
700
|
-
updatedAt: string | Date;
|
|
701
|
-
createdAt: string | Date;
|
|
702
|
-
} | null | undefined;
|
|
703
|
-
lead?: {
|
|
704
|
-
name: string;
|
|
705
|
-
phoneNumber: string;
|
|
706
|
-
} | undefined;
|
|
707
|
+
companyId: string | null;
|
|
707
708
|
agent?: {
|
|
708
|
-
status: "ACTIVE" | "INACTIVE";
|
|
709
|
-
id: string;
|
|
710
|
-
updatedAt: string | Date;
|
|
711
|
-
createdAt: string | Date;
|
|
712
709
|
email: string;
|
|
710
|
+
createdAt: string | Date;
|
|
711
|
+
updatedAt: string | Date;
|
|
712
|
+
id: string;
|
|
713
|
+
status: "ACTIVE" | "INACTIVE";
|
|
713
714
|
lastName: string;
|
|
714
715
|
firstName: string;
|
|
715
716
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
716
717
|
officeId?: string | null | undefined;
|
|
717
718
|
office?: {
|
|
718
|
-
id: string;
|
|
719
719
|
name: string;
|
|
720
|
+
id: string;
|
|
720
721
|
managers?: {
|
|
721
722
|
id: string;
|
|
722
723
|
lastName: string;
|
|
@@ -734,8 +735,19 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
734
735
|
lastName: string;
|
|
735
736
|
firstName: string;
|
|
736
737
|
}[] | undefined;
|
|
738
|
+
dialpadUserId?: string | null | undefined;
|
|
737
739
|
deletedAt?: string | Date | null | undefined;
|
|
738
740
|
} | undefined;
|
|
741
|
+
lead?: {
|
|
742
|
+
name: string;
|
|
743
|
+
phoneNumber: string;
|
|
744
|
+
} | undefined;
|
|
745
|
+
company?: {
|
|
746
|
+
name: string;
|
|
747
|
+
createdAt: string | Date;
|
|
748
|
+
updatedAt: string | Date;
|
|
749
|
+
id: string;
|
|
750
|
+
} | null | undefined;
|
|
739
751
|
}>>>;
|
|
740
752
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
741
753
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -745,43 +757,33 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
745
757
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
746
758
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
747
759
|
}, "strip", z.ZodTypeAny, {
|
|
748
|
-
id: string;
|
|
749
|
-
updatedAt: string;
|
|
750
760
|
createdAt: string;
|
|
751
|
-
|
|
761
|
+
updatedAt: string;
|
|
762
|
+
id: string;
|
|
752
763
|
rating: CallRating;
|
|
764
|
+
notes: string | null;
|
|
753
765
|
callType: CallType;
|
|
754
766
|
leadSource: LeadSource;
|
|
755
767
|
ratingWeight: number;
|
|
756
|
-
|
|
768
|
+
assignmentId: string;
|
|
757
769
|
agentId?: string | undefined;
|
|
758
770
|
leadId?: string | undefined;
|
|
759
771
|
assignment?: {
|
|
760
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
761
|
-
id: string;
|
|
762
|
-
updatedAt: string;
|
|
763
772
|
createdAt: string;
|
|
764
|
-
|
|
773
|
+
updatedAt: string;
|
|
774
|
+
id: string;
|
|
775
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
765
776
|
agentId: string | null;
|
|
766
777
|
leadId: string;
|
|
767
778
|
assignedAt: string;
|
|
768
779
|
assignedBy: string | null;
|
|
769
|
-
|
|
770
|
-
id: string;
|
|
771
|
-
name: string;
|
|
772
|
-
updatedAt: string;
|
|
773
|
-
createdAt: string;
|
|
774
|
-
} | null | undefined;
|
|
775
|
-
lead?: {
|
|
776
|
-
name: string;
|
|
777
|
-
phoneNumber: string;
|
|
778
|
-
} | undefined;
|
|
780
|
+
companyId: string | null;
|
|
779
781
|
agent?: {
|
|
780
|
-
status: "ACTIVE" | "INACTIVE";
|
|
781
|
-
id: string;
|
|
782
|
-
updatedAt: string;
|
|
783
|
-
createdAt: string;
|
|
784
782
|
email: string;
|
|
783
|
+
createdAt: string;
|
|
784
|
+
updatedAt: string;
|
|
785
|
+
id: string;
|
|
786
|
+
status: "ACTIVE" | "INACTIVE";
|
|
785
787
|
lastName: string;
|
|
786
788
|
firstName: string;
|
|
787
789
|
phoneNumbers: {
|
|
@@ -793,8 +795,8 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
793
795
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
794
796
|
officeId?: string | null | undefined;
|
|
795
797
|
office?: {
|
|
796
|
-
id: string;
|
|
797
798
|
name: string;
|
|
799
|
+
id: string;
|
|
798
800
|
managers?: {
|
|
799
801
|
id: string;
|
|
800
802
|
lastName: string;
|
|
@@ -806,54 +808,55 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
806
808
|
lastName: string;
|
|
807
809
|
firstName: string;
|
|
808
810
|
}[] | undefined;
|
|
811
|
+
dialpadUserId?: string | null | undefined;
|
|
809
812
|
deletedAt?: string | null | undefined;
|
|
810
813
|
} | undefined;
|
|
814
|
+
lead?: {
|
|
815
|
+
name: string;
|
|
816
|
+
phoneNumber: string;
|
|
817
|
+
} | undefined;
|
|
818
|
+
company?: {
|
|
819
|
+
name: string;
|
|
820
|
+
createdAt: string;
|
|
821
|
+
updatedAt: string;
|
|
822
|
+
id: string;
|
|
823
|
+
} | null | undefined;
|
|
811
824
|
} | null | undefined;
|
|
812
825
|
}, {
|
|
813
|
-
id: string;
|
|
814
|
-
updatedAt: string | Date;
|
|
815
826
|
createdAt: string | Date;
|
|
816
|
-
|
|
827
|
+
updatedAt: string | Date;
|
|
828
|
+
id: string;
|
|
817
829
|
rating: CallRating;
|
|
830
|
+
notes: string | null;
|
|
818
831
|
callType: CallType;
|
|
819
832
|
leadSource: LeadSource;
|
|
820
833
|
ratingWeight: number;
|
|
821
|
-
|
|
834
|
+
assignmentId: string;
|
|
822
835
|
agentId?: string | undefined;
|
|
823
836
|
leadId?: string | undefined;
|
|
824
837
|
assignment?: {
|
|
825
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
826
|
-
id: string;
|
|
827
|
-
updatedAt: string | Date;
|
|
828
838
|
createdAt: string | Date;
|
|
829
|
-
|
|
839
|
+
updatedAt: string | Date;
|
|
840
|
+
id: string;
|
|
841
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
830
842
|
agentId: string | null;
|
|
831
843
|
leadId: string;
|
|
832
844
|
assignedAt: string | Date;
|
|
833
845
|
assignedBy: string | null;
|
|
834
|
-
|
|
835
|
-
id: string;
|
|
836
|
-
name: string;
|
|
837
|
-
updatedAt: string | Date;
|
|
838
|
-
createdAt: string | Date;
|
|
839
|
-
} | null | undefined;
|
|
840
|
-
lead?: {
|
|
841
|
-
name: string;
|
|
842
|
-
phoneNumber: string;
|
|
843
|
-
} | undefined;
|
|
846
|
+
companyId: string | null;
|
|
844
847
|
agent?: {
|
|
845
|
-
status: "ACTIVE" | "INACTIVE";
|
|
846
|
-
id: string;
|
|
847
|
-
updatedAt: string | Date;
|
|
848
|
-
createdAt: string | Date;
|
|
849
848
|
email: string;
|
|
849
|
+
createdAt: string | Date;
|
|
850
|
+
updatedAt: string | Date;
|
|
851
|
+
id: string;
|
|
852
|
+
status: "ACTIVE" | "INACTIVE";
|
|
850
853
|
lastName: string;
|
|
851
854
|
firstName: string;
|
|
852
855
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
853
856
|
officeId?: string | null | undefined;
|
|
854
857
|
office?: {
|
|
855
|
-
id: string;
|
|
856
858
|
name: string;
|
|
859
|
+
id: string;
|
|
857
860
|
managers?: {
|
|
858
861
|
id: string;
|
|
859
862
|
lastName: string;
|
|
@@ -871,8 +874,19 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
871
874
|
lastName: string;
|
|
872
875
|
firstName: string;
|
|
873
876
|
}[] | undefined;
|
|
877
|
+
dialpadUserId?: string | null | undefined;
|
|
874
878
|
deletedAt?: string | Date | null | undefined;
|
|
875
879
|
} | undefined;
|
|
880
|
+
lead?: {
|
|
881
|
+
name: string;
|
|
882
|
+
phoneNumber: string;
|
|
883
|
+
} | undefined;
|
|
884
|
+
company?: {
|
|
885
|
+
name: string;
|
|
886
|
+
createdAt: string | Date;
|
|
887
|
+
updatedAt: string | Date;
|
|
888
|
+
id: string;
|
|
889
|
+
} | null | undefined;
|
|
876
890
|
} | null | undefined;
|
|
877
891
|
}>, "many">;
|
|
878
892
|
totalCount: z.ZodNumber;
|
|
@@ -883,43 +897,33 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
883
897
|
}, "strip", z.ZodTypeAny, {
|
|
884
898
|
limit: number;
|
|
885
899
|
items: {
|
|
886
|
-
id: string;
|
|
887
|
-
updatedAt: string;
|
|
888
900
|
createdAt: string;
|
|
889
|
-
|
|
901
|
+
updatedAt: string;
|
|
902
|
+
id: string;
|
|
890
903
|
rating: CallRating;
|
|
904
|
+
notes: string | null;
|
|
891
905
|
callType: CallType;
|
|
892
906
|
leadSource: LeadSource;
|
|
893
907
|
ratingWeight: number;
|
|
894
|
-
|
|
908
|
+
assignmentId: string;
|
|
895
909
|
agentId?: string | undefined;
|
|
896
910
|
leadId?: string | undefined;
|
|
897
911
|
assignment?: {
|
|
898
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
899
|
-
id: string;
|
|
900
|
-
updatedAt: string;
|
|
901
912
|
createdAt: string;
|
|
902
|
-
|
|
913
|
+
updatedAt: string;
|
|
914
|
+
id: string;
|
|
915
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
903
916
|
agentId: string | null;
|
|
904
917
|
leadId: string;
|
|
905
918
|
assignedAt: string;
|
|
906
919
|
assignedBy: string | null;
|
|
907
|
-
|
|
908
|
-
id: string;
|
|
909
|
-
name: string;
|
|
910
|
-
updatedAt: string;
|
|
911
|
-
createdAt: string;
|
|
912
|
-
} | null | undefined;
|
|
913
|
-
lead?: {
|
|
914
|
-
name: string;
|
|
915
|
-
phoneNumber: string;
|
|
916
|
-
} | undefined;
|
|
920
|
+
companyId: string | null;
|
|
917
921
|
agent?: {
|
|
918
|
-
status: "ACTIVE" | "INACTIVE";
|
|
919
|
-
id: string;
|
|
920
|
-
updatedAt: string;
|
|
921
|
-
createdAt: string;
|
|
922
922
|
email: string;
|
|
923
|
+
createdAt: string;
|
|
924
|
+
updatedAt: string;
|
|
925
|
+
id: string;
|
|
926
|
+
status: "ACTIVE" | "INACTIVE";
|
|
923
927
|
lastName: string;
|
|
924
928
|
firstName: string;
|
|
925
929
|
phoneNumbers: {
|
|
@@ -931,8 +935,8 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
931
935
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
932
936
|
officeId?: string | null | undefined;
|
|
933
937
|
office?: {
|
|
934
|
-
id: string;
|
|
935
938
|
name: string;
|
|
939
|
+
id: string;
|
|
936
940
|
managers?: {
|
|
937
941
|
id: string;
|
|
938
942
|
lastName: string;
|
|
@@ -944,8 +948,19 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
944
948
|
lastName: string;
|
|
945
949
|
firstName: string;
|
|
946
950
|
}[] | undefined;
|
|
951
|
+
dialpadUserId?: string | null | undefined;
|
|
947
952
|
deletedAt?: string | null | undefined;
|
|
948
953
|
} | undefined;
|
|
954
|
+
lead?: {
|
|
955
|
+
name: string;
|
|
956
|
+
phoneNumber: string;
|
|
957
|
+
} | undefined;
|
|
958
|
+
company?: {
|
|
959
|
+
name: string;
|
|
960
|
+
createdAt: string;
|
|
961
|
+
updatedAt: string;
|
|
962
|
+
id: string;
|
|
963
|
+
} | null | undefined;
|
|
949
964
|
} | null | undefined;
|
|
950
965
|
}[];
|
|
951
966
|
totalCount: number;
|
|
@@ -955,50 +970,40 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
955
970
|
}, {
|
|
956
971
|
limit: number;
|
|
957
972
|
items: {
|
|
958
|
-
id: string;
|
|
959
|
-
updatedAt: string | Date;
|
|
960
973
|
createdAt: string | Date;
|
|
961
|
-
|
|
974
|
+
updatedAt: string | Date;
|
|
975
|
+
id: string;
|
|
962
976
|
rating: CallRating;
|
|
977
|
+
notes: string | null;
|
|
963
978
|
callType: CallType;
|
|
964
979
|
leadSource: LeadSource;
|
|
965
980
|
ratingWeight: number;
|
|
966
|
-
|
|
981
|
+
assignmentId: string;
|
|
967
982
|
agentId?: string | undefined;
|
|
968
983
|
leadId?: string | undefined;
|
|
969
984
|
assignment?: {
|
|
970
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
971
|
-
id: string;
|
|
972
|
-
updatedAt: string | Date;
|
|
973
985
|
createdAt: string | Date;
|
|
974
|
-
|
|
986
|
+
updatedAt: string | Date;
|
|
987
|
+
id: string;
|
|
988
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
975
989
|
agentId: string | null;
|
|
976
990
|
leadId: string;
|
|
977
991
|
assignedAt: string | Date;
|
|
978
992
|
assignedBy: string | null;
|
|
979
|
-
|
|
980
|
-
id: string;
|
|
981
|
-
name: string;
|
|
982
|
-
updatedAt: string | Date;
|
|
983
|
-
createdAt: string | Date;
|
|
984
|
-
} | null | undefined;
|
|
985
|
-
lead?: {
|
|
986
|
-
name: string;
|
|
987
|
-
phoneNumber: string;
|
|
988
|
-
} | undefined;
|
|
993
|
+
companyId: string | null;
|
|
989
994
|
agent?: {
|
|
990
|
-
status: "ACTIVE" | "INACTIVE";
|
|
991
|
-
id: string;
|
|
992
|
-
updatedAt: string | Date;
|
|
993
|
-
createdAt: string | Date;
|
|
994
995
|
email: string;
|
|
996
|
+
createdAt: string | Date;
|
|
997
|
+
updatedAt: string | Date;
|
|
998
|
+
id: string;
|
|
999
|
+
status: "ACTIVE" | "INACTIVE";
|
|
995
1000
|
lastName: string;
|
|
996
1001
|
firstName: string;
|
|
997
1002
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
998
1003
|
officeId?: string | null | undefined;
|
|
999
1004
|
office?: {
|
|
1000
|
-
id: string;
|
|
1001
1005
|
name: string;
|
|
1006
|
+
id: string;
|
|
1002
1007
|
managers?: {
|
|
1003
1008
|
id: string;
|
|
1004
1009
|
lastName: string;
|
|
@@ -1016,8 +1021,19 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
1016
1021
|
lastName: string;
|
|
1017
1022
|
firstName: string;
|
|
1018
1023
|
}[] | undefined;
|
|
1024
|
+
dialpadUserId?: string | null | undefined;
|
|
1019
1025
|
deletedAt?: string | Date | null | undefined;
|
|
1020
1026
|
} | undefined;
|
|
1027
|
+
lead?: {
|
|
1028
|
+
name: string;
|
|
1029
|
+
phoneNumber: string;
|
|
1030
|
+
} | undefined;
|
|
1031
|
+
company?: {
|
|
1032
|
+
name: string;
|
|
1033
|
+
createdAt: string | Date;
|
|
1034
|
+
updatedAt: string | Date;
|
|
1035
|
+
id: string;
|
|
1036
|
+
} | null | undefined;
|
|
1021
1037
|
} | null | undefined;
|
|
1022
1038
|
}[];
|
|
1023
1039
|
totalCount: number;
|
|
@@ -1101,34 +1117,23 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1101
1117
|
id: z.ZodString;
|
|
1102
1118
|
name: z.ZodString;
|
|
1103
1119
|
}, "strip", z.ZodTypeAny, {
|
|
1104
|
-
id: string;
|
|
1105
1120
|
name: string;
|
|
1106
|
-
}, {
|
|
1107
1121
|
id: string;
|
|
1122
|
+
}, {
|
|
1108
1123
|
name: string;
|
|
1124
|
+
id: string;
|
|
1109
1125
|
}>>>;
|
|
1110
1126
|
}, "strip", z.ZodTypeAny, {
|
|
1111
|
-
id: string;
|
|
1112
|
-
updatedAt: string;
|
|
1113
1127
|
createdAt: string;
|
|
1128
|
+
updatedAt: string;
|
|
1129
|
+
id: string;
|
|
1114
1130
|
agentId: string;
|
|
1115
|
-
assignmentId: string;
|
|
1116
1131
|
rating: CallRating;
|
|
1132
|
+
notes: string | null;
|
|
1117
1133
|
callType: CallType;
|
|
1118
1134
|
leadSource: LeadSource;
|
|
1119
1135
|
ratingWeight: number;
|
|
1120
|
-
|
|
1121
|
-
company?: {
|
|
1122
|
-
id: string;
|
|
1123
|
-
name: string;
|
|
1124
|
-
} | null | undefined;
|
|
1125
|
-
assignment?: {
|
|
1126
|
-
agentId: string | null;
|
|
1127
|
-
} | null | undefined;
|
|
1128
|
-
lead?: {
|
|
1129
|
-
name: string;
|
|
1130
|
-
phoneNumber: string;
|
|
1131
|
-
} | null | undefined;
|
|
1136
|
+
assignmentId: string;
|
|
1132
1137
|
agent?: {
|
|
1133
1138
|
id: string;
|
|
1134
1139
|
lastName: string;
|
|
@@ -1141,28 +1146,28 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1141
1146
|
}[];
|
|
1142
1147
|
deletedAt?: string | null | undefined;
|
|
1143
1148
|
} | null | undefined;
|
|
1149
|
+
lead?: {
|
|
1150
|
+
name: string;
|
|
1151
|
+
phoneNumber: string;
|
|
1152
|
+
} | null | undefined;
|
|
1153
|
+
company?: {
|
|
1154
|
+
name: string;
|
|
1155
|
+
id: string;
|
|
1156
|
+
} | null | undefined;
|
|
1157
|
+
assignment?: {
|
|
1158
|
+
agentId: string | null;
|
|
1159
|
+
} | null | undefined;
|
|
1144
1160
|
}, {
|
|
1145
|
-
id: string;
|
|
1146
|
-
updatedAt: string | Date;
|
|
1147
1161
|
createdAt: string | Date;
|
|
1162
|
+
updatedAt: string | Date;
|
|
1163
|
+
id: string;
|
|
1148
1164
|
agentId: string;
|
|
1149
|
-
assignmentId: string;
|
|
1150
1165
|
rating: CallRating;
|
|
1166
|
+
notes: string | null;
|
|
1151
1167
|
callType: CallType;
|
|
1152
1168
|
leadSource: LeadSource;
|
|
1153
1169
|
ratingWeight: number;
|
|
1154
|
-
|
|
1155
|
-
company?: {
|
|
1156
|
-
id: string;
|
|
1157
|
-
name: string;
|
|
1158
|
-
} | null | undefined;
|
|
1159
|
-
assignment?: {
|
|
1160
|
-
agentId: string | null;
|
|
1161
|
-
} | null | undefined;
|
|
1162
|
-
lead?: {
|
|
1163
|
-
name: string;
|
|
1164
|
-
phoneNumber: string;
|
|
1165
|
-
} | null | undefined;
|
|
1170
|
+
assignmentId: string;
|
|
1166
1171
|
agent?: {
|
|
1167
1172
|
id: string;
|
|
1168
1173
|
lastName: string;
|
|
@@ -1175,6 +1180,17 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1175
1180
|
}[] | undefined;
|
|
1176
1181
|
deletedAt?: string | Date | null | undefined;
|
|
1177
1182
|
} | null | undefined;
|
|
1183
|
+
lead?: {
|
|
1184
|
+
name: string;
|
|
1185
|
+
phoneNumber: string;
|
|
1186
|
+
} | null | undefined;
|
|
1187
|
+
company?: {
|
|
1188
|
+
name: string;
|
|
1189
|
+
id: string;
|
|
1190
|
+
} | null | undefined;
|
|
1191
|
+
assignment?: {
|
|
1192
|
+
agentId: string | null;
|
|
1193
|
+
} | null | undefined;
|
|
1178
1194
|
}>;
|
|
1179
1195
|
export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
1180
1196
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -1253,34 +1269,23 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1253
1269
|
id: z.ZodString;
|
|
1254
1270
|
name: z.ZodString;
|
|
1255
1271
|
}, "strip", z.ZodTypeAny, {
|
|
1256
|
-
id: string;
|
|
1257
1272
|
name: string;
|
|
1258
|
-
}, {
|
|
1259
1273
|
id: string;
|
|
1274
|
+
}, {
|
|
1260
1275
|
name: string;
|
|
1276
|
+
id: string;
|
|
1261
1277
|
}>>>;
|
|
1262
1278
|
}, "strip", z.ZodTypeAny, {
|
|
1263
|
-
id: string;
|
|
1264
|
-
updatedAt: string;
|
|
1265
1279
|
createdAt: string;
|
|
1280
|
+
updatedAt: string;
|
|
1281
|
+
id: string;
|
|
1266
1282
|
agentId: string;
|
|
1267
|
-
assignmentId: string;
|
|
1268
1283
|
rating: CallRating;
|
|
1284
|
+
notes: string | null;
|
|
1269
1285
|
callType: CallType;
|
|
1270
1286
|
leadSource: LeadSource;
|
|
1271
1287
|
ratingWeight: number;
|
|
1272
|
-
|
|
1273
|
-
company?: {
|
|
1274
|
-
id: string;
|
|
1275
|
-
name: string;
|
|
1276
|
-
} | null | undefined;
|
|
1277
|
-
assignment?: {
|
|
1278
|
-
agentId: string | null;
|
|
1279
|
-
} | null | undefined;
|
|
1280
|
-
lead?: {
|
|
1281
|
-
name: string;
|
|
1282
|
-
phoneNumber: string;
|
|
1283
|
-
} | null | undefined;
|
|
1288
|
+
assignmentId: string;
|
|
1284
1289
|
agent?: {
|
|
1285
1290
|
id: string;
|
|
1286
1291
|
lastName: string;
|
|
@@ -1293,28 +1298,28 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1293
1298
|
}[];
|
|
1294
1299
|
deletedAt?: string | null | undefined;
|
|
1295
1300
|
} | null | undefined;
|
|
1301
|
+
lead?: {
|
|
1302
|
+
name: string;
|
|
1303
|
+
phoneNumber: string;
|
|
1304
|
+
} | null | undefined;
|
|
1305
|
+
company?: {
|
|
1306
|
+
name: string;
|
|
1307
|
+
id: string;
|
|
1308
|
+
} | null | undefined;
|
|
1309
|
+
assignment?: {
|
|
1310
|
+
agentId: string | null;
|
|
1311
|
+
} | null | undefined;
|
|
1296
1312
|
}, {
|
|
1297
|
-
id: string;
|
|
1298
|
-
updatedAt: string | Date;
|
|
1299
1313
|
createdAt: string | Date;
|
|
1314
|
+
updatedAt: string | Date;
|
|
1315
|
+
id: string;
|
|
1300
1316
|
agentId: string;
|
|
1301
|
-
assignmentId: string;
|
|
1302
1317
|
rating: CallRating;
|
|
1318
|
+
notes: string | null;
|
|
1303
1319
|
callType: CallType;
|
|
1304
1320
|
leadSource: LeadSource;
|
|
1305
1321
|
ratingWeight: number;
|
|
1306
|
-
|
|
1307
|
-
company?: {
|
|
1308
|
-
id: string;
|
|
1309
|
-
name: string;
|
|
1310
|
-
} | null | undefined;
|
|
1311
|
-
assignment?: {
|
|
1312
|
-
agentId: string | null;
|
|
1313
|
-
} | null | undefined;
|
|
1314
|
-
lead?: {
|
|
1315
|
-
name: string;
|
|
1316
|
-
phoneNumber: string;
|
|
1317
|
-
} | null | undefined;
|
|
1322
|
+
assignmentId: string;
|
|
1318
1323
|
agent?: {
|
|
1319
1324
|
id: string;
|
|
1320
1325
|
lastName: string;
|
|
@@ -1327,6 +1332,17 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1327
1332
|
}[] | undefined;
|
|
1328
1333
|
deletedAt?: string | Date | null | undefined;
|
|
1329
1334
|
} | null | undefined;
|
|
1335
|
+
lead?: {
|
|
1336
|
+
name: string;
|
|
1337
|
+
phoneNumber: string;
|
|
1338
|
+
} | null | undefined;
|
|
1339
|
+
company?: {
|
|
1340
|
+
name: string;
|
|
1341
|
+
id: string;
|
|
1342
|
+
} | null | undefined;
|
|
1343
|
+
assignment?: {
|
|
1344
|
+
agentId: string | null;
|
|
1345
|
+
} | null | undefined;
|
|
1330
1346
|
}>, "many">;
|
|
1331
1347
|
totalCount: z.ZodNumber;
|
|
1332
1348
|
limit: z.ZodNumber;
|
|
@@ -1336,27 +1352,16 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1336
1352
|
}, "strip", z.ZodTypeAny, {
|
|
1337
1353
|
limit: number;
|
|
1338
1354
|
items: {
|
|
1339
|
-
id: string;
|
|
1340
|
-
updatedAt: string;
|
|
1341
1355
|
createdAt: string;
|
|
1356
|
+
updatedAt: string;
|
|
1357
|
+
id: string;
|
|
1342
1358
|
agentId: string;
|
|
1343
|
-
assignmentId: string;
|
|
1344
1359
|
rating: CallRating;
|
|
1360
|
+
notes: string | null;
|
|
1345
1361
|
callType: CallType;
|
|
1346
1362
|
leadSource: LeadSource;
|
|
1347
1363
|
ratingWeight: number;
|
|
1348
|
-
|
|
1349
|
-
company?: {
|
|
1350
|
-
id: string;
|
|
1351
|
-
name: string;
|
|
1352
|
-
} | null | undefined;
|
|
1353
|
-
assignment?: {
|
|
1354
|
-
agentId: string | null;
|
|
1355
|
-
} | null | undefined;
|
|
1356
|
-
lead?: {
|
|
1357
|
-
name: string;
|
|
1358
|
-
phoneNumber: string;
|
|
1359
|
-
} | null | undefined;
|
|
1364
|
+
assignmentId: string;
|
|
1360
1365
|
agent?: {
|
|
1361
1366
|
id: string;
|
|
1362
1367
|
lastName: string;
|
|
@@ -1369,6 +1374,17 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1369
1374
|
}[];
|
|
1370
1375
|
deletedAt?: string | null | undefined;
|
|
1371
1376
|
} | null | undefined;
|
|
1377
|
+
lead?: {
|
|
1378
|
+
name: string;
|
|
1379
|
+
phoneNumber: string;
|
|
1380
|
+
} | null | undefined;
|
|
1381
|
+
company?: {
|
|
1382
|
+
name: string;
|
|
1383
|
+
id: string;
|
|
1384
|
+
} | null | undefined;
|
|
1385
|
+
assignment?: {
|
|
1386
|
+
agentId: string | null;
|
|
1387
|
+
} | null | undefined;
|
|
1372
1388
|
}[];
|
|
1373
1389
|
totalCount: number;
|
|
1374
1390
|
skip: number;
|
|
@@ -1377,27 +1393,16 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1377
1393
|
}, {
|
|
1378
1394
|
limit: number;
|
|
1379
1395
|
items: {
|
|
1380
|
-
id: string;
|
|
1381
|
-
updatedAt: string | Date;
|
|
1382
1396
|
createdAt: string | Date;
|
|
1397
|
+
updatedAt: string | Date;
|
|
1398
|
+
id: string;
|
|
1383
1399
|
agentId: string;
|
|
1384
|
-
assignmentId: string;
|
|
1385
1400
|
rating: CallRating;
|
|
1401
|
+
notes: string | null;
|
|
1386
1402
|
callType: CallType;
|
|
1387
1403
|
leadSource: LeadSource;
|
|
1388
1404
|
ratingWeight: number;
|
|
1389
|
-
|
|
1390
|
-
company?: {
|
|
1391
|
-
id: string;
|
|
1392
|
-
name: string;
|
|
1393
|
-
} | null | undefined;
|
|
1394
|
-
assignment?: {
|
|
1395
|
-
agentId: string | null;
|
|
1396
|
-
} | null | undefined;
|
|
1397
|
-
lead?: {
|
|
1398
|
-
name: string;
|
|
1399
|
-
phoneNumber: string;
|
|
1400
|
-
} | null | undefined;
|
|
1405
|
+
assignmentId: string;
|
|
1401
1406
|
agent?: {
|
|
1402
1407
|
id: string;
|
|
1403
1408
|
lastName: string;
|
|
@@ -1410,6 +1415,17 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1410
1415
|
}[] | undefined;
|
|
1411
1416
|
deletedAt?: string | Date | null | undefined;
|
|
1412
1417
|
} | null | undefined;
|
|
1418
|
+
lead?: {
|
|
1419
|
+
name: string;
|
|
1420
|
+
phoneNumber: string;
|
|
1421
|
+
} | null | undefined;
|
|
1422
|
+
company?: {
|
|
1423
|
+
name: string;
|
|
1424
|
+
id: string;
|
|
1425
|
+
} | null | undefined;
|
|
1426
|
+
assignment?: {
|
|
1427
|
+
agentId: string | null;
|
|
1428
|
+
} | null | undefined;
|
|
1413
1429
|
}[];
|
|
1414
1430
|
totalCount: number;
|
|
1415
1431
|
skip: number;
|
|
@@ -1422,14 +1438,14 @@ export declare const CreateCallHistorySchema: z.ZodObject<{
|
|
|
1422
1438
|
notes: z.ZodOptional<z.ZodString>;
|
|
1423
1439
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1424
1440
|
}, "strip", z.ZodTypeAny, {
|
|
1425
|
-
assignmentId: string;
|
|
1426
1441
|
rating: CallRating;
|
|
1427
1442
|
callType: CallType;
|
|
1443
|
+
assignmentId: string;
|
|
1428
1444
|
notes?: string | undefined;
|
|
1429
1445
|
}, {
|
|
1430
|
-
assignmentId: string;
|
|
1431
1446
|
rating: CallRating;
|
|
1432
1447
|
callType: CallType;
|
|
1448
|
+
assignmentId: string;
|
|
1433
1449
|
notes?: string | undefined;
|
|
1434
1450
|
}>;
|
|
1435
1451
|
export declare const UpdateCallHistorySchema: z.ZodObject<{
|
|
@@ -1493,37 +1509,37 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
|
|
|
1493
1509
|
from?: string | null | undefined;
|
|
1494
1510
|
to?: string | null | undefined;
|
|
1495
1511
|
} | null | undefined;
|
|
1496
|
-
companyId?: string | undefined;
|
|
1497
1512
|
agentId?: string | undefined;
|
|
1513
|
+
phoneNumber?: string | undefined;
|
|
1498
1514
|
rating?: {
|
|
1499
1515
|
from?: CallRating | null | undefined;
|
|
1500
1516
|
to?: CallRating | null | undefined;
|
|
1501
1517
|
} | null | undefined;
|
|
1502
1518
|
callType?: CallType | undefined;
|
|
1519
|
+
companyId?: string | undefined;
|
|
1503
1520
|
leadSource?: LeadSource | undefined;
|
|
1504
1521
|
leadName?: string | undefined;
|
|
1505
|
-
phoneNumber?: string | undefined;
|
|
1506
1522
|
}, {
|
|
1507
1523
|
sort?: {
|
|
1508
1524
|
field: CallHistorySortableFields;
|
|
1509
1525
|
order: "ASC" | "DESC";
|
|
1510
1526
|
}[] | null | undefined;
|
|
1511
|
-
page?: number | undefined;
|
|
1512
|
-
limit?: number | undefined;
|
|
1513
1527
|
createdAt?: {
|
|
1514
1528
|
from?: string | null | undefined;
|
|
1515
1529
|
to?: string | null | undefined;
|
|
1516
1530
|
} | null | undefined;
|
|
1517
|
-
|
|
1531
|
+
page?: number | undefined;
|
|
1532
|
+
limit?: number | undefined;
|
|
1518
1533
|
agentId?: string | undefined;
|
|
1534
|
+
phoneNumber?: string | undefined;
|
|
1519
1535
|
rating?: {
|
|
1520
1536
|
from?: unknown;
|
|
1521
1537
|
to?: unknown;
|
|
1522
1538
|
} | null | undefined;
|
|
1523
1539
|
callType?: CallType | undefined;
|
|
1540
|
+
companyId?: string | undefined;
|
|
1524
1541
|
leadSource?: LeadSource | undefined;
|
|
1525
1542
|
leadName?: string | undefined;
|
|
1526
|
-
phoneNumber?: string | undefined;
|
|
1527
1543
|
}>;
|
|
1528
1544
|
export declare const CallHistoryStatsSchema: z.ZodObject<{
|
|
1529
1545
|
totalCalls: z.ZodNumber;
|
|
@@ -1559,14 +1575,14 @@ export declare const callHistoryContract: {
|
|
|
1559
1575
|
notes: z.ZodOptional<z.ZodString>;
|
|
1560
1576
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1561
1577
|
}, "strip", z.ZodTypeAny, {
|
|
1562
|
-
assignmentId: string;
|
|
1563
1578
|
rating: CallRating;
|
|
1564
1579
|
callType: CallType;
|
|
1580
|
+
assignmentId: string;
|
|
1565
1581
|
notes?: string | undefined;
|
|
1566
1582
|
}, {
|
|
1567
|
-
assignmentId: string;
|
|
1568
1583
|
rating: CallRating;
|
|
1569
1584
|
callType: CallType;
|
|
1585
|
+
assignmentId: string;
|
|
1570
1586
|
notes?: string | undefined;
|
|
1571
1587
|
}>;
|
|
1572
1588
|
path: "/v2/call-history";
|
|
@@ -1596,7 +1612,7 @@ export declare const callHistoryContract: {
|
|
|
1596
1612
|
details?: unknown;
|
|
1597
1613
|
correlationId?: string | undefined;
|
|
1598
1614
|
}>;
|
|
1599
|
-
|
|
1615
|
+
403: z.ZodObject<{
|
|
1600
1616
|
statusCode: z.ZodNumber;
|
|
1601
1617
|
message: z.ZodString;
|
|
1602
1618
|
code: z.ZodString;
|
|
@@ -1621,7 +1637,7 @@ export declare const callHistoryContract: {
|
|
|
1621
1637
|
details?: unknown;
|
|
1622
1638
|
correlationId?: string | undefined;
|
|
1623
1639
|
}>;
|
|
1624
|
-
|
|
1640
|
+
401: z.ZodObject<{
|
|
1625
1641
|
statusCode: z.ZodNumber;
|
|
1626
1642
|
message: z.ZodString;
|
|
1627
1643
|
code: z.ZodString;
|
|
@@ -1730,16 +1746,16 @@ export declare const callHistoryContract: {
|
|
|
1730
1746
|
firstName: string;
|
|
1731
1747
|
}>, "many">>;
|
|
1732
1748
|
}, "strip", z.ZodTypeAny, {
|
|
1733
|
-
id: string;
|
|
1734
1749
|
name: string;
|
|
1750
|
+
id: string;
|
|
1735
1751
|
managers?: {
|
|
1736
1752
|
id: string;
|
|
1737
1753
|
lastName: string;
|
|
1738
1754
|
firstName: string;
|
|
1739
1755
|
}[] | undefined;
|
|
1740
1756
|
}, {
|
|
1741
|
-
id: string;
|
|
1742
1757
|
name: string;
|
|
1758
|
+
id: string;
|
|
1743
1759
|
managers?: {
|
|
1744
1760
|
id: string;
|
|
1745
1761
|
lastName: string;
|
|
@@ -1760,15 +1776,16 @@ export declare const callHistoryContract: {
|
|
|
1760
1776
|
firstName: string;
|
|
1761
1777
|
}>, "many">>;
|
|
1762
1778
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1779
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1763
1780
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1764
1781
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1765
1782
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1766
1783
|
}, "strip", z.ZodTypeAny, {
|
|
1767
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1768
|
-
id: string;
|
|
1769
|
-
updatedAt: string;
|
|
1770
|
-
createdAt: string;
|
|
1771
1784
|
email: string;
|
|
1785
|
+
createdAt: string;
|
|
1786
|
+
updatedAt: string;
|
|
1787
|
+
id: string;
|
|
1788
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1772
1789
|
lastName: string;
|
|
1773
1790
|
firstName: string;
|
|
1774
1791
|
phoneNumbers: {
|
|
@@ -1780,8 +1797,8 @@ export declare const callHistoryContract: {
|
|
|
1780
1797
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1781
1798
|
officeId?: string | null | undefined;
|
|
1782
1799
|
office?: {
|
|
1783
|
-
id: string;
|
|
1784
1800
|
name: string;
|
|
1801
|
+
id: string;
|
|
1785
1802
|
managers?: {
|
|
1786
1803
|
id: string;
|
|
1787
1804
|
lastName: string;
|
|
@@ -1793,20 +1810,21 @@ export declare const callHistoryContract: {
|
|
|
1793
1810
|
lastName: string;
|
|
1794
1811
|
firstName: string;
|
|
1795
1812
|
}[] | undefined;
|
|
1813
|
+
dialpadUserId?: string | null | undefined;
|
|
1796
1814
|
deletedAt?: string | null | undefined;
|
|
1797
1815
|
}, {
|
|
1798
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1799
|
-
id: string;
|
|
1800
|
-
updatedAt: string | Date;
|
|
1801
|
-
createdAt: string | Date;
|
|
1802
1816
|
email: string;
|
|
1817
|
+
createdAt: string | Date;
|
|
1818
|
+
updatedAt: string | Date;
|
|
1819
|
+
id: string;
|
|
1820
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1803
1821
|
lastName: string;
|
|
1804
1822
|
firstName: string;
|
|
1805
1823
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1806
1824
|
officeId?: string | null | undefined;
|
|
1807
1825
|
office?: {
|
|
1808
|
-
id: string;
|
|
1809
1826
|
name: string;
|
|
1827
|
+
id: string;
|
|
1810
1828
|
managers?: {
|
|
1811
1829
|
id: string;
|
|
1812
1830
|
lastName: string;
|
|
@@ -1824,6 +1842,7 @@ export declare const callHistoryContract: {
|
|
|
1824
1842
|
lastName: string;
|
|
1825
1843
|
firstName: string;
|
|
1826
1844
|
}[] | undefined;
|
|
1845
|
+
dialpadUserId?: string | null | undefined;
|
|
1827
1846
|
deletedAt?: string | Date | null | undefined;
|
|
1828
1847
|
}>>;
|
|
1829
1848
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1836,44 +1855,34 @@ export declare const callHistoryContract: {
|
|
|
1836
1855
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1837
1856
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1838
1857
|
}, "strip", z.ZodTypeAny, {
|
|
1839
|
-
id: string;
|
|
1840
1858
|
name: string;
|
|
1841
|
-
updatedAt: string;
|
|
1842
1859
|
createdAt: string;
|
|
1843
|
-
|
|
1860
|
+
updatedAt: string;
|
|
1844
1861
|
id: string;
|
|
1862
|
+
}, {
|
|
1845
1863
|
name: string;
|
|
1846
|
-
updatedAt: string | Date;
|
|
1847
1864
|
createdAt: string | Date;
|
|
1865
|
+
updatedAt: string | Date;
|
|
1866
|
+
id: string;
|
|
1848
1867
|
}>>>;
|
|
1849
1868
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1850
1869
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1851
1870
|
}, "strip", z.ZodTypeAny, {
|
|
1852
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1853
|
-
id: string;
|
|
1854
|
-
updatedAt: string;
|
|
1855
1871
|
createdAt: string;
|
|
1856
|
-
|
|
1872
|
+
updatedAt: string;
|
|
1873
|
+
id: string;
|
|
1874
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1857
1875
|
agentId: string | null;
|
|
1858
1876
|
leadId: string;
|
|
1859
1877
|
assignedAt: string;
|
|
1860
1878
|
assignedBy: string | null;
|
|
1861
|
-
|
|
1862
|
-
id: string;
|
|
1863
|
-
name: string;
|
|
1864
|
-
updatedAt: string;
|
|
1865
|
-
createdAt: string;
|
|
1866
|
-
} | null | undefined;
|
|
1867
|
-
lead?: {
|
|
1868
|
-
name: string;
|
|
1869
|
-
phoneNumber: string;
|
|
1870
|
-
} | undefined;
|
|
1879
|
+
companyId: string | null;
|
|
1871
1880
|
agent?: {
|
|
1872
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1873
|
-
id: string;
|
|
1874
|
-
updatedAt: string;
|
|
1875
|
-
createdAt: string;
|
|
1876
1881
|
email: string;
|
|
1882
|
+
createdAt: string;
|
|
1883
|
+
updatedAt: string;
|
|
1884
|
+
id: string;
|
|
1885
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1877
1886
|
lastName: string;
|
|
1878
1887
|
firstName: string;
|
|
1879
1888
|
phoneNumbers: {
|
|
@@ -1885,8 +1894,8 @@ export declare const callHistoryContract: {
|
|
|
1885
1894
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1886
1895
|
officeId?: string | null | undefined;
|
|
1887
1896
|
office?: {
|
|
1888
|
-
id: string;
|
|
1889
1897
|
name: string;
|
|
1898
|
+
id: string;
|
|
1890
1899
|
managers?: {
|
|
1891
1900
|
id: string;
|
|
1892
1901
|
lastName: string;
|
|
@@ -1898,41 +1907,42 @@ export declare const callHistoryContract: {
|
|
|
1898
1907
|
lastName: string;
|
|
1899
1908
|
firstName: string;
|
|
1900
1909
|
}[] | undefined;
|
|
1910
|
+
dialpadUserId?: string | null | undefined;
|
|
1901
1911
|
deletedAt?: string | null | undefined;
|
|
1902
1912
|
} | undefined;
|
|
1913
|
+
lead?: {
|
|
1914
|
+
name: string;
|
|
1915
|
+
phoneNumber: string;
|
|
1916
|
+
} | undefined;
|
|
1917
|
+
company?: {
|
|
1918
|
+
name: string;
|
|
1919
|
+
createdAt: string;
|
|
1920
|
+
updatedAt: string;
|
|
1921
|
+
id: string;
|
|
1922
|
+
} | null | undefined;
|
|
1903
1923
|
}, {
|
|
1904
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1905
|
-
id: string;
|
|
1906
|
-
updatedAt: string | Date;
|
|
1907
1924
|
createdAt: string | Date;
|
|
1908
|
-
|
|
1925
|
+
updatedAt: string | Date;
|
|
1926
|
+
id: string;
|
|
1927
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1909
1928
|
agentId: string | null;
|
|
1910
1929
|
leadId: string;
|
|
1911
1930
|
assignedAt: string | Date;
|
|
1912
1931
|
assignedBy: string | null;
|
|
1913
|
-
|
|
1914
|
-
id: string;
|
|
1915
|
-
name: string;
|
|
1916
|
-
updatedAt: string | Date;
|
|
1917
|
-
createdAt: string | Date;
|
|
1918
|
-
} | null | undefined;
|
|
1919
|
-
lead?: {
|
|
1920
|
-
name: string;
|
|
1921
|
-
phoneNumber: string;
|
|
1922
|
-
} | undefined;
|
|
1932
|
+
companyId: string | null;
|
|
1923
1933
|
agent?: {
|
|
1924
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1925
|
-
id: string;
|
|
1926
|
-
updatedAt: string | Date;
|
|
1927
|
-
createdAt: string | Date;
|
|
1928
1934
|
email: string;
|
|
1935
|
+
createdAt: string | Date;
|
|
1936
|
+
updatedAt: string | Date;
|
|
1937
|
+
id: string;
|
|
1938
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1929
1939
|
lastName: string;
|
|
1930
1940
|
firstName: string;
|
|
1931
1941
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1932
1942
|
officeId?: string | null | undefined;
|
|
1933
1943
|
office?: {
|
|
1934
|
-
id: string;
|
|
1935
1944
|
name: string;
|
|
1945
|
+
id: string;
|
|
1936
1946
|
managers?: {
|
|
1937
1947
|
id: string;
|
|
1938
1948
|
lastName: string;
|
|
@@ -1950,8 +1960,19 @@ export declare const callHistoryContract: {
|
|
|
1950
1960
|
lastName: string;
|
|
1951
1961
|
firstName: string;
|
|
1952
1962
|
}[] | undefined;
|
|
1963
|
+
dialpadUserId?: string | null | undefined;
|
|
1953
1964
|
deletedAt?: string | Date | null | undefined;
|
|
1954
1965
|
} | undefined;
|
|
1966
|
+
lead?: {
|
|
1967
|
+
name: string;
|
|
1968
|
+
phoneNumber: string;
|
|
1969
|
+
} | undefined;
|
|
1970
|
+
company?: {
|
|
1971
|
+
name: string;
|
|
1972
|
+
createdAt: string | Date;
|
|
1973
|
+
updatedAt: string | Date;
|
|
1974
|
+
id: string;
|
|
1975
|
+
} | null | undefined;
|
|
1955
1976
|
}>>>;
|
|
1956
1977
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1957
1978
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -1961,43 +1982,33 @@ export declare const callHistoryContract: {
|
|
|
1961
1982
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1962
1983
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1963
1984
|
}, "strip", z.ZodTypeAny, {
|
|
1964
|
-
id: string;
|
|
1965
|
-
updatedAt: string;
|
|
1966
1985
|
createdAt: string;
|
|
1967
|
-
|
|
1986
|
+
updatedAt: string;
|
|
1987
|
+
id: string;
|
|
1968
1988
|
rating: CallRating;
|
|
1989
|
+
notes: string | null;
|
|
1969
1990
|
callType: CallType;
|
|
1970
1991
|
leadSource: LeadSource;
|
|
1971
1992
|
ratingWeight: number;
|
|
1972
|
-
|
|
1993
|
+
assignmentId: string;
|
|
1973
1994
|
agentId?: string | undefined;
|
|
1974
1995
|
leadId?: string | undefined;
|
|
1975
1996
|
assignment?: {
|
|
1976
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1977
|
-
id: string;
|
|
1978
|
-
updatedAt: string;
|
|
1979
1997
|
createdAt: string;
|
|
1980
|
-
|
|
1998
|
+
updatedAt: string;
|
|
1999
|
+
id: string;
|
|
2000
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1981
2001
|
agentId: string | null;
|
|
1982
2002
|
leadId: string;
|
|
1983
2003
|
assignedAt: string;
|
|
1984
2004
|
assignedBy: string | null;
|
|
1985
|
-
|
|
1986
|
-
id: string;
|
|
1987
|
-
name: string;
|
|
1988
|
-
updatedAt: string;
|
|
1989
|
-
createdAt: string;
|
|
1990
|
-
} | null | undefined;
|
|
1991
|
-
lead?: {
|
|
1992
|
-
name: string;
|
|
1993
|
-
phoneNumber: string;
|
|
1994
|
-
} | undefined;
|
|
2005
|
+
companyId: string | null;
|
|
1995
2006
|
agent?: {
|
|
1996
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1997
|
-
id: string;
|
|
1998
|
-
updatedAt: string;
|
|
1999
|
-
createdAt: string;
|
|
2000
2007
|
email: string;
|
|
2008
|
+
createdAt: string;
|
|
2009
|
+
updatedAt: string;
|
|
2010
|
+
id: string;
|
|
2011
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2001
2012
|
lastName: string;
|
|
2002
2013
|
firstName: string;
|
|
2003
2014
|
phoneNumbers: {
|
|
@@ -2009,8 +2020,8 @@ export declare const callHistoryContract: {
|
|
|
2009
2020
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2010
2021
|
officeId?: string | null | undefined;
|
|
2011
2022
|
office?: {
|
|
2012
|
-
id: string;
|
|
2013
2023
|
name: string;
|
|
2024
|
+
id: string;
|
|
2014
2025
|
managers?: {
|
|
2015
2026
|
id: string;
|
|
2016
2027
|
lastName: string;
|
|
@@ -2022,54 +2033,55 @@ export declare const callHistoryContract: {
|
|
|
2022
2033
|
lastName: string;
|
|
2023
2034
|
firstName: string;
|
|
2024
2035
|
}[] | undefined;
|
|
2036
|
+
dialpadUserId?: string | null | undefined;
|
|
2025
2037
|
deletedAt?: string | null | undefined;
|
|
2026
2038
|
} | undefined;
|
|
2039
|
+
lead?: {
|
|
2040
|
+
name: string;
|
|
2041
|
+
phoneNumber: string;
|
|
2042
|
+
} | undefined;
|
|
2043
|
+
company?: {
|
|
2044
|
+
name: string;
|
|
2045
|
+
createdAt: string;
|
|
2046
|
+
updatedAt: string;
|
|
2047
|
+
id: string;
|
|
2048
|
+
} | null | undefined;
|
|
2027
2049
|
} | null | undefined;
|
|
2028
2050
|
}, {
|
|
2029
|
-
id: string;
|
|
2030
|
-
updatedAt: string | Date;
|
|
2031
2051
|
createdAt: string | Date;
|
|
2032
|
-
|
|
2052
|
+
updatedAt: string | Date;
|
|
2053
|
+
id: string;
|
|
2033
2054
|
rating: CallRating;
|
|
2055
|
+
notes: string | null;
|
|
2034
2056
|
callType: CallType;
|
|
2035
2057
|
leadSource: LeadSource;
|
|
2036
2058
|
ratingWeight: number;
|
|
2037
|
-
|
|
2059
|
+
assignmentId: string;
|
|
2038
2060
|
agentId?: string | undefined;
|
|
2039
2061
|
leadId?: string | undefined;
|
|
2040
2062
|
assignment?: {
|
|
2041
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2042
|
-
id: string;
|
|
2043
|
-
updatedAt: string | Date;
|
|
2044
2063
|
createdAt: string | Date;
|
|
2045
|
-
|
|
2064
|
+
updatedAt: string | Date;
|
|
2065
|
+
id: string;
|
|
2066
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2046
2067
|
agentId: string | null;
|
|
2047
2068
|
leadId: string;
|
|
2048
2069
|
assignedAt: string | Date;
|
|
2049
2070
|
assignedBy: string | null;
|
|
2050
|
-
|
|
2051
|
-
id: string;
|
|
2052
|
-
name: string;
|
|
2053
|
-
updatedAt: string | Date;
|
|
2054
|
-
createdAt: string | Date;
|
|
2055
|
-
} | null | undefined;
|
|
2056
|
-
lead?: {
|
|
2057
|
-
name: string;
|
|
2058
|
-
phoneNumber: string;
|
|
2059
|
-
} | undefined;
|
|
2071
|
+
companyId: string | null;
|
|
2060
2072
|
agent?: {
|
|
2061
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2062
|
-
id: string;
|
|
2063
|
-
updatedAt: string | Date;
|
|
2064
|
-
createdAt: string | Date;
|
|
2065
2073
|
email: string;
|
|
2074
|
+
createdAt: string | Date;
|
|
2075
|
+
updatedAt: string | Date;
|
|
2076
|
+
id: string;
|
|
2077
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2066
2078
|
lastName: string;
|
|
2067
2079
|
firstName: string;
|
|
2068
2080
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2069
2081
|
officeId?: string | null | undefined;
|
|
2070
2082
|
office?: {
|
|
2071
|
-
id: string;
|
|
2072
2083
|
name: string;
|
|
2084
|
+
id: string;
|
|
2073
2085
|
managers?: {
|
|
2074
2086
|
id: string;
|
|
2075
2087
|
lastName: string;
|
|
@@ -2087,8 +2099,19 @@ export declare const callHistoryContract: {
|
|
|
2087
2099
|
lastName: string;
|
|
2088
2100
|
firstName: string;
|
|
2089
2101
|
}[] | undefined;
|
|
2102
|
+
dialpadUserId?: string | null | undefined;
|
|
2090
2103
|
deletedAt?: string | Date | null | undefined;
|
|
2091
2104
|
} | undefined;
|
|
2105
|
+
lead?: {
|
|
2106
|
+
name: string;
|
|
2107
|
+
phoneNumber: string;
|
|
2108
|
+
} | undefined;
|
|
2109
|
+
company?: {
|
|
2110
|
+
name: string;
|
|
2111
|
+
createdAt: string | Date;
|
|
2112
|
+
updatedAt: string | Date;
|
|
2113
|
+
id: string;
|
|
2114
|
+
} | null | undefined;
|
|
2092
2115
|
} | null | undefined;
|
|
2093
2116
|
}>;
|
|
2094
2117
|
409: z.ZodObject<{
|
|
@@ -2119,6 +2142,9 @@ export declare const callHistoryContract: {
|
|
|
2119
2142
|
};
|
|
2120
2143
|
};
|
|
2121
2144
|
findAll: {
|
|
2145
|
+
metadata: {
|
|
2146
|
+
tags: string[];
|
|
2147
|
+
};
|
|
2122
2148
|
query: z.ZodObject<{
|
|
2123
2149
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
2124
2150
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2170,41 +2196,38 @@ export declare const callHistoryContract: {
|
|
|
2170
2196
|
from?: string | null | undefined;
|
|
2171
2197
|
to?: string | null | undefined;
|
|
2172
2198
|
} | null | undefined;
|
|
2173
|
-
companyId?: string | undefined;
|
|
2174
2199
|
agentId?: string | undefined;
|
|
2200
|
+
phoneNumber?: string | undefined;
|
|
2175
2201
|
rating?: {
|
|
2176
2202
|
from?: CallRating | null | undefined;
|
|
2177
2203
|
to?: CallRating | null | undefined;
|
|
2178
2204
|
} | null | undefined;
|
|
2179
2205
|
callType?: CallType | undefined;
|
|
2206
|
+
companyId?: string | undefined;
|
|
2180
2207
|
leadSource?: LeadSource | undefined;
|
|
2181
2208
|
leadName?: string | undefined;
|
|
2182
|
-
phoneNumber?: string | undefined;
|
|
2183
2209
|
}, {
|
|
2184
2210
|
sort?: {
|
|
2185
2211
|
field: CallHistorySortableFields;
|
|
2186
2212
|
order: "ASC" | "DESC";
|
|
2187
2213
|
}[] | null | undefined;
|
|
2188
|
-
page?: number | undefined;
|
|
2189
|
-
limit?: number | undefined;
|
|
2190
2214
|
createdAt?: {
|
|
2191
2215
|
from?: string | null | undefined;
|
|
2192
2216
|
to?: string | null | undefined;
|
|
2193
2217
|
} | null | undefined;
|
|
2194
|
-
|
|
2218
|
+
page?: number | undefined;
|
|
2219
|
+
limit?: number | undefined;
|
|
2195
2220
|
agentId?: string | undefined;
|
|
2221
|
+
phoneNumber?: string | undefined;
|
|
2196
2222
|
rating?: {
|
|
2197
2223
|
from?: unknown;
|
|
2198
2224
|
to?: unknown;
|
|
2199
2225
|
} | null | undefined;
|
|
2200
2226
|
callType?: CallType | undefined;
|
|
2227
|
+
companyId?: string | undefined;
|
|
2201
2228
|
leadSource?: LeadSource | undefined;
|
|
2202
2229
|
leadName?: string | undefined;
|
|
2203
|
-
phoneNumber?: string | undefined;
|
|
2204
2230
|
}>;
|
|
2205
|
-
metadata: {
|
|
2206
|
-
tags: string[];
|
|
2207
|
-
};
|
|
2208
2231
|
summary: "Get call history records";
|
|
2209
2232
|
method: "GET";
|
|
2210
2233
|
path: "/v2/call-history";
|
|
@@ -2234,7 +2257,7 @@ export declare const callHistoryContract: {
|
|
|
2234
2257
|
details?: unknown;
|
|
2235
2258
|
correlationId?: string | undefined;
|
|
2236
2259
|
}>;
|
|
2237
|
-
|
|
2260
|
+
403: z.ZodObject<{
|
|
2238
2261
|
statusCode: z.ZodNumber;
|
|
2239
2262
|
message: z.ZodString;
|
|
2240
2263
|
code: z.ZodString;
|
|
@@ -2259,7 +2282,7 @@ export declare const callHistoryContract: {
|
|
|
2259
2282
|
details?: unknown;
|
|
2260
2283
|
correlationId?: string | undefined;
|
|
2261
2284
|
}>;
|
|
2262
|
-
|
|
2285
|
+
401: z.ZodObject<{
|
|
2263
2286
|
statusCode: z.ZodNumber;
|
|
2264
2287
|
message: z.ZodString;
|
|
2265
2288
|
code: z.ZodString;
|
|
@@ -2386,34 +2409,23 @@ export declare const callHistoryContract: {
|
|
|
2386
2409
|
id: z.ZodString;
|
|
2387
2410
|
name: z.ZodString;
|
|
2388
2411
|
}, "strip", z.ZodTypeAny, {
|
|
2389
|
-
id: string;
|
|
2390
2412
|
name: string;
|
|
2391
|
-
}, {
|
|
2392
2413
|
id: string;
|
|
2414
|
+
}, {
|
|
2393
2415
|
name: string;
|
|
2416
|
+
id: string;
|
|
2394
2417
|
}>>>;
|
|
2395
2418
|
}, "strip", z.ZodTypeAny, {
|
|
2396
|
-
id: string;
|
|
2397
|
-
updatedAt: string;
|
|
2398
2419
|
createdAt: string;
|
|
2420
|
+
updatedAt: string;
|
|
2421
|
+
id: string;
|
|
2399
2422
|
agentId: string;
|
|
2400
|
-
assignmentId: string;
|
|
2401
2423
|
rating: CallRating;
|
|
2424
|
+
notes: string | null;
|
|
2402
2425
|
callType: CallType;
|
|
2403
2426
|
leadSource: LeadSource;
|
|
2404
2427
|
ratingWeight: number;
|
|
2405
|
-
|
|
2406
|
-
company?: {
|
|
2407
|
-
id: string;
|
|
2408
|
-
name: string;
|
|
2409
|
-
} | null | undefined;
|
|
2410
|
-
assignment?: {
|
|
2411
|
-
agentId: string | null;
|
|
2412
|
-
} | null | undefined;
|
|
2413
|
-
lead?: {
|
|
2414
|
-
name: string;
|
|
2415
|
-
phoneNumber: string;
|
|
2416
|
-
} | null | undefined;
|
|
2428
|
+
assignmentId: string;
|
|
2417
2429
|
agent?: {
|
|
2418
2430
|
id: string;
|
|
2419
2431
|
lastName: string;
|
|
@@ -2426,28 +2438,28 @@ export declare const callHistoryContract: {
|
|
|
2426
2438
|
}[];
|
|
2427
2439
|
deletedAt?: string | null | undefined;
|
|
2428
2440
|
} | null | undefined;
|
|
2441
|
+
lead?: {
|
|
2442
|
+
name: string;
|
|
2443
|
+
phoneNumber: string;
|
|
2444
|
+
} | null | undefined;
|
|
2445
|
+
company?: {
|
|
2446
|
+
name: string;
|
|
2447
|
+
id: string;
|
|
2448
|
+
} | null | undefined;
|
|
2449
|
+
assignment?: {
|
|
2450
|
+
agentId: string | null;
|
|
2451
|
+
} | null | undefined;
|
|
2429
2452
|
}, {
|
|
2430
|
-
id: string;
|
|
2431
|
-
updatedAt: string | Date;
|
|
2432
2453
|
createdAt: string | Date;
|
|
2454
|
+
updatedAt: string | Date;
|
|
2455
|
+
id: string;
|
|
2433
2456
|
agentId: string;
|
|
2434
|
-
assignmentId: string;
|
|
2435
2457
|
rating: CallRating;
|
|
2458
|
+
notes: string | null;
|
|
2436
2459
|
callType: CallType;
|
|
2437
2460
|
leadSource: LeadSource;
|
|
2438
2461
|
ratingWeight: number;
|
|
2439
|
-
|
|
2440
|
-
company?: {
|
|
2441
|
-
id: string;
|
|
2442
|
-
name: string;
|
|
2443
|
-
} | null | undefined;
|
|
2444
|
-
assignment?: {
|
|
2445
|
-
agentId: string | null;
|
|
2446
|
-
} | null | undefined;
|
|
2447
|
-
lead?: {
|
|
2448
|
-
name: string;
|
|
2449
|
-
phoneNumber: string;
|
|
2450
|
-
} | null | undefined;
|
|
2462
|
+
assignmentId: string;
|
|
2451
2463
|
agent?: {
|
|
2452
2464
|
id: string;
|
|
2453
2465
|
lastName: string;
|
|
@@ -2460,6 +2472,17 @@ export declare const callHistoryContract: {
|
|
|
2460
2472
|
}[] | undefined;
|
|
2461
2473
|
deletedAt?: string | Date | null | undefined;
|
|
2462
2474
|
} | null | undefined;
|
|
2475
|
+
lead?: {
|
|
2476
|
+
name: string;
|
|
2477
|
+
phoneNumber: string;
|
|
2478
|
+
} | null | undefined;
|
|
2479
|
+
company?: {
|
|
2480
|
+
name: string;
|
|
2481
|
+
id: string;
|
|
2482
|
+
} | null | undefined;
|
|
2483
|
+
assignment?: {
|
|
2484
|
+
agentId: string | null;
|
|
2485
|
+
} | null | undefined;
|
|
2463
2486
|
}>, "many">;
|
|
2464
2487
|
totalCount: z.ZodNumber;
|
|
2465
2488
|
limit: z.ZodNumber;
|
|
@@ -2469,27 +2492,16 @@ export declare const callHistoryContract: {
|
|
|
2469
2492
|
}, "strip", z.ZodTypeAny, {
|
|
2470
2493
|
limit: number;
|
|
2471
2494
|
items: {
|
|
2472
|
-
id: string;
|
|
2473
|
-
updatedAt: string;
|
|
2474
2495
|
createdAt: string;
|
|
2496
|
+
updatedAt: string;
|
|
2497
|
+
id: string;
|
|
2475
2498
|
agentId: string;
|
|
2476
|
-
assignmentId: string;
|
|
2477
2499
|
rating: CallRating;
|
|
2500
|
+
notes: string | null;
|
|
2478
2501
|
callType: CallType;
|
|
2479
2502
|
leadSource: LeadSource;
|
|
2480
2503
|
ratingWeight: number;
|
|
2481
|
-
|
|
2482
|
-
company?: {
|
|
2483
|
-
id: string;
|
|
2484
|
-
name: string;
|
|
2485
|
-
} | null | undefined;
|
|
2486
|
-
assignment?: {
|
|
2487
|
-
agentId: string | null;
|
|
2488
|
-
} | null | undefined;
|
|
2489
|
-
lead?: {
|
|
2490
|
-
name: string;
|
|
2491
|
-
phoneNumber: string;
|
|
2492
|
-
} | null | undefined;
|
|
2504
|
+
assignmentId: string;
|
|
2493
2505
|
agent?: {
|
|
2494
2506
|
id: string;
|
|
2495
2507
|
lastName: string;
|
|
@@ -2502,6 +2514,17 @@ export declare const callHistoryContract: {
|
|
|
2502
2514
|
}[];
|
|
2503
2515
|
deletedAt?: string | null | undefined;
|
|
2504
2516
|
} | null | undefined;
|
|
2517
|
+
lead?: {
|
|
2518
|
+
name: string;
|
|
2519
|
+
phoneNumber: string;
|
|
2520
|
+
} | null | undefined;
|
|
2521
|
+
company?: {
|
|
2522
|
+
name: string;
|
|
2523
|
+
id: string;
|
|
2524
|
+
} | null | undefined;
|
|
2525
|
+
assignment?: {
|
|
2526
|
+
agentId: string | null;
|
|
2527
|
+
} | null | undefined;
|
|
2505
2528
|
}[];
|
|
2506
2529
|
totalCount: number;
|
|
2507
2530
|
skip: number;
|
|
@@ -2510,27 +2533,16 @@ export declare const callHistoryContract: {
|
|
|
2510
2533
|
}, {
|
|
2511
2534
|
limit: number;
|
|
2512
2535
|
items: {
|
|
2513
|
-
id: string;
|
|
2514
|
-
updatedAt: string | Date;
|
|
2515
2536
|
createdAt: string | Date;
|
|
2537
|
+
updatedAt: string | Date;
|
|
2538
|
+
id: string;
|
|
2516
2539
|
agentId: string;
|
|
2517
|
-
assignmentId: string;
|
|
2518
2540
|
rating: CallRating;
|
|
2541
|
+
notes: string | null;
|
|
2519
2542
|
callType: CallType;
|
|
2520
2543
|
leadSource: LeadSource;
|
|
2521
2544
|
ratingWeight: number;
|
|
2522
|
-
|
|
2523
|
-
company?: {
|
|
2524
|
-
id: string;
|
|
2525
|
-
name: string;
|
|
2526
|
-
} | null | undefined;
|
|
2527
|
-
assignment?: {
|
|
2528
|
-
agentId: string | null;
|
|
2529
|
-
} | null | undefined;
|
|
2530
|
-
lead?: {
|
|
2531
|
-
name: string;
|
|
2532
|
-
phoneNumber: string;
|
|
2533
|
-
} | null | undefined;
|
|
2545
|
+
assignmentId: string;
|
|
2534
2546
|
agent?: {
|
|
2535
2547
|
id: string;
|
|
2536
2548
|
lastName: string;
|
|
@@ -2543,6 +2555,17 @@ export declare const callHistoryContract: {
|
|
|
2543
2555
|
}[] | undefined;
|
|
2544
2556
|
deletedAt?: string | Date | null | undefined;
|
|
2545
2557
|
} | null | undefined;
|
|
2558
|
+
lead?: {
|
|
2559
|
+
name: string;
|
|
2560
|
+
phoneNumber: string;
|
|
2561
|
+
} | null | undefined;
|
|
2562
|
+
company?: {
|
|
2563
|
+
name: string;
|
|
2564
|
+
id: string;
|
|
2565
|
+
} | null | undefined;
|
|
2566
|
+
assignment?: {
|
|
2567
|
+
agentId: string | null;
|
|
2568
|
+
} | null | undefined;
|
|
2546
2569
|
}[];
|
|
2547
2570
|
totalCount: number;
|
|
2548
2571
|
skip: number;
|
|
@@ -2591,7 +2614,7 @@ export declare const callHistoryContract: {
|
|
|
2591
2614
|
details?: unknown;
|
|
2592
2615
|
correlationId?: string | undefined;
|
|
2593
2616
|
}>;
|
|
2594
|
-
|
|
2617
|
+
403: z.ZodObject<{
|
|
2595
2618
|
statusCode: z.ZodNumber;
|
|
2596
2619
|
message: z.ZodString;
|
|
2597
2620
|
code: z.ZodString;
|
|
@@ -2616,7 +2639,7 @@ export declare const callHistoryContract: {
|
|
|
2616
2639
|
details?: unknown;
|
|
2617
2640
|
correlationId?: string | undefined;
|
|
2618
2641
|
}>;
|
|
2619
|
-
|
|
2642
|
+
401: z.ZodObject<{
|
|
2620
2643
|
statusCode: z.ZodNumber;
|
|
2621
2644
|
message: z.ZodString;
|
|
2622
2645
|
code: z.ZodString;
|
|
@@ -2725,16 +2748,16 @@ export declare const callHistoryContract: {
|
|
|
2725
2748
|
firstName: string;
|
|
2726
2749
|
}>, "many">>;
|
|
2727
2750
|
}, "strip", z.ZodTypeAny, {
|
|
2728
|
-
id: string;
|
|
2729
2751
|
name: string;
|
|
2752
|
+
id: string;
|
|
2730
2753
|
managers?: {
|
|
2731
2754
|
id: string;
|
|
2732
2755
|
lastName: string;
|
|
2733
2756
|
firstName: string;
|
|
2734
2757
|
}[] | undefined;
|
|
2735
2758
|
}, {
|
|
2736
|
-
id: string;
|
|
2737
2759
|
name: string;
|
|
2760
|
+
id: string;
|
|
2738
2761
|
managers?: {
|
|
2739
2762
|
id: string;
|
|
2740
2763
|
lastName: string;
|
|
@@ -2755,15 +2778,16 @@ export declare const callHistoryContract: {
|
|
|
2755
2778
|
firstName: string;
|
|
2756
2779
|
}>, "many">>;
|
|
2757
2780
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2781
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
2758
2782
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2759
2783
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2760
2784
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2761
2785
|
}, "strip", z.ZodTypeAny, {
|
|
2762
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2763
|
-
id: string;
|
|
2764
|
-
updatedAt: string;
|
|
2765
|
-
createdAt: string;
|
|
2766
2786
|
email: string;
|
|
2787
|
+
createdAt: string;
|
|
2788
|
+
updatedAt: string;
|
|
2789
|
+
id: string;
|
|
2790
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2767
2791
|
lastName: string;
|
|
2768
2792
|
firstName: string;
|
|
2769
2793
|
phoneNumbers: {
|
|
@@ -2775,8 +2799,8 @@ export declare const callHistoryContract: {
|
|
|
2775
2799
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2776
2800
|
officeId?: string | null | undefined;
|
|
2777
2801
|
office?: {
|
|
2778
|
-
id: string;
|
|
2779
2802
|
name: string;
|
|
2803
|
+
id: string;
|
|
2780
2804
|
managers?: {
|
|
2781
2805
|
id: string;
|
|
2782
2806
|
lastName: string;
|
|
@@ -2788,20 +2812,21 @@ export declare const callHistoryContract: {
|
|
|
2788
2812
|
lastName: string;
|
|
2789
2813
|
firstName: string;
|
|
2790
2814
|
}[] | undefined;
|
|
2815
|
+
dialpadUserId?: string | null | undefined;
|
|
2791
2816
|
deletedAt?: string | null | undefined;
|
|
2792
2817
|
}, {
|
|
2793
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2794
|
-
id: string;
|
|
2795
|
-
updatedAt: string | Date;
|
|
2796
|
-
createdAt: string | Date;
|
|
2797
2818
|
email: string;
|
|
2819
|
+
createdAt: string | Date;
|
|
2820
|
+
updatedAt: string | Date;
|
|
2821
|
+
id: string;
|
|
2822
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2798
2823
|
lastName: string;
|
|
2799
2824
|
firstName: string;
|
|
2800
2825
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2801
2826
|
officeId?: string | null | undefined;
|
|
2802
2827
|
office?: {
|
|
2803
|
-
id: string;
|
|
2804
2828
|
name: string;
|
|
2829
|
+
id: string;
|
|
2805
2830
|
managers?: {
|
|
2806
2831
|
id: string;
|
|
2807
2832
|
lastName: string;
|
|
@@ -2819,6 +2844,7 @@ export declare const callHistoryContract: {
|
|
|
2819
2844
|
lastName: string;
|
|
2820
2845
|
firstName: string;
|
|
2821
2846
|
}[] | undefined;
|
|
2847
|
+
dialpadUserId?: string | null | undefined;
|
|
2822
2848
|
deletedAt?: string | Date | null | undefined;
|
|
2823
2849
|
}>>;
|
|
2824
2850
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2831,44 +2857,34 @@ export declare const callHistoryContract: {
|
|
|
2831
2857
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2832
2858
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2833
2859
|
}, "strip", z.ZodTypeAny, {
|
|
2834
|
-
id: string;
|
|
2835
2860
|
name: string;
|
|
2836
|
-
updatedAt: string;
|
|
2837
2861
|
createdAt: string;
|
|
2838
|
-
|
|
2862
|
+
updatedAt: string;
|
|
2839
2863
|
id: string;
|
|
2864
|
+
}, {
|
|
2840
2865
|
name: string;
|
|
2841
|
-
updatedAt: string | Date;
|
|
2842
2866
|
createdAt: string | Date;
|
|
2867
|
+
updatedAt: string | Date;
|
|
2868
|
+
id: string;
|
|
2843
2869
|
}>>>;
|
|
2844
2870
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2845
2871
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2846
2872
|
}, "strip", z.ZodTypeAny, {
|
|
2847
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2848
|
-
id: string;
|
|
2849
|
-
updatedAt: string;
|
|
2850
2873
|
createdAt: string;
|
|
2851
|
-
|
|
2874
|
+
updatedAt: string;
|
|
2875
|
+
id: string;
|
|
2876
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2852
2877
|
agentId: string | null;
|
|
2853
2878
|
leadId: string;
|
|
2854
2879
|
assignedAt: string;
|
|
2855
2880
|
assignedBy: string | null;
|
|
2856
|
-
|
|
2857
|
-
id: string;
|
|
2858
|
-
name: string;
|
|
2859
|
-
updatedAt: string;
|
|
2860
|
-
createdAt: string;
|
|
2861
|
-
} | null | undefined;
|
|
2862
|
-
lead?: {
|
|
2863
|
-
name: string;
|
|
2864
|
-
phoneNumber: string;
|
|
2865
|
-
} | undefined;
|
|
2881
|
+
companyId: string | null;
|
|
2866
2882
|
agent?: {
|
|
2867
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2868
|
-
id: string;
|
|
2869
|
-
updatedAt: string;
|
|
2870
|
-
createdAt: string;
|
|
2871
2883
|
email: string;
|
|
2884
|
+
createdAt: string;
|
|
2885
|
+
updatedAt: string;
|
|
2886
|
+
id: string;
|
|
2887
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2872
2888
|
lastName: string;
|
|
2873
2889
|
firstName: string;
|
|
2874
2890
|
phoneNumbers: {
|
|
@@ -2880,8 +2896,8 @@ export declare const callHistoryContract: {
|
|
|
2880
2896
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2881
2897
|
officeId?: string | null | undefined;
|
|
2882
2898
|
office?: {
|
|
2883
|
-
id: string;
|
|
2884
2899
|
name: string;
|
|
2900
|
+
id: string;
|
|
2885
2901
|
managers?: {
|
|
2886
2902
|
id: string;
|
|
2887
2903
|
lastName: string;
|
|
@@ -2893,41 +2909,42 @@ export declare const callHistoryContract: {
|
|
|
2893
2909
|
lastName: string;
|
|
2894
2910
|
firstName: string;
|
|
2895
2911
|
}[] | undefined;
|
|
2912
|
+
dialpadUserId?: string | null | undefined;
|
|
2896
2913
|
deletedAt?: string | null | undefined;
|
|
2897
2914
|
} | undefined;
|
|
2915
|
+
lead?: {
|
|
2916
|
+
name: string;
|
|
2917
|
+
phoneNumber: string;
|
|
2918
|
+
} | undefined;
|
|
2919
|
+
company?: {
|
|
2920
|
+
name: string;
|
|
2921
|
+
createdAt: string;
|
|
2922
|
+
updatedAt: string;
|
|
2923
|
+
id: string;
|
|
2924
|
+
} | null | undefined;
|
|
2898
2925
|
}, {
|
|
2899
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2900
|
-
id: string;
|
|
2901
|
-
updatedAt: string | Date;
|
|
2902
2926
|
createdAt: string | Date;
|
|
2903
|
-
|
|
2927
|
+
updatedAt: string | Date;
|
|
2928
|
+
id: string;
|
|
2929
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2904
2930
|
agentId: string | null;
|
|
2905
2931
|
leadId: string;
|
|
2906
2932
|
assignedAt: string | Date;
|
|
2907
2933
|
assignedBy: string | null;
|
|
2908
|
-
|
|
2909
|
-
id: string;
|
|
2910
|
-
name: string;
|
|
2911
|
-
updatedAt: string | Date;
|
|
2912
|
-
createdAt: string | Date;
|
|
2913
|
-
} | null | undefined;
|
|
2914
|
-
lead?: {
|
|
2915
|
-
name: string;
|
|
2916
|
-
phoneNumber: string;
|
|
2917
|
-
} | undefined;
|
|
2934
|
+
companyId: string | null;
|
|
2918
2935
|
agent?: {
|
|
2919
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2920
|
-
id: string;
|
|
2921
|
-
updatedAt: string | Date;
|
|
2922
|
-
createdAt: string | Date;
|
|
2923
2936
|
email: string;
|
|
2937
|
+
createdAt: string | Date;
|
|
2938
|
+
updatedAt: string | Date;
|
|
2939
|
+
id: string;
|
|
2940
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2924
2941
|
lastName: string;
|
|
2925
2942
|
firstName: string;
|
|
2926
2943
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2927
2944
|
officeId?: string | null | undefined;
|
|
2928
2945
|
office?: {
|
|
2929
|
-
id: string;
|
|
2930
2946
|
name: string;
|
|
2947
|
+
id: string;
|
|
2931
2948
|
managers?: {
|
|
2932
2949
|
id: string;
|
|
2933
2950
|
lastName: string;
|
|
@@ -2945,8 +2962,19 @@ export declare const callHistoryContract: {
|
|
|
2945
2962
|
lastName: string;
|
|
2946
2963
|
firstName: string;
|
|
2947
2964
|
}[] | undefined;
|
|
2965
|
+
dialpadUserId?: string | null | undefined;
|
|
2948
2966
|
deletedAt?: string | Date | null | undefined;
|
|
2949
2967
|
} | undefined;
|
|
2968
|
+
lead?: {
|
|
2969
|
+
name: string;
|
|
2970
|
+
phoneNumber: string;
|
|
2971
|
+
} | undefined;
|
|
2972
|
+
company?: {
|
|
2973
|
+
name: string;
|
|
2974
|
+
createdAt: string | Date;
|
|
2975
|
+
updatedAt: string | Date;
|
|
2976
|
+
id: string;
|
|
2977
|
+
} | null | undefined;
|
|
2950
2978
|
}>>>;
|
|
2951
2979
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
2952
2980
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -2956,43 +2984,33 @@ export declare const callHistoryContract: {
|
|
|
2956
2984
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2957
2985
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2958
2986
|
}, "strip", z.ZodTypeAny, {
|
|
2959
|
-
id: string;
|
|
2960
|
-
updatedAt: string;
|
|
2961
2987
|
createdAt: string;
|
|
2962
|
-
|
|
2988
|
+
updatedAt: string;
|
|
2989
|
+
id: string;
|
|
2963
2990
|
rating: CallRating;
|
|
2991
|
+
notes: string | null;
|
|
2964
2992
|
callType: CallType;
|
|
2965
2993
|
leadSource: LeadSource;
|
|
2966
2994
|
ratingWeight: number;
|
|
2967
|
-
|
|
2995
|
+
assignmentId: string;
|
|
2968
2996
|
agentId?: string | undefined;
|
|
2969
2997
|
leadId?: string | undefined;
|
|
2970
2998
|
assignment?: {
|
|
2971
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2972
|
-
id: string;
|
|
2973
|
-
updatedAt: string;
|
|
2974
2999
|
createdAt: string;
|
|
2975
|
-
|
|
3000
|
+
updatedAt: string;
|
|
3001
|
+
id: string;
|
|
3002
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2976
3003
|
agentId: string | null;
|
|
2977
3004
|
leadId: string;
|
|
2978
3005
|
assignedAt: string;
|
|
2979
3006
|
assignedBy: string | null;
|
|
2980
|
-
|
|
2981
|
-
id: string;
|
|
2982
|
-
name: string;
|
|
2983
|
-
updatedAt: string;
|
|
2984
|
-
createdAt: string;
|
|
2985
|
-
} | null | undefined;
|
|
2986
|
-
lead?: {
|
|
2987
|
-
name: string;
|
|
2988
|
-
phoneNumber: string;
|
|
2989
|
-
} | undefined;
|
|
3007
|
+
companyId: string | null;
|
|
2990
3008
|
agent?: {
|
|
2991
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2992
|
-
id: string;
|
|
2993
|
-
updatedAt: string;
|
|
2994
|
-
createdAt: string;
|
|
2995
3009
|
email: string;
|
|
3010
|
+
createdAt: string;
|
|
3011
|
+
updatedAt: string;
|
|
3012
|
+
id: string;
|
|
3013
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2996
3014
|
lastName: string;
|
|
2997
3015
|
firstName: string;
|
|
2998
3016
|
phoneNumbers: {
|
|
@@ -3004,8 +3022,8 @@ export declare const callHistoryContract: {
|
|
|
3004
3022
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3005
3023
|
officeId?: string | null | undefined;
|
|
3006
3024
|
office?: {
|
|
3007
|
-
id: string;
|
|
3008
3025
|
name: string;
|
|
3026
|
+
id: string;
|
|
3009
3027
|
managers?: {
|
|
3010
3028
|
id: string;
|
|
3011
3029
|
lastName: string;
|
|
@@ -3017,54 +3035,55 @@ export declare const callHistoryContract: {
|
|
|
3017
3035
|
lastName: string;
|
|
3018
3036
|
firstName: string;
|
|
3019
3037
|
}[] | undefined;
|
|
3038
|
+
dialpadUserId?: string | null | undefined;
|
|
3020
3039
|
deletedAt?: string | null | undefined;
|
|
3021
3040
|
} | undefined;
|
|
3041
|
+
lead?: {
|
|
3042
|
+
name: string;
|
|
3043
|
+
phoneNumber: string;
|
|
3044
|
+
} | undefined;
|
|
3045
|
+
company?: {
|
|
3046
|
+
name: string;
|
|
3047
|
+
createdAt: string;
|
|
3048
|
+
updatedAt: string;
|
|
3049
|
+
id: string;
|
|
3050
|
+
} | null | undefined;
|
|
3022
3051
|
} | null | undefined;
|
|
3023
3052
|
}, {
|
|
3024
|
-
id: string;
|
|
3025
|
-
updatedAt: string | Date;
|
|
3026
3053
|
createdAt: string | Date;
|
|
3027
|
-
|
|
3054
|
+
updatedAt: string | Date;
|
|
3055
|
+
id: string;
|
|
3028
3056
|
rating: CallRating;
|
|
3057
|
+
notes: string | null;
|
|
3029
3058
|
callType: CallType;
|
|
3030
3059
|
leadSource: LeadSource;
|
|
3031
3060
|
ratingWeight: number;
|
|
3032
|
-
|
|
3061
|
+
assignmentId: string;
|
|
3033
3062
|
agentId?: string | undefined;
|
|
3034
3063
|
leadId?: string | undefined;
|
|
3035
3064
|
assignment?: {
|
|
3036
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3037
|
-
id: string;
|
|
3038
|
-
updatedAt: string | Date;
|
|
3039
3065
|
createdAt: string | Date;
|
|
3040
|
-
|
|
3066
|
+
updatedAt: string | Date;
|
|
3067
|
+
id: string;
|
|
3068
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3041
3069
|
agentId: string | null;
|
|
3042
3070
|
leadId: string;
|
|
3043
3071
|
assignedAt: string | Date;
|
|
3044
3072
|
assignedBy: string | null;
|
|
3045
|
-
|
|
3046
|
-
id: string;
|
|
3047
|
-
name: string;
|
|
3048
|
-
updatedAt: string | Date;
|
|
3049
|
-
createdAt: string | Date;
|
|
3050
|
-
} | null | undefined;
|
|
3051
|
-
lead?: {
|
|
3052
|
-
name: string;
|
|
3053
|
-
phoneNumber: string;
|
|
3054
|
-
} | undefined;
|
|
3073
|
+
companyId: string | null;
|
|
3055
3074
|
agent?: {
|
|
3056
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3057
|
-
id: string;
|
|
3058
|
-
updatedAt: string | Date;
|
|
3059
|
-
createdAt: string | Date;
|
|
3060
3075
|
email: string;
|
|
3076
|
+
createdAt: string | Date;
|
|
3077
|
+
updatedAt: string | Date;
|
|
3078
|
+
id: string;
|
|
3079
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3061
3080
|
lastName: string;
|
|
3062
3081
|
firstName: string;
|
|
3063
3082
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3064
3083
|
officeId?: string | null | undefined;
|
|
3065
3084
|
office?: {
|
|
3066
|
-
id: string;
|
|
3067
3085
|
name: string;
|
|
3086
|
+
id: string;
|
|
3068
3087
|
managers?: {
|
|
3069
3088
|
id: string;
|
|
3070
3089
|
lastName: string;
|
|
@@ -3082,8 +3101,19 @@ export declare const callHistoryContract: {
|
|
|
3082
3101
|
lastName: string;
|
|
3083
3102
|
firstName: string;
|
|
3084
3103
|
}[] | undefined;
|
|
3104
|
+
dialpadUserId?: string | null | undefined;
|
|
3085
3105
|
deletedAt?: string | Date | null | undefined;
|
|
3086
3106
|
} | undefined;
|
|
3107
|
+
lead?: {
|
|
3108
|
+
name: string;
|
|
3109
|
+
phoneNumber: string;
|
|
3110
|
+
} | undefined;
|
|
3111
|
+
company?: {
|
|
3112
|
+
name: string;
|
|
3113
|
+
createdAt: string | Date;
|
|
3114
|
+
updatedAt: string | Date;
|
|
3115
|
+
id: string;
|
|
3116
|
+
} | null | undefined;
|
|
3087
3117
|
} | null | undefined;
|
|
3088
3118
|
}>;
|
|
3089
3119
|
404: z.ZodObject<{
|
|
@@ -3163,7 +3193,7 @@ export declare const callHistoryContract: {
|
|
|
3163
3193
|
details?: unknown;
|
|
3164
3194
|
correlationId?: string | undefined;
|
|
3165
3195
|
}>;
|
|
3166
|
-
|
|
3196
|
+
403: z.ZodObject<{
|
|
3167
3197
|
statusCode: z.ZodNumber;
|
|
3168
3198
|
message: z.ZodString;
|
|
3169
3199
|
code: z.ZodString;
|
|
@@ -3188,7 +3218,7 @@ export declare const callHistoryContract: {
|
|
|
3188
3218
|
details?: unknown;
|
|
3189
3219
|
correlationId?: string | undefined;
|
|
3190
3220
|
}>;
|
|
3191
|
-
|
|
3221
|
+
401: z.ZodObject<{
|
|
3192
3222
|
statusCode: z.ZodNumber;
|
|
3193
3223
|
message: z.ZodString;
|
|
3194
3224
|
code: z.ZodString;
|
|
@@ -3297,16 +3327,16 @@ export declare const callHistoryContract: {
|
|
|
3297
3327
|
firstName: string;
|
|
3298
3328
|
}>, "many">>;
|
|
3299
3329
|
}, "strip", z.ZodTypeAny, {
|
|
3300
|
-
id: string;
|
|
3301
3330
|
name: string;
|
|
3331
|
+
id: string;
|
|
3302
3332
|
managers?: {
|
|
3303
3333
|
id: string;
|
|
3304
3334
|
lastName: string;
|
|
3305
3335
|
firstName: string;
|
|
3306
3336
|
}[] | undefined;
|
|
3307
3337
|
}, {
|
|
3308
|
-
id: string;
|
|
3309
3338
|
name: string;
|
|
3339
|
+
id: string;
|
|
3310
3340
|
managers?: {
|
|
3311
3341
|
id: string;
|
|
3312
3342
|
lastName: string;
|
|
@@ -3327,15 +3357,16 @@ export declare const callHistoryContract: {
|
|
|
3327
3357
|
firstName: string;
|
|
3328
3358
|
}>, "many">>;
|
|
3329
3359
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3360
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
3330
3361
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3331
3362
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3332
3363
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3333
3364
|
}, "strip", z.ZodTypeAny, {
|
|
3334
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3335
|
-
id: string;
|
|
3336
|
-
updatedAt: string;
|
|
3337
|
-
createdAt: string;
|
|
3338
3365
|
email: string;
|
|
3366
|
+
createdAt: string;
|
|
3367
|
+
updatedAt: string;
|
|
3368
|
+
id: string;
|
|
3369
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3339
3370
|
lastName: string;
|
|
3340
3371
|
firstName: string;
|
|
3341
3372
|
phoneNumbers: {
|
|
@@ -3347,8 +3378,8 @@ export declare const callHistoryContract: {
|
|
|
3347
3378
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3348
3379
|
officeId?: string | null | undefined;
|
|
3349
3380
|
office?: {
|
|
3350
|
-
id: string;
|
|
3351
3381
|
name: string;
|
|
3382
|
+
id: string;
|
|
3352
3383
|
managers?: {
|
|
3353
3384
|
id: string;
|
|
3354
3385
|
lastName: string;
|
|
@@ -3360,20 +3391,21 @@ export declare const callHistoryContract: {
|
|
|
3360
3391
|
lastName: string;
|
|
3361
3392
|
firstName: string;
|
|
3362
3393
|
}[] | undefined;
|
|
3394
|
+
dialpadUserId?: string | null | undefined;
|
|
3363
3395
|
deletedAt?: string | null | undefined;
|
|
3364
3396
|
}, {
|
|
3365
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3366
|
-
id: string;
|
|
3367
|
-
updatedAt: string | Date;
|
|
3368
|
-
createdAt: string | Date;
|
|
3369
3397
|
email: string;
|
|
3398
|
+
createdAt: string | Date;
|
|
3399
|
+
updatedAt: string | Date;
|
|
3400
|
+
id: string;
|
|
3401
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3370
3402
|
lastName: string;
|
|
3371
3403
|
firstName: string;
|
|
3372
3404
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3373
3405
|
officeId?: string | null | undefined;
|
|
3374
3406
|
office?: {
|
|
3375
|
-
id: string;
|
|
3376
3407
|
name: string;
|
|
3408
|
+
id: string;
|
|
3377
3409
|
managers?: {
|
|
3378
3410
|
id: string;
|
|
3379
3411
|
lastName: string;
|
|
@@ -3391,6 +3423,7 @@ export declare const callHistoryContract: {
|
|
|
3391
3423
|
lastName: string;
|
|
3392
3424
|
firstName: string;
|
|
3393
3425
|
}[] | undefined;
|
|
3426
|
+
dialpadUserId?: string | null | undefined;
|
|
3394
3427
|
deletedAt?: string | Date | null | undefined;
|
|
3395
3428
|
}>>;
|
|
3396
3429
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -3403,44 +3436,34 @@ export declare const callHistoryContract: {
|
|
|
3403
3436
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3404
3437
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3405
3438
|
}, "strip", z.ZodTypeAny, {
|
|
3406
|
-
id: string;
|
|
3407
3439
|
name: string;
|
|
3408
|
-
updatedAt: string;
|
|
3409
3440
|
createdAt: string;
|
|
3410
|
-
|
|
3441
|
+
updatedAt: string;
|
|
3411
3442
|
id: string;
|
|
3443
|
+
}, {
|
|
3412
3444
|
name: string;
|
|
3413
|
-
updatedAt: string | Date;
|
|
3414
3445
|
createdAt: string | Date;
|
|
3446
|
+
updatedAt: string | Date;
|
|
3447
|
+
id: string;
|
|
3415
3448
|
}>>>;
|
|
3416
3449
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3417
3450
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3418
3451
|
}, "strip", z.ZodTypeAny, {
|
|
3419
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3420
|
-
id: string;
|
|
3421
|
-
updatedAt: string;
|
|
3422
3452
|
createdAt: string;
|
|
3423
|
-
|
|
3453
|
+
updatedAt: string;
|
|
3454
|
+
id: string;
|
|
3455
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3424
3456
|
agentId: string | null;
|
|
3425
3457
|
leadId: string;
|
|
3426
3458
|
assignedAt: string;
|
|
3427
3459
|
assignedBy: string | null;
|
|
3428
|
-
|
|
3429
|
-
id: string;
|
|
3430
|
-
name: string;
|
|
3431
|
-
updatedAt: string;
|
|
3432
|
-
createdAt: string;
|
|
3433
|
-
} | null | undefined;
|
|
3434
|
-
lead?: {
|
|
3435
|
-
name: string;
|
|
3436
|
-
phoneNumber: string;
|
|
3437
|
-
} | undefined;
|
|
3460
|
+
companyId: string | null;
|
|
3438
3461
|
agent?: {
|
|
3439
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3440
|
-
id: string;
|
|
3441
|
-
updatedAt: string;
|
|
3442
|
-
createdAt: string;
|
|
3443
3462
|
email: string;
|
|
3463
|
+
createdAt: string;
|
|
3464
|
+
updatedAt: string;
|
|
3465
|
+
id: string;
|
|
3466
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3444
3467
|
lastName: string;
|
|
3445
3468
|
firstName: string;
|
|
3446
3469
|
phoneNumbers: {
|
|
@@ -3452,8 +3475,8 @@ export declare const callHistoryContract: {
|
|
|
3452
3475
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3453
3476
|
officeId?: string | null | undefined;
|
|
3454
3477
|
office?: {
|
|
3455
|
-
id: string;
|
|
3456
3478
|
name: string;
|
|
3479
|
+
id: string;
|
|
3457
3480
|
managers?: {
|
|
3458
3481
|
id: string;
|
|
3459
3482
|
lastName: string;
|
|
@@ -3465,41 +3488,42 @@ export declare const callHistoryContract: {
|
|
|
3465
3488
|
lastName: string;
|
|
3466
3489
|
firstName: string;
|
|
3467
3490
|
}[] | undefined;
|
|
3491
|
+
dialpadUserId?: string | null | undefined;
|
|
3468
3492
|
deletedAt?: string | null | undefined;
|
|
3469
3493
|
} | undefined;
|
|
3494
|
+
lead?: {
|
|
3495
|
+
name: string;
|
|
3496
|
+
phoneNumber: string;
|
|
3497
|
+
} | undefined;
|
|
3498
|
+
company?: {
|
|
3499
|
+
name: string;
|
|
3500
|
+
createdAt: string;
|
|
3501
|
+
updatedAt: string;
|
|
3502
|
+
id: string;
|
|
3503
|
+
} | null | undefined;
|
|
3470
3504
|
}, {
|
|
3471
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3472
|
-
id: string;
|
|
3473
|
-
updatedAt: string | Date;
|
|
3474
3505
|
createdAt: string | Date;
|
|
3475
|
-
|
|
3506
|
+
updatedAt: string | Date;
|
|
3507
|
+
id: string;
|
|
3508
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3476
3509
|
agentId: string | null;
|
|
3477
3510
|
leadId: string;
|
|
3478
3511
|
assignedAt: string | Date;
|
|
3479
3512
|
assignedBy: string | null;
|
|
3480
|
-
|
|
3481
|
-
id: string;
|
|
3482
|
-
name: string;
|
|
3483
|
-
updatedAt: string | Date;
|
|
3484
|
-
createdAt: string | Date;
|
|
3485
|
-
} | null | undefined;
|
|
3486
|
-
lead?: {
|
|
3487
|
-
name: string;
|
|
3488
|
-
phoneNumber: string;
|
|
3489
|
-
} | undefined;
|
|
3513
|
+
companyId: string | null;
|
|
3490
3514
|
agent?: {
|
|
3491
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3492
|
-
id: string;
|
|
3493
|
-
updatedAt: string | Date;
|
|
3494
|
-
createdAt: string | Date;
|
|
3495
3515
|
email: string;
|
|
3516
|
+
createdAt: string | Date;
|
|
3517
|
+
updatedAt: string | Date;
|
|
3518
|
+
id: string;
|
|
3519
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3496
3520
|
lastName: string;
|
|
3497
3521
|
firstName: string;
|
|
3498
3522
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3499
3523
|
officeId?: string | null | undefined;
|
|
3500
3524
|
office?: {
|
|
3501
|
-
id: string;
|
|
3502
3525
|
name: string;
|
|
3526
|
+
id: string;
|
|
3503
3527
|
managers?: {
|
|
3504
3528
|
id: string;
|
|
3505
3529
|
lastName: string;
|
|
@@ -3517,8 +3541,19 @@ export declare const callHistoryContract: {
|
|
|
3517
3541
|
lastName: string;
|
|
3518
3542
|
firstName: string;
|
|
3519
3543
|
}[] | undefined;
|
|
3544
|
+
dialpadUserId?: string | null | undefined;
|
|
3520
3545
|
deletedAt?: string | Date | null | undefined;
|
|
3521
3546
|
} | undefined;
|
|
3547
|
+
lead?: {
|
|
3548
|
+
name: string;
|
|
3549
|
+
phoneNumber: string;
|
|
3550
|
+
} | undefined;
|
|
3551
|
+
company?: {
|
|
3552
|
+
name: string;
|
|
3553
|
+
createdAt: string | Date;
|
|
3554
|
+
updatedAt: string | Date;
|
|
3555
|
+
id: string;
|
|
3556
|
+
} | null | undefined;
|
|
3522
3557
|
}>>>;
|
|
3523
3558
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
3524
3559
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -3528,43 +3563,33 @@ export declare const callHistoryContract: {
|
|
|
3528
3563
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3529
3564
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3530
3565
|
}, "strip", z.ZodTypeAny, {
|
|
3531
|
-
id: string;
|
|
3532
|
-
updatedAt: string;
|
|
3533
3566
|
createdAt: string;
|
|
3534
|
-
|
|
3567
|
+
updatedAt: string;
|
|
3568
|
+
id: string;
|
|
3535
3569
|
rating: CallRating;
|
|
3570
|
+
notes: string | null;
|
|
3536
3571
|
callType: CallType;
|
|
3537
3572
|
leadSource: LeadSource;
|
|
3538
3573
|
ratingWeight: number;
|
|
3539
|
-
|
|
3574
|
+
assignmentId: string;
|
|
3540
3575
|
agentId?: string | undefined;
|
|
3541
3576
|
leadId?: string | undefined;
|
|
3542
3577
|
assignment?: {
|
|
3543
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3544
|
-
id: string;
|
|
3545
|
-
updatedAt: string;
|
|
3546
3578
|
createdAt: string;
|
|
3547
|
-
|
|
3579
|
+
updatedAt: string;
|
|
3580
|
+
id: string;
|
|
3581
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3548
3582
|
agentId: string | null;
|
|
3549
3583
|
leadId: string;
|
|
3550
3584
|
assignedAt: string;
|
|
3551
3585
|
assignedBy: string | null;
|
|
3552
|
-
|
|
3553
|
-
id: string;
|
|
3554
|
-
name: string;
|
|
3555
|
-
updatedAt: string;
|
|
3556
|
-
createdAt: string;
|
|
3557
|
-
} | null | undefined;
|
|
3558
|
-
lead?: {
|
|
3559
|
-
name: string;
|
|
3560
|
-
phoneNumber: string;
|
|
3561
|
-
} | undefined;
|
|
3586
|
+
companyId: string | null;
|
|
3562
3587
|
agent?: {
|
|
3563
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3564
|
-
id: string;
|
|
3565
|
-
updatedAt: string;
|
|
3566
|
-
createdAt: string;
|
|
3567
3588
|
email: string;
|
|
3589
|
+
createdAt: string;
|
|
3590
|
+
updatedAt: string;
|
|
3591
|
+
id: string;
|
|
3592
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3568
3593
|
lastName: string;
|
|
3569
3594
|
firstName: string;
|
|
3570
3595
|
phoneNumbers: {
|
|
@@ -3576,8 +3601,8 @@ export declare const callHistoryContract: {
|
|
|
3576
3601
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3577
3602
|
officeId?: string | null | undefined;
|
|
3578
3603
|
office?: {
|
|
3579
|
-
id: string;
|
|
3580
3604
|
name: string;
|
|
3605
|
+
id: string;
|
|
3581
3606
|
managers?: {
|
|
3582
3607
|
id: string;
|
|
3583
3608
|
lastName: string;
|
|
@@ -3589,54 +3614,55 @@ export declare const callHistoryContract: {
|
|
|
3589
3614
|
lastName: string;
|
|
3590
3615
|
firstName: string;
|
|
3591
3616
|
}[] | undefined;
|
|
3617
|
+
dialpadUserId?: string | null | undefined;
|
|
3592
3618
|
deletedAt?: string | null | undefined;
|
|
3593
3619
|
} | undefined;
|
|
3620
|
+
lead?: {
|
|
3621
|
+
name: string;
|
|
3622
|
+
phoneNumber: string;
|
|
3623
|
+
} | undefined;
|
|
3624
|
+
company?: {
|
|
3625
|
+
name: string;
|
|
3626
|
+
createdAt: string;
|
|
3627
|
+
updatedAt: string;
|
|
3628
|
+
id: string;
|
|
3629
|
+
} | null | undefined;
|
|
3594
3630
|
} | null | undefined;
|
|
3595
3631
|
}, {
|
|
3596
|
-
id: string;
|
|
3597
|
-
updatedAt: string | Date;
|
|
3598
3632
|
createdAt: string | Date;
|
|
3599
|
-
|
|
3633
|
+
updatedAt: string | Date;
|
|
3634
|
+
id: string;
|
|
3600
3635
|
rating: CallRating;
|
|
3636
|
+
notes: string | null;
|
|
3601
3637
|
callType: CallType;
|
|
3602
3638
|
leadSource: LeadSource;
|
|
3603
3639
|
ratingWeight: number;
|
|
3604
|
-
|
|
3640
|
+
assignmentId: string;
|
|
3605
3641
|
agentId?: string | undefined;
|
|
3606
3642
|
leadId?: string | undefined;
|
|
3607
3643
|
assignment?: {
|
|
3608
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3609
|
-
id: string;
|
|
3610
|
-
updatedAt: string | Date;
|
|
3611
3644
|
createdAt: string | Date;
|
|
3612
|
-
|
|
3645
|
+
updatedAt: string | Date;
|
|
3646
|
+
id: string;
|
|
3647
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3613
3648
|
agentId: string | null;
|
|
3614
3649
|
leadId: string;
|
|
3615
3650
|
assignedAt: string | Date;
|
|
3616
3651
|
assignedBy: string | null;
|
|
3617
|
-
|
|
3618
|
-
id: string;
|
|
3619
|
-
name: string;
|
|
3620
|
-
updatedAt: string | Date;
|
|
3621
|
-
createdAt: string | Date;
|
|
3622
|
-
} | null | undefined;
|
|
3623
|
-
lead?: {
|
|
3624
|
-
name: string;
|
|
3625
|
-
phoneNumber: string;
|
|
3626
|
-
} | undefined;
|
|
3652
|
+
companyId: string | null;
|
|
3627
3653
|
agent?: {
|
|
3628
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3629
|
-
id: string;
|
|
3630
|
-
updatedAt: string | Date;
|
|
3631
|
-
createdAt: string | Date;
|
|
3632
3654
|
email: string;
|
|
3655
|
+
createdAt: string | Date;
|
|
3656
|
+
updatedAt: string | Date;
|
|
3657
|
+
id: string;
|
|
3658
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3633
3659
|
lastName: string;
|
|
3634
3660
|
firstName: string;
|
|
3635
3661
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3636
3662
|
officeId?: string | null | undefined;
|
|
3637
3663
|
office?: {
|
|
3638
|
-
id: string;
|
|
3639
3664
|
name: string;
|
|
3665
|
+
id: string;
|
|
3640
3666
|
managers?: {
|
|
3641
3667
|
id: string;
|
|
3642
3668
|
lastName: string;
|
|
@@ -3654,8 +3680,19 @@ export declare const callHistoryContract: {
|
|
|
3654
3680
|
lastName: string;
|
|
3655
3681
|
firstName: string;
|
|
3656
3682
|
}[] | undefined;
|
|
3683
|
+
dialpadUserId?: string | null | undefined;
|
|
3657
3684
|
deletedAt?: string | Date | null | undefined;
|
|
3658
3685
|
} | undefined;
|
|
3686
|
+
lead?: {
|
|
3687
|
+
name: string;
|
|
3688
|
+
phoneNumber: string;
|
|
3689
|
+
} | undefined;
|
|
3690
|
+
company?: {
|
|
3691
|
+
name: string;
|
|
3692
|
+
createdAt: string | Date;
|
|
3693
|
+
updatedAt: string | Date;
|
|
3694
|
+
id: string;
|
|
3695
|
+
} | null | undefined;
|
|
3659
3696
|
} | null | undefined;
|
|
3660
3697
|
}>;
|
|
3661
3698
|
404: z.ZodObject<{
|
|
@@ -3718,7 +3755,7 @@ export declare const callHistoryContract: {
|
|
|
3718
3755
|
details?: unknown;
|
|
3719
3756
|
correlationId?: string | undefined;
|
|
3720
3757
|
}>;
|
|
3721
|
-
|
|
3758
|
+
403: z.ZodObject<{
|
|
3722
3759
|
statusCode: z.ZodNumber;
|
|
3723
3760
|
message: z.ZodString;
|
|
3724
3761
|
code: z.ZodString;
|
|
@@ -3743,7 +3780,7 @@ export declare const callHistoryContract: {
|
|
|
3743
3780
|
details?: unknown;
|
|
3744
3781
|
correlationId?: string | undefined;
|
|
3745
3782
|
}>;
|
|
3746
|
-
|
|
3783
|
+
401: z.ZodObject<{
|
|
3747
3784
|
statusCode: z.ZodNumber;
|
|
3748
3785
|
message: z.ZodString;
|
|
3749
3786
|
code: z.ZodString;
|