@dakkitor/api-contracts 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/abilities.contract.d.ts +6 -2
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +45 -1
- package/dist/abilities/abilities.contract.spec.js +98 -0
- package/dist/abilities/first-agent.abilities.json +8 -14
- package/dist/abilities/outreach.abilities.json +25 -0
- package/dist/abilities/second-agent.abilities.json +4 -13
- package/dist/actives/actives.contract.d.ts +3618 -3479
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +2 -0
- package/dist/actives/actives.contract.spec.d.ts +2 -0
- package/dist/actives/actives.contract.spec.d.ts.map +1 -0
- package/dist/actives/actives.contract.spec.js +35 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1087 -1087
- package/dist/auth/auth.contract.d.ts +108 -108
- package/dist/bookings/bookings.contract.d.ts +6644 -6452
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +718 -718
- package/dist/calls-feed/calls-feed.contract.d.ts +86 -86
- package/dist/client-contacts/client-contacts.contract.d.ts +469 -469
- package/dist/clients/clients.contract.d.ts +203 -203
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2713 -2713
- package/dist/collaborations/collaborations.contract.d.ts +2270 -2270
- package/dist/common/common-schemas.d.ts +12 -12
- package/dist/companies/companies.contract.d.ts +74 -74
- package/dist/crews/crews.contract.d.ts +253 -253
- package/dist/cron-executions/cron-executions.contract.d.ts +182 -182
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2723 -2723
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +378 -378
- package/dist/curated-worker-leads/consent-queue.contract.d.ts +1117 -1087
- package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +16 -16
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +2 -2
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +5818 -5372
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +34 -1
- package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +4 -4
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.js +39 -0
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +148 -148
- package/dist/curated-workers/curated-workers.contract.d.ts +789 -789
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +2 -2
- package/dist/dashboards/dashboard-widgets.contract.d.ts +180 -180
- package/dist/dashboards/dashboard.contract.d.ts +12 -12
- package/dist/document-intake/document-intake.contract.d.ts +601 -601
- package/dist/export-jobs/export-jobs.contract.d.ts +694 -694
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/files/files.contract.d.ts +74 -74
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/interactions/interactions.contract.d.ts +6 -6
- package/dist/job-clusters/job-clusters.contract.d.ts +112 -112
- package/dist/jobs/job-moderation-fields.spec.d.ts +2 -0
- package/dist/jobs/job-moderation-fields.spec.d.ts.map +1 -0
- package/dist/jobs/job-moderation-fields.spec.js +72 -0
- package/dist/jobs/jobs.contract.d.ts +4773 -4525
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +48 -0
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +141 -141
- package/dist/lead-assignments/lead-assignments.contract.d.ts +911 -911
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +209 -209
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +77 -77
- package/dist/leads/leads.contract.d.ts +283 -283
- package/dist/locations/locations.contract.d.ts +49 -49
- package/dist/notifications/notifications.contract.d.ts +67 -67
- package/dist/offices/offices.contract.d.ts +34 -34
- package/dist/outreach/__tests__/outreach-contract-additions.spec.js +11 -0
- package/dist/outreach/__tests__/outreach-requests.contract.spec.js +50 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +14 -3
- package/dist/outreach/lab-outreach.contract.d.ts +1110 -0
- package/dist/outreach/lab-outreach.contract.d.ts.map +1 -0
- package/dist/outreach/lab-outreach.contract.js +174 -0
- package/dist/outreach/lab-outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/lab-outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/lab-outreach.contract.spec.js +90 -0
- package/dist/outreach/outreach-requests.contract.d.ts +946 -217
- package/dist/outreach/outreach-requests.contract.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.contract.js +23 -3
- package/dist/outreach/outreach-requests.schemas.d.ts +65 -10
- package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.schemas.js +6 -0
- package/dist/outreach/outreach.contract.d.ts +300 -38
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +18 -0
- package/dist/outreach/outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/outreach.contract.spec.js +57 -0
- package/dist/outreach/outreach.schemas.d.ts +2 -2
- package/dist/own-research/own-research.contract.d.ts +775 -775
- package/dist/postcodes/postcodes.contract.d.ts +24 -24
- package/dist/proofs/proof-type.enum.d.ts +4 -4
- package/dist/proofs/proofs.contract.d.ts +363 -363
- package/dist/proofs/proofs.dtos.d.ts +124 -124
- package/dist/qualifications/qualifications.contract.d.ts +38 -38
- package/dist/relay-pods/relay-lab-fleet.contract.d.ts +829 -0
- package/dist/relay-pods/relay-lab-fleet.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.contract.js +79 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.js +146 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.d.ts +443 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.js +138 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts +680 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.js +67 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.js +129 -0
- package/dist/relay-pods/relay-pods.contract.d.ts +1569 -0
- package/dist/relay-pods/relay-pods.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.js +188 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.spec.js +141 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts +415 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.schemas.js +112 -0
- package/dist/shared/live-booking.schema.d.ts +4 -4
- package/dist/shared/summary-schemas.d.ts +6 -6
- package/dist/sheets-sync/sheets-sync.contract.d.ts +939 -939
- package/dist/telegram/telegram.contract.d.ts +22 -22
- package/dist/trades/trades.contract.d.ts +90 -90
- package/dist/user-access-grants/user-access-grants.contract.d.ts +165 -165
- package/dist/users/__tests__/assignable-roles.spec.d.ts +2 -0
- package/dist/users/__tests__/assignable-roles.spec.d.ts.map +1 -0
- package/dist/users/__tests__/assignable-roles.spec.js +41 -0
- package/dist/users/users.contract.d.ts +399 -393
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +11 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +585 -527
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +278 -236
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +1 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +153 -153
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +59 -59
- package/dist/workers/workers.contract.d.ts +2919 -2919
- package/package.json +1 -1
- package/dist/bookings/bookings.contract.spec.d.ts +0 -2
- package/dist/bookings/bookings.contract.spec.d.ts.map +0 -1
- package/dist/bookings/bookings.contract.spec.js +0 -11
|
@@ -46,11 +46,11 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
46
46
|
name: z.ZodString;
|
|
47
47
|
phoneNumber: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
name: string;
|
|
50
49
|
phoneNumber: string;
|
|
51
|
-
}, {
|
|
52
50
|
name: string;
|
|
51
|
+
}, {
|
|
53
52
|
phoneNumber: string;
|
|
53
|
+
name: string;
|
|
54
54
|
}>>;
|
|
55
55
|
agentId: z.ZodNullable<z.ZodString>;
|
|
56
56
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -74,7 +74,7 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
74
74
|
description?: string | null | undefined;
|
|
75
75
|
isPrimary?: boolean | undefined;
|
|
76
76
|
}>, "many">>>;
|
|
77
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
77
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
|
|
78
78
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
79
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
80
80
|
id: z.ZodString;
|
|
@@ -133,16 +133,13 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
133
133
|
lastName: string;
|
|
134
134
|
email: string;
|
|
135
135
|
createdAt: string;
|
|
136
|
-
updatedAt: string;
|
|
137
136
|
phoneNumbers: {
|
|
138
137
|
id: string;
|
|
139
138
|
phoneNumber: string;
|
|
140
139
|
isPrimary: boolean;
|
|
141
140
|
description?: string | null | undefined;
|
|
142
141
|
}[];
|
|
143
|
-
|
|
144
|
-
deletedAt?: string | null | undefined;
|
|
145
|
-
officeId?: string | null | undefined;
|
|
142
|
+
updatedAt: string;
|
|
146
143
|
office?: {
|
|
147
144
|
id: string;
|
|
148
145
|
name: string;
|
|
@@ -152,11 +149,14 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
152
149
|
lastName: string;
|
|
153
150
|
}[] | undefined;
|
|
154
151
|
} | null | undefined;
|
|
152
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
153
|
+
officeId?: string | null | undefined;
|
|
155
154
|
canImpersonateUsers?: {
|
|
156
155
|
id: string;
|
|
157
156
|
firstName: string;
|
|
158
157
|
lastName: string;
|
|
159
158
|
}[] | undefined;
|
|
159
|
+
deletedAt?: string | null | undefined;
|
|
160
160
|
}, {
|
|
161
161
|
status: "ACTIVE" | "INACTIVE";
|
|
162
162
|
id: string;
|
|
@@ -165,15 +165,6 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
165
165
|
email: string;
|
|
166
166
|
createdAt: string | Date;
|
|
167
167
|
updatedAt: string | Date;
|
|
168
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
169
|
-
phoneNumbers?: {
|
|
170
|
-
id: string;
|
|
171
|
-
phoneNumber: string;
|
|
172
|
-
description?: string | null | undefined;
|
|
173
|
-
isPrimary?: boolean | undefined;
|
|
174
|
-
}[] | undefined;
|
|
175
|
-
deletedAt?: string | Date | null | undefined;
|
|
176
|
-
officeId?: string | null | undefined;
|
|
177
168
|
office?: {
|
|
178
169
|
id: string;
|
|
179
170
|
name: string;
|
|
@@ -183,11 +174,20 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
183
174
|
lastName: string;
|
|
184
175
|
}[] | undefined;
|
|
185
176
|
} | null | undefined;
|
|
177
|
+
phoneNumbers?: {
|
|
178
|
+
id: string;
|
|
179
|
+
phoneNumber: string;
|
|
180
|
+
description?: string | null | undefined;
|
|
181
|
+
isPrimary?: boolean | undefined;
|
|
182
|
+
}[] | undefined;
|
|
183
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
184
|
+
officeId?: string | null | undefined;
|
|
186
185
|
canImpersonateUsers?: {
|
|
187
186
|
id: string;
|
|
188
187
|
firstName: string;
|
|
189
188
|
lastName: string;
|
|
190
189
|
}[] | undefined;
|
|
190
|
+
deletedAt?: string | Date | null | undefined;
|
|
191
191
|
}>>;
|
|
192
192
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
193
193
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -216,11 +216,21 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
216
216
|
id: string;
|
|
217
217
|
createdAt: string;
|
|
218
218
|
updatedAt: string;
|
|
219
|
+
companyId: string | null;
|
|
219
220
|
agentId: string | null;
|
|
220
221
|
leadId: string;
|
|
221
222
|
assignedAt: string;
|
|
222
223
|
assignedBy: string | null;
|
|
223
|
-
|
|
224
|
+
company?: {
|
|
225
|
+
id: string;
|
|
226
|
+
name: string;
|
|
227
|
+
createdAt: string;
|
|
228
|
+
updatedAt: string;
|
|
229
|
+
} | null | undefined;
|
|
230
|
+
lead?: {
|
|
231
|
+
phoneNumber: string;
|
|
232
|
+
name: string;
|
|
233
|
+
} | undefined;
|
|
224
234
|
agent?: {
|
|
225
235
|
status: "ACTIVE" | "INACTIVE";
|
|
226
236
|
id: string;
|
|
@@ -228,16 +238,13 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
228
238
|
lastName: string;
|
|
229
239
|
email: string;
|
|
230
240
|
createdAt: string;
|
|
231
|
-
updatedAt: string;
|
|
232
241
|
phoneNumbers: {
|
|
233
242
|
id: string;
|
|
234
243
|
phoneNumber: string;
|
|
235
244
|
isPrimary: boolean;
|
|
236
245
|
description?: string | null | undefined;
|
|
237
246
|
}[];
|
|
238
|
-
|
|
239
|
-
deletedAt?: string | null | undefined;
|
|
240
|
-
officeId?: string | null | undefined;
|
|
247
|
+
updatedAt: string;
|
|
241
248
|
office?: {
|
|
242
249
|
id: string;
|
|
243
250
|
name: string;
|
|
@@ -247,32 +254,35 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
247
254
|
lastName: string;
|
|
248
255
|
}[] | undefined;
|
|
249
256
|
} | null | undefined;
|
|
257
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
258
|
+
officeId?: string | null | undefined;
|
|
250
259
|
canImpersonateUsers?: {
|
|
251
260
|
id: string;
|
|
252
261
|
firstName: string;
|
|
253
262
|
lastName: string;
|
|
254
263
|
}[] | undefined;
|
|
264
|
+
deletedAt?: string | null | undefined;
|
|
255
265
|
} | undefined;
|
|
256
|
-
lead?: {
|
|
257
|
-
name: string;
|
|
258
|
-
phoneNumber: string;
|
|
259
|
-
} | undefined;
|
|
260
|
-
company?: {
|
|
261
|
-
id: string;
|
|
262
|
-
name: string;
|
|
263
|
-
createdAt: string;
|
|
264
|
-
updatedAt: string;
|
|
265
|
-
} | null | undefined;
|
|
266
266
|
}, {
|
|
267
267
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
268
268
|
id: string;
|
|
269
269
|
createdAt: string | Date;
|
|
270
270
|
updatedAt: string | Date;
|
|
271
|
+
companyId: string | null;
|
|
271
272
|
agentId: string | null;
|
|
272
273
|
leadId: string;
|
|
273
274
|
assignedAt: string | Date;
|
|
274
275
|
assignedBy: string | null;
|
|
275
|
-
|
|
276
|
+
company?: {
|
|
277
|
+
id: string;
|
|
278
|
+
name: string;
|
|
279
|
+
createdAt: string | Date;
|
|
280
|
+
updatedAt: string | Date;
|
|
281
|
+
} | null | undefined;
|
|
282
|
+
lead?: {
|
|
283
|
+
phoneNumber: string;
|
|
284
|
+
name: string;
|
|
285
|
+
} | undefined;
|
|
276
286
|
agent?: {
|
|
277
287
|
status: "ACTIVE" | "INACTIVE";
|
|
278
288
|
id: string;
|
|
@@ -281,15 +291,6 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
281
291
|
email: string;
|
|
282
292
|
createdAt: string | Date;
|
|
283
293
|
updatedAt: string | Date;
|
|
284
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
285
|
-
phoneNumbers?: {
|
|
286
|
-
id: string;
|
|
287
|
-
phoneNumber: string;
|
|
288
|
-
description?: string | null | undefined;
|
|
289
|
-
isPrimary?: boolean | undefined;
|
|
290
|
-
}[] | undefined;
|
|
291
|
-
deletedAt?: string | Date | null | undefined;
|
|
292
|
-
officeId?: string | null | undefined;
|
|
293
294
|
office?: {
|
|
294
295
|
id: string;
|
|
295
296
|
name: string;
|
|
@@ -299,22 +300,21 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
299
300
|
lastName: string;
|
|
300
301
|
}[] | undefined;
|
|
301
302
|
} | null | undefined;
|
|
303
|
+
phoneNumbers?: {
|
|
304
|
+
id: string;
|
|
305
|
+
phoneNumber: string;
|
|
306
|
+
description?: string | null | undefined;
|
|
307
|
+
isPrimary?: boolean | undefined;
|
|
308
|
+
}[] | undefined;
|
|
309
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
310
|
+
officeId?: string | null | undefined;
|
|
302
311
|
canImpersonateUsers?: {
|
|
303
312
|
id: string;
|
|
304
313
|
firstName: string;
|
|
305
314
|
lastName: string;
|
|
306
315
|
}[] | undefined;
|
|
316
|
+
deletedAt?: string | Date | null | undefined;
|
|
307
317
|
} | undefined;
|
|
308
|
-
lead?: {
|
|
309
|
-
name: string;
|
|
310
|
-
phoneNumber: string;
|
|
311
|
-
} | undefined;
|
|
312
|
-
company?: {
|
|
313
|
-
id: string;
|
|
314
|
-
name: string;
|
|
315
|
-
createdAt: string | Date;
|
|
316
|
-
updatedAt: string | Date;
|
|
317
|
-
} | null | undefined;
|
|
318
318
|
}>>>;
|
|
319
319
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
320
320
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -327,12 +327,12 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
327
327
|
id: string;
|
|
328
328
|
createdAt: string;
|
|
329
329
|
updatedAt: string;
|
|
330
|
+
assignmentId: string;
|
|
330
331
|
rating: CallRating;
|
|
331
|
-
notes: string | null;
|
|
332
332
|
callType: CallType;
|
|
333
|
-
assignmentId: string;
|
|
334
|
-
ratingWeight: number;
|
|
335
333
|
leadSource: LeadSource;
|
|
334
|
+
ratingWeight: number;
|
|
335
|
+
notes: string | null;
|
|
336
336
|
agentId?: string | undefined;
|
|
337
337
|
leadId?: string | undefined;
|
|
338
338
|
assignment?: {
|
|
@@ -340,11 +340,21 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
340
340
|
id: string;
|
|
341
341
|
createdAt: string;
|
|
342
342
|
updatedAt: string;
|
|
343
|
+
companyId: string | null;
|
|
343
344
|
agentId: string | null;
|
|
344
345
|
leadId: string;
|
|
345
346
|
assignedAt: string;
|
|
346
347
|
assignedBy: string | null;
|
|
347
|
-
|
|
348
|
+
company?: {
|
|
349
|
+
id: string;
|
|
350
|
+
name: string;
|
|
351
|
+
createdAt: string;
|
|
352
|
+
updatedAt: string;
|
|
353
|
+
} | null | undefined;
|
|
354
|
+
lead?: {
|
|
355
|
+
phoneNumber: string;
|
|
356
|
+
name: string;
|
|
357
|
+
} | undefined;
|
|
348
358
|
agent?: {
|
|
349
359
|
status: "ACTIVE" | "INACTIVE";
|
|
350
360
|
id: string;
|
|
@@ -352,16 +362,13 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
352
362
|
lastName: string;
|
|
353
363
|
email: string;
|
|
354
364
|
createdAt: string;
|
|
355
|
-
updatedAt: string;
|
|
356
365
|
phoneNumbers: {
|
|
357
366
|
id: string;
|
|
358
367
|
phoneNumber: string;
|
|
359
368
|
isPrimary: boolean;
|
|
360
369
|
description?: string | null | undefined;
|
|
361
370
|
}[];
|
|
362
|
-
|
|
363
|
-
deletedAt?: string | null | undefined;
|
|
364
|
-
officeId?: string | null | undefined;
|
|
371
|
+
updatedAt: string;
|
|
365
372
|
office?: {
|
|
366
373
|
id: string;
|
|
367
374
|
name: string;
|
|
@@ -371,33 +378,26 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
371
378
|
lastName: string;
|
|
372
379
|
}[] | undefined;
|
|
373
380
|
} | null | undefined;
|
|
381
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
382
|
+
officeId?: string | null | undefined;
|
|
374
383
|
canImpersonateUsers?: {
|
|
375
384
|
id: string;
|
|
376
385
|
firstName: string;
|
|
377
386
|
lastName: string;
|
|
378
387
|
}[] | undefined;
|
|
388
|
+
deletedAt?: string | null | undefined;
|
|
379
389
|
} | undefined;
|
|
380
|
-
lead?: {
|
|
381
|
-
name: string;
|
|
382
|
-
phoneNumber: string;
|
|
383
|
-
} | undefined;
|
|
384
|
-
company?: {
|
|
385
|
-
id: string;
|
|
386
|
-
name: string;
|
|
387
|
-
createdAt: string;
|
|
388
|
-
updatedAt: string;
|
|
389
|
-
} | null | undefined;
|
|
390
390
|
} | null | undefined;
|
|
391
391
|
}, {
|
|
392
392
|
id: string;
|
|
393
393
|
createdAt: string | Date;
|
|
394
394
|
updatedAt: string | Date;
|
|
395
|
+
assignmentId: string;
|
|
395
396
|
rating: CallRating;
|
|
396
|
-
notes: string | null;
|
|
397
397
|
callType: CallType;
|
|
398
|
-
assignmentId: string;
|
|
399
|
-
ratingWeight: number;
|
|
400
398
|
leadSource: LeadSource;
|
|
399
|
+
ratingWeight: number;
|
|
400
|
+
notes: string | null;
|
|
401
401
|
agentId?: string | undefined;
|
|
402
402
|
leadId?: string | undefined;
|
|
403
403
|
assignment?: {
|
|
@@ -405,11 +405,21 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
405
405
|
id: string;
|
|
406
406
|
createdAt: string | Date;
|
|
407
407
|
updatedAt: string | Date;
|
|
408
|
+
companyId: string | null;
|
|
408
409
|
agentId: string | null;
|
|
409
410
|
leadId: string;
|
|
410
411
|
assignedAt: string | Date;
|
|
411
412
|
assignedBy: string | null;
|
|
412
|
-
|
|
413
|
+
company?: {
|
|
414
|
+
id: string;
|
|
415
|
+
name: string;
|
|
416
|
+
createdAt: string | Date;
|
|
417
|
+
updatedAt: string | Date;
|
|
418
|
+
} | null | undefined;
|
|
419
|
+
lead?: {
|
|
420
|
+
phoneNumber: string;
|
|
421
|
+
name: string;
|
|
422
|
+
} | undefined;
|
|
413
423
|
agent?: {
|
|
414
424
|
status: "ACTIVE" | "INACTIVE";
|
|
415
425
|
id: string;
|
|
@@ -418,15 +428,6 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
418
428
|
email: string;
|
|
419
429
|
createdAt: string | Date;
|
|
420
430
|
updatedAt: string | Date;
|
|
421
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
422
|
-
phoneNumbers?: {
|
|
423
|
-
id: string;
|
|
424
|
-
phoneNumber: string;
|
|
425
|
-
description?: string | null | undefined;
|
|
426
|
-
isPrimary?: boolean | undefined;
|
|
427
|
-
}[] | undefined;
|
|
428
|
-
deletedAt?: string | Date | null | undefined;
|
|
429
|
-
officeId?: string | null | undefined;
|
|
430
431
|
office?: {
|
|
431
432
|
id: string;
|
|
432
433
|
name: string;
|
|
@@ -436,22 +437,21 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
436
437
|
lastName: string;
|
|
437
438
|
}[] | undefined;
|
|
438
439
|
} | null | undefined;
|
|
440
|
+
phoneNumbers?: {
|
|
441
|
+
id: string;
|
|
442
|
+
phoneNumber: string;
|
|
443
|
+
description?: string | null | undefined;
|
|
444
|
+
isPrimary?: boolean | undefined;
|
|
445
|
+
}[] | undefined;
|
|
446
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
447
|
+
officeId?: string | null | undefined;
|
|
439
448
|
canImpersonateUsers?: {
|
|
440
449
|
id: string;
|
|
441
450
|
firstName: string;
|
|
442
451
|
lastName: string;
|
|
443
452
|
}[] | undefined;
|
|
453
|
+
deletedAt?: string | Date | null | undefined;
|
|
444
454
|
} | undefined;
|
|
445
|
-
lead?: {
|
|
446
|
-
name: string;
|
|
447
|
-
phoneNumber: string;
|
|
448
|
-
} | undefined;
|
|
449
|
-
company?: {
|
|
450
|
-
id: string;
|
|
451
|
-
name: string;
|
|
452
|
-
createdAt: string | Date;
|
|
453
|
-
updatedAt: string | Date;
|
|
454
|
-
} | null | undefined;
|
|
455
455
|
} | null | undefined;
|
|
456
456
|
}>;
|
|
457
457
|
export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
@@ -467,11 +467,11 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
467
467
|
name: z.ZodString;
|
|
468
468
|
phoneNumber: z.ZodString;
|
|
469
469
|
}, "strip", z.ZodTypeAny, {
|
|
470
|
-
name: string;
|
|
471
470
|
phoneNumber: string;
|
|
472
|
-
}, {
|
|
473
471
|
name: string;
|
|
472
|
+
}, {
|
|
474
473
|
phoneNumber: string;
|
|
474
|
+
name: string;
|
|
475
475
|
}>>;
|
|
476
476
|
agentId: z.ZodNullable<z.ZodString>;
|
|
477
477
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -495,7 +495,7 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
495
495
|
description?: string | null | undefined;
|
|
496
496
|
isPrimary?: boolean | undefined;
|
|
497
497
|
}>, "many">>>;
|
|
498
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
498
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
|
|
499
499
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
500
500
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
501
501
|
id: z.ZodString;
|
|
@@ -554,16 +554,13 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
554
554
|
lastName: string;
|
|
555
555
|
email: string;
|
|
556
556
|
createdAt: string;
|
|
557
|
-
updatedAt: string;
|
|
558
557
|
phoneNumbers: {
|
|
559
558
|
id: string;
|
|
560
559
|
phoneNumber: string;
|
|
561
560
|
isPrimary: boolean;
|
|
562
561
|
description?: string | null | undefined;
|
|
563
562
|
}[];
|
|
564
|
-
|
|
565
|
-
deletedAt?: string | null | undefined;
|
|
566
|
-
officeId?: string | null | undefined;
|
|
563
|
+
updatedAt: string;
|
|
567
564
|
office?: {
|
|
568
565
|
id: string;
|
|
569
566
|
name: string;
|
|
@@ -573,11 +570,14 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
573
570
|
lastName: string;
|
|
574
571
|
}[] | undefined;
|
|
575
572
|
} | null | undefined;
|
|
573
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
574
|
+
officeId?: string | null | undefined;
|
|
576
575
|
canImpersonateUsers?: {
|
|
577
576
|
id: string;
|
|
578
577
|
firstName: string;
|
|
579
578
|
lastName: string;
|
|
580
579
|
}[] | undefined;
|
|
580
|
+
deletedAt?: string | null | undefined;
|
|
581
581
|
}, {
|
|
582
582
|
status: "ACTIVE" | "INACTIVE";
|
|
583
583
|
id: string;
|
|
@@ -586,15 +586,6 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
586
586
|
email: string;
|
|
587
587
|
createdAt: string | Date;
|
|
588
588
|
updatedAt: string | Date;
|
|
589
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
590
|
-
phoneNumbers?: {
|
|
591
|
-
id: string;
|
|
592
|
-
phoneNumber: string;
|
|
593
|
-
description?: string | null | undefined;
|
|
594
|
-
isPrimary?: boolean | undefined;
|
|
595
|
-
}[] | undefined;
|
|
596
|
-
deletedAt?: string | Date | null | undefined;
|
|
597
|
-
officeId?: string | null | undefined;
|
|
598
589
|
office?: {
|
|
599
590
|
id: string;
|
|
600
591
|
name: string;
|
|
@@ -604,11 +595,20 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
604
595
|
lastName: string;
|
|
605
596
|
}[] | undefined;
|
|
606
597
|
} | null | undefined;
|
|
598
|
+
phoneNumbers?: {
|
|
599
|
+
id: string;
|
|
600
|
+
phoneNumber: string;
|
|
601
|
+
description?: string | null | undefined;
|
|
602
|
+
isPrimary?: boolean | undefined;
|
|
603
|
+
}[] | undefined;
|
|
604
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
605
|
+
officeId?: string | null | undefined;
|
|
607
606
|
canImpersonateUsers?: {
|
|
608
607
|
id: string;
|
|
609
608
|
firstName: string;
|
|
610
609
|
lastName: string;
|
|
611
610
|
}[] | undefined;
|
|
611
|
+
deletedAt?: string | Date | null | undefined;
|
|
612
612
|
}>>;
|
|
613
613
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
614
614
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -637,11 +637,21 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
637
637
|
id: string;
|
|
638
638
|
createdAt: string;
|
|
639
639
|
updatedAt: string;
|
|
640
|
+
companyId: string | null;
|
|
640
641
|
agentId: string | null;
|
|
641
642
|
leadId: string;
|
|
642
643
|
assignedAt: string;
|
|
643
644
|
assignedBy: string | null;
|
|
644
|
-
|
|
645
|
+
company?: {
|
|
646
|
+
id: string;
|
|
647
|
+
name: string;
|
|
648
|
+
createdAt: string;
|
|
649
|
+
updatedAt: string;
|
|
650
|
+
} | null | undefined;
|
|
651
|
+
lead?: {
|
|
652
|
+
phoneNumber: string;
|
|
653
|
+
name: string;
|
|
654
|
+
} | undefined;
|
|
645
655
|
agent?: {
|
|
646
656
|
status: "ACTIVE" | "INACTIVE";
|
|
647
657
|
id: string;
|
|
@@ -649,16 +659,13 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
649
659
|
lastName: string;
|
|
650
660
|
email: string;
|
|
651
661
|
createdAt: string;
|
|
652
|
-
updatedAt: string;
|
|
653
662
|
phoneNumbers: {
|
|
654
663
|
id: string;
|
|
655
664
|
phoneNumber: string;
|
|
656
665
|
isPrimary: boolean;
|
|
657
666
|
description?: string | null | undefined;
|
|
658
667
|
}[];
|
|
659
|
-
|
|
660
|
-
deletedAt?: string | null | undefined;
|
|
661
|
-
officeId?: string | null | undefined;
|
|
668
|
+
updatedAt: string;
|
|
662
669
|
office?: {
|
|
663
670
|
id: string;
|
|
664
671
|
name: string;
|
|
@@ -668,32 +675,35 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
668
675
|
lastName: string;
|
|
669
676
|
}[] | undefined;
|
|
670
677
|
} | null | undefined;
|
|
678
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
679
|
+
officeId?: string | null | undefined;
|
|
671
680
|
canImpersonateUsers?: {
|
|
672
681
|
id: string;
|
|
673
682
|
firstName: string;
|
|
674
683
|
lastName: string;
|
|
675
684
|
}[] | undefined;
|
|
685
|
+
deletedAt?: string | null | undefined;
|
|
676
686
|
} | undefined;
|
|
677
|
-
lead?: {
|
|
678
|
-
name: string;
|
|
679
|
-
phoneNumber: string;
|
|
680
|
-
} | undefined;
|
|
681
|
-
company?: {
|
|
682
|
-
id: string;
|
|
683
|
-
name: string;
|
|
684
|
-
createdAt: string;
|
|
685
|
-
updatedAt: string;
|
|
686
|
-
} | null | undefined;
|
|
687
687
|
}, {
|
|
688
688
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
689
689
|
id: string;
|
|
690
690
|
createdAt: string | Date;
|
|
691
691
|
updatedAt: string | Date;
|
|
692
|
+
companyId: string | null;
|
|
692
693
|
agentId: string | null;
|
|
693
694
|
leadId: string;
|
|
694
695
|
assignedAt: string | Date;
|
|
695
696
|
assignedBy: string | null;
|
|
696
|
-
|
|
697
|
+
company?: {
|
|
698
|
+
id: string;
|
|
699
|
+
name: string;
|
|
700
|
+
createdAt: string | Date;
|
|
701
|
+
updatedAt: string | Date;
|
|
702
|
+
} | null | undefined;
|
|
703
|
+
lead?: {
|
|
704
|
+
phoneNumber: string;
|
|
705
|
+
name: string;
|
|
706
|
+
} | undefined;
|
|
697
707
|
agent?: {
|
|
698
708
|
status: "ACTIVE" | "INACTIVE";
|
|
699
709
|
id: string;
|
|
@@ -702,15 +712,6 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
702
712
|
email: string;
|
|
703
713
|
createdAt: string | Date;
|
|
704
714
|
updatedAt: string | Date;
|
|
705
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
706
|
-
phoneNumbers?: {
|
|
707
|
-
id: string;
|
|
708
|
-
phoneNumber: string;
|
|
709
|
-
description?: string | null | undefined;
|
|
710
|
-
isPrimary?: boolean | undefined;
|
|
711
|
-
}[] | undefined;
|
|
712
|
-
deletedAt?: string | Date | null | undefined;
|
|
713
|
-
officeId?: string | null | undefined;
|
|
714
715
|
office?: {
|
|
715
716
|
id: string;
|
|
716
717
|
name: string;
|
|
@@ -720,22 +721,21 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
720
721
|
lastName: string;
|
|
721
722
|
}[] | undefined;
|
|
722
723
|
} | null | undefined;
|
|
724
|
+
phoneNumbers?: {
|
|
725
|
+
id: string;
|
|
726
|
+
phoneNumber: string;
|
|
727
|
+
description?: string | null | undefined;
|
|
728
|
+
isPrimary?: boolean | undefined;
|
|
729
|
+
}[] | undefined;
|
|
730
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
731
|
+
officeId?: string | null | undefined;
|
|
723
732
|
canImpersonateUsers?: {
|
|
724
733
|
id: string;
|
|
725
734
|
firstName: string;
|
|
726
735
|
lastName: string;
|
|
727
736
|
}[] | undefined;
|
|
737
|
+
deletedAt?: string | Date | null | undefined;
|
|
728
738
|
} | undefined;
|
|
729
|
-
lead?: {
|
|
730
|
-
name: string;
|
|
731
|
-
phoneNumber: string;
|
|
732
|
-
} | undefined;
|
|
733
|
-
company?: {
|
|
734
|
-
id: string;
|
|
735
|
-
name: string;
|
|
736
|
-
createdAt: string | Date;
|
|
737
|
-
updatedAt: string | Date;
|
|
738
|
-
} | null | undefined;
|
|
739
739
|
}>>>;
|
|
740
740
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
741
741
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -748,12 +748,12 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
748
748
|
id: string;
|
|
749
749
|
createdAt: string;
|
|
750
750
|
updatedAt: string;
|
|
751
|
+
assignmentId: string;
|
|
751
752
|
rating: CallRating;
|
|
752
|
-
notes: string | null;
|
|
753
753
|
callType: CallType;
|
|
754
|
-
assignmentId: string;
|
|
755
|
-
ratingWeight: number;
|
|
756
754
|
leadSource: LeadSource;
|
|
755
|
+
ratingWeight: number;
|
|
756
|
+
notes: string | null;
|
|
757
757
|
agentId?: string | undefined;
|
|
758
758
|
leadId?: string | undefined;
|
|
759
759
|
assignment?: {
|
|
@@ -761,11 +761,21 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
761
761
|
id: string;
|
|
762
762
|
createdAt: string;
|
|
763
763
|
updatedAt: string;
|
|
764
|
+
companyId: string | null;
|
|
764
765
|
agentId: string | null;
|
|
765
766
|
leadId: string;
|
|
766
767
|
assignedAt: string;
|
|
767
768
|
assignedBy: string | null;
|
|
768
|
-
|
|
769
|
+
company?: {
|
|
770
|
+
id: string;
|
|
771
|
+
name: string;
|
|
772
|
+
createdAt: string;
|
|
773
|
+
updatedAt: string;
|
|
774
|
+
} | null | undefined;
|
|
775
|
+
lead?: {
|
|
776
|
+
phoneNumber: string;
|
|
777
|
+
name: string;
|
|
778
|
+
} | undefined;
|
|
769
779
|
agent?: {
|
|
770
780
|
status: "ACTIVE" | "INACTIVE";
|
|
771
781
|
id: string;
|
|
@@ -773,16 +783,13 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
773
783
|
lastName: string;
|
|
774
784
|
email: string;
|
|
775
785
|
createdAt: string;
|
|
776
|
-
updatedAt: string;
|
|
777
786
|
phoneNumbers: {
|
|
778
787
|
id: string;
|
|
779
788
|
phoneNumber: string;
|
|
780
789
|
isPrimary: boolean;
|
|
781
790
|
description?: string | null | undefined;
|
|
782
791
|
}[];
|
|
783
|
-
|
|
784
|
-
deletedAt?: string | null | undefined;
|
|
785
|
-
officeId?: string | null | undefined;
|
|
792
|
+
updatedAt: string;
|
|
786
793
|
office?: {
|
|
787
794
|
id: string;
|
|
788
795
|
name: string;
|
|
@@ -792,33 +799,26 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
792
799
|
lastName: string;
|
|
793
800
|
}[] | undefined;
|
|
794
801
|
} | null | undefined;
|
|
802
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
803
|
+
officeId?: string | null | undefined;
|
|
795
804
|
canImpersonateUsers?: {
|
|
796
805
|
id: string;
|
|
797
806
|
firstName: string;
|
|
798
807
|
lastName: string;
|
|
799
808
|
}[] | undefined;
|
|
809
|
+
deletedAt?: string | null | undefined;
|
|
800
810
|
} | undefined;
|
|
801
|
-
lead?: {
|
|
802
|
-
name: string;
|
|
803
|
-
phoneNumber: string;
|
|
804
|
-
} | undefined;
|
|
805
|
-
company?: {
|
|
806
|
-
id: string;
|
|
807
|
-
name: string;
|
|
808
|
-
createdAt: string;
|
|
809
|
-
updatedAt: string;
|
|
810
|
-
} | null | undefined;
|
|
811
811
|
} | null | undefined;
|
|
812
812
|
}, {
|
|
813
813
|
id: string;
|
|
814
814
|
createdAt: string | Date;
|
|
815
815
|
updatedAt: string | Date;
|
|
816
|
+
assignmentId: string;
|
|
816
817
|
rating: CallRating;
|
|
817
|
-
notes: string | null;
|
|
818
818
|
callType: CallType;
|
|
819
|
-
assignmentId: string;
|
|
820
|
-
ratingWeight: number;
|
|
821
819
|
leadSource: LeadSource;
|
|
820
|
+
ratingWeight: number;
|
|
821
|
+
notes: string | null;
|
|
822
822
|
agentId?: string | undefined;
|
|
823
823
|
leadId?: string | undefined;
|
|
824
824
|
assignment?: {
|
|
@@ -826,11 +826,21 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
826
826
|
id: string;
|
|
827
827
|
createdAt: string | Date;
|
|
828
828
|
updatedAt: string | Date;
|
|
829
|
+
companyId: string | null;
|
|
829
830
|
agentId: string | null;
|
|
830
831
|
leadId: string;
|
|
831
832
|
assignedAt: string | Date;
|
|
832
833
|
assignedBy: string | null;
|
|
833
|
-
|
|
834
|
+
company?: {
|
|
835
|
+
id: string;
|
|
836
|
+
name: string;
|
|
837
|
+
createdAt: string | Date;
|
|
838
|
+
updatedAt: string | Date;
|
|
839
|
+
} | null | undefined;
|
|
840
|
+
lead?: {
|
|
841
|
+
phoneNumber: string;
|
|
842
|
+
name: string;
|
|
843
|
+
} | undefined;
|
|
834
844
|
agent?: {
|
|
835
845
|
status: "ACTIVE" | "INACTIVE";
|
|
836
846
|
id: string;
|
|
@@ -839,15 +849,6 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
839
849
|
email: string;
|
|
840
850
|
createdAt: string | Date;
|
|
841
851
|
updatedAt: string | Date;
|
|
842
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
843
|
-
phoneNumbers?: {
|
|
844
|
-
id: string;
|
|
845
|
-
phoneNumber: string;
|
|
846
|
-
description?: string | null | undefined;
|
|
847
|
-
isPrimary?: boolean | undefined;
|
|
848
|
-
}[] | undefined;
|
|
849
|
-
deletedAt?: string | Date | null | undefined;
|
|
850
|
-
officeId?: string | null | undefined;
|
|
851
852
|
office?: {
|
|
852
853
|
id: string;
|
|
853
854
|
name: string;
|
|
@@ -857,22 +858,21 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
857
858
|
lastName: string;
|
|
858
859
|
}[] | undefined;
|
|
859
860
|
} | null | undefined;
|
|
861
|
+
phoneNumbers?: {
|
|
862
|
+
id: string;
|
|
863
|
+
phoneNumber: string;
|
|
864
|
+
description?: string | null | undefined;
|
|
865
|
+
isPrimary?: boolean | undefined;
|
|
866
|
+
}[] | undefined;
|
|
867
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
868
|
+
officeId?: string | null | undefined;
|
|
860
869
|
canImpersonateUsers?: {
|
|
861
870
|
id: string;
|
|
862
871
|
firstName: string;
|
|
863
872
|
lastName: string;
|
|
864
873
|
}[] | undefined;
|
|
874
|
+
deletedAt?: string | Date | null | undefined;
|
|
865
875
|
} | undefined;
|
|
866
|
-
lead?: {
|
|
867
|
-
name: string;
|
|
868
|
-
phoneNumber: string;
|
|
869
|
-
} | undefined;
|
|
870
|
-
company?: {
|
|
871
|
-
id: string;
|
|
872
|
-
name: string;
|
|
873
|
-
createdAt: string | Date;
|
|
874
|
-
updatedAt: string | Date;
|
|
875
|
-
} | null | undefined;
|
|
876
876
|
} | null | undefined;
|
|
877
877
|
}>, "many">;
|
|
878
878
|
totalCount: z.ZodNumber;
|
|
@@ -886,12 +886,12 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
886
886
|
id: string;
|
|
887
887
|
createdAt: string;
|
|
888
888
|
updatedAt: string;
|
|
889
|
+
assignmentId: string;
|
|
889
890
|
rating: CallRating;
|
|
890
|
-
notes: string | null;
|
|
891
891
|
callType: CallType;
|
|
892
|
-
assignmentId: string;
|
|
893
|
-
ratingWeight: number;
|
|
894
892
|
leadSource: LeadSource;
|
|
893
|
+
ratingWeight: number;
|
|
894
|
+
notes: string | null;
|
|
895
895
|
agentId?: string | undefined;
|
|
896
896
|
leadId?: string | undefined;
|
|
897
897
|
assignment?: {
|
|
@@ -899,11 +899,21 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
899
899
|
id: string;
|
|
900
900
|
createdAt: string;
|
|
901
901
|
updatedAt: string;
|
|
902
|
+
companyId: string | null;
|
|
902
903
|
agentId: string | null;
|
|
903
904
|
leadId: string;
|
|
904
905
|
assignedAt: string;
|
|
905
906
|
assignedBy: string | null;
|
|
906
|
-
|
|
907
|
+
company?: {
|
|
908
|
+
id: string;
|
|
909
|
+
name: string;
|
|
910
|
+
createdAt: string;
|
|
911
|
+
updatedAt: string;
|
|
912
|
+
} | null | undefined;
|
|
913
|
+
lead?: {
|
|
914
|
+
phoneNumber: string;
|
|
915
|
+
name: string;
|
|
916
|
+
} | undefined;
|
|
907
917
|
agent?: {
|
|
908
918
|
status: "ACTIVE" | "INACTIVE";
|
|
909
919
|
id: string;
|
|
@@ -911,16 +921,13 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
911
921
|
lastName: string;
|
|
912
922
|
email: string;
|
|
913
923
|
createdAt: string;
|
|
914
|
-
updatedAt: string;
|
|
915
924
|
phoneNumbers: {
|
|
916
925
|
id: string;
|
|
917
926
|
phoneNumber: string;
|
|
918
927
|
isPrimary: boolean;
|
|
919
928
|
description?: string | null | undefined;
|
|
920
929
|
}[];
|
|
921
|
-
|
|
922
|
-
deletedAt?: string | null | undefined;
|
|
923
|
-
officeId?: string | null | undefined;
|
|
930
|
+
updatedAt: string;
|
|
924
931
|
office?: {
|
|
925
932
|
id: string;
|
|
926
933
|
name: string;
|
|
@@ -930,22 +937,15 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
930
937
|
lastName: string;
|
|
931
938
|
}[] | undefined;
|
|
932
939
|
} | null | undefined;
|
|
940
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
941
|
+
officeId?: string | null | undefined;
|
|
933
942
|
canImpersonateUsers?: {
|
|
934
943
|
id: string;
|
|
935
944
|
firstName: string;
|
|
936
945
|
lastName: string;
|
|
937
946
|
}[] | undefined;
|
|
947
|
+
deletedAt?: string | null | undefined;
|
|
938
948
|
} | undefined;
|
|
939
|
-
lead?: {
|
|
940
|
-
name: string;
|
|
941
|
-
phoneNumber: string;
|
|
942
|
-
} | undefined;
|
|
943
|
-
company?: {
|
|
944
|
-
id: string;
|
|
945
|
-
name: string;
|
|
946
|
-
createdAt: string;
|
|
947
|
-
updatedAt: string;
|
|
948
|
-
} | null | undefined;
|
|
949
949
|
} | null | undefined;
|
|
950
950
|
}[];
|
|
951
951
|
totalCount: number;
|
|
@@ -958,12 +958,12 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
958
958
|
id: string;
|
|
959
959
|
createdAt: string | Date;
|
|
960
960
|
updatedAt: string | Date;
|
|
961
|
+
assignmentId: string;
|
|
961
962
|
rating: CallRating;
|
|
962
|
-
notes: string | null;
|
|
963
963
|
callType: CallType;
|
|
964
|
-
assignmentId: string;
|
|
965
|
-
ratingWeight: number;
|
|
966
964
|
leadSource: LeadSource;
|
|
965
|
+
ratingWeight: number;
|
|
966
|
+
notes: string | null;
|
|
967
967
|
agentId?: string | undefined;
|
|
968
968
|
leadId?: string | undefined;
|
|
969
969
|
assignment?: {
|
|
@@ -971,11 +971,21 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
971
971
|
id: string;
|
|
972
972
|
createdAt: string | Date;
|
|
973
973
|
updatedAt: string | Date;
|
|
974
|
+
companyId: string | null;
|
|
974
975
|
agentId: string | null;
|
|
975
976
|
leadId: string;
|
|
976
977
|
assignedAt: string | Date;
|
|
977
978
|
assignedBy: string | null;
|
|
978
|
-
|
|
979
|
+
company?: {
|
|
980
|
+
id: string;
|
|
981
|
+
name: string;
|
|
982
|
+
createdAt: string | Date;
|
|
983
|
+
updatedAt: string | Date;
|
|
984
|
+
} | null | undefined;
|
|
985
|
+
lead?: {
|
|
986
|
+
phoneNumber: string;
|
|
987
|
+
name: string;
|
|
988
|
+
} | undefined;
|
|
979
989
|
agent?: {
|
|
980
990
|
status: "ACTIVE" | "INACTIVE";
|
|
981
991
|
id: string;
|
|
@@ -984,15 +994,6 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
984
994
|
email: string;
|
|
985
995
|
createdAt: string | Date;
|
|
986
996
|
updatedAt: string | Date;
|
|
987
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
988
|
-
phoneNumbers?: {
|
|
989
|
-
id: string;
|
|
990
|
-
phoneNumber: string;
|
|
991
|
-
description?: string | null | undefined;
|
|
992
|
-
isPrimary?: boolean | undefined;
|
|
993
|
-
}[] | undefined;
|
|
994
|
-
deletedAt?: string | Date | null | undefined;
|
|
995
|
-
officeId?: string | null | undefined;
|
|
996
997
|
office?: {
|
|
997
998
|
id: string;
|
|
998
999
|
name: string;
|
|
@@ -1002,22 +1003,21 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
1002
1003
|
lastName: string;
|
|
1003
1004
|
}[] | undefined;
|
|
1004
1005
|
} | null | undefined;
|
|
1006
|
+
phoneNumbers?: {
|
|
1007
|
+
id: string;
|
|
1008
|
+
phoneNumber: string;
|
|
1009
|
+
description?: string | null | undefined;
|
|
1010
|
+
isPrimary?: boolean | undefined;
|
|
1011
|
+
}[] | undefined;
|
|
1012
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1013
|
+
officeId?: string | null | undefined;
|
|
1005
1014
|
canImpersonateUsers?: {
|
|
1006
1015
|
id: string;
|
|
1007
1016
|
firstName: string;
|
|
1008
1017
|
lastName: string;
|
|
1009
1018
|
}[] | undefined;
|
|
1019
|
+
deletedAt?: string | Date | null | undefined;
|
|
1010
1020
|
} | undefined;
|
|
1011
|
-
lead?: {
|
|
1012
|
-
name: string;
|
|
1013
|
-
phoneNumber: string;
|
|
1014
|
-
} | undefined;
|
|
1015
|
-
company?: {
|
|
1016
|
-
id: string;
|
|
1017
|
-
name: string;
|
|
1018
|
-
createdAt: string | Date;
|
|
1019
|
-
updatedAt: string | Date;
|
|
1020
|
-
} | null | undefined;
|
|
1021
1021
|
} | null | undefined;
|
|
1022
1022
|
}[];
|
|
1023
1023
|
totalCount: number;
|
|
@@ -1047,11 +1047,11 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1047
1047
|
name: z.ZodString;
|
|
1048
1048
|
phoneNumber: z.ZodString;
|
|
1049
1049
|
}, "strip", z.ZodTypeAny, {
|
|
1050
|
-
name: string;
|
|
1051
1050
|
phoneNumber: string;
|
|
1052
|
-
}, {
|
|
1053
1051
|
name: string;
|
|
1052
|
+
}, {
|
|
1054
1053
|
phoneNumber: string;
|
|
1054
|
+
name: string;
|
|
1055
1055
|
}>>>;
|
|
1056
1056
|
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1057
1057
|
id: z.ZodString;
|
|
@@ -1112,12 +1112,23 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1112
1112
|
createdAt: string;
|
|
1113
1113
|
updatedAt: string;
|
|
1114
1114
|
agentId: string;
|
|
1115
|
+
assignmentId: string;
|
|
1115
1116
|
rating: CallRating;
|
|
1116
|
-
notes: string | null;
|
|
1117
1117
|
callType: CallType;
|
|
1118
|
-
assignmentId: string;
|
|
1119
|
-
ratingWeight: number;
|
|
1120
1118
|
leadSource: LeadSource;
|
|
1119
|
+
ratingWeight: number;
|
|
1120
|
+
notes: string | null;
|
|
1121
|
+
company?: {
|
|
1122
|
+
id: string;
|
|
1123
|
+
name: string;
|
|
1124
|
+
} | null | undefined;
|
|
1125
|
+
assignment?: {
|
|
1126
|
+
agentId: string | null;
|
|
1127
|
+
} | null | undefined;
|
|
1128
|
+
lead?: {
|
|
1129
|
+
phoneNumber: string;
|
|
1130
|
+
name: string;
|
|
1131
|
+
} | null | undefined;
|
|
1121
1132
|
agent?: {
|
|
1122
1133
|
id: string;
|
|
1123
1134
|
firstName: string;
|
|
@@ -1130,28 +1141,28 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1130
1141
|
}[];
|
|
1131
1142
|
deletedAt?: string | null | undefined;
|
|
1132
1143
|
} | null | undefined;
|
|
1133
|
-
lead?: {
|
|
1134
|
-
name: string;
|
|
1135
|
-
phoneNumber: string;
|
|
1136
|
-
} | null | undefined;
|
|
1137
|
-
company?: {
|
|
1138
|
-
id: string;
|
|
1139
|
-
name: string;
|
|
1140
|
-
} | null | undefined;
|
|
1141
|
-
assignment?: {
|
|
1142
|
-
agentId: string | null;
|
|
1143
|
-
} | null | undefined;
|
|
1144
1144
|
}, {
|
|
1145
1145
|
id: string;
|
|
1146
1146
|
createdAt: string | Date;
|
|
1147
1147
|
updatedAt: string | Date;
|
|
1148
1148
|
agentId: string;
|
|
1149
|
+
assignmentId: string;
|
|
1149
1150
|
rating: CallRating;
|
|
1150
|
-
notes: string | null;
|
|
1151
1151
|
callType: CallType;
|
|
1152
|
-
assignmentId: string;
|
|
1153
|
-
ratingWeight: number;
|
|
1154
1152
|
leadSource: LeadSource;
|
|
1153
|
+
ratingWeight: number;
|
|
1154
|
+
notes: string | null;
|
|
1155
|
+
company?: {
|
|
1156
|
+
id: string;
|
|
1157
|
+
name: string;
|
|
1158
|
+
} | null | undefined;
|
|
1159
|
+
assignment?: {
|
|
1160
|
+
agentId: string | null;
|
|
1161
|
+
} | null | undefined;
|
|
1162
|
+
lead?: {
|
|
1163
|
+
phoneNumber: string;
|
|
1164
|
+
name: string;
|
|
1165
|
+
} | null | undefined;
|
|
1155
1166
|
agent?: {
|
|
1156
1167
|
id: string;
|
|
1157
1168
|
firstName: string;
|
|
@@ -1164,17 +1175,6 @@ export declare const CallHistoryListItemSchema: z.ZodObject<{
|
|
|
1164
1175
|
}[] | undefined;
|
|
1165
1176
|
deletedAt?: string | Date | null | undefined;
|
|
1166
1177
|
} | null | undefined;
|
|
1167
|
-
lead?: {
|
|
1168
|
-
name: string;
|
|
1169
|
-
phoneNumber: string;
|
|
1170
|
-
} | null | undefined;
|
|
1171
|
-
company?: {
|
|
1172
|
-
id: string;
|
|
1173
|
-
name: string;
|
|
1174
|
-
} | null | undefined;
|
|
1175
|
-
assignment?: {
|
|
1176
|
-
agentId: string | null;
|
|
1177
|
-
} | null | undefined;
|
|
1178
1178
|
}>;
|
|
1179
1179
|
export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
1180
1180
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -1199,11 +1199,11 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1199
1199
|
name: z.ZodString;
|
|
1200
1200
|
phoneNumber: z.ZodString;
|
|
1201
1201
|
}, "strip", z.ZodTypeAny, {
|
|
1202
|
-
name: string;
|
|
1203
1202
|
phoneNumber: string;
|
|
1204
|
-
}, {
|
|
1205
1203
|
name: string;
|
|
1204
|
+
}, {
|
|
1206
1205
|
phoneNumber: string;
|
|
1206
|
+
name: string;
|
|
1207
1207
|
}>>>;
|
|
1208
1208
|
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1209
1209
|
id: z.ZodString;
|
|
@@ -1264,12 +1264,23 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1264
1264
|
createdAt: string;
|
|
1265
1265
|
updatedAt: string;
|
|
1266
1266
|
agentId: string;
|
|
1267
|
+
assignmentId: string;
|
|
1267
1268
|
rating: CallRating;
|
|
1268
|
-
notes: string | null;
|
|
1269
1269
|
callType: CallType;
|
|
1270
|
-
assignmentId: string;
|
|
1271
|
-
ratingWeight: number;
|
|
1272
1270
|
leadSource: LeadSource;
|
|
1271
|
+
ratingWeight: number;
|
|
1272
|
+
notes: string | null;
|
|
1273
|
+
company?: {
|
|
1274
|
+
id: string;
|
|
1275
|
+
name: string;
|
|
1276
|
+
} | null | undefined;
|
|
1277
|
+
assignment?: {
|
|
1278
|
+
agentId: string | null;
|
|
1279
|
+
} | null | undefined;
|
|
1280
|
+
lead?: {
|
|
1281
|
+
phoneNumber: string;
|
|
1282
|
+
name: string;
|
|
1283
|
+
} | null | undefined;
|
|
1273
1284
|
agent?: {
|
|
1274
1285
|
id: string;
|
|
1275
1286
|
firstName: string;
|
|
@@ -1282,28 +1293,28 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1282
1293
|
}[];
|
|
1283
1294
|
deletedAt?: string | null | undefined;
|
|
1284
1295
|
} | null | undefined;
|
|
1285
|
-
lead?: {
|
|
1286
|
-
name: string;
|
|
1287
|
-
phoneNumber: string;
|
|
1288
|
-
} | null | undefined;
|
|
1289
|
-
company?: {
|
|
1290
|
-
id: string;
|
|
1291
|
-
name: string;
|
|
1292
|
-
} | null | undefined;
|
|
1293
|
-
assignment?: {
|
|
1294
|
-
agentId: string | null;
|
|
1295
|
-
} | null | undefined;
|
|
1296
1296
|
}, {
|
|
1297
1297
|
id: string;
|
|
1298
1298
|
createdAt: string | Date;
|
|
1299
1299
|
updatedAt: string | Date;
|
|
1300
1300
|
agentId: string;
|
|
1301
|
+
assignmentId: string;
|
|
1301
1302
|
rating: CallRating;
|
|
1302
|
-
notes: string | null;
|
|
1303
1303
|
callType: CallType;
|
|
1304
|
-
assignmentId: string;
|
|
1305
|
-
ratingWeight: number;
|
|
1306
1304
|
leadSource: LeadSource;
|
|
1305
|
+
ratingWeight: number;
|
|
1306
|
+
notes: string | null;
|
|
1307
|
+
company?: {
|
|
1308
|
+
id: string;
|
|
1309
|
+
name: string;
|
|
1310
|
+
} | null | undefined;
|
|
1311
|
+
assignment?: {
|
|
1312
|
+
agentId: string | null;
|
|
1313
|
+
} | null | undefined;
|
|
1314
|
+
lead?: {
|
|
1315
|
+
phoneNumber: string;
|
|
1316
|
+
name: string;
|
|
1317
|
+
} | null | undefined;
|
|
1307
1318
|
agent?: {
|
|
1308
1319
|
id: string;
|
|
1309
1320
|
firstName: string;
|
|
@@ -1316,17 +1327,6 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1316
1327
|
}[] | undefined;
|
|
1317
1328
|
deletedAt?: string | Date | null | undefined;
|
|
1318
1329
|
} | null | undefined;
|
|
1319
|
-
lead?: {
|
|
1320
|
-
name: string;
|
|
1321
|
-
phoneNumber: string;
|
|
1322
|
-
} | null | undefined;
|
|
1323
|
-
company?: {
|
|
1324
|
-
id: string;
|
|
1325
|
-
name: string;
|
|
1326
|
-
} | null | undefined;
|
|
1327
|
-
assignment?: {
|
|
1328
|
-
agentId: string | null;
|
|
1329
|
-
} | null | undefined;
|
|
1330
1330
|
}>, "many">;
|
|
1331
1331
|
totalCount: z.ZodNumber;
|
|
1332
1332
|
limit: z.ZodNumber;
|
|
@@ -1340,12 +1340,23 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1340
1340
|
createdAt: string;
|
|
1341
1341
|
updatedAt: string;
|
|
1342
1342
|
agentId: string;
|
|
1343
|
+
assignmentId: string;
|
|
1343
1344
|
rating: CallRating;
|
|
1344
|
-
notes: string | null;
|
|
1345
1345
|
callType: CallType;
|
|
1346
|
-
assignmentId: string;
|
|
1347
|
-
ratingWeight: number;
|
|
1348
1346
|
leadSource: LeadSource;
|
|
1347
|
+
ratingWeight: number;
|
|
1348
|
+
notes: string | null;
|
|
1349
|
+
company?: {
|
|
1350
|
+
id: string;
|
|
1351
|
+
name: string;
|
|
1352
|
+
} | null | undefined;
|
|
1353
|
+
assignment?: {
|
|
1354
|
+
agentId: string | null;
|
|
1355
|
+
} | null | undefined;
|
|
1356
|
+
lead?: {
|
|
1357
|
+
phoneNumber: string;
|
|
1358
|
+
name: string;
|
|
1359
|
+
} | null | undefined;
|
|
1349
1360
|
agent?: {
|
|
1350
1361
|
id: string;
|
|
1351
1362
|
firstName: string;
|
|
@@ -1358,17 +1369,6 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1358
1369
|
}[];
|
|
1359
1370
|
deletedAt?: string | null | undefined;
|
|
1360
1371
|
} | null | undefined;
|
|
1361
|
-
lead?: {
|
|
1362
|
-
name: string;
|
|
1363
|
-
phoneNumber: string;
|
|
1364
|
-
} | null | undefined;
|
|
1365
|
-
company?: {
|
|
1366
|
-
id: string;
|
|
1367
|
-
name: string;
|
|
1368
|
-
} | null | undefined;
|
|
1369
|
-
assignment?: {
|
|
1370
|
-
agentId: string | null;
|
|
1371
|
-
} | null | undefined;
|
|
1372
1372
|
}[];
|
|
1373
1373
|
totalCount: number;
|
|
1374
1374
|
skip: number;
|
|
@@ -1381,28 +1381,12 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1381
1381
|
createdAt: string | Date;
|
|
1382
1382
|
updatedAt: string | Date;
|
|
1383
1383
|
agentId: string;
|
|
1384
|
+
assignmentId: string;
|
|
1384
1385
|
rating: CallRating;
|
|
1385
|
-
notes: string | null;
|
|
1386
1386
|
callType: CallType;
|
|
1387
|
-
assignmentId: string;
|
|
1388
|
-
ratingWeight: number;
|
|
1389
1387
|
leadSource: LeadSource;
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
firstName: string;
|
|
1393
|
-
lastName: string;
|
|
1394
|
-
phoneNumbers?: {
|
|
1395
|
-
id: string;
|
|
1396
|
-
phoneNumber: string;
|
|
1397
|
-
description?: string | null | undefined;
|
|
1398
|
-
isPrimary?: boolean | undefined;
|
|
1399
|
-
}[] | undefined;
|
|
1400
|
-
deletedAt?: string | Date | null | undefined;
|
|
1401
|
-
} | null | undefined;
|
|
1402
|
-
lead?: {
|
|
1403
|
-
name: string;
|
|
1404
|
-
phoneNumber: string;
|
|
1405
|
-
} | null | undefined;
|
|
1388
|
+
ratingWeight: number;
|
|
1389
|
+
notes: string | null;
|
|
1406
1390
|
company?: {
|
|
1407
1391
|
id: string;
|
|
1408
1392
|
name: string;
|
|
@@ -1410,6 +1394,22 @@ export declare const PaginatedCallHistoryListItemResponseSchema: z.ZodObject<{
|
|
|
1410
1394
|
assignment?: {
|
|
1411
1395
|
agentId: string | null;
|
|
1412
1396
|
} | null | undefined;
|
|
1397
|
+
lead?: {
|
|
1398
|
+
phoneNumber: string;
|
|
1399
|
+
name: string;
|
|
1400
|
+
} | null | undefined;
|
|
1401
|
+
agent?: {
|
|
1402
|
+
id: string;
|
|
1403
|
+
firstName: string;
|
|
1404
|
+
lastName: string;
|
|
1405
|
+
phoneNumbers?: {
|
|
1406
|
+
id: string;
|
|
1407
|
+
phoneNumber: string;
|
|
1408
|
+
description?: string | null | undefined;
|
|
1409
|
+
isPrimary?: boolean | undefined;
|
|
1410
|
+
}[] | undefined;
|
|
1411
|
+
deletedAt?: string | Date | null | undefined;
|
|
1412
|
+
} | null | undefined;
|
|
1413
1413
|
}[];
|
|
1414
1414
|
totalCount: number;
|
|
1415
1415
|
skip: number;
|
|
@@ -1422,14 +1422,14 @@ export declare const CreateCallHistorySchema: z.ZodObject<{
|
|
|
1422
1422
|
notes: z.ZodOptional<z.ZodString>;
|
|
1423
1423
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1424
1424
|
}, "strip", z.ZodTypeAny, {
|
|
1425
|
+
assignmentId: string;
|
|
1425
1426
|
rating: CallRating;
|
|
1426
1427
|
callType: CallType;
|
|
1427
|
-
assignmentId: string;
|
|
1428
1428
|
notes?: string | undefined;
|
|
1429
1429
|
}, {
|
|
1430
|
+
assignmentId: string;
|
|
1430
1431
|
rating: CallRating;
|
|
1431
1432
|
callType: CallType;
|
|
1432
|
-
assignmentId: string;
|
|
1433
1433
|
notes?: string | undefined;
|
|
1434
1434
|
}>;
|
|
1435
1435
|
export declare const UpdateCallHistorySchema: z.ZodObject<{
|
|
@@ -1489,39 +1489,39 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
|
|
|
1489
1489
|
field: CallHistorySortableFields;
|
|
1490
1490
|
order: "ASC" | "DESC";
|
|
1491
1491
|
}[] | null | undefined;
|
|
1492
|
+
phoneNumber?: string | undefined;
|
|
1492
1493
|
createdAt?: {
|
|
1493
1494
|
from?: string | null | undefined;
|
|
1494
1495
|
to?: string | null | undefined;
|
|
1495
1496
|
} | null | undefined;
|
|
1496
|
-
|
|
1497
|
+
companyId?: string | undefined;
|
|
1497
1498
|
agentId?: string | undefined;
|
|
1498
1499
|
rating?: {
|
|
1499
1500
|
from?: CallRating | null | undefined;
|
|
1500
1501
|
to?: CallRating | null | undefined;
|
|
1501
1502
|
} | null | undefined;
|
|
1502
1503
|
callType?: CallType | undefined;
|
|
1503
|
-
companyId?: string | undefined;
|
|
1504
1504
|
leadSource?: LeadSource | undefined;
|
|
1505
1505
|
leadName?: string | undefined;
|
|
1506
1506
|
}, {
|
|
1507
|
-
limit?: number | undefined;
|
|
1508
|
-
page?: number | undefined;
|
|
1509
1507
|
sort?: {
|
|
1510
1508
|
field: CallHistorySortableFields;
|
|
1511
1509
|
order: "ASC" | "DESC";
|
|
1512
1510
|
}[] | null | undefined;
|
|
1511
|
+
phoneNumber?: string | undefined;
|
|
1512
|
+
limit?: number | undefined;
|
|
1513
|
+
page?: number | undefined;
|
|
1513
1514
|
createdAt?: {
|
|
1514
1515
|
from?: string | null | undefined;
|
|
1515
1516
|
to?: string | null | undefined;
|
|
1516
1517
|
} | null | undefined;
|
|
1517
|
-
|
|
1518
|
+
companyId?: string | undefined;
|
|
1518
1519
|
agentId?: string | undefined;
|
|
1519
1520
|
rating?: {
|
|
1520
1521
|
from?: unknown;
|
|
1521
1522
|
to?: unknown;
|
|
1522
1523
|
} | null | undefined;
|
|
1523
1524
|
callType?: CallType | undefined;
|
|
1524
|
-
companyId?: string | undefined;
|
|
1525
1525
|
leadSource?: LeadSource | undefined;
|
|
1526
1526
|
leadName?: string | undefined;
|
|
1527
1527
|
}>;
|
|
@@ -1559,14 +1559,14 @@ export declare const callHistoryContract: {
|
|
|
1559
1559
|
notes: z.ZodOptional<z.ZodString>;
|
|
1560
1560
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1561
1561
|
}, "strip", z.ZodTypeAny, {
|
|
1562
|
+
assignmentId: string;
|
|
1562
1563
|
rating: CallRating;
|
|
1563
1564
|
callType: CallType;
|
|
1564
|
-
assignmentId: string;
|
|
1565
1565
|
notes?: string | undefined;
|
|
1566
1566
|
}, {
|
|
1567
|
+
assignmentId: string;
|
|
1567
1568
|
rating: CallRating;
|
|
1568
1569
|
callType: CallType;
|
|
1569
|
-
assignmentId: string;
|
|
1570
1570
|
notes?: string | undefined;
|
|
1571
1571
|
}>;
|
|
1572
1572
|
path: "/v2/call-history";
|
|
@@ -1580,17 +1580,17 @@ export declare const callHistoryContract: {
|
|
|
1580
1580
|
path: z.ZodString;
|
|
1581
1581
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1582
1582
|
}, "strip", z.ZodTypeAny, {
|
|
1583
|
+
message: string;
|
|
1583
1584
|
code: string;
|
|
1584
1585
|
path: string;
|
|
1585
|
-
message: string;
|
|
1586
1586
|
statusCode: number;
|
|
1587
1587
|
timestamp: string;
|
|
1588
1588
|
details?: unknown;
|
|
1589
1589
|
correlationId?: string | undefined;
|
|
1590
1590
|
}, {
|
|
1591
|
+
message: string;
|
|
1591
1592
|
code: string;
|
|
1592
1593
|
path: string;
|
|
1593
|
-
message: string;
|
|
1594
1594
|
statusCode: number;
|
|
1595
1595
|
timestamp: string;
|
|
1596
1596
|
details?: unknown;
|
|
@@ -1605,17 +1605,17 @@ export declare const callHistoryContract: {
|
|
|
1605
1605
|
path: z.ZodString;
|
|
1606
1606
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1607
1607
|
}, "strip", z.ZodTypeAny, {
|
|
1608
|
+
message: string;
|
|
1608
1609
|
code: string;
|
|
1609
1610
|
path: string;
|
|
1610
|
-
message: string;
|
|
1611
1611
|
statusCode: number;
|
|
1612
1612
|
timestamp: string;
|
|
1613
1613
|
details?: unknown;
|
|
1614
1614
|
correlationId?: string | undefined;
|
|
1615
1615
|
}, {
|
|
1616
|
+
message: string;
|
|
1616
1617
|
code: string;
|
|
1617
1618
|
path: string;
|
|
1618
|
-
message: string;
|
|
1619
1619
|
statusCode: number;
|
|
1620
1620
|
timestamp: string;
|
|
1621
1621
|
details?: unknown;
|
|
@@ -1630,17 +1630,17 @@ export declare const callHistoryContract: {
|
|
|
1630
1630
|
path: z.ZodString;
|
|
1631
1631
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1632
1632
|
}, "strip", z.ZodTypeAny, {
|
|
1633
|
+
message: string;
|
|
1633
1634
|
code: string;
|
|
1634
1635
|
path: string;
|
|
1635
|
-
message: string;
|
|
1636
1636
|
statusCode: number;
|
|
1637
1637
|
timestamp: string;
|
|
1638
1638
|
details?: unknown;
|
|
1639
1639
|
correlationId?: string | undefined;
|
|
1640
1640
|
}, {
|
|
1641
|
+
message: string;
|
|
1641
1642
|
code: string;
|
|
1642
1643
|
path: string;
|
|
1643
|
-
message: string;
|
|
1644
1644
|
statusCode: number;
|
|
1645
1645
|
timestamp: string;
|
|
1646
1646
|
details?: unknown;
|
|
@@ -1655,17 +1655,17 @@ export declare const callHistoryContract: {
|
|
|
1655
1655
|
path: z.ZodString;
|
|
1656
1656
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1657
1657
|
}, "strip", z.ZodTypeAny, {
|
|
1658
|
+
message: string;
|
|
1658
1659
|
code: string;
|
|
1659
1660
|
path: string;
|
|
1660
|
-
message: string;
|
|
1661
1661
|
statusCode: number;
|
|
1662
1662
|
timestamp: string;
|
|
1663
1663
|
details?: unknown;
|
|
1664
1664
|
correlationId?: string | undefined;
|
|
1665
1665
|
}, {
|
|
1666
|
+
message: string;
|
|
1666
1667
|
code: string;
|
|
1667
1668
|
path: string;
|
|
1668
|
-
message: string;
|
|
1669
1669
|
statusCode: number;
|
|
1670
1670
|
timestamp: string;
|
|
1671
1671
|
details?: unknown;
|
|
@@ -1683,11 +1683,11 @@ export declare const callHistoryContract: {
|
|
|
1683
1683
|
name: z.ZodString;
|
|
1684
1684
|
phoneNumber: z.ZodString;
|
|
1685
1685
|
}, "strip", z.ZodTypeAny, {
|
|
1686
|
-
name: string;
|
|
1687
1686
|
phoneNumber: string;
|
|
1688
|
-
}, {
|
|
1689
1687
|
name: string;
|
|
1688
|
+
}, {
|
|
1690
1689
|
phoneNumber: string;
|
|
1690
|
+
name: string;
|
|
1691
1691
|
}>>;
|
|
1692
1692
|
agentId: z.ZodNullable<z.ZodString>;
|
|
1693
1693
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1711,7 +1711,7 @@ export declare const callHistoryContract: {
|
|
|
1711
1711
|
description?: string | null | undefined;
|
|
1712
1712
|
isPrimary?: boolean | undefined;
|
|
1713
1713
|
}>, "many">>>;
|
|
1714
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
1714
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
|
|
1715
1715
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1716
1716
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1717
1717
|
id: z.ZodString;
|
|
@@ -1770,16 +1770,13 @@ export declare const callHistoryContract: {
|
|
|
1770
1770
|
lastName: string;
|
|
1771
1771
|
email: string;
|
|
1772
1772
|
createdAt: string;
|
|
1773
|
-
updatedAt: string;
|
|
1774
1773
|
phoneNumbers: {
|
|
1775
1774
|
id: string;
|
|
1776
1775
|
phoneNumber: string;
|
|
1777
1776
|
isPrimary: boolean;
|
|
1778
1777
|
description?: string | null | undefined;
|
|
1779
1778
|
}[];
|
|
1780
|
-
|
|
1781
|
-
deletedAt?: string | null | undefined;
|
|
1782
|
-
officeId?: string | null | undefined;
|
|
1779
|
+
updatedAt: string;
|
|
1783
1780
|
office?: {
|
|
1784
1781
|
id: string;
|
|
1785
1782
|
name: string;
|
|
@@ -1789,11 +1786,14 @@ export declare const callHistoryContract: {
|
|
|
1789
1786
|
lastName: string;
|
|
1790
1787
|
}[] | undefined;
|
|
1791
1788
|
} | null | undefined;
|
|
1789
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1790
|
+
officeId?: string | null | undefined;
|
|
1792
1791
|
canImpersonateUsers?: {
|
|
1793
1792
|
id: string;
|
|
1794
1793
|
firstName: string;
|
|
1795
1794
|
lastName: string;
|
|
1796
1795
|
}[] | undefined;
|
|
1796
|
+
deletedAt?: string | null | undefined;
|
|
1797
1797
|
}, {
|
|
1798
1798
|
status: "ACTIVE" | "INACTIVE";
|
|
1799
1799
|
id: string;
|
|
@@ -1802,15 +1802,6 @@ export declare const callHistoryContract: {
|
|
|
1802
1802
|
email: string;
|
|
1803
1803
|
createdAt: string | Date;
|
|
1804
1804
|
updatedAt: string | Date;
|
|
1805
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1806
|
-
phoneNumbers?: {
|
|
1807
|
-
id: string;
|
|
1808
|
-
phoneNumber: string;
|
|
1809
|
-
description?: string | null | undefined;
|
|
1810
|
-
isPrimary?: boolean | undefined;
|
|
1811
|
-
}[] | undefined;
|
|
1812
|
-
deletedAt?: string | Date | null | undefined;
|
|
1813
|
-
officeId?: string | null | undefined;
|
|
1814
1805
|
office?: {
|
|
1815
1806
|
id: string;
|
|
1816
1807
|
name: string;
|
|
@@ -1820,11 +1811,20 @@ export declare const callHistoryContract: {
|
|
|
1820
1811
|
lastName: string;
|
|
1821
1812
|
}[] | undefined;
|
|
1822
1813
|
} | null | undefined;
|
|
1814
|
+
phoneNumbers?: {
|
|
1815
|
+
id: string;
|
|
1816
|
+
phoneNumber: string;
|
|
1817
|
+
description?: string | null | undefined;
|
|
1818
|
+
isPrimary?: boolean | undefined;
|
|
1819
|
+
}[] | undefined;
|
|
1820
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1821
|
+
officeId?: string | null | undefined;
|
|
1823
1822
|
canImpersonateUsers?: {
|
|
1824
1823
|
id: string;
|
|
1825
1824
|
firstName: string;
|
|
1826
1825
|
lastName: string;
|
|
1827
1826
|
}[] | undefined;
|
|
1827
|
+
deletedAt?: string | Date | null | undefined;
|
|
1828
1828
|
}>>;
|
|
1829
1829
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1830
1830
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -1853,11 +1853,21 @@ export declare const callHistoryContract: {
|
|
|
1853
1853
|
id: string;
|
|
1854
1854
|
createdAt: string;
|
|
1855
1855
|
updatedAt: string;
|
|
1856
|
+
companyId: string | null;
|
|
1856
1857
|
agentId: string | null;
|
|
1857
1858
|
leadId: string;
|
|
1858
1859
|
assignedAt: string;
|
|
1859
1860
|
assignedBy: string | null;
|
|
1860
|
-
|
|
1861
|
+
company?: {
|
|
1862
|
+
id: string;
|
|
1863
|
+
name: string;
|
|
1864
|
+
createdAt: string;
|
|
1865
|
+
updatedAt: string;
|
|
1866
|
+
} | null | undefined;
|
|
1867
|
+
lead?: {
|
|
1868
|
+
phoneNumber: string;
|
|
1869
|
+
name: string;
|
|
1870
|
+
} | undefined;
|
|
1861
1871
|
agent?: {
|
|
1862
1872
|
status: "ACTIVE" | "INACTIVE";
|
|
1863
1873
|
id: string;
|
|
@@ -1865,16 +1875,13 @@ export declare const callHistoryContract: {
|
|
|
1865
1875
|
lastName: string;
|
|
1866
1876
|
email: string;
|
|
1867
1877
|
createdAt: string;
|
|
1868
|
-
updatedAt: string;
|
|
1869
1878
|
phoneNumbers: {
|
|
1870
1879
|
id: string;
|
|
1871
1880
|
phoneNumber: string;
|
|
1872
1881
|
isPrimary: boolean;
|
|
1873
1882
|
description?: string | null | undefined;
|
|
1874
1883
|
}[];
|
|
1875
|
-
|
|
1876
|
-
deletedAt?: string | null | undefined;
|
|
1877
|
-
officeId?: string | null | undefined;
|
|
1884
|
+
updatedAt: string;
|
|
1878
1885
|
office?: {
|
|
1879
1886
|
id: string;
|
|
1880
1887
|
name: string;
|
|
@@ -1884,32 +1891,35 @@ export declare const callHistoryContract: {
|
|
|
1884
1891
|
lastName: string;
|
|
1885
1892
|
}[] | undefined;
|
|
1886
1893
|
} | null | undefined;
|
|
1894
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1895
|
+
officeId?: string | null | undefined;
|
|
1887
1896
|
canImpersonateUsers?: {
|
|
1888
1897
|
id: string;
|
|
1889
1898
|
firstName: string;
|
|
1890
1899
|
lastName: string;
|
|
1891
1900
|
}[] | undefined;
|
|
1901
|
+
deletedAt?: string | null | undefined;
|
|
1892
1902
|
} | undefined;
|
|
1893
|
-
lead?: {
|
|
1894
|
-
name: string;
|
|
1895
|
-
phoneNumber: string;
|
|
1896
|
-
} | undefined;
|
|
1897
|
-
company?: {
|
|
1898
|
-
id: string;
|
|
1899
|
-
name: string;
|
|
1900
|
-
createdAt: string;
|
|
1901
|
-
updatedAt: string;
|
|
1902
|
-
} | null | undefined;
|
|
1903
1903
|
}, {
|
|
1904
1904
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1905
1905
|
id: string;
|
|
1906
1906
|
createdAt: string | Date;
|
|
1907
1907
|
updatedAt: string | Date;
|
|
1908
|
+
companyId: string | null;
|
|
1908
1909
|
agentId: string | null;
|
|
1909
1910
|
leadId: string;
|
|
1910
1911
|
assignedAt: string | Date;
|
|
1911
1912
|
assignedBy: string | null;
|
|
1912
|
-
|
|
1913
|
+
company?: {
|
|
1914
|
+
id: string;
|
|
1915
|
+
name: string;
|
|
1916
|
+
createdAt: string | Date;
|
|
1917
|
+
updatedAt: string | Date;
|
|
1918
|
+
} | null | undefined;
|
|
1919
|
+
lead?: {
|
|
1920
|
+
phoneNumber: string;
|
|
1921
|
+
name: string;
|
|
1922
|
+
} | undefined;
|
|
1913
1923
|
agent?: {
|
|
1914
1924
|
status: "ACTIVE" | "INACTIVE";
|
|
1915
1925
|
id: string;
|
|
@@ -1918,15 +1928,6 @@ export declare const callHistoryContract: {
|
|
|
1918
1928
|
email: string;
|
|
1919
1929
|
createdAt: string | Date;
|
|
1920
1930
|
updatedAt: string | Date;
|
|
1921
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1922
|
-
phoneNumbers?: {
|
|
1923
|
-
id: string;
|
|
1924
|
-
phoneNumber: string;
|
|
1925
|
-
description?: string | null | undefined;
|
|
1926
|
-
isPrimary?: boolean | undefined;
|
|
1927
|
-
}[] | undefined;
|
|
1928
|
-
deletedAt?: string | Date | null | undefined;
|
|
1929
|
-
officeId?: string | null | undefined;
|
|
1930
1931
|
office?: {
|
|
1931
1932
|
id: string;
|
|
1932
1933
|
name: string;
|
|
@@ -1936,22 +1937,21 @@ export declare const callHistoryContract: {
|
|
|
1936
1937
|
lastName: string;
|
|
1937
1938
|
}[] | undefined;
|
|
1938
1939
|
} | null | undefined;
|
|
1940
|
+
phoneNumbers?: {
|
|
1941
|
+
id: string;
|
|
1942
|
+
phoneNumber: string;
|
|
1943
|
+
description?: string | null | undefined;
|
|
1944
|
+
isPrimary?: boolean | undefined;
|
|
1945
|
+
}[] | undefined;
|
|
1946
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1947
|
+
officeId?: string | null | undefined;
|
|
1939
1948
|
canImpersonateUsers?: {
|
|
1940
1949
|
id: string;
|
|
1941
1950
|
firstName: string;
|
|
1942
1951
|
lastName: string;
|
|
1943
1952
|
}[] | undefined;
|
|
1953
|
+
deletedAt?: string | Date | null | undefined;
|
|
1944
1954
|
} | undefined;
|
|
1945
|
-
lead?: {
|
|
1946
|
-
name: string;
|
|
1947
|
-
phoneNumber: string;
|
|
1948
|
-
} | undefined;
|
|
1949
|
-
company?: {
|
|
1950
|
-
id: string;
|
|
1951
|
-
name: string;
|
|
1952
|
-
createdAt: string | Date;
|
|
1953
|
-
updatedAt: string | Date;
|
|
1954
|
-
} | null | undefined;
|
|
1955
1955
|
}>>>;
|
|
1956
1956
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1957
1957
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -1964,12 +1964,12 @@ export declare const callHistoryContract: {
|
|
|
1964
1964
|
id: string;
|
|
1965
1965
|
createdAt: string;
|
|
1966
1966
|
updatedAt: string;
|
|
1967
|
+
assignmentId: string;
|
|
1967
1968
|
rating: CallRating;
|
|
1968
|
-
notes: string | null;
|
|
1969
1969
|
callType: CallType;
|
|
1970
|
-
assignmentId: string;
|
|
1971
|
-
ratingWeight: number;
|
|
1972
1970
|
leadSource: LeadSource;
|
|
1971
|
+
ratingWeight: number;
|
|
1972
|
+
notes: string | null;
|
|
1973
1973
|
agentId?: string | undefined;
|
|
1974
1974
|
leadId?: string | undefined;
|
|
1975
1975
|
assignment?: {
|
|
@@ -1977,11 +1977,21 @@ export declare const callHistoryContract: {
|
|
|
1977
1977
|
id: string;
|
|
1978
1978
|
createdAt: string;
|
|
1979
1979
|
updatedAt: string;
|
|
1980
|
+
companyId: string | null;
|
|
1980
1981
|
agentId: string | null;
|
|
1981
1982
|
leadId: string;
|
|
1982
1983
|
assignedAt: string;
|
|
1983
1984
|
assignedBy: string | null;
|
|
1984
|
-
|
|
1985
|
+
company?: {
|
|
1986
|
+
id: string;
|
|
1987
|
+
name: string;
|
|
1988
|
+
createdAt: string;
|
|
1989
|
+
updatedAt: string;
|
|
1990
|
+
} | null | undefined;
|
|
1991
|
+
lead?: {
|
|
1992
|
+
phoneNumber: string;
|
|
1993
|
+
name: string;
|
|
1994
|
+
} | undefined;
|
|
1985
1995
|
agent?: {
|
|
1986
1996
|
status: "ACTIVE" | "INACTIVE";
|
|
1987
1997
|
id: string;
|
|
@@ -1989,16 +1999,13 @@ export declare const callHistoryContract: {
|
|
|
1989
1999
|
lastName: string;
|
|
1990
2000
|
email: string;
|
|
1991
2001
|
createdAt: string;
|
|
1992
|
-
updatedAt: string;
|
|
1993
2002
|
phoneNumbers: {
|
|
1994
2003
|
id: string;
|
|
1995
2004
|
phoneNumber: string;
|
|
1996
2005
|
isPrimary: boolean;
|
|
1997
2006
|
description?: string | null | undefined;
|
|
1998
2007
|
}[];
|
|
1999
|
-
|
|
2000
|
-
deletedAt?: string | null | undefined;
|
|
2001
|
-
officeId?: string | null | undefined;
|
|
2008
|
+
updatedAt: string;
|
|
2002
2009
|
office?: {
|
|
2003
2010
|
id: string;
|
|
2004
2011
|
name: string;
|
|
@@ -2008,33 +2015,26 @@ export declare const callHistoryContract: {
|
|
|
2008
2015
|
lastName: string;
|
|
2009
2016
|
}[] | undefined;
|
|
2010
2017
|
} | null | undefined;
|
|
2018
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2019
|
+
officeId?: string | null | undefined;
|
|
2011
2020
|
canImpersonateUsers?: {
|
|
2012
2021
|
id: string;
|
|
2013
2022
|
firstName: string;
|
|
2014
2023
|
lastName: string;
|
|
2015
2024
|
}[] | undefined;
|
|
2025
|
+
deletedAt?: string | null | undefined;
|
|
2016
2026
|
} | undefined;
|
|
2017
|
-
lead?: {
|
|
2018
|
-
name: string;
|
|
2019
|
-
phoneNumber: string;
|
|
2020
|
-
} | undefined;
|
|
2021
|
-
company?: {
|
|
2022
|
-
id: string;
|
|
2023
|
-
name: string;
|
|
2024
|
-
createdAt: string;
|
|
2025
|
-
updatedAt: string;
|
|
2026
|
-
} | null | undefined;
|
|
2027
2027
|
} | null | undefined;
|
|
2028
2028
|
}, {
|
|
2029
2029
|
id: string;
|
|
2030
2030
|
createdAt: string | Date;
|
|
2031
2031
|
updatedAt: string | Date;
|
|
2032
|
+
assignmentId: string;
|
|
2032
2033
|
rating: CallRating;
|
|
2033
|
-
notes: string | null;
|
|
2034
2034
|
callType: CallType;
|
|
2035
|
-
assignmentId: string;
|
|
2036
|
-
ratingWeight: number;
|
|
2037
2035
|
leadSource: LeadSource;
|
|
2036
|
+
ratingWeight: number;
|
|
2037
|
+
notes: string | null;
|
|
2038
2038
|
agentId?: string | undefined;
|
|
2039
2039
|
leadId?: string | undefined;
|
|
2040
2040
|
assignment?: {
|
|
@@ -2042,11 +2042,21 @@ export declare const callHistoryContract: {
|
|
|
2042
2042
|
id: string;
|
|
2043
2043
|
createdAt: string | Date;
|
|
2044
2044
|
updatedAt: string | Date;
|
|
2045
|
+
companyId: string | null;
|
|
2045
2046
|
agentId: string | null;
|
|
2046
2047
|
leadId: string;
|
|
2047
2048
|
assignedAt: string | Date;
|
|
2048
2049
|
assignedBy: string | null;
|
|
2049
|
-
|
|
2050
|
+
company?: {
|
|
2051
|
+
id: string;
|
|
2052
|
+
name: string;
|
|
2053
|
+
createdAt: string | Date;
|
|
2054
|
+
updatedAt: string | Date;
|
|
2055
|
+
} | null | undefined;
|
|
2056
|
+
lead?: {
|
|
2057
|
+
phoneNumber: string;
|
|
2058
|
+
name: string;
|
|
2059
|
+
} | undefined;
|
|
2050
2060
|
agent?: {
|
|
2051
2061
|
status: "ACTIVE" | "INACTIVE";
|
|
2052
2062
|
id: string;
|
|
@@ -2055,15 +2065,6 @@ export declare const callHistoryContract: {
|
|
|
2055
2065
|
email: string;
|
|
2056
2066
|
createdAt: string | Date;
|
|
2057
2067
|
updatedAt: string | Date;
|
|
2058
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2059
|
-
phoneNumbers?: {
|
|
2060
|
-
id: string;
|
|
2061
|
-
phoneNumber: string;
|
|
2062
|
-
description?: string | null | undefined;
|
|
2063
|
-
isPrimary?: boolean | undefined;
|
|
2064
|
-
}[] | undefined;
|
|
2065
|
-
deletedAt?: string | Date | null | undefined;
|
|
2066
|
-
officeId?: string | null | undefined;
|
|
2067
2068
|
office?: {
|
|
2068
2069
|
id: string;
|
|
2069
2070
|
name: string;
|
|
@@ -2073,22 +2074,21 @@ export declare const callHistoryContract: {
|
|
|
2073
2074
|
lastName: string;
|
|
2074
2075
|
}[] | undefined;
|
|
2075
2076
|
} | null | undefined;
|
|
2077
|
+
phoneNumbers?: {
|
|
2078
|
+
id: string;
|
|
2079
|
+
phoneNumber: string;
|
|
2080
|
+
description?: string | null | undefined;
|
|
2081
|
+
isPrimary?: boolean | undefined;
|
|
2082
|
+
}[] | undefined;
|
|
2083
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2084
|
+
officeId?: string | null | undefined;
|
|
2076
2085
|
canImpersonateUsers?: {
|
|
2077
2086
|
id: string;
|
|
2078
2087
|
firstName: string;
|
|
2079
2088
|
lastName: string;
|
|
2080
2089
|
}[] | undefined;
|
|
2090
|
+
deletedAt?: string | Date | null | undefined;
|
|
2081
2091
|
} | undefined;
|
|
2082
|
-
lead?: {
|
|
2083
|
-
name: string;
|
|
2084
|
-
phoneNumber: string;
|
|
2085
|
-
} | undefined;
|
|
2086
|
-
company?: {
|
|
2087
|
-
id: string;
|
|
2088
|
-
name: string;
|
|
2089
|
-
createdAt: string | Date;
|
|
2090
|
-
updatedAt: string | Date;
|
|
2091
|
-
} | null | undefined;
|
|
2092
2092
|
} | null | undefined;
|
|
2093
2093
|
}>;
|
|
2094
2094
|
409: z.ZodObject<{
|
|
@@ -2100,17 +2100,17 @@ export declare const callHistoryContract: {
|
|
|
2100
2100
|
path: z.ZodString;
|
|
2101
2101
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2102
2102
|
}, "strip", z.ZodTypeAny, {
|
|
2103
|
+
message: string;
|
|
2103
2104
|
code: string;
|
|
2104
2105
|
path: string;
|
|
2105
|
-
message: string;
|
|
2106
2106
|
statusCode: number;
|
|
2107
2107
|
timestamp: string;
|
|
2108
2108
|
details?: unknown;
|
|
2109
2109
|
correlationId?: string | undefined;
|
|
2110
2110
|
}, {
|
|
2111
|
+
message: string;
|
|
2111
2112
|
code: string;
|
|
2112
2113
|
path: string;
|
|
2113
|
-
message: string;
|
|
2114
2114
|
statusCode: number;
|
|
2115
2115
|
timestamp: string;
|
|
2116
2116
|
details?: unknown;
|
|
@@ -2119,9 +2119,6 @@ export declare const callHistoryContract: {
|
|
|
2119
2119
|
};
|
|
2120
2120
|
};
|
|
2121
2121
|
findAll: {
|
|
2122
|
-
metadata: {
|
|
2123
|
-
tags: string[];
|
|
2124
|
-
};
|
|
2125
2122
|
query: z.ZodObject<{
|
|
2126
2123
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
2127
2124
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2169,42 +2166,45 @@ export declare const callHistoryContract: {
|
|
|
2169
2166
|
field: CallHistorySortableFields;
|
|
2170
2167
|
order: "ASC" | "DESC";
|
|
2171
2168
|
}[] | null | undefined;
|
|
2169
|
+
phoneNumber?: string | undefined;
|
|
2172
2170
|
createdAt?: {
|
|
2173
2171
|
from?: string | null | undefined;
|
|
2174
2172
|
to?: string | null | undefined;
|
|
2175
2173
|
} | null | undefined;
|
|
2176
|
-
|
|
2174
|
+
companyId?: string | undefined;
|
|
2177
2175
|
agentId?: string | undefined;
|
|
2178
2176
|
rating?: {
|
|
2179
2177
|
from?: CallRating | null | undefined;
|
|
2180
2178
|
to?: CallRating | null | undefined;
|
|
2181
2179
|
} | null | undefined;
|
|
2182
2180
|
callType?: CallType | undefined;
|
|
2183
|
-
companyId?: string | undefined;
|
|
2184
2181
|
leadSource?: LeadSource | undefined;
|
|
2185
2182
|
leadName?: string | undefined;
|
|
2186
2183
|
}, {
|
|
2187
|
-
limit?: number | undefined;
|
|
2188
|
-
page?: number | undefined;
|
|
2189
2184
|
sort?: {
|
|
2190
2185
|
field: CallHistorySortableFields;
|
|
2191
2186
|
order: "ASC" | "DESC";
|
|
2192
2187
|
}[] | null | undefined;
|
|
2188
|
+
phoneNumber?: string | undefined;
|
|
2189
|
+
limit?: number | undefined;
|
|
2190
|
+
page?: number | undefined;
|
|
2193
2191
|
createdAt?: {
|
|
2194
2192
|
from?: string | null | undefined;
|
|
2195
2193
|
to?: string | null | undefined;
|
|
2196
2194
|
} | null | undefined;
|
|
2197
|
-
|
|
2195
|
+
companyId?: string | undefined;
|
|
2198
2196
|
agentId?: string | undefined;
|
|
2199
2197
|
rating?: {
|
|
2200
2198
|
from?: unknown;
|
|
2201
2199
|
to?: unknown;
|
|
2202
2200
|
} | null | undefined;
|
|
2203
2201
|
callType?: CallType | undefined;
|
|
2204
|
-
companyId?: string | undefined;
|
|
2205
2202
|
leadSource?: LeadSource | undefined;
|
|
2206
2203
|
leadName?: string | undefined;
|
|
2207
2204
|
}>;
|
|
2205
|
+
metadata: {
|
|
2206
|
+
tags: string[];
|
|
2207
|
+
};
|
|
2208
2208
|
summary: "Get call history records";
|
|
2209
2209
|
method: "GET";
|
|
2210
2210
|
path: "/v2/call-history";
|
|
@@ -2218,17 +2218,17 @@ export declare const callHistoryContract: {
|
|
|
2218
2218
|
path: z.ZodString;
|
|
2219
2219
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2220
2220
|
}, "strip", z.ZodTypeAny, {
|
|
2221
|
+
message: string;
|
|
2221
2222
|
code: string;
|
|
2222
2223
|
path: string;
|
|
2223
|
-
message: string;
|
|
2224
2224
|
statusCode: number;
|
|
2225
2225
|
timestamp: string;
|
|
2226
2226
|
details?: unknown;
|
|
2227
2227
|
correlationId?: string | undefined;
|
|
2228
2228
|
}, {
|
|
2229
|
+
message: string;
|
|
2229
2230
|
code: string;
|
|
2230
2231
|
path: string;
|
|
2231
|
-
message: string;
|
|
2232
2232
|
statusCode: number;
|
|
2233
2233
|
timestamp: string;
|
|
2234
2234
|
details?: unknown;
|
|
@@ -2243,17 +2243,17 @@ export declare const callHistoryContract: {
|
|
|
2243
2243
|
path: z.ZodString;
|
|
2244
2244
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2245
2245
|
}, "strip", z.ZodTypeAny, {
|
|
2246
|
+
message: string;
|
|
2246
2247
|
code: string;
|
|
2247
2248
|
path: string;
|
|
2248
|
-
message: string;
|
|
2249
2249
|
statusCode: number;
|
|
2250
2250
|
timestamp: string;
|
|
2251
2251
|
details?: unknown;
|
|
2252
2252
|
correlationId?: string | undefined;
|
|
2253
2253
|
}, {
|
|
2254
|
+
message: string;
|
|
2254
2255
|
code: string;
|
|
2255
2256
|
path: string;
|
|
2256
|
-
message: string;
|
|
2257
2257
|
statusCode: number;
|
|
2258
2258
|
timestamp: string;
|
|
2259
2259
|
details?: unknown;
|
|
@@ -2268,17 +2268,17 @@ export declare const callHistoryContract: {
|
|
|
2268
2268
|
path: z.ZodString;
|
|
2269
2269
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2270
2270
|
}, "strip", z.ZodTypeAny, {
|
|
2271
|
+
message: string;
|
|
2271
2272
|
code: string;
|
|
2272
2273
|
path: string;
|
|
2273
|
-
message: string;
|
|
2274
2274
|
statusCode: number;
|
|
2275
2275
|
timestamp: string;
|
|
2276
2276
|
details?: unknown;
|
|
2277
2277
|
correlationId?: string | undefined;
|
|
2278
2278
|
}, {
|
|
2279
|
+
message: string;
|
|
2279
2280
|
code: string;
|
|
2280
2281
|
path: string;
|
|
2281
|
-
message: string;
|
|
2282
2282
|
statusCode: number;
|
|
2283
2283
|
timestamp: string;
|
|
2284
2284
|
details?: unknown;
|
|
@@ -2293,17 +2293,17 @@ export declare const callHistoryContract: {
|
|
|
2293
2293
|
path: z.ZodString;
|
|
2294
2294
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2295
2295
|
}, "strip", z.ZodTypeAny, {
|
|
2296
|
+
message: string;
|
|
2296
2297
|
code: string;
|
|
2297
2298
|
path: string;
|
|
2298
|
-
message: string;
|
|
2299
2299
|
statusCode: number;
|
|
2300
2300
|
timestamp: string;
|
|
2301
2301
|
details?: unknown;
|
|
2302
2302
|
correlationId?: string | undefined;
|
|
2303
2303
|
}, {
|
|
2304
|
+
message: string;
|
|
2304
2305
|
code: string;
|
|
2305
2306
|
path: string;
|
|
2306
|
-
message: string;
|
|
2307
2307
|
statusCode: number;
|
|
2308
2308
|
timestamp: string;
|
|
2309
2309
|
details?: unknown;
|
|
@@ -2332,11 +2332,11 @@ export declare const callHistoryContract: {
|
|
|
2332
2332
|
name: z.ZodString;
|
|
2333
2333
|
phoneNumber: z.ZodString;
|
|
2334
2334
|
}, "strip", z.ZodTypeAny, {
|
|
2335
|
-
name: string;
|
|
2336
2335
|
phoneNumber: string;
|
|
2337
|
-
}, {
|
|
2338
2336
|
name: string;
|
|
2337
|
+
}, {
|
|
2339
2338
|
phoneNumber: string;
|
|
2339
|
+
name: string;
|
|
2340
2340
|
}>>>;
|
|
2341
2341
|
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2342
2342
|
id: z.ZodString;
|
|
@@ -2397,12 +2397,23 @@ export declare const callHistoryContract: {
|
|
|
2397
2397
|
createdAt: string;
|
|
2398
2398
|
updatedAt: string;
|
|
2399
2399
|
agentId: string;
|
|
2400
|
+
assignmentId: string;
|
|
2400
2401
|
rating: CallRating;
|
|
2401
|
-
notes: string | null;
|
|
2402
2402
|
callType: CallType;
|
|
2403
|
-
assignmentId: string;
|
|
2404
|
-
ratingWeight: number;
|
|
2405
2403
|
leadSource: LeadSource;
|
|
2404
|
+
ratingWeight: number;
|
|
2405
|
+
notes: string | null;
|
|
2406
|
+
company?: {
|
|
2407
|
+
id: string;
|
|
2408
|
+
name: string;
|
|
2409
|
+
} | null | undefined;
|
|
2410
|
+
assignment?: {
|
|
2411
|
+
agentId: string | null;
|
|
2412
|
+
} | null | undefined;
|
|
2413
|
+
lead?: {
|
|
2414
|
+
phoneNumber: string;
|
|
2415
|
+
name: string;
|
|
2416
|
+
} | null | undefined;
|
|
2406
2417
|
agent?: {
|
|
2407
2418
|
id: string;
|
|
2408
2419
|
firstName: string;
|
|
@@ -2415,28 +2426,28 @@ export declare const callHistoryContract: {
|
|
|
2415
2426
|
}[];
|
|
2416
2427
|
deletedAt?: string | null | undefined;
|
|
2417
2428
|
} | null | undefined;
|
|
2418
|
-
lead?: {
|
|
2419
|
-
name: string;
|
|
2420
|
-
phoneNumber: string;
|
|
2421
|
-
} | null | undefined;
|
|
2422
|
-
company?: {
|
|
2423
|
-
id: string;
|
|
2424
|
-
name: string;
|
|
2425
|
-
} | null | undefined;
|
|
2426
|
-
assignment?: {
|
|
2427
|
-
agentId: string | null;
|
|
2428
|
-
} | null | undefined;
|
|
2429
2429
|
}, {
|
|
2430
2430
|
id: string;
|
|
2431
2431
|
createdAt: string | Date;
|
|
2432
2432
|
updatedAt: string | Date;
|
|
2433
2433
|
agentId: string;
|
|
2434
|
+
assignmentId: string;
|
|
2434
2435
|
rating: CallRating;
|
|
2435
|
-
notes: string | null;
|
|
2436
2436
|
callType: CallType;
|
|
2437
|
-
assignmentId: string;
|
|
2438
|
-
ratingWeight: number;
|
|
2439
2437
|
leadSource: LeadSource;
|
|
2438
|
+
ratingWeight: number;
|
|
2439
|
+
notes: string | null;
|
|
2440
|
+
company?: {
|
|
2441
|
+
id: string;
|
|
2442
|
+
name: string;
|
|
2443
|
+
} | null | undefined;
|
|
2444
|
+
assignment?: {
|
|
2445
|
+
agentId: string | null;
|
|
2446
|
+
} | null | undefined;
|
|
2447
|
+
lead?: {
|
|
2448
|
+
phoneNumber: string;
|
|
2449
|
+
name: string;
|
|
2450
|
+
} | null | undefined;
|
|
2440
2451
|
agent?: {
|
|
2441
2452
|
id: string;
|
|
2442
2453
|
firstName: string;
|
|
@@ -2449,17 +2460,6 @@ export declare const callHistoryContract: {
|
|
|
2449
2460
|
}[] | undefined;
|
|
2450
2461
|
deletedAt?: string | Date | null | undefined;
|
|
2451
2462
|
} | null | undefined;
|
|
2452
|
-
lead?: {
|
|
2453
|
-
name: string;
|
|
2454
|
-
phoneNumber: string;
|
|
2455
|
-
} | null | undefined;
|
|
2456
|
-
company?: {
|
|
2457
|
-
id: string;
|
|
2458
|
-
name: string;
|
|
2459
|
-
} | null | undefined;
|
|
2460
|
-
assignment?: {
|
|
2461
|
-
agentId: string | null;
|
|
2462
|
-
} | null | undefined;
|
|
2463
2463
|
}>, "many">;
|
|
2464
2464
|
totalCount: z.ZodNumber;
|
|
2465
2465
|
limit: z.ZodNumber;
|
|
@@ -2473,12 +2473,23 @@ export declare const callHistoryContract: {
|
|
|
2473
2473
|
createdAt: string;
|
|
2474
2474
|
updatedAt: string;
|
|
2475
2475
|
agentId: string;
|
|
2476
|
+
assignmentId: string;
|
|
2476
2477
|
rating: CallRating;
|
|
2477
|
-
notes: string | null;
|
|
2478
2478
|
callType: CallType;
|
|
2479
|
-
assignmentId: string;
|
|
2480
|
-
ratingWeight: number;
|
|
2481
2479
|
leadSource: LeadSource;
|
|
2480
|
+
ratingWeight: number;
|
|
2481
|
+
notes: string | null;
|
|
2482
|
+
company?: {
|
|
2483
|
+
id: string;
|
|
2484
|
+
name: string;
|
|
2485
|
+
} | null | undefined;
|
|
2486
|
+
assignment?: {
|
|
2487
|
+
agentId: string | null;
|
|
2488
|
+
} | null | undefined;
|
|
2489
|
+
lead?: {
|
|
2490
|
+
phoneNumber: string;
|
|
2491
|
+
name: string;
|
|
2492
|
+
} | null | undefined;
|
|
2482
2493
|
agent?: {
|
|
2483
2494
|
id: string;
|
|
2484
2495
|
firstName: string;
|
|
@@ -2491,17 +2502,6 @@ export declare const callHistoryContract: {
|
|
|
2491
2502
|
}[];
|
|
2492
2503
|
deletedAt?: string | null | undefined;
|
|
2493
2504
|
} | null | undefined;
|
|
2494
|
-
lead?: {
|
|
2495
|
-
name: string;
|
|
2496
|
-
phoneNumber: string;
|
|
2497
|
-
} | null | undefined;
|
|
2498
|
-
company?: {
|
|
2499
|
-
id: string;
|
|
2500
|
-
name: string;
|
|
2501
|
-
} | null | undefined;
|
|
2502
|
-
assignment?: {
|
|
2503
|
-
agentId: string | null;
|
|
2504
|
-
} | null | undefined;
|
|
2505
2505
|
}[];
|
|
2506
2506
|
totalCount: number;
|
|
2507
2507
|
skip: number;
|
|
@@ -2514,12 +2514,23 @@ export declare const callHistoryContract: {
|
|
|
2514
2514
|
createdAt: string | Date;
|
|
2515
2515
|
updatedAt: string | Date;
|
|
2516
2516
|
agentId: string;
|
|
2517
|
+
assignmentId: string;
|
|
2517
2518
|
rating: CallRating;
|
|
2518
|
-
notes: string | null;
|
|
2519
2519
|
callType: CallType;
|
|
2520
|
-
assignmentId: string;
|
|
2521
|
-
ratingWeight: number;
|
|
2522
2520
|
leadSource: LeadSource;
|
|
2521
|
+
ratingWeight: number;
|
|
2522
|
+
notes: string | null;
|
|
2523
|
+
company?: {
|
|
2524
|
+
id: string;
|
|
2525
|
+
name: string;
|
|
2526
|
+
} | null | undefined;
|
|
2527
|
+
assignment?: {
|
|
2528
|
+
agentId: string | null;
|
|
2529
|
+
} | null | undefined;
|
|
2530
|
+
lead?: {
|
|
2531
|
+
phoneNumber: string;
|
|
2532
|
+
name: string;
|
|
2533
|
+
} | null | undefined;
|
|
2523
2534
|
agent?: {
|
|
2524
2535
|
id: string;
|
|
2525
2536
|
firstName: string;
|
|
@@ -2532,17 +2543,6 @@ export declare const callHistoryContract: {
|
|
|
2532
2543
|
}[] | undefined;
|
|
2533
2544
|
deletedAt?: string | Date | null | undefined;
|
|
2534
2545
|
} | null | undefined;
|
|
2535
|
-
lead?: {
|
|
2536
|
-
name: string;
|
|
2537
|
-
phoneNumber: string;
|
|
2538
|
-
} | null | undefined;
|
|
2539
|
-
company?: {
|
|
2540
|
-
id: string;
|
|
2541
|
-
name: string;
|
|
2542
|
-
} | null | undefined;
|
|
2543
|
-
assignment?: {
|
|
2544
|
-
agentId: string | null;
|
|
2545
|
-
} | null | undefined;
|
|
2546
2546
|
}[];
|
|
2547
2547
|
totalCount: number;
|
|
2548
2548
|
skip: number;
|
|
@@ -2575,17 +2575,17 @@ export declare const callHistoryContract: {
|
|
|
2575
2575
|
path: z.ZodString;
|
|
2576
2576
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2577
2577
|
}, "strip", z.ZodTypeAny, {
|
|
2578
|
+
message: string;
|
|
2578
2579
|
code: string;
|
|
2579
2580
|
path: string;
|
|
2580
|
-
message: string;
|
|
2581
2581
|
statusCode: number;
|
|
2582
2582
|
timestamp: string;
|
|
2583
2583
|
details?: unknown;
|
|
2584
2584
|
correlationId?: string | undefined;
|
|
2585
2585
|
}, {
|
|
2586
|
+
message: string;
|
|
2586
2587
|
code: string;
|
|
2587
2588
|
path: string;
|
|
2588
|
-
message: string;
|
|
2589
2589
|
statusCode: number;
|
|
2590
2590
|
timestamp: string;
|
|
2591
2591
|
details?: unknown;
|
|
@@ -2600,17 +2600,17 @@ export declare const callHistoryContract: {
|
|
|
2600
2600
|
path: z.ZodString;
|
|
2601
2601
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2602
2602
|
}, "strip", z.ZodTypeAny, {
|
|
2603
|
+
message: string;
|
|
2603
2604
|
code: string;
|
|
2604
2605
|
path: string;
|
|
2605
|
-
message: string;
|
|
2606
2606
|
statusCode: number;
|
|
2607
2607
|
timestamp: string;
|
|
2608
2608
|
details?: unknown;
|
|
2609
2609
|
correlationId?: string | undefined;
|
|
2610
2610
|
}, {
|
|
2611
|
+
message: string;
|
|
2611
2612
|
code: string;
|
|
2612
2613
|
path: string;
|
|
2613
|
-
message: string;
|
|
2614
2614
|
statusCode: number;
|
|
2615
2615
|
timestamp: string;
|
|
2616
2616
|
details?: unknown;
|
|
@@ -2625,17 +2625,17 @@ export declare const callHistoryContract: {
|
|
|
2625
2625
|
path: z.ZodString;
|
|
2626
2626
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2627
2627
|
}, "strip", z.ZodTypeAny, {
|
|
2628
|
+
message: string;
|
|
2628
2629
|
code: string;
|
|
2629
2630
|
path: string;
|
|
2630
|
-
message: string;
|
|
2631
2631
|
statusCode: number;
|
|
2632
2632
|
timestamp: string;
|
|
2633
2633
|
details?: unknown;
|
|
2634
2634
|
correlationId?: string | undefined;
|
|
2635
2635
|
}, {
|
|
2636
|
+
message: string;
|
|
2636
2637
|
code: string;
|
|
2637
2638
|
path: string;
|
|
2638
|
-
message: string;
|
|
2639
2639
|
statusCode: number;
|
|
2640
2640
|
timestamp: string;
|
|
2641
2641
|
details?: unknown;
|
|
@@ -2650,17 +2650,17 @@ export declare const callHistoryContract: {
|
|
|
2650
2650
|
path: z.ZodString;
|
|
2651
2651
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2652
2652
|
}, "strip", z.ZodTypeAny, {
|
|
2653
|
+
message: string;
|
|
2653
2654
|
code: string;
|
|
2654
2655
|
path: string;
|
|
2655
|
-
message: string;
|
|
2656
2656
|
statusCode: number;
|
|
2657
2657
|
timestamp: string;
|
|
2658
2658
|
details?: unknown;
|
|
2659
2659
|
correlationId?: string | undefined;
|
|
2660
2660
|
}, {
|
|
2661
|
+
message: string;
|
|
2661
2662
|
code: string;
|
|
2662
2663
|
path: string;
|
|
2663
|
-
message: string;
|
|
2664
2664
|
statusCode: number;
|
|
2665
2665
|
timestamp: string;
|
|
2666
2666
|
details?: unknown;
|
|
@@ -2678,11 +2678,11 @@ export declare const callHistoryContract: {
|
|
|
2678
2678
|
name: z.ZodString;
|
|
2679
2679
|
phoneNumber: z.ZodString;
|
|
2680
2680
|
}, "strip", z.ZodTypeAny, {
|
|
2681
|
-
name: string;
|
|
2682
2681
|
phoneNumber: string;
|
|
2683
|
-
}, {
|
|
2684
2682
|
name: string;
|
|
2683
|
+
}, {
|
|
2685
2684
|
phoneNumber: string;
|
|
2685
|
+
name: string;
|
|
2686
2686
|
}>>;
|
|
2687
2687
|
agentId: z.ZodNullable<z.ZodString>;
|
|
2688
2688
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -2706,7 +2706,7 @@ export declare const callHistoryContract: {
|
|
|
2706
2706
|
description?: string | null | undefined;
|
|
2707
2707
|
isPrimary?: boolean | undefined;
|
|
2708
2708
|
}>, "many">>>;
|
|
2709
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
2709
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
|
|
2710
2710
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2711
2711
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2712
2712
|
id: z.ZodString;
|
|
@@ -2765,16 +2765,13 @@ export declare const callHistoryContract: {
|
|
|
2765
2765
|
lastName: string;
|
|
2766
2766
|
email: string;
|
|
2767
2767
|
createdAt: string;
|
|
2768
|
-
updatedAt: string;
|
|
2769
2768
|
phoneNumbers: {
|
|
2770
2769
|
id: string;
|
|
2771
2770
|
phoneNumber: string;
|
|
2772
2771
|
isPrimary: boolean;
|
|
2773
2772
|
description?: string | null | undefined;
|
|
2774
2773
|
}[];
|
|
2775
|
-
|
|
2776
|
-
deletedAt?: string | null | undefined;
|
|
2777
|
-
officeId?: string | null | undefined;
|
|
2774
|
+
updatedAt: string;
|
|
2778
2775
|
office?: {
|
|
2779
2776
|
id: string;
|
|
2780
2777
|
name: string;
|
|
@@ -2784,11 +2781,14 @@ export declare const callHistoryContract: {
|
|
|
2784
2781
|
lastName: string;
|
|
2785
2782
|
}[] | undefined;
|
|
2786
2783
|
} | null | undefined;
|
|
2784
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2785
|
+
officeId?: string | null | undefined;
|
|
2787
2786
|
canImpersonateUsers?: {
|
|
2788
2787
|
id: string;
|
|
2789
2788
|
firstName: string;
|
|
2790
2789
|
lastName: string;
|
|
2791
2790
|
}[] | undefined;
|
|
2791
|
+
deletedAt?: string | null | undefined;
|
|
2792
2792
|
}, {
|
|
2793
2793
|
status: "ACTIVE" | "INACTIVE";
|
|
2794
2794
|
id: string;
|
|
@@ -2797,15 +2797,6 @@ export declare const callHistoryContract: {
|
|
|
2797
2797
|
email: string;
|
|
2798
2798
|
createdAt: string | Date;
|
|
2799
2799
|
updatedAt: string | Date;
|
|
2800
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2801
|
-
phoneNumbers?: {
|
|
2802
|
-
id: string;
|
|
2803
|
-
phoneNumber: string;
|
|
2804
|
-
description?: string | null | undefined;
|
|
2805
|
-
isPrimary?: boolean | undefined;
|
|
2806
|
-
}[] | undefined;
|
|
2807
|
-
deletedAt?: string | Date | null | undefined;
|
|
2808
|
-
officeId?: string | null | undefined;
|
|
2809
2800
|
office?: {
|
|
2810
2801
|
id: string;
|
|
2811
2802
|
name: string;
|
|
@@ -2815,11 +2806,20 @@ export declare const callHistoryContract: {
|
|
|
2815
2806
|
lastName: string;
|
|
2816
2807
|
}[] | undefined;
|
|
2817
2808
|
} | null | undefined;
|
|
2809
|
+
phoneNumbers?: {
|
|
2810
|
+
id: string;
|
|
2811
|
+
phoneNumber: string;
|
|
2812
|
+
description?: string | null | undefined;
|
|
2813
|
+
isPrimary?: boolean | undefined;
|
|
2814
|
+
}[] | undefined;
|
|
2815
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2816
|
+
officeId?: string | null | undefined;
|
|
2818
2817
|
canImpersonateUsers?: {
|
|
2819
2818
|
id: string;
|
|
2820
2819
|
firstName: string;
|
|
2821
2820
|
lastName: string;
|
|
2822
2821
|
}[] | undefined;
|
|
2822
|
+
deletedAt?: string | Date | null | undefined;
|
|
2823
2823
|
}>>;
|
|
2824
2824
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2825
2825
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -2848,11 +2848,21 @@ export declare const callHistoryContract: {
|
|
|
2848
2848
|
id: string;
|
|
2849
2849
|
createdAt: string;
|
|
2850
2850
|
updatedAt: string;
|
|
2851
|
+
companyId: string | null;
|
|
2851
2852
|
agentId: string | null;
|
|
2852
2853
|
leadId: string;
|
|
2853
2854
|
assignedAt: string;
|
|
2854
2855
|
assignedBy: string | null;
|
|
2855
|
-
|
|
2856
|
+
company?: {
|
|
2857
|
+
id: string;
|
|
2858
|
+
name: string;
|
|
2859
|
+
createdAt: string;
|
|
2860
|
+
updatedAt: string;
|
|
2861
|
+
} | null | undefined;
|
|
2862
|
+
lead?: {
|
|
2863
|
+
phoneNumber: string;
|
|
2864
|
+
name: string;
|
|
2865
|
+
} | undefined;
|
|
2856
2866
|
agent?: {
|
|
2857
2867
|
status: "ACTIVE" | "INACTIVE";
|
|
2858
2868
|
id: string;
|
|
@@ -2860,16 +2870,13 @@ export declare const callHistoryContract: {
|
|
|
2860
2870
|
lastName: string;
|
|
2861
2871
|
email: string;
|
|
2862
2872
|
createdAt: string;
|
|
2863
|
-
updatedAt: string;
|
|
2864
2873
|
phoneNumbers: {
|
|
2865
2874
|
id: string;
|
|
2866
2875
|
phoneNumber: string;
|
|
2867
2876
|
isPrimary: boolean;
|
|
2868
2877
|
description?: string | null | undefined;
|
|
2869
2878
|
}[];
|
|
2870
|
-
|
|
2871
|
-
deletedAt?: string | null | undefined;
|
|
2872
|
-
officeId?: string | null | undefined;
|
|
2879
|
+
updatedAt: string;
|
|
2873
2880
|
office?: {
|
|
2874
2881
|
id: string;
|
|
2875
2882
|
name: string;
|
|
@@ -2879,32 +2886,35 @@ export declare const callHistoryContract: {
|
|
|
2879
2886
|
lastName: string;
|
|
2880
2887
|
}[] | undefined;
|
|
2881
2888
|
} | null | undefined;
|
|
2889
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2890
|
+
officeId?: string | null | undefined;
|
|
2882
2891
|
canImpersonateUsers?: {
|
|
2883
2892
|
id: string;
|
|
2884
2893
|
firstName: string;
|
|
2885
2894
|
lastName: string;
|
|
2886
2895
|
}[] | undefined;
|
|
2896
|
+
deletedAt?: string | null | undefined;
|
|
2887
2897
|
} | undefined;
|
|
2888
|
-
lead?: {
|
|
2889
|
-
name: string;
|
|
2890
|
-
phoneNumber: string;
|
|
2891
|
-
} | undefined;
|
|
2892
|
-
company?: {
|
|
2893
|
-
id: string;
|
|
2894
|
-
name: string;
|
|
2895
|
-
createdAt: string;
|
|
2896
|
-
updatedAt: string;
|
|
2897
|
-
} | null | undefined;
|
|
2898
2898
|
}, {
|
|
2899
2899
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2900
2900
|
id: string;
|
|
2901
2901
|
createdAt: string | Date;
|
|
2902
2902
|
updatedAt: string | Date;
|
|
2903
|
+
companyId: string | null;
|
|
2903
2904
|
agentId: string | null;
|
|
2904
2905
|
leadId: string;
|
|
2905
2906
|
assignedAt: string | Date;
|
|
2906
2907
|
assignedBy: string | null;
|
|
2907
|
-
|
|
2908
|
+
company?: {
|
|
2909
|
+
id: string;
|
|
2910
|
+
name: string;
|
|
2911
|
+
createdAt: string | Date;
|
|
2912
|
+
updatedAt: string | Date;
|
|
2913
|
+
} | null | undefined;
|
|
2914
|
+
lead?: {
|
|
2915
|
+
phoneNumber: string;
|
|
2916
|
+
name: string;
|
|
2917
|
+
} | undefined;
|
|
2908
2918
|
agent?: {
|
|
2909
2919
|
status: "ACTIVE" | "INACTIVE";
|
|
2910
2920
|
id: string;
|
|
@@ -2913,15 +2923,6 @@ export declare const callHistoryContract: {
|
|
|
2913
2923
|
email: string;
|
|
2914
2924
|
createdAt: string | Date;
|
|
2915
2925
|
updatedAt: string | Date;
|
|
2916
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2917
|
-
phoneNumbers?: {
|
|
2918
|
-
id: string;
|
|
2919
|
-
phoneNumber: string;
|
|
2920
|
-
description?: string | null | undefined;
|
|
2921
|
-
isPrimary?: boolean | undefined;
|
|
2922
|
-
}[] | undefined;
|
|
2923
|
-
deletedAt?: string | Date | null | undefined;
|
|
2924
|
-
officeId?: string | null | undefined;
|
|
2925
2926
|
office?: {
|
|
2926
2927
|
id: string;
|
|
2927
2928
|
name: string;
|
|
@@ -2931,22 +2932,21 @@ export declare const callHistoryContract: {
|
|
|
2931
2932
|
lastName: string;
|
|
2932
2933
|
}[] | undefined;
|
|
2933
2934
|
} | null | undefined;
|
|
2935
|
+
phoneNumbers?: {
|
|
2936
|
+
id: string;
|
|
2937
|
+
phoneNumber: string;
|
|
2938
|
+
description?: string | null | undefined;
|
|
2939
|
+
isPrimary?: boolean | undefined;
|
|
2940
|
+
}[] | undefined;
|
|
2941
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2942
|
+
officeId?: string | null | undefined;
|
|
2934
2943
|
canImpersonateUsers?: {
|
|
2935
2944
|
id: string;
|
|
2936
2945
|
firstName: string;
|
|
2937
2946
|
lastName: string;
|
|
2938
2947
|
}[] | undefined;
|
|
2948
|
+
deletedAt?: string | Date | null | undefined;
|
|
2939
2949
|
} | undefined;
|
|
2940
|
-
lead?: {
|
|
2941
|
-
name: string;
|
|
2942
|
-
phoneNumber: string;
|
|
2943
|
-
} | undefined;
|
|
2944
|
-
company?: {
|
|
2945
|
-
id: string;
|
|
2946
|
-
name: string;
|
|
2947
|
-
createdAt: string | Date;
|
|
2948
|
-
updatedAt: string | Date;
|
|
2949
|
-
} | null | undefined;
|
|
2950
2950
|
}>>>;
|
|
2951
2951
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
2952
2952
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -2959,12 +2959,12 @@ export declare const callHistoryContract: {
|
|
|
2959
2959
|
id: string;
|
|
2960
2960
|
createdAt: string;
|
|
2961
2961
|
updatedAt: string;
|
|
2962
|
+
assignmentId: string;
|
|
2962
2963
|
rating: CallRating;
|
|
2963
|
-
notes: string | null;
|
|
2964
2964
|
callType: CallType;
|
|
2965
|
-
assignmentId: string;
|
|
2966
|
-
ratingWeight: number;
|
|
2967
2965
|
leadSource: LeadSource;
|
|
2966
|
+
ratingWeight: number;
|
|
2967
|
+
notes: string | null;
|
|
2968
2968
|
agentId?: string | undefined;
|
|
2969
2969
|
leadId?: string | undefined;
|
|
2970
2970
|
assignment?: {
|
|
@@ -2972,11 +2972,21 @@ export declare const callHistoryContract: {
|
|
|
2972
2972
|
id: string;
|
|
2973
2973
|
createdAt: string;
|
|
2974
2974
|
updatedAt: string;
|
|
2975
|
+
companyId: string | null;
|
|
2975
2976
|
agentId: string | null;
|
|
2976
2977
|
leadId: string;
|
|
2977
2978
|
assignedAt: string;
|
|
2978
2979
|
assignedBy: string | null;
|
|
2979
|
-
|
|
2980
|
+
company?: {
|
|
2981
|
+
id: string;
|
|
2982
|
+
name: string;
|
|
2983
|
+
createdAt: string;
|
|
2984
|
+
updatedAt: string;
|
|
2985
|
+
} | null | undefined;
|
|
2986
|
+
lead?: {
|
|
2987
|
+
phoneNumber: string;
|
|
2988
|
+
name: string;
|
|
2989
|
+
} | undefined;
|
|
2980
2990
|
agent?: {
|
|
2981
2991
|
status: "ACTIVE" | "INACTIVE";
|
|
2982
2992
|
id: string;
|
|
@@ -2984,16 +2994,13 @@ export declare const callHistoryContract: {
|
|
|
2984
2994
|
lastName: string;
|
|
2985
2995
|
email: string;
|
|
2986
2996
|
createdAt: string;
|
|
2987
|
-
updatedAt: string;
|
|
2988
2997
|
phoneNumbers: {
|
|
2989
2998
|
id: string;
|
|
2990
2999
|
phoneNumber: string;
|
|
2991
3000
|
isPrimary: boolean;
|
|
2992
3001
|
description?: string | null | undefined;
|
|
2993
3002
|
}[];
|
|
2994
|
-
|
|
2995
|
-
deletedAt?: string | null | undefined;
|
|
2996
|
-
officeId?: string | null | undefined;
|
|
3003
|
+
updatedAt: string;
|
|
2997
3004
|
office?: {
|
|
2998
3005
|
id: string;
|
|
2999
3006
|
name: string;
|
|
@@ -3003,33 +3010,26 @@ export declare const callHistoryContract: {
|
|
|
3003
3010
|
lastName: string;
|
|
3004
3011
|
}[] | undefined;
|
|
3005
3012
|
} | null | undefined;
|
|
3013
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3014
|
+
officeId?: string | null | undefined;
|
|
3006
3015
|
canImpersonateUsers?: {
|
|
3007
3016
|
id: string;
|
|
3008
3017
|
firstName: string;
|
|
3009
3018
|
lastName: string;
|
|
3010
3019
|
}[] | undefined;
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
name: string;
|
|
3014
|
-
phoneNumber: string;
|
|
3015
|
-
} | undefined;
|
|
3016
|
-
company?: {
|
|
3017
|
-
id: string;
|
|
3018
|
-
name: string;
|
|
3019
|
-
createdAt: string;
|
|
3020
|
-
updatedAt: string;
|
|
3021
|
-
} | null | undefined;
|
|
3020
|
+
deletedAt?: string | null | undefined;
|
|
3021
|
+
} | undefined;
|
|
3022
3022
|
} | null | undefined;
|
|
3023
3023
|
}, {
|
|
3024
3024
|
id: string;
|
|
3025
3025
|
createdAt: string | Date;
|
|
3026
3026
|
updatedAt: string | Date;
|
|
3027
|
+
assignmentId: string;
|
|
3027
3028
|
rating: CallRating;
|
|
3028
|
-
notes: string | null;
|
|
3029
3029
|
callType: CallType;
|
|
3030
|
-
assignmentId: string;
|
|
3031
|
-
ratingWeight: number;
|
|
3032
3030
|
leadSource: LeadSource;
|
|
3031
|
+
ratingWeight: number;
|
|
3032
|
+
notes: string | null;
|
|
3033
3033
|
agentId?: string | undefined;
|
|
3034
3034
|
leadId?: string | undefined;
|
|
3035
3035
|
assignment?: {
|
|
@@ -3037,11 +3037,21 @@ export declare const callHistoryContract: {
|
|
|
3037
3037
|
id: string;
|
|
3038
3038
|
createdAt: string | Date;
|
|
3039
3039
|
updatedAt: string | Date;
|
|
3040
|
+
companyId: string | null;
|
|
3040
3041
|
agentId: string | null;
|
|
3041
3042
|
leadId: string;
|
|
3042
3043
|
assignedAt: string | Date;
|
|
3043
3044
|
assignedBy: string | null;
|
|
3044
|
-
|
|
3045
|
+
company?: {
|
|
3046
|
+
id: string;
|
|
3047
|
+
name: string;
|
|
3048
|
+
createdAt: string | Date;
|
|
3049
|
+
updatedAt: string | Date;
|
|
3050
|
+
} | null | undefined;
|
|
3051
|
+
lead?: {
|
|
3052
|
+
phoneNumber: string;
|
|
3053
|
+
name: string;
|
|
3054
|
+
} | undefined;
|
|
3045
3055
|
agent?: {
|
|
3046
3056
|
status: "ACTIVE" | "INACTIVE";
|
|
3047
3057
|
id: string;
|
|
@@ -3050,15 +3060,6 @@ export declare const callHistoryContract: {
|
|
|
3050
3060
|
email: string;
|
|
3051
3061
|
createdAt: string | Date;
|
|
3052
3062
|
updatedAt: string | Date;
|
|
3053
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3054
|
-
phoneNumbers?: {
|
|
3055
|
-
id: string;
|
|
3056
|
-
phoneNumber: string;
|
|
3057
|
-
description?: string | null | undefined;
|
|
3058
|
-
isPrimary?: boolean | undefined;
|
|
3059
|
-
}[] | undefined;
|
|
3060
|
-
deletedAt?: string | Date | null | undefined;
|
|
3061
|
-
officeId?: string | null | undefined;
|
|
3062
3063
|
office?: {
|
|
3063
3064
|
id: string;
|
|
3064
3065
|
name: string;
|
|
@@ -3068,22 +3069,21 @@ export declare const callHistoryContract: {
|
|
|
3068
3069
|
lastName: string;
|
|
3069
3070
|
}[] | undefined;
|
|
3070
3071
|
} | null | undefined;
|
|
3072
|
+
phoneNumbers?: {
|
|
3073
|
+
id: string;
|
|
3074
|
+
phoneNumber: string;
|
|
3075
|
+
description?: string | null | undefined;
|
|
3076
|
+
isPrimary?: boolean | undefined;
|
|
3077
|
+
}[] | undefined;
|
|
3078
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3079
|
+
officeId?: string | null | undefined;
|
|
3071
3080
|
canImpersonateUsers?: {
|
|
3072
3081
|
id: string;
|
|
3073
3082
|
firstName: string;
|
|
3074
3083
|
lastName: string;
|
|
3075
3084
|
}[] | undefined;
|
|
3085
|
+
deletedAt?: string | Date | null | undefined;
|
|
3076
3086
|
} | undefined;
|
|
3077
|
-
lead?: {
|
|
3078
|
-
name: string;
|
|
3079
|
-
phoneNumber: string;
|
|
3080
|
-
} | undefined;
|
|
3081
|
-
company?: {
|
|
3082
|
-
id: string;
|
|
3083
|
-
name: string;
|
|
3084
|
-
createdAt: string | Date;
|
|
3085
|
-
updatedAt: string | Date;
|
|
3086
|
-
} | null | undefined;
|
|
3087
3087
|
} | null | undefined;
|
|
3088
3088
|
}>;
|
|
3089
3089
|
404: z.ZodObject<{
|
|
@@ -3095,17 +3095,17 @@ export declare const callHistoryContract: {
|
|
|
3095
3095
|
path: z.ZodString;
|
|
3096
3096
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3097
3097
|
}, "strip", z.ZodTypeAny, {
|
|
3098
|
+
message: string;
|
|
3098
3099
|
code: string;
|
|
3099
3100
|
path: string;
|
|
3100
|
-
message: string;
|
|
3101
3101
|
statusCode: number;
|
|
3102
3102
|
timestamp: string;
|
|
3103
3103
|
details?: unknown;
|
|
3104
3104
|
correlationId?: string | undefined;
|
|
3105
3105
|
}, {
|
|
3106
|
+
message: string;
|
|
3106
3107
|
code: string;
|
|
3107
3108
|
path: string;
|
|
3108
|
-
message: string;
|
|
3109
3109
|
statusCode: number;
|
|
3110
3110
|
timestamp: string;
|
|
3111
3111
|
details?: unknown;
|
|
@@ -3147,17 +3147,17 @@ export declare const callHistoryContract: {
|
|
|
3147
3147
|
path: z.ZodString;
|
|
3148
3148
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3149
3149
|
}, "strip", z.ZodTypeAny, {
|
|
3150
|
+
message: string;
|
|
3150
3151
|
code: string;
|
|
3151
3152
|
path: string;
|
|
3152
|
-
message: string;
|
|
3153
3153
|
statusCode: number;
|
|
3154
3154
|
timestamp: string;
|
|
3155
3155
|
details?: unknown;
|
|
3156
3156
|
correlationId?: string | undefined;
|
|
3157
3157
|
}, {
|
|
3158
|
+
message: string;
|
|
3158
3159
|
code: string;
|
|
3159
3160
|
path: string;
|
|
3160
|
-
message: string;
|
|
3161
3161
|
statusCode: number;
|
|
3162
3162
|
timestamp: string;
|
|
3163
3163
|
details?: unknown;
|
|
@@ -3172,17 +3172,17 @@ export declare const callHistoryContract: {
|
|
|
3172
3172
|
path: z.ZodString;
|
|
3173
3173
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3174
3174
|
}, "strip", z.ZodTypeAny, {
|
|
3175
|
+
message: string;
|
|
3175
3176
|
code: string;
|
|
3176
3177
|
path: string;
|
|
3177
|
-
message: string;
|
|
3178
3178
|
statusCode: number;
|
|
3179
3179
|
timestamp: string;
|
|
3180
3180
|
details?: unknown;
|
|
3181
3181
|
correlationId?: string | undefined;
|
|
3182
3182
|
}, {
|
|
3183
|
+
message: string;
|
|
3183
3184
|
code: string;
|
|
3184
3185
|
path: string;
|
|
3185
|
-
message: string;
|
|
3186
3186
|
statusCode: number;
|
|
3187
3187
|
timestamp: string;
|
|
3188
3188
|
details?: unknown;
|
|
@@ -3197,17 +3197,17 @@ export declare const callHistoryContract: {
|
|
|
3197
3197
|
path: z.ZodString;
|
|
3198
3198
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3199
3199
|
}, "strip", z.ZodTypeAny, {
|
|
3200
|
+
message: string;
|
|
3200
3201
|
code: string;
|
|
3201
3202
|
path: string;
|
|
3202
|
-
message: string;
|
|
3203
3203
|
statusCode: number;
|
|
3204
3204
|
timestamp: string;
|
|
3205
3205
|
details?: unknown;
|
|
3206
3206
|
correlationId?: string | undefined;
|
|
3207
3207
|
}, {
|
|
3208
|
+
message: string;
|
|
3208
3209
|
code: string;
|
|
3209
3210
|
path: string;
|
|
3210
|
-
message: string;
|
|
3211
3211
|
statusCode: number;
|
|
3212
3212
|
timestamp: string;
|
|
3213
3213
|
details?: unknown;
|
|
@@ -3222,17 +3222,17 @@ export declare const callHistoryContract: {
|
|
|
3222
3222
|
path: z.ZodString;
|
|
3223
3223
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3224
3224
|
}, "strip", z.ZodTypeAny, {
|
|
3225
|
+
message: string;
|
|
3225
3226
|
code: string;
|
|
3226
3227
|
path: string;
|
|
3227
|
-
message: string;
|
|
3228
3228
|
statusCode: number;
|
|
3229
3229
|
timestamp: string;
|
|
3230
3230
|
details?: unknown;
|
|
3231
3231
|
correlationId?: string | undefined;
|
|
3232
3232
|
}, {
|
|
3233
|
+
message: string;
|
|
3233
3234
|
code: string;
|
|
3234
3235
|
path: string;
|
|
3235
|
-
message: string;
|
|
3236
3236
|
statusCode: number;
|
|
3237
3237
|
timestamp: string;
|
|
3238
3238
|
details?: unknown;
|
|
@@ -3250,11 +3250,11 @@ export declare const callHistoryContract: {
|
|
|
3250
3250
|
name: z.ZodString;
|
|
3251
3251
|
phoneNumber: z.ZodString;
|
|
3252
3252
|
}, "strip", z.ZodTypeAny, {
|
|
3253
|
-
name: string;
|
|
3254
3253
|
phoneNumber: string;
|
|
3255
|
-
}, {
|
|
3256
3254
|
name: string;
|
|
3255
|
+
}, {
|
|
3257
3256
|
phoneNumber: string;
|
|
3257
|
+
name: string;
|
|
3258
3258
|
}>>;
|
|
3259
3259
|
agentId: z.ZodNullable<z.ZodString>;
|
|
3260
3260
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -3278,7 +3278,7 @@ export declare const callHistoryContract: {
|
|
|
3278
3278
|
description?: string | null | undefined;
|
|
3279
3279
|
isPrimary?: boolean | undefined;
|
|
3280
3280
|
}>, "many">>>;
|
|
3281
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
3281
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
|
|
3282
3282
|
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3283
3283
|
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3284
3284
|
id: z.ZodString;
|
|
@@ -3337,16 +3337,13 @@ export declare const callHistoryContract: {
|
|
|
3337
3337
|
lastName: string;
|
|
3338
3338
|
email: string;
|
|
3339
3339
|
createdAt: string;
|
|
3340
|
-
updatedAt: string;
|
|
3341
3340
|
phoneNumbers: {
|
|
3342
3341
|
id: string;
|
|
3343
3342
|
phoneNumber: string;
|
|
3344
3343
|
isPrimary: boolean;
|
|
3345
3344
|
description?: string | null | undefined;
|
|
3346
3345
|
}[];
|
|
3347
|
-
|
|
3348
|
-
deletedAt?: string | null | undefined;
|
|
3349
|
-
officeId?: string | null | undefined;
|
|
3346
|
+
updatedAt: string;
|
|
3350
3347
|
office?: {
|
|
3351
3348
|
id: string;
|
|
3352
3349
|
name: string;
|
|
@@ -3356,11 +3353,14 @@ export declare const callHistoryContract: {
|
|
|
3356
3353
|
lastName: string;
|
|
3357
3354
|
}[] | undefined;
|
|
3358
3355
|
} | null | undefined;
|
|
3356
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3357
|
+
officeId?: string | null | undefined;
|
|
3359
3358
|
canImpersonateUsers?: {
|
|
3360
3359
|
id: string;
|
|
3361
3360
|
firstName: string;
|
|
3362
3361
|
lastName: string;
|
|
3363
3362
|
}[] | undefined;
|
|
3363
|
+
deletedAt?: string | null | undefined;
|
|
3364
3364
|
}, {
|
|
3365
3365
|
status: "ACTIVE" | "INACTIVE";
|
|
3366
3366
|
id: string;
|
|
@@ -3369,15 +3369,6 @@ export declare const callHistoryContract: {
|
|
|
3369
3369
|
email: string;
|
|
3370
3370
|
createdAt: string | Date;
|
|
3371
3371
|
updatedAt: string | Date;
|
|
3372
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3373
|
-
phoneNumbers?: {
|
|
3374
|
-
id: string;
|
|
3375
|
-
phoneNumber: string;
|
|
3376
|
-
description?: string | null | undefined;
|
|
3377
|
-
isPrimary?: boolean | undefined;
|
|
3378
|
-
}[] | undefined;
|
|
3379
|
-
deletedAt?: string | Date | null | undefined;
|
|
3380
|
-
officeId?: string | null | undefined;
|
|
3381
3372
|
office?: {
|
|
3382
3373
|
id: string;
|
|
3383
3374
|
name: string;
|
|
@@ -3387,11 +3378,20 @@ export declare const callHistoryContract: {
|
|
|
3387
3378
|
lastName: string;
|
|
3388
3379
|
}[] | undefined;
|
|
3389
3380
|
} | null | undefined;
|
|
3381
|
+
phoneNumbers?: {
|
|
3382
|
+
id: string;
|
|
3383
|
+
phoneNumber: string;
|
|
3384
|
+
description?: string | null | undefined;
|
|
3385
|
+
isPrimary?: boolean | undefined;
|
|
3386
|
+
}[] | undefined;
|
|
3387
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3388
|
+
officeId?: string | null | undefined;
|
|
3390
3389
|
canImpersonateUsers?: {
|
|
3391
3390
|
id: string;
|
|
3392
3391
|
firstName: string;
|
|
3393
3392
|
lastName: string;
|
|
3394
3393
|
}[] | undefined;
|
|
3394
|
+
deletedAt?: string | Date | null | undefined;
|
|
3395
3395
|
}>>;
|
|
3396
3396
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3397
3397
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -3420,11 +3420,21 @@ export declare const callHistoryContract: {
|
|
|
3420
3420
|
id: string;
|
|
3421
3421
|
createdAt: string;
|
|
3422
3422
|
updatedAt: string;
|
|
3423
|
+
companyId: string | null;
|
|
3423
3424
|
agentId: string | null;
|
|
3424
3425
|
leadId: string;
|
|
3425
3426
|
assignedAt: string;
|
|
3426
3427
|
assignedBy: string | null;
|
|
3427
|
-
|
|
3428
|
+
company?: {
|
|
3429
|
+
id: string;
|
|
3430
|
+
name: string;
|
|
3431
|
+
createdAt: string;
|
|
3432
|
+
updatedAt: string;
|
|
3433
|
+
} | null | undefined;
|
|
3434
|
+
lead?: {
|
|
3435
|
+
phoneNumber: string;
|
|
3436
|
+
name: string;
|
|
3437
|
+
} | undefined;
|
|
3428
3438
|
agent?: {
|
|
3429
3439
|
status: "ACTIVE" | "INACTIVE";
|
|
3430
3440
|
id: string;
|
|
@@ -3432,16 +3442,13 @@ export declare const callHistoryContract: {
|
|
|
3432
3442
|
lastName: string;
|
|
3433
3443
|
email: string;
|
|
3434
3444
|
createdAt: string;
|
|
3435
|
-
updatedAt: string;
|
|
3436
3445
|
phoneNumbers: {
|
|
3437
3446
|
id: string;
|
|
3438
3447
|
phoneNumber: string;
|
|
3439
3448
|
isPrimary: boolean;
|
|
3440
3449
|
description?: string | null | undefined;
|
|
3441
3450
|
}[];
|
|
3442
|
-
|
|
3443
|
-
deletedAt?: string | null | undefined;
|
|
3444
|
-
officeId?: string | null | undefined;
|
|
3451
|
+
updatedAt: string;
|
|
3445
3452
|
office?: {
|
|
3446
3453
|
id: string;
|
|
3447
3454
|
name: string;
|
|
@@ -3451,32 +3458,35 @@ export declare const callHistoryContract: {
|
|
|
3451
3458
|
lastName: string;
|
|
3452
3459
|
}[] | undefined;
|
|
3453
3460
|
} | null | undefined;
|
|
3461
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3462
|
+
officeId?: string | null | undefined;
|
|
3454
3463
|
canImpersonateUsers?: {
|
|
3455
3464
|
id: string;
|
|
3456
3465
|
firstName: string;
|
|
3457
3466
|
lastName: string;
|
|
3458
3467
|
}[] | undefined;
|
|
3468
|
+
deletedAt?: string | null | undefined;
|
|
3459
3469
|
} | undefined;
|
|
3460
|
-
lead?: {
|
|
3461
|
-
name: string;
|
|
3462
|
-
phoneNumber: string;
|
|
3463
|
-
} | undefined;
|
|
3464
|
-
company?: {
|
|
3465
|
-
id: string;
|
|
3466
|
-
name: string;
|
|
3467
|
-
createdAt: string;
|
|
3468
|
-
updatedAt: string;
|
|
3469
|
-
} | null | undefined;
|
|
3470
3470
|
}, {
|
|
3471
3471
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3472
3472
|
id: string;
|
|
3473
3473
|
createdAt: string | Date;
|
|
3474
3474
|
updatedAt: string | Date;
|
|
3475
|
+
companyId: string | null;
|
|
3475
3476
|
agentId: string | null;
|
|
3476
3477
|
leadId: string;
|
|
3477
3478
|
assignedAt: string | Date;
|
|
3478
3479
|
assignedBy: string | null;
|
|
3479
|
-
|
|
3480
|
+
company?: {
|
|
3481
|
+
id: string;
|
|
3482
|
+
name: string;
|
|
3483
|
+
createdAt: string | Date;
|
|
3484
|
+
updatedAt: string | Date;
|
|
3485
|
+
} | null | undefined;
|
|
3486
|
+
lead?: {
|
|
3487
|
+
phoneNumber: string;
|
|
3488
|
+
name: string;
|
|
3489
|
+
} | undefined;
|
|
3480
3490
|
agent?: {
|
|
3481
3491
|
status: "ACTIVE" | "INACTIVE";
|
|
3482
3492
|
id: string;
|
|
@@ -3485,15 +3495,6 @@ export declare const callHistoryContract: {
|
|
|
3485
3495
|
email: string;
|
|
3486
3496
|
createdAt: string | Date;
|
|
3487
3497
|
updatedAt: string | Date;
|
|
3488
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3489
|
-
phoneNumbers?: {
|
|
3490
|
-
id: string;
|
|
3491
|
-
phoneNumber: string;
|
|
3492
|
-
description?: string | null | undefined;
|
|
3493
|
-
isPrimary?: boolean | undefined;
|
|
3494
|
-
}[] | undefined;
|
|
3495
|
-
deletedAt?: string | Date | null | undefined;
|
|
3496
|
-
officeId?: string | null | undefined;
|
|
3497
3498
|
office?: {
|
|
3498
3499
|
id: string;
|
|
3499
3500
|
name: string;
|
|
@@ -3503,22 +3504,21 @@ export declare const callHistoryContract: {
|
|
|
3503
3504
|
lastName: string;
|
|
3504
3505
|
}[] | undefined;
|
|
3505
3506
|
} | null | undefined;
|
|
3507
|
+
phoneNumbers?: {
|
|
3508
|
+
id: string;
|
|
3509
|
+
phoneNumber: string;
|
|
3510
|
+
description?: string | null | undefined;
|
|
3511
|
+
isPrimary?: boolean | undefined;
|
|
3512
|
+
}[] | undefined;
|
|
3513
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3514
|
+
officeId?: string | null | undefined;
|
|
3506
3515
|
canImpersonateUsers?: {
|
|
3507
3516
|
id: string;
|
|
3508
3517
|
firstName: string;
|
|
3509
3518
|
lastName: string;
|
|
3510
3519
|
}[] | undefined;
|
|
3520
|
+
deletedAt?: string | Date | null | undefined;
|
|
3511
3521
|
} | undefined;
|
|
3512
|
-
lead?: {
|
|
3513
|
-
name: string;
|
|
3514
|
-
phoneNumber: string;
|
|
3515
|
-
} | undefined;
|
|
3516
|
-
company?: {
|
|
3517
|
-
id: string;
|
|
3518
|
-
name: string;
|
|
3519
|
-
createdAt: string | Date;
|
|
3520
|
-
updatedAt: string | Date;
|
|
3521
|
-
} | null | undefined;
|
|
3522
3522
|
}>>>;
|
|
3523
3523
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
3524
3524
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
@@ -3531,12 +3531,12 @@ export declare const callHistoryContract: {
|
|
|
3531
3531
|
id: string;
|
|
3532
3532
|
createdAt: string;
|
|
3533
3533
|
updatedAt: string;
|
|
3534
|
+
assignmentId: string;
|
|
3534
3535
|
rating: CallRating;
|
|
3535
|
-
notes: string | null;
|
|
3536
3536
|
callType: CallType;
|
|
3537
|
-
assignmentId: string;
|
|
3538
|
-
ratingWeight: number;
|
|
3539
3537
|
leadSource: LeadSource;
|
|
3538
|
+
ratingWeight: number;
|
|
3539
|
+
notes: string | null;
|
|
3540
3540
|
agentId?: string | undefined;
|
|
3541
3541
|
leadId?: string | undefined;
|
|
3542
3542
|
assignment?: {
|
|
@@ -3544,11 +3544,21 @@ export declare const callHistoryContract: {
|
|
|
3544
3544
|
id: string;
|
|
3545
3545
|
createdAt: string;
|
|
3546
3546
|
updatedAt: string;
|
|
3547
|
+
companyId: string | null;
|
|
3547
3548
|
agentId: string | null;
|
|
3548
3549
|
leadId: string;
|
|
3549
3550
|
assignedAt: string;
|
|
3550
3551
|
assignedBy: string | null;
|
|
3551
|
-
|
|
3552
|
+
company?: {
|
|
3553
|
+
id: string;
|
|
3554
|
+
name: string;
|
|
3555
|
+
createdAt: string;
|
|
3556
|
+
updatedAt: string;
|
|
3557
|
+
} | null | undefined;
|
|
3558
|
+
lead?: {
|
|
3559
|
+
phoneNumber: string;
|
|
3560
|
+
name: string;
|
|
3561
|
+
} | undefined;
|
|
3552
3562
|
agent?: {
|
|
3553
3563
|
status: "ACTIVE" | "INACTIVE";
|
|
3554
3564
|
id: string;
|
|
@@ -3556,16 +3566,13 @@ export declare const callHistoryContract: {
|
|
|
3556
3566
|
lastName: string;
|
|
3557
3567
|
email: string;
|
|
3558
3568
|
createdAt: string;
|
|
3559
|
-
updatedAt: string;
|
|
3560
3569
|
phoneNumbers: {
|
|
3561
3570
|
id: string;
|
|
3562
3571
|
phoneNumber: string;
|
|
3563
3572
|
isPrimary: boolean;
|
|
3564
3573
|
description?: string | null | undefined;
|
|
3565
3574
|
}[];
|
|
3566
|
-
|
|
3567
|
-
deletedAt?: string | null | undefined;
|
|
3568
|
-
officeId?: string | null | undefined;
|
|
3575
|
+
updatedAt: string;
|
|
3569
3576
|
office?: {
|
|
3570
3577
|
id: string;
|
|
3571
3578
|
name: string;
|
|
@@ -3575,33 +3582,26 @@ export declare const callHistoryContract: {
|
|
|
3575
3582
|
lastName: string;
|
|
3576
3583
|
}[] | undefined;
|
|
3577
3584
|
} | null | undefined;
|
|
3585
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3586
|
+
officeId?: string | null | undefined;
|
|
3578
3587
|
canImpersonateUsers?: {
|
|
3579
3588
|
id: string;
|
|
3580
3589
|
firstName: string;
|
|
3581
3590
|
lastName: string;
|
|
3582
3591
|
}[] | undefined;
|
|
3592
|
+
deletedAt?: string | null | undefined;
|
|
3583
3593
|
} | undefined;
|
|
3584
|
-
lead?: {
|
|
3585
|
-
name: string;
|
|
3586
|
-
phoneNumber: string;
|
|
3587
|
-
} | undefined;
|
|
3588
|
-
company?: {
|
|
3589
|
-
id: string;
|
|
3590
|
-
name: string;
|
|
3591
|
-
createdAt: string;
|
|
3592
|
-
updatedAt: string;
|
|
3593
|
-
} | null | undefined;
|
|
3594
3594
|
} | null | undefined;
|
|
3595
3595
|
}, {
|
|
3596
3596
|
id: string;
|
|
3597
3597
|
createdAt: string | Date;
|
|
3598
3598
|
updatedAt: string | Date;
|
|
3599
|
+
assignmentId: string;
|
|
3599
3600
|
rating: CallRating;
|
|
3600
|
-
notes: string | null;
|
|
3601
3601
|
callType: CallType;
|
|
3602
|
-
assignmentId: string;
|
|
3603
|
-
ratingWeight: number;
|
|
3604
3602
|
leadSource: LeadSource;
|
|
3603
|
+
ratingWeight: number;
|
|
3604
|
+
notes: string | null;
|
|
3605
3605
|
agentId?: string | undefined;
|
|
3606
3606
|
leadId?: string | undefined;
|
|
3607
3607
|
assignment?: {
|
|
@@ -3609,11 +3609,21 @@ export declare const callHistoryContract: {
|
|
|
3609
3609
|
id: string;
|
|
3610
3610
|
createdAt: string | Date;
|
|
3611
3611
|
updatedAt: string | Date;
|
|
3612
|
+
companyId: string | null;
|
|
3612
3613
|
agentId: string | null;
|
|
3613
3614
|
leadId: string;
|
|
3614
3615
|
assignedAt: string | Date;
|
|
3615
3616
|
assignedBy: string | null;
|
|
3616
|
-
|
|
3617
|
+
company?: {
|
|
3618
|
+
id: string;
|
|
3619
|
+
name: string;
|
|
3620
|
+
createdAt: string | Date;
|
|
3621
|
+
updatedAt: string | Date;
|
|
3622
|
+
} | null | undefined;
|
|
3623
|
+
lead?: {
|
|
3624
|
+
phoneNumber: string;
|
|
3625
|
+
name: string;
|
|
3626
|
+
} | undefined;
|
|
3617
3627
|
agent?: {
|
|
3618
3628
|
status: "ACTIVE" | "INACTIVE";
|
|
3619
3629
|
id: string;
|
|
@@ -3622,15 +3632,6 @@ export declare const callHistoryContract: {
|
|
|
3622
3632
|
email: string;
|
|
3623
3633
|
createdAt: string | Date;
|
|
3624
3634
|
updatedAt: string | Date;
|
|
3625
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
3626
|
-
phoneNumbers?: {
|
|
3627
|
-
id: string;
|
|
3628
|
-
phoneNumber: string;
|
|
3629
|
-
description?: string | null | undefined;
|
|
3630
|
-
isPrimary?: boolean | undefined;
|
|
3631
|
-
}[] | undefined;
|
|
3632
|
-
deletedAt?: string | Date | null | undefined;
|
|
3633
|
-
officeId?: string | null | undefined;
|
|
3634
3635
|
office?: {
|
|
3635
3636
|
id: string;
|
|
3636
3637
|
name: string;
|
|
@@ -3640,22 +3641,21 @@ export declare const callHistoryContract: {
|
|
|
3640
3641
|
lastName: string;
|
|
3641
3642
|
}[] | undefined;
|
|
3642
3643
|
} | null | undefined;
|
|
3644
|
+
phoneNumbers?: {
|
|
3645
|
+
id: string;
|
|
3646
|
+
phoneNumber: string;
|
|
3647
|
+
description?: string | null | undefined;
|
|
3648
|
+
isPrimary?: boolean | undefined;
|
|
3649
|
+
}[] | undefined;
|
|
3650
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3651
|
+
officeId?: string | null | undefined;
|
|
3643
3652
|
canImpersonateUsers?: {
|
|
3644
3653
|
id: string;
|
|
3645
3654
|
firstName: string;
|
|
3646
3655
|
lastName: string;
|
|
3647
3656
|
}[] | undefined;
|
|
3657
|
+
deletedAt?: string | Date | null | undefined;
|
|
3648
3658
|
} | undefined;
|
|
3649
|
-
lead?: {
|
|
3650
|
-
name: string;
|
|
3651
|
-
phoneNumber: string;
|
|
3652
|
-
} | undefined;
|
|
3653
|
-
company?: {
|
|
3654
|
-
id: string;
|
|
3655
|
-
name: string;
|
|
3656
|
-
createdAt: string | Date;
|
|
3657
|
-
updatedAt: string | Date;
|
|
3658
|
-
} | null | undefined;
|
|
3659
3659
|
} | null | undefined;
|
|
3660
3660
|
}>;
|
|
3661
3661
|
404: z.ZodObject<{
|
|
@@ -3667,17 +3667,17 @@ export declare const callHistoryContract: {
|
|
|
3667
3667
|
path: z.ZodString;
|
|
3668
3668
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3669
3669
|
}, "strip", z.ZodTypeAny, {
|
|
3670
|
+
message: string;
|
|
3670
3671
|
code: string;
|
|
3671
3672
|
path: string;
|
|
3672
|
-
message: string;
|
|
3673
3673
|
statusCode: number;
|
|
3674
3674
|
timestamp: string;
|
|
3675
3675
|
details?: unknown;
|
|
3676
3676
|
correlationId?: string | undefined;
|
|
3677
3677
|
}, {
|
|
3678
|
+
message: string;
|
|
3678
3679
|
code: string;
|
|
3679
3680
|
path: string;
|
|
3680
|
-
message: string;
|
|
3681
3681
|
statusCode: number;
|
|
3682
3682
|
timestamp: string;
|
|
3683
3683
|
details?: unknown;
|
|
@@ -3702,17 +3702,17 @@ export declare const callHistoryContract: {
|
|
|
3702
3702
|
path: z.ZodString;
|
|
3703
3703
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3704
3704
|
}, "strip", z.ZodTypeAny, {
|
|
3705
|
+
message: string;
|
|
3705
3706
|
code: string;
|
|
3706
3707
|
path: string;
|
|
3707
|
-
message: string;
|
|
3708
3708
|
statusCode: number;
|
|
3709
3709
|
timestamp: string;
|
|
3710
3710
|
details?: unknown;
|
|
3711
3711
|
correlationId?: string | undefined;
|
|
3712
3712
|
}, {
|
|
3713
|
+
message: string;
|
|
3713
3714
|
code: string;
|
|
3714
3715
|
path: string;
|
|
3715
|
-
message: string;
|
|
3716
3716
|
statusCode: number;
|
|
3717
3717
|
timestamp: string;
|
|
3718
3718
|
details?: unknown;
|
|
@@ -3727,17 +3727,17 @@ export declare const callHistoryContract: {
|
|
|
3727
3727
|
path: z.ZodString;
|
|
3728
3728
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3729
3729
|
}, "strip", z.ZodTypeAny, {
|
|
3730
|
+
message: string;
|
|
3730
3731
|
code: string;
|
|
3731
3732
|
path: string;
|
|
3732
|
-
message: string;
|
|
3733
3733
|
statusCode: number;
|
|
3734
3734
|
timestamp: string;
|
|
3735
3735
|
details?: unknown;
|
|
3736
3736
|
correlationId?: string | undefined;
|
|
3737
3737
|
}, {
|
|
3738
|
+
message: string;
|
|
3738
3739
|
code: string;
|
|
3739
3740
|
path: string;
|
|
3740
|
-
message: string;
|
|
3741
3741
|
statusCode: number;
|
|
3742
3742
|
timestamp: string;
|
|
3743
3743
|
details?: unknown;
|
|
@@ -3752,17 +3752,17 @@ export declare const callHistoryContract: {
|
|
|
3752
3752
|
path: z.ZodString;
|
|
3753
3753
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3754
3754
|
}, "strip", z.ZodTypeAny, {
|
|
3755
|
+
message: string;
|
|
3755
3756
|
code: string;
|
|
3756
3757
|
path: string;
|
|
3757
|
-
message: string;
|
|
3758
3758
|
statusCode: number;
|
|
3759
3759
|
timestamp: string;
|
|
3760
3760
|
details?: unknown;
|
|
3761
3761
|
correlationId?: string | undefined;
|
|
3762
3762
|
}, {
|
|
3763
|
+
message: string;
|
|
3763
3764
|
code: string;
|
|
3764
3765
|
path: string;
|
|
3765
|
-
message: string;
|
|
3766
3766
|
statusCode: number;
|
|
3767
3767
|
timestamp: string;
|
|
3768
3768
|
details?: unknown;
|
|
@@ -3777,17 +3777,17 @@ export declare const callHistoryContract: {
|
|
|
3777
3777
|
path: z.ZodString;
|
|
3778
3778
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3779
3779
|
}, "strip", z.ZodTypeAny, {
|
|
3780
|
+
message: string;
|
|
3780
3781
|
code: string;
|
|
3781
3782
|
path: string;
|
|
3782
|
-
message: string;
|
|
3783
3783
|
statusCode: number;
|
|
3784
3784
|
timestamp: string;
|
|
3785
3785
|
details?: unknown;
|
|
3786
3786
|
correlationId?: string | undefined;
|
|
3787
3787
|
}, {
|
|
3788
|
+
message: string;
|
|
3788
3789
|
code: string;
|
|
3789
3790
|
path: string;
|
|
3790
|
-
message: string;
|
|
3791
3791
|
statusCode: number;
|
|
3792
3792
|
timestamp: string;
|
|
3793
3793
|
details?: unknown;
|