@dakkitor/api-contracts 1.1.141 → 1.1.143
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/first-agent.abilities.json +17 -63
- package/dist/abilities/second-agent.abilities.json +10 -0
- package/dist/actives/actives.contract.d.ts +4419 -3731
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +22 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1285 -1285
- package/dist/auth/auth.contract.d.ts +40 -28
- package/dist/auth/auth.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.d.ts +6499 -5929
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +0 -6
- package/dist/call-history/call-history.contract.d.ts +717 -717
- package/dist/client-contacts/client-contacts.contract.d.ts +309 -309
- package/dist/client-contacts/client-contacts.contract.js +2 -2
- package/dist/clients/clients.contract.d.ts +173 -173
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2328 -2328
- package/dist/collaborations/collaborations.contract.d.ts +2052 -2052
- package/dist/common/call-rating.schema.d.ts +12 -12
- package/dist/common/call-rating.schema.js +40 -48
- package/dist/common/common-schemas.d.ts +10 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +2 -0
- package/dist/common/error-schemas.d.ts +5 -11
- package/dist/common/error-schemas.js +8 -11
- package/dist/common/openapi-metadata.d.ts +44 -54
- package/dist/common/openapi-metadata.js +129 -135
- package/dist/common/pagination-query.schema.d.ts +7 -13
- package/dist/common/pagination-query.schema.js +8 -11
- package/dist/companies/companies.contract.d.ts +26 -26
- package/dist/cron-executions/cron-executions.contract.d.ts +255 -7
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +28 -0
- package/dist/curated-workers/curated-workers.contract.d.ts +626 -558
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +2 -4
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +20 -11
- package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -1
- package/dist/dashboards/agent-daily-metrics.contract.js +1 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +92 -92
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +4 -1
- package/dist/dashboards/dashboard.contract.d.ts +12 -12
- package/dist/files/files.contract.d.ts +1189 -1556
- package/dist/files/files.contract.js +162 -177
- package/dist/health/health.contract.d.ts +144 -191
- package/dist/health/health.contract.js +40 -53
- package/dist/jobs/jobs.contract.d.ts +4427 -3769
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +106 -17
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +114 -114
- package/dist/lead-assignments/lead-assignments.contract.d.ts +606 -606
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +217 -217
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +16 -16
- package/dist/leads/leads.contract.d.ts +199 -199
- package/dist/locations/locations.contract.d.ts +28 -28
- package/dist/own-research/own-research.contract.d.ts +736 -736
- package/dist/postcodes/postcodes.contract.d.ts +6 -6
- package/dist/qualifications/qualifications.contract.d.ts +1387 -1898
- package/dist/qualifications/qualifications.contract.js +171 -193
- package/dist/trades/trades.contract.d.ts +763 -991
- package/dist/trades/trades.contract.js +89 -111
- package/dist/users/users.contract.d.ts +632 -285
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +38 -1
- package/dist/workers/workers.contract.d.ts +4869 -3000
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +285 -30
- package/package.json +1 -1
- package/dist/monitoring/monitoring.contract.d.ts +0 -615
- package/dist/monitoring/monitoring.contract.d.ts.map +0 -1
- package/dist/monitoring/monitoring.contract.js +0 -106
|
@@ -95,17 +95,17 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
95
95
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
id: string;
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
createdAt: string;
|
|
100
|
+
email: string;
|
|
98
101
|
firstName: string;
|
|
99
102
|
lastName: string;
|
|
100
|
-
email: string;
|
|
101
103
|
phoneNumbers: {
|
|
102
104
|
id: string;
|
|
103
105
|
phoneNumber: string;
|
|
104
106
|
isPrimary: boolean;
|
|
105
107
|
description?: string | null | undefined;
|
|
106
108
|
}[];
|
|
107
|
-
createdAt: string;
|
|
108
|
-
updatedAt: string;
|
|
109
109
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
110
110
|
office?: {
|
|
111
111
|
id: string;
|
|
@@ -118,22 +118,22 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
118
118
|
}[] | undefined;
|
|
119
119
|
}, {
|
|
120
120
|
id: string;
|
|
121
|
+
updatedAt: string | Date;
|
|
122
|
+
createdAt: string | Date;
|
|
123
|
+
email: string;
|
|
121
124
|
firstName: string;
|
|
122
125
|
lastName: string;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
127
|
+
office?: {
|
|
128
|
+
id: string;
|
|
129
|
+
name: string;
|
|
130
|
+
} | null | undefined;
|
|
126
131
|
phoneNumbers?: {
|
|
127
132
|
id: string;
|
|
128
133
|
phoneNumber: string;
|
|
129
134
|
description?: string | null | undefined;
|
|
130
135
|
isPrimary?: boolean | undefined;
|
|
131
136
|
}[] | undefined;
|
|
132
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
133
|
-
office?: {
|
|
134
|
-
id: string;
|
|
135
|
-
name: string;
|
|
136
|
-
} | null | undefined;
|
|
137
137
|
canImpersonateUsers?: {
|
|
138
138
|
id: string;
|
|
139
139
|
firstName: string;
|
|
@@ -152,43 +152,45 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
153
|
id: string;
|
|
154
154
|
name: string;
|
|
155
|
-
createdAt: string;
|
|
156
155
|
updatedAt: string;
|
|
156
|
+
createdAt: string;
|
|
157
157
|
}, {
|
|
158
158
|
id: string;
|
|
159
159
|
name: string;
|
|
160
|
-
createdAt: string | Date;
|
|
161
160
|
updatedAt: string | Date;
|
|
161
|
+
createdAt: string | Date;
|
|
162
162
|
}>>>;
|
|
163
163
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
164
164
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
165
165
|
}, "strip", z.ZodTypeAny, {
|
|
166
166
|
id: string;
|
|
167
|
-
leadId: string;
|
|
168
|
-
agentId: string | null;
|
|
169
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
170
|
-
createdAt: string;
|
|
171
167
|
updatedAt: string;
|
|
168
|
+
createdAt: string;
|
|
169
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
170
|
+
companyId: string | null;
|
|
171
|
+
agentId: string | null;
|
|
172
|
+
leadId: string;
|
|
172
173
|
assignedAt: string;
|
|
173
174
|
assignedBy: string | null;
|
|
174
|
-
|
|
175
|
-
|
|
175
|
+
company?: {
|
|
176
|
+
id: string;
|
|
176
177
|
name: string;
|
|
177
|
-
|
|
178
|
-
|
|
178
|
+
updatedAt: string;
|
|
179
|
+
createdAt: string;
|
|
180
|
+
} | null | undefined;
|
|
179
181
|
agent?: {
|
|
180
182
|
id: string;
|
|
183
|
+
updatedAt: string;
|
|
184
|
+
createdAt: string;
|
|
185
|
+
email: string;
|
|
181
186
|
firstName: string;
|
|
182
187
|
lastName: string;
|
|
183
|
-
email: string;
|
|
184
188
|
phoneNumbers: {
|
|
185
189
|
id: string;
|
|
186
190
|
phoneNumber: string;
|
|
187
191
|
isPrimary: boolean;
|
|
188
192
|
description?: string | null | undefined;
|
|
189
193
|
}[];
|
|
190
|
-
createdAt: string;
|
|
191
|
-
updatedAt: string;
|
|
192
194
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
193
195
|
office?: {
|
|
194
196
|
id: string;
|
|
@@ -200,56 +202,54 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
200
202
|
lastName: string;
|
|
201
203
|
}[] | undefined;
|
|
202
204
|
} | undefined;
|
|
203
|
-
|
|
204
|
-
id: string;
|
|
205
|
+
lead?: {
|
|
205
206
|
name: string;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
} | null | undefined;
|
|
207
|
+
phoneNumber: string;
|
|
208
|
+
} | undefined;
|
|
209
209
|
}, {
|
|
210
210
|
id: string;
|
|
211
|
-
leadId: string;
|
|
212
|
-
agentId: string | null;
|
|
213
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
214
|
-
createdAt: string | Date;
|
|
215
211
|
updatedAt: string | Date;
|
|
212
|
+
createdAt: string | Date;
|
|
213
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
214
|
+
companyId: string | null;
|
|
215
|
+
agentId: string | null;
|
|
216
|
+
leadId: string;
|
|
216
217
|
assignedAt: string | Date;
|
|
217
218
|
assignedBy: string | null;
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
company?: {
|
|
220
|
+
id: string;
|
|
220
221
|
name: string;
|
|
221
|
-
|
|
222
|
-
|
|
222
|
+
updatedAt: string | Date;
|
|
223
|
+
createdAt: string | Date;
|
|
224
|
+
} | null | undefined;
|
|
223
225
|
agent?: {
|
|
224
226
|
id: string;
|
|
227
|
+
updatedAt: string | Date;
|
|
228
|
+
createdAt: string | Date;
|
|
229
|
+
email: string;
|
|
225
230
|
firstName: string;
|
|
226
231
|
lastName: string;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
232
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
233
|
+
office?: {
|
|
234
|
+
id: string;
|
|
235
|
+
name: string;
|
|
236
|
+
} | null | undefined;
|
|
230
237
|
phoneNumbers?: {
|
|
231
238
|
id: string;
|
|
232
239
|
phoneNumber: string;
|
|
233
240
|
description?: string | null | undefined;
|
|
234
241
|
isPrimary?: boolean | undefined;
|
|
235
242
|
}[] | undefined;
|
|
236
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
237
|
-
office?: {
|
|
238
|
-
id: string;
|
|
239
|
-
name: string;
|
|
240
|
-
} | null | undefined;
|
|
241
243
|
canImpersonateUsers?: {
|
|
242
244
|
id: string;
|
|
243
245
|
firstName: string;
|
|
244
246
|
lastName: string;
|
|
245
247
|
}[] | undefined;
|
|
246
248
|
} | undefined;
|
|
247
|
-
|
|
248
|
-
id: string;
|
|
249
|
+
lead?: {
|
|
249
250
|
name: string;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
} | null | undefined;
|
|
251
|
+
phoneNumber: string;
|
|
252
|
+
} | undefined;
|
|
253
253
|
}>>>;
|
|
254
254
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
255
255
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -260,43 +260,45 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
260
260
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
262
|
id: string;
|
|
263
|
-
assignmentId: string;
|
|
264
|
-
createdAt: string;
|
|
265
263
|
updatedAt: string;
|
|
264
|
+
createdAt: string;
|
|
265
|
+
assignmentId: string;
|
|
266
|
+
rating: CallRating;
|
|
266
267
|
callType: CallType;
|
|
267
268
|
leadSource: LeadSource;
|
|
268
|
-
rating: CallRating;
|
|
269
|
-
ratingWeight: number;
|
|
270
269
|
notes: string | null;
|
|
271
|
-
|
|
270
|
+
ratingWeight: number;
|
|
272
271
|
agentId?: string | undefined;
|
|
272
|
+
leadId?: string | undefined;
|
|
273
273
|
assignment?: {
|
|
274
274
|
id: string;
|
|
275
|
-
leadId: string;
|
|
276
|
-
agentId: string | null;
|
|
277
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
278
|
-
createdAt: string;
|
|
279
275
|
updatedAt: string;
|
|
276
|
+
createdAt: string;
|
|
277
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
278
|
+
companyId: string | null;
|
|
279
|
+
agentId: string | null;
|
|
280
|
+
leadId: string;
|
|
280
281
|
assignedAt: string;
|
|
281
282
|
assignedBy: string | null;
|
|
282
|
-
|
|
283
|
-
|
|
283
|
+
company?: {
|
|
284
|
+
id: string;
|
|
284
285
|
name: string;
|
|
285
|
-
|
|
286
|
-
|
|
286
|
+
updatedAt: string;
|
|
287
|
+
createdAt: string;
|
|
288
|
+
} | null | undefined;
|
|
287
289
|
agent?: {
|
|
288
290
|
id: string;
|
|
291
|
+
updatedAt: string;
|
|
292
|
+
createdAt: string;
|
|
293
|
+
email: string;
|
|
289
294
|
firstName: string;
|
|
290
295
|
lastName: string;
|
|
291
|
-
email: string;
|
|
292
296
|
phoneNumbers: {
|
|
293
297
|
id: string;
|
|
294
298
|
phoneNumber: string;
|
|
295
299
|
isPrimary: boolean;
|
|
296
300
|
description?: string | null | undefined;
|
|
297
301
|
}[];
|
|
298
|
-
createdAt: string;
|
|
299
|
-
updatedAt: string;
|
|
300
302
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
301
303
|
office?: {
|
|
302
304
|
id: string;
|
|
@@ -308,69 +310,67 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
308
310
|
lastName: string;
|
|
309
311
|
}[] | undefined;
|
|
310
312
|
} | undefined;
|
|
311
|
-
|
|
312
|
-
id: string;
|
|
313
|
+
lead?: {
|
|
313
314
|
name: string;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
} | null | undefined;
|
|
315
|
+
phoneNumber: string;
|
|
316
|
+
} | undefined;
|
|
317
317
|
} | null | undefined;
|
|
318
318
|
}, {
|
|
319
319
|
id: string;
|
|
320
|
-
assignmentId: string;
|
|
321
|
-
createdAt: string | Date;
|
|
322
320
|
updatedAt: string | Date;
|
|
321
|
+
createdAt: string | Date;
|
|
322
|
+
assignmentId: string;
|
|
323
|
+
rating: CallRating;
|
|
323
324
|
callType: CallType;
|
|
324
325
|
leadSource: LeadSource;
|
|
325
|
-
rating: CallRating;
|
|
326
|
-
ratingWeight: number;
|
|
327
326
|
notes: string | null;
|
|
328
|
-
|
|
327
|
+
ratingWeight: number;
|
|
329
328
|
agentId?: string | undefined;
|
|
329
|
+
leadId?: string | undefined;
|
|
330
330
|
assignment?: {
|
|
331
331
|
id: string;
|
|
332
|
-
leadId: string;
|
|
333
|
-
agentId: string | null;
|
|
334
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
335
|
-
createdAt: string | Date;
|
|
336
332
|
updatedAt: string | Date;
|
|
333
|
+
createdAt: string | Date;
|
|
334
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
335
|
+
companyId: string | null;
|
|
336
|
+
agentId: string | null;
|
|
337
|
+
leadId: string;
|
|
337
338
|
assignedAt: string | Date;
|
|
338
339
|
assignedBy: string | null;
|
|
339
|
-
|
|
340
|
-
|
|
340
|
+
company?: {
|
|
341
|
+
id: string;
|
|
341
342
|
name: string;
|
|
342
|
-
|
|
343
|
-
|
|
343
|
+
updatedAt: string | Date;
|
|
344
|
+
createdAt: string | Date;
|
|
345
|
+
} | null | undefined;
|
|
344
346
|
agent?: {
|
|
345
347
|
id: string;
|
|
348
|
+
updatedAt: string | Date;
|
|
349
|
+
createdAt: string | Date;
|
|
350
|
+
email: string;
|
|
346
351
|
firstName: string;
|
|
347
352
|
lastName: string;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
353
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
354
|
+
office?: {
|
|
355
|
+
id: string;
|
|
356
|
+
name: string;
|
|
357
|
+
} | null | undefined;
|
|
351
358
|
phoneNumbers?: {
|
|
352
359
|
id: string;
|
|
353
360
|
phoneNumber: string;
|
|
354
361
|
description?: string | null | undefined;
|
|
355
362
|
isPrimary?: boolean | undefined;
|
|
356
363
|
}[] | undefined;
|
|
357
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
358
|
-
office?: {
|
|
359
|
-
id: string;
|
|
360
|
-
name: string;
|
|
361
|
-
} | null | undefined;
|
|
362
364
|
canImpersonateUsers?: {
|
|
363
365
|
id: string;
|
|
364
366
|
firstName: string;
|
|
365
367
|
lastName: string;
|
|
366
368
|
}[] | undefined;
|
|
367
369
|
} | undefined;
|
|
368
|
-
|
|
369
|
-
id: string;
|
|
370
|
+
lead?: {
|
|
370
371
|
name: string;
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
} | null | undefined;
|
|
372
|
+
phoneNumber: string;
|
|
373
|
+
} | undefined;
|
|
374
374
|
} | null | undefined;
|
|
375
375
|
}>;
|
|
376
376
|
export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
@@ -442,17 +442,17 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
442
442
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
443
443
|
}, "strip", z.ZodTypeAny, {
|
|
444
444
|
id: string;
|
|
445
|
+
updatedAt: string;
|
|
446
|
+
createdAt: string;
|
|
447
|
+
email: string;
|
|
445
448
|
firstName: string;
|
|
446
449
|
lastName: string;
|
|
447
|
-
email: string;
|
|
448
450
|
phoneNumbers: {
|
|
449
451
|
id: string;
|
|
450
452
|
phoneNumber: string;
|
|
451
453
|
isPrimary: boolean;
|
|
452
454
|
description?: string | null | undefined;
|
|
453
455
|
}[];
|
|
454
|
-
createdAt: string;
|
|
455
|
-
updatedAt: string;
|
|
456
456
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
457
457
|
office?: {
|
|
458
458
|
id: string;
|
|
@@ -465,22 +465,22 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
465
465
|
}[] | undefined;
|
|
466
466
|
}, {
|
|
467
467
|
id: string;
|
|
468
|
+
updatedAt: string | Date;
|
|
469
|
+
createdAt: string | Date;
|
|
470
|
+
email: string;
|
|
468
471
|
firstName: string;
|
|
469
472
|
lastName: string;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
474
|
+
office?: {
|
|
475
|
+
id: string;
|
|
476
|
+
name: string;
|
|
477
|
+
} | null | undefined;
|
|
473
478
|
phoneNumbers?: {
|
|
474
479
|
id: string;
|
|
475
480
|
phoneNumber: string;
|
|
476
481
|
description?: string | null | undefined;
|
|
477
482
|
isPrimary?: boolean | undefined;
|
|
478
483
|
}[] | undefined;
|
|
479
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
480
|
-
office?: {
|
|
481
|
-
id: string;
|
|
482
|
-
name: string;
|
|
483
|
-
} | null | undefined;
|
|
484
484
|
canImpersonateUsers?: {
|
|
485
485
|
id: string;
|
|
486
486
|
firstName: string;
|
|
@@ -499,43 +499,45 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
499
499
|
}, "strip", z.ZodTypeAny, {
|
|
500
500
|
id: string;
|
|
501
501
|
name: string;
|
|
502
|
-
createdAt: string;
|
|
503
502
|
updatedAt: string;
|
|
503
|
+
createdAt: string;
|
|
504
504
|
}, {
|
|
505
505
|
id: string;
|
|
506
506
|
name: string;
|
|
507
|
-
createdAt: string | Date;
|
|
508
507
|
updatedAt: string | Date;
|
|
508
|
+
createdAt: string | Date;
|
|
509
509
|
}>>>;
|
|
510
510
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
511
511
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
512
512
|
}, "strip", z.ZodTypeAny, {
|
|
513
513
|
id: string;
|
|
514
|
-
leadId: string;
|
|
515
|
-
agentId: string | null;
|
|
516
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
517
|
-
createdAt: string;
|
|
518
514
|
updatedAt: string;
|
|
515
|
+
createdAt: string;
|
|
516
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
517
|
+
companyId: string | null;
|
|
518
|
+
agentId: string | null;
|
|
519
|
+
leadId: string;
|
|
519
520
|
assignedAt: string;
|
|
520
521
|
assignedBy: string | null;
|
|
521
|
-
|
|
522
|
-
|
|
522
|
+
company?: {
|
|
523
|
+
id: string;
|
|
523
524
|
name: string;
|
|
524
|
-
|
|
525
|
-
|
|
525
|
+
updatedAt: string;
|
|
526
|
+
createdAt: string;
|
|
527
|
+
} | null | undefined;
|
|
526
528
|
agent?: {
|
|
527
529
|
id: string;
|
|
530
|
+
updatedAt: string;
|
|
531
|
+
createdAt: string;
|
|
532
|
+
email: string;
|
|
528
533
|
firstName: string;
|
|
529
534
|
lastName: string;
|
|
530
|
-
email: string;
|
|
531
535
|
phoneNumbers: {
|
|
532
536
|
id: string;
|
|
533
537
|
phoneNumber: string;
|
|
534
538
|
isPrimary: boolean;
|
|
535
539
|
description?: string | null | undefined;
|
|
536
540
|
}[];
|
|
537
|
-
createdAt: string;
|
|
538
|
-
updatedAt: string;
|
|
539
541
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
540
542
|
office?: {
|
|
541
543
|
id: string;
|
|
@@ -547,56 +549,54 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
547
549
|
lastName: string;
|
|
548
550
|
}[] | undefined;
|
|
549
551
|
} | undefined;
|
|
550
|
-
|
|
551
|
-
id: string;
|
|
552
|
+
lead?: {
|
|
552
553
|
name: string;
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
} | null | undefined;
|
|
554
|
+
phoneNumber: string;
|
|
555
|
+
} | undefined;
|
|
556
556
|
}, {
|
|
557
557
|
id: string;
|
|
558
|
-
leadId: string;
|
|
559
|
-
agentId: string | null;
|
|
560
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
561
|
-
createdAt: string | Date;
|
|
562
558
|
updatedAt: string | Date;
|
|
559
|
+
createdAt: string | Date;
|
|
560
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
561
|
+
companyId: string | null;
|
|
562
|
+
agentId: string | null;
|
|
563
|
+
leadId: string;
|
|
563
564
|
assignedAt: string | Date;
|
|
564
565
|
assignedBy: string | null;
|
|
565
|
-
|
|
566
|
-
|
|
566
|
+
company?: {
|
|
567
|
+
id: string;
|
|
567
568
|
name: string;
|
|
568
|
-
|
|
569
|
-
|
|
569
|
+
updatedAt: string | Date;
|
|
570
|
+
createdAt: string | Date;
|
|
571
|
+
} | null | undefined;
|
|
570
572
|
agent?: {
|
|
571
573
|
id: string;
|
|
574
|
+
updatedAt: string | Date;
|
|
575
|
+
createdAt: string | Date;
|
|
576
|
+
email: string;
|
|
572
577
|
firstName: string;
|
|
573
578
|
lastName: string;
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
579
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
580
|
+
office?: {
|
|
581
|
+
id: string;
|
|
582
|
+
name: string;
|
|
583
|
+
} | null | undefined;
|
|
577
584
|
phoneNumbers?: {
|
|
578
585
|
id: string;
|
|
579
586
|
phoneNumber: string;
|
|
580
587
|
description?: string | null | undefined;
|
|
581
588
|
isPrimary?: boolean | undefined;
|
|
582
589
|
}[] | undefined;
|
|
583
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
584
|
-
office?: {
|
|
585
|
-
id: string;
|
|
586
|
-
name: string;
|
|
587
|
-
} | null | undefined;
|
|
588
590
|
canImpersonateUsers?: {
|
|
589
591
|
id: string;
|
|
590
592
|
firstName: string;
|
|
591
593
|
lastName: string;
|
|
592
594
|
}[] | undefined;
|
|
593
595
|
} | undefined;
|
|
594
|
-
|
|
595
|
-
id: string;
|
|
596
|
+
lead?: {
|
|
596
597
|
name: string;
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
} | null | undefined;
|
|
598
|
+
phoneNumber: string;
|
|
599
|
+
} | undefined;
|
|
600
600
|
}>>>;
|
|
601
601
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
602
602
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -607,43 +607,45 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
607
607
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
609
|
id: string;
|
|
610
|
-
assignmentId: string;
|
|
611
|
-
createdAt: string;
|
|
612
610
|
updatedAt: string;
|
|
611
|
+
createdAt: string;
|
|
612
|
+
assignmentId: string;
|
|
613
|
+
rating: CallRating;
|
|
613
614
|
callType: CallType;
|
|
614
615
|
leadSource: LeadSource;
|
|
615
|
-
rating: CallRating;
|
|
616
|
-
ratingWeight: number;
|
|
617
616
|
notes: string | null;
|
|
618
|
-
|
|
617
|
+
ratingWeight: number;
|
|
619
618
|
agentId?: string | undefined;
|
|
619
|
+
leadId?: string | undefined;
|
|
620
620
|
assignment?: {
|
|
621
621
|
id: string;
|
|
622
|
-
leadId: string;
|
|
623
|
-
agentId: string | null;
|
|
624
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
625
|
-
createdAt: string;
|
|
626
622
|
updatedAt: string;
|
|
623
|
+
createdAt: string;
|
|
624
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
625
|
+
companyId: string | null;
|
|
626
|
+
agentId: string | null;
|
|
627
|
+
leadId: string;
|
|
627
628
|
assignedAt: string;
|
|
628
629
|
assignedBy: string | null;
|
|
629
|
-
|
|
630
|
-
|
|
630
|
+
company?: {
|
|
631
|
+
id: string;
|
|
631
632
|
name: string;
|
|
632
|
-
|
|
633
|
-
|
|
633
|
+
updatedAt: string;
|
|
634
|
+
createdAt: string;
|
|
635
|
+
} | null | undefined;
|
|
634
636
|
agent?: {
|
|
635
637
|
id: string;
|
|
638
|
+
updatedAt: string;
|
|
639
|
+
createdAt: string;
|
|
640
|
+
email: string;
|
|
636
641
|
firstName: string;
|
|
637
642
|
lastName: string;
|
|
638
|
-
email: string;
|
|
639
643
|
phoneNumbers: {
|
|
640
644
|
id: string;
|
|
641
645
|
phoneNumber: string;
|
|
642
646
|
isPrimary: boolean;
|
|
643
647
|
description?: string | null | undefined;
|
|
644
648
|
}[];
|
|
645
|
-
createdAt: string;
|
|
646
|
-
updatedAt: string;
|
|
647
649
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
648
650
|
office?: {
|
|
649
651
|
id: string;
|
|
@@ -655,69 +657,67 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
655
657
|
lastName: string;
|
|
656
658
|
}[] | undefined;
|
|
657
659
|
} | undefined;
|
|
658
|
-
|
|
659
|
-
id: string;
|
|
660
|
+
lead?: {
|
|
660
661
|
name: string;
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
} | null | undefined;
|
|
662
|
+
phoneNumber: string;
|
|
663
|
+
} | undefined;
|
|
664
664
|
} | null | undefined;
|
|
665
665
|
}, {
|
|
666
666
|
id: string;
|
|
667
|
-
assignmentId: string;
|
|
668
|
-
createdAt: string | Date;
|
|
669
667
|
updatedAt: string | Date;
|
|
668
|
+
createdAt: string | Date;
|
|
669
|
+
assignmentId: string;
|
|
670
|
+
rating: CallRating;
|
|
670
671
|
callType: CallType;
|
|
671
672
|
leadSource: LeadSource;
|
|
672
|
-
rating: CallRating;
|
|
673
|
-
ratingWeight: number;
|
|
674
673
|
notes: string | null;
|
|
675
|
-
|
|
674
|
+
ratingWeight: number;
|
|
676
675
|
agentId?: string | undefined;
|
|
676
|
+
leadId?: string | undefined;
|
|
677
677
|
assignment?: {
|
|
678
678
|
id: string;
|
|
679
|
-
leadId: string;
|
|
680
|
-
agentId: string | null;
|
|
681
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
682
|
-
createdAt: string | Date;
|
|
683
679
|
updatedAt: string | Date;
|
|
680
|
+
createdAt: string | Date;
|
|
681
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
682
|
+
companyId: string | null;
|
|
683
|
+
agentId: string | null;
|
|
684
|
+
leadId: string;
|
|
684
685
|
assignedAt: string | Date;
|
|
685
686
|
assignedBy: string | null;
|
|
686
|
-
|
|
687
|
-
|
|
687
|
+
company?: {
|
|
688
|
+
id: string;
|
|
688
689
|
name: string;
|
|
689
|
-
|
|
690
|
-
|
|
690
|
+
updatedAt: string | Date;
|
|
691
|
+
createdAt: string | Date;
|
|
692
|
+
} | null | undefined;
|
|
691
693
|
agent?: {
|
|
692
694
|
id: string;
|
|
695
|
+
updatedAt: string | Date;
|
|
696
|
+
createdAt: string | Date;
|
|
697
|
+
email: string;
|
|
693
698
|
firstName: string;
|
|
694
699
|
lastName: string;
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
700
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
701
|
+
office?: {
|
|
702
|
+
id: string;
|
|
703
|
+
name: string;
|
|
704
|
+
} | null | undefined;
|
|
698
705
|
phoneNumbers?: {
|
|
699
706
|
id: string;
|
|
700
707
|
phoneNumber: string;
|
|
701
708
|
description?: string | null | undefined;
|
|
702
709
|
isPrimary?: boolean | undefined;
|
|
703
710
|
}[] | undefined;
|
|
704
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
705
|
-
office?: {
|
|
706
|
-
id: string;
|
|
707
|
-
name: string;
|
|
708
|
-
} | null | undefined;
|
|
709
711
|
canImpersonateUsers?: {
|
|
710
712
|
id: string;
|
|
711
713
|
firstName: string;
|
|
712
714
|
lastName: string;
|
|
713
715
|
}[] | undefined;
|
|
714
716
|
} | undefined;
|
|
715
|
-
|
|
716
|
-
id: string;
|
|
717
|
+
lead?: {
|
|
717
718
|
name: string;
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
} | null | undefined;
|
|
719
|
+
phoneNumber: string;
|
|
720
|
+
} | undefined;
|
|
721
721
|
} | null | undefined;
|
|
722
722
|
}>, "many">;
|
|
723
723
|
totalCount: z.ZodNumber;
|
|
@@ -726,45 +726,48 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
726
726
|
currentPage: z.ZodNumber;
|
|
727
727
|
totalPages: z.ZodNumber;
|
|
728
728
|
}, "strip", z.ZodTypeAny, {
|
|
729
|
+
limit: number;
|
|
729
730
|
items: {
|
|
730
731
|
id: string;
|
|
731
|
-
assignmentId: string;
|
|
732
|
-
createdAt: string;
|
|
733
732
|
updatedAt: string;
|
|
733
|
+
createdAt: string;
|
|
734
|
+
assignmentId: string;
|
|
735
|
+
rating: CallRating;
|
|
734
736
|
callType: CallType;
|
|
735
737
|
leadSource: LeadSource;
|
|
736
|
-
rating: CallRating;
|
|
737
|
-
ratingWeight: number;
|
|
738
738
|
notes: string | null;
|
|
739
|
-
|
|
739
|
+
ratingWeight: number;
|
|
740
740
|
agentId?: string | undefined;
|
|
741
|
+
leadId?: string | undefined;
|
|
741
742
|
assignment?: {
|
|
742
743
|
id: string;
|
|
743
|
-
leadId: string;
|
|
744
|
-
agentId: string | null;
|
|
745
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
746
|
-
createdAt: string;
|
|
747
744
|
updatedAt: string;
|
|
745
|
+
createdAt: string;
|
|
746
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
747
|
+
companyId: string | null;
|
|
748
|
+
agentId: string | null;
|
|
749
|
+
leadId: string;
|
|
748
750
|
assignedAt: string;
|
|
749
751
|
assignedBy: string | null;
|
|
750
|
-
|
|
751
|
-
|
|
752
|
+
company?: {
|
|
753
|
+
id: string;
|
|
752
754
|
name: string;
|
|
753
|
-
|
|
754
|
-
|
|
755
|
+
updatedAt: string;
|
|
756
|
+
createdAt: string;
|
|
757
|
+
} | null | undefined;
|
|
755
758
|
agent?: {
|
|
756
759
|
id: string;
|
|
760
|
+
updatedAt: string;
|
|
761
|
+
createdAt: string;
|
|
762
|
+
email: string;
|
|
757
763
|
firstName: string;
|
|
758
764
|
lastName: string;
|
|
759
|
-
email: string;
|
|
760
765
|
phoneNumbers: {
|
|
761
766
|
id: string;
|
|
762
767
|
phoneNumber: string;
|
|
763
768
|
isPrimary: boolean;
|
|
764
769
|
description?: string | null | undefined;
|
|
765
770
|
}[];
|
|
766
|
-
createdAt: string;
|
|
767
|
-
updatedAt: string;
|
|
768
771
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
769
772
|
office?: {
|
|
770
773
|
id: string;
|
|
@@ -776,80 +779,77 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
776
779
|
lastName: string;
|
|
777
780
|
}[] | undefined;
|
|
778
781
|
} | undefined;
|
|
779
|
-
|
|
780
|
-
id: string;
|
|
782
|
+
lead?: {
|
|
781
783
|
name: string;
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
} | null | undefined;
|
|
784
|
+
phoneNumber: string;
|
|
785
|
+
} | undefined;
|
|
785
786
|
} | null | undefined;
|
|
786
787
|
}[];
|
|
787
788
|
totalCount: number;
|
|
788
|
-
limit: number;
|
|
789
789
|
skip: number;
|
|
790
790
|
currentPage: number;
|
|
791
791
|
totalPages: number;
|
|
792
792
|
}, {
|
|
793
|
+
limit: number;
|
|
793
794
|
items: {
|
|
794
795
|
id: string;
|
|
795
|
-
assignmentId: string;
|
|
796
|
-
createdAt: string | Date;
|
|
797
796
|
updatedAt: string | Date;
|
|
797
|
+
createdAt: string | Date;
|
|
798
|
+
assignmentId: string;
|
|
799
|
+
rating: CallRating;
|
|
798
800
|
callType: CallType;
|
|
799
801
|
leadSource: LeadSource;
|
|
800
|
-
rating: CallRating;
|
|
801
|
-
ratingWeight: number;
|
|
802
802
|
notes: string | null;
|
|
803
|
-
|
|
803
|
+
ratingWeight: number;
|
|
804
804
|
agentId?: string | undefined;
|
|
805
|
+
leadId?: string | undefined;
|
|
805
806
|
assignment?: {
|
|
806
807
|
id: string;
|
|
807
|
-
leadId: string;
|
|
808
|
-
agentId: string | null;
|
|
809
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
810
|
-
createdAt: string | Date;
|
|
811
808
|
updatedAt: string | Date;
|
|
809
|
+
createdAt: string | Date;
|
|
810
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
811
|
+
companyId: string | null;
|
|
812
|
+
agentId: string | null;
|
|
813
|
+
leadId: string;
|
|
812
814
|
assignedAt: string | Date;
|
|
813
815
|
assignedBy: string | null;
|
|
814
|
-
|
|
815
|
-
|
|
816
|
+
company?: {
|
|
817
|
+
id: string;
|
|
816
818
|
name: string;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
+
updatedAt: string | Date;
|
|
820
|
+
createdAt: string | Date;
|
|
821
|
+
} | null | undefined;
|
|
819
822
|
agent?: {
|
|
820
823
|
id: string;
|
|
824
|
+
updatedAt: string | Date;
|
|
825
|
+
createdAt: string | Date;
|
|
826
|
+
email: string;
|
|
821
827
|
firstName: string;
|
|
822
828
|
lastName: string;
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
829
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
830
|
+
office?: {
|
|
831
|
+
id: string;
|
|
832
|
+
name: string;
|
|
833
|
+
} | null | undefined;
|
|
826
834
|
phoneNumbers?: {
|
|
827
835
|
id: string;
|
|
828
836
|
phoneNumber: string;
|
|
829
837
|
description?: string | null | undefined;
|
|
830
838
|
isPrimary?: boolean | undefined;
|
|
831
839
|
}[] | undefined;
|
|
832
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
833
|
-
office?: {
|
|
834
|
-
id: string;
|
|
835
|
-
name: string;
|
|
836
|
-
} | null | undefined;
|
|
837
840
|
canImpersonateUsers?: {
|
|
838
841
|
id: string;
|
|
839
842
|
firstName: string;
|
|
840
843
|
lastName: string;
|
|
841
844
|
}[] | undefined;
|
|
842
845
|
} | undefined;
|
|
843
|
-
|
|
844
|
-
id: string;
|
|
846
|
+
lead?: {
|
|
845
847
|
name: string;
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
} | null | undefined;
|
|
848
|
+
phoneNumber: string;
|
|
849
|
+
} | undefined;
|
|
849
850
|
} | null | undefined;
|
|
850
851
|
}[];
|
|
851
852
|
totalCount: number;
|
|
852
|
-
limit: number;
|
|
853
853
|
skip: number;
|
|
854
854
|
currentPage: number;
|
|
855
855
|
totalPages: number;
|
|
@@ -861,13 +861,13 @@ export declare const CreateCallHistorySchema: z.ZodObject<{
|
|
|
861
861
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
862
862
|
}, "strip", z.ZodTypeAny, {
|
|
863
863
|
assignmentId: string;
|
|
864
|
-
callType: CallType;
|
|
865
864
|
rating: CallRating;
|
|
865
|
+
callType: CallType;
|
|
866
866
|
notes?: string | undefined;
|
|
867
867
|
}, {
|
|
868
868
|
assignmentId: string;
|
|
869
|
-
callType: CallType;
|
|
870
869
|
rating: CallRating;
|
|
870
|
+
callType: CallType;
|
|
871
871
|
notes?: string | undefined;
|
|
872
872
|
}>;
|
|
873
873
|
export declare const UpdateCallHistorySchema: z.ZodObject<{
|
|
@@ -913,43 +913,43 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
|
|
|
913
913
|
sortBy: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof CallHistorySortableFields>>>;
|
|
914
914
|
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
915
915
|
}, "strip", z.ZodTypeAny, {
|
|
916
|
-
limit: number;
|
|
917
916
|
page: number;
|
|
918
|
-
|
|
919
|
-
phoneNumber?: string | undefined;
|
|
917
|
+
limit: number;
|
|
920
918
|
createdAt?: {
|
|
921
919
|
from?: string | null | undefined;
|
|
922
920
|
to?: string | null | undefined;
|
|
923
921
|
} | null | undefined;
|
|
924
922
|
companyId?: string | undefined;
|
|
925
|
-
|
|
926
|
-
|
|
923
|
+
sortBy?: CallHistorySortableFields | undefined;
|
|
924
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
925
|
+
agentId?: string | undefined;
|
|
927
926
|
rating?: {
|
|
928
927
|
from?: CallRating | null | undefined;
|
|
929
928
|
to?: CallRating | null | undefined;
|
|
930
929
|
} | null | undefined;
|
|
930
|
+
callType?: CallType | undefined;
|
|
931
|
+
leadSource?: LeadSource | undefined;
|
|
932
|
+
phoneNumber?: string | undefined;
|
|
931
933
|
leadName?: string | undefined;
|
|
932
|
-
sortBy?: CallHistorySortableFields | undefined;
|
|
933
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
934
934
|
}, {
|
|
935
|
-
agentId?: string | undefined;
|
|
936
|
-
phoneNumber?: string | undefined;
|
|
937
935
|
createdAt?: {
|
|
938
936
|
from?: string | null | undefined;
|
|
939
937
|
to?: string | null | undefined;
|
|
940
938
|
} | null | undefined;
|
|
941
939
|
companyId?: string | undefined;
|
|
942
|
-
|
|
943
|
-
|
|
940
|
+
sortBy?: CallHistorySortableFields | undefined;
|
|
941
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
942
|
+
page?: number | undefined;
|
|
943
|
+
limit?: number | undefined;
|
|
944
|
+
agentId?: string | undefined;
|
|
944
945
|
rating?: {
|
|
945
946
|
from?: unknown;
|
|
946
947
|
to?: unknown;
|
|
947
948
|
} | null | undefined;
|
|
948
|
-
|
|
949
|
-
|
|
949
|
+
callType?: CallType | undefined;
|
|
950
|
+
leadSource?: LeadSource | undefined;
|
|
951
|
+
phoneNumber?: string | undefined;
|
|
950
952
|
leadName?: string | undefined;
|
|
951
|
-
sortBy?: CallHistorySortableFields | undefined;
|
|
952
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
953
953
|
}>;
|
|
954
954
|
export declare const CallHistoryStatsSchema: z.ZodObject<{
|
|
955
955
|
totalCalls: z.ZodNumber;
|
|
@@ -984,13 +984,13 @@ export declare const callHistoryContract: {
|
|
|
984
984
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
985
985
|
}, "strip", z.ZodTypeAny, {
|
|
986
986
|
assignmentId: string;
|
|
987
|
-
callType: CallType;
|
|
988
987
|
rating: CallRating;
|
|
988
|
+
callType: CallType;
|
|
989
989
|
notes?: string | undefined;
|
|
990
990
|
}, {
|
|
991
991
|
assignmentId: string;
|
|
992
|
-
callType: CallType;
|
|
993
992
|
rating: CallRating;
|
|
993
|
+
callType: CallType;
|
|
994
994
|
notes?: string | undefined;
|
|
995
995
|
}>;
|
|
996
996
|
path: "/v2/call-history";
|
|
@@ -1163,17 +1163,17 @@ export declare const callHistoryContract: {
|
|
|
1163
1163
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1164
1164
|
}, "strip", z.ZodTypeAny, {
|
|
1165
1165
|
id: string;
|
|
1166
|
+
updatedAt: string;
|
|
1167
|
+
createdAt: string;
|
|
1168
|
+
email: string;
|
|
1166
1169
|
firstName: string;
|
|
1167
1170
|
lastName: string;
|
|
1168
|
-
email: string;
|
|
1169
1171
|
phoneNumbers: {
|
|
1170
1172
|
id: string;
|
|
1171
1173
|
phoneNumber: string;
|
|
1172
1174
|
isPrimary: boolean;
|
|
1173
1175
|
description?: string | null | undefined;
|
|
1174
1176
|
}[];
|
|
1175
|
-
createdAt: string;
|
|
1176
|
-
updatedAt: string;
|
|
1177
1177
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1178
1178
|
office?: {
|
|
1179
1179
|
id: string;
|
|
@@ -1186,22 +1186,22 @@ export declare const callHistoryContract: {
|
|
|
1186
1186
|
}[] | undefined;
|
|
1187
1187
|
}, {
|
|
1188
1188
|
id: string;
|
|
1189
|
+
updatedAt: string | Date;
|
|
1190
|
+
createdAt: string | Date;
|
|
1191
|
+
email: string;
|
|
1189
1192
|
firstName: string;
|
|
1190
1193
|
lastName: string;
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1195
|
+
office?: {
|
|
1196
|
+
id: string;
|
|
1197
|
+
name: string;
|
|
1198
|
+
} | null | undefined;
|
|
1194
1199
|
phoneNumbers?: {
|
|
1195
1200
|
id: string;
|
|
1196
1201
|
phoneNumber: string;
|
|
1197
1202
|
description?: string | null | undefined;
|
|
1198
1203
|
isPrimary?: boolean | undefined;
|
|
1199
1204
|
}[] | undefined;
|
|
1200
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1201
|
-
office?: {
|
|
1202
|
-
id: string;
|
|
1203
|
-
name: string;
|
|
1204
|
-
} | null | undefined;
|
|
1205
1205
|
canImpersonateUsers?: {
|
|
1206
1206
|
id: string;
|
|
1207
1207
|
firstName: string;
|
|
@@ -1220,43 +1220,45 @@ export declare const callHistoryContract: {
|
|
|
1220
1220
|
}, "strip", z.ZodTypeAny, {
|
|
1221
1221
|
id: string;
|
|
1222
1222
|
name: string;
|
|
1223
|
-
createdAt: string;
|
|
1224
1223
|
updatedAt: string;
|
|
1224
|
+
createdAt: string;
|
|
1225
1225
|
}, {
|
|
1226
1226
|
id: string;
|
|
1227
1227
|
name: string;
|
|
1228
|
-
createdAt: string | Date;
|
|
1229
1228
|
updatedAt: string | Date;
|
|
1229
|
+
createdAt: string | Date;
|
|
1230
1230
|
}>>>;
|
|
1231
1231
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1232
1232
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1233
1233
|
}, "strip", z.ZodTypeAny, {
|
|
1234
1234
|
id: string;
|
|
1235
|
-
leadId: string;
|
|
1236
|
-
agentId: string | null;
|
|
1237
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1238
|
-
createdAt: string;
|
|
1239
1235
|
updatedAt: string;
|
|
1236
|
+
createdAt: string;
|
|
1237
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1238
|
+
companyId: string | null;
|
|
1239
|
+
agentId: string | null;
|
|
1240
|
+
leadId: string;
|
|
1240
1241
|
assignedAt: string;
|
|
1241
1242
|
assignedBy: string | null;
|
|
1242
|
-
|
|
1243
|
-
|
|
1243
|
+
company?: {
|
|
1244
|
+
id: string;
|
|
1244
1245
|
name: string;
|
|
1245
|
-
|
|
1246
|
-
|
|
1246
|
+
updatedAt: string;
|
|
1247
|
+
createdAt: string;
|
|
1248
|
+
} | null | undefined;
|
|
1247
1249
|
agent?: {
|
|
1248
1250
|
id: string;
|
|
1251
|
+
updatedAt: string;
|
|
1252
|
+
createdAt: string;
|
|
1253
|
+
email: string;
|
|
1249
1254
|
firstName: string;
|
|
1250
1255
|
lastName: string;
|
|
1251
|
-
email: string;
|
|
1252
1256
|
phoneNumbers: {
|
|
1253
1257
|
id: string;
|
|
1254
1258
|
phoneNumber: string;
|
|
1255
1259
|
isPrimary: boolean;
|
|
1256
1260
|
description?: string | null | undefined;
|
|
1257
1261
|
}[];
|
|
1258
|
-
createdAt: string;
|
|
1259
|
-
updatedAt: string;
|
|
1260
1262
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1261
1263
|
office?: {
|
|
1262
1264
|
id: string;
|
|
@@ -1268,56 +1270,54 @@ export declare const callHistoryContract: {
|
|
|
1268
1270
|
lastName: string;
|
|
1269
1271
|
}[] | undefined;
|
|
1270
1272
|
} | undefined;
|
|
1271
|
-
|
|
1272
|
-
id: string;
|
|
1273
|
+
lead?: {
|
|
1273
1274
|
name: string;
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
} | null | undefined;
|
|
1275
|
+
phoneNumber: string;
|
|
1276
|
+
} | undefined;
|
|
1277
1277
|
}, {
|
|
1278
1278
|
id: string;
|
|
1279
|
-
leadId: string;
|
|
1280
|
-
agentId: string | null;
|
|
1281
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1282
|
-
createdAt: string | Date;
|
|
1283
1279
|
updatedAt: string | Date;
|
|
1280
|
+
createdAt: string | Date;
|
|
1281
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1282
|
+
companyId: string | null;
|
|
1283
|
+
agentId: string | null;
|
|
1284
|
+
leadId: string;
|
|
1284
1285
|
assignedAt: string | Date;
|
|
1285
1286
|
assignedBy: string | null;
|
|
1286
|
-
|
|
1287
|
-
|
|
1287
|
+
company?: {
|
|
1288
|
+
id: string;
|
|
1288
1289
|
name: string;
|
|
1289
|
-
|
|
1290
|
-
|
|
1290
|
+
updatedAt: string | Date;
|
|
1291
|
+
createdAt: string | Date;
|
|
1292
|
+
} | null | undefined;
|
|
1291
1293
|
agent?: {
|
|
1292
1294
|
id: string;
|
|
1295
|
+
updatedAt: string | Date;
|
|
1296
|
+
createdAt: string | Date;
|
|
1297
|
+
email: string;
|
|
1293
1298
|
firstName: string;
|
|
1294
1299
|
lastName: string;
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1300
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1301
|
+
office?: {
|
|
1302
|
+
id: string;
|
|
1303
|
+
name: string;
|
|
1304
|
+
} | null | undefined;
|
|
1298
1305
|
phoneNumbers?: {
|
|
1299
1306
|
id: string;
|
|
1300
1307
|
phoneNumber: string;
|
|
1301
1308
|
description?: string | null | undefined;
|
|
1302
1309
|
isPrimary?: boolean | undefined;
|
|
1303
1310
|
}[] | undefined;
|
|
1304
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1305
|
-
office?: {
|
|
1306
|
-
id: string;
|
|
1307
|
-
name: string;
|
|
1308
|
-
} | null | undefined;
|
|
1309
1311
|
canImpersonateUsers?: {
|
|
1310
1312
|
id: string;
|
|
1311
1313
|
firstName: string;
|
|
1312
1314
|
lastName: string;
|
|
1313
1315
|
}[] | undefined;
|
|
1314
1316
|
} | undefined;
|
|
1315
|
-
|
|
1316
|
-
id: string;
|
|
1317
|
+
lead?: {
|
|
1317
1318
|
name: string;
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
} | null | undefined;
|
|
1319
|
+
phoneNumber: string;
|
|
1320
|
+
} | undefined;
|
|
1321
1321
|
}>>>;
|
|
1322
1322
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1323
1323
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -1328,43 +1328,45 @@ export declare const callHistoryContract: {
|
|
|
1328
1328
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1329
1329
|
}, "strip", z.ZodTypeAny, {
|
|
1330
1330
|
id: string;
|
|
1331
|
-
assignmentId: string;
|
|
1332
|
-
createdAt: string;
|
|
1333
1331
|
updatedAt: string;
|
|
1332
|
+
createdAt: string;
|
|
1333
|
+
assignmentId: string;
|
|
1334
|
+
rating: CallRating;
|
|
1334
1335
|
callType: CallType;
|
|
1335
1336
|
leadSource: LeadSource;
|
|
1336
|
-
rating: CallRating;
|
|
1337
|
-
ratingWeight: number;
|
|
1338
1337
|
notes: string | null;
|
|
1339
|
-
|
|
1338
|
+
ratingWeight: number;
|
|
1340
1339
|
agentId?: string | undefined;
|
|
1340
|
+
leadId?: string | undefined;
|
|
1341
1341
|
assignment?: {
|
|
1342
1342
|
id: string;
|
|
1343
|
-
leadId: string;
|
|
1344
|
-
agentId: string | null;
|
|
1345
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1346
|
-
createdAt: string;
|
|
1347
1343
|
updatedAt: string;
|
|
1344
|
+
createdAt: string;
|
|
1345
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1346
|
+
companyId: string | null;
|
|
1347
|
+
agentId: string | null;
|
|
1348
|
+
leadId: string;
|
|
1348
1349
|
assignedAt: string;
|
|
1349
1350
|
assignedBy: string | null;
|
|
1350
|
-
|
|
1351
|
-
|
|
1351
|
+
company?: {
|
|
1352
|
+
id: string;
|
|
1352
1353
|
name: string;
|
|
1353
|
-
|
|
1354
|
-
|
|
1354
|
+
updatedAt: string;
|
|
1355
|
+
createdAt: string;
|
|
1356
|
+
} | null | undefined;
|
|
1355
1357
|
agent?: {
|
|
1356
1358
|
id: string;
|
|
1359
|
+
updatedAt: string;
|
|
1360
|
+
createdAt: string;
|
|
1361
|
+
email: string;
|
|
1357
1362
|
firstName: string;
|
|
1358
1363
|
lastName: string;
|
|
1359
|
-
email: string;
|
|
1360
1364
|
phoneNumbers: {
|
|
1361
1365
|
id: string;
|
|
1362
1366
|
phoneNumber: string;
|
|
1363
1367
|
isPrimary: boolean;
|
|
1364
1368
|
description?: string | null | undefined;
|
|
1365
1369
|
}[];
|
|
1366
|
-
createdAt: string;
|
|
1367
|
-
updatedAt: string;
|
|
1368
1370
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1369
1371
|
office?: {
|
|
1370
1372
|
id: string;
|
|
@@ -1376,69 +1378,67 @@ export declare const callHistoryContract: {
|
|
|
1376
1378
|
lastName: string;
|
|
1377
1379
|
}[] | undefined;
|
|
1378
1380
|
} | undefined;
|
|
1379
|
-
|
|
1380
|
-
id: string;
|
|
1381
|
+
lead?: {
|
|
1381
1382
|
name: string;
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
} | null | undefined;
|
|
1383
|
+
phoneNumber: string;
|
|
1384
|
+
} | undefined;
|
|
1385
1385
|
} | null | undefined;
|
|
1386
1386
|
}, {
|
|
1387
1387
|
id: string;
|
|
1388
|
-
assignmentId: string;
|
|
1389
|
-
createdAt: string | Date;
|
|
1390
1388
|
updatedAt: string | Date;
|
|
1389
|
+
createdAt: string | Date;
|
|
1390
|
+
assignmentId: string;
|
|
1391
|
+
rating: CallRating;
|
|
1391
1392
|
callType: CallType;
|
|
1392
1393
|
leadSource: LeadSource;
|
|
1393
|
-
rating: CallRating;
|
|
1394
|
-
ratingWeight: number;
|
|
1395
1394
|
notes: string | null;
|
|
1396
|
-
|
|
1395
|
+
ratingWeight: number;
|
|
1397
1396
|
agentId?: string | undefined;
|
|
1397
|
+
leadId?: string | undefined;
|
|
1398
1398
|
assignment?: {
|
|
1399
1399
|
id: string;
|
|
1400
|
-
leadId: string;
|
|
1401
|
-
agentId: string | null;
|
|
1402
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1403
|
-
createdAt: string | Date;
|
|
1404
1400
|
updatedAt: string | Date;
|
|
1401
|
+
createdAt: string | Date;
|
|
1402
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1403
|
+
companyId: string | null;
|
|
1404
|
+
agentId: string | null;
|
|
1405
|
+
leadId: string;
|
|
1405
1406
|
assignedAt: string | Date;
|
|
1406
1407
|
assignedBy: string | null;
|
|
1407
|
-
|
|
1408
|
-
|
|
1408
|
+
company?: {
|
|
1409
|
+
id: string;
|
|
1409
1410
|
name: string;
|
|
1410
|
-
|
|
1411
|
-
|
|
1411
|
+
updatedAt: string | Date;
|
|
1412
|
+
createdAt: string | Date;
|
|
1413
|
+
} | null | undefined;
|
|
1412
1414
|
agent?: {
|
|
1413
1415
|
id: string;
|
|
1416
|
+
updatedAt: string | Date;
|
|
1417
|
+
createdAt: string | Date;
|
|
1418
|
+
email: string;
|
|
1414
1419
|
firstName: string;
|
|
1415
1420
|
lastName: string;
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1421
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1422
|
+
office?: {
|
|
1423
|
+
id: string;
|
|
1424
|
+
name: string;
|
|
1425
|
+
} | null | undefined;
|
|
1419
1426
|
phoneNumbers?: {
|
|
1420
1427
|
id: string;
|
|
1421
1428
|
phoneNumber: string;
|
|
1422
1429
|
description?: string | null | undefined;
|
|
1423
1430
|
isPrimary?: boolean | undefined;
|
|
1424
1431
|
}[] | undefined;
|
|
1425
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1426
|
-
office?: {
|
|
1427
|
-
id: string;
|
|
1428
|
-
name: string;
|
|
1429
|
-
} | null | undefined;
|
|
1430
1432
|
canImpersonateUsers?: {
|
|
1431
1433
|
id: string;
|
|
1432
1434
|
firstName: string;
|
|
1433
1435
|
lastName: string;
|
|
1434
1436
|
}[] | undefined;
|
|
1435
1437
|
} | undefined;
|
|
1436
|
-
|
|
1437
|
-
id: string;
|
|
1438
|
+
lead?: {
|
|
1438
1439
|
name: string;
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
} | null | undefined;
|
|
1440
|
+
phoneNumber: string;
|
|
1441
|
+
} | undefined;
|
|
1442
1442
|
} | null | undefined;
|
|
1443
1443
|
}>;
|
|
1444
1444
|
409: z.ZodObject<{
|
|
@@ -1469,9 +1469,6 @@ export declare const callHistoryContract: {
|
|
|
1469
1469
|
};
|
|
1470
1470
|
};
|
|
1471
1471
|
findAll: {
|
|
1472
|
-
metadata: {
|
|
1473
|
-
tags: string[];
|
|
1474
|
-
};
|
|
1475
1472
|
query: z.ZodObject<{
|
|
1476
1473
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1477
1474
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1505,44 +1502,47 @@ export declare const callHistoryContract: {
|
|
|
1505
1502
|
sortBy: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof CallHistorySortableFields>>>;
|
|
1506
1503
|
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
1507
1504
|
}, "strip", z.ZodTypeAny, {
|
|
1508
|
-
limit: number;
|
|
1509
1505
|
page: number;
|
|
1510
|
-
|
|
1511
|
-
phoneNumber?: string | undefined;
|
|
1506
|
+
limit: number;
|
|
1512
1507
|
createdAt?: {
|
|
1513
1508
|
from?: string | null | undefined;
|
|
1514
1509
|
to?: string | null | undefined;
|
|
1515
1510
|
} | null | undefined;
|
|
1516
1511
|
companyId?: string | undefined;
|
|
1517
|
-
|
|
1518
|
-
|
|
1512
|
+
sortBy?: CallHistorySortableFields | undefined;
|
|
1513
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1514
|
+
agentId?: string | undefined;
|
|
1519
1515
|
rating?: {
|
|
1520
1516
|
from?: CallRating | null | undefined;
|
|
1521
1517
|
to?: CallRating | null | undefined;
|
|
1522
1518
|
} | null | undefined;
|
|
1519
|
+
callType?: CallType | undefined;
|
|
1520
|
+
leadSource?: LeadSource | undefined;
|
|
1521
|
+
phoneNumber?: string | undefined;
|
|
1523
1522
|
leadName?: string | undefined;
|
|
1524
|
-
sortBy?: CallHistorySortableFields | undefined;
|
|
1525
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1526
1523
|
}, {
|
|
1527
|
-
agentId?: string | undefined;
|
|
1528
|
-
phoneNumber?: string | undefined;
|
|
1529
1524
|
createdAt?: {
|
|
1530
1525
|
from?: string | null | undefined;
|
|
1531
1526
|
to?: string | null | undefined;
|
|
1532
1527
|
} | null | undefined;
|
|
1533
1528
|
companyId?: string | undefined;
|
|
1534
|
-
|
|
1535
|
-
|
|
1529
|
+
sortBy?: CallHistorySortableFields | undefined;
|
|
1530
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1531
|
+
page?: number | undefined;
|
|
1532
|
+
limit?: number | undefined;
|
|
1533
|
+
agentId?: string | undefined;
|
|
1536
1534
|
rating?: {
|
|
1537
1535
|
from?: unknown;
|
|
1538
1536
|
to?: unknown;
|
|
1539
1537
|
} | null | undefined;
|
|
1540
|
-
|
|
1541
|
-
|
|
1538
|
+
callType?: CallType | undefined;
|
|
1539
|
+
leadSource?: LeadSource | undefined;
|
|
1540
|
+
phoneNumber?: string | undefined;
|
|
1542
1541
|
leadName?: string | undefined;
|
|
1543
|
-
sortBy?: CallHistorySortableFields | undefined;
|
|
1544
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1545
1542
|
}>;
|
|
1543
|
+
metadata: {
|
|
1544
|
+
tags: string[];
|
|
1545
|
+
};
|
|
1546
1546
|
summary: "Get call history records";
|
|
1547
1547
|
method: "GET";
|
|
1548
1548
|
path: "/v2/call-history";
|
|
@@ -1716,17 +1716,17 @@ export declare const callHistoryContract: {
|
|
|
1716
1716
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1717
1717
|
}, "strip", z.ZodTypeAny, {
|
|
1718
1718
|
id: string;
|
|
1719
|
+
updatedAt: string;
|
|
1720
|
+
createdAt: string;
|
|
1721
|
+
email: string;
|
|
1719
1722
|
firstName: string;
|
|
1720
1723
|
lastName: string;
|
|
1721
|
-
email: string;
|
|
1722
1724
|
phoneNumbers: {
|
|
1723
1725
|
id: string;
|
|
1724
1726
|
phoneNumber: string;
|
|
1725
1727
|
isPrimary: boolean;
|
|
1726
1728
|
description?: string | null | undefined;
|
|
1727
1729
|
}[];
|
|
1728
|
-
createdAt: string;
|
|
1729
|
-
updatedAt: string;
|
|
1730
1730
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1731
1731
|
office?: {
|
|
1732
1732
|
id: string;
|
|
@@ -1739,22 +1739,22 @@ export declare const callHistoryContract: {
|
|
|
1739
1739
|
}[] | undefined;
|
|
1740
1740
|
}, {
|
|
1741
1741
|
id: string;
|
|
1742
|
+
updatedAt: string | Date;
|
|
1743
|
+
createdAt: string | Date;
|
|
1744
|
+
email: string;
|
|
1742
1745
|
firstName: string;
|
|
1743
1746
|
lastName: string;
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1748
|
+
office?: {
|
|
1749
|
+
id: string;
|
|
1750
|
+
name: string;
|
|
1751
|
+
} | null | undefined;
|
|
1747
1752
|
phoneNumbers?: {
|
|
1748
1753
|
id: string;
|
|
1749
1754
|
phoneNumber: string;
|
|
1750
1755
|
description?: string | null | undefined;
|
|
1751
1756
|
isPrimary?: boolean | undefined;
|
|
1752
1757
|
}[] | undefined;
|
|
1753
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1754
|
-
office?: {
|
|
1755
|
-
id: string;
|
|
1756
|
-
name: string;
|
|
1757
|
-
} | null | undefined;
|
|
1758
1758
|
canImpersonateUsers?: {
|
|
1759
1759
|
id: string;
|
|
1760
1760
|
firstName: string;
|
|
@@ -1773,43 +1773,45 @@ export declare const callHistoryContract: {
|
|
|
1773
1773
|
}, "strip", z.ZodTypeAny, {
|
|
1774
1774
|
id: string;
|
|
1775
1775
|
name: string;
|
|
1776
|
-
createdAt: string;
|
|
1777
1776
|
updatedAt: string;
|
|
1777
|
+
createdAt: string;
|
|
1778
1778
|
}, {
|
|
1779
1779
|
id: string;
|
|
1780
1780
|
name: string;
|
|
1781
|
-
createdAt: string | Date;
|
|
1782
1781
|
updatedAt: string | Date;
|
|
1782
|
+
createdAt: string | Date;
|
|
1783
1783
|
}>>>;
|
|
1784
1784
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1785
1785
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1786
1786
|
}, "strip", z.ZodTypeAny, {
|
|
1787
1787
|
id: string;
|
|
1788
|
-
leadId: string;
|
|
1789
|
-
agentId: string | null;
|
|
1790
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1791
|
-
createdAt: string;
|
|
1792
1788
|
updatedAt: string;
|
|
1789
|
+
createdAt: string;
|
|
1790
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1791
|
+
companyId: string | null;
|
|
1792
|
+
agentId: string | null;
|
|
1793
|
+
leadId: string;
|
|
1793
1794
|
assignedAt: string;
|
|
1794
1795
|
assignedBy: string | null;
|
|
1795
|
-
|
|
1796
|
-
|
|
1796
|
+
company?: {
|
|
1797
|
+
id: string;
|
|
1797
1798
|
name: string;
|
|
1798
|
-
|
|
1799
|
-
|
|
1799
|
+
updatedAt: string;
|
|
1800
|
+
createdAt: string;
|
|
1801
|
+
} | null | undefined;
|
|
1800
1802
|
agent?: {
|
|
1801
1803
|
id: string;
|
|
1804
|
+
updatedAt: string;
|
|
1805
|
+
createdAt: string;
|
|
1806
|
+
email: string;
|
|
1802
1807
|
firstName: string;
|
|
1803
1808
|
lastName: string;
|
|
1804
|
-
email: string;
|
|
1805
1809
|
phoneNumbers: {
|
|
1806
1810
|
id: string;
|
|
1807
1811
|
phoneNumber: string;
|
|
1808
1812
|
isPrimary: boolean;
|
|
1809
1813
|
description?: string | null | undefined;
|
|
1810
1814
|
}[];
|
|
1811
|
-
createdAt: string;
|
|
1812
|
-
updatedAt: string;
|
|
1813
1815
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1814
1816
|
office?: {
|
|
1815
1817
|
id: string;
|
|
@@ -1821,56 +1823,54 @@ export declare const callHistoryContract: {
|
|
|
1821
1823
|
lastName: string;
|
|
1822
1824
|
}[] | undefined;
|
|
1823
1825
|
} | undefined;
|
|
1824
|
-
|
|
1825
|
-
id: string;
|
|
1826
|
+
lead?: {
|
|
1826
1827
|
name: string;
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
} | null | undefined;
|
|
1828
|
+
phoneNumber: string;
|
|
1829
|
+
} | undefined;
|
|
1830
1830
|
}, {
|
|
1831
1831
|
id: string;
|
|
1832
|
-
leadId: string;
|
|
1833
|
-
agentId: string | null;
|
|
1834
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1835
|
-
createdAt: string | Date;
|
|
1836
1832
|
updatedAt: string | Date;
|
|
1833
|
+
createdAt: string | Date;
|
|
1834
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1835
|
+
companyId: string | null;
|
|
1836
|
+
agentId: string | null;
|
|
1837
|
+
leadId: string;
|
|
1837
1838
|
assignedAt: string | Date;
|
|
1838
1839
|
assignedBy: string | null;
|
|
1839
|
-
|
|
1840
|
-
|
|
1840
|
+
company?: {
|
|
1841
|
+
id: string;
|
|
1841
1842
|
name: string;
|
|
1842
|
-
|
|
1843
|
-
|
|
1843
|
+
updatedAt: string | Date;
|
|
1844
|
+
createdAt: string | Date;
|
|
1845
|
+
} | null | undefined;
|
|
1844
1846
|
agent?: {
|
|
1845
1847
|
id: string;
|
|
1848
|
+
updatedAt: string | Date;
|
|
1849
|
+
createdAt: string | Date;
|
|
1850
|
+
email: string;
|
|
1846
1851
|
firstName: string;
|
|
1847
1852
|
lastName: string;
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1853
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1854
|
+
office?: {
|
|
1855
|
+
id: string;
|
|
1856
|
+
name: string;
|
|
1857
|
+
} | null | undefined;
|
|
1851
1858
|
phoneNumbers?: {
|
|
1852
1859
|
id: string;
|
|
1853
1860
|
phoneNumber: string;
|
|
1854
1861
|
description?: string | null | undefined;
|
|
1855
1862
|
isPrimary?: boolean | undefined;
|
|
1856
1863
|
}[] | undefined;
|
|
1857
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1858
|
-
office?: {
|
|
1859
|
-
id: string;
|
|
1860
|
-
name: string;
|
|
1861
|
-
} | null | undefined;
|
|
1862
1864
|
canImpersonateUsers?: {
|
|
1863
1865
|
id: string;
|
|
1864
1866
|
firstName: string;
|
|
1865
1867
|
lastName: string;
|
|
1866
1868
|
}[] | undefined;
|
|
1867
1869
|
} | undefined;
|
|
1868
|
-
|
|
1869
|
-
id: string;
|
|
1870
|
+
lead?: {
|
|
1870
1871
|
name: string;
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
} | null | undefined;
|
|
1872
|
+
phoneNumber: string;
|
|
1873
|
+
} | undefined;
|
|
1874
1874
|
}>>>;
|
|
1875
1875
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1876
1876
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -1881,43 +1881,45 @@ export declare const callHistoryContract: {
|
|
|
1881
1881
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1882
1882
|
}, "strip", z.ZodTypeAny, {
|
|
1883
1883
|
id: string;
|
|
1884
|
-
assignmentId: string;
|
|
1885
|
-
createdAt: string;
|
|
1886
1884
|
updatedAt: string;
|
|
1885
|
+
createdAt: string;
|
|
1886
|
+
assignmentId: string;
|
|
1887
|
+
rating: CallRating;
|
|
1887
1888
|
callType: CallType;
|
|
1888
1889
|
leadSource: LeadSource;
|
|
1889
|
-
rating: CallRating;
|
|
1890
|
-
ratingWeight: number;
|
|
1891
1890
|
notes: string | null;
|
|
1892
|
-
|
|
1891
|
+
ratingWeight: number;
|
|
1893
1892
|
agentId?: string | undefined;
|
|
1893
|
+
leadId?: string | undefined;
|
|
1894
1894
|
assignment?: {
|
|
1895
1895
|
id: string;
|
|
1896
|
-
leadId: string;
|
|
1897
|
-
agentId: string | null;
|
|
1898
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1899
|
-
createdAt: string;
|
|
1900
1896
|
updatedAt: string;
|
|
1897
|
+
createdAt: string;
|
|
1898
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1899
|
+
companyId: string | null;
|
|
1900
|
+
agentId: string | null;
|
|
1901
|
+
leadId: string;
|
|
1901
1902
|
assignedAt: string;
|
|
1902
1903
|
assignedBy: string | null;
|
|
1903
|
-
|
|
1904
|
-
|
|
1904
|
+
company?: {
|
|
1905
|
+
id: string;
|
|
1905
1906
|
name: string;
|
|
1906
|
-
|
|
1907
|
-
|
|
1907
|
+
updatedAt: string;
|
|
1908
|
+
createdAt: string;
|
|
1909
|
+
} | null | undefined;
|
|
1908
1910
|
agent?: {
|
|
1909
1911
|
id: string;
|
|
1912
|
+
updatedAt: string;
|
|
1913
|
+
createdAt: string;
|
|
1914
|
+
email: string;
|
|
1910
1915
|
firstName: string;
|
|
1911
1916
|
lastName: string;
|
|
1912
|
-
email: string;
|
|
1913
1917
|
phoneNumbers: {
|
|
1914
1918
|
id: string;
|
|
1915
1919
|
phoneNumber: string;
|
|
1916
1920
|
isPrimary: boolean;
|
|
1917
1921
|
description?: string | null | undefined;
|
|
1918
1922
|
}[];
|
|
1919
|
-
createdAt: string;
|
|
1920
|
-
updatedAt: string;
|
|
1921
1923
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1922
1924
|
office?: {
|
|
1923
1925
|
id: string;
|
|
@@ -1929,69 +1931,67 @@ export declare const callHistoryContract: {
|
|
|
1929
1931
|
lastName: string;
|
|
1930
1932
|
}[] | undefined;
|
|
1931
1933
|
} | undefined;
|
|
1932
|
-
|
|
1933
|
-
id: string;
|
|
1934
|
+
lead?: {
|
|
1934
1935
|
name: string;
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
} | null | undefined;
|
|
1936
|
+
phoneNumber: string;
|
|
1937
|
+
} | undefined;
|
|
1938
1938
|
} | null | undefined;
|
|
1939
1939
|
}, {
|
|
1940
1940
|
id: string;
|
|
1941
|
-
assignmentId: string;
|
|
1942
|
-
createdAt: string | Date;
|
|
1943
1941
|
updatedAt: string | Date;
|
|
1942
|
+
createdAt: string | Date;
|
|
1943
|
+
assignmentId: string;
|
|
1944
|
+
rating: CallRating;
|
|
1944
1945
|
callType: CallType;
|
|
1945
1946
|
leadSource: LeadSource;
|
|
1946
|
-
rating: CallRating;
|
|
1947
|
-
ratingWeight: number;
|
|
1948
1947
|
notes: string | null;
|
|
1949
|
-
|
|
1948
|
+
ratingWeight: number;
|
|
1950
1949
|
agentId?: string | undefined;
|
|
1950
|
+
leadId?: string | undefined;
|
|
1951
1951
|
assignment?: {
|
|
1952
1952
|
id: string;
|
|
1953
|
-
leadId: string;
|
|
1954
|
-
agentId: string | null;
|
|
1955
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1956
|
-
createdAt: string | Date;
|
|
1957
1953
|
updatedAt: string | Date;
|
|
1954
|
+
createdAt: string | Date;
|
|
1955
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1956
|
+
companyId: string | null;
|
|
1957
|
+
agentId: string | null;
|
|
1958
|
+
leadId: string;
|
|
1958
1959
|
assignedAt: string | Date;
|
|
1959
1960
|
assignedBy: string | null;
|
|
1960
|
-
|
|
1961
|
-
|
|
1961
|
+
company?: {
|
|
1962
|
+
id: string;
|
|
1962
1963
|
name: string;
|
|
1963
|
-
|
|
1964
|
-
|
|
1964
|
+
updatedAt: string | Date;
|
|
1965
|
+
createdAt: string | Date;
|
|
1966
|
+
} | null | undefined;
|
|
1965
1967
|
agent?: {
|
|
1966
1968
|
id: string;
|
|
1969
|
+
updatedAt: string | Date;
|
|
1970
|
+
createdAt: string | Date;
|
|
1971
|
+
email: string;
|
|
1967
1972
|
firstName: string;
|
|
1968
1973
|
lastName: string;
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1974
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1975
|
+
office?: {
|
|
1976
|
+
id: string;
|
|
1977
|
+
name: string;
|
|
1978
|
+
} | null | undefined;
|
|
1972
1979
|
phoneNumbers?: {
|
|
1973
1980
|
id: string;
|
|
1974
1981
|
phoneNumber: string;
|
|
1975
1982
|
description?: string | null | undefined;
|
|
1976
1983
|
isPrimary?: boolean | undefined;
|
|
1977
1984
|
}[] | undefined;
|
|
1978
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1979
|
-
office?: {
|
|
1980
|
-
id: string;
|
|
1981
|
-
name: string;
|
|
1982
|
-
} | null | undefined;
|
|
1983
1985
|
canImpersonateUsers?: {
|
|
1984
1986
|
id: string;
|
|
1985
1987
|
firstName: string;
|
|
1986
1988
|
lastName: string;
|
|
1987
1989
|
}[] | undefined;
|
|
1988
1990
|
} | undefined;
|
|
1989
|
-
|
|
1990
|
-
id: string;
|
|
1991
|
+
lead?: {
|
|
1991
1992
|
name: string;
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
} | null | undefined;
|
|
1993
|
+
phoneNumber: string;
|
|
1994
|
+
} | undefined;
|
|
1995
1995
|
} | null | undefined;
|
|
1996
1996
|
}>, "many">;
|
|
1997
1997
|
totalCount: z.ZodNumber;
|
|
@@ -2000,45 +2000,48 @@ export declare const callHistoryContract: {
|
|
|
2000
2000
|
currentPage: z.ZodNumber;
|
|
2001
2001
|
totalPages: z.ZodNumber;
|
|
2002
2002
|
}, "strip", z.ZodTypeAny, {
|
|
2003
|
+
limit: number;
|
|
2003
2004
|
items: {
|
|
2004
2005
|
id: string;
|
|
2005
|
-
assignmentId: string;
|
|
2006
|
-
createdAt: string;
|
|
2007
2006
|
updatedAt: string;
|
|
2007
|
+
createdAt: string;
|
|
2008
|
+
assignmentId: string;
|
|
2009
|
+
rating: CallRating;
|
|
2008
2010
|
callType: CallType;
|
|
2009
2011
|
leadSource: LeadSource;
|
|
2010
|
-
rating: CallRating;
|
|
2011
|
-
ratingWeight: number;
|
|
2012
2012
|
notes: string | null;
|
|
2013
|
-
|
|
2013
|
+
ratingWeight: number;
|
|
2014
2014
|
agentId?: string | undefined;
|
|
2015
|
+
leadId?: string | undefined;
|
|
2015
2016
|
assignment?: {
|
|
2016
2017
|
id: string;
|
|
2017
|
-
leadId: string;
|
|
2018
|
-
agentId: string | null;
|
|
2019
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2020
|
-
createdAt: string;
|
|
2021
2018
|
updatedAt: string;
|
|
2019
|
+
createdAt: string;
|
|
2020
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2021
|
+
companyId: string | null;
|
|
2022
|
+
agentId: string | null;
|
|
2023
|
+
leadId: string;
|
|
2022
2024
|
assignedAt: string;
|
|
2023
2025
|
assignedBy: string | null;
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
+
company?: {
|
|
2027
|
+
id: string;
|
|
2026
2028
|
name: string;
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
+
updatedAt: string;
|
|
2030
|
+
createdAt: string;
|
|
2031
|
+
} | null | undefined;
|
|
2029
2032
|
agent?: {
|
|
2030
2033
|
id: string;
|
|
2034
|
+
updatedAt: string;
|
|
2035
|
+
createdAt: string;
|
|
2036
|
+
email: string;
|
|
2031
2037
|
firstName: string;
|
|
2032
2038
|
lastName: string;
|
|
2033
|
-
email: string;
|
|
2034
2039
|
phoneNumbers: {
|
|
2035
2040
|
id: string;
|
|
2036
2041
|
phoneNumber: string;
|
|
2037
2042
|
isPrimary: boolean;
|
|
2038
2043
|
description?: string | null | undefined;
|
|
2039
2044
|
}[];
|
|
2040
|
-
createdAt: string;
|
|
2041
|
-
updatedAt: string;
|
|
2042
2045
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2043
2046
|
office?: {
|
|
2044
2047
|
id: string;
|
|
@@ -2050,80 +2053,77 @@ export declare const callHistoryContract: {
|
|
|
2050
2053
|
lastName: string;
|
|
2051
2054
|
}[] | undefined;
|
|
2052
2055
|
} | undefined;
|
|
2053
|
-
|
|
2054
|
-
id: string;
|
|
2056
|
+
lead?: {
|
|
2055
2057
|
name: string;
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
} | null | undefined;
|
|
2058
|
+
phoneNumber: string;
|
|
2059
|
+
} | undefined;
|
|
2059
2060
|
} | null | undefined;
|
|
2060
2061
|
}[];
|
|
2061
2062
|
totalCount: number;
|
|
2062
|
-
limit: number;
|
|
2063
2063
|
skip: number;
|
|
2064
2064
|
currentPage: number;
|
|
2065
2065
|
totalPages: number;
|
|
2066
2066
|
}, {
|
|
2067
|
+
limit: number;
|
|
2067
2068
|
items: {
|
|
2068
2069
|
id: string;
|
|
2069
|
-
assignmentId: string;
|
|
2070
|
-
createdAt: string | Date;
|
|
2071
2070
|
updatedAt: string | Date;
|
|
2071
|
+
createdAt: string | Date;
|
|
2072
|
+
assignmentId: string;
|
|
2073
|
+
rating: CallRating;
|
|
2072
2074
|
callType: CallType;
|
|
2073
2075
|
leadSource: LeadSource;
|
|
2074
|
-
rating: CallRating;
|
|
2075
|
-
ratingWeight: number;
|
|
2076
2076
|
notes: string | null;
|
|
2077
|
-
|
|
2077
|
+
ratingWeight: number;
|
|
2078
2078
|
agentId?: string | undefined;
|
|
2079
|
+
leadId?: string | undefined;
|
|
2079
2080
|
assignment?: {
|
|
2080
2081
|
id: string;
|
|
2081
|
-
leadId: string;
|
|
2082
|
-
agentId: string | null;
|
|
2083
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2084
|
-
createdAt: string | Date;
|
|
2085
2082
|
updatedAt: string | Date;
|
|
2083
|
+
createdAt: string | Date;
|
|
2084
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2085
|
+
companyId: string | null;
|
|
2086
|
+
agentId: string | null;
|
|
2087
|
+
leadId: string;
|
|
2086
2088
|
assignedAt: string | Date;
|
|
2087
2089
|
assignedBy: string | null;
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
+
company?: {
|
|
2091
|
+
id: string;
|
|
2090
2092
|
name: string;
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
+
updatedAt: string | Date;
|
|
2094
|
+
createdAt: string | Date;
|
|
2095
|
+
} | null | undefined;
|
|
2093
2096
|
agent?: {
|
|
2094
2097
|
id: string;
|
|
2098
|
+
updatedAt: string | Date;
|
|
2099
|
+
createdAt: string | Date;
|
|
2100
|
+
email: string;
|
|
2095
2101
|
firstName: string;
|
|
2096
2102
|
lastName: string;
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2103
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2104
|
+
office?: {
|
|
2105
|
+
id: string;
|
|
2106
|
+
name: string;
|
|
2107
|
+
} | null | undefined;
|
|
2100
2108
|
phoneNumbers?: {
|
|
2101
2109
|
id: string;
|
|
2102
2110
|
phoneNumber: string;
|
|
2103
2111
|
description?: string | null | undefined;
|
|
2104
2112
|
isPrimary?: boolean | undefined;
|
|
2105
2113
|
}[] | undefined;
|
|
2106
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2107
|
-
office?: {
|
|
2108
|
-
id: string;
|
|
2109
|
-
name: string;
|
|
2110
|
-
} | null | undefined;
|
|
2111
2114
|
canImpersonateUsers?: {
|
|
2112
2115
|
id: string;
|
|
2113
2116
|
firstName: string;
|
|
2114
2117
|
lastName: string;
|
|
2115
2118
|
}[] | undefined;
|
|
2116
2119
|
} | undefined;
|
|
2117
|
-
|
|
2118
|
-
id: string;
|
|
2120
|
+
lead?: {
|
|
2119
2121
|
name: string;
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
} | null | undefined;
|
|
2122
|
+
phoneNumber: string;
|
|
2123
|
+
} | undefined;
|
|
2123
2124
|
} | null | undefined;
|
|
2124
2125
|
}[];
|
|
2125
2126
|
totalCount: number;
|
|
2126
|
-
limit: number;
|
|
2127
2127
|
skip: number;
|
|
2128
2128
|
currentPage: number;
|
|
2129
2129
|
totalPages: number;
|
|
@@ -2313,17 +2313,17 @@ export declare const callHistoryContract: {
|
|
|
2313
2313
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2314
2314
|
}, "strip", z.ZodTypeAny, {
|
|
2315
2315
|
id: string;
|
|
2316
|
+
updatedAt: string;
|
|
2317
|
+
createdAt: string;
|
|
2318
|
+
email: string;
|
|
2316
2319
|
firstName: string;
|
|
2317
2320
|
lastName: string;
|
|
2318
|
-
email: string;
|
|
2319
2321
|
phoneNumbers: {
|
|
2320
2322
|
id: string;
|
|
2321
2323
|
phoneNumber: string;
|
|
2322
2324
|
isPrimary: boolean;
|
|
2323
2325
|
description?: string | null | undefined;
|
|
2324
2326
|
}[];
|
|
2325
|
-
createdAt: string;
|
|
2326
|
-
updatedAt: string;
|
|
2327
2327
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2328
2328
|
office?: {
|
|
2329
2329
|
id: string;
|
|
@@ -2336,22 +2336,22 @@ export declare const callHistoryContract: {
|
|
|
2336
2336
|
}[] | undefined;
|
|
2337
2337
|
}, {
|
|
2338
2338
|
id: string;
|
|
2339
|
+
updatedAt: string | Date;
|
|
2340
|
+
createdAt: string | Date;
|
|
2341
|
+
email: string;
|
|
2339
2342
|
firstName: string;
|
|
2340
2343
|
lastName: string;
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2345
|
+
office?: {
|
|
2346
|
+
id: string;
|
|
2347
|
+
name: string;
|
|
2348
|
+
} | null | undefined;
|
|
2344
2349
|
phoneNumbers?: {
|
|
2345
2350
|
id: string;
|
|
2346
2351
|
phoneNumber: string;
|
|
2347
2352
|
description?: string | null | undefined;
|
|
2348
2353
|
isPrimary?: boolean | undefined;
|
|
2349
2354
|
}[] | undefined;
|
|
2350
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2351
|
-
office?: {
|
|
2352
|
-
id: string;
|
|
2353
|
-
name: string;
|
|
2354
|
-
} | null | undefined;
|
|
2355
2355
|
canImpersonateUsers?: {
|
|
2356
2356
|
id: string;
|
|
2357
2357
|
firstName: string;
|
|
@@ -2370,43 +2370,45 @@ export declare const callHistoryContract: {
|
|
|
2370
2370
|
}, "strip", z.ZodTypeAny, {
|
|
2371
2371
|
id: string;
|
|
2372
2372
|
name: string;
|
|
2373
|
-
createdAt: string;
|
|
2374
2373
|
updatedAt: string;
|
|
2374
|
+
createdAt: string;
|
|
2375
2375
|
}, {
|
|
2376
2376
|
id: string;
|
|
2377
2377
|
name: string;
|
|
2378
|
-
createdAt: string | Date;
|
|
2379
2378
|
updatedAt: string | Date;
|
|
2379
|
+
createdAt: string | Date;
|
|
2380
2380
|
}>>>;
|
|
2381
2381
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2382
2382
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2383
2383
|
}, "strip", z.ZodTypeAny, {
|
|
2384
2384
|
id: string;
|
|
2385
|
-
leadId: string;
|
|
2386
|
-
agentId: string | null;
|
|
2387
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2388
|
-
createdAt: string;
|
|
2389
2385
|
updatedAt: string;
|
|
2386
|
+
createdAt: string;
|
|
2387
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2388
|
+
companyId: string | null;
|
|
2389
|
+
agentId: string | null;
|
|
2390
|
+
leadId: string;
|
|
2390
2391
|
assignedAt: string;
|
|
2391
2392
|
assignedBy: string | null;
|
|
2392
|
-
|
|
2393
|
-
|
|
2393
|
+
company?: {
|
|
2394
|
+
id: string;
|
|
2394
2395
|
name: string;
|
|
2395
|
-
|
|
2396
|
-
|
|
2396
|
+
updatedAt: string;
|
|
2397
|
+
createdAt: string;
|
|
2398
|
+
} | null | undefined;
|
|
2397
2399
|
agent?: {
|
|
2398
2400
|
id: string;
|
|
2401
|
+
updatedAt: string;
|
|
2402
|
+
createdAt: string;
|
|
2403
|
+
email: string;
|
|
2399
2404
|
firstName: string;
|
|
2400
2405
|
lastName: string;
|
|
2401
|
-
email: string;
|
|
2402
2406
|
phoneNumbers: {
|
|
2403
2407
|
id: string;
|
|
2404
2408
|
phoneNumber: string;
|
|
2405
2409
|
isPrimary: boolean;
|
|
2406
2410
|
description?: string | null | undefined;
|
|
2407
2411
|
}[];
|
|
2408
|
-
createdAt: string;
|
|
2409
|
-
updatedAt: string;
|
|
2410
2412
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2411
2413
|
office?: {
|
|
2412
2414
|
id: string;
|
|
@@ -2418,56 +2420,54 @@ export declare const callHistoryContract: {
|
|
|
2418
2420
|
lastName: string;
|
|
2419
2421
|
}[] | undefined;
|
|
2420
2422
|
} | undefined;
|
|
2421
|
-
|
|
2422
|
-
id: string;
|
|
2423
|
+
lead?: {
|
|
2423
2424
|
name: string;
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
} | null | undefined;
|
|
2425
|
+
phoneNumber: string;
|
|
2426
|
+
} | undefined;
|
|
2427
2427
|
}, {
|
|
2428
2428
|
id: string;
|
|
2429
|
-
leadId: string;
|
|
2430
|
-
agentId: string | null;
|
|
2431
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2432
|
-
createdAt: string | Date;
|
|
2433
2429
|
updatedAt: string | Date;
|
|
2430
|
+
createdAt: string | Date;
|
|
2431
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2432
|
+
companyId: string | null;
|
|
2433
|
+
agentId: string | null;
|
|
2434
|
+
leadId: string;
|
|
2434
2435
|
assignedAt: string | Date;
|
|
2435
2436
|
assignedBy: string | null;
|
|
2436
|
-
|
|
2437
|
-
|
|
2437
|
+
company?: {
|
|
2438
|
+
id: string;
|
|
2438
2439
|
name: string;
|
|
2439
|
-
|
|
2440
|
-
|
|
2440
|
+
updatedAt: string | Date;
|
|
2441
|
+
createdAt: string | Date;
|
|
2442
|
+
} | null | undefined;
|
|
2441
2443
|
agent?: {
|
|
2442
2444
|
id: string;
|
|
2445
|
+
updatedAt: string | Date;
|
|
2446
|
+
createdAt: string | Date;
|
|
2447
|
+
email: string;
|
|
2443
2448
|
firstName: string;
|
|
2444
2449
|
lastName: string;
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2450
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2451
|
+
office?: {
|
|
2452
|
+
id: string;
|
|
2453
|
+
name: string;
|
|
2454
|
+
} | null | undefined;
|
|
2448
2455
|
phoneNumbers?: {
|
|
2449
2456
|
id: string;
|
|
2450
2457
|
phoneNumber: string;
|
|
2451
2458
|
description?: string | null | undefined;
|
|
2452
2459
|
isPrimary?: boolean | undefined;
|
|
2453
2460
|
}[] | undefined;
|
|
2454
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2455
|
-
office?: {
|
|
2456
|
-
id: string;
|
|
2457
|
-
name: string;
|
|
2458
|
-
} | null | undefined;
|
|
2459
2461
|
canImpersonateUsers?: {
|
|
2460
2462
|
id: string;
|
|
2461
2463
|
firstName: string;
|
|
2462
2464
|
lastName: string;
|
|
2463
2465
|
}[] | undefined;
|
|
2464
2466
|
} | undefined;
|
|
2465
|
-
|
|
2466
|
-
id: string;
|
|
2467
|
+
lead?: {
|
|
2467
2468
|
name: string;
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
} | null | undefined;
|
|
2469
|
+
phoneNumber: string;
|
|
2470
|
+
} | undefined;
|
|
2471
2471
|
}>>>;
|
|
2472
2472
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
2473
2473
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -2478,43 +2478,45 @@ export declare const callHistoryContract: {
|
|
|
2478
2478
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2479
2479
|
}, "strip", z.ZodTypeAny, {
|
|
2480
2480
|
id: string;
|
|
2481
|
-
assignmentId: string;
|
|
2482
|
-
createdAt: string;
|
|
2483
2481
|
updatedAt: string;
|
|
2482
|
+
createdAt: string;
|
|
2483
|
+
assignmentId: string;
|
|
2484
|
+
rating: CallRating;
|
|
2484
2485
|
callType: CallType;
|
|
2485
2486
|
leadSource: LeadSource;
|
|
2486
|
-
rating: CallRating;
|
|
2487
|
-
ratingWeight: number;
|
|
2488
2487
|
notes: string | null;
|
|
2489
|
-
|
|
2488
|
+
ratingWeight: number;
|
|
2490
2489
|
agentId?: string | undefined;
|
|
2490
|
+
leadId?: string | undefined;
|
|
2491
2491
|
assignment?: {
|
|
2492
2492
|
id: string;
|
|
2493
|
-
leadId: string;
|
|
2494
|
-
agentId: string | null;
|
|
2495
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2496
|
-
createdAt: string;
|
|
2497
2493
|
updatedAt: string;
|
|
2494
|
+
createdAt: string;
|
|
2495
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2496
|
+
companyId: string | null;
|
|
2497
|
+
agentId: string | null;
|
|
2498
|
+
leadId: string;
|
|
2498
2499
|
assignedAt: string;
|
|
2499
2500
|
assignedBy: string | null;
|
|
2500
|
-
|
|
2501
|
-
|
|
2501
|
+
company?: {
|
|
2502
|
+
id: string;
|
|
2502
2503
|
name: string;
|
|
2503
|
-
|
|
2504
|
-
|
|
2504
|
+
updatedAt: string;
|
|
2505
|
+
createdAt: string;
|
|
2506
|
+
} | null | undefined;
|
|
2505
2507
|
agent?: {
|
|
2506
2508
|
id: string;
|
|
2509
|
+
updatedAt: string;
|
|
2510
|
+
createdAt: string;
|
|
2511
|
+
email: string;
|
|
2507
2512
|
firstName: string;
|
|
2508
2513
|
lastName: string;
|
|
2509
|
-
email: string;
|
|
2510
2514
|
phoneNumbers: {
|
|
2511
2515
|
id: string;
|
|
2512
2516
|
phoneNumber: string;
|
|
2513
2517
|
isPrimary: boolean;
|
|
2514
2518
|
description?: string | null | undefined;
|
|
2515
2519
|
}[];
|
|
2516
|
-
createdAt: string;
|
|
2517
|
-
updatedAt: string;
|
|
2518
2520
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2519
2521
|
office?: {
|
|
2520
2522
|
id: string;
|
|
@@ -2526,69 +2528,67 @@ export declare const callHistoryContract: {
|
|
|
2526
2528
|
lastName: string;
|
|
2527
2529
|
}[] | undefined;
|
|
2528
2530
|
} | undefined;
|
|
2529
|
-
|
|
2530
|
-
id: string;
|
|
2531
|
+
lead?: {
|
|
2531
2532
|
name: string;
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
} | null | undefined;
|
|
2533
|
+
phoneNumber: string;
|
|
2534
|
+
} | undefined;
|
|
2535
2535
|
} | null | undefined;
|
|
2536
2536
|
}, {
|
|
2537
2537
|
id: string;
|
|
2538
|
-
assignmentId: string;
|
|
2539
|
-
createdAt: string | Date;
|
|
2540
2538
|
updatedAt: string | Date;
|
|
2539
|
+
createdAt: string | Date;
|
|
2540
|
+
assignmentId: string;
|
|
2541
|
+
rating: CallRating;
|
|
2541
2542
|
callType: CallType;
|
|
2542
2543
|
leadSource: LeadSource;
|
|
2543
|
-
rating: CallRating;
|
|
2544
|
-
ratingWeight: number;
|
|
2545
2544
|
notes: string | null;
|
|
2546
|
-
|
|
2545
|
+
ratingWeight: number;
|
|
2547
2546
|
agentId?: string | undefined;
|
|
2547
|
+
leadId?: string | undefined;
|
|
2548
2548
|
assignment?: {
|
|
2549
2549
|
id: string;
|
|
2550
|
-
leadId: string;
|
|
2551
|
-
agentId: string | null;
|
|
2552
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2553
|
-
createdAt: string | Date;
|
|
2554
2550
|
updatedAt: string | Date;
|
|
2551
|
+
createdAt: string | Date;
|
|
2552
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2553
|
+
companyId: string | null;
|
|
2554
|
+
agentId: string | null;
|
|
2555
|
+
leadId: string;
|
|
2555
2556
|
assignedAt: string | Date;
|
|
2556
2557
|
assignedBy: string | null;
|
|
2557
|
-
|
|
2558
|
-
|
|
2558
|
+
company?: {
|
|
2559
|
+
id: string;
|
|
2559
2560
|
name: string;
|
|
2560
|
-
|
|
2561
|
-
|
|
2561
|
+
updatedAt: string | Date;
|
|
2562
|
+
createdAt: string | Date;
|
|
2563
|
+
} | null | undefined;
|
|
2562
2564
|
agent?: {
|
|
2563
2565
|
id: string;
|
|
2566
|
+
updatedAt: string | Date;
|
|
2567
|
+
createdAt: string | Date;
|
|
2568
|
+
email: string;
|
|
2564
2569
|
firstName: string;
|
|
2565
2570
|
lastName: string;
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2571
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2572
|
+
office?: {
|
|
2573
|
+
id: string;
|
|
2574
|
+
name: string;
|
|
2575
|
+
} | null | undefined;
|
|
2569
2576
|
phoneNumbers?: {
|
|
2570
2577
|
id: string;
|
|
2571
2578
|
phoneNumber: string;
|
|
2572
2579
|
description?: string | null | undefined;
|
|
2573
2580
|
isPrimary?: boolean | undefined;
|
|
2574
2581
|
}[] | undefined;
|
|
2575
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2576
|
-
office?: {
|
|
2577
|
-
id: string;
|
|
2578
|
-
name: string;
|
|
2579
|
-
} | null | undefined;
|
|
2580
2582
|
canImpersonateUsers?: {
|
|
2581
2583
|
id: string;
|
|
2582
2584
|
firstName: string;
|
|
2583
2585
|
lastName: string;
|
|
2584
2586
|
}[] | undefined;
|
|
2585
2587
|
} | undefined;
|
|
2586
|
-
|
|
2587
|
-
id: string;
|
|
2588
|
+
lead?: {
|
|
2588
2589
|
name: string;
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
} | null | undefined;
|
|
2590
|
+
phoneNumber: string;
|
|
2591
|
+
} | undefined;
|
|
2592
2592
|
} | null | undefined;
|
|
2593
2593
|
}>;
|
|
2594
2594
|
404: z.ZodObject<{
|
|
@@ -2811,17 +2811,17 @@ export declare const callHistoryContract: {
|
|
|
2811
2811
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2812
2812
|
}, "strip", z.ZodTypeAny, {
|
|
2813
2813
|
id: string;
|
|
2814
|
+
updatedAt: string;
|
|
2815
|
+
createdAt: string;
|
|
2816
|
+
email: string;
|
|
2814
2817
|
firstName: string;
|
|
2815
2818
|
lastName: string;
|
|
2816
|
-
email: string;
|
|
2817
2819
|
phoneNumbers: {
|
|
2818
2820
|
id: string;
|
|
2819
2821
|
phoneNumber: string;
|
|
2820
2822
|
isPrimary: boolean;
|
|
2821
2823
|
description?: string | null | undefined;
|
|
2822
2824
|
}[];
|
|
2823
|
-
createdAt: string;
|
|
2824
|
-
updatedAt: string;
|
|
2825
2825
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2826
2826
|
office?: {
|
|
2827
2827
|
id: string;
|
|
@@ -2834,22 +2834,22 @@ export declare const callHistoryContract: {
|
|
|
2834
2834
|
}[] | undefined;
|
|
2835
2835
|
}, {
|
|
2836
2836
|
id: string;
|
|
2837
|
+
updatedAt: string | Date;
|
|
2838
|
+
createdAt: string | Date;
|
|
2839
|
+
email: string;
|
|
2837
2840
|
firstName: string;
|
|
2838
2841
|
lastName: string;
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2843
|
+
office?: {
|
|
2844
|
+
id: string;
|
|
2845
|
+
name: string;
|
|
2846
|
+
} | null | undefined;
|
|
2842
2847
|
phoneNumbers?: {
|
|
2843
2848
|
id: string;
|
|
2844
2849
|
phoneNumber: string;
|
|
2845
2850
|
description?: string | null | undefined;
|
|
2846
2851
|
isPrimary?: boolean | undefined;
|
|
2847
2852
|
}[] | undefined;
|
|
2848
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2849
|
-
office?: {
|
|
2850
|
-
id: string;
|
|
2851
|
-
name: string;
|
|
2852
|
-
} | null | undefined;
|
|
2853
2853
|
canImpersonateUsers?: {
|
|
2854
2854
|
id: string;
|
|
2855
2855
|
firstName: string;
|
|
@@ -2868,43 +2868,45 @@ export declare const callHistoryContract: {
|
|
|
2868
2868
|
}, "strip", z.ZodTypeAny, {
|
|
2869
2869
|
id: string;
|
|
2870
2870
|
name: string;
|
|
2871
|
-
createdAt: string;
|
|
2872
2871
|
updatedAt: string;
|
|
2872
|
+
createdAt: string;
|
|
2873
2873
|
}, {
|
|
2874
2874
|
id: string;
|
|
2875
2875
|
name: string;
|
|
2876
|
-
createdAt: string | Date;
|
|
2877
2876
|
updatedAt: string | Date;
|
|
2877
|
+
createdAt: string | Date;
|
|
2878
2878
|
}>>>;
|
|
2879
2879
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2880
2880
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2881
2881
|
}, "strip", z.ZodTypeAny, {
|
|
2882
2882
|
id: string;
|
|
2883
|
-
leadId: string;
|
|
2884
|
-
agentId: string | null;
|
|
2885
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2886
|
-
createdAt: string;
|
|
2887
2883
|
updatedAt: string;
|
|
2884
|
+
createdAt: string;
|
|
2885
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2886
|
+
companyId: string | null;
|
|
2887
|
+
agentId: string | null;
|
|
2888
|
+
leadId: string;
|
|
2888
2889
|
assignedAt: string;
|
|
2889
2890
|
assignedBy: string | null;
|
|
2890
|
-
|
|
2891
|
-
|
|
2891
|
+
company?: {
|
|
2892
|
+
id: string;
|
|
2892
2893
|
name: string;
|
|
2893
|
-
|
|
2894
|
-
|
|
2894
|
+
updatedAt: string;
|
|
2895
|
+
createdAt: string;
|
|
2896
|
+
} | null | undefined;
|
|
2895
2897
|
agent?: {
|
|
2896
2898
|
id: string;
|
|
2899
|
+
updatedAt: string;
|
|
2900
|
+
createdAt: string;
|
|
2901
|
+
email: string;
|
|
2897
2902
|
firstName: string;
|
|
2898
2903
|
lastName: string;
|
|
2899
|
-
email: string;
|
|
2900
2904
|
phoneNumbers: {
|
|
2901
2905
|
id: string;
|
|
2902
2906
|
phoneNumber: string;
|
|
2903
2907
|
isPrimary: boolean;
|
|
2904
2908
|
description?: string | null | undefined;
|
|
2905
2909
|
}[];
|
|
2906
|
-
createdAt: string;
|
|
2907
|
-
updatedAt: string;
|
|
2908
2910
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2909
2911
|
office?: {
|
|
2910
2912
|
id: string;
|
|
@@ -2916,56 +2918,54 @@ export declare const callHistoryContract: {
|
|
|
2916
2918
|
lastName: string;
|
|
2917
2919
|
}[] | undefined;
|
|
2918
2920
|
} | undefined;
|
|
2919
|
-
|
|
2920
|
-
id: string;
|
|
2921
|
+
lead?: {
|
|
2921
2922
|
name: string;
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
} | null | undefined;
|
|
2923
|
+
phoneNumber: string;
|
|
2924
|
+
} | undefined;
|
|
2925
2925
|
}, {
|
|
2926
2926
|
id: string;
|
|
2927
|
-
leadId: string;
|
|
2928
|
-
agentId: string | null;
|
|
2929
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2930
|
-
createdAt: string | Date;
|
|
2931
2927
|
updatedAt: string | Date;
|
|
2928
|
+
createdAt: string | Date;
|
|
2929
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2930
|
+
companyId: string | null;
|
|
2931
|
+
agentId: string | null;
|
|
2932
|
+
leadId: string;
|
|
2932
2933
|
assignedAt: string | Date;
|
|
2933
2934
|
assignedBy: string | null;
|
|
2934
|
-
|
|
2935
|
-
|
|
2935
|
+
company?: {
|
|
2936
|
+
id: string;
|
|
2936
2937
|
name: string;
|
|
2937
|
-
|
|
2938
|
-
|
|
2938
|
+
updatedAt: string | Date;
|
|
2939
|
+
createdAt: string | Date;
|
|
2940
|
+
} | null | undefined;
|
|
2939
2941
|
agent?: {
|
|
2940
2942
|
id: string;
|
|
2943
|
+
updatedAt: string | Date;
|
|
2944
|
+
createdAt: string | Date;
|
|
2945
|
+
email: string;
|
|
2941
2946
|
firstName: string;
|
|
2942
2947
|
lastName: string;
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2948
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2949
|
+
office?: {
|
|
2950
|
+
id: string;
|
|
2951
|
+
name: string;
|
|
2952
|
+
} | null | undefined;
|
|
2946
2953
|
phoneNumbers?: {
|
|
2947
2954
|
id: string;
|
|
2948
2955
|
phoneNumber: string;
|
|
2949
2956
|
description?: string | null | undefined;
|
|
2950
2957
|
isPrimary?: boolean | undefined;
|
|
2951
2958
|
}[] | undefined;
|
|
2952
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2953
|
-
office?: {
|
|
2954
|
-
id: string;
|
|
2955
|
-
name: string;
|
|
2956
|
-
} | null | undefined;
|
|
2957
2959
|
canImpersonateUsers?: {
|
|
2958
2960
|
id: string;
|
|
2959
2961
|
firstName: string;
|
|
2960
2962
|
lastName: string;
|
|
2961
2963
|
}[] | undefined;
|
|
2962
2964
|
} | undefined;
|
|
2963
|
-
|
|
2964
|
-
id: string;
|
|
2965
|
+
lead?: {
|
|
2965
2966
|
name: string;
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
} | null | undefined;
|
|
2967
|
+
phoneNumber: string;
|
|
2968
|
+
} | undefined;
|
|
2969
2969
|
}>>>;
|
|
2970
2970
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
2971
2971
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -2976,43 +2976,45 @@ export declare const callHistoryContract: {
|
|
|
2976
2976
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2977
2977
|
}, "strip", z.ZodTypeAny, {
|
|
2978
2978
|
id: string;
|
|
2979
|
-
assignmentId: string;
|
|
2980
|
-
createdAt: string;
|
|
2981
2979
|
updatedAt: string;
|
|
2980
|
+
createdAt: string;
|
|
2981
|
+
assignmentId: string;
|
|
2982
|
+
rating: CallRating;
|
|
2982
2983
|
callType: CallType;
|
|
2983
2984
|
leadSource: LeadSource;
|
|
2984
|
-
rating: CallRating;
|
|
2985
|
-
ratingWeight: number;
|
|
2986
2985
|
notes: string | null;
|
|
2987
|
-
|
|
2986
|
+
ratingWeight: number;
|
|
2988
2987
|
agentId?: string | undefined;
|
|
2988
|
+
leadId?: string | undefined;
|
|
2989
2989
|
assignment?: {
|
|
2990
2990
|
id: string;
|
|
2991
|
-
leadId: string;
|
|
2992
|
-
agentId: string | null;
|
|
2993
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2994
|
-
createdAt: string;
|
|
2995
2991
|
updatedAt: string;
|
|
2992
|
+
createdAt: string;
|
|
2993
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2994
|
+
companyId: string | null;
|
|
2995
|
+
agentId: string | null;
|
|
2996
|
+
leadId: string;
|
|
2996
2997
|
assignedAt: string;
|
|
2997
2998
|
assignedBy: string | null;
|
|
2998
|
-
|
|
2999
|
-
|
|
2999
|
+
company?: {
|
|
3000
|
+
id: string;
|
|
3000
3001
|
name: string;
|
|
3001
|
-
|
|
3002
|
-
|
|
3002
|
+
updatedAt: string;
|
|
3003
|
+
createdAt: string;
|
|
3004
|
+
} | null | undefined;
|
|
3003
3005
|
agent?: {
|
|
3004
3006
|
id: string;
|
|
3007
|
+
updatedAt: string;
|
|
3008
|
+
createdAt: string;
|
|
3009
|
+
email: string;
|
|
3005
3010
|
firstName: string;
|
|
3006
3011
|
lastName: string;
|
|
3007
|
-
email: string;
|
|
3008
3012
|
phoneNumbers: {
|
|
3009
3013
|
id: string;
|
|
3010
3014
|
phoneNumber: string;
|
|
3011
3015
|
isPrimary: boolean;
|
|
3012
3016
|
description?: string | null | undefined;
|
|
3013
3017
|
}[];
|
|
3014
|
-
createdAt: string;
|
|
3015
|
-
updatedAt: string;
|
|
3016
3018
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3017
3019
|
office?: {
|
|
3018
3020
|
id: string;
|
|
@@ -3024,69 +3026,67 @@ export declare const callHistoryContract: {
|
|
|
3024
3026
|
lastName: string;
|
|
3025
3027
|
}[] | undefined;
|
|
3026
3028
|
} | undefined;
|
|
3027
|
-
|
|
3028
|
-
id: string;
|
|
3029
|
+
lead?: {
|
|
3029
3030
|
name: string;
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
} | null | undefined;
|
|
3031
|
+
phoneNumber: string;
|
|
3032
|
+
} | undefined;
|
|
3033
3033
|
} | null | undefined;
|
|
3034
3034
|
}, {
|
|
3035
3035
|
id: string;
|
|
3036
|
-
assignmentId: string;
|
|
3037
|
-
createdAt: string | Date;
|
|
3038
3036
|
updatedAt: string | Date;
|
|
3037
|
+
createdAt: string | Date;
|
|
3038
|
+
assignmentId: string;
|
|
3039
|
+
rating: CallRating;
|
|
3039
3040
|
callType: CallType;
|
|
3040
3041
|
leadSource: LeadSource;
|
|
3041
|
-
rating: CallRating;
|
|
3042
|
-
ratingWeight: number;
|
|
3043
3042
|
notes: string | null;
|
|
3044
|
-
|
|
3043
|
+
ratingWeight: number;
|
|
3045
3044
|
agentId?: string | undefined;
|
|
3045
|
+
leadId?: string | undefined;
|
|
3046
3046
|
assignment?: {
|
|
3047
3047
|
id: string;
|
|
3048
|
-
leadId: string;
|
|
3049
|
-
agentId: string | null;
|
|
3050
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3051
|
-
createdAt: string | Date;
|
|
3052
3048
|
updatedAt: string | Date;
|
|
3049
|
+
createdAt: string | Date;
|
|
3050
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3051
|
+
companyId: string | null;
|
|
3052
|
+
agentId: string | null;
|
|
3053
|
+
leadId: string;
|
|
3053
3054
|
assignedAt: string | Date;
|
|
3054
3055
|
assignedBy: string | null;
|
|
3055
|
-
|
|
3056
|
-
|
|
3056
|
+
company?: {
|
|
3057
|
+
id: string;
|
|
3057
3058
|
name: string;
|
|
3058
|
-
|
|
3059
|
-
|
|
3059
|
+
updatedAt: string | Date;
|
|
3060
|
+
createdAt: string | Date;
|
|
3061
|
+
} | null | undefined;
|
|
3060
3062
|
agent?: {
|
|
3061
3063
|
id: string;
|
|
3064
|
+
updatedAt: string | Date;
|
|
3065
|
+
createdAt: string | Date;
|
|
3066
|
+
email: string;
|
|
3062
3067
|
firstName: string;
|
|
3063
3068
|
lastName: string;
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3069
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3070
|
+
office?: {
|
|
3071
|
+
id: string;
|
|
3072
|
+
name: string;
|
|
3073
|
+
} | null | undefined;
|
|
3067
3074
|
phoneNumbers?: {
|
|
3068
3075
|
id: string;
|
|
3069
3076
|
phoneNumber: string;
|
|
3070
3077
|
description?: string | null | undefined;
|
|
3071
3078
|
isPrimary?: boolean | undefined;
|
|
3072
3079
|
}[] | undefined;
|
|
3073
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3074
|
-
office?: {
|
|
3075
|
-
id: string;
|
|
3076
|
-
name: string;
|
|
3077
|
-
} | null | undefined;
|
|
3078
3080
|
canImpersonateUsers?: {
|
|
3079
3081
|
id: string;
|
|
3080
3082
|
firstName: string;
|
|
3081
3083
|
lastName: string;
|
|
3082
3084
|
}[] | undefined;
|
|
3083
3085
|
} | undefined;
|
|
3084
|
-
|
|
3085
|
-
id: string;
|
|
3086
|
+
lead?: {
|
|
3086
3087
|
name: string;
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
} | null | undefined;
|
|
3088
|
+
phoneNumber: string;
|
|
3089
|
+
} | undefined;
|
|
3090
3090
|
} | null | undefined;
|
|
3091
3091
|
}>;
|
|
3092
3092
|
404: z.ZodObject<{
|