@dakkitor/api-contracts 1.1.141 → 1.1.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/first-agent.abilities.json +17 -63
- package/dist/abilities/second-agent.abilities.json +10 -0
- package/dist/actives/actives.contract.d.ts +4358 -3670
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +22 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1285 -1285
- package/dist/auth/auth.contract.d.ts +40 -28
- package/dist/auth/auth.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.d.ts +6395 -5825
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +0 -6
- package/dist/call-history/call-history.contract.d.ts +717 -717
- package/dist/client-contacts/client-contacts.contract.d.ts +309 -309
- package/dist/client-contacts/client-contacts.contract.js +2 -2
- package/dist/clients/clients.contract.d.ts +173 -173
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2328 -2328
- package/dist/collaborations/collaborations.contract.d.ts +2052 -2052
- package/dist/common/call-rating.schema.d.ts +12 -12
- package/dist/common/call-rating.schema.js +40 -48
- package/dist/common/common-schemas.d.ts +10 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +2 -0
- package/dist/common/error-schemas.d.ts +5 -11
- package/dist/common/error-schemas.js +8 -11
- package/dist/common/openapi-metadata.d.ts +44 -54
- package/dist/common/openapi-metadata.js +129 -135
- package/dist/common/pagination-query.schema.d.ts +7 -13
- package/dist/common/pagination-query.schema.js +8 -11
- package/dist/companies/companies.contract.d.ts +26 -26
- package/dist/cron-executions/cron-executions.contract.d.ts +255 -7
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +28 -0
- package/dist/curated-workers/curated-workers.contract.d.ts +626 -558
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +2 -4
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +20 -11
- package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -1
- package/dist/dashboards/agent-daily-metrics.contract.js +1 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +92 -92
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +4 -1
- package/dist/dashboards/dashboard.contract.d.ts +12 -12
- package/dist/files/files.contract.d.ts +1189 -1556
- package/dist/files/files.contract.js +162 -177
- package/dist/health/health.contract.d.ts +144 -191
- package/dist/health/health.contract.js +40 -53
- package/dist/jobs/jobs.contract.d.ts +4427 -3769
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +106 -17
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +114 -114
- package/dist/lead-assignments/lead-assignments.contract.d.ts +606 -606
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +217 -217
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +16 -16
- package/dist/leads/leads.contract.d.ts +199 -199
- package/dist/locations/locations.contract.d.ts +28 -28
- package/dist/own-research/own-research.contract.d.ts +736 -736
- package/dist/postcodes/postcodes.contract.d.ts +6 -6
- package/dist/qualifications/qualifications.contract.d.ts +1387 -1898
- package/dist/qualifications/qualifications.contract.js +171 -193
- package/dist/trades/trades.contract.d.ts +763 -991
- package/dist/trades/trades.contract.js +89 -111
- package/dist/users/users.contract.d.ts +632 -285
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +38 -1
- package/dist/workers/workers.contract.d.ts +4581 -2712
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +277 -28
- package/package.json +1 -1
- package/dist/monitoring/monitoring.contract.d.ts +0 -615
- package/dist/monitoring/monitoring.contract.d.ts.map +0 -1
- package/dist/monitoring/monitoring.contract.js +0 -106
|
@@ -57,17 +57,17 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
57
57
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
id: string;
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
createdAt: string;
|
|
62
|
+
email: string;
|
|
60
63
|
firstName: string;
|
|
61
64
|
lastName: string;
|
|
62
|
-
email: string;
|
|
63
65
|
phoneNumbers: {
|
|
64
66
|
id: string;
|
|
65
67
|
phoneNumber: string;
|
|
66
68
|
isPrimary: boolean;
|
|
67
69
|
description?: string | null | undefined;
|
|
68
70
|
}[];
|
|
69
|
-
createdAt: string;
|
|
70
|
-
updatedAt: string;
|
|
71
71
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
72
72
|
office?: {
|
|
73
73
|
id: string;
|
|
@@ -80,22 +80,22 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
80
80
|
}[] | undefined;
|
|
81
81
|
}, {
|
|
82
82
|
id: string;
|
|
83
|
+
updatedAt: string | Date;
|
|
84
|
+
createdAt: string | Date;
|
|
85
|
+
email: string;
|
|
83
86
|
firstName: string;
|
|
84
87
|
lastName: string;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
89
|
+
office?: {
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
} | null | undefined;
|
|
88
93
|
phoneNumbers?: {
|
|
89
94
|
id: string;
|
|
90
95
|
phoneNumber: string;
|
|
91
96
|
description?: string | null | undefined;
|
|
92
97
|
isPrimary?: boolean | undefined;
|
|
93
98
|
}[] | undefined;
|
|
94
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
95
|
-
office?: {
|
|
96
|
-
id: string;
|
|
97
|
-
name: string;
|
|
98
|
-
} | null | undefined;
|
|
99
99
|
canImpersonateUsers?: {
|
|
100
100
|
id: string;
|
|
101
101
|
firstName: string;
|
|
@@ -116,32 +116,32 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
116
116
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
id: string;
|
|
119
|
-
agentId: string;
|
|
120
119
|
name: string;
|
|
121
|
-
phoneNumber: string;
|
|
122
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
123
|
-
createdAt: string;
|
|
124
120
|
updatedAt: string;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
cooldownUntil: string | null;
|
|
121
|
+
createdAt: string;
|
|
122
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
128
123
|
blacklistReason: string | null;
|
|
124
|
+
agentId: string;
|
|
125
|
+
phoneNumber: string;
|
|
126
|
+
lastCalledAt: string | null;
|
|
127
|
+
callCount: number;
|
|
129
128
|
lastCallNotes: string | null;
|
|
130
129
|
existsInLeadsTable: boolean;
|
|
130
|
+
cooldownUntil: string | null;
|
|
131
131
|
originalLeadId: string | null;
|
|
132
132
|
agent?: {
|
|
133
133
|
id: string;
|
|
134
|
+
updatedAt: string;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
email: string;
|
|
134
137
|
firstName: string;
|
|
135
138
|
lastName: string;
|
|
136
|
-
email: string;
|
|
137
139
|
phoneNumbers: {
|
|
138
140
|
id: string;
|
|
139
141
|
phoneNumber: string;
|
|
140
142
|
isPrimary: boolean;
|
|
141
143
|
description?: string | null | undefined;
|
|
142
144
|
}[];
|
|
143
|
-
createdAt: string;
|
|
144
|
-
updatedAt: string;
|
|
145
145
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
146
146
|
office?: {
|
|
147
147
|
id: string;
|
|
@@ -155,37 +155,37 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
155
155
|
} | undefined;
|
|
156
156
|
}, {
|
|
157
157
|
id: string;
|
|
158
|
-
agentId: string;
|
|
159
158
|
name: string;
|
|
160
|
-
phoneNumber: string;
|
|
161
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
162
|
-
createdAt: string | Date;
|
|
163
159
|
updatedAt: string | Date;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
cooldownUntil: string | Date | null;
|
|
160
|
+
createdAt: string | Date;
|
|
161
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
167
162
|
blacklistReason: string | null;
|
|
163
|
+
agentId: string;
|
|
164
|
+
phoneNumber: string;
|
|
165
|
+
lastCalledAt: string | Date | null;
|
|
166
|
+
callCount: number;
|
|
168
167
|
lastCallNotes: string | null;
|
|
169
168
|
existsInLeadsTable: boolean;
|
|
169
|
+
cooldownUntil: string | Date | null;
|
|
170
170
|
originalLeadId: string | null;
|
|
171
171
|
agent?: {
|
|
172
172
|
id: string;
|
|
173
|
+
updatedAt: string | Date;
|
|
174
|
+
createdAt: string | Date;
|
|
175
|
+
email: string;
|
|
173
176
|
firstName: string;
|
|
174
177
|
lastName: string;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
179
|
+
office?: {
|
|
180
|
+
id: string;
|
|
181
|
+
name: string;
|
|
182
|
+
} | null | undefined;
|
|
178
183
|
phoneNumbers?: {
|
|
179
184
|
id: string;
|
|
180
185
|
phoneNumber: string;
|
|
181
186
|
description?: string | null | undefined;
|
|
182
187
|
isPrimary?: boolean | undefined;
|
|
183
188
|
}[] | undefined;
|
|
184
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
185
|
-
office?: {
|
|
186
|
-
id: string;
|
|
187
|
-
name: string;
|
|
188
|
-
} | null | undefined;
|
|
189
189
|
canImpersonateUsers?: {
|
|
190
190
|
id: string;
|
|
191
191
|
firstName: string;
|
|
@@ -205,14 +205,14 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
206
|
id: string;
|
|
207
207
|
name: string;
|
|
208
|
-
phoneNumber: string;
|
|
209
208
|
status: string;
|
|
209
|
+
phoneNumber: string;
|
|
210
210
|
cooldownUntil: string | null;
|
|
211
211
|
}, {
|
|
212
212
|
id: string;
|
|
213
213
|
name: string;
|
|
214
|
-
phoneNumber: string;
|
|
215
214
|
status: string;
|
|
215
|
+
phoneNumber: string;
|
|
216
216
|
cooldownUntil: string | Date | null;
|
|
217
217
|
}>>>;
|
|
218
218
|
ownResearchLead: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -267,17 +267,17 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
267
267
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
268
268
|
}, "strip", z.ZodTypeAny, {
|
|
269
269
|
id: string;
|
|
270
|
+
updatedAt: string;
|
|
271
|
+
createdAt: string;
|
|
272
|
+
email: string;
|
|
270
273
|
firstName: string;
|
|
271
274
|
lastName: string;
|
|
272
|
-
email: string;
|
|
273
275
|
phoneNumbers: {
|
|
274
276
|
id: string;
|
|
275
277
|
phoneNumber: string;
|
|
276
278
|
isPrimary: boolean;
|
|
277
279
|
description?: string | null | undefined;
|
|
278
280
|
}[];
|
|
279
|
-
createdAt: string;
|
|
280
|
-
updatedAt: string;
|
|
281
281
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
282
282
|
office?: {
|
|
283
283
|
id: string;
|
|
@@ -290,22 +290,22 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
290
290
|
}[] | undefined;
|
|
291
291
|
}, {
|
|
292
292
|
id: string;
|
|
293
|
+
updatedAt: string | Date;
|
|
294
|
+
createdAt: string | Date;
|
|
295
|
+
email: string;
|
|
293
296
|
firstName: string;
|
|
294
297
|
lastName: string;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
299
|
+
office?: {
|
|
300
|
+
id: string;
|
|
301
|
+
name: string;
|
|
302
|
+
} | null | undefined;
|
|
298
303
|
phoneNumbers?: {
|
|
299
304
|
id: string;
|
|
300
305
|
phoneNumber: string;
|
|
301
306
|
description?: string | null | undefined;
|
|
302
307
|
isPrimary?: boolean | undefined;
|
|
303
308
|
}[] | undefined;
|
|
304
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
305
|
-
office?: {
|
|
306
|
-
id: string;
|
|
307
|
-
name: string;
|
|
308
|
-
} | null | undefined;
|
|
309
309
|
canImpersonateUsers?: {
|
|
310
310
|
id: string;
|
|
311
311
|
firstName: string;
|
|
@@ -326,32 +326,32 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
326
326
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
327
327
|
}, "strip", z.ZodTypeAny, {
|
|
328
328
|
id: string;
|
|
329
|
-
agentId: string;
|
|
330
329
|
name: string;
|
|
331
|
-
phoneNumber: string;
|
|
332
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
333
|
-
createdAt: string;
|
|
334
330
|
updatedAt: string;
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
cooldownUntil: string | null;
|
|
331
|
+
createdAt: string;
|
|
332
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
338
333
|
blacklistReason: string | null;
|
|
334
|
+
agentId: string;
|
|
335
|
+
phoneNumber: string;
|
|
336
|
+
lastCalledAt: string | null;
|
|
337
|
+
callCount: number;
|
|
339
338
|
lastCallNotes: string | null;
|
|
340
339
|
existsInLeadsTable: boolean;
|
|
340
|
+
cooldownUntil: string | null;
|
|
341
341
|
originalLeadId: string | null;
|
|
342
342
|
agent?: {
|
|
343
343
|
id: string;
|
|
344
|
+
updatedAt: string;
|
|
345
|
+
createdAt: string;
|
|
346
|
+
email: string;
|
|
344
347
|
firstName: string;
|
|
345
348
|
lastName: string;
|
|
346
|
-
email: string;
|
|
347
349
|
phoneNumbers: {
|
|
348
350
|
id: string;
|
|
349
351
|
phoneNumber: string;
|
|
350
352
|
isPrimary: boolean;
|
|
351
353
|
description?: string | null | undefined;
|
|
352
354
|
}[];
|
|
353
|
-
createdAt: string;
|
|
354
|
-
updatedAt: string;
|
|
355
355
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
356
356
|
office?: {
|
|
357
357
|
id: string;
|
|
@@ -365,37 +365,37 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
365
365
|
} | undefined;
|
|
366
366
|
}, {
|
|
367
367
|
id: string;
|
|
368
|
-
agentId: string;
|
|
369
368
|
name: string;
|
|
370
|
-
phoneNumber: string;
|
|
371
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
372
|
-
createdAt: string | Date;
|
|
373
369
|
updatedAt: string | Date;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
cooldownUntil: string | Date | null;
|
|
370
|
+
createdAt: string | Date;
|
|
371
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
377
372
|
blacklistReason: string | null;
|
|
373
|
+
agentId: string;
|
|
374
|
+
phoneNumber: string;
|
|
375
|
+
lastCalledAt: string | Date | null;
|
|
376
|
+
callCount: number;
|
|
378
377
|
lastCallNotes: string | null;
|
|
379
378
|
existsInLeadsTable: boolean;
|
|
379
|
+
cooldownUntil: string | Date | null;
|
|
380
380
|
originalLeadId: string | null;
|
|
381
381
|
agent?: {
|
|
382
382
|
id: string;
|
|
383
|
+
updatedAt: string | Date;
|
|
384
|
+
createdAt: string | Date;
|
|
385
|
+
email: string;
|
|
383
386
|
firstName: string;
|
|
384
387
|
lastName: string;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
389
|
+
office?: {
|
|
390
|
+
id: string;
|
|
391
|
+
name: string;
|
|
392
|
+
} | null | undefined;
|
|
388
393
|
phoneNumbers?: {
|
|
389
394
|
id: string;
|
|
390
395
|
phoneNumber: string;
|
|
391
396
|
description?: string | null | undefined;
|
|
392
397
|
isPrimary?: boolean | undefined;
|
|
393
398
|
}[] | undefined;
|
|
394
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
395
|
-
office?: {
|
|
396
|
-
id: string;
|
|
397
|
-
name: string;
|
|
398
|
-
} | null | undefined;
|
|
399
399
|
canImpersonateUsers?: {
|
|
400
400
|
id: string;
|
|
401
401
|
firstName: string;
|
|
@@ -413,38 +413,38 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
413
413
|
lead?: {
|
|
414
414
|
id: string;
|
|
415
415
|
name: string;
|
|
416
|
-
phoneNumber: string;
|
|
417
416
|
status: string;
|
|
417
|
+
phoneNumber: string;
|
|
418
418
|
cooldownUntil: string | null;
|
|
419
419
|
} | null | undefined;
|
|
420
420
|
ownResearchLead?: {
|
|
421
421
|
id: string;
|
|
422
|
-
agentId: string;
|
|
423
422
|
name: string;
|
|
424
|
-
phoneNumber: string;
|
|
425
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
426
|
-
createdAt: string;
|
|
427
423
|
updatedAt: string;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
cooldownUntil: string | null;
|
|
424
|
+
createdAt: string;
|
|
425
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
431
426
|
blacklistReason: string | null;
|
|
427
|
+
agentId: string;
|
|
428
|
+
phoneNumber: string;
|
|
429
|
+
lastCalledAt: string | null;
|
|
430
|
+
callCount: number;
|
|
432
431
|
lastCallNotes: string | null;
|
|
433
432
|
existsInLeadsTable: boolean;
|
|
433
|
+
cooldownUntil: string | null;
|
|
434
434
|
originalLeadId: string | null;
|
|
435
435
|
agent?: {
|
|
436
436
|
id: string;
|
|
437
|
+
updatedAt: string;
|
|
438
|
+
createdAt: string;
|
|
439
|
+
email: string;
|
|
437
440
|
firstName: string;
|
|
438
441
|
lastName: string;
|
|
439
|
-
email: string;
|
|
440
442
|
phoneNumbers: {
|
|
441
443
|
id: string;
|
|
442
444
|
phoneNumber: string;
|
|
443
445
|
isPrimary: boolean;
|
|
444
446
|
description?: string | null | undefined;
|
|
445
447
|
}[];
|
|
446
|
-
createdAt: string;
|
|
447
|
-
updatedAt: string;
|
|
448
448
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
449
449
|
office?: {
|
|
450
450
|
id: string;
|
|
@@ -465,43 +465,43 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
465
465
|
lead?: {
|
|
466
466
|
id: string;
|
|
467
467
|
name: string;
|
|
468
|
-
phoneNumber: string;
|
|
469
468
|
status: string;
|
|
469
|
+
phoneNumber: string;
|
|
470
470
|
cooldownUntil: string | Date | null;
|
|
471
471
|
} | null | undefined;
|
|
472
472
|
ownResearchLead?: {
|
|
473
473
|
id: string;
|
|
474
|
-
agentId: string;
|
|
475
474
|
name: string;
|
|
476
|
-
phoneNumber: string;
|
|
477
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
478
|
-
createdAt: string | Date;
|
|
479
475
|
updatedAt: string | Date;
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
cooldownUntil: string | Date | null;
|
|
476
|
+
createdAt: string | Date;
|
|
477
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
483
478
|
blacklistReason: string | null;
|
|
479
|
+
agentId: string;
|
|
480
|
+
phoneNumber: string;
|
|
481
|
+
lastCalledAt: string | Date | null;
|
|
482
|
+
callCount: number;
|
|
484
483
|
lastCallNotes: string | null;
|
|
485
484
|
existsInLeadsTable: boolean;
|
|
485
|
+
cooldownUntil: string | Date | null;
|
|
486
486
|
originalLeadId: string | null;
|
|
487
487
|
agent?: {
|
|
488
488
|
id: string;
|
|
489
|
+
updatedAt: string | Date;
|
|
490
|
+
createdAt: string | Date;
|
|
491
|
+
email: string;
|
|
489
492
|
firstName: string;
|
|
490
493
|
lastName: string;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
495
|
+
office?: {
|
|
496
|
+
id: string;
|
|
497
|
+
name: string;
|
|
498
|
+
} | null | undefined;
|
|
494
499
|
phoneNumbers?: {
|
|
495
500
|
id: string;
|
|
496
501
|
phoneNumber: string;
|
|
497
502
|
description?: string | null | undefined;
|
|
498
503
|
isPrimary?: boolean | undefined;
|
|
499
504
|
}[] | undefined;
|
|
500
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
501
|
-
office?: {
|
|
502
|
-
id: string;
|
|
503
|
-
name: string;
|
|
504
|
-
} | null | undefined;
|
|
505
505
|
canImpersonateUsers?: {
|
|
506
506
|
id: string;
|
|
507
507
|
firstName: string;
|
|
@@ -525,14 +525,14 @@ export declare const RecordOwnResearchCallSchema: z.ZodObject<{
|
|
|
525
525
|
callType: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>>;
|
|
526
526
|
}, "strip", z.ZodTypeAny, {
|
|
527
527
|
name: string;
|
|
528
|
-
phoneNumber: string;
|
|
529
528
|
rating: import("../common/call-rating.schema").CallRating;
|
|
529
|
+
phoneNumber: string;
|
|
530
530
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
531
531
|
notes?: string | undefined;
|
|
532
532
|
}, {
|
|
533
533
|
name: string;
|
|
534
|
-
phoneNumber: string;
|
|
535
534
|
rating: import("../common/call-rating.schema").CallRating;
|
|
535
|
+
phoneNumber: string;
|
|
536
536
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
537
537
|
notes?: string | undefined;
|
|
538
538
|
}>;
|
|
@@ -600,17 +600,17 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
600
600
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
602
602
|
id: string;
|
|
603
|
+
updatedAt: string;
|
|
604
|
+
createdAt: string;
|
|
605
|
+
email: string;
|
|
603
606
|
firstName: string;
|
|
604
607
|
lastName: string;
|
|
605
|
-
email: string;
|
|
606
608
|
phoneNumbers: {
|
|
607
609
|
id: string;
|
|
608
610
|
phoneNumber: string;
|
|
609
611
|
isPrimary: boolean;
|
|
610
612
|
description?: string | null | undefined;
|
|
611
613
|
}[];
|
|
612
|
-
createdAt: string;
|
|
613
|
-
updatedAt: string;
|
|
614
614
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
615
615
|
office?: {
|
|
616
616
|
id: string;
|
|
@@ -623,22 +623,22 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
623
623
|
}[] | undefined;
|
|
624
624
|
}, {
|
|
625
625
|
id: string;
|
|
626
|
+
updatedAt: string | Date;
|
|
627
|
+
createdAt: string | Date;
|
|
628
|
+
email: string;
|
|
626
629
|
firstName: string;
|
|
627
630
|
lastName: string;
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
632
|
+
office?: {
|
|
633
|
+
id: string;
|
|
634
|
+
name: string;
|
|
635
|
+
} | null | undefined;
|
|
631
636
|
phoneNumbers?: {
|
|
632
637
|
id: string;
|
|
633
638
|
phoneNumber: string;
|
|
634
639
|
description?: string | null | undefined;
|
|
635
640
|
isPrimary?: boolean | undefined;
|
|
636
641
|
}[] | undefined;
|
|
637
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
638
|
-
office?: {
|
|
639
|
-
id: string;
|
|
640
|
-
name: string;
|
|
641
|
-
} | null | undefined;
|
|
642
642
|
canImpersonateUsers?: {
|
|
643
643
|
id: string;
|
|
644
644
|
firstName: string;
|
|
@@ -657,43 +657,45 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
657
657
|
}, "strip", z.ZodTypeAny, {
|
|
658
658
|
id: string;
|
|
659
659
|
name: string;
|
|
660
|
-
createdAt: string;
|
|
661
660
|
updatedAt: string;
|
|
661
|
+
createdAt: string;
|
|
662
662
|
}, {
|
|
663
663
|
id: string;
|
|
664
664
|
name: string;
|
|
665
|
-
createdAt: string | Date;
|
|
666
665
|
updatedAt: string | Date;
|
|
666
|
+
createdAt: string | Date;
|
|
667
667
|
}>>>;
|
|
668
668
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
669
669
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
670
670
|
}, "strip", z.ZodTypeAny, {
|
|
671
671
|
id: string;
|
|
672
|
-
leadId: string;
|
|
673
|
-
agentId: string | null;
|
|
674
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
675
|
-
createdAt: string;
|
|
676
672
|
updatedAt: string;
|
|
673
|
+
createdAt: string;
|
|
674
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
675
|
+
companyId: string | null;
|
|
676
|
+
agentId: string | null;
|
|
677
|
+
leadId: string;
|
|
677
678
|
assignedAt: string;
|
|
678
679
|
assignedBy: string | null;
|
|
679
|
-
|
|
680
|
-
|
|
680
|
+
company?: {
|
|
681
|
+
id: string;
|
|
681
682
|
name: string;
|
|
682
|
-
|
|
683
|
-
|
|
683
|
+
updatedAt: string;
|
|
684
|
+
createdAt: string;
|
|
685
|
+
} | null | undefined;
|
|
684
686
|
agent?: {
|
|
685
687
|
id: string;
|
|
688
|
+
updatedAt: string;
|
|
689
|
+
createdAt: string;
|
|
690
|
+
email: string;
|
|
686
691
|
firstName: string;
|
|
687
692
|
lastName: string;
|
|
688
|
-
email: string;
|
|
689
693
|
phoneNumbers: {
|
|
690
694
|
id: string;
|
|
691
695
|
phoneNumber: string;
|
|
692
696
|
isPrimary: boolean;
|
|
693
697
|
description?: string | null | undefined;
|
|
694
698
|
}[];
|
|
695
|
-
createdAt: string;
|
|
696
|
-
updatedAt: string;
|
|
697
699
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
698
700
|
office?: {
|
|
699
701
|
id: string;
|
|
@@ -705,56 +707,54 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
705
707
|
lastName: string;
|
|
706
708
|
}[] | undefined;
|
|
707
709
|
} | undefined;
|
|
708
|
-
|
|
709
|
-
id: string;
|
|
710
|
+
lead?: {
|
|
710
711
|
name: string;
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
} | null | undefined;
|
|
712
|
+
phoneNumber: string;
|
|
713
|
+
} | undefined;
|
|
714
714
|
}, {
|
|
715
715
|
id: string;
|
|
716
|
-
leadId: string;
|
|
717
|
-
agentId: string | null;
|
|
718
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
719
|
-
createdAt: string | Date;
|
|
720
716
|
updatedAt: string | Date;
|
|
717
|
+
createdAt: string | Date;
|
|
718
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
719
|
+
companyId: string | null;
|
|
720
|
+
agentId: string | null;
|
|
721
|
+
leadId: string;
|
|
721
722
|
assignedAt: string | Date;
|
|
722
723
|
assignedBy: string | null;
|
|
723
|
-
|
|
724
|
-
|
|
724
|
+
company?: {
|
|
725
|
+
id: string;
|
|
725
726
|
name: string;
|
|
726
|
-
|
|
727
|
-
|
|
727
|
+
updatedAt: string | Date;
|
|
728
|
+
createdAt: string | Date;
|
|
729
|
+
} | null | undefined;
|
|
728
730
|
agent?: {
|
|
729
731
|
id: string;
|
|
732
|
+
updatedAt: string | Date;
|
|
733
|
+
createdAt: string | Date;
|
|
734
|
+
email: string;
|
|
730
735
|
firstName: string;
|
|
731
736
|
lastName: string;
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
737
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
738
|
+
office?: {
|
|
739
|
+
id: string;
|
|
740
|
+
name: string;
|
|
741
|
+
} | null | undefined;
|
|
735
742
|
phoneNumbers?: {
|
|
736
743
|
id: string;
|
|
737
744
|
phoneNumber: string;
|
|
738
745
|
description?: string | null | undefined;
|
|
739
746
|
isPrimary?: boolean | undefined;
|
|
740
747
|
}[] | undefined;
|
|
741
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
742
|
-
office?: {
|
|
743
|
-
id: string;
|
|
744
|
-
name: string;
|
|
745
|
-
} | null | undefined;
|
|
746
748
|
canImpersonateUsers?: {
|
|
747
749
|
id: string;
|
|
748
750
|
firstName: string;
|
|
749
751
|
lastName: string;
|
|
750
752
|
}[] | undefined;
|
|
751
753
|
} | undefined;
|
|
752
|
-
|
|
753
|
-
id: string;
|
|
754
|
+
lead?: {
|
|
754
755
|
name: string;
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
} | null | undefined;
|
|
756
|
+
phoneNumber: string;
|
|
757
|
+
} | undefined;
|
|
758
758
|
}>>>;
|
|
759
759
|
ownResearchLead: z.ZodObject<{
|
|
760
760
|
id: z.ZodString;
|
|
@@ -808,17 +808,17 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
808
808
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
809
809
|
}, "strip", z.ZodTypeAny, {
|
|
810
810
|
id: string;
|
|
811
|
+
updatedAt: string;
|
|
812
|
+
createdAt: string;
|
|
813
|
+
email: string;
|
|
811
814
|
firstName: string;
|
|
812
815
|
lastName: string;
|
|
813
|
-
email: string;
|
|
814
816
|
phoneNumbers: {
|
|
815
817
|
id: string;
|
|
816
818
|
phoneNumber: string;
|
|
817
819
|
isPrimary: boolean;
|
|
818
820
|
description?: string | null | undefined;
|
|
819
821
|
}[];
|
|
820
|
-
createdAt: string;
|
|
821
|
-
updatedAt: string;
|
|
822
822
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
823
823
|
office?: {
|
|
824
824
|
id: string;
|
|
@@ -831,22 +831,22 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
831
831
|
}[] | undefined;
|
|
832
832
|
}, {
|
|
833
833
|
id: string;
|
|
834
|
+
updatedAt: string | Date;
|
|
835
|
+
createdAt: string | Date;
|
|
836
|
+
email: string;
|
|
834
837
|
firstName: string;
|
|
835
838
|
lastName: string;
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
840
|
+
office?: {
|
|
841
|
+
id: string;
|
|
842
|
+
name: string;
|
|
843
|
+
} | null | undefined;
|
|
839
844
|
phoneNumbers?: {
|
|
840
845
|
id: string;
|
|
841
846
|
phoneNumber: string;
|
|
842
847
|
description?: string | null | undefined;
|
|
843
848
|
isPrimary?: boolean | undefined;
|
|
844
849
|
}[] | undefined;
|
|
845
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
846
|
-
office?: {
|
|
847
|
-
id: string;
|
|
848
|
-
name: string;
|
|
849
|
-
} | null | undefined;
|
|
850
850
|
canImpersonateUsers?: {
|
|
851
851
|
id: string;
|
|
852
852
|
firstName: string;
|
|
@@ -867,32 +867,32 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
867
867
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
868
868
|
}, "strip", z.ZodTypeAny, {
|
|
869
869
|
id: string;
|
|
870
|
-
agentId: string;
|
|
871
870
|
name: string;
|
|
872
|
-
phoneNumber: string;
|
|
873
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
874
|
-
createdAt: string;
|
|
875
871
|
updatedAt: string;
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
cooldownUntil: string | null;
|
|
872
|
+
createdAt: string;
|
|
873
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
879
874
|
blacklistReason: string | null;
|
|
875
|
+
agentId: string;
|
|
876
|
+
phoneNumber: string;
|
|
877
|
+
lastCalledAt: string | null;
|
|
878
|
+
callCount: number;
|
|
880
879
|
lastCallNotes: string | null;
|
|
881
880
|
existsInLeadsTable: boolean;
|
|
881
|
+
cooldownUntil: string | null;
|
|
882
882
|
originalLeadId: string | null;
|
|
883
883
|
agent?: {
|
|
884
884
|
id: string;
|
|
885
|
+
updatedAt: string;
|
|
886
|
+
createdAt: string;
|
|
887
|
+
email: string;
|
|
885
888
|
firstName: string;
|
|
886
889
|
lastName: string;
|
|
887
|
-
email: string;
|
|
888
890
|
phoneNumbers: {
|
|
889
891
|
id: string;
|
|
890
892
|
phoneNumber: string;
|
|
891
893
|
isPrimary: boolean;
|
|
892
894
|
description?: string | null | undefined;
|
|
893
895
|
}[];
|
|
894
|
-
createdAt: string;
|
|
895
|
-
updatedAt: string;
|
|
896
896
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
897
897
|
office?: {
|
|
898
898
|
id: string;
|
|
@@ -906,37 +906,37 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
906
906
|
} | undefined;
|
|
907
907
|
}, {
|
|
908
908
|
id: string;
|
|
909
|
-
agentId: string;
|
|
910
909
|
name: string;
|
|
911
|
-
phoneNumber: string;
|
|
912
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
913
|
-
createdAt: string | Date;
|
|
914
910
|
updatedAt: string | Date;
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
cooldownUntil: string | Date | null;
|
|
911
|
+
createdAt: string | Date;
|
|
912
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
918
913
|
blacklistReason: string | null;
|
|
914
|
+
agentId: string;
|
|
915
|
+
phoneNumber: string;
|
|
916
|
+
lastCalledAt: string | Date | null;
|
|
917
|
+
callCount: number;
|
|
919
918
|
lastCallNotes: string | null;
|
|
920
919
|
existsInLeadsTable: boolean;
|
|
920
|
+
cooldownUntil: string | Date | null;
|
|
921
921
|
originalLeadId: string | null;
|
|
922
922
|
agent?: {
|
|
923
923
|
id: string;
|
|
924
|
+
updatedAt: string | Date;
|
|
925
|
+
createdAt: string | Date;
|
|
926
|
+
email: string;
|
|
924
927
|
firstName: string;
|
|
925
928
|
lastName: string;
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
930
|
+
office?: {
|
|
931
|
+
id: string;
|
|
932
|
+
name: string;
|
|
933
|
+
} | null | undefined;
|
|
929
934
|
phoneNumbers?: {
|
|
930
935
|
id: string;
|
|
931
936
|
phoneNumber: string;
|
|
932
937
|
description?: string | null | undefined;
|
|
933
938
|
isPrimary?: boolean | undefined;
|
|
934
939
|
}[] | undefined;
|
|
935
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
936
|
-
office?: {
|
|
937
|
-
id: string;
|
|
938
|
-
name: string;
|
|
939
|
-
} | null | undefined;
|
|
940
940
|
canImpersonateUsers?: {
|
|
941
941
|
id: string;
|
|
942
942
|
firstName: string;
|
|
@@ -947,32 +947,32 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
947
947
|
}, "strip", z.ZodTypeAny, {
|
|
948
948
|
ownResearchLead: {
|
|
949
949
|
id: string;
|
|
950
|
-
agentId: string;
|
|
951
950
|
name: string;
|
|
952
|
-
phoneNumber: string;
|
|
953
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
954
|
-
createdAt: string;
|
|
955
951
|
updatedAt: string;
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
cooldownUntil: string | null;
|
|
952
|
+
createdAt: string;
|
|
953
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
959
954
|
blacklistReason: string | null;
|
|
955
|
+
agentId: string;
|
|
956
|
+
phoneNumber: string;
|
|
957
|
+
lastCalledAt: string | null;
|
|
958
|
+
callCount: number;
|
|
960
959
|
lastCallNotes: string | null;
|
|
961
960
|
existsInLeadsTable: boolean;
|
|
961
|
+
cooldownUntil: string | null;
|
|
962
962
|
originalLeadId: string | null;
|
|
963
963
|
agent?: {
|
|
964
964
|
id: string;
|
|
965
|
+
updatedAt: string;
|
|
966
|
+
createdAt: string;
|
|
967
|
+
email: string;
|
|
965
968
|
firstName: string;
|
|
966
969
|
lastName: string;
|
|
967
|
-
email: string;
|
|
968
970
|
phoneNumbers: {
|
|
969
971
|
id: string;
|
|
970
972
|
phoneNumber: string;
|
|
971
973
|
isPrimary: boolean;
|
|
972
974
|
description?: string | null | undefined;
|
|
973
975
|
}[];
|
|
974
|
-
createdAt: string;
|
|
975
|
-
updatedAt: string;
|
|
976
976
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
977
977
|
office?: {
|
|
978
978
|
id: string;
|
|
@@ -987,31 +987,33 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
987
987
|
};
|
|
988
988
|
assignment?: {
|
|
989
989
|
id: string;
|
|
990
|
-
leadId: string;
|
|
991
|
-
agentId: string | null;
|
|
992
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
993
|
-
createdAt: string;
|
|
994
990
|
updatedAt: string;
|
|
991
|
+
createdAt: string;
|
|
992
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
993
|
+
companyId: string | null;
|
|
994
|
+
agentId: string | null;
|
|
995
|
+
leadId: string;
|
|
995
996
|
assignedAt: string;
|
|
996
997
|
assignedBy: string | null;
|
|
997
|
-
|
|
998
|
-
|
|
998
|
+
company?: {
|
|
999
|
+
id: string;
|
|
999
1000
|
name: string;
|
|
1000
|
-
|
|
1001
|
-
|
|
1001
|
+
updatedAt: string;
|
|
1002
|
+
createdAt: string;
|
|
1003
|
+
} | null | undefined;
|
|
1002
1004
|
agent?: {
|
|
1003
1005
|
id: string;
|
|
1006
|
+
updatedAt: string;
|
|
1007
|
+
createdAt: string;
|
|
1008
|
+
email: string;
|
|
1004
1009
|
firstName: string;
|
|
1005
1010
|
lastName: string;
|
|
1006
|
-
email: string;
|
|
1007
1011
|
phoneNumbers: {
|
|
1008
1012
|
id: string;
|
|
1009
1013
|
phoneNumber: string;
|
|
1010
1014
|
isPrimary: boolean;
|
|
1011
1015
|
description?: string | null | undefined;
|
|
1012
1016
|
}[];
|
|
1013
|
-
createdAt: string;
|
|
1014
|
-
updatedAt: string;
|
|
1015
1017
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1016
1018
|
office?: {
|
|
1017
1019
|
id: string;
|
|
@@ -1023,47 +1025,45 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1023
1025
|
lastName: string;
|
|
1024
1026
|
}[] | undefined;
|
|
1025
1027
|
} | undefined;
|
|
1026
|
-
|
|
1027
|
-
id: string;
|
|
1028
|
+
lead?: {
|
|
1028
1029
|
name: string;
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
} | null | undefined;
|
|
1030
|
+
phoneNumber: string;
|
|
1031
|
+
} | undefined;
|
|
1032
1032
|
} | null | undefined;
|
|
1033
1033
|
}, {
|
|
1034
1034
|
ownResearchLead: {
|
|
1035
1035
|
id: string;
|
|
1036
|
-
agentId: string;
|
|
1037
1036
|
name: string;
|
|
1038
|
-
phoneNumber: string;
|
|
1039
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1040
|
-
createdAt: string | Date;
|
|
1041
1037
|
updatedAt: string | Date;
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
cooldownUntil: string | Date | null;
|
|
1038
|
+
createdAt: string | Date;
|
|
1039
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
1045
1040
|
blacklistReason: string | null;
|
|
1041
|
+
agentId: string;
|
|
1042
|
+
phoneNumber: string;
|
|
1043
|
+
lastCalledAt: string | Date | null;
|
|
1044
|
+
callCount: number;
|
|
1046
1045
|
lastCallNotes: string | null;
|
|
1047
1046
|
existsInLeadsTable: boolean;
|
|
1047
|
+
cooldownUntil: string | Date | null;
|
|
1048
1048
|
originalLeadId: string | null;
|
|
1049
1049
|
agent?: {
|
|
1050
1050
|
id: string;
|
|
1051
|
+
updatedAt: string | Date;
|
|
1052
|
+
createdAt: string | Date;
|
|
1053
|
+
email: string;
|
|
1051
1054
|
firstName: string;
|
|
1052
1055
|
lastName: string;
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1057
|
+
office?: {
|
|
1058
|
+
id: string;
|
|
1059
|
+
name: string;
|
|
1060
|
+
} | null | undefined;
|
|
1056
1061
|
phoneNumbers?: {
|
|
1057
1062
|
id: string;
|
|
1058
1063
|
phoneNumber: string;
|
|
1059
1064
|
description?: string | null | undefined;
|
|
1060
1065
|
isPrimary?: boolean | undefined;
|
|
1061
1066
|
}[] | undefined;
|
|
1062
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1063
|
-
office?: {
|
|
1064
|
-
id: string;
|
|
1065
|
-
name: string;
|
|
1066
|
-
} | null | undefined;
|
|
1067
1067
|
canImpersonateUsers?: {
|
|
1068
1068
|
id: string;
|
|
1069
1069
|
firstName: string;
|
|
@@ -1073,48 +1073,48 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1073
1073
|
};
|
|
1074
1074
|
assignment?: {
|
|
1075
1075
|
id: string;
|
|
1076
|
-
leadId: string;
|
|
1077
|
-
agentId: string | null;
|
|
1078
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1079
|
-
createdAt: string | Date;
|
|
1080
1076
|
updatedAt: string | Date;
|
|
1077
|
+
createdAt: string | Date;
|
|
1078
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1079
|
+
companyId: string | null;
|
|
1080
|
+
agentId: string | null;
|
|
1081
|
+
leadId: string;
|
|
1081
1082
|
assignedAt: string | Date;
|
|
1082
1083
|
assignedBy: string | null;
|
|
1083
|
-
|
|
1084
|
-
|
|
1084
|
+
company?: {
|
|
1085
|
+
id: string;
|
|
1085
1086
|
name: string;
|
|
1086
|
-
|
|
1087
|
-
|
|
1087
|
+
updatedAt: string | Date;
|
|
1088
|
+
createdAt: string | Date;
|
|
1089
|
+
} | null | undefined;
|
|
1088
1090
|
agent?: {
|
|
1089
1091
|
id: string;
|
|
1092
|
+
updatedAt: string | Date;
|
|
1093
|
+
createdAt: string | Date;
|
|
1094
|
+
email: string;
|
|
1090
1095
|
firstName: string;
|
|
1091
1096
|
lastName: string;
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1097
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1098
|
+
office?: {
|
|
1099
|
+
id: string;
|
|
1100
|
+
name: string;
|
|
1101
|
+
} | null | undefined;
|
|
1095
1102
|
phoneNumbers?: {
|
|
1096
1103
|
id: string;
|
|
1097
1104
|
phoneNumber: string;
|
|
1098
1105
|
description?: string | null | undefined;
|
|
1099
1106
|
isPrimary?: boolean | undefined;
|
|
1100
1107
|
}[] | undefined;
|
|
1101
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1102
|
-
office?: {
|
|
1103
|
-
id: string;
|
|
1104
|
-
name: string;
|
|
1105
|
-
} | null | undefined;
|
|
1106
1108
|
canImpersonateUsers?: {
|
|
1107
1109
|
id: string;
|
|
1108
1110
|
firstName: string;
|
|
1109
1111
|
lastName: string;
|
|
1110
1112
|
}[] | undefined;
|
|
1111
1113
|
} | undefined;
|
|
1112
|
-
|
|
1113
|
-
id: string;
|
|
1114
|
+
lead?: {
|
|
1114
1115
|
name: string;
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
} | null | undefined;
|
|
1116
|
+
phoneNumber: string;
|
|
1117
|
+
} | undefined;
|
|
1118
1118
|
} | null | undefined;
|
|
1119
1119
|
}>;
|
|
1120
1120
|
export declare const AddOwnResearchLeadSchema: z.ZodObject<{
|
|
@@ -1180,17 +1180,17 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1180
1180
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1181
1181
|
}, "strip", z.ZodTypeAny, {
|
|
1182
1182
|
id: string;
|
|
1183
|
+
updatedAt: string;
|
|
1184
|
+
createdAt: string;
|
|
1185
|
+
email: string;
|
|
1183
1186
|
firstName: string;
|
|
1184
1187
|
lastName: string;
|
|
1185
|
-
email: string;
|
|
1186
1188
|
phoneNumbers: {
|
|
1187
1189
|
id: string;
|
|
1188
1190
|
phoneNumber: string;
|
|
1189
1191
|
isPrimary: boolean;
|
|
1190
1192
|
description?: string | null | undefined;
|
|
1191
1193
|
}[];
|
|
1192
|
-
createdAt: string;
|
|
1193
|
-
updatedAt: string;
|
|
1194
1194
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1195
1195
|
office?: {
|
|
1196
1196
|
id: string;
|
|
@@ -1203,22 +1203,22 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1203
1203
|
}[] | undefined;
|
|
1204
1204
|
}, {
|
|
1205
1205
|
id: string;
|
|
1206
|
+
updatedAt: string | Date;
|
|
1207
|
+
createdAt: string | Date;
|
|
1208
|
+
email: string;
|
|
1206
1209
|
firstName: string;
|
|
1207
1210
|
lastName: string;
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1212
|
+
office?: {
|
|
1213
|
+
id: string;
|
|
1214
|
+
name: string;
|
|
1215
|
+
} | null | undefined;
|
|
1211
1216
|
phoneNumbers?: {
|
|
1212
1217
|
id: string;
|
|
1213
1218
|
phoneNumber: string;
|
|
1214
1219
|
description?: string | null | undefined;
|
|
1215
1220
|
isPrimary?: boolean | undefined;
|
|
1216
1221
|
}[] | undefined;
|
|
1217
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1218
|
-
office?: {
|
|
1219
|
-
id: string;
|
|
1220
|
-
name: string;
|
|
1221
|
-
} | null | undefined;
|
|
1222
1222
|
canImpersonateUsers?: {
|
|
1223
1223
|
id: string;
|
|
1224
1224
|
firstName: string;
|
|
@@ -1239,32 +1239,32 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1239
1239
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1240
1240
|
}, "strip", z.ZodTypeAny, {
|
|
1241
1241
|
id: string;
|
|
1242
|
-
agentId: string;
|
|
1243
1242
|
name: string;
|
|
1244
|
-
phoneNumber: string;
|
|
1245
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1246
|
-
createdAt: string;
|
|
1247
1243
|
updatedAt: string;
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
cooldownUntil: string | null;
|
|
1244
|
+
createdAt: string;
|
|
1245
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
1251
1246
|
blacklistReason: string | null;
|
|
1252
|
-
|
|
1247
|
+
agentId: string;
|
|
1248
|
+
phoneNumber: string;
|
|
1249
|
+
lastCalledAt: string | null;
|
|
1250
|
+
callCount: number;
|
|
1251
|
+
lastCallNotes: string | null;
|
|
1253
1252
|
existsInLeadsTable: boolean;
|
|
1253
|
+
cooldownUntil: string | null;
|
|
1254
1254
|
originalLeadId: string | null;
|
|
1255
1255
|
agent?: {
|
|
1256
1256
|
id: string;
|
|
1257
|
+
updatedAt: string;
|
|
1258
|
+
createdAt: string;
|
|
1259
|
+
email: string;
|
|
1257
1260
|
firstName: string;
|
|
1258
1261
|
lastName: string;
|
|
1259
|
-
email: string;
|
|
1260
1262
|
phoneNumbers: {
|
|
1261
1263
|
id: string;
|
|
1262
1264
|
phoneNumber: string;
|
|
1263
1265
|
isPrimary: boolean;
|
|
1264
1266
|
description?: string | null | undefined;
|
|
1265
1267
|
}[];
|
|
1266
|
-
createdAt: string;
|
|
1267
|
-
updatedAt: string;
|
|
1268
1268
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1269
1269
|
office?: {
|
|
1270
1270
|
id: string;
|
|
@@ -1278,37 +1278,37 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1278
1278
|
} | undefined;
|
|
1279
1279
|
}, {
|
|
1280
1280
|
id: string;
|
|
1281
|
-
agentId: string;
|
|
1282
1281
|
name: string;
|
|
1283
|
-
phoneNumber: string;
|
|
1284
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1285
|
-
createdAt: string | Date;
|
|
1286
1282
|
updatedAt: string | Date;
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
cooldownUntil: string | Date | null;
|
|
1283
|
+
createdAt: string | Date;
|
|
1284
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
1290
1285
|
blacklistReason: string | null;
|
|
1286
|
+
agentId: string;
|
|
1287
|
+
phoneNumber: string;
|
|
1288
|
+
lastCalledAt: string | Date | null;
|
|
1289
|
+
callCount: number;
|
|
1291
1290
|
lastCallNotes: string | null;
|
|
1292
1291
|
existsInLeadsTable: boolean;
|
|
1292
|
+
cooldownUntil: string | Date | null;
|
|
1293
1293
|
originalLeadId: string | null;
|
|
1294
1294
|
agent?: {
|
|
1295
1295
|
id: string;
|
|
1296
|
+
updatedAt: string | Date;
|
|
1297
|
+
createdAt: string | Date;
|
|
1298
|
+
email: string;
|
|
1296
1299
|
firstName: string;
|
|
1297
1300
|
lastName: string;
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1302
|
+
office?: {
|
|
1303
|
+
id: string;
|
|
1304
|
+
name: string;
|
|
1305
|
+
} | null | undefined;
|
|
1301
1306
|
phoneNumbers?: {
|
|
1302
1307
|
id: string;
|
|
1303
1308
|
phoneNumber: string;
|
|
1304
1309
|
description?: string | null | undefined;
|
|
1305
1310
|
isPrimary?: boolean | undefined;
|
|
1306
1311
|
}[] | undefined;
|
|
1307
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1308
|
-
office?: {
|
|
1309
|
-
id: string;
|
|
1310
|
-
name: string;
|
|
1311
|
-
} | null | undefined;
|
|
1312
1312
|
canImpersonateUsers?: {
|
|
1313
1313
|
id: string;
|
|
1314
1314
|
firstName: string;
|
|
@@ -1319,32 +1319,32 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1319
1319
|
}, "strip", z.ZodTypeAny, {
|
|
1320
1320
|
ownResearchLead: {
|
|
1321
1321
|
id: string;
|
|
1322
|
-
agentId: string;
|
|
1323
1322
|
name: string;
|
|
1324
|
-
phoneNumber: string;
|
|
1325
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1326
|
-
createdAt: string;
|
|
1327
1323
|
updatedAt: string;
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
cooldownUntil: string | null;
|
|
1324
|
+
createdAt: string;
|
|
1325
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
1331
1326
|
blacklistReason: string | null;
|
|
1327
|
+
agentId: string;
|
|
1328
|
+
phoneNumber: string;
|
|
1329
|
+
lastCalledAt: string | null;
|
|
1330
|
+
callCount: number;
|
|
1332
1331
|
lastCallNotes: string | null;
|
|
1333
1332
|
existsInLeadsTable: boolean;
|
|
1333
|
+
cooldownUntil: string | null;
|
|
1334
1334
|
originalLeadId: string | null;
|
|
1335
1335
|
agent?: {
|
|
1336
1336
|
id: string;
|
|
1337
|
+
updatedAt: string;
|
|
1338
|
+
createdAt: string;
|
|
1339
|
+
email: string;
|
|
1337
1340
|
firstName: string;
|
|
1338
1341
|
lastName: string;
|
|
1339
|
-
email: string;
|
|
1340
1342
|
phoneNumbers: {
|
|
1341
1343
|
id: string;
|
|
1342
1344
|
phoneNumber: string;
|
|
1343
1345
|
isPrimary: boolean;
|
|
1344
1346
|
description?: string | null | undefined;
|
|
1345
1347
|
}[];
|
|
1346
|
-
createdAt: string;
|
|
1347
|
-
updatedAt: string;
|
|
1348
1348
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1349
1349
|
office?: {
|
|
1350
1350
|
id: string;
|
|
@@ -1360,37 +1360,37 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1360
1360
|
}, {
|
|
1361
1361
|
ownResearchLead: {
|
|
1362
1362
|
id: string;
|
|
1363
|
-
agentId: string;
|
|
1364
1363
|
name: string;
|
|
1365
|
-
phoneNumber: string;
|
|
1366
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1367
|
-
createdAt: string | Date;
|
|
1368
1364
|
updatedAt: string | Date;
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
cooldownUntil: string | Date | null;
|
|
1365
|
+
createdAt: string | Date;
|
|
1366
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
1372
1367
|
blacklistReason: string | null;
|
|
1368
|
+
agentId: string;
|
|
1369
|
+
phoneNumber: string;
|
|
1370
|
+
lastCalledAt: string | Date | null;
|
|
1371
|
+
callCount: number;
|
|
1373
1372
|
lastCallNotes: string | null;
|
|
1374
1373
|
existsInLeadsTable: boolean;
|
|
1374
|
+
cooldownUntil: string | Date | null;
|
|
1375
1375
|
originalLeadId: string | null;
|
|
1376
1376
|
agent?: {
|
|
1377
1377
|
id: string;
|
|
1378
|
+
updatedAt: string | Date;
|
|
1379
|
+
createdAt: string | Date;
|
|
1380
|
+
email: string;
|
|
1378
1381
|
firstName: string;
|
|
1379
1382
|
lastName: string;
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1384
|
+
office?: {
|
|
1385
|
+
id: string;
|
|
1386
|
+
name: string;
|
|
1387
|
+
} | null | undefined;
|
|
1383
1388
|
phoneNumbers?: {
|
|
1384
1389
|
id: string;
|
|
1385
1390
|
phoneNumber: string;
|
|
1386
1391
|
description?: string | null | undefined;
|
|
1387
1392
|
isPrimary?: boolean | undefined;
|
|
1388
1393
|
}[] | undefined;
|
|
1389
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1390
|
-
office?: {
|
|
1391
|
-
id: string;
|
|
1392
|
-
name: string;
|
|
1393
|
-
} | null | undefined;
|
|
1394
1394
|
canImpersonateUsers?: {
|
|
1395
1395
|
id: string;
|
|
1396
1396
|
firstName: string;
|
|
@@ -1431,13 +1431,13 @@ export declare const FilterOwnResearchLeadSchema: z.ZodObject<{
|
|
|
1431
1431
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "lastCalledAt", "callCount", "name"]>>;
|
|
1432
1432
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
1433
1433
|
}, "strip", z.ZodTypeAny, {
|
|
1434
|
-
limit: number;
|
|
1435
1434
|
page: number;
|
|
1435
|
+
limit: number;
|
|
1436
1436
|
name?: string | undefined;
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1437
|
+
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1438
|
+
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
1440
1439
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1440
|
+
phoneNumber?: string | undefined;
|
|
1441
1441
|
lastCalledAt?: {
|
|
1442
1442
|
from?: string | null | undefined;
|
|
1443
1443
|
to?: string | null | undefined;
|
|
@@ -1445,12 +1445,12 @@ export declare const FilterOwnResearchLeadSchema: z.ZodObject<{
|
|
|
1445
1445
|
minTotalCalls?: number | undefined;
|
|
1446
1446
|
}, {
|
|
1447
1447
|
name?: string | undefined;
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
limit?: number | undefined;
|
|
1451
|
-
page?: number | undefined;
|
|
1452
|
-
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1448
|
+
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1449
|
+
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
1453
1450
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1451
|
+
page?: number | undefined;
|
|
1452
|
+
limit?: number | undefined;
|
|
1453
|
+
phoneNumber?: string | undefined;
|
|
1454
1454
|
lastCalledAt?: {
|
|
1455
1455
|
from?: string | null | undefined;
|
|
1456
1456
|
to?: string | null | undefined;
|
|
@@ -1510,17 +1510,17 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1510
1510
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1511
1511
|
}, "strip", z.ZodTypeAny, {
|
|
1512
1512
|
id: string;
|
|
1513
|
+
updatedAt: string;
|
|
1514
|
+
createdAt: string;
|
|
1515
|
+
email: string;
|
|
1513
1516
|
firstName: string;
|
|
1514
1517
|
lastName: string;
|
|
1515
|
-
email: string;
|
|
1516
1518
|
phoneNumbers: {
|
|
1517
1519
|
id: string;
|
|
1518
1520
|
phoneNumber: string;
|
|
1519
1521
|
isPrimary: boolean;
|
|
1520
1522
|
description?: string | null | undefined;
|
|
1521
1523
|
}[];
|
|
1522
|
-
createdAt: string;
|
|
1523
|
-
updatedAt: string;
|
|
1524
1524
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1525
1525
|
office?: {
|
|
1526
1526
|
id: string;
|
|
@@ -1533,22 +1533,22 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1533
1533
|
}[] | undefined;
|
|
1534
1534
|
}, {
|
|
1535
1535
|
id: string;
|
|
1536
|
+
updatedAt: string | Date;
|
|
1537
|
+
createdAt: string | Date;
|
|
1538
|
+
email: string;
|
|
1536
1539
|
firstName: string;
|
|
1537
1540
|
lastName: string;
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1542
|
+
office?: {
|
|
1543
|
+
id: string;
|
|
1544
|
+
name: string;
|
|
1545
|
+
} | null | undefined;
|
|
1541
1546
|
phoneNumbers?: {
|
|
1542
1547
|
id: string;
|
|
1543
1548
|
phoneNumber: string;
|
|
1544
1549
|
description?: string | null | undefined;
|
|
1545
1550
|
isPrimary?: boolean | undefined;
|
|
1546
1551
|
}[] | undefined;
|
|
1547
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1548
|
-
office?: {
|
|
1549
|
-
id: string;
|
|
1550
|
-
name: string;
|
|
1551
|
-
} | null | undefined;
|
|
1552
1552
|
canImpersonateUsers?: {
|
|
1553
1553
|
id: string;
|
|
1554
1554
|
firstName: string;
|
|
@@ -1569,32 +1569,32 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1569
1569
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1570
1570
|
}, "strip", z.ZodTypeAny, {
|
|
1571
1571
|
id: string;
|
|
1572
|
-
agentId: string;
|
|
1573
1572
|
name: string;
|
|
1574
|
-
phoneNumber: string;
|
|
1575
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1576
|
-
createdAt: string;
|
|
1577
1573
|
updatedAt: string;
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
cooldownUntil: string | null;
|
|
1574
|
+
createdAt: string;
|
|
1575
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
1581
1576
|
blacklistReason: string | null;
|
|
1577
|
+
agentId: string;
|
|
1578
|
+
phoneNumber: string;
|
|
1579
|
+
lastCalledAt: string | null;
|
|
1580
|
+
callCount: number;
|
|
1582
1581
|
lastCallNotes: string | null;
|
|
1583
1582
|
existsInLeadsTable: boolean;
|
|
1583
|
+
cooldownUntil: string | null;
|
|
1584
1584
|
originalLeadId: string | null;
|
|
1585
1585
|
agent?: {
|
|
1586
1586
|
id: string;
|
|
1587
|
+
updatedAt: string;
|
|
1588
|
+
createdAt: string;
|
|
1589
|
+
email: string;
|
|
1587
1590
|
firstName: string;
|
|
1588
1591
|
lastName: string;
|
|
1589
|
-
email: string;
|
|
1590
1592
|
phoneNumbers: {
|
|
1591
1593
|
id: string;
|
|
1592
1594
|
phoneNumber: string;
|
|
1593
1595
|
isPrimary: boolean;
|
|
1594
1596
|
description?: string | null | undefined;
|
|
1595
1597
|
}[];
|
|
1596
|
-
createdAt: string;
|
|
1597
|
-
updatedAt: string;
|
|
1598
1598
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1599
1599
|
office?: {
|
|
1600
1600
|
id: string;
|
|
@@ -1608,37 +1608,37 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1608
1608
|
} | undefined;
|
|
1609
1609
|
}, {
|
|
1610
1610
|
id: string;
|
|
1611
|
-
agentId: string;
|
|
1612
1611
|
name: string;
|
|
1613
|
-
phoneNumber: string;
|
|
1614
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1615
|
-
createdAt: string | Date;
|
|
1616
1612
|
updatedAt: string | Date;
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
cooldownUntil: string | Date | null;
|
|
1613
|
+
createdAt: string | Date;
|
|
1614
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
1620
1615
|
blacklistReason: string | null;
|
|
1616
|
+
agentId: string;
|
|
1617
|
+
phoneNumber: string;
|
|
1618
|
+
lastCalledAt: string | Date | null;
|
|
1619
|
+
callCount: number;
|
|
1621
1620
|
lastCallNotes: string | null;
|
|
1622
1621
|
existsInLeadsTable: boolean;
|
|
1622
|
+
cooldownUntil: string | Date | null;
|
|
1623
1623
|
originalLeadId: string | null;
|
|
1624
1624
|
agent?: {
|
|
1625
1625
|
id: string;
|
|
1626
|
+
updatedAt: string | Date;
|
|
1627
|
+
createdAt: string | Date;
|
|
1628
|
+
email: string;
|
|
1626
1629
|
firstName: string;
|
|
1627
1630
|
lastName: string;
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1632
|
+
office?: {
|
|
1633
|
+
id: string;
|
|
1634
|
+
name: string;
|
|
1635
|
+
} | null | undefined;
|
|
1631
1636
|
phoneNumbers?: {
|
|
1632
1637
|
id: string;
|
|
1633
1638
|
phoneNumber: string;
|
|
1634
1639
|
description?: string | null | undefined;
|
|
1635
1640
|
isPrimary?: boolean | undefined;
|
|
1636
1641
|
}[] | undefined;
|
|
1637
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1638
|
-
office?: {
|
|
1639
|
-
id: string;
|
|
1640
|
-
name: string;
|
|
1641
|
-
} | null | undefined;
|
|
1642
1642
|
canImpersonateUsers?: {
|
|
1643
1643
|
id: string;
|
|
1644
1644
|
firstName: string;
|
|
@@ -1652,34 +1652,35 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1652
1652
|
currentPage: z.ZodNumber;
|
|
1653
1653
|
totalPages: z.ZodNumber;
|
|
1654
1654
|
}, "strip", z.ZodTypeAny, {
|
|
1655
|
+
limit: number;
|
|
1655
1656
|
items: {
|
|
1656
1657
|
id: string;
|
|
1657
|
-
agentId: string;
|
|
1658
1658
|
name: string;
|
|
1659
|
-
phoneNumber: string;
|
|
1660
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1661
|
-
createdAt: string;
|
|
1662
1659
|
updatedAt: string;
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
cooldownUntil: string | null;
|
|
1660
|
+
createdAt: string;
|
|
1661
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
1666
1662
|
blacklistReason: string | null;
|
|
1663
|
+
agentId: string;
|
|
1664
|
+
phoneNumber: string;
|
|
1665
|
+
lastCalledAt: string | null;
|
|
1666
|
+
callCount: number;
|
|
1667
1667
|
lastCallNotes: string | null;
|
|
1668
1668
|
existsInLeadsTable: boolean;
|
|
1669
|
+
cooldownUntil: string | null;
|
|
1669
1670
|
originalLeadId: string | null;
|
|
1670
1671
|
agent?: {
|
|
1671
1672
|
id: string;
|
|
1673
|
+
updatedAt: string;
|
|
1674
|
+
createdAt: string;
|
|
1675
|
+
email: string;
|
|
1672
1676
|
firstName: string;
|
|
1673
1677
|
lastName: string;
|
|
1674
|
-
email: string;
|
|
1675
1678
|
phoneNumbers: {
|
|
1676
1679
|
id: string;
|
|
1677
1680
|
phoneNumber: string;
|
|
1678
1681
|
isPrimary: boolean;
|
|
1679
1682
|
description?: string | null | undefined;
|
|
1680
1683
|
}[];
|
|
1681
|
-
createdAt: string;
|
|
1682
|
-
updatedAt: string;
|
|
1683
1684
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1684
1685
|
office?: {
|
|
1685
1686
|
id: string;
|
|
@@ -1693,44 +1694,44 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1693
1694
|
} | undefined;
|
|
1694
1695
|
}[];
|
|
1695
1696
|
totalCount: number;
|
|
1696
|
-
limit: number;
|
|
1697
1697
|
skip: number;
|
|
1698
1698
|
currentPage: number;
|
|
1699
1699
|
totalPages: number;
|
|
1700
1700
|
}, {
|
|
1701
|
+
limit: number;
|
|
1701
1702
|
items: {
|
|
1702
1703
|
id: string;
|
|
1703
|
-
agentId: string;
|
|
1704
1704
|
name: string;
|
|
1705
|
-
phoneNumber: string;
|
|
1706
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1707
|
-
createdAt: string | Date;
|
|
1708
1705
|
updatedAt: string | Date;
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
cooldownUntil: string | Date | null;
|
|
1706
|
+
createdAt: string | Date;
|
|
1707
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
1712
1708
|
blacklistReason: string | null;
|
|
1709
|
+
agentId: string;
|
|
1710
|
+
phoneNumber: string;
|
|
1711
|
+
lastCalledAt: string | Date | null;
|
|
1712
|
+
callCount: number;
|
|
1713
1713
|
lastCallNotes: string | null;
|
|
1714
1714
|
existsInLeadsTable: boolean;
|
|
1715
|
+
cooldownUntil: string | Date | null;
|
|
1715
1716
|
originalLeadId: string | null;
|
|
1716
1717
|
agent?: {
|
|
1717
1718
|
id: string;
|
|
1719
|
+
updatedAt: string | Date;
|
|
1720
|
+
createdAt: string | Date;
|
|
1721
|
+
email: string;
|
|
1718
1722
|
firstName: string;
|
|
1719
1723
|
lastName: string;
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1724
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1725
|
+
office?: {
|
|
1726
|
+
id: string;
|
|
1727
|
+
name: string;
|
|
1728
|
+
} | null | undefined;
|
|
1723
1729
|
phoneNumbers?: {
|
|
1724
1730
|
id: string;
|
|
1725
1731
|
phoneNumber: string;
|
|
1726
1732
|
description?: string | null | undefined;
|
|
1727
1733
|
isPrimary?: boolean | undefined;
|
|
1728
1734
|
}[] | undefined;
|
|
1729
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1730
|
-
office?: {
|
|
1731
|
-
id: string;
|
|
1732
|
-
name: string;
|
|
1733
|
-
} | null | undefined;
|
|
1734
1735
|
canImpersonateUsers?: {
|
|
1735
1736
|
id: string;
|
|
1736
1737
|
firstName: string;
|
|
@@ -1739,7 +1740,6 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1739
1740
|
} | undefined;
|
|
1740
1741
|
}[];
|
|
1741
1742
|
totalCount: number;
|
|
1742
|
-
limit: number;
|
|
1743
1743
|
skip: number;
|
|
1744
1744
|
currentPage: number;
|
|
1745
1745
|
totalPages: number;
|
|
@@ -1876,9 +1876,6 @@ export declare const ownResearchContract: {
|
|
|
1876
1876
|
};
|
|
1877
1877
|
};
|
|
1878
1878
|
findAll: {
|
|
1879
|
-
metadata: {
|
|
1880
|
-
tags: string[];
|
|
1881
|
-
};
|
|
1882
1879
|
query: z.ZodObject<{
|
|
1883
1880
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1884
1881
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1900,13 +1897,13 @@ export declare const ownResearchContract: {
|
|
|
1900
1897
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "lastCalledAt", "callCount", "name"]>>;
|
|
1901
1898
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
1902
1899
|
}, "strip", z.ZodTypeAny, {
|
|
1903
|
-
limit: number;
|
|
1904
1900
|
page: number;
|
|
1901
|
+
limit: number;
|
|
1905
1902
|
name?: string | undefined;
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1903
|
+
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1904
|
+
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
1909
1905
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1906
|
+
phoneNumber?: string | undefined;
|
|
1910
1907
|
lastCalledAt?: {
|
|
1911
1908
|
from?: string | null | undefined;
|
|
1912
1909
|
to?: string | null | undefined;
|
|
@@ -1914,18 +1911,21 @@ export declare const ownResearchContract: {
|
|
|
1914
1911
|
minTotalCalls?: number | undefined;
|
|
1915
1912
|
}, {
|
|
1916
1913
|
name?: string | undefined;
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
limit?: number | undefined;
|
|
1920
|
-
page?: number | undefined;
|
|
1921
|
-
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1914
|
+
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1915
|
+
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
1922
1916
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1917
|
+
page?: number | undefined;
|
|
1918
|
+
limit?: number | undefined;
|
|
1919
|
+
phoneNumber?: string | undefined;
|
|
1923
1920
|
lastCalledAt?: {
|
|
1924
1921
|
from?: string | null | undefined;
|
|
1925
1922
|
to?: string | null | undefined;
|
|
1926
1923
|
} | undefined;
|
|
1927
1924
|
minTotalCalls?: number | undefined;
|
|
1928
1925
|
}>;
|
|
1926
|
+
metadata: {
|
|
1927
|
+
tags: string[];
|
|
1928
|
+
};
|
|
1929
1929
|
summary: "Get all own research leads for the current agent";
|
|
1930
1930
|
method: "GET";
|
|
1931
1931
|
path: "/v2/own-research/leads";
|
|
@@ -2083,17 +2083,17 @@ export declare const ownResearchContract: {
|
|
|
2083
2083
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2084
2084
|
}, "strip", z.ZodTypeAny, {
|
|
2085
2085
|
id: string;
|
|
2086
|
+
updatedAt: string;
|
|
2087
|
+
createdAt: string;
|
|
2088
|
+
email: string;
|
|
2086
2089
|
firstName: string;
|
|
2087
2090
|
lastName: string;
|
|
2088
|
-
email: string;
|
|
2089
2091
|
phoneNumbers: {
|
|
2090
2092
|
id: string;
|
|
2091
2093
|
phoneNumber: string;
|
|
2092
2094
|
isPrimary: boolean;
|
|
2093
2095
|
description?: string | null | undefined;
|
|
2094
2096
|
}[];
|
|
2095
|
-
createdAt: string;
|
|
2096
|
-
updatedAt: string;
|
|
2097
2097
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2098
2098
|
office?: {
|
|
2099
2099
|
id: string;
|
|
@@ -2106,22 +2106,22 @@ export declare const ownResearchContract: {
|
|
|
2106
2106
|
}[] | undefined;
|
|
2107
2107
|
}, {
|
|
2108
2108
|
id: string;
|
|
2109
|
+
updatedAt: string | Date;
|
|
2110
|
+
createdAt: string | Date;
|
|
2111
|
+
email: string;
|
|
2109
2112
|
firstName: string;
|
|
2110
2113
|
lastName: string;
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2115
|
+
office?: {
|
|
2116
|
+
id: string;
|
|
2117
|
+
name: string;
|
|
2118
|
+
} | null | undefined;
|
|
2114
2119
|
phoneNumbers?: {
|
|
2115
2120
|
id: string;
|
|
2116
2121
|
phoneNumber: string;
|
|
2117
2122
|
description?: string | null | undefined;
|
|
2118
2123
|
isPrimary?: boolean | undefined;
|
|
2119
2124
|
}[] | undefined;
|
|
2120
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2121
|
-
office?: {
|
|
2122
|
-
id: string;
|
|
2123
|
-
name: string;
|
|
2124
|
-
} | null | undefined;
|
|
2125
2125
|
canImpersonateUsers?: {
|
|
2126
2126
|
id: string;
|
|
2127
2127
|
firstName: string;
|
|
@@ -2142,32 +2142,32 @@ export declare const ownResearchContract: {
|
|
|
2142
2142
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2143
2143
|
}, "strip", z.ZodTypeAny, {
|
|
2144
2144
|
id: string;
|
|
2145
|
-
agentId: string;
|
|
2146
2145
|
name: string;
|
|
2147
|
-
phoneNumber: string;
|
|
2148
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2149
|
-
createdAt: string;
|
|
2150
2146
|
updatedAt: string;
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
cooldownUntil: string | null;
|
|
2147
|
+
createdAt: string;
|
|
2148
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
2154
2149
|
blacklistReason: string | null;
|
|
2150
|
+
agentId: string;
|
|
2151
|
+
phoneNumber: string;
|
|
2152
|
+
lastCalledAt: string | null;
|
|
2153
|
+
callCount: number;
|
|
2155
2154
|
lastCallNotes: string | null;
|
|
2156
2155
|
existsInLeadsTable: boolean;
|
|
2156
|
+
cooldownUntil: string | null;
|
|
2157
2157
|
originalLeadId: string | null;
|
|
2158
2158
|
agent?: {
|
|
2159
2159
|
id: string;
|
|
2160
|
+
updatedAt: string;
|
|
2161
|
+
createdAt: string;
|
|
2162
|
+
email: string;
|
|
2160
2163
|
firstName: string;
|
|
2161
2164
|
lastName: string;
|
|
2162
|
-
email: string;
|
|
2163
2165
|
phoneNumbers: {
|
|
2164
2166
|
id: string;
|
|
2165
2167
|
phoneNumber: string;
|
|
2166
2168
|
isPrimary: boolean;
|
|
2167
2169
|
description?: string | null | undefined;
|
|
2168
2170
|
}[];
|
|
2169
|
-
createdAt: string;
|
|
2170
|
-
updatedAt: string;
|
|
2171
2171
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2172
2172
|
office?: {
|
|
2173
2173
|
id: string;
|
|
@@ -2181,37 +2181,37 @@ export declare const ownResearchContract: {
|
|
|
2181
2181
|
} | undefined;
|
|
2182
2182
|
}, {
|
|
2183
2183
|
id: string;
|
|
2184
|
-
agentId: string;
|
|
2185
2184
|
name: string;
|
|
2186
|
-
phoneNumber: string;
|
|
2187
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2188
|
-
createdAt: string | Date;
|
|
2189
2185
|
updatedAt: string | Date;
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
cooldownUntil: string | Date | null;
|
|
2186
|
+
createdAt: string | Date;
|
|
2187
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
2193
2188
|
blacklistReason: string | null;
|
|
2189
|
+
agentId: string;
|
|
2190
|
+
phoneNumber: string;
|
|
2191
|
+
lastCalledAt: string | Date | null;
|
|
2192
|
+
callCount: number;
|
|
2194
2193
|
lastCallNotes: string | null;
|
|
2195
2194
|
existsInLeadsTable: boolean;
|
|
2195
|
+
cooldownUntil: string | Date | null;
|
|
2196
2196
|
originalLeadId: string | null;
|
|
2197
2197
|
agent?: {
|
|
2198
2198
|
id: string;
|
|
2199
|
+
updatedAt: string | Date;
|
|
2200
|
+
createdAt: string | Date;
|
|
2201
|
+
email: string;
|
|
2199
2202
|
firstName: string;
|
|
2200
2203
|
lastName: string;
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2205
|
+
office?: {
|
|
2206
|
+
id: string;
|
|
2207
|
+
name: string;
|
|
2208
|
+
} | null | undefined;
|
|
2204
2209
|
phoneNumbers?: {
|
|
2205
2210
|
id: string;
|
|
2206
2211
|
phoneNumber: string;
|
|
2207
2212
|
description?: string | null | undefined;
|
|
2208
2213
|
isPrimary?: boolean | undefined;
|
|
2209
2214
|
}[] | undefined;
|
|
2210
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2211
|
-
office?: {
|
|
2212
|
-
id: string;
|
|
2213
|
-
name: string;
|
|
2214
|
-
} | null | undefined;
|
|
2215
2215
|
canImpersonateUsers?: {
|
|
2216
2216
|
id: string;
|
|
2217
2217
|
firstName: string;
|
|
@@ -2225,34 +2225,35 @@ export declare const ownResearchContract: {
|
|
|
2225
2225
|
currentPage: z.ZodNumber;
|
|
2226
2226
|
totalPages: z.ZodNumber;
|
|
2227
2227
|
}, "strip", z.ZodTypeAny, {
|
|
2228
|
+
limit: number;
|
|
2228
2229
|
items: {
|
|
2229
2230
|
id: string;
|
|
2230
|
-
agentId: string;
|
|
2231
2231
|
name: string;
|
|
2232
|
-
phoneNumber: string;
|
|
2233
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2234
|
-
createdAt: string;
|
|
2235
2232
|
updatedAt: string;
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
cooldownUntil: string | null;
|
|
2233
|
+
createdAt: string;
|
|
2234
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
2239
2235
|
blacklistReason: string | null;
|
|
2236
|
+
agentId: string;
|
|
2237
|
+
phoneNumber: string;
|
|
2238
|
+
lastCalledAt: string | null;
|
|
2239
|
+
callCount: number;
|
|
2240
2240
|
lastCallNotes: string | null;
|
|
2241
2241
|
existsInLeadsTable: boolean;
|
|
2242
|
+
cooldownUntil: string | null;
|
|
2242
2243
|
originalLeadId: string | null;
|
|
2243
2244
|
agent?: {
|
|
2244
2245
|
id: string;
|
|
2246
|
+
updatedAt: string;
|
|
2247
|
+
createdAt: string;
|
|
2248
|
+
email: string;
|
|
2245
2249
|
firstName: string;
|
|
2246
2250
|
lastName: string;
|
|
2247
|
-
email: string;
|
|
2248
2251
|
phoneNumbers: {
|
|
2249
2252
|
id: string;
|
|
2250
2253
|
phoneNumber: string;
|
|
2251
2254
|
isPrimary: boolean;
|
|
2252
2255
|
description?: string | null | undefined;
|
|
2253
2256
|
}[];
|
|
2254
|
-
createdAt: string;
|
|
2255
|
-
updatedAt: string;
|
|
2256
2257
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2257
2258
|
office?: {
|
|
2258
2259
|
id: string;
|
|
@@ -2266,44 +2267,44 @@ export declare const ownResearchContract: {
|
|
|
2266
2267
|
} | undefined;
|
|
2267
2268
|
}[];
|
|
2268
2269
|
totalCount: number;
|
|
2269
|
-
limit: number;
|
|
2270
2270
|
skip: number;
|
|
2271
2271
|
currentPage: number;
|
|
2272
2272
|
totalPages: number;
|
|
2273
2273
|
}, {
|
|
2274
|
+
limit: number;
|
|
2274
2275
|
items: {
|
|
2275
2276
|
id: string;
|
|
2276
|
-
agentId: string;
|
|
2277
2277
|
name: string;
|
|
2278
|
-
phoneNumber: string;
|
|
2279
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2280
|
-
createdAt: string | Date;
|
|
2281
2278
|
updatedAt: string | Date;
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
cooldownUntil: string | Date | null;
|
|
2279
|
+
createdAt: string | Date;
|
|
2280
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
2285
2281
|
blacklistReason: string | null;
|
|
2282
|
+
agentId: string;
|
|
2283
|
+
phoneNumber: string;
|
|
2284
|
+
lastCalledAt: string | Date | null;
|
|
2285
|
+
callCount: number;
|
|
2286
2286
|
lastCallNotes: string | null;
|
|
2287
2287
|
existsInLeadsTable: boolean;
|
|
2288
|
+
cooldownUntil: string | Date | null;
|
|
2288
2289
|
originalLeadId: string | null;
|
|
2289
2290
|
agent?: {
|
|
2290
2291
|
id: string;
|
|
2292
|
+
updatedAt: string | Date;
|
|
2293
|
+
createdAt: string | Date;
|
|
2294
|
+
email: string;
|
|
2291
2295
|
firstName: string;
|
|
2292
2296
|
lastName: string;
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2297
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2298
|
+
office?: {
|
|
2299
|
+
id: string;
|
|
2300
|
+
name: string;
|
|
2301
|
+
} | null | undefined;
|
|
2296
2302
|
phoneNumbers?: {
|
|
2297
2303
|
id: string;
|
|
2298
2304
|
phoneNumber: string;
|
|
2299
2305
|
description?: string | null | undefined;
|
|
2300
2306
|
isPrimary?: boolean | undefined;
|
|
2301
2307
|
}[] | undefined;
|
|
2302
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2303
|
-
office?: {
|
|
2304
|
-
id: string;
|
|
2305
|
-
name: string;
|
|
2306
|
-
} | null | undefined;
|
|
2307
2308
|
canImpersonateUsers?: {
|
|
2308
2309
|
id: string;
|
|
2309
2310
|
firstName: string;
|
|
@@ -2312,7 +2313,6 @@ export declare const ownResearchContract: {
|
|
|
2312
2313
|
} | undefined;
|
|
2313
2314
|
}[];
|
|
2314
2315
|
totalCount: number;
|
|
2315
|
-
limit: number;
|
|
2316
2316
|
skip: number;
|
|
2317
2317
|
currentPage: number;
|
|
2318
2318
|
totalPages: number;
|
|
@@ -2446,14 +2446,14 @@ export declare const ownResearchContract: {
|
|
|
2446
2446
|
}, "strip", z.ZodTypeAny, {
|
|
2447
2447
|
id: string;
|
|
2448
2448
|
name: string;
|
|
2449
|
-
phoneNumber: string;
|
|
2450
2449
|
status: string;
|
|
2450
|
+
phoneNumber: string;
|
|
2451
2451
|
cooldownUntil: string | null;
|
|
2452
2452
|
}, {
|
|
2453
2453
|
id: string;
|
|
2454
2454
|
name: string;
|
|
2455
|
-
phoneNumber: string;
|
|
2456
2455
|
status: string;
|
|
2456
|
+
phoneNumber: string;
|
|
2457
2457
|
cooldownUntil: string | Date | null;
|
|
2458
2458
|
}>>>;
|
|
2459
2459
|
ownResearchLead: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2508,17 +2508,17 @@ export declare const ownResearchContract: {
|
|
|
2508
2508
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2509
2509
|
}, "strip", z.ZodTypeAny, {
|
|
2510
2510
|
id: string;
|
|
2511
|
+
updatedAt: string;
|
|
2512
|
+
createdAt: string;
|
|
2513
|
+
email: string;
|
|
2511
2514
|
firstName: string;
|
|
2512
2515
|
lastName: string;
|
|
2513
|
-
email: string;
|
|
2514
2516
|
phoneNumbers: {
|
|
2515
2517
|
id: string;
|
|
2516
2518
|
phoneNumber: string;
|
|
2517
2519
|
isPrimary: boolean;
|
|
2518
2520
|
description?: string | null | undefined;
|
|
2519
2521
|
}[];
|
|
2520
|
-
createdAt: string;
|
|
2521
|
-
updatedAt: string;
|
|
2522
2522
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2523
2523
|
office?: {
|
|
2524
2524
|
id: string;
|
|
@@ -2531,22 +2531,22 @@ export declare const ownResearchContract: {
|
|
|
2531
2531
|
}[] | undefined;
|
|
2532
2532
|
}, {
|
|
2533
2533
|
id: string;
|
|
2534
|
+
updatedAt: string | Date;
|
|
2535
|
+
createdAt: string | Date;
|
|
2536
|
+
email: string;
|
|
2534
2537
|
firstName: string;
|
|
2535
2538
|
lastName: string;
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2540
|
+
office?: {
|
|
2541
|
+
id: string;
|
|
2542
|
+
name: string;
|
|
2543
|
+
} | null | undefined;
|
|
2539
2544
|
phoneNumbers?: {
|
|
2540
2545
|
id: string;
|
|
2541
2546
|
phoneNumber: string;
|
|
2542
2547
|
description?: string | null | undefined;
|
|
2543
2548
|
isPrimary?: boolean | undefined;
|
|
2544
2549
|
}[] | undefined;
|
|
2545
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2546
|
-
office?: {
|
|
2547
|
-
id: string;
|
|
2548
|
-
name: string;
|
|
2549
|
-
} | null | undefined;
|
|
2550
2550
|
canImpersonateUsers?: {
|
|
2551
2551
|
id: string;
|
|
2552
2552
|
firstName: string;
|
|
@@ -2567,32 +2567,32 @@ export declare const ownResearchContract: {
|
|
|
2567
2567
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2568
2568
|
}, "strip", z.ZodTypeAny, {
|
|
2569
2569
|
id: string;
|
|
2570
|
-
agentId: string;
|
|
2571
2570
|
name: string;
|
|
2572
|
-
phoneNumber: string;
|
|
2573
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2574
|
-
createdAt: string;
|
|
2575
2571
|
updatedAt: string;
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
cooldownUntil: string | null;
|
|
2572
|
+
createdAt: string;
|
|
2573
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
2579
2574
|
blacklistReason: string | null;
|
|
2575
|
+
agentId: string;
|
|
2576
|
+
phoneNumber: string;
|
|
2577
|
+
lastCalledAt: string | null;
|
|
2578
|
+
callCount: number;
|
|
2580
2579
|
lastCallNotes: string | null;
|
|
2581
2580
|
existsInLeadsTable: boolean;
|
|
2581
|
+
cooldownUntil: string | null;
|
|
2582
2582
|
originalLeadId: string | null;
|
|
2583
2583
|
agent?: {
|
|
2584
2584
|
id: string;
|
|
2585
|
+
updatedAt: string;
|
|
2586
|
+
createdAt: string;
|
|
2587
|
+
email: string;
|
|
2585
2588
|
firstName: string;
|
|
2586
2589
|
lastName: string;
|
|
2587
|
-
email: string;
|
|
2588
2590
|
phoneNumbers: {
|
|
2589
2591
|
id: string;
|
|
2590
2592
|
phoneNumber: string;
|
|
2591
2593
|
isPrimary: boolean;
|
|
2592
2594
|
description?: string | null | undefined;
|
|
2593
2595
|
}[];
|
|
2594
|
-
createdAt: string;
|
|
2595
|
-
updatedAt: string;
|
|
2596
2596
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2597
2597
|
office?: {
|
|
2598
2598
|
id: string;
|
|
@@ -2606,37 +2606,37 @@ export declare const ownResearchContract: {
|
|
|
2606
2606
|
} | undefined;
|
|
2607
2607
|
}, {
|
|
2608
2608
|
id: string;
|
|
2609
|
-
agentId: string;
|
|
2610
2609
|
name: string;
|
|
2611
|
-
phoneNumber: string;
|
|
2612
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2613
|
-
createdAt: string | Date;
|
|
2614
2610
|
updatedAt: string | Date;
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
cooldownUntil: string | Date | null;
|
|
2611
|
+
createdAt: string | Date;
|
|
2612
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
2618
2613
|
blacklistReason: string | null;
|
|
2614
|
+
agentId: string;
|
|
2615
|
+
phoneNumber: string;
|
|
2616
|
+
lastCalledAt: string | Date | null;
|
|
2617
|
+
callCount: number;
|
|
2619
2618
|
lastCallNotes: string | null;
|
|
2620
2619
|
existsInLeadsTable: boolean;
|
|
2620
|
+
cooldownUntil: string | Date | null;
|
|
2621
2621
|
originalLeadId: string | null;
|
|
2622
2622
|
agent?: {
|
|
2623
2623
|
id: string;
|
|
2624
|
+
updatedAt: string | Date;
|
|
2625
|
+
createdAt: string | Date;
|
|
2626
|
+
email: string;
|
|
2624
2627
|
firstName: string;
|
|
2625
2628
|
lastName: string;
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2630
|
+
office?: {
|
|
2631
|
+
id: string;
|
|
2632
|
+
name: string;
|
|
2633
|
+
} | null | undefined;
|
|
2629
2634
|
phoneNumbers?: {
|
|
2630
2635
|
id: string;
|
|
2631
2636
|
phoneNumber: string;
|
|
2632
2637
|
description?: string | null | undefined;
|
|
2633
2638
|
isPrimary?: boolean | undefined;
|
|
2634
2639
|
}[] | undefined;
|
|
2635
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2636
|
-
office?: {
|
|
2637
|
-
id: string;
|
|
2638
|
-
name: string;
|
|
2639
|
-
} | null | undefined;
|
|
2640
2640
|
canImpersonateUsers?: {
|
|
2641
2641
|
id: string;
|
|
2642
2642
|
firstName: string;
|
|
@@ -2654,38 +2654,38 @@ export declare const ownResearchContract: {
|
|
|
2654
2654
|
lead?: {
|
|
2655
2655
|
id: string;
|
|
2656
2656
|
name: string;
|
|
2657
|
-
phoneNumber: string;
|
|
2658
2657
|
status: string;
|
|
2658
|
+
phoneNumber: string;
|
|
2659
2659
|
cooldownUntil: string | null;
|
|
2660
2660
|
} | null | undefined;
|
|
2661
2661
|
ownResearchLead?: {
|
|
2662
2662
|
id: string;
|
|
2663
|
-
agentId: string;
|
|
2664
2663
|
name: string;
|
|
2665
|
-
phoneNumber: string;
|
|
2666
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2667
|
-
createdAt: string;
|
|
2668
2664
|
updatedAt: string;
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
cooldownUntil: string | null;
|
|
2665
|
+
createdAt: string;
|
|
2666
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
2672
2667
|
blacklistReason: string | null;
|
|
2668
|
+
agentId: string;
|
|
2669
|
+
phoneNumber: string;
|
|
2670
|
+
lastCalledAt: string | null;
|
|
2671
|
+
callCount: number;
|
|
2673
2672
|
lastCallNotes: string | null;
|
|
2674
2673
|
existsInLeadsTable: boolean;
|
|
2674
|
+
cooldownUntil: string | null;
|
|
2675
2675
|
originalLeadId: string | null;
|
|
2676
2676
|
agent?: {
|
|
2677
2677
|
id: string;
|
|
2678
|
+
updatedAt: string;
|
|
2679
|
+
createdAt: string;
|
|
2680
|
+
email: string;
|
|
2678
2681
|
firstName: string;
|
|
2679
2682
|
lastName: string;
|
|
2680
|
-
email: string;
|
|
2681
2683
|
phoneNumbers: {
|
|
2682
2684
|
id: string;
|
|
2683
2685
|
phoneNumber: string;
|
|
2684
2686
|
isPrimary: boolean;
|
|
2685
2687
|
description?: string | null | undefined;
|
|
2686
2688
|
}[];
|
|
2687
|
-
createdAt: string;
|
|
2688
|
-
updatedAt: string;
|
|
2689
2689
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2690
2690
|
office?: {
|
|
2691
2691
|
id: string;
|
|
@@ -2706,43 +2706,43 @@ export declare const ownResearchContract: {
|
|
|
2706
2706
|
lead?: {
|
|
2707
2707
|
id: string;
|
|
2708
2708
|
name: string;
|
|
2709
|
-
phoneNumber: string;
|
|
2710
2709
|
status: string;
|
|
2710
|
+
phoneNumber: string;
|
|
2711
2711
|
cooldownUntil: string | Date | null;
|
|
2712
2712
|
} | null | undefined;
|
|
2713
2713
|
ownResearchLead?: {
|
|
2714
2714
|
id: string;
|
|
2715
|
-
agentId: string;
|
|
2716
2715
|
name: string;
|
|
2717
|
-
phoneNumber: string;
|
|
2718
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2719
|
-
createdAt: string | Date;
|
|
2720
2716
|
updatedAt: string | Date;
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
cooldownUntil: string | Date | null;
|
|
2717
|
+
createdAt: string | Date;
|
|
2718
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
2724
2719
|
blacklistReason: string | null;
|
|
2720
|
+
agentId: string;
|
|
2721
|
+
phoneNumber: string;
|
|
2722
|
+
lastCalledAt: string | Date | null;
|
|
2723
|
+
callCount: number;
|
|
2725
2724
|
lastCallNotes: string | null;
|
|
2726
2725
|
existsInLeadsTable: boolean;
|
|
2726
|
+
cooldownUntil: string | Date | null;
|
|
2727
2727
|
originalLeadId: string | null;
|
|
2728
2728
|
agent?: {
|
|
2729
2729
|
id: string;
|
|
2730
|
+
updatedAt: string | Date;
|
|
2731
|
+
createdAt: string | Date;
|
|
2732
|
+
email: string;
|
|
2730
2733
|
firstName: string;
|
|
2731
2734
|
lastName: string;
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2736
|
+
office?: {
|
|
2737
|
+
id: string;
|
|
2738
|
+
name: string;
|
|
2739
|
+
} | null | undefined;
|
|
2735
2740
|
phoneNumbers?: {
|
|
2736
2741
|
id: string;
|
|
2737
2742
|
phoneNumber: string;
|
|
2738
2743
|
description?: string | null | undefined;
|
|
2739
2744
|
isPrimary?: boolean | undefined;
|
|
2740
2745
|
}[] | undefined;
|
|
2741
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2742
|
-
office?: {
|
|
2743
|
-
id: string;
|
|
2744
|
-
name: string;
|
|
2745
|
-
} | null | undefined;
|
|
2746
2746
|
canImpersonateUsers?: {
|
|
2747
2747
|
id: string;
|
|
2748
2748
|
firstName: string;
|
|
@@ -2924,17 +2924,17 @@ export declare const ownResearchContract: {
|
|
|
2924
2924
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2925
2925
|
}, "strip", z.ZodTypeAny, {
|
|
2926
2926
|
id: string;
|
|
2927
|
+
updatedAt: string;
|
|
2928
|
+
createdAt: string;
|
|
2929
|
+
email: string;
|
|
2927
2930
|
firstName: string;
|
|
2928
2931
|
lastName: string;
|
|
2929
|
-
email: string;
|
|
2930
2932
|
phoneNumbers: {
|
|
2931
2933
|
id: string;
|
|
2932
2934
|
phoneNumber: string;
|
|
2933
2935
|
isPrimary: boolean;
|
|
2934
2936
|
description?: string | null | undefined;
|
|
2935
2937
|
}[];
|
|
2936
|
-
createdAt: string;
|
|
2937
|
-
updatedAt: string;
|
|
2938
2938
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2939
2939
|
office?: {
|
|
2940
2940
|
id: string;
|
|
@@ -2947,22 +2947,22 @@ export declare const ownResearchContract: {
|
|
|
2947
2947
|
}[] | undefined;
|
|
2948
2948
|
}, {
|
|
2949
2949
|
id: string;
|
|
2950
|
+
updatedAt: string | Date;
|
|
2951
|
+
createdAt: string | Date;
|
|
2952
|
+
email: string;
|
|
2950
2953
|
firstName: string;
|
|
2951
2954
|
lastName: string;
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2956
|
+
office?: {
|
|
2957
|
+
id: string;
|
|
2958
|
+
name: string;
|
|
2959
|
+
} | null | undefined;
|
|
2955
2960
|
phoneNumbers?: {
|
|
2956
2961
|
id: string;
|
|
2957
2962
|
phoneNumber: string;
|
|
2958
2963
|
description?: string | null | undefined;
|
|
2959
2964
|
isPrimary?: boolean | undefined;
|
|
2960
2965
|
}[] | undefined;
|
|
2961
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2962
|
-
office?: {
|
|
2963
|
-
id: string;
|
|
2964
|
-
name: string;
|
|
2965
|
-
} | null | undefined;
|
|
2966
2966
|
canImpersonateUsers?: {
|
|
2967
2967
|
id: string;
|
|
2968
2968
|
firstName: string;
|
|
@@ -2983,32 +2983,32 @@ export declare const ownResearchContract: {
|
|
|
2983
2983
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2984
2984
|
}, "strip", z.ZodTypeAny, {
|
|
2985
2985
|
id: string;
|
|
2986
|
-
agentId: string;
|
|
2987
2986
|
name: string;
|
|
2988
|
-
phoneNumber: string;
|
|
2989
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2990
|
-
createdAt: string;
|
|
2991
2987
|
updatedAt: string;
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
cooldownUntil: string | null;
|
|
2988
|
+
createdAt: string;
|
|
2989
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
2995
2990
|
blacklistReason: string | null;
|
|
2991
|
+
agentId: string;
|
|
2992
|
+
phoneNumber: string;
|
|
2993
|
+
lastCalledAt: string | null;
|
|
2994
|
+
callCount: number;
|
|
2996
2995
|
lastCallNotes: string | null;
|
|
2997
2996
|
existsInLeadsTable: boolean;
|
|
2997
|
+
cooldownUntil: string | null;
|
|
2998
2998
|
originalLeadId: string | null;
|
|
2999
2999
|
agent?: {
|
|
3000
3000
|
id: string;
|
|
3001
|
+
updatedAt: string;
|
|
3002
|
+
createdAt: string;
|
|
3003
|
+
email: string;
|
|
3001
3004
|
firstName: string;
|
|
3002
3005
|
lastName: string;
|
|
3003
|
-
email: string;
|
|
3004
3006
|
phoneNumbers: {
|
|
3005
3007
|
id: string;
|
|
3006
3008
|
phoneNumber: string;
|
|
3007
3009
|
isPrimary: boolean;
|
|
3008
3010
|
description?: string | null | undefined;
|
|
3009
3011
|
}[];
|
|
3010
|
-
createdAt: string;
|
|
3011
|
-
updatedAt: string;
|
|
3012
3012
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3013
3013
|
office?: {
|
|
3014
3014
|
id: string;
|
|
@@ -3022,37 +3022,37 @@ export declare const ownResearchContract: {
|
|
|
3022
3022
|
} | undefined;
|
|
3023
3023
|
}, {
|
|
3024
3024
|
id: string;
|
|
3025
|
-
agentId: string;
|
|
3026
3025
|
name: string;
|
|
3027
|
-
phoneNumber: string;
|
|
3028
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3029
|
-
createdAt: string | Date;
|
|
3030
3026
|
updatedAt: string | Date;
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
cooldownUntil: string | Date | null;
|
|
3027
|
+
createdAt: string | Date;
|
|
3028
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
3034
3029
|
blacklistReason: string | null;
|
|
3030
|
+
agentId: string;
|
|
3031
|
+
phoneNumber: string;
|
|
3032
|
+
lastCalledAt: string | Date | null;
|
|
3033
|
+
callCount: number;
|
|
3035
3034
|
lastCallNotes: string | null;
|
|
3036
3035
|
existsInLeadsTable: boolean;
|
|
3036
|
+
cooldownUntil: string | Date | null;
|
|
3037
3037
|
originalLeadId: string | null;
|
|
3038
3038
|
agent?: {
|
|
3039
3039
|
id: string;
|
|
3040
|
+
updatedAt: string | Date;
|
|
3041
|
+
createdAt: string | Date;
|
|
3042
|
+
email: string;
|
|
3040
3043
|
firstName: string;
|
|
3041
3044
|
lastName: string;
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3046
|
+
office?: {
|
|
3047
|
+
id: string;
|
|
3048
|
+
name: string;
|
|
3049
|
+
} | null | undefined;
|
|
3045
3050
|
phoneNumbers?: {
|
|
3046
3051
|
id: string;
|
|
3047
3052
|
phoneNumber: string;
|
|
3048
3053
|
description?: string | null | undefined;
|
|
3049
3054
|
isPrimary?: boolean | undefined;
|
|
3050
3055
|
}[] | undefined;
|
|
3051
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3052
|
-
office?: {
|
|
3053
|
-
id: string;
|
|
3054
|
-
name: string;
|
|
3055
|
-
} | null | undefined;
|
|
3056
3056
|
canImpersonateUsers?: {
|
|
3057
3057
|
id: string;
|
|
3058
3058
|
firstName: string;
|
|
@@ -3063,32 +3063,32 @@ export declare const ownResearchContract: {
|
|
|
3063
3063
|
}, "strip", z.ZodTypeAny, {
|
|
3064
3064
|
ownResearchLead: {
|
|
3065
3065
|
id: string;
|
|
3066
|
-
agentId: string;
|
|
3067
3066
|
name: string;
|
|
3068
|
-
phoneNumber: string;
|
|
3069
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3070
|
-
createdAt: string;
|
|
3071
3067
|
updatedAt: string;
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
cooldownUntil: string | null;
|
|
3068
|
+
createdAt: string;
|
|
3069
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
3075
3070
|
blacklistReason: string | null;
|
|
3071
|
+
agentId: string;
|
|
3072
|
+
phoneNumber: string;
|
|
3073
|
+
lastCalledAt: string | null;
|
|
3074
|
+
callCount: number;
|
|
3076
3075
|
lastCallNotes: string | null;
|
|
3077
3076
|
existsInLeadsTable: boolean;
|
|
3077
|
+
cooldownUntil: string | null;
|
|
3078
3078
|
originalLeadId: string | null;
|
|
3079
3079
|
agent?: {
|
|
3080
3080
|
id: string;
|
|
3081
|
+
updatedAt: string;
|
|
3082
|
+
createdAt: string;
|
|
3083
|
+
email: string;
|
|
3081
3084
|
firstName: string;
|
|
3082
3085
|
lastName: string;
|
|
3083
|
-
email: string;
|
|
3084
3086
|
phoneNumbers: {
|
|
3085
3087
|
id: string;
|
|
3086
3088
|
phoneNumber: string;
|
|
3087
3089
|
isPrimary: boolean;
|
|
3088
3090
|
description?: string | null | undefined;
|
|
3089
3091
|
}[];
|
|
3090
|
-
createdAt: string;
|
|
3091
|
-
updatedAt: string;
|
|
3092
3092
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3093
3093
|
office?: {
|
|
3094
3094
|
id: string;
|
|
@@ -3104,37 +3104,37 @@ export declare const ownResearchContract: {
|
|
|
3104
3104
|
}, {
|
|
3105
3105
|
ownResearchLead: {
|
|
3106
3106
|
id: string;
|
|
3107
|
-
agentId: string;
|
|
3108
3107
|
name: string;
|
|
3109
|
-
phoneNumber: string;
|
|
3110
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3111
|
-
createdAt: string | Date;
|
|
3112
3108
|
updatedAt: string | Date;
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
cooldownUntil: string | Date | null;
|
|
3109
|
+
createdAt: string | Date;
|
|
3110
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
3116
3111
|
blacklistReason: string | null;
|
|
3112
|
+
agentId: string;
|
|
3113
|
+
phoneNumber: string;
|
|
3114
|
+
lastCalledAt: string | Date | null;
|
|
3115
|
+
callCount: number;
|
|
3117
3116
|
lastCallNotes: string | null;
|
|
3118
3117
|
existsInLeadsTable: boolean;
|
|
3118
|
+
cooldownUntil: string | Date | null;
|
|
3119
3119
|
originalLeadId: string | null;
|
|
3120
3120
|
agent?: {
|
|
3121
3121
|
id: string;
|
|
3122
|
+
updatedAt: string | Date;
|
|
3123
|
+
createdAt: string | Date;
|
|
3124
|
+
email: string;
|
|
3122
3125
|
firstName: string;
|
|
3123
3126
|
lastName: string;
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3128
|
+
office?: {
|
|
3129
|
+
id: string;
|
|
3130
|
+
name: string;
|
|
3131
|
+
} | null | undefined;
|
|
3127
3132
|
phoneNumbers?: {
|
|
3128
3133
|
id: string;
|
|
3129
3134
|
phoneNumber: string;
|
|
3130
3135
|
description?: string | null | undefined;
|
|
3131
3136
|
isPrimary?: boolean | undefined;
|
|
3132
3137
|
}[] | undefined;
|
|
3133
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3134
|
-
office?: {
|
|
3135
|
-
id: string;
|
|
3136
|
-
name: string;
|
|
3137
|
-
} | null | undefined;
|
|
3138
3138
|
canImpersonateUsers?: {
|
|
3139
3139
|
id: string;
|
|
3140
3140
|
firstName: string;
|
|
@@ -3159,14 +3159,14 @@ export declare const ownResearchContract: {
|
|
|
3159
3159
|
callType: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>>;
|
|
3160
3160
|
}, "strip", z.ZodTypeAny, {
|
|
3161
3161
|
name: string;
|
|
3162
|
-
phoneNumber: string;
|
|
3163
3162
|
rating: import("../common/call-rating.schema").CallRating;
|
|
3163
|
+
phoneNumber: string;
|
|
3164
3164
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3165
3165
|
notes?: string | undefined;
|
|
3166
3166
|
}, {
|
|
3167
3167
|
name: string;
|
|
3168
|
-
phoneNumber: string;
|
|
3169
3168
|
rating: import("../common/call-rating.schema").CallRating;
|
|
3169
|
+
phoneNumber: string;
|
|
3170
3170
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3171
3171
|
notes?: string | undefined;
|
|
3172
3172
|
}>;
|
|
@@ -3336,17 +3336,17 @@ export declare const ownResearchContract: {
|
|
|
3336
3336
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3337
3337
|
}, "strip", z.ZodTypeAny, {
|
|
3338
3338
|
id: string;
|
|
3339
|
+
updatedAt: string;
|
|
3340
|
+
createdAt: string;
|
|
3341
|
+
email: string;
|
|
3339
3342
|
firstName: string;
|
|
3340
3343
|
lastName: string;
|
|
3341
|
-
email: string;
|
|
3342
3344
|
phoneNumbers: {
|
|
3343
3345
|
id: string;
|
|
3344
3346
|
phoneNumber: string;
|
|
3345
3347
|
isPrimary: boolean;
|
|
3346
3348
|
description?: string | null | undefined;
|
|
3347
3349
|
}[];
|
|
3348
|
-
createdAt: string;
|
|
3349
|
-
updatedAt: string;
|
|
3350
3350
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3351
3351
|
office?: {
|
|
3352
3352
|
id: string;
|
|
@@ -3359,22 +3359,22 @@ export declare const ownResearchContract: {
|
|
|
3359
3359
|
}[] | undefined;
|
|
3360
3360
|
}, {
|
|
3361
3361
|
id: string;
|
|
3362
|
+
updatedAt: string | Date;
|
|
3363
|
+
createdAt: string | Date;
|
|
3364
|
+
email: string;
|
|
3362
3365
|
firstName: string;
|
|
3363
3366
|
lastName: string;
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3368
|
+
office?: {
|
|
3369
|
+
id: string;
|
|
3370
|
+
name: string;
|
|
3371
|
+
} | null | undefined;
|
|
3367
3372
|
phoneNumbers?: {
|
|
3368
3373
|
id: string;
|
|
3369
3374
|
phoneNumber: string;
|
|
3370
3375
|
description?: string | null | undefined;
|
|
3371
3376
|
isPrimary?: boolean | undefined;
|
|
3372
3377
|
}[] | undefined;
|
|
3373
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3374
|
-
office?: {
|
|
3375
|
-
id: string;
|
|
3376
|
-
name: string;
|
|
3377
|
-
} | null | undefined;
|
|
3378
3378
|
canImpersonateUsers?: {
|
|
3379
3379
|
id: string;
|
|
3380
3380
|
firstName: string;
|
|
@@ -3393,43 +3393,45 @@ export declare const ownResearchContract: {
|
|
|
3393
3393
|
}, "strip", z.ZodTypeAny, {
|
|
3394
3394
|
id: string;
|
|
3395
3395
|
name: string;
|
|
3396
|
-
createdAt: string;
|
|
3397
3396
|
updatedAt: string;
|
|
3397
|
+
createdAt: string;
|
|
3398
3398
|
}, {
|
|
3399
3399
|
id: string;
|
|
3400
3400
|
name: string;
|
|
3401
|
-
createdAt: string | Date;
|
|
3402
3401
|
updatedAt: string | Date;
|
|
3402
|
+
createdAt: string | Date;
|
|
3403
3403
|
}>>>;
|
|
3404
3404
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3405
3405
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3406
3406
|
}, "strip", z.ZodTypeAny, {
|
|
3407
3407
|
id: string;
|
|
3408
|
-
leadId: string;
|
|
3409
|
-
agentId: string | null;
|
|
3410
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3411
|
-
createdAt: string;
|
|
3412
3408
|
updatedAt: string;
|
|
3409
|
+
createdAt: string;
|
|
3410
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3411
|
+
companyId: string | null;
|
|
3412
|
+
agentId: string | null;
|
|
3413
|
+
leadId: string;
|
|
3413
3414
|
assignedAt: string;
|
|
3414
3415
|
assignedBy: string | null;
|
|
3415
|
-
|
|
3416
|
-
|
|
3416
|
+
company?: {
|
|
3417
|
+
id: string;
|
|
3417
3418
|
name: string;
|
|
3418
|
-
|
|
3419
|
-
|
|
3419
|
+
updatedAt: string;
|
|
3420
|
+
createdAt: string;
|
|
3421
|
+
} | null | undefined;
|
|
3420
3422
|
agent?: {
|
|
3421
3423
|
id: string;
|
|
3424
|
+
updatedAt: string;
|
|
3425
|
+
createdAt: string;
|
|
3426
|
+
email: string;
|
|
3422
3427
|
firstName: string;
|
|
3423
3428
|
lastName: string;
|
|
3424
|
-
email: string;
|
|
3425
3429
|
phoneNumbers: {
|
|
3426
3430
|
id: string;
|
|
3427
3431
|
phoneNumber: string;
|
|
3428
3432
|
isPrimary: boolean;
|
|
3429
3433
|
description?: string | null | undefined;
|
|
3430
3434
|
}[];
|
|
3431
|
-
createdAt: string;
|
|
3432
|
-
updatedAt: string;
|
|
3433
3435
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3434
3436
|
office?: {
|
|
3435
3437
|
id: string;
|
|
@@ -3441,56 +3443,54 @@ export declare const ownResearchContract: {
|
|
|
3441
3443
|
lastName: string;
|
|
3442
3444
|
}[] | undefined;
|
|
3443
3445
|
} | undefined;
|
|
3444
|
-
|
|
3445
|
-
id: string;
|
|
3446
|
+
lead?: {
|
|
3446
3447
|
name: string;
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
} | null | undefined;
|
|
3448
|
+
phoneNumber: string;
|
|
3449
|
+
} | undefined;
|
|
3450
3450
|
}, {
|
|
3451
3451
|
id: string;
|
|
3452
|
-
leadId: string;
|
|
3453
|
-
agentId: string | null;
|
|
3454
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3455
|
-
createdAt: string | Date;
|
|
3456
3452
|
updatedAt: string | Date;
|
|
3453
|
+
createdAt: string | Date;
|
|
3454
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3455
|
+
companyId: string | null;
|
|
3456
|
+
agentId: string | null;
|
|
3457
|
+
leadId: string;
|
|
3457
3458
|
assignedAt: string | Date;
|
|
3458
3459
|
assignedBy: string | null;
|
|
3459
|
-
|
|
3460
|
-
|
|
3460
|
+
company?: {
|
|
3461
|
+
id: string;
|
|
3461
3462
|
name: string;
|
|
3462
|
-
|
|
3463
|
-
|
|
3463
|
+
updatedAt: string | Date;
|
|
3464
|
+
createdAt: string | Date;
|
|
3465
|
+
} | null | undefined;
|
|
3464
3466
|
agent?: {
|
|
3465
3467
|
id: string;
|
|
3468
|
+
updatedAt: string | Date;
|
|
3469
|
+
createdAt: string | Date;
|
|
3470
|
+
email: string;
|
|
3466
3471
|
firstName: string;
|
|
3467
3472
|
lastName: string;
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3473
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3474
|
+
office?: {
|
|
3475
|
+
id: string;
|
|
3476
|
+
name: string;
|
|
3477
|
+
} | null | undefined;
|
|
3471
3478
|
phoneNumbers?: {
|
|
3472
3479
|
id: string;
|
|
3473
3480
|
phoneNumber: string;
|
|
3474
3481
|
description?: string | null | undefined;
|
|
3475
3482
|
isPrimary?: boolean | undefined;
|
|
3476
3483
|
}[] | undefined;
|
|
3477
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3478
|
-
office?: {
|
|
3479
|
-
id: string;
|
|
3480
|
-
name: string;
|
|
3481
|
-
} | null | undefined;
|
|
3482
3484
|
canImpersonateUsers?: {
|
|
3483
3485
|
id: string;
|
|
3484
3486
|
firstName: string;
|
|
3485
3487
|
lastName: string;
|
|
3486
3488
|
}[] | undefined;
|
|
3487
3489
|
} | undefined;
|
|
3488
|
-
|
|
3489
|
-
id: string;
|
|
3490
|
+
lead?: {
|
|
3490
3491
|
name: string;
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
} | null | undefined;
|
|
3492
|
+
phoneNumber: string;
|
|
3493
|
+
} | undefined;
|
|
3494
3494
|
}>>>;
|
|
3495
3495
|
ownResearchLead: z.ZodObject<{
|
|
3496
3496
|
id: z.ZodString;
|
|
@@ -3544,17 +3544,17 @@ export declare const ownResearchContract: {
|
|
|
3544
3544
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3545
3545
|
}, "strip", z.ZodTypeAny, {
|
|
3546
3546
|
id: string;
|
|
3547
|
+
updatedAt: string;
|
|
3548
|
+
createdAt: string;
|
|
3549
|
+
email: string;
|
|
3547
3550
|
firstName: string;
|
|
3548
3551
|
lastName: string;
|
|
3549
|
-
email: string;
|
|
3550
3552
|
phoneNumbers: {
|
|
3551
3553
|
id: string;
|
|
3552
3554
|
phoneNumber: string;
|
|
3553
3555
|
isPrimary: boolean;
|
|
3554
3556
|
description?: string | null | undefined;
|
|
3555
3557
|
}[];
|
|
3556
|
-
createdAt: string;
|
|
3557
|
-
updatedAt: string;
|
|
3558
3558
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3559
3559
|
office?: {
|
|
3560
3560
|
id: string;
|
|
@@ -3567,22 +3567,22 @@ export declare const ownResearchContract: {
|
|
|
3567
3567
|
}[] | undefined;
|
|
3568
3568
|
}, {
|
|
3569
3569
|
id: string;
|
|
3570
|
+
updatedAt: string | Date;
|
|
3571
|
+
createdAt: string | Date;
|
|
3572
|
+
email: string;
|
|
3570
3573
|
firstName: string;
|
|
3571
3574
|
lastName: string;
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3576
|
+
office?: {
|
|
3577
|
+
id: string;
|
|
3578
|
+
name: string;
|
|
3579
|
+
} | null | undefined;
|
|
3575
3580
|
phoneNumbers?: {
|
|
3576
3581
|
id: string;
|
|
3577
3582
|
phoneNumber: string;
|
|
3578
3583
|
description?: string | null | undefined;
|
|
3579
3584
|
isPrimary?: boolean | undefined;
|
|
3580
3585
|
}[] | undefined;
|
|
3581
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3582
|
-
office?: {
|
|
3583
|
-
id: string;
|
|
3584
|
-
name: string;
|
|
3585
|
-
} | null | undefined;
|
|
3586
3586
|
canImpersonateUsers?: {
|
|
3587
3587
|
id: string;
|
|
3588
3588
|
firstName: string;
|
|
@@ -3603,32 +3603,32 @@ export declare const ownResearchContract: {
|
|
|
3603
3603
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3604
3604
|
}, "strip", z.ZodTypeAny, {
|
|
3605
3605
|
id: string;
|
|
3606
|
-
agentId: string;
|
|
3607
3606
|
name: string;
|
|
3608
|
-
phoneNumber: string;
|
|
3609
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3610
|
-
createdAt: string;
|
|
3611
3607
|
updatedAt: string;
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
cooldownUntil: string | null;
|
|
3608
|
+
createdAt: string;
|
|
3609
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
3615
3610
|
blacklistReason: string | null;
|
|
3611
|
+
agentId: string;
|
|
3612
|
+
phoneNumber: string;
|
|
3613
|
+
lastCalledAt: string | null;
|
|
3614
|
+
callCount: number;
|
|
3616
3615
|
lastCallNotes: string | null;
|
|
3617
3616
|
existsInLeadsTable: boolean;
|
|
3617
|
+
cooldownUntil: string | null;
|
|
3618
3618
|
originalLeadId: string | null;
|
|
3619
3619
|
agent?: {
|
|
3620
3620
|
id: string;
|
|
3621
|
+
updatedAt: string;
|
|
3622
|
+
createdAt: string;
|
|
3623
|
+
email: string;
|
|
3621
3624
|
firstName: string;
|
|
3622
3625
|
lastName: string;
|
|
3623
|
-
email: string;
|
|
3624
3626
|
phoneNumbers: {
|
|
3625
3627
|
id: string;
|
|
3626
3628
|
phoneNumber: string;
|
|
3627
3629
|
isPrimary: boolean;
|
|
3628
3630
|
description?: string | null | undefined;
|
|
3629
3631
|
}[];
|
|
3630
|
-
createdAt: string;
|
|
3631
|
-
updatedAt: string;
|
|
3632
3632
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3633
3633
|
office?: {
|
|
3634
3634
|
id: string;
|
|
@@ -3642,37 +3642,37 @@ export declare const ownResearchContract: {
|
|
|
3642
3642
|
} | undefined;
|
|
3643
3643
|
}, {
|
|
3644
3644
|
id: string;
|
|
3645
|
-
agentId: string;
|
|
3646
3645
|
name: string;
|
|
3647
|
-
phoneNumber: string;
|
|
3648
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3649
|
-
createdAt: string | Date;
|
|
3650
3646
|
updatedAt: string | Date;
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
cooldownUntil: string | Date | null;
|
|
3647
|
+
createdAt: string | Date;
|
|
3648
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
3654
3649
|
blacklistReason: string | null;
|
|
3650
|
+
agentId: string;
|
|
3651
|
+
phoneNumber: string;
|
|
3652
|
+
lastCalledAt: string | Date | null;
|
|
3653
|
+
callCount: number;
|
|
3655
3654
|
lastCallNotes: string | null;
|
|
3656
3655
|
existsInLeadsTable: boolean;
|
|
3656
|
+
cooldownUntil: string | Date | null;
|
|
3657
3657
|
originalLeadId: string | null;
|
|
3658
3658
|
agent?: {
|
|
3659
3659
|
id: string;
|
|
3660
|
+
updatedAt: string | Date;
|
|
3661
|
+
createdAt: string | Date;
|
|
3662
|
+
email: string;
|
|
3660
3663
|
firstName: string;
|
|
3661
3664
|
lastName: string;
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3666
|
+
office?: {
|
|
3667
|
+
id: string;
|
|
3668
|
+
name: string;
|
|
3669
|
+
} | null | undefined;
|
|
3665
3670
|
phoneNumbers?: {
|
|
3666
3671
|
id: string;
|
|
3667
3672
|
phoneNumber: string;
|
|
3668
3673
|
description?: string | null | undefined;
|
|
3669
3674
|
isPrimary?: boolean | undefined;
|
|
3670
3675
|
}[] | undefined;
|
|
3671
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3672
|
-
office?: {
|
|
3673
|
-
id: string;
|
|
3674
|
-
name: string;
|
|
3675
|
-
} | null | undefined;
|
|
3676
3676
|
canImpersonateUsers?: {
|
|
3677
3677
|
id: string;
|
|
3678
3678
|
firstName: string;
|
|
@@ -3683,32 +3683,32 @@ export declare const ownResearchContract: {
|
|
|
3683
3683
|
}, "strip", z.ZodTypeAny, {
|
|
3684
3684
|
ownResearchLead: {
|
|
3685
3685
|
id: string;
|
|
3686
|
-
agentId: string;
|
|
3687
3686
|
name: string;
|
|
3688
|
-
phoneNumber: string;
|
|
3689
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3690
|
-
createdAt: string;
|
|
3691
3687
|
updatedAt: string;
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
cooldownUntil: string | null;
|
|
3688
|
+
createdAt: string;
|
|
3689
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
3695
3690
|
blacklistReason: string | null;
|
|
3691
|
+
agentId: string;
|
|
3692
|
+
phoneNumber: string;
|
|
3693
|
+
lastCalledAt: string | null;
|
|
3694
|
+
callCount: number;
|
|
3696
3695
|
lastCallNotes: string | null;
|
|
3697
3696
|
existsInLeadsTable: boolean;
|
|
3697
|
+
cooldownUntil: string | null;
|
|
3698
3698
|
originalLeadId: string | null;
|
|
3699
3699
|
agent?: {
|
|
3700
3700
|
id: string;
|
|
3701
|
+
updatedAt: string;
|
|
3702
|
+
createdAt: string;
|
|
3703
|
+
email: string;
|
|
3701
3704
|
firstName: string;
|
|
3702
3705
|
lastName: string;
|
|
3703
|
-
email: string;
|
|
3704
3706
|
phoneNumbers: {
|
|
3705
3707
|
id: string;
|
|
3706
3708
|
phoneNumber: string;
|
|
3707
3709
|
isPrimary: boolean;
|
|
3708
3710
|
description?: string | null | undefined;
|
|
3709
3711
|
}[];
|
|
3710
|
-
createdAt: string;
|
|
3711
|
-
updatedAt: string;
|
|
3712
3712
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3713
3713
|
office?: {
|
|
3714
3714
|
id: string;
|
|
@@ -3723,31 +3723,33 @@ export declare const ownResearchContract: {
|
|
|
3723
3723
|
};
|
|
3724
3724
|
assignment?: {
|
|
3725
3725
|
id: string;
|
|
3726
|
-
leadId: string;
|
|
3727
|
-
agentId: string | null;
|
|
3728
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3729
|
-
createdAt: string;
|
|
3730
3726
|
updatedAt: string;
|
|
3727
|
+
createdAt: string;
|
|
3728
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3729
|
+
companyId: string | null;
|
|
3730
|
+
agentId: string | null;
|
|
3731
|
+
leadId: string;
|
|
3731
3732
|
assignedAt: string;
|
|
3732
3733
|
assignedBy: string | null;
|
|
3733
|
-
|
|
3734
|
-
|
|
3734
|
+
company?: {
|
|
3735
|
+
id: string;
|
|
3735
3736
|
name: string;
|
|
3736
|
-
|
|
3737
|
-
|
|
3737
|
+
updatedAt: string;
|
|
3738
|
+
createdAt: string;
|
|
3739
|
+
} | null | undefined;
|
|
3738
3740
|
agent?: {
|
|
3739
3741
|
id: string;
|
|
3742
|
+
updatedAt: string;
|
|
3743
|
+
createdAt: string;
|
|
3744
|
+
email: string;
|
|
3740
3745
|
firstName: string;
|
|
3741
3746
|
lastName: string;
|
|
3742
|
-
email: string;
|
|
3743
3747
|
phoneNumbers: {
|
|
3744
3748
|
id: string;
|
|
3745
3749
|
phoneNumber: string;
|
|
3746
3750
|
isPrimary: boolean;
|
|
3747
3751
|
description?: string | null | undefined;
|
|
3748
3752
|
}[];
|
|
3749
|
-
createdAt: string;
|
|
3750
|
-
updatedAt: string;
|
|
3751
3753
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3752
3754
|
office?: {
|
|
3753
3755
|
id: string;
|
|
@@ -3759,47 +3761,45 @@ export declare const ownResearchContract: {
|
|
|
3759
3761
|
lastName: string;
|
|
3760
3762
|
}[] | undefined;
|
|
3761
3763
|
} | undefined;
|
|
3762
|
-
|
|
3763
|
-
id: string;
|
|
3764
|
+
lead?: {
|
|
3764
3765
|
name: string;
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
} | null | undefined;
|
|
3766
|
+
phoneNumber: string;
|
|
3767
|
+
} | undefined;
|
|
3768
3768
|
} | null | undefined;
|
|
3769
3769
|
}, {
|
|
3770
3770
|
ownResearchLead: {
|
|
3771
3771
|
id: string;
|
|
3772
|
-
agentId: string;
|
|
3773
3772
|
name: string;
|
|
3774
|
-
phoneNumber: string;
|
|
3775
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3776
|
-
createdAt: string | Date;
|
|
3777
3773
|
updatedAt: string | Date;
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
cooldownUntil: string | Date | null;
|
|
3774
|
+
createdAt: string | Date;
|
|
3775
|
+
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED";
|
|
3781
3776
|
blacklistReason: string | null;
|
|
3777
|
+
agentId: string;
|
|
3778
|
+
phoneNumber: string;
|
|
3779
|
+
lastCalledAt: string | Date | null;
|
|
3780
|
+
callCount: number;
|
|
3782
3781
|
lastCallNotes: string | null;
|
|
3783
3782
|
existsInLeadsTable: boolean;
|
|
3783
|
+
cooldownUntil: string | Date | null;
|
|
3784
3784
|
originalLeadId: string | null;
|
|
3785
3785
|
agent?: {
|
|
3786
3786
|
id: string;
|
|
3787
|
+
updatedAt: string | Date;
|
|
3788
|
+
createdAt: string | Date;
|
|
3789
|
+
email: string;
|
|
3787
3790
|
firstName: string;
|
|
3788
3791
|
lastName: string;
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3793
|
+
office?: {
|
|
3794
|
+
id: string;
|
|
3795
|
+
name: string;
|
|
3796
|
+
} | null | undefined;
|
|
3792
3797
|
phoneNumbers?: {
|
|
3793
3798
|
id: string;
|
|
3794
3799
|
phoneNumber: string;
|
|
3795
3800
|
description?: string | null | undefined;
|
|
3796
3801
|
isPrimary?: boolean | undefined;
|
|
3797
3802
|
}[] | undefined;
|
|
3798
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3799
|
-
office?: {
|
|
3800
|
-
id: string;
|
|
3801
|
-
name: string;
|
|
3802
|
-
} | null | undefined;
|
|
3803
3803
|
canImpersonateUsers?: {
|
|
3804
3804
|
id: string;
|
|
3805
3805
|
firstName: string;
|
|
@@ -3809,48 +3809,48 @@ export declare const ownResearchContract: {
|
|
|
3809
3809
|
};
|
|
3810
3810
|
assignment?: {
|
|
3811
3811
|
id: string;
|
|
3812
|
-
leadId: string;
|
|
3813
|
-
agentId: string | null;
|
|
3814
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3815
|
-
createdAt: string | Date;
|
|
3816
3812
|
updatedAt: string | Date;
|
|
3813
|
+
createdAt: string | Date;
|
|
3814
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3815
|
+
companyId: string | null;
|
|
3816
|
+
agentId: string | null;
|
|
3817
|
+
leadId: string;
|
|
3817
3818
|
assignedAt: string | Date;
|
|
3818
3819
|
assignedBy: string | null;
|
|
3819
|
-
|
|
3820
|
-
|
|
3820
|
+
company?: {
|
|
3821
|
+
id: string;
|
|
3821
3822
|
name: string;
|
|
3822
|
-
|
|
3823
|
-
|
|
3823
|
+
updatedAt: string | Date;
|
|
3824
|
+
createdAt: string | Date;
|
|
3825
|
+
} | null | undefined;
|
|
3824
3826
|
agent?: {
|
|
3825
3827
|
id: string;
|
|
3828
|
+
updatedAt: string | Date;
|
|
3829
|
+
createdAt: string | Date;
|
|
3830
|
+
email: string;
|
|
3826
3831
|
firstName: string;
|
|
3827
3832
|
lastName: string;
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3833
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3834
|
+
office?: {
|
|
3835
|
+
id: string;
|
|
3836
|
+
name: string;
|
|
3837
|
+
} | null | undefined;
|
|
3831
3838
|
phoneNumbers?: {
|
|
3832
3839
|
id: string;
|
|
3833
3840
|
phoneNumber: string;
|
|
3834
3841
|
description?: string | null | undefined;
|
|
3835
3842
|
isPrimary?: boolean | undefined;
|
|
3836
3843
|
}[] | undefined;
|
|
3837
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3838
|
-
office?: {
|
|
3839
|
-
id: string;
|
|
3840
|
-
name: string;
|
|
3841
|
-
} | null | undefined;
|
|
3842
3844
|
canImpersonateUsers?: {
|
|
3843
3845
|
id: string;
|
|
3844
3846
|
firstName: string;
|
|
3845
3847
|
lastName: string;
|
|
3846
3848
|
}[] | undefined;
|
|
3847
3849
|
} | undefined;
|
|
3848
|
-
|
|
3849
|
-
id: string;
|
|
3850
|
+
lead?: {
|
|
3850
3851
|
name: string;
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
} | null | undefined;
|
|
3852
|
+
phoneNumber: string;
|
|
3853
|
+
} | undefined;
|
|
3854
3854
|
} | null | undefined;
|
|
3855
3855
|
}>;
|
|
3856
3856
|
};
|