@dakkitor/api-contracts 1.1.140 → 1.1.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/first-agent.abilities.json +65 -16
- package/dist/actives/actives.contract.d.ts +5165 -3938
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +14 -2
- package/dist/bookings/bookings.contract.d.ts +9663 -7583
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +30 -11
- package/dist/call-history/call-history.contract.d.ts +688 -717
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.js +2 -12
- package/dist/dashboards/dashboard-widgets.contract.d.ts +86 -86
- package/dist/leads/leads.contract.d.ts +116 -122
- package/dist/leads/leads.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.js +0 -4
- package/dist/own-research/own-research.contract.d.ts +700 -700
- package/package.json +1 -1
|
@@ -21,7 +21,6 @@ export declare enum LeadSource {
|
|
|
21
21
|
export declare const LEAD_SOURCE_LABELS: Record<LeadSource, string>;
|
|
22
22
|
export declare enum CallHistorySortableFields {
|
|
23
23
|
CREATED_AT = "createdAt",
|
|
24
|
-
CALL_DATE = "callDate",
|
|
25
24
|
RATING = "rating",
|
|
26
25
|
RATING_WEIGHT = "ratingWeight"
|
|
27
26
|
}
|
|
@@ -40,11 +39,11 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
40
39
|
name: z.ZodString;
|
|
41
40
|
phoneNumber: z.ZodString;
|
|
42
41
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
phoneNumber: string;
|
|
44
42
|
name: string;
|
|
45
|
-
}, {
|
|
46
43
|
phoneNumber: string;
|
|
44
|
+
}, {
|
|
47
45
|
name: string;
|
|
46
|
+
phoneNumber: string;
|
|
48
47
|
}>>;
|
|
49
48
|
agentId: z.ZodNullable<z.ZodString>;
|
|
50
49
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -84,50 +83,46 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
84
83
|
firstName: z.ZodString;
|
|
85
84
|
lastName: z.ZodString;
|
|
86
85
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
lastName: string;
|
|
88
|
-
firstName: string;
|
|
89
86
|
id: string;
|
|
90
|
-
}, {
|
|
91
|
-
lastName: string;
|
|
92
87
|
firstName: string;
|
|
88
|
+
lastName: string;
|
|
89
|
+
}, {
|
|
93
90
|
id: string;
|
|
91
|
+
firstName: string;
|
|
92
|
+
lastName: string;
|
|
94
93
|
}>, "many">>;
|
|
95
94
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
96
95
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
97
96
|
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
|
|
97
|
+
id: string;
|
|
99
98
|
firstName: string;
|
|
99
|
+
lastName: string;
|
|
100
100
|
email: string;
|
|
101
|
-
createdAt: string;
|
|
102
|
-
id: string;
|
|
103
101
|
phoneNumbers: {
|
|
104
102
|
id: string;
|
|
105
103
|
phoneNumber: string;
|
|
106
104
|
isPrimary: boolean;
|
|
107
105
|
description?: string | null | undefined;
|
|
108
106
|
}[];
|
|
107
|
+
createdAt: string;
|
|
109
108
|
updatedAt: string;
|
|
109
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
110
110
|
office?: {
|
|
111
111
|
id: string;
|
|
112
112
|
name: string;
|
|
113
113
|
} | null | undefined;
|
|
114
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
115
114
|
canImpersonateUsers?: {
|
|
116
|
-
lastName: string;
|
|
117
|
-
firstName: string;
|
|
118
115
|
id: string;
|
|
116
|
+
firstName: string;
|
|
117
|
+
lastName: string;
|
|
119
118
|
}[] | undefined;
|
|
120
119
|
}, {
|
|
121
|
-
|
|
120
|
+
id: string;
|
|
122
121
|
firstName: string;
|
|
122
|
+
lastName: string;
|
|
123
123
|
email: string;
|
|
124
124
|
createdAt: string | Date;
|
|
125
|
-
id: string;
|
|
126
125
|
updatedAt: string | Date;
|
|
127
|
-
office?: {
|
|
128
|
-
id: string;
|
|
129
|
-
name: string;
|
|
130
|
-
} | null | undefined;
|
|
131
126
|
phoneNumbers?: {
|
|
132
127
|
id: string;
|
|
133
128
|
phoneNumber: string;
|
|
@@ -135,10 +130,14 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
135
130
|
isPrimary?: boolean | undefined;
|
|
136
131
|
}[] | undefined;
|
|
137
132
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
133
|
+
office?: {
|
|
134
|
+
id: string;
|
|
135
|
+
name: string;
|
|
136
|
+
} | null | undefined;
|
|
138
137
|
canImpersonateUsers?: {
|
|
139
|
-
lastName: string;
|
|
140
|
-
firstName: string;
|
|
141
138
|
id: string;
|
|
139
|
+
firstName: string;
|
|
140
|
+
lastName: string;
|
|
142
141
|
}[] | undefined;
|
|
143
142
|
}>>;
|
|
144
143
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -151,83 +150,83 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
151
150
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
152
151
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
153
152
|
}, "strip", z.ZodTypeAny, {
|
|
154
|
-
createdAt: string;
|
|
155
153
|
id: string;
|
|
156
154
|
name: string;
|
|
155
|
+
createdAt: string;
|
|
157
156
|
updatedAt: string;
|
|
158
157
|
}, {
|
|
159
|
-
createdAt: string | Date;
|
|
160
158
|
id: string;
|
|
161
159
|
name: string;
|
|
160
|
+
createdAt: string | Date;
|
|
162
161
|
updatedAt: string | Date;
|
|
163
162
|
}>>>;
|
|
164
163
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
165
164
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
166
165
|
}, "strip", z.ZodTypeAny, {
|
|
167
|
-
createdAt: string;
|
|
168
166
|
id: string;
|
|
167
|
+
leadId: string;
|
|
168
|
+
agentId: string | null;
|
|
169
169
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
170
|
+
createdAt: string;
|
|
170
171
|
updatedAt: string;
|
|
171
|
-
agentId: string | null;
|
|
172
|
-
leadId: string;
|
|
173
172
|
assignedAt: string;
|
|
174
173
|
assignedBy: string | null;
|
|
175
174
|
companyId: string | null;
|
|
175
|
+
lead?: {
|
|
176
|
+
name: string;
|
|
177
|
+
phoneNumber: string;
|
|
178
|
+
} | undefined;
|
|
176
179
|
agent?: {
|
|
177
|
-
|
|
180
|
+
id: string;
|
|
178
181
|
firstName: string;
|
|
182
|
+
lastName: string;
|
|
179
183
|
email: string;
|
|
180
|
-
createdAt: string;
|
|
181
|
-
id: string;
|
|
182
184
|
phoneNumbers: {
|
|
183
185
|
id: string;
|
|
184
186
|
phoneNumber: string;
|
|
185
187
|
isPrimary: boolean;
|
|
186
188
|
description?: string | null | undefined;
|
|
187
189
|
}[];
|
|
190
|
+
createdAt: string;
|
|
188
191
|
updatedAt: string;
|
|
192
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
189
193
|
office?: {
|
|
190
194
|
id: string;
|
|
191
195
|
name: string;
|
|
192
196
|
} | null | undefined;
|
|
193
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
194
197
|
canImpersonateUsers?: {
|
|
195
|
-
lastName: string;
|
|
196
|
-
firstName: string;
|
|
197
198
|
id: string;
|
|
199
|
+
firstName: string;
|
|
200
|
+
lastName: string;
|
|
198
201
|
}[] | undefined;
|
|
199
202
|
} | undefined;
|
|
200
|
-
lead?: {
|
|
201
|
-
phoneNumber: string;
|
|
202
|
-
name: string;
|
|
203
|
-
} | undefined;
|
|
204
203
|
company?: {
|
|
205
|
-
createdAt: string;
|
|
206
204
|
id: string;
|
|
207
205
|
name: string;
|
|
206
|
+
createdAt: string;
|
|
208
207
|
updatedAt: string;
|
|
209
208
|
} | null | undefined;
|
|
210
209
|
}, {
|
|
211
|
-
createdAt: string | Date;
|
|
212
210
|
id: string;
|
|
211
|
+
leadId: string;
|
|
212
|
+
agentId: string | null;
|
|
213
213
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
214
|
+
createdAt: string | Date;
|
|
214
215
|
updatedAt: string | Date;
|
|
215
|
-
agentId: string | null;
|
|
216
|
-
leadId: string;
|
|
217
216
|
assignedAt: string | Date;
|
|
218
217
|
assignedBy: string | null;
|
|
219
218
|
companyId: string | null;
|
|
219
|
+
lead?: {
|
|
220
|
+
name: string;
|
|
221
|
+
phoneNumber: string;
|
|
222
|
+
} | undefined;
|
|
220
223
|
agent?: {
|
|
221
|
-
|
|
224
|
+
id: string;
|
|
222
225
|
firstName: string;
|
|
226
|
+
lastName: string;
|
|
223
227
|
email: string;
|
|
224
228
|
createdAt: string | Date;
|
|
225
|
-
id: string;
|
|
226
229
|
updatedAt: string | Date;
|
|
227
|
-
office?: {
|
|
228
|
-
id: string;
|
|
229
|
-
name: string;
|
|
230
|
-
} | null | undefined;
|
|
231
230
|
phoneNumbers?: {
|
|
232
231
|
id: string;
|
|
233
232
|
phoneNumber: string;
|
|
@@ -235,24 +234,23 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
235
234
|
isPrimary?: boolean | undefined;
|
|
236
235
|
}[] | undefined;
|
|
237
236
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
237
|
+
office?: {
|
|
238
|
+
id: string;
|
|
239
|
+
name: string;
|
|
240
|
+
} | null | undefined;
|
|
238
241
|
canImpersonateUsers?: {
|
|
239
|
-
lastName: string;
|
|
240
|
-
firstName: string;
|
|
241
242
|
id: string;
|
|
243
|
+
firstName: string;
|
|
244
|
+
lastName: string;
|
|
242
245
|
}[] | undefined;
|
|
243
246
|
} | undefined;
|
|
244
|
-
lead?: {
|
|
245
|
-
phoneNumber: string;
|
|
246
|
-
name: string;
|
|
247
|
-
} | undefined;
|
|
248
247
|
company?: {
|
|
249
|
-
createdAt: string | Date;
|
|
250
248
|
id: string;
|
|
251
249
|
name: string;
|
|
250
|
+
createdAt: string | Date;
|
|
252
251
|
updatedAt: string | Date;
|
|
253
252
|
} | null | undefined;
|
|
254
253
|
}>>>;
|
|
255
|
-
callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
256
254
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
257
255
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
258
256
|
rating: z.ZodNativeEnum<typeof CallRating>;
|
|
@@ -261,97 +259,95 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
261
259
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
262
260
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
263
261
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
createdAt: string;
|
|
265
262
|
id: string;
|
|
263
|
+
assignmentId: string;
|
|
264
|
+
createdAt: string;
|
|
266
265
|
updatedAt: string;
|
|
267
|
-
rating: CallRating;
|
|
268
|
-
notes: string | null;
|
|
269
266
|
callType: CallType;
|
|
270
|
-
assignmentId: string;
|
|
271
|
-
callDate: string;
|
|
272
267
|
leadSource: LeadSource;
|
|
268
|
+
rating: CallRating;
|
|
273
269
|
ratingWeight: number;
|
|
274
|
-
|
|
270
|
+
notes: string | null;
|
|
275
271
|
leadId?: string | undefined;
|
|
272
|
+
agentId?: string | undefined;
|
|
276
273
|
assignment?: {
|
|
277
|
-
createdAt: string;
|
|
278
274
|
id: string;
|
|
275
|
+
leadId: string;
|
|
276
|
+
agentId: string | null;
|
|
279
277
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
278
|
+
createdAt: string;
|
|
280
279
|
updatedAt: string;
|
|
281
|
-
agentId: string | null;
|
|
282
|
-
leadId: string;
|
|
283
280
|
assignedAt: string;
|
|
284
281
|
assignedBy: string | null;
|
|
285
282
|
companyId: string | null;
|
|
283
|
+
lead?: {
|
|
284
|
+
name: string;
|
|
285
|
+
phoneNumber: string;
|
|
286
|
+
} | undefined;
|
|
286
287
|
agent?: {
|
|
287
|
-
|
|
288
|
+
id: string;
|
|
288
289
|
firstName: string;
|
|
290
|
+
lastName: string;
|
|
289
291
|
email: string;
|
|
290
|
-
createdAt: string;
|
|
291
|
-
id: string;
|
|
292
292
|
phoneNumbers: {
|
|
293
293
|
id: string;
|
|
294
294
|
phoneNumber: string;
|
|
295
295
|
isPrimary: boolean;
|
|
296
296
|
description?: string | null | undefined;
|
|
297
297
|
}[];
|
|
298
|
+
createdAt: string;
|
|
298
299
|
updatedAt: string;
|
|
300
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
299
301
|
office?: {
|
|
300
302
|
id: string;
|
|
301
303
|
name: string;
|
|
302
304
|
} | null | undefined;
|
|
303
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
304
305
|
canImpersonateUsers?: {
|
|
305
|
-
lastName: string;
|
|
306
|
-
firstName: string;
|
|
307
306
|
id: string;
|
|
307
|
+
firstName: string;
|
|
308
|
+
lastName: string;
|
|
308
309
|
}[] | undefined;
|
|
309
310
|
} | undefined;
|
|
310
|
-
lead?: {
|
|
311
|
-
phoneNumber: string;
|
|
312
|
-
name: string;
|
|
313
|
-
} | undefined;
|
|
314
311
|
company?: {
|
|
315
|
-
createdAt: string;
|
|
316
312
|
id: string;
|
|
317
313
|
name: string;
|
|
314
|
+
createdAt: string;
|
|
318
315
|
updatedAt: string;
|
|
319
316
|
} | null | undefined;
|
|
320
317
|
} | null | undefined;
|
|
321
318
|
}, {
|
|
322
|
-
createdAt: string | Date;
|
|
323
319
|
id: string;
|
|
320
|
+
assignmentId: string;
|
|
321
|
+
createdAt: string | Date;
|
|
324
322
|
updatedAt: string | Date;
|
|
325
|
-
rating: CallRating;
|
|
326
|
-
notes: string | null;
|
|
327
323
|
callType: CallType;
|
|
328
|
-
assignmentId: string;
|
|
329
|
-
callDate: string | Date;
|
|
330
324
|
leadSource: LeadSource;
|
|
325
|
+
rating: CallRating;
|
|
331
326
|
ratingWeight: number;
|
|
332
|
-
|
|
327
|
+
notes: string | null;
|
|
333
328
|
leadId?: string | undefined;
|
|
329
|
+
agentId?: string | undefined;
|
|
334
330
|
assignment?: {
|
|
335
|
-
createdAt: string | Date;
|
|
336
331
|
id: string;
|
|
332
|
+
leadId: string;
|
|
333
|
+
agentId: string | null;
|
|
337
334
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
335
|
+
createdAt: string | Date;
|
|
338
336
|
updatedAt: string | Date;
|
|
339
|
-
agentId: string | null;
|
|
340
|
-
leadId: string;
|
|
341
337
|
assignedAt: string | Date;
|
|
342
338
|
assignedBy: string | null;
|
|
343
339
|
companyId: string | null;
|
|
340
|
+
lead?: {
|
|
341
|
+
name: string;
|
|
342
|
+
phoneNumber: string;
|
|
343
|
+
} | undefined;
|
|
344
344
|
agent?: {
|
|
345
|
-
|
|
345
|
+
id: string;
|
|
346
346
|
firstName: string;
|
|
347
|
+
lastName: string;
|
|
347
348
|
email: string;
|
|
348
349
|
createdAt: string | Date;
|
|
349
|
-
id: string;
|
|
350
350
|
updatedAt: string | Date;
|
|
351
|
-
office?: {
|
|
352
|
-
id: string;
|
|
353
|
-
name: string;
|
|
354
|
-
} | null | undefined;
|
|
355
351
|
phoneNumbers?: {
|
|
356
352
|
id: string;
|
|
357
353
|
phoneNumber: string;
|
|
@@ -359,20 +355,20 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
359
355
|
isPrimary?: boolean | undefined;
|
|
360
356
|
}[] | undefined;
|
|
361
357
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
358
|
+
office?: {
|
|
359
|
+
id: string;
|
|
360
|
+
name: string;
|
|
361
|
+
} | null | undefined;
|
|
362
362
|
canImpersonateUsers?: {
|
|
363
|
-
lastName: string;
|
|
364
|
-
firstName: string;
|
|
365
363
|
id: string;
|
|
364
|
+
firstName: string;
|
|
365
|
+
lastName: string;
|
|
366
366
|
}[] | undefined;
|
|
367
367
|
} | undefined;
|
|
368
|
-
lead?: {
|
|
369
|
-
phoneNumber: string;
|
|
370
|
-
name: string;
|
|
371
|
-
} | undefined;
|
|
372
368
|
company?: {
|
|
373
|
-
createdAt: string | Date;
|
|
374
369
|
id: string;
|
|
375
370
|
name: string;
|
|
371
|
+
createdAt: string | Date;
|
|
376
372
|
updatedAt: string | Date;
|
|
377
373
|
} | null | undefined;
|
|
378
374
|
} | null | undefined;
|
|
@@ -390,11 +386,11 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
390
386
|
name: z.ZodString;
|
|
391
387
|
phoneNumber: z.ZodString;
|
|
392
388
|
}, "strip", z.ZodTypeAny, {
|
|
393
|
-
phoneNumber: string;
|
|
394
389
|
name: string;
|
|
395
|
-
}, {
|
|
396
390
|
phoneNumber: string;
|
|
391
|
+
}, {
|
|
397
392
|
name: string;
|
|
393
|
+
phoneNumber: string;
|
|
398
394
|
}>>;
|
|
399
395
|
agentId: z.ZodNullable<z.ZodString>;
|
|
400
396
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -434,50 +430,46 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
434
430
|
firstName: z.ZodString;
|
|
435
431
|
lastName: z.ZodString;
|
|
436
432
|
}, "strip", z.ZodTypeAny, {
|
|
437
|
-
lastName: string;
|
|
438
|
-
firstName: string;
|
|
439
433
|
id: string;
|
|
440
|
-
}, {
|
|
441
|
-
lastName: string;
|
|
442
434
|
firstName: string;
|
|
435
|
+
lastName: string;
|
|
436
|
+
}, {
|
|
443
437
|
id: string;
|
|
438
|
+
firstName: string;
|
|
439
|
+
lastName: string;
|
|
444
440
|
}>, "many">>;
|
|
445
441
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
446
442
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
447
443
|
}, "strip", z.ZodTypeAny, {
|
|
448
|
-
|
|
444
|
+
id: string;
|
|
449
445
|
firstName: string;
|
|
446
|
+
lastName: string;
|
|
450
447
|
email: string;
|
|
451
|
-
createdAt: string;
|
|
452
|
-
id: string;
|
|
453
448
|
phoneNumbers: {
|
|
454
449
|
id: string;
|
|
455
450
|
phoneNumber: string;
|
|
456
451
|
isPrimary: boolean;
|
|
457
452
|
description?: string | null | undefined;
|
|
458
453
|
}[];
|
|
454
|
+
createdAt: string;
|
|
459
455
|
updatedAt: string;
|
|
456
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
460
457
|
office?: {
|
|
461
458
|
id: string;
|
|
462
459
|
name: string;
|
|
463
460
|
} | null | undefined;
|
|
464
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
465
461
|
canImpersonateUsers?: {
|
|
466
|
-
lastName: string;
|
|
467
|
-
firstName: string;
|
|
468
462
|
id: string;
|
|
463
|
+
firstName: string;
|
|
464
|
+
lastName: string;
|
|
469
465
|
}[] | undefined;
|
|
470
466
|
}, {
|
|
471
|
-
|
|
467
|
+
id: string;
|
|
472
468
|
firstName: string;
|
|
469
|
+
lastName: string;
|
|
473
470
|
email: string;
|
|
474
471
|
createdAt: string | Date;
|
|
475
|
-
id: string;
|
|
476
472
|
updatedAt: string | Date;
|
|
477
|
-
office?: {
|
|
478
|
-
id: string;
|
|
479
|
-
name: string;
|
|
480
|
-
} | null | undefined;
|
|
481
473
|
phoneNumbers?: {
|
|
482
474
|
id: string;
|
|
483
475
|
phoneNumber: string;
|
|
@@ -485,10 +477,14 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
485
477
|
isPrimary?: boolean | undefined;
|
|
486
478
|
}[] | undefined;
|
|
487
479
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
480
|
+
office?: {
|
|
481
|
+
id: string;
|
|
482
|
+
name: string;
|
|
483
|
+
} | null | undefined;
|
|
488
484
|
canImpersonateUsers?: {
|
|
489
|
-
lastName: string;
|
|
490
|
-
firstName: string;
|
|
491
485
|
id: string;
|
|
486
|
+
firstName: string;
|
|
487
|
+
lastName: string;
|
|
492
488
|
}[] | undefined;
|
|
493
489
|
}>>;
|
|
494
490
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -501,83 +497,83 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
501
497
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
502
498
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
503
499
|
}, "strip", z.ZodTypeAny, {
|
|
504
|
-
createdAt: string;
|
|
505
500
|
id: string;
|
|
506
501
|
name: string;
|
|
502
|
+
createdAt: string;
|
|
507
503
|
updatedAt: string;
|
|
508
504
|
}, {
|
|
509
|
-
createdAt: string | Date;
|
|
510
505
|
id: string;
|
|
511
506
|
name: string;
|
|
507
|
+
createdAt: string | Date;
|
|
512
508
|
updatedAt: string | Date;
|
|
513
509
|
}>>>;
|
|
514
510
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
515
511
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
516
512
|
}, "strip", z.ZodTypeAny, {
|
|
517
|
-
createdAt: string;
|
|
518
513
|
id: string;
|
|
514
|
+
leadId: string;
|
|
515
|
+
agentId: string | null;
|
|
519
516
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
517
|
+
createdAt: string;
|
|
520
518
|
updatedAt: string;
|
|
521
|
-
agentId: string | null;
|
|
522
|
-
leadId: string;
|
|
523
519
|
assignedAt: string;
|
|
524
520
|
assignedBy: string | null;
|
|
525
521
|
companyId: string | null;
|
|
522
|
+
lead?: {
|
|
523
|
+
name: string;
|
|
524
|
+
phoneNumber: string;
|
|
525
|
+
} | undefined;
|
|
526
526
|
agent?: {
|
|
527
|
-
|
|
527
|
+
id: string;
|
|
528
528
|
firstName: string;
|
|
529
|
+
lastName: string;
|
|
529
530
|
email: string;
|
|
530
|
-
createdAt: string;
|
|
531
|
-
id: string;
|
|
532
531
|
phoneNumbers: {
|
|
533
532
|
id: string;
|
|
534
533
|
phoneNumber: string;
|
|
535
534
|
isPrimary: boolean;
|
|
536
535
|
description?: string | null | undefined;
|
|
537
536
|
}[];
|
|
537
|
+
createdAt: string;
|
|
538
538
|
updatedAt: string;
|
|
539
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
539
540
|
office?: {
|
|
540
541
|
id: string;
|
|
541
542
|
name: string;
|
|
542
543
|
} | null | undefined;
|
|
543
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
544
544
|
canImpersonateUsers?: {
|
|
545
|
-
lastName: string;
|
|
546
|
-
firstName: string;
|
|
547
545
|
id: string;
|
|
546
|
+
firstName: string;
|
|
547
|
+
lastName: string;
|
|
548
548
|
}[] | undefined;
|
|
549
549
|
} | undefined;
|
|
550
|
-
lead?: {
|
|
551
|
-
phoneNumber: string;
|
|
552
|
-
name: string;
|
|
553
|
-
} | undefined;
|
|
554
550
|
company?: {
|
|
555
|
-
createdAt: string;
|
|
556
551
|
id: string;
|
|
557
552
|
name: string;
|
|
553
|
+
createdAt: string;
|
|
558
554
|
updatedAt: string;
|
|
559
555
|
} | null | undefined;
|
|
560
556
|
}, {
|
|
561
|
-
createdAt: string | Date;
|
|
562
557
|
id: string;
|
|
558
|
+
leadId: string;
|
|
559
|
+
agentId: string | null;
|
|
563
560
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
561
|
+
createdAt: string | Date;
|
|
564
562
|
updatedAt: string | Date;
|
|
565
|
-
agentId: string | null;
|
|
566
|
-
leadId: string;
|
|
567
563
|
assignedAt: string | Date;
|
|
568
564
|
assignedBy: string | null;
|
|
569
565
|
companyId: string | null;
|
|
566
|
+
lead?: {
|
|
567
|
+
name: string;
|
|
568
|
+
phoneNumber: string;
|
|
569
|
+
} | undefined;
|
|
570
570
|
agent?: {
|
|
571
|
-
|
|
571
|
+
id: string;
|
|
572
572
|
firstName: string;
|
|
573
|
+
lastName: string;
|
|
573
574
|
email: string;
|
|
574
575
|
createdAt: string | Date;
|
|
575
|
-
id: string;
|
|
576
576
|
updatedAt: string | Date;
|
|
577
|
-
office?: {
|
|
578
|
-
id: string;
|
|
579
|
-
name: string;
|
|
580
|
-
} | null | undefined;
|
|
581
577
|
phoneNumbers?: {
|
|
582
578
|
id: string;
|
|
583
579
|
phoneNumber: string;
|
|
@@ -585,24 +581,23 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
585
581
|
isPrimary?: boolean | undefined;
|
|
586
582
|
}[] | undefined;
|
|
587
583
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
584
|
+
office?: {
|
|
585
|
+
id: string;
|
|
586
|
+
name: string;
|
|
587
|
+
} | null | undefined;
|
|
588
588
|
canImpersonateUsers?: {
|
|
589
|
-
lastName: string;
|
|
590
|
-
firstName: string;
|
|
591
589
|
id: string;
|
|
590
|
+
firstName: string;
|
|
591
|
+
lastName: string;
|
|
592
592
|
}[] | undefined;
|
|
593
593
|
} | undefined;
|
|
594
|
-
lead?: {
|
|
595
|
-
phoneNumber: string;
|
|
596
|
-
name: string;
|
|
597
|
-
} | undefined;
|
|
598
594
|
company?: {
|
|
599
|
-
createdAt: string | Date;
|
|
600
595
|
id: string;
|
|
601
596
|
name: string;
|
|
597
|
+
createdAt: string | Date;
|
|
602
598
|
updatedAt: string | Date;
|
|
603
599
|
} | null | undefined;
|
|
604
600
|
}>>>;
|
|
605
|
-
callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
606
601
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
607
602
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
608
603
|
rating: z.ZodNativeEnum<typeof CallRating>;
|
|
@@ -611,97 +606,95 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
611
606
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
612
607
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
613
608
|
}, "strip", z.ZodTypeAny, {
|
|
614
|
-
createdAt: string;
|
|
615
609
|
id: string;
|
|
610
|
+
assignmentId: string;
|
|
611
|
+
createdAt: string;
|
|
616
612
|
updatedAt: string;
|
|
617
|
-
rating: CallRating;
|
|
618
|
-
notes: string | null;
|
|
619
613
|
callType: CallType;
|
|
620
|
-
assignmentId: string;
|
|
621
|
-
callDate: string;
|
|
622
614
|
leadSource: LeadSource;
|
|
615
|
+
rating: CallRating;
|
|
623
616
|
ratingWeight: number;
|
|
624
|
-
|
|
617
|
+
notes: string | null;
|
|
625
618
|
leadId?: string | undefined;
|
|
619
|
+
agentId?: string | undefined;
|
|
626
620
|
assignment?: {
|
|
627
|
-
createdAt: string;
|
|
628
621
|
id: string;
|
|
622
|
+
leadId: string;
|
|
623
|
+
agentId: string | null;
|
|
629
624
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
625
|
+
createdAt: string;
|
|
630
626
|
updatedAt: string;
|
|
631
|
-
agentId: string | null;
|
|
632
|
-
leadId: string;
|
|
633
627
|
assignedAt: string;
|
|
634
628
|
assignedBy: string | null;
|
|
635
629
|
companyId: string | null;
|
|
630
|
+
lead?: {
|
|
631
|
+
name: string;
|
|
632
|
+
phoneNumber: string;
|
|
633
|
+
} | undefined;
|
|
636
634
|
agent?: {
|
|
637
|
-
|
|
635
|
+
id: string;
|
|
638
636
|
firstName: string;
|
|
637
|
+
lastName: string;
|
|
639
638
|
email: string;
|
|
640
|
-
createdAt: string;
|
|
641
|
-
id: string;
|
|
642
639
|
phoneNumbers: {
|
|
643
640
|
id: string;
|
|
644
641
|
phoneNumber: string;
|
|
645
642
|
isPrimary: boolean;
|
|
646
643
|
description?: string | null | undefined;
|
|
647
644
|
}[];
|
|
645
|
+
createdAt: string;
|
|
648
646
|
updatedAt: string;
|
|
647
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
649
648
|
office?: {
|
|
650
649
|
id: string;
|
|
651
650
|
name: string;
|
|
652
651
|
} | null | undefined;
|
|
653
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
654
652
|
canImpersonateUsers?: {
|
|
655
|
-
lastName: string;
|
|
656
|
-
firstName: string;
|
|
657
653
|
id: string;
|
|
654
|
+
firstName: string;
|
|
655
|
+
lastName: string;
|
|
658
656
|
}[] | undefined;
|
|
659
657
|
} | undefined;
|
|
660
|
-
lead?: {
|
|
661
|
-
phoneNumber: string;
|
|
662
|
-
name: string;
|
|
663
|
-
} | undefined;
|
|
664
658
|
company?: {
|
|
665
|
-
createdAt: string;
|
|
666
659
|
id: string;
|
|
667
660
|
name: string;
|
|
661
|
+
createdAt: string;
|
|
668
662
|
updatedAt: string;
|
|
669
663
|
} | null | undefined;
|
|
670
664
|
} | null | undefined;
|
|
671
665
|
}, {
|
|
672
|
-
createdAt: string | Date;
|
|
673
666
|
id: string;
|
|
667
|
+
assignmentId: string;
|
|
668
|
+
createdAt: string | Date;
|
|
674
669
|
updatedAt: string | Date;
|
|
675
|
-
rating: CallRating;
|
|
676
|
-
notes: string | null;
|
|
677
670
|
callType: CallType;
|
|
678
|
-
assignmentId: string;
|
|
679
|
-
callDate: string | Date;
|
|
680
671
|
leadSource: LeadSource;
|
|
672
|
+
rating: CallRating;
|
|
681
673
|
ratingWeight: number;
|
|
682
|
-
|
|
674
|
+
notes: string | null;
|
|
683
675
|
leadId?: string | undefined;
|
|
676
|
+
agentId?: string | undefined;
|
|
684
677
|
assignment?: {
|
|
685
|
-
createdAt: string | Date;
|
|
686
678
|
id: string;
|
|
679
|
+
leadId: string;
|
|
680
|
+
agentId: string | null;
|
|
687
681
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
682
|
+
createdAt: string | Date;
|
|
688
683
|
updatedAt: string | Date;
|
|
689
|
-
agentId: string | null;
|
|
690
|
-
leadId: string;
|
|
691
684
|
assignedAt: string | Date;
|
|
692
685
|
assignedBy: string | null;
|
|
693
686
|
companyId: string | null;
|
|
687
|
+
lead?: {
|
|
688
|
+
name: string;
|
|
689
|
+
phoneNumber: string;
|
|
690
|
+
} | undefined;
|
|
694
691
|
agent?: {
|
|
695
|
-
|
|
692
|
+
id: string;
|
|
696
693
|
firstName: string;
|
|
694
|
+
lastName: string;
|
|
697
695
|
email: string;
|
|
698
696
|
createdAt: string | Date;
|
|
699
|
-
id: string;
|
|
700
697
|
updatedAt: string | Date;
|
|
701
|
-
office?: {
|
|
702
|
-
id: string;
|
|
703
|
-
name: string;
|
|
704
|
-
} | null | undefined;
|
|
705
698
|
phoneNumbers?: {
|
|
706
699
|
id: string;
|
|
707
700
|
phoneNumber: string;
|
|
@@ -709,20 +702,20 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
709
702
|
isPrimary?: boolean | undefined;
|
|
710
703
|
}[] | undefined;
|
|
711
704
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
705
|
+
office?: {
|
|
706
|
+
id: string;
|
|
707
|
+
name: string;
|
|
708
|
+
} | null | undefined;
|
|
712
709
|
canImpersonateUsers?: {
|
|
713
|
-
lastName: string;
|
|
714
|
-
firstName: string;
|
|
715
710
|
id: string;
|
|
711
|
+
firstName: string;
|
|
712
|
+
lastName: string;
|
|
716
713
|
}[] | undefined;
|
|
717
714
|
} | undefined;
|
|
718
|
-
lead?: {
|
|
719
|
-
phoneNumber: string;
|
|
720
|
-
name: string;
|
|
721
|
-
} | undefined;
|
|
722
715
|
company?: {
|
|
723
|
-
createdAt: string | Date;
|
|
724
716
|
id: string;
|
|
725
717
|
name: string;
|
|
718
|
+
createdAt: string | Date;
|
|
726
719
|
updatedAt: string | Date;
|
|
727
720
|
} | null | undefined;
|
|
728
721
|
} | null | undefined;
|
|
@@ -733,106 +726,103 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
733
726
|
currentPage: z.ZodNumber;
|
|
734
727
|
totalPages: z.ZodNumber;
|
|
735
728
|
}, "strip", z.ZodTypeAny, {
|
|
736
|
-
limit: number;
|
|
737
729
|
items: {
|
|
738
|
-
createdAt: string;
|
|
739
730
|
id: string;
|
|
731
|
+
assignmentId: string;
|
|
732
|
+
createdAt: string;
|
|
740
733
|
updatedAt: string;
|
|
741
|
-
rating: CallRating;
|
|
742
|
-
notes: string | null;
|
|
743
734
|
callType: CallType;
|
|
744
|
-
assignmentId: string;
|
|
745
|
-
callDate: string;
|
|
746
735
|
leadSource: LeadSource;
|
|
736
|
+
rating: CallRating;
|
|
747
737
|
ratingWeight: number;
|
|
748
|
-
|
|
738
|
+
notes: string | null;
|
|
749
739
|
leadId?: string | undefined;
|
|
740
|
+
agentId?: string | undefined;
|
|
750
741
|
assignment?: {
|
|
751
|
-
createdAt: string;
|
|
752
742
|
id: string;
|
|
743
|
+
leadId: string;
|
|
744
|
+
agentId: string | null;
|
|
753
745
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
746
|
+
createdAt: string;
|
|
754
747
|
updatedAt: string;
|
|
755
|
-
agentId: string | null;
|
|
756
|
-
leadId: string;
|
|
757
748
|
assignedAt: string;
|
|
758
749
|
assignedBy: string | null;
|
|
759
750
|
companyId: string | null;
|
|
751
|
+
lead?: {
|
|
752
|
+
name: string;
|
|
753
|
+
phoneNumber: string;
|
|
754
|
+
} | undefined;
|
|
760
755
|
agent?: {
|
|
761
|
-
|
|
756
|
+
id: string;
|
|
762
757
|
firstName: string;
|
|
758
|
+
lastName: string;
|
|
763
759
|
email: string;
|
|
764
|
-
createdAt: string;
|
|
765
|
-
id: string;
|
|
766
760
|
phoneNumbers: {
|
|
767
761
|
id: string;
|
|
768
762
|
phoneNumber: string;
|
|
769
763
|
isPrimary: boolean;
|
|
770
764
|
description?: string | null | undefined;
|
|
771
765
|
}[];
|
|
766
|
+
createdAt: string;
|
|
772
767
|
updatedAt: string;
|
|
768
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
773
769
|
office?: {
|
|
774
770
|
id: string;
|
|
775
771
|
name: string;
|
|
776
772
|
} | null | undefined;
|
|
777
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
778
773
|
canImpersonateUsers?: {
|
|
779
|
-
lastName: string;
|
|
780
|
-
firstName: string;
|
|
781
774
|
id: string;
|
|
775
|
+
firstName: string;
|
|
776
|
+
lastName: string;
|
|
782
777
|
}[] | undefined;
|
|
783
778
|
} | undefined;
|
|
784
|
-
lead?: {
|
|
785
|
-
phoneNumber: string;
|
|
786
|
-
name: string;
|
|
787
|
-
} | undefined;
|
|
788
779
|
company?: {
|
|
789
|
-
createdAt: string;
|
|
790
780
|
id: string;
|
|
791
781
|
name: string;
|
|
782
|
+
createdAt: string;
|
|
792
783
|
updatedAt: string;
|
|
793
784
|
} | null | undefined;
|
|
794
785
|
} | null | undefined;
|
|
795
786
|
}[];
|
|
796
787
|
totalCount: number;
|
|
788
|
+
limit: number;
|
|
797
789
|
skip: number;
|
|
798
790
|
currentPage: number;
|
|
799
791
|
totalPages: number;
|
|
800
792
|
}, {
|
|
801
|
-
limit: number;
|
|
802
793
|
items: {
|
|
803
|
-
createdAt: string | Date;
|
|
804
794
|
id: string;
|
|
795
|
+
assignmentId: string;
|
|
796
|
+
createdAt: string | Date;
|
|
805
797
|
updatedAt: string | Date;
|
|
806
|
-
rating: CallRating;
|
|
807
|
-
notes: string | null;
|
|
808
798
|
callType: CallType;
|
|
809
|
-
assignmentId: string;
|
|
810
|
-
callDate: string | Date;
|
|
811
799
|
leadSource: LeadSource;
|
|
800
|
+
rating: CallRating;
|
|
812
801
|
ratingWeight: number;
|
|
813
|
-
|
|
802
|
+
notes: string | null;
|
|
814
803
|
leadId?: string | undefined;
|
|
804
|
+
agentId?: string | undefined;
|
|
815
805
|
assignment?: {
|
|
816
|
-
createdAt: string | Date;
|
|
817
806
|
id: string;
|
|
807
|
+
leadId: string;
|
|
808
|
+
agentId: string | null;
|
|
818
809
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
810
|
+
createdAt: string | Date;
|
|
819
811
|
updatedAt: string | Date;
|
|
820
|
-
agentId: string | null;
|
|
821
|
-
leadId: string;
|
|
822
812
|
assignedAt: string | Date;
|
|
823
813
|
assignedBy: string | null;
|
|
824
814
|
companyId: string | null;
|
|
815
|
+
lead?: {
|
|
816
|
+
name: string;
|
|
817
|
+
phoneNumber: string;
|
|
818
|
+
} | undefined;
|
|
825
819
|
agent?: {
|
|
826
|
-
|
|
820
|
+
id: string;
|
|
827
821
|
firstName: string;
|
|
822
|
+
lastName: string;
|
|
828
823
|
email: string;
|
|
829
824
|
createdAt: string | Date;
|
|
830
|
-
id: string;
|
|
831
825
|
updatedAt: string | Date;
|
|
832
|
-
office?: {
|
|
833
|
-
id: string;
|
|
834
|
-
name: string;
|
|
835
|
-
} | null | undefined;
|
|
836
826
|
phoneNumbers?: {
|
|
837
827
|
id: string;
|
|
838
828
|
phoneNumber: string;
|
|
@@ -840,25 +830,26 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
840
830
|
isPrimary?: boolean | undefined;
|
|
841
831
|
}[] | undefined;
|
|
842
832
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
833
|
+
office?: {
|
|
834
|
+
id: string;
|
|
835
|
+
name: string;
|
|
836
|
+
} | null | undefined;
|
|
843
837
|
canImpersonateUsers?: {
|
|
844
|
-
lastName: string;
|
|
845
|
-
firstName: string;
|
|
846
838
|
id: string;
|
|
839
|
+
firstName: string;
|
|
840
|
+
lastName: string;
|
|
847
841
|
}[] | undefined;
|
|
848
842
|
} | undefined;
|
|
849
|
-
lead?: {
|
|
850
|
-
phoneNumber: string;
|
|
851
|
-
name: string;
|
|
852
|
-
} | undefined;
|
|
853
843
|
company?: {
|
|
854
|
-
createdAt: string | Date;
|
|
855
844
|
id: string;
|
|
856
845
|
name: string;
|
|
846
|
+
createdAt: string | Date;
|
|
857
847
|
updatedAt: string | Date;
|
|
858
848
|
} | null | undefined;
|
|
859
849
|
} | null | undefined;
|
|
860
850
|
}[];
|
|
861
851
|
totalCount: number;
|
|
852
|
+
limit: number;
|
|
862
853
|
skip: number;
|
|
863
854
|
currentPage: number;
|
|
864
855
|
totalPages: number;
|
|
@@ -869,34 +860,31 @@ export declare const CreateCallHistorySchema: z.ZodObject<{
|
|
|
869
860
|
notes: z.ZodOptional<z.ZodString>;
|
|
870
861
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
871
862
|
}, "strip", z.ZodTypeAny, {
|
|
872
|
-
rating: CallRating;
|
|
873
|
-
callType: CallType;
|
|
874
863
|
assignmentId: string;
|
|
864
|
+
callType: CallType;
|
|
865
|
+
rating: CallRating;
|
|
875
866
|
notes?: string | undefined;
|
|
876
867
|
}, {
|
|
877
|
-
rating: CallRating;
|
|
878
|
-
callType: CallType;
|
|
879
868
|
assignmentId: string;
|
|
869
|
+
callType: CallType;
|
|
870
|
+
rating: CallRating;
|
|
880
871
|
notes?: string | undefined;
|
|
881
872
|
}>;
|
|
882
873
|
export declare const UpdateCallHistorySchema: z.ZodObject<{
|
|
883
|
-
callDate: z.ZodOptional<z.ZodString>;
|
|
884
874
|
rating: z.ZodOptional<z.ZodNativeEnum<typeof CallRating>>;
|
|
885
875
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
886
876
|
}, "strip", z.ZodTypeAny, {
|
|
887
877
|
rating?: CallRating | undefined;
|
|
888
878
|
notes?: string | null | undefined;
|
|
889
|
-
callDate?: string | undefined;
|
|
890
879
|
}, {
|
|
891
880
|
rating?: CallRating | undefined;
|
|
892
881
|
notes?: string | null | undefined;
|
|
893
|
-
callDate?: string | undefined;
|
|
894
882
|
}>;
|
|
895
883
|
export declare const FilterCallHistorySchema: z.ZodObject<{
|
|
896
884
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
897
885
|
page: z.ZodDefault<z.ZodNumber>;
|
|
898
886
|
} & {
|
|
899
|
-
|
|
887
|
+
createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
900
888
|
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
901
889
|
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
902
890
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -927,41 +915,41 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
|
|
|
927
915
|
}, "strip", z.ZodTypeAny, {
|
|
928
916
|
limit: number;
|
|
929
917
|
page: number;
|
|
930
|
-
phoneNumber?: string | undefined;
|
|
931
|
-
sortBy?: CallHistorySortableFields | undefined;
|
|
932
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
933
918
|
agentId?: string | undefined;
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
to?: CallRating | null | undefined;
|
|
937
|
-
} | null | undefined;
|
|
938
|
-
callType?: CallType | undefined;
|
|
939
|
-
companyId?: string | undefined;
|
|
940
|
-
callDate?: {
|
|
919
|
+
phoneNumber?: string | undefined;
|
|
920
|
+
createdAt?: {
|
|
941
921
|
from?: string | null | undefined;
|
|
942
922
|
to?: string | null | undefined;
|
|
943
923
|
} | null | undefined;
|
|
924
|
+
companyId?: string | undefined;
|
|
925
|
+
callType?: CallType | undefined;
|
|
944
926
|
leadSource?: LeadSource | undefined;
|
|
927
|
+
rating?: {
|
|
928
|
+
from?: CallRating | null | undefined;
|
|
929
|
+
to?: CallRating | null | undefined;
|
|
930
|
+
} | null | undefined;
|
|
945
931
|
leadName?: string | undefined;
|
|
946
|
-
}, {
|
|
947
|
-
phoneNumber?: string | undefined;
|
|
948
|
-
limit?: number | undefined;
|
|
949
|
-
page?: number | undefined;
|
|
950
932
|
sortBy?: CallHistorySortableFields | undefined;
|
|
951
933
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
934
|
+
}, {
|
|
952
935
|
agentId?: string | undefined;
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
to?: unknown;
|
|
956
|
-
} | null | undefined;
|
|
957
|
-
callType?: CallType | undefined;
|
|
958
|
-
companyId?: string | undefined;
|
|
959
|
-
callDate?: {
|
|
936
|
+
phoneNumber?: string | undefined;
|
|
937
|
+
createdAt?: {
|
|
960
938
|
from?: string | null | undefined;
|
|
961
939
|
to?: string | null | undefined;
|
|
962
940
|
} | null | undefined;
|
|
941
|
+
companyId?: string | undefined;
|
|
942
|
+
callType?: CallType | undefined;
|
|
963
943
|
leadSource?: LeadSource | undefined;
|
|
944
|
+
rating?: {
|
|
945
|
+
from?: unknown;
|
|
946
|
+
to?: unknown;
|
|
947
|
+
} | null | undefined;
|
|
948
|
+
limit?: number | undefined;
|
|
949
|
+
page?: number | undefined;
|
|
964
950
|
leadName?: string | undefined;
|
|
951
|
+
sortBy?: CallHistorySortableFields | undefined;
|
|
952
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
965
953
|
}>;
|
|
966
954
|
export declare const CallHistoryStatsSchema: z.ZodObject<{
|
|
967
955
|
totalCalls: z.ZodNumber;
|
|
@@ -995,14 +983,14 @@ export declare const callHistoryContract: {
|
|
|
995
983
|
notes: z.ZodOptional<z.ZodString>;
|
|
996
984
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
997
985
|
}, "strip", z.ZodTypeAny, {
|
|
998
|
-
rating: CallRating;
|
|
999
|
-
callType: CallType;
|
|
1000
986
|
assignmentId: string;
|
|
987
|
+
callType: CallType;
|
|
988
|
+
rating: CallRating;
|
|
1001
989
|
notes?: string | undefined;
|
|
1002
990
|
}, {
|
|
1003
|
-
rating: CallRating;
|
|
1004
|
-
callType: CallType;
|
|
1005
991
|
assignmentId: string;
|
|
992
|
+
callType: CallType;
|
|
993
|
+
rating: CallRating;
|
|
1006
994
|
notes?: string | undefined;
|
|
1007
995
|
}>;
|
|
1008
996
|
path: "/v2/call-history";
|
|
@@ -1119,11 +1107,11 @@ export declare const callHistoryContract: {
|
|
|
1119
1107
|
name: z.ZodString;
|
|
1120
1108
|
phoneNumber: z.ZodString;
|
|
1121
1109
|
}, "strip", z.ZodTypeAny, {
|
|
1122
|
-
phoneNumber: string;
|
|
1123
1110
|
name: string;
|
|
1124
|
-
}, {
|
|
1125
1111
|
phoneNumber: string;
|
|
1112
|
+
}, {
|
|
1126
1113
|
name: string;
|
|
1114
|
+
phoneNumber: string;
|
|
1127
1115
|
}>>;
|
|
1128
1116
|
agentId: z.ZodNullable<z.ZodString>;
|
|
1129
1117
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1163,50 +1151,46 @@ export declare const callHistoryContract: {
|
|
|
1163
1151
|
firstName: z.ZodString;
|
|
1164
1152
|
lastName: z.ZodString;
|
|
1165
1153
|
}, "strip", z.ZodTypeAny, {
|
|
1166
|
-
lastName: string;
|
|
1167
|
-
firstName: string;
|
|
1168
1154
|
id: string;
|
|
1169
|
-
}, {
|
|
1170
|
-
lastName: string;
|
|
1171
1155
|
firstName: string;
|
|
1156
|
+
lastName: string;
|
|
1157
|
+
}, {
|
|
1172
1158
|
id: string;
|
|
1159
|
+
firstName: string;
|
|
1160
|
+
lastName: string;
|
|
1173
1161
|
}>, "many">>;
|
|
1174
1162
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1175
1163
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1176
1164
|
}, "strip", z.ZodTypeAny, {
|
|
1177
|
-
|
|
1165
|
+
id: string;
|
|
1178
1166
|
firstName: string;
|
|
1167
|
+
lastName: string;
|
|
1179
1168
|
email: string;
|
|
1180
|
-
createdAt: string;
|
|
1181
|
-
id: string;
|
|
1182
1169
|
phoneNumbers: {
|
|
1183
1170
|
id: string;
|
|
1184
1171
|
phoneNumber: string;
|
|
1185
1172
|
isPrimary: boolean;
|
|
1186
1173
|
description?: string | null | undefined;
|
|
1187
1174
|
}[];
|
|
1175
|
+
createdAt: string;
|
|
1188
1176
|
updatedAt: string;
|
|
1177
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1189
1178
|
office?: {
|
|
1190
1179
|
id: string;
|
|
1191
1180
|
name: string;
|
|
1192
1181
|
} | null | undefined;
|
|
1193
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1194
1182
|
canImpersonateUsers?: {
|
|
1195
|
-
lastName: string;
|
|
1196
|
-
firstName: string;
|
|
1197
1183
|
id: string;
|
|
1184
|
+
firstName: string;
|
|
1185
|
+
lastName: string;
|
|
1198
1186
|
}[] | undefined;
|
|
1199
1187
|
}, {
|
|
1200
|
-
|
|
1188
|
+
id: string;
|
|
1201
1189
|
firstName: string;
|
|
1190
|
+
lastName: string;
|
|
1202
1191
|
email: string;
|
|
1203
1192
|
createdAt: string | Date;
|
|
1204
|
-
id: string;
|
|
1205
1193
|
updatedAt: string | Date;
|
|
1206
|
-
office?: {
|
|
1207
|
-
id: string;
|
|
1208
|
-
name: string;
|
|
1209
|
-
} | null | undefined;
|
|
1210
1194
|
phoneNumbers?: {
|
|
1211
1195
|
id: string;
|
|
1212
1196
|
phoneNumber: string;
|
|
@@ -1214,10 +1198,14 @@ export declare const callHistoryContract: {
|
|
|
1214
1198
|
isPrimary?: boolean | undefined;
|
|
1215
1199
|
}[] | undefined;
|
|
1216
1200
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1201
|
+
office?: {
|
|
1202
|
+
id: string;
|
|
1203
|
+
name: string;
|
|
1204
|
+
} | null | undefined;
|
|
1217
1205
|
canImpersonateUsers?: {
|
|
1218
|
-
lastName: string;
|
|
1219
|
-
firstName: string;
|
|
1220
1206
|
id: string;
|
|
1207
|
+
firstName: string;
|
|
1208
|
+
lastName: string;
|
|
1221
1209
|
}[] | undefined;
|
|
1222
1210
|
}>>;
|
|
1223
1211
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1230,83 +1218,83 @@ export declare const callHistoryContract: {
|
|
|
1230
1218
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1231
1219
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1232
1220
|
}, "strip", z.ZodTypeAny, {
|
|
1233
|
-
createdAt: string;
|
|
1234
1221
|
id: string;
|
|
1235
1222
|
name: string;
|
|
1223
|
+
createdAt: string;
|
|
1236
1224
|
updatedAt: string;
|
|
1237
1225
|
}, {
|
|
1238
|
-
createdAt: string | Date;
|
|
1239
1226
|
id: string;
|
|
1240
1227
|
name: string;
|
|
1228
|
+
createdAt: string | Date;
|
|
1241
1229
|
updatedAt: string | Date;
|
|
1242
1230
|
}>>>;
|
|
1243
1231
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1244
1232
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1245
1233
|
}, "strip", z.ZodTypeAny, {
|
|
1246
|
-
createdAt: string;
|
|
1247
1234
|
id: string;
|
|
1235
|
+
leadId: string;
|
|
1236
|
+
agentId: string | null;
|
|
1248
1237
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1238
|
+
createdAt: string;
|
|
1249
1239
|
updatedAt: string;
|
|
1250
|
-
agentId: string | null;
|
|
1251
|
-
leadId: string;
|
|
1252
1240
|
assignedAt: string;
|
|
1253
1241
|
assignedBy: string | null;
|
|
1254
1242
|
companyId: string | null;
|
|
1243
|
+
lead?: {
|
|
1244
|
+
name: string;
|
|
1245
|
+
phoneNumber: string;
|
|
1246
|
+
} | undefined;
|
|
1255
1247
|
agent?: {
|
|
1256
|
-
|
|
1248
|
+
id: string;
|
|
1257
1249
|
firstName: string;
|
|
1250
|
+
lastName: string;
|
|
1258
1251
|
email: string;
|
|
1259
|
-
createdAt: string;
|
|
1260
|
-
id: string;
|
|
1261
1252
|
phoneNumbers: {
|
|
1262
1253
|
id: string;
|
|
1263
1254
|
phoneNumber: string;
|
|
1264
1255
|
isPrimary: boolean;
|
|
1265
1256
|
description?: string | null | undefined;
|
|
1266
1257
|
}[];
|
|
1258
|
+
createdAt: string;
|
|
1267
1259
|
updatedAt: string;
|
|
1260
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1268
1261
|
office?: {
|
|
1269
1262
|
id: string;
|
|
1270
1263
|
name: string;
|
|
1271
1264
|
} | null | undefined;
|
|
1272
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1273
1265
|
canImpersonateUsers?: {
|
|
1274
|
-
lastName: string;
|
|
1275
|
-
firstName: string;
|
|
1276
1266
|
id: string;
|
|
1267
|
+
firstName: string;
|
|
1268
|
+
lastName: string;
|
|
1277
1269
|
}[] | undefined;
|
|
1278
1270
|
} | undefined;
|
|
1279
|
-
lead?: {
|
|
1280
|
-
phoneNumber: string;
|
|
1281
|
-
name: string;
|
|
1282
|
-
} | undefined;
|
|
1283
1271
|
company?: {
|
|
1284
|
-
createdAt: string;
|
|
1285
1272
|
id: string;
|
|
1286
1273
|
name: string;
|
|
1274
|
+
createdAt: string;
|
|
1287
1275
|
updatedAt: string;
|
|
1288
1276
|
} | null | undefined;
|
|
1289
1277
|
}, {
|
|
1290
|
-
createdAt: string | Date;
|
|
1291
1278
|
id: string;
|
|
1279
|
+
leadId: string;
|
|
1280
|
+
agentId: string | null;
|
|
1292
1281
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1282
|
+
createdAt: string | Date;
|
|
1293
1283
|
updatedAt: string | Date;
|
|
1294
|
-
agentId: string | null;
|
|
1295
|
-
leadId: string;
|
|
1296
1284
|
assignedAt: string | Date;
|
|
1297
1285
|
assignedBy: string | null;
|
|
1298
1286
|
companyId: string | null;
|
|
1287
|
+
lead?: {
|
|
1288
|
+
name: string;
|
|
1289
|
+
phoneNumber: string;
|
|
1290
|
+
} | undefined;
|
|
1299
1291
|
agent?: {
|
|
1300
|
-
|
|
1292
|
+
id: string;
|
|
1301
1293
|
firstName: string;
|
|
1294
|
+
lastName: string;
|
|
1302
1295
|
email: string;
|
|
1303
1296
|
createdAt: string | Date;
|
|
1304
|
-
id: string;
|
|
1305
1297
|
updatedAt: string | Date;
|
|
1306
|
-
office?: {
|
|
1307
|
-
id: string;
|
|
1308
|
-
name: string;
|
|
1309
|
-
} | null | undefined;
|
|
1310
1298
|
phoneNumbers?: {
|
|
1311
1299
|
id: string;
|
|
1312
1300
|
phoneNumber: string;
|
|
@@ -1314,24 +1302,23 @@ export declare const callHistoryContract: {
|
|
|
1314
1302
|
isPrimary?: boolean | undefined;
|
|
1315
1303
|
}[] | undefined;
|
|
1316
1304
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1305
|
+
office?: {
|
|
1306
|
+
id: string;
|
|
1307
|
+
name: string;
|
|
1308
|
+
} | null | undefined;
|
|
1317
1309
|
canImpersonateUsers?: {
|
|
1318
|
-
lastName: string;
|
|
1319
|
-
firstName: string;
|
|
1320
1310
|
id: string;
|
|
1311
|
+
firstName: string;
|
|
1312
|
+
lastName: string;
|
|
1321
1313
|
}[] | undefined;
|
|
1322
1314
|
} | undefined;
|
|
1323
|
-
lead?: {
|
|
1324
|
-
phoneNumber: string;
|
|
1325
|
-
name: string;
|
|
1326
|
-
} | undefined;
|
|
1327
1315
|
company?: {
|
|
1328
|
-
createdAt: string | Date;
|
|
1329
1316
|
id: string;
|
|
1330
1317
|
name: string;
|
|
1318
|
+
createdAt: string | Date;
|
|
1331
1319
|
updatedAt: string | Date;
|
|
1332
1320
|
} | null | undefined;
|
|
1333
1321
|
}>>>;
|
|
1334
|
-
callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1335
1322
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1336
1323
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
1337
1324
|
rating: z.ZodNativeEnum<typeof CallRating>;
|
|
@@ -1340,97 +1327,95 @@ export declare const callHistoryContract: {
|
|
|
1340
1327
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1341
1328
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1342
1329
|
}, "strip", z.ZodTypeAny, {
|
|
1343
|
-
createdAt: string;
|
|
1344
1330
|
id: string;
|
|
1331
|
+
assignmentId: string;
|
|
1332
|
+
createdAt: string;
|
|
1345
1333
|
updatedAt: string;
|
|
1346
|
-
rating: CallRating;
|
|
1347
|
-
notes: string | null;
|
|
1348
1334
|
callType: CallType;
|
|
1349
|
-
assignmentId: string;
|
|
1350
|
-
callDate: string;
|
|
1351
1335
|
leadSource: LeadSource;
|
|
1336
|
+
rating: CallRating;
|
|
1352
1337
|
ratingWeight: number;
|
|
1353
|
-
|
|
1338
|
+
notes: string | null;
|
|
1354
1339
|
leadId?: string | undefined;
|
|
1340
|
+
agentId?: string | undefined;
|
|
1355
1341
|
assignment?: {
|
|
1356
|
-
createdAt: string;
|
|
1357
1342
|
id: string;
|
|
1343
|
+
leadId: string;
|
|
1344
|
+
agentId: string | null;
|
|
1358
1345
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1346
|
+
createdAt: string;
|
|
1359
1347
|
updatedAt: string;
|
|
1360
|
-
agentId: string | null;
|
|
1361
|
-
leadId: string;
|
|
1362
1348
|
assignedAt: string;
|
|
1363
1349
|
assignedBy: string | null;
|
|
1364
1350
|
companyId: string | null;
|
|
1351
|
+
lead?: {
|
|
1352
|
+
name: string;
|
|
1353
|
+
phoneNumber: string;
|
|
1354
|
+
} | undefined;
|
|
1365
1355
|
agent?: {
|
|
1366
|
-
|
|
1356
|
+
id: string;
|
|
1367
1357
|
firstName: string;
|
|
1358
|
+
lastName: string;
|
|
1368
1359
|
email: string;
|
|
1369
|
-
createdAt: string;
|
|
1370
|
-
id: string;
|
|
1371
1360
|
phoneNumbers: {
|
|
1372
1361
|
id: string;
|
|
1373
1362
|
phoneNumber: string;
|
|
1374
1363
|
isPrimary: boolean;
|
|
1375
1364
|
description?: string | null | undefined;
|
|
1376
1365
|
}[];
|
|
1366
|
+
createdAt: string;
|
|
1377
1367
|
updatedAt: string;
|
|
1368
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1378
1369
|
office?: {
|
|
1379
1370
|
id: string;
|
|
1380
1371
|
name: string;
|
|
1381
1372
|
} | null | undefined;
|
|
1382
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1383
1373
|
canImpersonateUsers?: {
|
|
1384
|
-
lastName: string;
|
|
1385
|
-
firstName: string;
|
|
1386
1374
|
id: string;
|
|
1375
|
+
firstName: string;
|
|
1376
|
+
lastName: string;
|
|
1387
1377
|
}[] | undefined;
|
|
1388
1378
|
} | undefined;
|
|
1389
|
-
lead?: {
|
|
1390
|
-
phoneNumber: string;
|
|
1391
|
-
name: string;
|
|
1392
|
-
} | undefined;
|
|
1393
1379
|
company?: {
|
|
1394
|
-
createdAt: string;
|
|
1395
1380
|
id: string;
|
|
1396
1381
|
name: string;
|
|
1382
|
+
createdAt: string;
|
|
1397
1383
|
updatedAt: string;
|
|
1398
1384
|
} | null | undefined;
|
|
1399
1385
|
} | null | undefined;
|
|
1400
1386
|
}, {
|
|
1401
|
-
createdAt: string | Date;
|
|
1402
1387
|
id: string;
|
|
1388
|
+
assignmentId: string;
|
|
1389
|
+
createdAt: string | Date;
|
|
1403
1390
|
updatedAt: string | Date;
|
|
1404
|
-
rating: CallRating;
|
|
1405
|
-
notes: string | null;
|
|
1406
1391
|
callType: CallType;
|
|
1407
|
-
assignmentId: string;
|
|
1408
|
-
callDate: string | Date;
|
|
1409
1392
|
leadSource: LeadSource;
|
|
1393
|
+
rating: CallRating;
|
|
1410
1394
|
ratingWeight: number;
|
|
1411
|
-
|
|
1395
|
+
notes: string | null;
|
|
1412
1396
|
leadId?: string | undefined;
|
|
1397
|
+
agentId?: string | undefined;
|
|
1413
1398
|
assignment?: {
|
|
1414
|
-
createdAt: string | Date;
|
|
1415
1399
|
id: string;
|
|
1400
|
+
leadId: string;
|
|
1401
|
+
agentId: string | null;
|
|
1416
1402
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1403
|
+
createdAt: string | Date;
|
|
1417
1404
|
updatedAt: string | Date;
|
|
1418
|
-
agentId: string | null;
|
|
1419
|
-
leadId: string;
|
|
1420
1405
|
assignedAt: string | Date;
|
|
1421
1406
|
assignedBy: string | null;
|
|
1422
1407
|
companyId: string | null;
|
|
1408
|
+
lead?: {
|
|
1409
|
+
name: string;
|
|
1410
|
+
phoneNumber: string;
|
|
1411
|
+
} | undefined;
|
|
1423
1412
|
agent?: {
|
|
1424
|
-
|
|
1413
|
+
id: string;
|
|
1425
1414
|
firstName: string;
|
|
1415
|
+
lastName: string;
|
|
1426
1416
|
email: string;
|
|
1427
1417
|
createdAt: string | Date;
|
|
1428
|
-
id: string;
|
|
1429
1418
|
updatedAt: string | Date;
|
|
1430
|
-
office?: {
|
|
1431
|
-
id: string;
|
|
1432
|
-
name: string;
|
|
1433
|
-
} | null | undefined;
|
|
1434
1419
|
phoneNumbers?: {
|
|
1435
1420
|
id: string;
|
|
1436
1421
|
phoneNumber: string;
|
|
@@ -1438,20 +1423,20 @@ export declare const callHistoryContract: {
|
|
|
1438
1423
|
isPrimary?: boolean | undefined;
|
|
1439
1424
|
}[] | undefined;
|
|
1440
1425
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1426
|
+
office?: {
|
|
1427
|
+
id: string;
|
|
1428
|
+
name: string;
|
|
1429
|
+
} | null | undefined;
|
|
1441
1430
|
canImpersonateUsers?: {
|
|
1442
|
-
lastName: string;
|
|
1443
|
-
firstName: string;
|
|
1444
1431
|
id: string;
|
|
1432
|
+
firstName: string;
|
|
1433
|
+
lastName: string;
|
|
1445
1434
|
}[] | undefined;
|
|
1446
1435
|
} | undefined;
|
|
1447
|
-
lead?: {
|
|
1448
|
-
phoneNumber: string;
|
|
1449
|
-
name: string;
|
|
1450
|
-
} | undefined;
|
|
1451
1436
|
company?: {
|
|
1452
|
-
createdAt: string | Date;
|
|
1453
1437
|
id: string;
|
|
1454
1438
|
name: string;
|
|
1439
|
+
createdAt: string | Date;
|
|
1455
1440
|
updatedAt: string | Date;
|
|
1456
1441
|
} | null | undefined;
|
|
1457
1442
|
} | null | undefined;
|
|
@@ -1491,7 +1476,7 @@ export declare const callHistoryContract: {
|
|
|
1491
1476
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1492
1477
|
page: z.ZodDefault<z.ZodNumber>;
|
|
1493
1478
|
} & {
|
|
1494
|
-
|
|
1479
|
+
createdAt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1495
1480
|
from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1496
1481
|
to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1497
1482
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1522,41 +1507,41 @@ export declare const callHistoryContract: {
|
|
|
1522
1507
|
}, "strip", z.ZodTypeAny, {
|
|
1523
1508
|
limit: number;
|
|
1524
1509
|
page: number;
|
|
1525
|
-
phoneNumber?: string | undefined;
|
|
1526
|
-
sortBy?: CallHistorySortableFields | undefined;
|
|
1527
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1528
1510
|
agentId?: string | undefined;
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
to?: CallRating | null | undefined;
|
|
1532
|
-
} | null | undefined;
|
|
1533
|
-
callType?: CallType | undefined;
|
|
1534
|
-
companyId?: string | undefined;
|
|
1535
|
-
callDate?: {
|
|
1511
|
+
phoneNumber?: string | undefined;
|
|
1512
|
+
createdAt?: {
|
|
1536
1513
|
from?: string | null | undefined;
|
|
1537
1514
|
to?: string | null | undefined;
|
|
1538
1515
|
} | null | undefined;
|
|
1516
|
+
companyId?: string | undefined;
|
|
1517
|
+
callType?: CallType | undefined;
|
|
1539
1518
|
leadSource?: LeadSource | undefined;
|
|
1519
|
+
rating?: {
|
|
1520
|
+
from?: CallRating | null | undefined;
|
|
1521
|
+
to?: CallRating | null | undefined;
|
|
1522
|
+
} | null | undefined;
|
|
1540
1523
|
leadName?: string | undefined;
|
|
1541
|
-
}, {
|
|
1542
|
-
phoneNumber?: string | undefined;
|
|
1543
|
-
limit?: number | undefined;
|
|
1544
|
-
page?: number | undefined;
|
|
1545
1524
|
sortBy?: CallHistorySortableFields | undefined;
|
|
1546
1525
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1526
|
+
}, {
|
|
1547
1527
|
agentId?: string | undefined;
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
to?: unknown;
|
|
1551
|
-
} | null | undefined;
|
|
1552
|
-
callType?: CallType | undefined;
|
|
1553
|
-
companyId?: string | undefined;
|
|
1554
|
-
callDate?: {
|
|
1528
|
+
phoneNumber?: string | undefined;
|
|
1529
|
+
createdAt?: {
|
|
1555
1530
|
from?: string | null | undefined;
|
|
1556
1531
|
to?: string | null | undefined;
|
|
1557
1532
|
} | null | undefined;
|
|
1533
|
+
companyId?: string | undefined;
|
|
1534
|
+
callType?: CallType | undefined;
|
|
1558
1535
|
leadSource?: LeadSource | undefined;
|
|
1536
|
+
rating?: {
|
|
1537
|
+
from?: unknown;
|
|
1538
|
+
to?: unknown;
|
|
1539
|
+
} | null | undefined;
|
|
1540
|
+
limit?: number | undefined;
|
|
1541
|
+
page?: number | undefined;
|
|
1559
1542
|
leadName?: string | undefined;
|
|
1543
|
+
sortBy?: CallHistorySortableFields | undefined;
|
|
1544
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1560
1545
|
}>;
|
|
1561
1546
|
summary: "Get call history records";
|
|
1562
1547
|
method: "GET";
|
|
@@ -1675,11 +1660,11 @@ export declare const callHistoryContract: {
|
|
|
1675
1660
|
name: z.ZodString;
|
|
1676
1661
|
phoneNumber: z.ZodString;
|
|
1677
1662
|
}, "strip", z.ZodTypeAny, {
|
|
1678
|
-
phoneNumber: string;
|
|
1679
1663
|
name: string;
|
|
1680
|
-
}, {
|
|
1681
1664
|
phoneNumber: string;
|
|
1665
|
+
}, {
|
|
1682
1666
|
name: string;
|
|
1667
|
+
phoneNumber: string;
|
|
1683
1668
|
}>>;
|
|
1684
1669
|
agentId: z.ZodNullable<z.ZodString>;
|
|
1685
1670
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1719,50 +1704,46 @@ export declare const callHistoryContract: {
|
|
|
1719
1704
|
firstName: z.ZodString;
|
|
1720
1705
|
lastName: z.ZodString;
|
|
1721
1706
|
}, "strip", z.ZodTypeAny, {
|
|
1722
|
-
lastName: string;
|
|
1723
|
-
firstName: string;
|
|
1724
1707
|
id: string;
|
|
1725
|
-
}, {
|
|
1726
|
-
lastName: string;
|
|
1727
1708
|
firstName: string;
|
|
1709
|
+
lastName: string;
|
|
1710
|
+
}, {
|
|
1728
1711
|
id: string;
|
|
1712
|
+
firstName: string;
|
|
1713
|
+
lastName: string;
|
|
1729
1714
|
}>, "many">>;
|
|
1730
1715
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1731
1716
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1732
1717
|
}, "strip", z.ZodTypeAny, {
|
|
1733
|
-
|
|
1718
|
+
id: string;
|
|
1734
1719
|
firstName: string;
|
|
1720
|
+
lastName: string;
|
|
1735
1721
|
email: string;
|
|
1736
|
-
createdAt: string;
|
|
1737
|
-
id: string;
|
|
1738
1722
|
phoneNumbers: {
|
|
1739
1723
|
id: string;
|
|
1740
1724
|
phoneNumber: string;
|
|
1741
1725
|
isPrimary: boolean;
|
|
1742
1726
|
description?: string | null | undefined;
|
|
1743
1727
|
}[];
|
|
1728
|
+
createdAt: string;
|
|
1744
1729
|
updatedAt: string;
|
|
1730
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1745
1731
|
office?: {
|
|
1746
1732
|
id: string;
|
|
1747
1733
|
name: string;
|
|
1748
1734
|
} | null | undefined;
|
|
1749
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1750
1735
|
canImpersonateUsers?: {
|
|
1751
|
-
lastName: string;
|
|
1752
|
-
firstName: string;
|
|
1753
1736
|
id: string;
|
|
1737
|
+
firstName: string;
|
|
1738
|
+
lastName: string;
|
|
1754
1739
|
}[] | undefined;
|
|
1755
1740
|
}, {
|
|
1756
|
-
|
|
1741
|
+
id: string;
|
|
1757
1742
|
firstName: string;
|
|
1743
|
+
lastName: string;
|
|
1758
1744
|
email: string;
|
|
1759
1745
|
createdAt: string | Date;
|
|
1760
|
-
id: string;
|
|
1761
1746
|
updatedAt: string | Date;
|
|
1762
|
-
office?: {
|
|
1763
|
-
id: string;
|
|
1764
|
-
name: string;
|
|
1765
|
-
} | null | undefined;
|
|
1766
1747
|
phoneNumbers?: {
|
|
1767
1748
|
id: string;
|
|
1768
1749
|
phoneNumber: string;
|
|
@@ -1770,10 +1751,14 @@ export declare const callHistoryContract: {
|
|
|
1770
1751
|
isPrimary?: boolean | undefined;
|
|
1771
1752
|
}[] | undefined;
|
|
1772
1753
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1754
|
+
office?: {
|
|
1755
|
+
id: string;
|
|
1756
|
+
name: string;
|
|
1757
|
+
} | null | undefined;
|
|
1773
1758
|
canImpersonateUsers?: {
|
|
1774
|
-
lastName: string;
|
|
1775
|
-
firstName: string;
|
|
1776
1759
|
id: string;
|
|
1760
|
+
firstName: string;
|
|
1761
|
+
lastName: string;
|
|
1777
1762
|
}[] | undefined;
|
|
1778
1763
|
}>>;
|
|
1779
1764
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1786,83 +1771,83 @@ export declare const callHistoryContract: {
|
|
|
1786
1771
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1787
1772
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1788
1773
|
}, "strip", z.ZodTypeAny, {
|
|
1789
|
-
createdAt: string;
|
|
1790
1774
|
id: string;
|
|
1791
1775
|
name: string;
|
|
1776
|
+
createdAt: string;
|
|
1792
1777
|
updatedAt: string;
|
|
1793
1778
|
}, {
|
|
1794
|
-
createdAt: string | Date;
|
|
1795
1779
|
id: string;
|
|
1796
1780
|
name: string;
|
|
1781
|
+
createdAt: string | Date;
|
|
1797
1782
|
updatedAt: string | Date;
|
|
1798
1783
|
}>>>;
|
|
1799
1784
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1800
1785
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1801
1786
|
}, "strip", z.ZodTypeAny, {
|
|
1802
|
-
createdAt: string;
|
|
1803
1787
|
id: string;
|
|
1788
|
+
leadId: string;
|
|
1789
|
+
agentId: string | null;
|
|
1804
1790
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1791
|
+
createdAt: string;
|
|
1805
1792
|
updatedAt: string;
|
|
1806
|
-
agentId: string | null;
|
|
1807
|
-
leadId: string;
|
|
1808
1793
|
assignedAt: string;
|
|
1809
1794
|
assignedBy: string | null;
|
|
1810
1795
|
companyId: string | null;
|
|
1796
|
+
lead?: {
|
|
1797
|
+
name: string;
|
|
1798
|
+
phoneNumber: string;
|
|
1799
|
+
} | undefined;
|
|
1811
1800
|
agent?: {
|
|
1812
|
-
|
|
1801
|
+
id: string;
|
|
1813
1802
|
firstName: string;
|
|
1803
|
+
lastName: string;
|
|
1814
1804
|
email: string;
|
|
1815
|
-
createdAt: string;
|
|
1816
|
-
id: string;
|
|
1817
1805
|
phoneNumbers: {
|
|
1818
1806
|
id: string;
|
|
1819
1807
|
phoneNumber: string;
|
|
1820
1808
|
isPrimary: boolean;
|
|
1821
1809
|
description?: string | null | undefined;
|
|
1822
1810
|
}[];
|
|
1811
|
+
createdAt: string;
|
|
1823
1812
|
updatedAt: string;
|
|
1813
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1824
1814
|
office?: {
|
|
1825
1815
|
id: string;
|
|
1826
1816
|
name: string;
|
|
1827
1817
|
} | null | undefined;
|
|
1828
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1829
1818
|
canImpersonateUsers?: {
|
|
1830
|
-
lastName: string;
|
|
1831
|
-
firstName: string;
|
|
1832
1819
|
id: string;
|
|
1820
|
+
firstName: string;
|
|
1821
|
+
lastName: string;
|
|
1833
1822
|
}[] | undefined;
|
|
1834
1823
|
} | undefined;
|
|
1835
|
-
lead?: {
|
|
1836
|
-
phoneNumber: string;
|
|
1837
|
-
name: string;
|
|
1838
|
-
} | undefined;
|
|
1839
1824
|
company?: {
|
|
1840
|
-
createdAt: string;
|
|
1841
1825
|
id: string;
|
|
1842
1826
|
name: string;
|
|
1827
|
+
createdAt: string;
|
|
1843
1828
|
updatedAt: string;
|
|
1844
1829
|
} | null | undefined;
|
|
1845
1830
|
}, {
|
|
1846
|
-
createdAt: string | Date;
|
|
1847
1831
|
id: string;
|
|
1832
|
+
leadId: string;
|
|
1833
|
+
agentId: string | null;
|
|
1848
1834
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1835
|
+
createdAt: string | Date;
|
|
1849
1836
|
updatedAt: string | Date;
|
|
1850
|
-
agentId: string | null;
|
|
1851
|
-
leadId: string;
|
|
1852
1837
|
assignedAt: string | Date;
|
|
1853
1838
|
assignedBy: string | null;
|
|
1854
1839
|
companyId: string | null;
|
|
1840
|
+
lead?: {
|
|
1841
|
+
name: string;
|
|
1842
|
+
phoneNumber: string;
|
|
1843
|
+
} | undefined;
|
|
1855
1844
|
agent?: {
|
|
1856
|
-
|
|
1845
|
+
id: string;
|
|
1857
1846
|
firstName: string;
|
|
1847
|
+
lastName: string;
|
|
1858
1848
|
email: string;
|
|
1859
1849
|
createdAt: string | Date;
|
|
1860
|
-
id: string;
|
|
1861
1850
|
updatedAt: string | Date;
|
|
1862
|
-
office?: {
|
|
1863
|
-
id: string;
|
|
1864
|
-
name: string;
|
|
1865
|
-
} | null | undefined;
|
|
1866
1851
|
phoneNumbers?: {
|
|
1867
1852
|
id: string;
|
|
1868
1853
|
phoneNumber: string;
|
|
@@ -1870,24 +1855,23 @@ export declare const callHistoryContract: {
|
|
|
1870
1855
|
isPrimary?: boolean | undefined;
|
|
1871
1856
|
}[] | undefined;
|
|
1872
1857
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1858
|
+
office?: {
|
|
1859
|
+
id: string;
|
|
1860
|
+
name: string;
|
|
1861
|
+
} | null | undefined;
|
|
1873
1862
|
canImpersonateUsers?: {
|
|
1874
|
-
lastName: string;
|
|
1875
|
-
firstName: string;
|
|
1876
1863
|
id: string;
|
|
1864
|
+
firstName: string;
|
|
1865
|
+
lastName: string;
|
|
1877
1866
|
}[] | undefined;
|
|
1878
1867
|
} | undefined;
|
|
1879
|
-
lead?: {
|
|
1880
|
-
phoneNumber: string;
|
|
1881
|
-
name: string;
|
|
1882
|
-
} | undefined;
|
|
1883
1868
|
company?: {
|
|
1884
|
-
createdAt: string | Date;
|
|
1885
1869
|
id: string;
|
|
1886
1870
|
name: string;
|
|
1871
|
+
createdAt: string | Date;
|
|
1887
1872
|
updatedAt: string | Date;
|
|
1888
1873
|
} | null | undefined;
|
|
1889
1874
|
}>>>;
|
|
1890
|
-
callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1891
1875
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
1892
1876
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
1893
1877
|
rating: z.ZodNativeEnum<typeof CallRating>;
|
|
@@ -1896,97 +1880,95 @@ export declare const callHistoryContract: {
|
|
|
1896
1880
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1897
1881
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1898
1882
|
}, "strip", z.ZodTypeAny, {
|
|
1899
|
-
createdAt: string;
|
|
1900
1883
|
id: string;
|
|
1884
|
+
assignmentId: string;
|
|
1885
|
+
createdAt: string;
|
|
1901
1886
|
updatedAt: string;
|
|
1902
|
-
rating: CallRating;
|
|
1903
|
-
notes: string | null;
|
|
1904
1887
|
callType: CallType;
|
|
1905
|
-
assignmentId: string;
|
|
1906
|
-
callDate: string;
|
|
1907
1888
|
leadSource: LeadSource;
|
|
1889
|
+
rating: CallRating;
|
|
1908
1890
|
ratingWeight: number;
|
|
1909
|
-
|
|
1891
|
+
notes: string | null;
|
|
1910
1892
|
leadId?: string | undefined;
|
|
1893
|
+
agentId?: string | undefined;
|
|
1911
1894
|
assignment?: {
|
|
1912
|
-
createdAt: string;
|
|
1913
1895
|
id: string;
|
|
1896
|
+
leadId: string;
|
|
1897
|
+
agentId: string | null;
|
|
1914
1898
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1899
|
+
createdAt: string;
|
|
1915
1900
|
updatedAt: string;
|
|
1916
|
-
agentId: string | null;
|
|
1917
|
-
leadId: string;
|
|
1918
1901
|
assignedAt: string;
|
|
1919
1902
|
assignedBy: string | null;
|
|
1920
1903
|
companyId: string | null;
|
|
1904
|
+
lead?: {
|
|
1905
|
+
name: string;
|
|
1906
|
+
phoneNumber: string;
|
|
1907
|
+
} | undefined;
|
|
1921
1908
|
agent?: {
|
|
1922
|
-
|
|
1909
|
+
id: string;
|
|
1923
1910
|
firstName: string;
|
|
1911
|
+
lastName: string;
|
|
1924
1912
|
email: string;
|
|
1925
|
-
createdAt: string;
|
|
1926
|
-
id: string;
|
|
1927
1913
|
phoneNumbers: {
|
|
1928
1914
|
id: string;
|
|
1929
1915
|
phoneNumber: string;
|
|
1930
1916
|
isPrimary: boolean;
|
|
1931
1917
|
description?: string | null | undefined;
|
|
1932
1918
|
}[];
|
|
1919
|
+
createdAt: string;
|
|
1933
1920
|
updatedAt: string;
|
|
1921
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1934
1922
|
office?: {
|
|
1935
1923
|
id: string;
|
|
1936
1924
|
name: string;
|
|
1937
1925
|
} | null | undefined;
|
|
1938
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1939
1926
|
canImpersonateUsers?: {
|
|
1940
|
-
lastName: string;
|
|
1941
|
-
firstName: string;
|
|
1942
1927
|
id: string;
|
|
1928
|
+
firstName: string;
|
|
1929
|
+
lastName: string;
|
|
1943
1930
|
}[] | undefined;
|
|
1944
1931
|
} | undefined;
|
|
1945
|
-
lead?: {
|
|
1946
|
-
phoneNumber: string;
|
|
1947
|
-
name: string;
|
|
1948
|
-
} | undefined;
|
|
1949
1932
|
company?: {
|
|
1950
|
-
createdAt: string;
|
|
1951
1933
|
id: string;
|
|
1952
1934
|
name: string;
|
|
1935
|
+
createdAt: string;
|
|
1953
1936
|
updatedAt: string;
|
|
1954
1937
|
} | null | undefined;
|
|
1955
1938
|
} | null | undefined;
|
|
1956
1939
|
}, {
|
|
1957
|
-
createdAt: string | Date;
|
|
1958
1940
|
id: string;
|
|
1941
|
+
assignmentId: string;
|
|
1942
|
+
createdAt: string | Date;
|
|
1959
1943
|
updatedAt: string | Date;
|
|
1960
|
-
rating: CallRating;
|
|
1961
|
-
notes: string | null;
|
|
1962
1944
|
callType: CallType;
|
|
1963
|
-
assignmentId: string;
|
|
1964
|
-
callDate: string | Date;
|
|
1965
1945
|
leadSource: LeadSource;
|
|
1946
|
+
rating: CallRating;
|
|
1966
1947
|
ratingWeight: number;
|
|
1967
|
-
|
|
1948
|
+
notes: string | null;
|
|
1968
1949
|
leadId?: string | undefined;
|
|
1950
|
+
agentId?: string | undefined;
|
|
1969
1951
|
assignment?: {
|
|
1970
|
-
createdAt: string | Date;
|
|
1971
1952
|
id: string;
|
|
1953
|
+
leadId: string;
|
|
1954
|
+
agentId: string | null;
|
|
1972
1955
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1956
|
+
createdAt: string | Date;
|
|
1973
1957
|
updatedAt: string | Date;
|
|
1974
|
-
agentId: string | null;
|
|
1975
|
-
leadId: string;
|
|
1976
1958
|
assignedAt: string | Date;
|
|
1977
1959
|
assignedBy: string | null;
|
|
1978
1960
|
companyId: string | null;
|
|
1961
|
+
lead?: {
|
|
1962
|
+
name: string;
|
|
1963
|
+
phoneNumber: string;
|
|
1964
|
+
} | undefined;
|
|
1979
1965
|
agent?: {
|
|
1980
|
-
|
|
1966
|
+
id: string;
|
|
1981
1967
|
firstName: string;
|
|
1968
|
+
lastName: string;
|
|
1982
1969
|
email: string;
|
|
1983
1970
|
createdAt: string | Date;
|
|
1984
|
-
id: string;
|
|
1985
1971
|
updatedAt: string | Date;
|
|
1986
|
-
office?: {
|
|
1987
|
-
id: string;
|
|
1988
|
-
name: string;
|
|
1989
|
-
} | null | undefined;
|
|
1990
1972
|
phoneNumbers?: {
|
|
1991
1973
|
id: string;
|
|
1992
1974
|
phoneNumber: string;
|
|
@@ -1994,20 +1976,20 @@ export declare const callHistoryContract: {
|
|
|
1994
1976
|
isPrimary?: boolean | undefined;
|
|
1995
1977
|
}[] | undefined;
|
|
1996
1978
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1979
|
+
office?: {
|
|
1980
|
+
id: string;
|
|
1981
|
+
name: string;
|
|
1982
|
+
} | null | undefined;
|
|
1997
1983
|
canImpersonateUsers?: {
|
|
1998
|
-
lastName: string;
|
|
1999
|
-
firstName: string;
|
|
2000
1984
|
id: string;
|
|
1985
|
+
firstName: string;
|
|
1986
|
+
lastName: string;
|
|
2001
1987
|
}[] | undefined;
|
|
2002
1988
|
} | undefined;
|
|
2003
|
-
lead?: {
|
|
2004
|
-
phoneNumber: string;
|
|
2005
|
-
name: string;
|
|
2006
|
-
} | undefined;
|
|
2007
1989
|
company?: {
|
|
2008
|
-
createdAt: string | Date;
|
|
2009
1990
|
id: string;
|
|
2010
1991
|
name: string;
|
|
1992
|
+
createdAt: string | Date;
|
|
2011
1993
|
updatedAt: string | Date;
|
|
2012
1994
|
} | null | undefined;
|
|
2013
1995
|
} | null | undefined;
|
|
@@ -2018,106 +2000,103 @@ export declare const callHistoryContract: {
|
|
|
2018
2000
|
currentPage: z.ZodNumber;
|
|
2019
2001
|
totalPages: z.ZodNumber;
|
|
2020
2002
|
}, "strip", z.ZodTypeAny, {
|
|
2021
|
-
limit: number;
|
|
2022
2003
|
items: {
|
|
2023
|
-
createdAt: string;
|
|
2024
2004
|
id: string;
|
|
2005
|
+
assignmentId: string;
|
|
2006
|
+
createdAt: string;
|
|
2025
2007
|
updatedAt: string;
|
|
2026
|
-
rating: CallRating;
|
|
2027
|
-
notes: string | null;
|
|
2028
2008
|
callType: CallType;
|
|
2029
|
-
assignmentId: string;
|
|
2030
|
-
callDate: string;
|
|
2031
2009
|
leadSource: LeadSource;
|
|
2010
|
+
rating: CallRating;
|
|
2032
2011
|
ratingWeight: number;
|
|
2033
|
-
|
|
2012
|
+
notes: string | null;
|
|
2034
2013
|
leadId?: string | undefined;
|
|
2014
|
+
agentId?: string | undefined;
|
|
2035
2015
|
assignment?: {
|
|
2036
|
-
createdAt: string;
|
|
2037
2016
|
id: string;
|
|
2017
|
+
leadId: string;
|
|
2018
|
+
agentId: string | null;
|
|
2038
2019
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2020
|
+
createdAt: string;
|
|
2039
2021
|
updatedAt: string;
|
|
2040
|
-
agentId: string | null;
|
|
2041
|
-
leadId: string;
|
|
2042
2022
|
assignedAt: string;
|
|
2043
2023
|
assignedBy: string | null;
|
|
2044
2024
|
companyId: string | null;
|
|
2025
|
+
lead?: {
|
|
2026
|
+
name: string;
|
|
2027
|
+
phoneNumber: string;
|
|
2028
|
+
} | undefined;
|
|
2045
2029
|
agent?: {
|
|
2046
|
-
|
|
2030
|
+
id: string;
|
|
2047
2031
|
firstName: string;
|
|
2032
|
+
lastName: string;
|
|
2048
2033
|
email: string;
|
|
2049
|
-
createdAt: string;
|
|
2050
|
-
id: string;
|
|
2051
2034
|
phoneNumbers: {
|
|
2052
2035
|
id: string;
|
|
2053
2036
|
phoneNumber: string;
|
|
2054
2037
|
isPrimary: boolean;
|
|
2055
2038
|
description?: string | null | undefined;
|
|
2056
2039
|
}[];
|
|
2040
|
+
createdAt: string;
|
|
2057
2041
|
updatedAt: string;
|
|
2042
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2058
2043
|
office?: {
|
|
2059
2044
|
id: string;
|
|
2060
2045
|
name: string;
|
|
2061
2046
|
} | null | undefined;
|
|
2062
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2063
2047
|
canImpersonateUsers?: {
|
|
2064
|
-
lastName: string;
|
|
2065
|
-
firstName: string;
|
|
2066
2048
|
id: string;
|
|
2049
|
+
firstName: string;
|
|
2050
|
+
lastName: string;
|
|
2067
2051
|
}[] | undefined;
|
|
2068
2052
|
} | undefined;
|
|
2069
|
-
lead?: {
|
|
2070
|
-
phoneNumber: string;
|
|
2071
|
-
name: string;
|
|
2072
|
-
} | undefined;
|
|
2073
2053
|
company?: {
|
|
2074
|
-
createdAt: string;
|
|
2075
2054
|
id: string;
|
|
2076
2055
|
name: string;
|
|
2056
|
+
createdAt: string;
|
|
2077
2057
|
updatedAt: string;
|
|
2078
2058
|
} | null | undefined;
|
|
2079
2059
|
} | null | undefined;
|
|
2080
2060
|
}[];
|
|
2081
2061
|
totalCount: number;
|
|
2062
|
+
limit: number;
|
|
2082
2063
|
skip: number;
|
|
2083
2064
|
currentPage: number;
|
|
2084
2065
|
totalPages: number;
|
|
2085
2066
|
}, {
|
|
2086
|
-
limit: number;
|
|
2087
2067
|
items: {
|
|
2088
|
-
createdAt: string | Date;
|
|
2089
2068
|
id: string;
|
|
2069
|
+
assignmentId: string;
|
|
2070
|
+
createdAt: string | Date;
|
|
2090
2071
|
updatedAt: string | Date;
|
|
2091
|
-
rating: CallRating;
|
|
2092
|
-
notes: string | null;
|
|
2093
2072
|
callType: CallType;
|
|
2094
|
-
assignmentId: string;
|
|
2095
|
-
callDate: string | Date;
|
|
2096
2073
|
leadSource: LeadSource;
|
|
2074
|
+
rating: CallRating;
|
|
2097
2075
|
ratingWeight: number;
|
|
2098
|
-
|
|
2076
|
+
notes: string | null;
|
|
2099
2077
|
leadId?: string | undefined;
|
|
2078
|
+
agentId?: string | undefined;
|
|
2100
2079
|
assignment?: {
|
|
2101
|
-
createdAt: string | Date;
|
|
2102
2080
|
id: string;
|
|
2081
|
+
leadId: string;
|
|
2082
|
+
agentId: string | null;
|
|
2103
2083
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2084
|
+
createdAt: string | Date;
|
|
2104
2085
|
updatedAt: string | Date;
|
|
2105
|
-
agentId: string | null;
|
|
2106
|
-
leadId: string;
|
|
2107
2086
|
assignedAt: string | Date;
|
|
2108
2087
|
assignedBy: string | null;
|
|
2109
2088
|
companyId: string | null;
|
|
2089
|
+
lead?: {
|
|
2090
|
+
name: string;
|
|
2091
|
+
phoneNumber: string;
|
|
2092
|
+
} | undefined;
|
|
2110
2093
|
agent?: {
|
|
2111
|
-
|
|
2094
|
+
id: string;
|
|
2112
2095
|
firstName: string;
|
|
2096
|
+
lastName: string;
|
|
2113
2097
|
email: string;
|
|
2114
2098
|
createdAt: string | Date;
|
|
2115
|
-
id: string;
|
|
2116
2099
|
updatedAt: string | Date;
|
|
2117
|
-
office?: {
|
|
2118
|
-
id: string;
|
|
2119
|
-
name: string;
|
|
2120
|
-
} | null | undefined;
|
|
2121
2100
|
phoneNumbers?: {
|
|
2122
2101
|
id: string;
|
|
2123
2102
|
phoneNumber: string;
|
|
@@ -2125,25 +2104,26 @@ export declare const callHistoryContract: {
|
|
|
2125
2104
|
isPrimary?: boolean | undefined;
|
|
2126
2105
|
}[] | undefined;
|
|
2127
2106
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2107
|
+
office?: {
|
|
2108
|
+
id: string;
|
|
2109
|
+
name: string;
|
|
2110
|
+
} | null | undefined;
|
|
2128
2111
|
canImpersonateUsers?: {
|
|
2129
|
-
lastName: string;
|
|
2130
|
-
firstName: string;
|
|
2131
2112
|
id: string;
|
|
2113
|
+
firstName: string;
|
|
2114
|
+
lastName: string;
|
|
2132
2115
|
}[] | undefined;
|
|
2133
2116
|
} | undefined;
|
|
2134
|
-
lead?: {
|
|
2135
|
-
phoneNumber: string;
|
|
2136
|
-
name: string;
|
|
2137
|
-
} | undefined;
|
|
2138
2117
|
company?: {
|
|
2139
|
-
createdAt: string | Date;
|
|
2140
2118
|
id: string;
|
|
2141
2119
|
name: string;
|
|
2120
|
+
createdAt: string | Date;
|
|
2142
2121
|
updatedAt: string | Date;
|
|
2143
2122
|
} | null | undefined;
|
|
2144
2123
|
} | null | undefined;
|
|
2145
2124
|
}[];
|
|
2146
2125
|
totalCount: number;
|
|
2126
|
+
limit: number;
|
|
2147
2127
|
skip: number;
|
|
2148
2128
|
currentPage: number;
|
|
2149
2129
|
totalPages: number;
|
|
@@ -2277,11 +2257,11 @@ export declare const callHistoryContract: {
|
|
|
2277
2257
|
name: z.ZodString;
|
|
2278
2258
|
phoneNumber: z.ZodString;
|
|
2279
2259
|
}, "strip", z.ZodTypeAny, {
|
|
2280
|
-
phoneNumber: string;
|
|
2281
2260
|
name: string;
|
|
2282
|
-
}, {
|
|
2283
2261
|
phoneNumber: string;
|
|
2262
|
+
}, {
|
|
2284
2263
|
name: string;
|
|
2264
|
+
phoneNumber: string;
|
|
2285
2265
|
}>>;
|
|
2286
2266
|
agentId: z.ZodNullable<z.ZodString>;
|
|
2287
2267
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -2321,50 +2301,46 @@ export declare const callHistoryContract: {
|
|
|
2321
2301
|
firstName: z.ZodString;
|
|
2322
2302
|
lastName: z.ZodString;
|
|
2323
2303
|
}, "strip", z.ZodTypeAny, {
|
|
2324
|
-
lastName: string;
|
|
2325
|
-
firstName: string;
|
|
2326
2304
|
id: string;
|
|
2327
|
-
}, {
|
|
2328
|
-
lastName: string;
|
|
2329
2305
|
firstName: string;
|
|
2306
|
+
lastName: string;
|
|
2307
|
+
}, {
|
|
2330
2308
|
id: string;
|
|
2309
|
+
firstName: string;
|
|
2310
|
+
lastName: string;
|
|
2331
2311
|
}>, "many">>;
|
|
2332
2312
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2333
2313
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2334
2314
|
}, "strip", z.ZodTypeAny, {
|
|
2335
|
-
|
|
2315
|
+
id: string;
|
|
2336
2316
|
firstName: string;
|
|
2317
|
+
lastName: string;
|
|
2337
2318
|
email: string;
|
|
2338
|
-
createdAt: string;
|
|
2339
|
-
id: string;
|
|
2340
2319
|
phoneNumbers: {
|
|
2341
2320
|
id: string;
|
|
2342
2321
|
phoneNumber: string;
|
|
2343
2322
|
isPrimary: boolean;
|
|
2344
2323
|
description?: string | null | undefined;
|
|
2345
2324
|
}[];
|
|
2325
|
+
createdAt: string;
|
|
2346
2326
|
updatedAt: string;
|
|
2327
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2347
2328
|
office?: {
|
|
2348
2329
|
id: string;
|
|
2349
2330
|
name: string;
|
|
2350
2331
|
} | null | undefined;
|
|
2351
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2352
2332
|
canImpersonateUsers?: {
|
|
2353
|
-
lastName: string;
|
|
2354
|
-
firstName: string;
|
|
2355
2333
|
id: string;
|
|
2334
|
+
firstName: string;
|
|
2335
|
+
lastName: string;
|
|
2356
2336
|
}[] | undefined;
|
|
2357
2337
|
}, {
|
|
2358
|
-
|
|
2338
|
+
id: string;
|
|
2359
2339
|
firstName: string;
|
|
2340
|
+
lastName: string;
|
|
2360
2341
|
email: string;
|
|
2361
2342
|
createdAt: string | Date;
|
|
2362
|
-
id: string;
|
|
2363
2343
|
updatedAt: string | Date;
|
|
2364
|
-
office?: {
|
|
2365
|
-
id: string;
|
|
2366
|
-
name: string;
|
|
2367
|
-
} | null | undefined;
|
|
2368
2344
|
phoneNumbers?: {
|
|
2369
2345
|
id: string;
|
|
2370
2346
|
phoneNumber: string;
|
|
@@ -2372,10 +2348,14 @@ export declare const callHistoryContract: {
|
|
|
2372
2348
|
isPrimary?: boolean | undefined;
|
|
2373
2349
|
}[] | undefined;
|
|
2374
2350
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2351
|
+
office?: {
|
|
2352
|
+
id: string;
|
|
2353
|
+
name: string;
|
|
2354
|
+
} | null | undefined;
|
|
2375
2355
|
canImpersonateUsers?: {
|
|
2376
|
-
lastName: string;
|
|
2377
|
-
firstName: string;
|
|
2378
2356
|
id: string;
|
|
2357
|
+
firstName: string;
|
|
2358
|
+
lastName: string;
|
|
2379
2359
|
}[] | undefined;
|
|
2380
2360
|
}>>;
|
|
2381
2361
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2388,83 +2368,83 @@ export declare const callHistoryContract: {
|
|
|
2388
2368
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2389
2369
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2390
2370
|
}, "strip", z.ZodTypeAny, {
|
|
2391
|
-
createdAt: string;
|
|
2392
2371
|
id: string;
|
|
2393
2372
|
name: string;
|
|
2373
|
+
createdAt: string;
|
|
2394
2374
|
updatedAt: string;
|
|
2395
2375
|
}, {
|
|
2396
|
-
createdAt: string | Date;
|
|
2397
2376
|
id: string;
|
|
2398
2377
|
name: string;
|
|
2378
|
+
createdAt: string | Date;
|
|
2399
2379
|
updatedAt: string | Date;
|
|
2400
2380
|
}>>>;
|
|
2401
2381
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2402
2382
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2403
2383
|
}, "strip", z.ZodTypeAny, {
|
|
2404
|
-
createdAt: string;
|
|
2405
2384
|
id: string;
|
|
2385
|
+
leadId: string;
|
|
2386
|
+
agentId: string | null;
|
|
2406
2387
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2388
|
+
createdAt: string;
|
|
2407
2389
|
updatedAt: string;
|
|
2408
|
-
agentId: string | null;
|
|
2409
|
-
leadId: string;
|
|
2410
2390
|
assignedAt: string;
|
|
2411
2391
|
assignedBy: string | null;
|
|
2412
2392
|
companyId: string | null;
|
|
2393
|
+
lead?: {
|
|
2394
|
+
name: string;
|
|
2395
|
+
phoneNumber: string;
|
|
2396
|
+
} | undefined;
|
|
2413
2397
|
agent?: {
|
|
2414
|
-
|
|
2398
|
+
id: string;
|
|
2415
2399
|
firstName: string;
|
|
2400
|
+
lastName: string;
|
|
2416
2401
|
email: string;
|
|
2417
|
-
createdAt: string;
|
|
2418
|
-
id: string;
|
|
2419
2402
|
phoneNumbers: {
|
|
2420
2403
|
id: string;
|
|
2421
2404
|
phoneNumber: string;
|
|
2422
2405
|
isPrimary: boolean;
|
|
2423
2406
|
description?: string | null | undefined;
|
|
2424
2407
|
}[];
|
|
2408
|
+
createdAt: string;
|
|
2425
2409
|
updatedAt: string;
|
|
2410
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2426
2411
|
office?: {
|
|
2427
2412
|
id: string;
|
|
2428
2413
|
name: string;
|
|
2429
2414
|
} | null | undefined;
|
|
2430
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2431
2415
|
canImpersonateUsers?: {
|
|
2432
|
-
lastName: string;
|
|
2433
|
-
firstName: string;
|
|
2434
2416
|
id: string;
|
|
2417
|
+
firstName: string;
|
|
2418
|
+
lastName: string;
|
|
2435
2419
|
}[] | undefined;
|
|
2436
2420
|
} | undefined;
|
|
2437
|
-
lead?: {
|
|
2438
|
-
phoneNumber: string;
|
|
2439
|
-
name: string;
|
|
2440
|
-
} | undefined;
|
|
2441
2421
|
company?: {
|
|
2442
|
-
createdAt: string;
|
|
2443
2422
|
id: string;
|
|
2444
2423
|
name: string;
|
|
2424
|
+
createdAt: string;
|
|
2445
2425
|
updatedAt: string;
|
|
2446
2426
|
} | null | undefined;
|
|
2447
2427
|
}, {
|
|
2448
|
-
createdAt: string | Date;
|
|
2449
2428
|
id: string;
|
|
2429
|
+
leadId: string;
|
|
2430
|
+
agentId: string | null;
|
|
2450
2431
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2432
|
+
createdAt: string | Date;
|
|
2451
2433
|
updatedAt: string | Date;
|
|
2452
|
-
agentId: string | null;
|
|
2453
|
-
leadId: string;
|
|
2454
2434
|
assignedAt: string | Date;
|
|
2455
2435
|
assignedBy: string | null;
|
|
2456
2436
|
companyId: string | null;
|
|
2437
|
+
lead?: {
|
|
2438
|
+
name: string;
|
|
2439
|
+
phoneNumber: string;
|
|
2440
|
+
} | undefined;
|
|
2457
2441
|
agent?: {
|
|
2458
|
-
|
|
2442
|
+
id: string;
|
|
2459
2443
|
firstName: string;
|
|
2444
|
+
lastName: string;
|
|
2460
2445
|
email: string;
|
|
2461
2446
|
createdAt: string | Date;
|
|
2462
|
-
id: string;
|
|
2463
2447
|
updatedAt: string | Date;
|
|
2464
|
-
office?: {
|
|
2465
|
-
id: string;
|
|
2466
|
-
name: string;
|
|
2467
|
-
} | null | undefined;
|
|
2468
2448
|
phoneNumbers?: {
|
|
2469
2449
|
id: string;
|
|
2470
2450
|
phoneNumber: string;
|
|
@@ -2472,24 +2452,23 @@ export declare const callHistoryContract: {
|
|
|
2472
2452
|
isPrimary?: boolean | undefined;
|
|
2473
2453
|
}[] | undefined;
|
|
2474
2454
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2455
|
+
office?: {
|
|
2456
|
+
id: string;
|
|
2457
|
+
name: string;
|
|
2458
|
+
} | null | undefined;
|
|
2475
2459
|
canImpersonateUsers?: {
|
|
2476
|
-
lastName: string;
|
|
2477
|
-
firstName: string;
|
|
2478
2460
|
id: string;
|
|
2461
|
+
firstName: string;
|
|
2462
|
+
lastName: string;
|
|
2479
2463
|
}[] | undefined;
|
|
2480
2464
|
} | undefined;
|
|
2481
|
-
lead?: {
|
|
2482
|
-
phoneNumber: string;
|
|
2483
|
-
name: string;
|
|
2484
|
-
} | undefined;
|
|
2485
2465
|
company?: {
|
|
2486
|
-
createdAt: string | Date;
|
|
2487
2466
|
id: string;
|
|
2488
2467
|
name: string;
|
|
2468
|
+
createdAt: string | Date;
|
|
2489
2469
|
updatedAt: string | Date;
|
|
2490
2470
|
} | null | undefined;
|
|
2491
2471
|
}>>>;
|
|
2492
|
-
callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2493
2472
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
2494
2473
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
2495
2474
|
rating: z.ZodNativeEnum<typeof CallRating>;
|
|
@@ -2498,97 +2477,95 @@ export declare const callHistoryContract: {
|
|
|
2498
2477
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2499
2478
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2500
2479
|
}, "strip", z.ZodTypeAny, {
|
|
2501
|
-
createdAt: string;
|
|
2502
2480
|
id: string;
|
|
2481
|
+
assignmentId: string;
|
|
2482
|
+
createdAt: string;
|
|
2503
2483
|
updatedAt: string;
|
|
2504
|
-
rating: CallRating;
|
|
2505
|
-
notes: string | null;
|
|
2506
2484
|
callType: CallType;
|
|
2507
|
-
assignmentId: string;
|
|
2508
|
-
callDate: string;
|
|
2509
2485
|
leadSource: LeadSource;
|
|
2486
|
+
rating: CallRating;
|
|
2510
2487
|
ratingWeight: number;
|
|
2511
|
-
|
|
2488
|
+
notes: string | null;
|
|
2512
2489
|
leadId?: string | undefined;
|
|
2490
|
+
agentId?: string | undefined;
|
|
2513
2491
|
assignment?: {
|
|
2514
|
-
createdAt: string;
|
|
2515
2492
|
id: string;
|
|
2493
|
+
leadId: string;
|
|
2494
|
+
agentId: string | null;
|
|
2516
2495
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2496
|
+
createdAt: string;
|
|
2517
2497
|
updatedAt: string;
|
|
2518
|
-
agentId: string | null;
|
|
2519
|
-
leadId: string;
|
|
2520
2498
|
assignedAt: string;
|
|
2521
2499
|
assignedBy: string | null;
|
|
2522
2500
|
companyId: string | null;
|
|
2501
|
+
lead?: {
|
|
2502
|
+
name: string;
|
|
2503
|
+
phoneNumber: string;
|
|
2504
|
+
} | undefined;
|
|
2523
2505
|
agent?: {
|
|
2524
|
-
|
|
2506
|
+
id: string;
|
|
2525
2507
|
firstName: string;
|
|
2508
|
+
lastName: string;
|
|
2526
2509
|
email: string;
|
|
2527
|
-
createdAt: string;
|
|
2528
|
-
id: string;
|
|
2529
2510
|
phoneNumbers: {
|
|
2530
2511
|
id: string;
|
|
2531
2512
|
phoneNumber: string;
|
|
2532
2513
|
isPrimary: boolean;
|
|
2533
2514
|
description?: string | null | undefined;
|
|
2534
2515
|
}[];
|
|
2516
|
+
createdAt: string;
|
|
2535
2517
|
updatedAt: string;
|
|
2518
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2536
2519
|
office?: {
|
|
2537
2520
|
id: string;
|
|
2538
2521
|
name: string;
|
|
2539
2522
|
} | null | undefined;
|
|
2540
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2541
2523
|
canImpersonateUsers?: {
|
|
2542
|
-
lastName: string;
|
|
2543
|
-
firstName: string;
|
|
2544
2524
|
id: string;
|
|
2525
|
+
firstName: string;
|
|
2526
|
+
lastName: string;
|
|
2545
2527
|
}[] | undefined;
|
|
2546
2528
|
} | undefined;
|
|
2547
|
-
lead?: {
|
|
2548
|
-
phoneNumber: string;
|
|
2549
|
-
name: string;
|
|
2550
|
-
} | undefined;
|
|
2551
2529
|
company?: {
|
|
2552
|
-
createdAt: string;
|
|
2553
2530
|
id: string;
|
|
2554
2531
|
name: string;
|
|
2532
|
+
createdAt: string;
|
|
2555
2533
|
updatedAt: string;
|
|
2556
2534
|
} | null | undefined;
|
|
2557
2535
|
} | null | undefined;
|
|
2558
2536
|
}, {
|
|
2559
|
-
createdAt: string | Date;
|
|
2560
2537
|
id: string;
|
|
2538
|
+
assignmentId: string;
|
|
2539
|
+
createdAt: string | Date;
|
|
2561
2540
|
updatedAt: string | Date;
|
|
2562
|
-
rating: CallRating;
|
|
2563
|
-
notes: string | null;
|
|
2564
2541
|
callType: CallType;
|
|
2565
|
-
assignmentId: string;
|
|
2566
|
-
callDate: string | Date;
|
|
2567
2542
|
leadSource: LeadSource;
|
|
2543
|
+
rating: CallRating;
|
|
2568
2544
|
ratingWeight: number;
|
|
2569
|
-
|
|
2545
|
+
notes: string | null;
|
|
2570
2546
|
leadId?: string | undefined;
|
|
2547
|
+
agentId?: string | undefined;
|
|
2571
2548
|
assignment?: {
|
|
2572
|
-
createdAt: string | Date;
|
|
2573
2549
|
id: string;
|
|
2550
|
+
leadId: string;
|
|
2551
|
+
agentId: string | null;
|
|
2574
2552
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2553
|
+
createdAt: string | Date;
|
|
2575
2554
|
updatedAt: string | Date;
|
|
2576
|
-
agentId: string | null;
|
|
2577
|
-
leadId: string;
|
|
2578
2555
|
assignedAt: string | Date;
|
|
2579
2556
|
assignedBy: string | null;
|
|
2580
2557
|
companyId: string | null;
|
|
2558
|
+
lead?: {
|
|
2559
|
+
name: string;
|
|
2560
|
+
phoneNumber: string;
|
|
2561
|
+
} | undefined;
|
|
2581
2562
|
agent?: {
|
|
2582
|
-
|
|
2563
|
+
id: string;
|
|
2583
2564
|
firstName: string;
|
|
2565
|
+
lastName: string;
|
|
2584
2566
|
email: string;
|
|
2585
2567
|
createdAt: string | Date;
|
|
2586
|
-
id: string;
|
|
2587
2568
|
updatedAt: string | Date;
|
|
2588
|
-
office?: {
|
|
2589
|
-
id: string;
|
|
2590
|
-
name: string;
|
|
2591
|
-
} | null | undefined;
|
|
2592
2569
|
phoneNumbers?: {
|
|
2593
2570
|
id: string;
|
|
2594
2571
|
phoneNumber: string;
|
|
@@ -2596,20 +2573,20 @@ export declare const callHistoryContract: {
|
|
|
2596
2573
|
isPrimary?: boolean | undefined;
|
|
2597
2574
|
}[] | undefined;
|
|
2598
2575
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2576
|
+
office?: {
|
|
2577
|
+
id: string;
|
|
2578
|
+
name: string;
|
|
2579
|
+
} | null | undefined;
|
|
2599
2580
|
canImpersonateUsers?: {
|
|
2600
|
-
lastName: string;
|
|
2601
|
-
firstName: string;
|
|
2602
2581
|
id: string;
|
|
2582
|
+
firstName: string;
|
|
2583
|
+
lastName: string;
|
|
2603
2584
|
}[] | undefined;
|
|
2604
2585
|
} | undefined;
|
|
2605
|
-
lead?: {
|
|
2606
|
-
phoneNumber: string;
|
|
2607
|
-
name: string;
|
|
2608
|
-
} | undefined;
|
|
2609
2586
|
company?: {
|
|
2610
|
-
createdAt: string | Date;
|
|
2611
2587
|
id: string;
|
|
2612
2588
|
name: string;
|
|
2589
|
+
createdAt: string | Date;
|
|
2613
2590
|
updatedAt: string | Date;
|
|
2614
2591
|
} | null | undefined;
|
|
2615
2592
|
} | null | undefined;
|
|
@@ -2655,17 +2632,14 @@ export declare const callHistoryContract: {
|
|
|
2655
2632
|
summary: "Update call history notes";
|
|
2656
2633
|
method: "PATCH";
|
|
2657
2634
|
body: z.ZodObject<{
|
|
2658
|
-
callDate: z.ZodOptional<z.ZodString>;
|
|
2659
2635
|
rating: z.ZodOptional<z.ZodNativeEnum<typeof CallRating>>;
|
|
2660
2636
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2661
2637
|
}, "strip", z.ZodTypeAny, {
|
|
2662
2638
|
rating?: CallRating | undefined;
|
|
2663
2639
|
notes?: string | null | undefined;
|
|
2664
|
-
callDate?: string | undefined;
|
|
2665
2640
|
}, {
|
|
2666
2641
|
rating?: CallRating | undefined;
|
|
2667
2642
|
notes?: string | null | undefined;
|
|
2668
|
-
callDate?: string | undefined;
|
|
2669
2643
|
}>;
|
|
2670
2644
|
path: "/v2/call-history/:id";
|
|
2671
2645
|
responses: {
|
|
@@ -2781,11 +2755,11 @@ export declare const callHistoryContract: {
|
|
|
2781
2755
|
name: z.ZodString;
|
|
2782
2756
|
phoneNumber: z.ZodString;
|
|
2783
2757
|
}, "strip", z.ZodTypeAny, {
|
|
2784
|
-
phoneNumber: string;
|
|
2785
2758
|
name: string;
|
|
2786
|
-
}, {
|
|
2787
2759
|
phoneNumber: string;
|
|
2760
|
+
}, {
|
|
2788
2761
|
name: string;
|
|
2762
|
+
phoneNumber: string;
|
|
2789
2763
|
}>>;
|
|
2790
2764
|
agentId: z.ZodNullable<z.ZodString>;
|
|
2791
2765
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -2825,50 +2799,46 @@ export declare const callHistoryContract: {
|
|
|
2825
2799
|
firstName: z.ZodString;
|
|
2826
2800
|
lastName: z.ZodString;
|
|
2827
2801
|
}, "strip", z.ZodTypeAny, {
|
|
2828
|
-
lastName: string;
|
|
2829
|
-
firstName: string;
|
|
2830
2802
|
id: string;
|
|
2831
|
-
}, {
|
|
2832
|
-
lastName: string;
|
|
2833
2803
|
firstName: string;
|
|
2804
|
+
lastName: string;
|
|
2805
|
+
}, {
|
|
2834
2806
|
id: string;
|
|
2807
|
+
firstName: string;
|
|
2808
|
+
lastName: string;
|
|
2835
2809
|
}>, "many">>;
|
|
2836
2810
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2837
2811
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2838
2812
|
}, "strip", z.ZodTypeAny, {
|
|
2839
|
-
|
|
2813
|
+
id: string;
|
|
2840
2814
|
firstName: string;
|
|
2815
|
+
lastName: string;
|
|
2841
2816
|
email: string;
|
|
2842
|
-
createdAt: string;
|
|
2843
|
-
id: string;
|
|
2844
2817
|
phoneNumbers: {
|
|
2845
2818
|
id: string;
|
|
2846
2819
|
phoneNumber: string;
|
|
2847
2820
|
isPrimary: boolean;
|
|
2848
2821
|
description?: string | null | undefined;
|
|
2849
2822
|
}[];
|
|
2823
|
+
createdAt: string;
|
|
2850
2824
|
updatedAt: string;
|
|
2825
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2851
2826
|
office?: {
|
|
2852
2827
|
id: string;
|
|
2853
2828
|
name: string;
|
|
2854
2829
|
} | null | undefined;
|
|
2855
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2856
2830
|
canImpersonateUsers?: {
|
|
2857
|
-
lastName: string;
|
|
2858
|
-
firstName: string;
|
|
2859
2831
|
id: string;
|
|
2832
|
+
firstName: string;
|
|
2833
|
+
lastName: string;
|
|
2860
2834
|
}[] | undefined;
|
|
2861
2835
|
}, {
|
|
2862
|
-
|
|
2836
|
+
id: string;
|
|
2863
2837
|
firstName: string;
|
|
2838
|
+
lastName: string;
|
|
2864
2839
|
email: string;
|
|
2865
2840
|
createdAt: string | Date;
|
|
2866
|
-
id: string;
|
|
2867
2841
|
updatedAt: string | Date;
|
|
2868
|
-
office?: {
|
|
2869
|
-
id: string;
|
|
2870
|
-
name: string;
|
|
2871
|
-
} | null | undefined;
|
|
2872
2842
|
phoneNumbers?: {
|
|
2873
2843
|
id: string;
|
|
2874
2844
|
phoneNumber: string;
|
|
@@ -2876,10 +2846,14 @@ export declare const callHistoryContract: {
|
|
|
2876
2846
|
isPrimary?: boolean | undefined;
|
|
2877
2847
|
}[] | undefined;
|
|
2878
2848
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2849
|
+
office?: {
|
|
2850
|
+
id: string;
|
|
2851
|
+
name: string;
|
|
2852
|
+
} | null | undefined;
|
|
2879
2853
|
canImpersonateUsers?: {
|
|
2880
|
-
lastName: string;
|
|
2881
|
-
firstName: string;
|
|
2882
2854
|
id: string;
|
|
2855
|
+
firstName: string;
|
|
2856
|
+
lastName: string;
|
|
2883
2857
|
}[] | undefined;
|
|
2884
2858
|
}>>;
|
|
2885
2859
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2892,83 +2866,83 @@ export declare const callHistoryContract: {
|
|
|
2892
2866
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2893
2867
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2894
2868
|
}, "strip", z.ZodTypeAny, {
|
|
2895
|
-
createdAt: string;
|
|
2896
2869
|
id: string;
|
|
2897
2870
|
name: string;
|
|
2871
|
+
createdAt: string;
|
|
2898
2872
|
updatedAt: string;
|
|
2899
2873
|
}, {
|
|
2900
|
-
createdAt: string | Date;
|
|
2901
2874
|
id: string;
|
|
2902
2875
|
name: string;
|
|
2876
|
+
createdAt: string | Date;
|
|
2903
2877
|
updatedAt: string | Date;
|
|
2904
2878
|
}>>>;
|
|
2905
2879
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2906
2880
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2907
2881
|
}, "strip", z.ZodTypeAny, {
|
|
2908
|
-
createdAt: string;
|
|
2909
2882
|
id: string;
|
|
2883
|
+
leadId: string;
|
|
2884
|
+
agentId: string | null;
|
|
2910
2885
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2886
|
+
createdAt: string;
|
|
2911
2887
|
updatedAt: string;
|
|
2912
|
-
agentId: string | null;
|
|
2913
|
-
leadId: string;
|
|
2914
2888
|
assignedAt: string;
|
|
2915
2889
|
assignedBy: string | null;
|
|
2916
2890
|
companyId: string | null;
|
|
2891
|
+
lead?: {
|
|
2892
|
+
name: string;
|
|
2893
|
+
phoneNumber: string;
|
|
2894
|
+
} | undefined;
|
|
2917
2895
|
agent?: {
|
|
2918
|
-
|
|
2896
|
+
id: string;
|
|
2919
2897
|
firstName: string;
|
|
2898
|
+
lastName: string;
|
|
2920
2899
|
email: string;
|
|
2921
|
-
createdAt: string;
|
|
2922
|
-
id: string;
|
|
2923
2900
|
phoneNumbers: {
|
|
2924
2901
|
id: string;
|
|
2925
2902
|
phoneNumber: string;
|
|
2926
2903
|
isPrimary: boolean;
|
|
2927
2904
|
description?: string | null | undefined;
|
|
2928
2905
|
}[];
|
|
2906
|
+
createdAt: string;
|
|
2929
2907
|
updatedAt: string;
|
|
2908
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2930
2909
|
office?: {
|
|
2931
2910
|
id: string;
|
|
2932
2911
|
name: string;
|
|
2933
2912
|
} | null | undefined;
|
|
2934
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2935
2913
|
canImpersonateUsers?: {
|
|
2936
|
-
lastName: string;
|
|
2937
|
-
firstName: string;
|
|
2938
2914
|
id: string;
|
|
2915
|
+
firstName: string;
|
|
2916
|
+
lastName: string;
|
|
2939
2917
|
}[] | undefined;
|
|
2940
2918
|
} | undefined;
|
|
2941
|
-
lead?: {
|
|
2942
|
-
phoneNumber: string;
|
|
2943
|
-
name: string;
|
|
2944
|
-
} | undefined;
|
|
2945
2919
|
company?: {
|
|
2946
|
-
createdAt: string;
|
|
2947
2920
|
id: string;
|
|
2948
2921
|
name: string;
|
|
2922
|
+
createdAt: string;
|
|
2949
2923
|
updatedAt: string;
|
|
2950
2924
|
} | null | undefined;
|
|
2951
2925
|
}, {
|
|
2952
|
-
createdAt: string | Date;
|
|
2953
2926
|
id: string;
|
|
2927
|
+
leadId: string;
|
|
2928
|
+
agentId: string | null;
|
|
2954
2929
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2930
|
+
createdAt: string | Date;
|
|
2955
2931
|
updatedAt: string | Date;
|
|
2956
|
-
agentId: string | null;
|
|
2957
|
-
leadId: string;
|
|
2958
2932
|
assignedAt: string | Date;
|
|
2959
2933
|
assignedBy: string | null;
|
|
2960
2934
|
companyId: string | null;
|
|
2935
|
+
lead?: {
|
|
2936
|
+
name: string;
|
|
2937
|
+
phoneNumber: string;
|
|
2938
|
+
} | undefined;
|
|
2961
2939
|
agent?: {
|
|
2962
|
-
|
|
2940
|
+
id: string;
|
|
2963
2941
|
firstName: string;
|
|
2942
|
+
lastName: string;
|
|
2964
2943
|
email: string;
|
|
2965
2944
|
createdAt: string | Date;
|
|
2966
|
-
id: string;
|
|
2967
2945
|
updatedAt: string | Date;
|
|
2968
|
-
office?: {
|
|
2969
|
-
id: string;
|
|
2970
|
-
name: string;
|
|
2971
|
-
} | null | undefined;
|
|
2972
2946
|
phoneNumbers?: {
|
|
2973
2947
|
id: string;
|
|
2974
2948
|
phoneNumber: string;
|
|
@@ -2976,24 +2950,23 @@ export declare const callHistoryContract: {
|
|
|
2976
2950
|
isPrimary?: boolean | undefined;
|
|
2977
2951
|
}[] | undefined;
|
|
2978
2952
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2953
|
+
office?: {
|
|
2954
|
+
id: string;
|
|
2955
|
+
name: string;
|
|
2956
|
+
} | null | undefined;
|
|
2979
2957
|
canImpersonateUsers?: {
|
|
2980
|
-
lastName: string;
|
|
2981
|
-
firstName: string;
|
|
2982
2958
|
id: string;
|
|
2959
|
+
firstName: string;
|
|
2960
|
+
lastName: string;
|
|
2983
2961
|
}[] | undefined;
|
|
2984
2962
|
} | undefined;
|
|
2985
|
-
lead?: {
|
|
2986
|
-
phoneNumber: string;
|
|
2987
|
-
name: string;
|
|
2988
|
-
} | undefined;
|
|
2989
2963
|
company?: {
|
|
2990
|
-
createdAt: string | Date;
|
|
2991
2964
|
id: string;
|
|
2992
2965
|
name: string;
|
|
2966
|
+
createdAt: string | Date;
|
|
2993
2967
|
updatedAt: string | Date;
|
|
2994
2968
|
} | null | undefined;
|
|
2995
2969
|
}>>>;
|
|
2996
|
-
callDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2997
2970
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
2998
2971
|
leadSource: z.ZodNativeEnum<typeof LeadSource>;
|
|
2999
2972
|
rating: z.ZodNativeEnum<typeof CallRating>;
|
|
@@ -3002,97 +2975,95 @@ export declare const callHistoryContract: {
|
|
|
3002
2975
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3003
2976
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3004
2977
|
}, "strip", z.ZodTypeAny, {
|
|
3005
|
-
createdAt: string;
|
|
3006
2978
|
id: string;
|
|
2979
|
+
assignmentId: string;
|
|
2980
|
+
createdAt: string;
|
|
3007
2981
|
updatedAt: string;
|
|
3008
|
-
rating: CallRating;
|
|
3009
|
-
notes: string | null;
|
|
3010
2982
|
callType: CallType;
|
|
3011
|
-
assignmentId: string;
|
|
3012
|
-
callDate: string;
|
|
3013
2983
|
leadSource: LeadSource;
|
|
2984
|
+
rating: CallRating;
|
|
3014
2985
|
ratingWeight: number;
|
|
3015
|
-
|
|
2986
|
+
notes: string | null;
|
|
3016
2987
|
leadId?: string | undefined;
|
|
2988
|
+
agentId?: string | undefined;
|
|
3017
2989
|
assignment?: {
|
|
3018
|
-
createdAt: string;
|
|
3019
2990
|
id: string;
|
|
2991
|
+
leadId: string;
|
|
2992
|
+
agentId: string | null;
|
|
3020
2993
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2994
|
+
createdAt: string;
|
|
3021
2995
|
updatedAt: string;
|
|
3022
|
-
agentId: string | null;
|
|
3023
|
-
leadId: string;
|
|
3024
2996
|
assignedAt: string;
|
|
3025
2997
|
assignedBy: string | null;
|
|
3026
2998
|
companyId: string | null;
|
|
2999
|
+
lead?: {
|
|
3000
|
+
name: string;
|
|
3001
|
+
phoneNumber: string;
|
|
3002
|
+
} | undefined;
|
|
3027
3003
|
agent?: {
|
|
3028
|
-
|
|
3004
|
+
id: string;
|
|
3029
3005
|
firstName: string;
|
|
3006
|
+
lastName: string;
|
|
3030
3007
|
email: string;
|
|
3031
|
-
createdAt: string;
|
|
3032
|
-
id: string;
|
|
3033
3008
|
phoneNumbers: {
|
|
3034
3009
|
id: string;
|
|
3035
3010
|
phoneNumber: string;
|
|
3036
3011
|
isPrimary: boolean;
|
|
3037
3012
|
description?: string | null | undefined;
|
|
3038
3013
|
}[];
|
|
3014
|
+
createdAt: string;
|
|
3039
3015
|
updatedAt: string;
|
|
3016
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3040
3017
|
office?: {
|
|
3041
3018
|
id: string;
|
|
3042
3019
|
name: string;
|
|
3043
3020
|
} | null | undefined;
|
|
3044
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3045
3021
|
canImpersonateUsers?: {
|
|
3046
|
-
lastName: string;
|
|
3047
|
-
firstName: string;
|
|
3048
3022
|
id: string;
|
|
3023
|
+
firstName: string;
|
|
3024
|
+
lastName: string;
|
|
3049
3025
|
}[] | undefined;
|
|
3050
3026
|
} | undefined;
|
|
3051
|
-
lead?: {
|
|
3052
|
-
phoneNumber: string;
|
|
3053
|
-
name: string;
|
|
3054
|
-
} | undefined;
|
|
3055
3027
|
company?: {
|
|
3056
|
-
createdAt: string;
|
|
3057
3028
|
id: string;
|
|
3058
3029
|
name: string;
|
|
3030
|
+
createdAt: string;
|
|
3059
3031
|
updatedAt: string;
|
|
3060
3032
|
} | null | undefined;
|
|
3061
3033
|
} | null | undefined;
|
|
3062
3034
|
}, {
|
|
3063
|
-
createdAt: string | Date;
|
|
3064
3035
|
id: string;
|
|
3036
|
+
assignmentId: string;
|
|
3037
|
+
createdAt: string | Date;
|
|
3065
3038
|
updatedAt: string | Date;
|
|
3066
|
-
rating: CallRating;
|
|
3067
|
-
notes: string | null;
|
|
3068
3039
|
callType: CallType;
|
|
3069
|
-
assignmentId: string;
|
|
3070
|
-
callDate: string | Date;
|
|
3071
3040
|
leadSource: LeadSource;
|
|
3041
|
+
rating: CallRating;
|
|
3072
3042
|
ratingWeight: number;
|
|
3073
|
-
|
|
3043
|
+
notes: string | null;
|
|
3074
3044
|
leadId?: string | undefined;
|
|
3045
|
+
agentId?: string | undefined;
|
|
3075
3046
|
assignment?: {
|
|
3076
|
-
createdAt: string | Date;
|
|
3077
3047
|
id: string;
|
|
3048
|
+
leadId: string;
|
|
3049
|
+
agentId: string | null;
|
|
3078
3050
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3051
|
+
createdAt: string | Date;
|
|
3079
3052
|
updatedAt: string | Date;
|
|
3080
|
-
agentId: string | null;
|
|
3081
|
-
leadId: string;
|
|
3082
3053
|
assignedAt: string | Date;
|
|
3083
3054
|
assignedBy: string | null;
|
|
3084
3055
|
companyId: string | null;
|
|
3056
|
+
lead?: {
|
|
3057
|
+
name: string;
|
|
3058
|
+
phoneNumber: string;
|
|
3059
|
+
} | undefined;
|
|
3085
3060
|
agent?: {
|
|
3086
|
-
|
|
3061
|
+
id: string;
|
|
3087
3062
|
firstName: string;
|
|
3063
|
+
lastName: string;
|
|
3088
3064
|
email: string;
|
|
3089
3065
|
createdAt: string | Date;
|
|
3090
|
-
id: string;
|
|
3091
3066
|
updatedAt: string | Date;
|
|
3092
|
-
office?: {
|
|
3093
|
-
id: string;
|
|
3094
|
-
name: string;
|
|
3095
|
-
} | null | undefined;
|
|
3096
3067
|
phoneNumbers?: {
|
|
3097
3068
|
id: string;
|
|
3098
3069
|
phoneNumber: string;
|
|
@@ -3100,20 +3071,20 @@ export declare const callHistoryContract: {
|
|
|
3100
3071
|
isPrimary?: boolean | undefined;
|
|
3101
3072
|
}[] | undefined;
|
|
3102
3073
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3074
|
+
office?: {
|
|
3075
|
+
id: string;
|
|
3076
|
+
name: string;
|
|
3077
|
+
} | null | undefined;
|
|
3103
3078
|
canImpersonateUsers?: {
|
|
3104
|
-
lastName: string;
|
|
3105
|
-
firstName: string;
|
|
3106
3079
|
id: string;
|
|
3080
|
+
firstName: string;
|
|
3081
|
+
lastName: string;
|
|
3107
3082
|
}[] | undefined;
|
|
3108
3083
|
} | undefined;
|
|
3109
|
-
lead?: {
|
|
3110
|
-
phoneNumber: string;
|
|
3111
|
-
name: string;
|
|
3112
|
-
} | undefined;
|
|
3113
3084
|
company?: {
|
|
3114
|
-
createdAt: string | Date;
|
|
3115
3085
|
id: string;
|
|
3116
3086
|
name: string;
|
|
3087
|
+
createdAt: string | Date;
|
|
3117
3088
|
updatedAt: string | Date;
|
|
3118
3089
|
} | null | undefined;
|
|
3119
3090
|
} | null | undefined;
|