@dakkitor/api-contracts 1.1.146 → 1.1.147
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 +39 -0
- package/dist/abilities/second-agent.abilities.json +36 -0
- package/dist/abilities/team-leads.json +30 -0
- package/dist/actives/actives.contract.d.ts +8207 -7871
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +973 -973
- package/dist/auth/auth.contract.d.ts +12 -12
- package/dist/bookings/bookings.contract.d.ts +12034 -11506
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +620 -620
- package/dist/client-contacts/client-contacts.contract.d.ts +277 -277
- package/dist/clients/clients.contract.d.ts +173 -173
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1868 -1868
- package/dist/collaborations/collaborations.contract.d.ts +1548 -1548
- package/dist/common/common-schemas.d.ts +4 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +9 -7
- package/dist/companies/companies.contract.d.ts +26 -26
- package/dist/crews/crews.contract.d.ts +2549 -0
- package/dist/crews/crews.contract.d.ts.map +1 -0
- package/dist/crews/crews.contract.js +203 -0
- package/dist/cron-executions/cron-executions.contract.d.ts +26 -26
- package/dist/curated-workers/curated-workers.contract.d.ts +517 -517
- package/dist/dashboards/dashboard-widgets.contract.d.ts +122 -122
- package/dist/dashboards/dashboard.contract.d.ts +26 -26
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/jobs/jobs.contract.d.ts +4309 -4309
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +26 -26
- package/dist/lead-assignments/lead-assignments.contract.d.ts +498 -498
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +131 -131
- package/dist/leads/leads.contract.d.ts +184 -184
- package/dist/locations/locations.contract.d.ts +28 -28
- package/dist/own-research/own-research.contract.d.ts +728 -728
- package/dist/users/users.contract.d.ts +154 -154
- package/dist/workers/workers.contract.d.ts +6476 -4566
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +217 -65
- package/package.json +1 -1
|
@@ -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;
|
|
63
60
|
firstName: string;
|
|
64
61
|
lastName: string;
|
|
62
|
+
email: string;
|
|
65
63
|
phoneNumbers: {
|
|
66
64
|
id: string;
|
|
67
65
|
phoneNumber: string;
|
|
68
66
|
isPrimary: boolean;
|
|
69
67
|
description?: string | null | undefined;
|
|
70
68
|
}[];
|
|
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;
|
|
86
83
|
firstName: string;
|
|
87
84
|
lastName: string;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
name: string;
|
|
92
|
-
} | null | undefined;
|
|
85
|
+
email: string;
|
|
86
|
+
createdAt: string | Date;
|
|
87
|
+
updatedAt: string | Date;
|
|
93
88
|
phoneNumbers?: {
|
|
94
89
|
id: string;
|
|
95
90
|
phoneNumber: string;
|
|
96
91
|
description?: string | null | undefined;
|
|
97
92
|
isPrimary?: boolean | undefined;
|
|
98
93
|
}[] | 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
|
+
phoneNumber: string;
|
|
120
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
121
|
+
agentId: string;
|
|
119
122
|
name: string;
|
|
120
|
-
updatedAt: string;
|
|
121
123
|
createdAt: string;
|
|
122
|
-
|
|
123
|
-
blacklistReason: string | null;
|
|
124
|
-
agentId: string;
|
|
125
|
-
phoneNumber: string;
|
|
126
|
-
lastCalledAt: string | null;
|
|
124
|
+
updatedAt: string;
|
|
127
125
|
callCount: number;
|
|
126
|
+
lastCalledAt: string | null;
|
|
127
|
+
cooldownUntil: string | null;
|
|
128
|
+
blacklistReason: string | null;
|
|
128
129
|
lastCallNotes: string | null;
|
|
129
130
|
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;
|
|
137
134
|
firstName: string;
|
|
138
135
|
lastName: string;
|
|
136
|
+
email: string;
|
|
139
137
|
phoneNumbers: {
|
|
140
138
|
id: string;
|
|
141
139
|
phoneNumber: string;
|
|
142
140
|
isPrimary: boolean;
|
|
143
141
|
description?: string | null | undefined;
|
|
144
142
|
}[];
|
|
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
|
+
phoneNumber: string;
|
|
159
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
160
|
+
agentId: string;
|
|
158
161
|
name: string;
|
|
159
|
-
updatedAt: string | Date;
|
|
160
162
|
createdAt: string | Date;
|
|
161
|
-
|
|
162
|
-
blacklistReason: string | null;
|
|
163
|
-
agentId: string;
|
|
164
|
-
phoneNumber: string;
|
|
165
|
-
lastCalledAt: string | Date | null;
|
|
163
|
+
updatedAt: string | Date;
|
|
166
164
|
callCount: number;
|
|
165
|
+
lastCalledAt: string | Date | null;
|
|
166
|
+
cooldownUntil: string | Date | null;
|
|
167
|
+
blacklistReason: string | null;
|
|
167
168
|
lastCallNotes: string | null;
|
|
168
169
|
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;
|
|
176
173
|
firstName: string;
|
|
177
174
|
lastName: string;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
name: string;
|
|
182
|
-
} | null | undefined;
|
|
175
|
+
email: string;
|
|
176
|
+
createdAt: string | Date;
|
|
177
|
+
updatedAt: string | Date;
|
|
183
178
|
phoneNumbers?: {
|
|
184
179
|
id: string;
|
|
185
180
|
phoneNumber: string;
|
|
186
181
|
description?: string | null | undefined;
|
|
187
182
|
isPrimary?: boolean | undefined;
|
|
188
183
|
}[] | 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;
|
|
@@ -204,15 +204,15 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
204
204
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
206
|
id: string;
|
|
207
|
-
name: string;
|
|
208
|
-
status: string;
|
|
209
207
|
phoneNumber: string;
|
|
208
|
+
status: string;
|
|
209
|
+
name: string;
|
|
210
210
|
cooldownUntil: string | null;
|
|
211
211
|
}, {
|
|
212
212
|
id: string;
|
|
213
|
-
name: string;
|
|
214
|
-
status: string;
|
|
215
213
|
phoneNumber: string;
|
|
214
|
+
status: string;
|
|
215
|
+
name: 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;
|
|
273
270
|
firstName: string;
|
|
274
271
|
lastName: string;
|
|
272
|
+
email: string;
|
|
275
273
|
phoneNumbers: {
|
|
276
274
|
id: string;
|
|
277
275
|
phoneNumber: string;
|
|
278
276
|
isPrimary: boolean;
|
|
279
277
|
description?: string | null | undefined;
|
|
280
278
|
}[];
|
|
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;
|
|
296
293
|
firstName: string;
|
|
297
294
|
lastName: string;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
name: string;
|
|
302
|
-
} | null | undefined;
|
|
295
|
+
email: string;
|
|
296
|
+
createdAt: string | Date;
|
|
297
|
+
updatedAt: string | Date;
|
|
303
298
|
phoneNumbers?: {
|
|
304
299
|
id: string;
|
|
305
300
|
phoneNumber: string;
|
|
306
301
|
description?: string | null | undefined;
|
|
307
302
|
isPrimary?: boolean | undefined;
|
|
308
303
|
}[] | 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
|
+
phoneNumber: string;
|
|
330
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
331
|
+
agentId: string;
|
|
329
332
|
name: string;
|
|
330
|
-
updatedAt: string;
|
|
331
333
|
createdAt: string;
|
|
332
|
-
|
|
333
|
-
blacklistReason: string | null;
|
|
334
|
-
agentId: string;
|
|
335
|
-
phoneNumber: string;
|
|
336
|
-
lastCalledAt: string | null;
|
|
334
|
+
updatedAt: string;
|
|
337
335
|
callCount: number;
|
|
336
|
+
lastCalledAt: string | null;
|
|
337
|
+
cooldownUntil: string | null;
|
|
338
|
+
blacklistReason: string | null;
|
|
338
339
|
lastCallNotes: string | null;
|
|
339
340
|
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;
|
|
347
344
|
firstName: string;
|
|
348
345
|
lastName: string;
|
|
346
|
+
email: string;
|
|
349
347
|
phoneNumbers: {
|
|
350
348
|
id: string;
|
|
351
349
|
phoneNumber: string;
|
|
352
350
|
isPrimary: boolean;
|
|
353
351
|
description?: string | null | undefined;
|
|
354
352
|
}[];
|
|
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
|
+
phoneNumber: string;
|
|
369
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
370
|
+
agentId: string;
|
|
368
371
|
name: string;
|
|
369
|
-
updatedAt: string | Date;
|
|
370
372
|
createdAt: string | Date;
|
|
371
|
-
|
|
372
|
-
blacklistReason: string | null;
|
|
373
|
-
agentId: string;
|
|
374
|
-
phoneNumber: string;
|
|
375
|
-
lastCalledAt: string | Date | null;
|
|
373
|
+
updatedAt: string | Date;
|
|
376
374
|
callCount: number;
|
|
375
|
+
lastCalledAt: string | Date | null;
|
|
376
|
+
cooldownUntil: string | Date | null;
|
|
377
|
+
blacklistReason: string | null;
|
|
377
378
|
lastCallNotes: string | null;
|
|
378
379
|
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;
|
|
386
383
|
firstName: string;
|
|
387
384
|
lastName: string;
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
name: string;
|
|
392
|
-
} | null | undefined;
|
|
385
|
+
email: string;
|
|
386
|
+
createdAt: string | Date;
|
|
387
|
+
updatedAt: string | Date;
|
|
393
388
|
phoneNumbers?: {
|
|
394
389
|
id: string;
|
|
395
390
|
phoneNumber: string;
|
|
396
391
|
description?: string | null | undefined;
|
|
397
392
|
isPrimary?: boolean | undefined;
|
|
398
393
|
}[] | 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;
|
|
@@ -412,39 +412,39 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
412
412
|
isOnCooldown: boolean;
|
|
413
413
|
lead?: {
|
|
414
414
|
id: string;
|
|
415
|
-
name: string;
|
|
416
|
-
status: string;
|
|
417
415
|
phoneNumber: string;
|
|
416
|
+
status: string;
|
|
417
|
+
name: string;
|
|
418
418
|
cooldownUntil: string | null;
|
|
419
419
|
} | null | undefined;
|
|
420
420
|
ownResearchLead?: {
|
|
421
421
|
id: string;
|
|
422
|
+
phoneNumber: string;
|
|
423
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
424
|
+
agentId: string;
|
|
422
425
|
name: string;
|
|
423
|
-
updatedAt: string;
|
|
424
426
|
createdAt: string;
|
|
425
|
-
|
|
426
|
-
blacklistReason: string | null;
|
|
427
|
-
agentId: string;
|
|
428
|
-
phoneNumber: string;
|
|
429
|
-
lastCalledAt: string | null;
|
|
427
|
+
updatedAt: string;
|
|
430
428
|
callCount: number;
|
|
429
|
+
lastCalledAt: string | null;
|
|
430
|
+
cooldownUntil: string | null;
|
|
431
|
+
blacklistReason: string | null;
|
|
431
432
|
lastCallNotes: string | null;
|
|
432
433
|
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;
|
|
440
437
|
firstName: string;
|
|
441
438
|
lastName: string;
|
|
439
|
+
email: string;
|
|
442
440
|
phoneNumbers: {
|
|
443
441
|
id: string;
|
|
444
442
|
phoneNumber: string;
|
|
445
443
|
isPrimary: boolean;
|
|
446
444
|
description?: string | null | undefined;
|
|
447
445
|
}[];
|
|
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;
|
|
@@ -464,44 +464,44 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
464
464
|
isOnCooldown: boolean;
|
|
465
465
|
lead?: {
|
|
466
466
|
id: string;
|
|
467
|
-
name: string;
|
|
468
|
-
status: string;
|
|
469
467
|
phoneNumber: string;
|
|
468
|
+
status: string;
|
|
469
|
+
name: string;
|
|
470
470
|
cooldownUntil: string | Date | null;
|
|
471
471
|
} | null | undefined;
|
|
472
472
|
ownResearchLead?: {
|
|
473
473
|
id: string;
|
|
474
|
+
phoneNumber: string;
|
|
475
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
476
|
+
agentId: string;
|
|
474
477
|
name: string;
|
|
475
|
-
updatedAt: string | Date;
|
|
476
478
|
createdAt: string | Date;
|
|
477
|
-
|
|
478
|
-
blacklistReason: string | null;
|
|
479
|
-
agentId: string;
|
|
480
|
-
phoneNumber: string;
|
|
481
|
-
lastCalledAt: string | Date | null;
|
|
479
|
+
updatedAt: string | Date;
|
|
482
480
|
callCount: number;
|
|
481
|
+
lastCalledAt: string | Date | null;
|
|
482
|
+
cooldownUntil: string | Date | null;
|
|
483
|
+
blacklistReason: string | null;
|
|
483
484
|
lastCallNotes: string | null;
|
|
484
485
|
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;
|
|
492
489
|
firstName: string;
|
|
493
490
|
lastName: string;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
name: string;
|
|
498
|
-
} | null | undefined;
|
|
491
|
+
email: string;
|
|
492
|
+
createdAt: string | Date;
|
|
493
|
+
updatedAt: string | Date;
|
|
499
494
|
phoneNumbers?: {
|
|
500
495
|
id: string;
|
|
501
496
|
phoneNumber: string;
|
|
502
497
|
description?: string | null | undefined;
|
|
503
498
|
isPrimary?: boolean | undefined;
|
|
504
499
|
}[] | 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;
|
|
@@ -524,17 +524,17 @@ export declare const RecordOwnResearchCallSchema: z.ZodObject<{
|
|
|
524
524
|
notes: z.ZodOptional<z.ZodString>;
|
|
525
525
|
callType: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>>;
|
|
526
526
|
}, "strip", z.ZodTypeAny, {
|
|
527
|
+
phoneNumber: string;
|
|
527
528
|
name: string;
|
|
528
529
|
rating: import("../common/call-rating.schema").CallRating;
|
|
529
|
-
phoneNumber: string;
|
|
530
|
-
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
531
530
|
notes?: string | undefined;
|
|
531
|
+
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
532
532
|
}, {
|
|
533
|
+
phoneNumber: string;
|
|
533
534
|
name: string;
|
|
534
535
|
rating: import("../common/call-rating.schema").CallRating;
|
|
535
|
-
phoneNumber: string;
|
|
536
|
-
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
537
536
|
notes?: string | undefined;
|
|
537
|
+
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
538
538
|
}>;
|
|
539
539
|
export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
540
540
|
assignment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -544,11 +544,11 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
544
544
|
name: z.ZodString;
|
|
545
545
|
phoneNumber: z.ZodString;
|
|
546
546
|
}, "strip", z.ZodTypeAny, {
|
|
547
|
-
name: string;
|
|
548
547
|
phoneNumber: string;
|
|
549
|
-
}, {
|
|
550
548
|
name: string;
|
|
549
|
+
}, {
|
|
551
550
|
phoneNumber: string;
|
|
551
|
+
name: string;
|
|
552
552
|
}>>;
|
|
553
553
|
agentId: z.ZodNullable<z.ZodString>;
|
|
554
554
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -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;
|
|
606
603
|
firstName: string;
|
|
607
604
|
lastName: string;
|
|
605
|
+
email: string;
|
|
608
606
|
phoneNumbers: {
|
|
609
607
|
id: string;
|
|
610
608
|
phoneNumber: string;
|
|
611
609
|
isPrimary: boolean;
|
|
612
610
|
description?: string | null | undefined;
|
|
613
611
|
}[];
|
|
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;
|
|
629
626
|
firstName: string;
|
|
630
627
|
lastName: string;
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
name: string;
|
|
635
|
-
} | null | undefined;
|
|
628
|
+
email: string;
|
|
629
|
+
createdAt: string | Date;
|
|
630
|
+
updatedAt: string | Date;
|
|
636
631
|
phoneNumbers?: {
|
|
637
632
|
id: string;
|
|
638
633
|
phoneNumber: string;
|
|
639
634
|
description?: string | null | undefined;
|
|
640
635
|
isPrimary?: boolean | undefined;
|
|
641
636
|
}[] | 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,45 +657,39 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
657
657
|
}, "strip", z.ZodTypeAny, {
|
|
658
658
|
id: string;
|
|
659
659
|
name: string;
|
|
660
|
-
updatedAt: string;
|
|
661
660
|
createdAt: string;
|
|
661
|
+
updatedAt: string;
|
|
662
662
|
}, {
|
|
663
663
|
id: string;
|
|
664
664
|
name: string;
|
|
665
|
-
updatedAt: string | Date;
|
|
666
665
|
createdAt: string | Date;
|
|
666
|
+
updatedAt: 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
|
-
updatedAt: string;
|
|
673
|
-
createdAt: string;
|
|
674
672
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
675
|
-
companyId: string | null;
|
|
676
673
|
agentId: string | null;
|
|
674
|
+
createdAt: string;
|
|
675
|
+
updatedAt: string;
|
|
677
676
|
leadId: string;
|
|
678
677
|
assignedAt: string;
|
|
679
678
|
assignedBy: string | null;
|
|
680
|
-
|
|
681
|
-
id: string;
|
|
682
|
-
name: string;
|
|
683
|
-
updatedAt: string;
|
|
684
|
-
createdAt: string;
|
|
685
|
-
} | null | undefined;
|
|
679
|
+
companyId: string | null;
|
|
686
680
|
agent?: {
|
|
687
681
|
id: string;
|
|
688
|
-
updatedAt: string;
|
|
689
|
-
createdAt: string;
|
|
690
|
-
email: string;
|
|
691
682
|
firstName: string;
|
|
692
683
|
lastName: string;
|
|
684
|
+
email: string;
|
|
693
685
|
phoneNumbers: {
|
|
694
686
|
id: string;
|
|
695
687
|
phoneNumber: string;
|
|
696
688
|
isPrimary: boolean;
|
|
697
689
|
description?: string | null | undefined;
|
|
698
690
|
}[];
|
|
691
|
+
createdAt: string;
|
|
692
|
+
updatedAt: string;
|
|
699
693
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
700
694
|
office?: {
|
|
701
695
|
id: string;
|
|
@@ -708,43 +702,43 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
708
702
|
}[] | undefined;
|
|
709
703
|
} | undefined;
|
|
710
704
|
lead?: {
|
|
711
|
-
name: string;
|
|
712
705
|
phoneNumber: string;
|
|
706
|
+
name: string;
|
|
713
707
|
} | undefined;
|
|
708
|
+
company?: {
|
|
709
|
+
id: string;
|
|
710
|
+
name: string;
|
|
711
|
+
createdAt: string;
|
|
712
|
+
updatedAt: string;
|
|
713
|
+
} | null | undefined;
|
|
714
714
|
}, {
|
|
715
715
|
id: string;
|
|
716
|
-
updatedAt: string | Date;
|
|
717
|
-
createdAt: string | Date;
|
|
718
716
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
719
|
-
companyId: string | null;
|
|
720
717
|
agentId: string | null;
|
|
718
|
+
createdAt: string | Date;
|
|
719
|
+
updatedAt: string | Date;
|
|
721
720
|
leadId: string;
|
|
722
721
|
assignedAt: string | Date;
|
|
723
722
|
assignedBy: string | null;
|
|
724
|
-
|
|
725
|
-
id: string;
|
|
726
|
-
name: string;
|
|
727
|
-
updatedAt: string | Date;
|
|
728
|
-
createdAt: string | Date;
|
|
729
|
-
} | null | undefined;
|
|
723
|
+
companyId: string | null;
|
|
730
724
|
agent?: {
|
|
731
725
|
id: string;
|
|
732
|
-
updatedAt: string | Date;
|
|
733
|
-
createdAt: string | Date;
|
|
734
|
-
email: string;
|
|
735
726
|
firstName: string;
|
|
736
727
|
lastName: string;
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
name: string;
|
|
741
|
-
} | null | undefined;
|
|
728
|
+
email: string;
|
|
729
|
+
createdAt: string | Date;
|
|
730
|
+
updatedAt: string | Date;
|
|
742
731
|
phoneNumbers?: {
|
|
743
732
|
id: string;
|
|
744
733
|
phoneNumber: string;
|
|
745
734
|
description?: string | null | undefined;
|
|
746
735
|
isPrimary?: boolean | undefined;
|
|
747
736
|
}[] | undefined;
|
|
737
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
738
|
+
office?: {
|
|
739
|
+
id: string;
|
|
740
|
+
name: string;
|
|
741
|
+
} | null | undefined;
|
|
748
742
|
canImpersonateUsers?: {
|
|
749
743
|
id: string;
|
|
750
744
|
firstName: string;
|
|
@@ -752,9 +746,15 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
752
746
|
}[] | undefined;
|
|
753
747
|
} | undefined;
|
|
754
748
|
lead?: {
|
|
755
|
-
name: string;
|
|
756
749
|
phoneNumber: string;
|
|
750
|
+
name: string;
|
|
757
751
|
} | undefined;
|
|
752
|
+
company?: {
|
|
753
|
+
id: string;
|
|
754
|
+
name: string;
|
|
755
|
+
createdAt: string | Date;
|
|
756
|
+
updatedAt: string | Date;
|
|
757
|
+
} | null | 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;
|
|
814
811
|
firstName: string;
|
|
815
812
|
lastName: string;
|
|
813
|
+
email: string;
|
|
816
814
|
phoneNumbers: {
|
|
817
815
|
id: string;
|
|
818
816
|
phoneNumber: string;
|
|
819
817
|
isPrimary: boolean;
|
|
820
818
|
description?: string | null | undefined;
|
|
821
819
|
}[];
|
|
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;
|
|
837
834
|
firstName: string;
|
|
838
835
|
lastName: string;
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
name: string;
|
|
843
|
-
} | null | undefined;
|
|
836
|
+
email: string;
|
|
837
|
+
createdAt: string | Date;
|
|
838
|
+
updatedAt: string | Date;
|
|
844
839
|
phoneNumbers?: {
|
|
845
840
|
id: string;
|
|
846
841
|
phoneNumber: string;
|
|
847
842
|
description?: string | null | undefined;
|
|
848
843
|
isPrimary?: boolean | undefined;
|
|
849
844
|
}[] | 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
|
+
phoneNumber: string;
|
|
871
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
872
|
+
agentId: string;
|
|
870
873
|
name: string;
|
|
871
|
-
updatedAt: string;
|
|
872
874
|
createdAt: string;
|
|
873
|
-
|
|
874
|
-
blacklistReason: string | null;
|
|
875
|
-
agentId: string;
|
|
876
|
-
phoneNumber: string;
|
|
877
|
-
lastCalledAt: string | null;
|
|
875
|
+
updatedAt: string;
|
|
878
876
|
callCount: number;
|
|
877
|
+
lastCalledAt: string | null;
|
|
878
|
+
cooldownUntil: string | null;
|
|
879
|
+
blacklistReason: string | null;
|
|
879
880
|
lastCallNotes: string | null;
|
|
880
881
|
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;
|
|
888
885
|
firstName: string;
|
|
889
886
|
lastName: string;
|
|
887
|
+
email: string;
|
|
890
888
|
phoneNumbers: {
|
|
891
889
|
id: string;
|
|
892
890
|
phoneNumber: string;
|
|
893
891
|
isPrimary: boolean;
|
|
894
892
|
description?: string | null | undefined;
|
|
895
893
|
}[];
|
|
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
|
+
phoneNumber: string;
|
|
910
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
911
|
+
agentId: string;
|
|
909
912
|
name: string;
|
|
910
|
-
updatedAt: string | Date;
|
|
911
913
|
createdAt: string | Date;
|
|
912
|
-
|
|
913
|
-
blacklistReason: string | null;
|
|
914
|
-
agentId: string;
|
|
915
|
-
phoneNumber: string;
|
|
916
|
-
lastCalledAt: string | Date | null;
|
|
914
|
+
updatedAt: string | Date;
|
|
917
915
|
callCount: number;
|
|
916
|
+
lastCalledAt: string | Date | null;
|
|
917
|
+
cooldownUntil: string | Date | null;
|
|
918
|
+
blacklistReason: string | null;
|
|
918
919
|
lastCallNotes: string | null;
|
|
919
920
|
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;
|
|
927
924
|
firstName: string;
|
|
928
925
|
lastName: string;
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
name: string;
|
|
933
|
-
} | null | undefined;
|
|
926
|
+
email: string;
|
|
927
|
+
createdAt: string | Date;
|
|
928
|
+
updatedAt: string | Date;
|
|
934
929
|
phoneNumbers?: {
|
|
935
930
|
id: string;
|
|
936
931
|
phoneNumber: string;
|
|
937
932
|
description?: string | null | undefined;
|
|
938
933
|
isPrimary?: boolean | undefined;
|
|
939
934
|
}[] | 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
|
+
phoneNumber: string;
|
|
951
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
952
|
+
agentId: string;
|
|
950
953
|
name: string;
|
|
951
|
-
updatedAt: string;
|
|
952
954
|
createdAt: string;
|
|
953
|
-
|
|
954
|
-
blacklistReason: string | null;
|
|
955
|
-
agentId: string;
|
|
956
|
-
phoneNumber: string;
|
|
957
|
-
lastCalledAt: string | null;
|
|
955
|
+
updatedAt: string;
|
|
958
956
|
callCount: number;
|
|
957
|
+
lastCalledAt: string | null;
|
|
958
|
+
cooldownUntil: string | null;
|
|
959
|
+
blacklistReason: string | null;
|
|
959
960
|
lastCallNotes: string | null;
|
|
960
961
|
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;
|
|
968
965
|
firstName: string;
|
|
969
966
|
lastName: string;
|
|
967
|
+
email: string;
|
|
970
968
|
phoneNumbers: {
|
|
971
969
|
id: string;
|
|
972
970
|
phoneNumber: string;
|
|
973
971
|
isPrimary: boolean;
|
|
974
972
|
description?: string | null | undefined;
|
|
975
973
|
}[];
|
|
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,33 +987,27 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
987
987
|
};
|
|
988
988
|
assignment?: {
|
|
989
989
|
id: string;
|
|
990
|
-
updatedAt: string;
|
|
991
|
-
createdAt: string;
|
|
992
990
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
993
|
-
companyId: string | null;
|
|
994
991
|
agentId: string | null;
|
|
992
|
+
createdAt: string;
|
|
993
|
+
updatedAt: string;
|
|
995
994
|
leadId: string;
|
|
996
995
|
assignedAt: string;
|
|
997
996
|
assignedBy: string | null;
|
|
998
|
-
|
|
999
|
-
id: string;
|
|
1000
|
-
name: string;
|
|
1001
|
-
updatedAt: string;
|
|
1002
|
-
createdAt: string;
|
|
1003
|
-
} | null | undefined;
|
|
997
|
+
companyId: string | null;
|
|
1004
998
|
agent?: {
|
|
1005
999
|
id: string;
|
|
1006
|
-
updatedAt: string;
|
|
1007
|
-
createdAt: string;
|
|
1008
|
-
email: string;
|
|
1009
1000
|
firstName: string;
|
|
1010
1001
|
lastName: string;
|
|
1002
|
+
email: string;
|
|
1011
1003
|
phoneNumbers: {
|
|
1012
1004
|
id: string;
|
|
1013
1005
|
phoneNumber: string;
|
|
1014
1006
|
isPrimary: boolean;
|
|
1015
1007
|
description?: string | null | undefined;
|
|
1016
1008
|
}[];
|
|
1009
|
+
createdAt: string;
|
|
1010
|
+
updatedAt: string;
|
|
1017
1011
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1018
1012
|
office?: {
|
|
1019
1013
|
id: string;
|
|
@@ -1026,44 +1020,50 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1026
1020
|
}[] | undefined;
|
|
1027
1021
|
} | undefined;
|
|
1028
1022
|
lead?: {
|
|
1029
|
-
name: string;
|
|
1030
1023
|
phoneNumber: string;
|
|
1024
|
+
name: string;
|
|
1031
1025
|
} | undefined;
|
|
1026
|
+
company?: {
|
|
1027
|
+
id: string;
|
|
1028
|
+
name: string;
|
|
1029
|
+
createdAt: string;
|
|
1030
|
+
updatedAt: string;
|
|
1031
|
+
} | null | undefined;
|
|
1032
1032
|
} | null | undefined;
|
|
1033
1033
|
}, {
|
|
1034
1034
|
ownResearchLead: {
|
|
1035
1035
|
id: string;
|
|
1036
|
+
phoneNumber: string;
|
|
1037
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1038
|
+
agentId: string;
|
|
1036
1039
|
name: string;
|
|
1037
|
-
updatedAt: string | Date;
|
|
1038
1040
|
createdAt: string | Date;
|
|
1039
|
-
|
|
1040
|
-
blacklistReason: string | null;
|
|
1041
|
-
agentId: string;
|
|
1042
|
-
phoneNumber: string;
|
|
1043
|
-
lastCalledAt: string | Date | null;
|
|
1041
|
+
updatedAt: string | Date;
|
|
1044
1042
|
callCount: number;
|
|
1043
|
+
lastCalledAt: string | Date | null;
|
|
1044
|
+
cooldownUntil: string | Date | null;
|
|
1045
|
+
blacklistReason: string | null;
|
|
1045
1046
|
lastCallNotes: string | null;
|
|
1046
1047
|
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;
|
|
1054
1051
|
firstName: string;
|
|
1055
1052
|
lastName: string;
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
name: string;
|
|
1060
|
-
} | null | undefined;
|
|
1053
|
+
email: string;
|
|
1054
|
+
createdAt: string | Date;
|
|
1055
|
+
updatedAt: string | Date;
|
|
1061
1056
|
phoneNumbers?: {
|
|
1062
1057
|
id: string;
|
|
1063
1058
|
phoneNumber: string;
|
|
1064
1059
|
description?: string | null | undefined;
|
|
1065
1060
|
isPrimary?: boolean | undefined;
|
|
1066
1061
|
}[] | 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,38 +1073,32 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1073
1073
|
};
|
|
1074
1074
|
assignment?: {
|
|
1075
1075
|
id: string;
|
|
1076
|
-
updatedAt: string | Date;
|
|
1077
|
-
createdAt: string | Date;
|
|
1078
1076
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1079
|
-
companyId: string | null;
|
|
1080
1077
|
agentId: string | null;
|
|
1078
|
+
createdAt: string | Date;
|
|
1079
|
+
updatedAt: string | Date;
|
|
1081
1080
|
leadId: string;
|
|
1082
1081
|
assignedAt: string | Date;
|
|
1083
1082
|
assignedBy: string | null;
|
|
1084
|
-
|
|
1085
|
-
id: string;
|
|
1086
|
-
name: string;
|
|
1087
|
-
updatedAt: string | Date;
|
|
1088
|
-
createdAt: string | Date;
|
|
1089
|
-
} | null | undefined;
|
|
1083
|
+
companyId: string | null;
|
|
1090
1084
|
agent?: {
|
|
1091
1085
|
id: string;
|
|
1092
|
-
updatedAt: string | Date;
|
|
1093
|
-
createdAt: string | Date;
|
|
1094
|
-
email: string;
|
|
1095
1086
|
firstName: string;
|
|
1096
1087
|
lastName: string;
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
name: string;
|
|
1101
|
-
} | null | undefined;
|
|
1088
|
+
email: string;
|
|
1089
|
+
createdAt: string | Date;
|
|
1090
|
+
updatedAt: string | Date;
|
|
1102
1091
|
phoneNumbers?: {
|
|
1103
1092
|
id: string;
|
|
1104
1093
|
phoneNumber: string;
|
|
1105
1094
|
description?: string | null | undefined;
|
|
1106
1095
|
isPrimary?: boolean | undefined;
|
|
1107
1096
|
}[] | undefined;
|
|
1097
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1098
|
+
office?: {
|
|
1099
|
+
id: string;
|
|
1100
|
+
name: string;
|
|
1101
|
+
} | null | undefined;
|
|
1108
1102
|
canImpersonateUsers?: {
|
|
1109
1103
|
id: string;
|
|
1110
1104
|
firstName: string;
|
|
@@ -1112,20 +1106,26 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1112
1106
|
}[] | undefined;
|
|
1113
1107
|
} | undefined;
|
|
1114
1108
|
lead?: {
|
|
1115
|
-
name: string;
|
|
1116
1109
|
phoneNumber: string;
|
|
1110
|
+
name: string;
|
|
1117
1111
|
} | undefined;
|
|
1112
|
+
company?: {
|
|
1113
|
+
id: string;
|
|
1114
|
+
name: string;
|
|
1115
|
+
createdAt: string | Date;
|
|
1116
|
+
updatedAt: string | Date;
|
|
1117
|
+
} | null | undefined;
|
|
1118
1118
|
} | null | undefined;
|
|
1119
1119
|
}>;
|
|
1120
1120
|
export declare const AddOwnResearchLeadSchema: z.ZodObject<{
|
|
1121
1121
|
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
|
1122
1122
|
name: z.ZodString;
|
|
1123
1123
|
}, "strip", z.ZodTypeAny, {
|
|
1124
|
-
name: string;
|
|
1125
1124
|
phoneNumber: string;
|
|
1126
|
-
}, {
|
|
1127
1125
|
name: string;
|
|
1126
|
+
}, {
|
|
1128
1127
|
phoneNumber: string;
|
|
1128
|
+
name: string;
|
|
1129
1129
|
}>;
|
|
1130
1130
|
export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
1131
1131
|
ownResearchLead: 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;
|
|
1186
1183
|
firstName: string;
|
|
1187
1184
|
lastName: string;
|
|
1185
|
+
email: string;
|
|
1188
1186
|
phoneNumbers: {
|
|
1189
1187
|
id: string;
|
|
1190
1188
|
phoneNumber: string;
|
|
1191
1189
|
isPrimary: boolean;
|
|
1192
1190
|
description?: string | null | undefined;
|
|
1193
1191
|
}[];
|
|
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;
|
|
1209
1206
|
firstName: string;
|
|
1210
1207
|
lastName: string;
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
name: string;
|
|
1215
|
-
} | null | undefined;
|
|
1208
|
+
email: string;
|
|
1209
|
+
createdAt: string | Date;
|
|
1210
|
+
updatedAt: string | Date;
|
|
1216
1211
|
phoneNumbers?: {
|
|
1217
1212
|
id: string;
|
|
1218
1213
|
phoneNumber: string;
|
|
1219
1214
|
description?: string | null | undefined;
|
|
1220
1215
|
isPrimary?: boolean | undefined;
|
|
1221
1216
|
}[] | 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
|
+
phoneNumber: string;
|
|
1243
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1244
|
+
agentId: string;
|
|
1242
1245
|
name: string;
|
|
1243
|
-
updatedAt: string;
|
|
1244
1246
|
createdAt: string;
|
|
1245
|
-
|
|
1246
|
-
blacklistReason: string | null;
|
|
1247
|
-
agentId: string;
|
|
1248
|
-
phoneNumber: string;
|
|
1249
|
-
lastCalledAt: string | null;
|
|
1247
|
+
updatedAt: string;
|
|
1250
1248
|
callCount: number;
|
|
1249
|
+
lastCalledAt: string | null;
|
|
1250
|
+
cooldownUntil: string | null;
|
|
1251
|
+
blacklistReason: string | null;
|
|
1251
1252
|
lastCallNotes: string | null;
|
|
1252
1253
|
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;
|
|
1260
1257
|
firstName: string;
|
|
1261
1258
|
lastName: string;
|
|
1259
|
+
email: string;
|
|
1262
1260
|
phoneNumbers: {
|
|
1263
1261
|
id: string;
|
|
1264
1262
|
phoneNumber: string;
|
|
1265
1263
|
isPrimary: boolean;
|
|
1266
1264
|
description?: string | null | undefined;
|
|
1267
1265
|
}[];
|
|
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
|
+
phoneNumber: string;
|
|
1282
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1283
|
+
agentId: string;
|
|
1281
1284
|
name: string;
|
|
1282
|
-
updatedAt: string | Date;
|
|
1283
1285
|
createdAt: string | Date;
|
|
1284
|
-
|
|
1285
|
-
blacklistReason: string | null;
|
|
1286
|
-
agentId: string;
|
|
1287
|
-
phoneNumber: string;
|
|
1288
|
-
lastCalledAt: string | Date | null;
|
|
1286
|
+
updatedAt: string | Date;
|
|
1289
1287
|
callCount: number;
|
|
1288
|
+
lastCalledAt: string | Date | null;
|
|
1289
|
+
cooldownUntil: string | Date | null;
|
|
1290
|
+
blacklistReason: string | null;
|
|
1290
1291
|
lastCallNotes: string | null;
|
|
1291
1292
|
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;
|
|
1299
1296
|
firstName: string;
|
|
1300
1297
|
lastName: string;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
name: string;
|
|
1305
|
-
} | null | undefined;
|
|
1298
|
+
email: string;
|
|
1299
|
+
createdAt: string | Date;
|
|
1300
|
+
updatedAt: string | Date;
|
|
1306
1301
|
phoneNumbers?: {
|
|
1307
1302
|
id: string;
|
|
1308
1303
|
phoneNumber: string;
|
|
1309
1304
|
description?: string | null | undefined;
|
|
1310
1305
|
isPrimary?: boolean | undefined;
|
|
1311
1306
|
}[] | 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
|
+
phoneNumber: string;
|
|
1323
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1324
|
+
agentId: string;
|
|
1322
1325
|
name: string;
|
|
1323
|
-
updatedAt: string;
|
|
1324
1326
|
createdAt: string;
|
|
1325
|
-
|
|
1326
|
-
blacklistReason: string | null;
|
|
1327
|
-
agentId: string;
|
|
1328
|
-
phoneNumber: string;
|
|
1329
|
-
lastCalledAt: string | null;
|
|
1327
|
+
updatedAt: string;
|
|
1330
1328
|
callCount: number;
|
|
1329
|
+
lastCalledAt: string | null;
|
|
1330
|
+
cooldownUntil: string | null;
|
|
1331
|
+
blacklistReason: string | null;
|
|
1331
1332
|
lastCallNotes: string | null;
|
|
1332
1333
|
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;
|
|
1340
1337
|
firstName: string;
|
|
1341
1338
|
lastName: string;
|
|
1339
|
+
email: string;
|
|
1342
1340
|
phoneNumbers: {
|
|
1343
1341
|
id: string;
|
|
1344
1342
|
phoneNumber: string;
|
|
1345
1343
|
isPrimary: boolean;
|
|
1346
1344
|
description?: string | null | undefined;
|
|
1347
1345
|
}[];
|
|
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
|
+
phoneNumber: string;
|
|
1364
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1365
|
+
agentId: string;
|
|
1363
1366
|
name: string;
|
|
1364
|
-
updatedAt: string | Date;
|
|
1365
1367
|
createdAt: string | Date;
|
|
1366
|
-
|
|
1367
|
-
blacklistReason: string | null;
|
|
1368
|
-
agentId: string;
|
|
1369
|
-
phoneNumber: string;
|
|
1370
|
-
lastCalledAt: string | Date | null;
|
|
1368
|
+
updatedAt: string | Date;
|
|
1371
1369
|
callCount: number;
|
|
1370
|
+
lastCalledAt: string | Date | null;
|
|
1371
|
+
cooldownUntil: string | Date | null;
|
|
1372
|
+
blacklistReason: string | null;
|
|
1372
1373
|
lastCallNotes: string | null;
|
|
1373
1374
|
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;
|
|
1381
1378
|
firstName: string;
|
|
1382
1379
|
lastName: string;
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
name: string;
|
|
1387
|
-
} | null | undefined;
|
|
1380
|
+
email: string;
|
|
1381
|
+
createdAt: string | Date;
|
|
1382
|
+
updatedAt: string | Date;
|
|
1388
1383
|
phoneNumbers?: {
|
|
1389
1384
|
id: string;
|
|
1390
1385
|
phoneNumber: string;
|
|
1391
1386
|
description?: string | null | undefined;
|
|
1392
1387
|
isPrimary?: boolean | undefined;
|
|
1393
1388
|
}[] | 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,31 +1431,31 @@ 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
|
-
page: number;
|
|
1435
1434
|
limit: number;
|
|
1436
|
-
|
|
1437
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1438
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
1439
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1435
|
+
page: number;
|
|
1440
1436
|
phoneNumber?: string | undefined;
|
|
1437
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1438
|
+
name?: string | undefined;
|
|
1441
1439
|
lastCalledAt?: {
|
|
1442
1440
|
from?: string | null | undefined;
|
|
1443
1441
|
to?: string | null | undefined;
|
|
1444
1442
|
} | undefined;
|
|
1445
1443
|
minTotalCalls?: number | undefined;
|
|
1446
|
-
|
|
1447
|
-
name?: string | undefined;
|
|
1448
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1449
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
1444
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1450
1445
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1451
|
-
|
|
1452
|
-
limit?: number | undefined;
|
|
1446
|
+
}, {
|
|
1453
1447
|
phoneNumber?: string | undefined;
|
|
1448
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1449
|
+
name?: string | undefined;
|
|
1454
1450
|
lastCalledAt?: {
|
|
1455
1451
|
from?: string | null | undefined;
|
|
1456
1452
|
to?: string | null | undefined;
|
|
1457
1453
|
} | undefined;
|
|
1454
|
+
limit?: number | undefined;
|
|
1455
|
+
page?: number | undefined;
|
|
1458
1456
|
minTotalCalls?: number | undefined;
|
|
1457
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1458
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1459
1459
|
}>;
|
|
1460
1460
|
export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
1461
1461
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -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;
|
|
1516
1513
|
firstName: string;
|
|
1517
1514
|
lastName: string;
|
|
1515
|
+
email: string;
|
|
1518
1516
|
phoneNumbers: {
|
|
1519
1517
|
id: string;
|
|
1520
1518
|
phoneNumber: string;
|
|
1521
1519
|
isPrimary: boolean;
|
|
1522
1520
|
description?: string | null | undefined;
|
|
1523
1521
|
}[];
|
|
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;
|
|
1539
1536
|
firstName: string;
|
|
1540
1537
|
lastName: string;
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
name: string;
|
|
1545
|
-
} | null | undefined;
|
|
1538
|
+
email: string;
|
|
1539
|
+
createdAt: string | Date;
|
|
1540
|
+
updatedAt: string | Date;
|
|
1546
1541
|
phoneNumbers?: {
|
|
1547
1542
|
id: string;
|
|
1548
1543
|
phoneNumber: string;
|
|
1549
1544
|
description?: string | null | undefined;
|
|
1550
1545
|
isPrimary?: boolean | undefined;
|
|
1551
1546
|
}[] | 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
|
+
phoneNumber: string;
|
|
1573
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1574
|
+
agentId: string;
|
|
1572
1575
|
name: string;
|
|
1573
|
-
updatedAt: string;
|
|
1574
1576
|
createdAt: string;
|
|
1575
|
-
|
|
1576
|
-
blacklistReason: string | null;
|
|
1577
|
-
agentId: string;
|
|
1578
|
-
phoneNumber: string;
|
|
1579
|
-
lastCalledAt: string | null;
|
|
1577
|
+
updatedAt: string;
|
|
1580
1578
|
callCount: number;
|
|
1579
|
+
lastCalledAt: string | null;
|
|
1580
|
+
cooldownUntil: string | null;
|
|
1581
|
+
blacklistReason: string | null;
|
|
1581
1582
|
lastCallNotes: string | null;
|
|
1582
1583
|
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;
|
|
1590
1587
|
firstName: string;
|
|
1591
1588
|
lastName: string;
|
|
1589
|
+
email: string;
|
|
1592
1590
|
phoneNumbers: {
|
|
1593
1591
|
id: string;
|
|
1594
1592
|
phoneNumber: string;
|
|
1595
1593
|
isPrimary: boolean;
|
|
1596
1594
|
description?: string | null | undefined;
|
|
1597
1595
|
}[];
|
|
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
|
+
phoneNumber: string;
|
|
1612
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1613
|
+
agentId: string;
|
|
1611
1614
|
name: string;
|
|
1612
|
-
updatedAt: string | Date;
|
|
1613
1615
|
createdAt: string | Date;
|
|
1614
|
-
|
|
1615
|
-
blacklistReason: string | null;
|
|
1616
|
-
agentId: string;
|
|
1617
|
-
phoneNumber: string;
|
|
1618
|
-
lastCalledAt: string | Date | null;
|
|
1616
|
+
updatedAt: string | Date;
|
|
1619
1617
|
callCount: number;
|
|
1618
|
+
lastCalledAt: string | Date | null;
|
|
1619
|
+
cooldownUntil: string | Date | null;
|
|
1620
|
+
blacklistReason: string | null;
|
|
1620
1621
|
lastCallNotes: string | null;
|
|
1621
1622
|
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;
|
|
1629
1626
|
firstName: string;
|
|
1630
1627
|
lastName: string;
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
name: string;
|
|
1635
|
-
} | null | undefined;
|
|
1628
|
+
email: string;
|
|
1629
|
+
createdAt: string | Date;
|
|
1630
|
+
updatedAt: string | Date;
|
|
1636
1631
|
phoneNumbers?: {
|
|
1637
1632
|
id: string;
|
|
1638
1633
|
phoneNumber: string;
|
|
1639
1634
|
description?: string | null | undefined;
|
|
1640
1635
|
isPrimary?: boolean | undefined;
|
|
1641
1636
|
}[] | 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;
|
|
@@ -1655,32 +1655,32 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1655
1655
|
limit: number;
|
|
1656
1656
|
items: {
|
|
1657
1657
|
id: string;
|
|
1658
|
+
phoneNumber: string;
|
|
1659
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1660
|
+
agentId: string;
|
|
1658
1661
|
name: string;
|
|
1659
|
-
updatedAt: string;
|
|
1660
1662
|
createdAt: string;
|
|
1661
|
-
|
|
1662
|
-
blacklistReason: string | null;
|
|
1663
|
-
agentId: string;
|
|
1664
|
-
phoneNumber: string;
|
|
1665
|
-
lastCalledAt: string | null;
|
|
1663
|
+
updatedAt: string;
|
|
1666
1664
|
callCount: number;
|
|
1665
|
+
lastCalledAt: string | null;
|
|
1666
|
+
cooldownUntil: string | null;
|
|
1667
|
+
blacklistReason: string | null;
|
|
1667
1668
|
lastCallNotes: string | null;
|
|
1668
1669
|
existsInLeadsTable: boolean;
|
|
1669
|
-
cooldownUntil: string | null;
|
|
1670
1670
|
originalLeadId: string | null;
|
|
1671
1671
|
agent?: {
|
|
1672
1672
|
id: string;
|
|
1673
|
-
updatedAt: string;
|
|
1674
|
-
createdAt: string;
|
|
1675
|
-
email: string;
|
|
1676
1673
|
firstName: string;
|
|
1677
1674
|
lastName: string;
|
|
1675
|
+
email: string;
|
|
1678
1676
|
phoneNumbers: {
|
|
1679
1677
|
id: string;
|
|
1680
1678
|
phoneNumber: string;
|
|
1681
1679
|
isPrimary: boolean;
|
|
1682
1680
|
description?: string | null | undefined;
|
|
1683
1681
|
}[];
|
|
1682
|
+
createdAt: string;
|
|
1683
|
+
updatedAt: string;
|
|
1684
1684
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1685
1685
|
office?: {
|
|
1686
1686
|
id: string;
|
|
@@ -1701,37 +1701,37 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1701
1701
|
limit: number;
|
|
1702
1702
|
items: {
|
|
1703
1703
|
id: string;
|
|
1704
|
+
phoneNumber: string;
|
|
1705
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1706
|
+
agentId: string;
|
|
1704
1707
|
name: string;
|
|
1705
|
-
updatedAt: string | Date;
|
|
1706
1708
|
createdAt: string | Date;
|
|
1707
|
-
|
|
1708
|
-
blacklistReason: string | null;
|
|
1709
|
-
agentId: string;
|
|
1710
|
-
phoneNumber: string;
|
|
1711
|
-
lastCalledAt: string | Date | null;
|
|
1709
|
+
updatedAt: string | Date;
|
|
1712
1710
|
callCount: number;
|
|
1711
|
+
lastCalledAt: string | Date | null;
|
|
1712
|
+
cooldownUntil: string | Date | null;
|
|
1713
|
+
blacklistReason: string | null;
|
|
1713
1714
|
lastCallNotes: string | null;
|
|
1714
1715
|
existsInLeadsTable: boolean;
|
|
1715
|
-
cooldownUntil: string | Date | null;
|
|
1716
1716
|
originalLeadId: string | null;
|
|
1717
1717
|
agent?: {
|
|
1718
1718
|
id: string;
|
|
1719
|
-
updatedAt: string | Date;
|
|
1720
|
-
createdAt: string | Date;
|
|
1721
|
-
email: string;
|
|
1722
1719
|
firstName: string;
|
|
1723
1720
|
lastName: string;
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
name: string;
|
|
1728
|
-
} | null | undefined;
|
|
1721
|
+
email: string;
|
|
1722
|
+
createdAt: string | Date;
|
|
1723
|
+
updatedAt: string | Date;
|
|
1729
1724
|
phoneNumbers?: {
|
|
1730
1725
|
id: string;
|
|
1731
1726
|
phoneNumber: string;
|
|
1732
1727
|
description?: string | null | undefined;
|
|
1733
1728
|
isPrimary?: boolean | undefined;
|
|
1734
1729
|
}[] | undefined;
|
|
1730
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1731
|
+
office?: {
|
|
1732
|
+
id: string;
|
|
1733
|
+
name: string;
|
|
1734
|
+
} | null | undefined;
|
|
1735
1735
|
canImpersonateUsers?: {
|
|
1736
1736
|
id: string;
|
|
1737
1737
|
firstName: string;
|
|
@@ -1897,31 +1897,31 @@ export declare const ownResearchContract: {
|
|
|
1897
1897
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "lastCalledAt", "callCount", "name"]>>;
|
|
1898
1898
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
1899
1899
|
}, "strip", z.ZodTypeAny, {
|
|
1900
|
-
page: number;
|
|
1901
1900
|
limit: number;
|
|
1902
|
-
|
|
1903
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1904
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
1905
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1901
|
+
page: number;
|
|
1906
1902
|
phoneNumber?: string | undefined;
|
|
1903
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1904
|
+
name?: string | undefined;
|
|
1907
1905
|
lastCalledAt?: {
|
|
1908
1906
|
from?: string | null | undefined;
|
|
1909
1907
|
to?: string | null | undefined;
|
|
1910
1908
|
} | undefined;
|
|
1911
1909
|
minTotalCalls?: number | undefined;
|
|
1912
|
-
|
|
1913
|
-
name?: string | undefined;
|
|
1914
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | undefined;
|
|
1915
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
1910
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1916
1911
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1917
|
-
|
|
1918
|
-
limit?: number | undefined;
|
|
1912
|
+
}, {
|
|
1919
1913
|
phoneNumber?: string | undefined;
|
|
1914
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1915
|
+
name?: string | undefined;
|
|
1920
1916
|
lastCalledAt?: {
|
|
1921
1917
|
from?: string | null | undefined;
|
|
1922
1918
|
to?: string | null | undefined;
|
|
1923
1919
|
} | undefined;
|
|
1920
|
+
limit?: number | undefined;
|
|
1921
|
+
page?: number | undefined;
|
|
1924
1922
|
minTotalCalls?: number | undefined;
|
|
1923
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1924
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1925
1925
|
}>;
|
|
1926
1926
|
metadata: {
|
|
1927
1927
|
tags: string[];
|
|
@@ -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;
|
|
2089
2086
|
firstName: string;
|
|
2090
2087
|
lastName: string;
|
|
2088
|
+
email: string;
|
|
2091
2089
|
phoneNumbers: {
|
|
2092
2090
|
id: string;
|
|
2093
2091
|
phoneNumber: string;
|
|
2094
2092
|
isPrimary: boolean;
|
|
2095
2093
|
description?: string | null | undefined;
|
|
2096
2094
|
}[];
|
|
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;
|
|
2112
2109
|
firstName: string;
|
|
2113
2110
|
lastName: string;
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
name: string;
|
|
2118
|
-
} | null | undefined;
|
|
2111
|
+
email: string;
|
|
2112
|
+
createdAt: string | Date;
|
|
2113
|
+
updatedAt: string | Date;
|
|
2119
2114
|
phoneNumbers?: {
|
|
2120
2115
|
id: string;
|
|
2121
2116
|
phoneNumber: string;
|
|
2122
2117
|
description?: string | null | undefined;
|
|
2123
2118
|
isPrimary?: boolean | undefined;
|
|
2124
2119
|
}[] | 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
|
+
phoneNumber: string;
|
|
2146
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2147
|
+
agentId: string;
|
|
2145
2148
|
name: string;
|
|
2146
|
-
updatedAt: string;
|
|
2147
2149
|
createdAt: string;
|
|
2148
|
-
|
|
2149
|
-
blacklistReason: string | null;
|
|
2150
|
-
agentId: string;
|
|
2151
|
-
phoneNumber: string;
|
|
2152
|
-
lastCalledAt: string | null;
|
|
2150
|
+
updatedAt: string;
|
|
2153
2151
|
callCount: number;
|
|
2152
|
+
lastCalledAt: string | null;
|
|
2153
|
+
cooldownUntil: string | null;
|
|
2154
|
+
blacklistReason: string | null;
|
|
2154
2155
|
lastCallNotes: string | null;
|
|
2155
2156
|
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;
|
|
2163
2160
|
firstName: string;
|
|
2164
2161
|
lastName: string;
|
|
2162
|
+
email: string;
|
|
2165
2163
|
phoneNumbers: {
|
|
2166
2164
|
id: string;
|
|
2167
2165
|
phoneNumber: string;
|
|
2168
2166
|
isPrimary: boolean;
|
|
2169
2167
|
description?: string | null | undefined;
|
|
2170
2168
|
}[];
|
|
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
|
+
phoneNumber: string;
|
|
2185
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2186
|
+
agentId: string;
|
|
2184
2187
|
name: string;
|
|
2185
|
-
updatedAt: string | Date;
|
|
2186
2188
|
createdAt: string | Date;
|
|
2187
|
-
|
|
2188
|
-
blacklistReason: string | null;
|
|
2189
|
-
agentId: string;
|
|
2190
|
-
phoneNumber: string;
|
|
2191
|
-
lastCalledAt: string | Date | null;
|
|
2189
|
+
updatedAt: string | Date;
|
|
2192
2190
|
callCount: number;
|
|
2191
|
+
lastCalledAt: string | Date | null;
|
|
2192
|
+
cooldownUntil: string | Date | null;
|
|
2193
|
+
blacklistReason: string | null;
|
|
2193
2194
|
lastCallNotes: string | null;
|
|
2194
2195
|
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;
|
|
2202
2199
|
firstName: string;
|
|
2203
2200
|
lastName: string;
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
name: string;
|
|
2208
|
-
} | null | undefined;
|
|
2201
|
+
email: string;
|
|
2202
|
+
createdAt: string | Date;
|
|
2203
|
+
updatedAt: string | Date;
|
|
2209
2204
|
phoneNumbers?: {
|
|
2210
2205
|
id: string;
|
|
2211
2206
|
phoneNumber: string;
|
|
2212
2207
|
description?: string | null | undefined;
|
|
2213
2208
|
isPrimary?: boolean | undefined;
|
|
2214
2209
|
}[] | 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;
|
|
@@ -2228,32 +2228,32 @@ export declare const ownResearchContract: {
|
|
|
2228
2228
|
limit: number;
|
|
2229
2229
|
items: {
|
|
2230
2230
|
id: string;
|
|
2231
|
+
phoneNumber: string;
|
|
2232
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2233
|
+
agentId: string;
|
|
2231
2234
|
name: string;
|
|
2232
|
-
updatedAt: string;
|
|
2233
2235
|
createdAt: string;
|
|
2234
|
-
|
|
2235
|
-
blacklistReason: string | null;
|
|
2236
|
-
agentId: string;
|
|
2237
|
-
phoneNumber: string;
|
|
2238
|
-
lastCalledAt: string | null;
|
|
2236
|
+
updatedAt: string;
|
|
2239
2237
|
callCount: number;
|
|
2238
|
+
lastCalledAt: string | null;
|
|
2239
|
+
cooldownUntil: string | null;
|
|
2240
|
+
blacklistReason: string | null;
|
|
2240
2241
|
lastCallNotes: string | null;
|
|
2241
2242
|
existsInLeadsTable: boolean;
|
|
2242
|
-
cooldownUntil: string | null;
|
|
2243
2243
|
originalLeadId: string | null;
|
|
2244
2244
|
agent?: {
|
|
2245
2245
|
id: string;
|
|
2246
|
-
updatedAt: string;
|
|
2247
|
-
createdAt: string;
|
|
2248
|
-
email: string;
|
|
2249
2246
|
firstName: string;
|
|
2250
2247
|
lastName: string;
|
|
2248
|
+
email: string;
|
|
2251
2249
|
phoneNumbers: {
|
|
2252
2250
|
id: string;
|
|
2253
2251
|
phoneNumber: string;
|
|
2254
2252
|
isPrimary: boolean;
|
|
2255
2253
|
description?: string | null | undefined;
|
|
2256
2254
|
}[];
|
|
2255
|
+
createdAt: string;
|
|
2256
|
+
updatedAt: string;
|
|
2257
2257
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2258
2258
|
office?: {
|
|
2259
2259
|
id: string;
|
|
@@ -2274,37 +2274,37 @@ export declare const ownResearchContract: {
|
|
|
2274
2274
|
limit: number;
|
|
2275
2275
|
items: {
|
|
2276
2276
|
id: string;
|
|
2277
|
+
phoneNumber: string;
|
|
2278
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2279
|
+
agentId: string;
|
|
2277
2280
|
name: string;
|
|
2278
|
-
updatedAt: string | Date;
|
|
2279
2281
|
createdAt: string | Date;
|
|
2280
|
-
|
|
2281
|
-
blacklistReason: string | null;
|
|
2282
|
-
agentId: string;
|
|
2283
|
-
phoneNumber: string;
|
|
2284
|
-
lastCalledAt: string | Date | null;
|
|
2282
|
+
updatedAt: string | Date;
|
|
2285
2283
|
callCount: number;
|
|
2284
|
+
lastCalledAt: string | Date | null;
|
|
2285
|
+
cooldownUntil: string | Date | null;
|
|
2286
|
+
blacklistReason: string | null;
|
|
2286
2287
|
lastCallNotes: string | null;
|
|
2287
2288
|
existsInLeadsTable: boolean;
|
|
2288
|
-
cooldownUntil: string | Date | null;
|
|
2289
2289
|
originalLeadId: string | null;
|
|
2290
2290
|
agent?: {
|
|
2291
2291
|
id: string;
|
|
2292
|
-
updatedAt: string | Date;
|
|
2293
|
-
createdAt: string | Date;
|
|
2294
|
-
email: string;
|
|
2295
2292
|
firstName: string;
|
|
2296
2293
|
lastName: string;
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
name: string;
|
|
2301
|
-
} | null | undefined;
|
|
2294
|
+
email: string;
|
|
2295
|
+
createdAt: string | Date;
|
|
2296
|
+
updatedAt: string | Date;
|
|
2302
2297
|
phoneNumbers?: {
|
|
2303
2298
|
id: string;
|
|
2304
2299
|
phoneNumber: string;
|
|
2305
2300
|
description?: string | null | undefined;
|
|
2306
2301
|
isPrimary?: boolean | undefined;
|
|
2307
2302
|
}[] | undefined;
|
|
2303
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2304
|
+
office?: {
|
|
2305
|
+
id: string;
|
|
2306
|
+
name: string;
|
|
2307
|
+
} | null | undefined;
|
|
2308
2308
|
canImpersonateUsers?: {
|
|
2309
2309
|
id: string;
|
|
2310
2310
|
firstName: string;
|
|
@@ -2445,15 +2445,15 @@ export declare const ownResearchContract: {
|
|
|
2445
2445
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
2446
2446
|
}, "strip", z.ZodTypeAny, {
|
|
2447
2447
|
id: string;
|
|
2448
|
-
name: string;
|
|
2449
|
-
status: string;
|
|
2450
2448
|
phoneNumber: string;
|
|
2449
|
+
status: string;
|
|
2450
|
+
name: string;
|
|
2451
2451
|
cooldownUntil: string | null;
|
|
2452
2452
|
}, {
|
|
2453
2453
|
id: string;
|
|
2454
|
-
name: string;
|
|
2455
|
-
status: string;
|
|
2456
2454
|
phoneNumber: string;
|
|
2455
|
+
status: string;
|
|
2456
|
+
name: 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;
|
|
2514
2511
|
firstName: string;
|
|
2515
2512
|
lastName: string;
|
|
2513
|
+
email: string;
|
|
2516
2514
|
phoneNumbers: {
|
|
2517
2515
|
id: string;
|
|
2518
2516
|
phoneNumber: string;
|
|
2519
2517
|
isPrimary: boolean;
|
|
2520
2518
|
description?: string | null | undefined;
|
|
2521
2519
|
}[];
|
|
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;
|
|
2537
2534
|
firstName: string;
|
|
2538
2535
|
lastName: string;
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
name: string;
|
|
2543
|
-
} | null | undefined;
|
|
2536
|
+
email: string;
|
|
2537
|
+
createdAt: string | Date;
|
|
2538
|
+
updatedAt: string | Date;
|
|
2544
2539
|
phoneNumbers?: {
|
|
2545
2540
|
id: string;
|
|
2546
2541
|
phoneNumber: string;
|
|
2547
2542
|
description?: string | null | undefined;
|
|
2548
2543
|
isPrimary?: boolean | undefined;
|
|
2549
2544
|
}[] | 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
|
+
phoneNumber: string;
|
|
2571
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2572
|
+
agentId: string;
|
|
2570
2573
|
name: string;
|
|
2571
|
-
updatedAt: string;
|
|
2572
2574
|
createdAt: string;
|
|
2573
|
-
|
|
2574
|
-
blacklistReason: string | null;
|
|
2575
|
-
agentId: string;
|
|
2576
|
-
phoneNumber: string;
|
|
2577
|
-
lastCalledAt: string | null;
|
|
2575
|
+
updatedAt: string;
|
|
2578
2576
|
callCount: number;
|
|
2577
|
+
lastCalledAt: string | null;
|
|
2578
|
+
cooldownUntil: string | null;
|
|
2579
|
+
blacklistReason: string | null;
|
|
2579
2580
|
lastCallNotes: string | null;
|
|
2580
2581
|
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;
|
|
2588
2585
|
firstName: string;
|
|
2589
2586
|
lastName: string;
|
|
2587
|
+
email: string;
|
|
2590
2588
|
phoneNumbers: {
|
|
2591
2589
|
id: string;
|
|
2592
2590
|
phoneNumber: string;
|
|
2593
2591
|
isPrimary: boolean;
|
|
2594
2592
|
description?: string | null | undefined;
|
|
2595
2593
|
}[];
|
|
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
|
+
phoneNumber: string;
|
|
2610
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2611
|
+
agentId: string;
|
|
2609
2612
|
name: string;
|
|
2610
|
-
updatedAt: string | Date;
|
|
2611
2613
|
createdAt: string | Date;
|
|
2612
|
-
|
|
2613
|
-
blacklistReason: string | null;
|
|
2614
|
-
agentId: string;
|
|
2615
|
-
phoneNumber: string;
|
|
2616
|
-
lastCalledAt: string | Date | null;
|
|
2614
|
+
updatedAt: string | Date;
|
|
2617
2615
|
callCount: number;
|
|
2616
|
+
lastCalledAt: string | Date | null;
|
|
2617
|
+
cooldownUntil: string | Date | null;
|
|
2618
|
+
blacklistReason: string | null;
|
|
2618
2619
|
lastCallNotes: string | null;
|
|
2619
2620
|
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;
|
|
2627
2624
|
firstName: string;
|
|
2628
2625
|
lastName: string;
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
name: string;
|
|
2633
|
-
} | null | undefined;
|
|
2626
|
+
email: string;
|
|
2627
|
+
createdAt: string | Date;
|
|
2628
|
+
updatedAt: string | Date;
|
|
2634
2629
|
phoneNumbers?: {
|
|
2635
2630
|
id: string;
|
|
2636
2631
|
phoneNumber: string;
|
|
2637
2632
|
description?: string | null | undefined;
|
|
2638
2633
|
isPrimary?: boolean | undefined;
|
|
2639
2634
|
}[] | 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;
|
|
@@ -2653,39 +2653,39 @@ export declare const ownResearchContract: {
|
|
|
2653
2653
|
isOnCooldown: boolean;
|
|
2654
2654
|
lead?: {
|
|
2655
2655
|
id: string;
|
|
2656
|
-
name: string;
|
|
2657
|
-
status: string;
|
|
2658
2656
|
phoneNumber: string;
|
|
2657
|
+
status: string;
|
|
2658
|
+
name: string;
|
|
2659
2659
|
cooldownUntil: string | null;
|
|
2660
2660
|
} | null | undefined;
|
|
2661
2661
|
ownResearchLead?: {
|
|
2662
2662
|
id: string;
|
|
2663
|
+
phoneNumber: string;
|
|
2664
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2665
|
+
agentId: string;
|
|
2663
2666
|
name: string;
|
|
2664
|
-
updatedAt: string;
|
|
2665
2667
|
createdAt: string;
|
|
2666
|
-
|
|
2667
|
-
blacklistReason: string | null;
|
|
2668
|
-
agentId: string;
|
|
2669
|
-
phoneNumber: string;
|
|
2670
|
-
lastCalledAt: string | null;
|
|
2668
|
+
updatedAt: string;
|
|
2671
2669
|
callCount: number;
|
|
2670
|
+
lastCalledAt: string | null;
|
|
2671
|
+
cooldownUntil: string | null;
|
|
2672
|
+
blacklistReason: string | null;
|
|
2672
2673
|
lastCallNotes: string | null;
|
|
2673
2674
|
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;
|
|
2681
2678
|
firstName: string;
|
|
2682
2679
|
lastName: string;
|
|
2680
|
+
email: string;
|
|
2683
2681
|
phoneNumbers: {
|
|
2684
2682
|
id: string;
|
|
2685
2683
|
phoneNumber: string;
|
|
2686
2684
|
isPrimary: boolean;
|
|
2687
2685
|
description?: string | null | undefined;
|
|
2688
2686
|
}[];
|
|
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;
|
|
@@ -2705,44 +2705,44 @@ export declare const ownResearchContract: {
|
|
|
2705
2705
|
isOnCooldown: boolean;
|
|
2706
2706
|
lead?: {
|
|
2707
2707
|
id: string;
|
|
2708
|
-
name: string;
|
|
2709
|
-
status: string;
|
|
2710
2708
|
phoneNumber: string;
|
|
2709
|
+
status: string;
|
|
2710
|
+
name: string;
|
|
2711
2711
|
cooldownUntil: string | Date | null;
|
|
2712
2712
|
} | null | undefined;
|
|
2713
2713
|
ownResearchLead?: {
|
|
2714
2714
|
id: string;
|
|
2715
|
+
phoneNumber: string;
|
|
2716
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2717
|
+
agentId: string;
|
|
2715
2718
|
name: string;
|
|
2716
|
-
updatedAt: string | Date;
|
|
2717
2719
|
createdAt: string | Date;
|
|
2718
|
-
|
|
2719
|
-
blacklistReason: string | null;
|
|
2720
|
-
agentId: string;
|
|
2721
|
-
phoneNumber: string;
|
|
2722
|
-
lastCalledAt: string | Date | null;
|
|
2720
|
+
updatedAt: string | Date;
|
|
2723
2721
|
callCount: number;
|
|
2722
|
+
lastCalledAt: string | Date | null;
|
|
2723
|
+
cooldownUntil: string | Date | null;
|
|
2724
|
+
blacklistReason: string | null;
|
|
2724
2725
|
lastCallNotes: string | null;
|
|
2725
2726
|
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;
|
|
2733
2730
|
firstName: string;
|
|
2734
2731
|
lastName: string;
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
name: string;
|
|
2739
|
-
} | null | undefined;
|
|
2732
|
+
email: string;
|
|
2733
|
+
createdAt: string | Date;
|
|
2734
|
+
updatedAt: string | Date;
|
|
2740
2735
|
phoneNumbers?: {
|
|
2741
2736
|
id: string;
|
|
2742
2737
|
phoneNumber: string;
|
|
2743
2738
|
description?: string | null | undefined;
|
|
2744
2739
|
isPrimary?: boolean | undefined;
|
|
2745
2740
|
}[] | 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;
|
|
@@ -2763,11 +2763,11 @@ export declare const ownResearchContract: {
|
|
|
2763
2763
|
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
|
2764
2764
|
name: z.ZodString;
|
|
2765
2765
|
}, "strip", z.ZodTypeAny, {
|
|
2766
|
-
name: string;
|
|
2767
2766
|
phoneNumber: string;
|
|
2768
|
-
}, {
|
|
2769
2767
|
name: string;
|
|
2768
|
+
}, {
|
|
2770
2769
|
phoneNumber: string;
|
|
2770
|
+
name: string;
|
|
2771
2771
|
}>;
|
|
2772
2772
|
path: "/v2/own-research/leads";
|
|
2773
2773
|
responses: {
|
|
@@ -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;
|
|
2930
2927
|
firstName: string;
|
|
2931
2928
|
lastName: string;
|
|
2929
|
+
email: string;
|
|
2932
2930
|
phoneNumbers: {
|
|
2933
2931
|
id: string;
|
|
2934
2932
|
phoneNumber: string;
|
|
2935
2933
|
isPrimary: boolean;
|
|
2936
2934
|
description?: string | null | undefined;
|
|
2937
2935
|
}[];
|
|
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;
|
|
2953
2950
|
firstName: string;
|
|
2954
2951
|
lastName: string;
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
name: string;
|
|
2959
|
-
} | null | undefined;
|
|
2952
|
+
email: string;
|
|
2953
|
+
createdAt: string | Date;
|
|
2954
|
+
updatedAt: string | Date;
|
|
2960
2955
|
phoneNumbers?: {
|
|
2961
2956
|
id: string;
|
|
2962
2957
|
phoneNumber: string;
|
|
2963
2958
|
description?: string | null | undefined;
|
|
2964
2959
|
isPrimary?: boolean | undefined;
|
|
2965
2960
|
}[] | 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
|
+
phoneNumber: string;
|
|
2987
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2988
|
+
agentId: string;
|
|
2986
2989
|
name: string;
|
|
2987
|
-
updatedAt: string;
|
|
2988
2990
|
createdAt: string;
|
|
2989
|
-
|
|
2990
|
-
blacklistReason: string | null;
|
|
2991
|
-
agentId: string;
|
|
2992
|
-
phoneNumber: string;
|
|
2993
|
-
lastCalledAt: string | null;
|
|
2991
|
+
updatedAt: string;
|
|
2994
2992
|
callCount: number;
|
|
2993
|
+
lastCalledAt: string | null;
|
|
2994
|
+
cooldownUntil: string | null;
|
|
2995
|
+
blacklistReason: string | null;
|
|
2995
2996
|
lastCallNotes: string | null;
|
|
2996
2997
|
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;
|
|
3004
3001
|
firstName: string;
|
|
3005
3002
|
lastName: string;
|
|
3003
|
+
email: string;
|
|
3006
3004
|
phoneNumbers: {
|
|
3007
3005
|
id: string;
|
|
3008
3006
|
phoneNumber: string;
|
|
3009
3007
|
isPrimary: boolean;
|
|
3010
3008
|
description?: string | null | undefined;
|
|
3011
3009
|
}[];
|
|
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
|
+
phoneNumber: string;
|
|
3026
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3027
|
+
agentId: string;
|
|
3025
3028
|
name: string;
|
|
3026
|
-
updatedAt: string | Date;
|
|
3027
3029
|
createdAt: string | Date;
|
|
3028
|
-
|
|
3029
|
-
blacklistReason: string | null;
|
|
3030
|
-
agentId: string;
|
|
3031
|
-
phoneNumber: string;
|
|
3032
|
-
lastCalledAt: string | Date | null;
|
|
3030
|
+
updatedAt: string | Date;
|
|
3033
3031
|
callCount: number;
|
|
3032
|
+
lastCalledAt: string | Date | null;
|
|
3033
|
+
cooldownUntil: string | Date | null;
|
|
3034
|
+
blacklistReason: string | null;
|
|
3034
3035
|
lastCallNotes: string | null;
|
|
3035
3036
|
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;
|
|
3043
3040
|
firstName: string;
|
|
3044
3041
|
lastName: string;
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
name: string;
|
|
3049
|
-
} | null | undefined;
|
|
3042
|
+
email: string;
|
|
3043
|
+
createdAt: string | Date;
|
|
3044
|
+
updatedAt: string | Date;
|
|
3050
3045
|
phoneNumbers?: {
|
|
3051
3046
|
id: string;
|
|
3052
3047
|
phoneNumber: string;
|
|
3053
3048
|
description?: string | null | undefined;
|
|
3054
3049
|
isPrimary?: boolean | undefined;
|
|
3055
3050
|
}[] | 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
|
+
phoneNumber: string;
|
|
3067
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3068
|
+
agentId: string;
|
|
3066
3069
|
name: string;
|
|
3067
|
-
updatedAt: string;
|
|
3068
3070
|
createdAt: string;
|
|
3069
|
-
|
|
3070
|
-
blacklistReason: string | null;
|
|
3071
|
-
agentId: string;
|
|
3072
|
-
phoneNumber: string;
|
|
3073
|
-
lastCalledAt: string | null;
|
|
3071
|
+
updatedAt: string;
|
|
3074
3072
|
callCount: number;
|
|
3073
|
+
lastCalledAt: string | null;
|
|
3074
|
+
cooldownUntil: string | null;
|
|
3075
|
+
blacklistReason: string | null;
|
|
3075
3076
|
lastCallNotes: string | null;
|
|
3076
3077
|
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;
|
|
3084
3081
|
firstName: string;
|
|
3085
3082
|
lastName: string;
|
|
3083
|
+
email: string;
|
|
3086
3084
|
phoneNumbers: {
|
|
3087
3085
|
id: string;
|
|
3088
3086
|
phoneNumber: string;
|
|
3089
3087
|
isPrimary: boolean;
|
|
3090
3088
|
description?: string | null | undefined;
|
|
3091
3089
|
}[];
|
|
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
|
+
phoneNumber: string;
|
|
3108
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3109
|
+
agentId: string;
|
|
3107
3110
|
name: string;
|
|
3108
|
-
updatedAt: string | Date;
|
|
3109
3111
|
createdAt: string | Date;
|
|
3110
|
-
|
|
3111
|
-
blacklistReason: string | null;
|
|
3112
|
-
agentId: string;
|
|
3113
|
-
phoneNumber: string;
|
|
3114
|
-
lastCalledAt: string | Date | null;
|
|
3112
|
+
updatedAt: string | Date;
|
|
3115
3113
|
callCount: number;
|
|
3114
|
+
lastCalledAt: string | Date | null;
|
|
3115
|
+
cooldownUntil: string | Date | null;
|
|
3116
|
+
blacklistReason: string | null;
|
|
3116
3117
|
lastCallNotes: string | null;
|
|
3117
3118
|
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;
|
|
3125
3122
|
firstName: string;
|
|
3126
3123
|
lastName: string;
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
name: string;
|
|
3131
|
-
} | null | undefined;
|
|
3124
|
+
email: string;
|
|
3125
|
+
createdAt: string | Date;
|
|
3126
|
+
updatedAt: string | Date;
|
|
3132
3127
|
phoneNumbers?: {
|
|
3133
3128
|
id: string;
|
|
3134
3129
|
phoneNumber: string;
|
|
3135
3130
|
description?: string | null | undefined;
|
|
3136
3131
|
isPrimary?: boolean | undefined;
|
|
3137
3132
|
}[] | 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;
|
|
@@ -3158,17 +3158,17 @@ export declare const ownResearchContract: {
|
|
|
3158
3158
|
notes: z.ZodOptional<z.ZodString>;
|
|
3159
3159
|
callType: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>>;
|
|
3160
3160
|
}, "strip", z.ZodTypeAny, {
|
|
3161
|
+
phoneNumber: string;
|
|
3161
3162
|
name: string;
|
|
3162
3163
|
rating: import("../common/call-rating.schema").CallRating;
|
|
3163
|
-
phoneNumber: string;
|
|
3164
|
-
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3165
3164
|
notes?: string | undefined;
|
|
3165
|
+
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3166
3166
|
}, {
|
|
3167
|
+
phoneNumber: string;
|
|
3167
3168
|
name: string;
|
|
3168
3169
|
rating: import("../common/call-rating.schema").CallRating;
|
|
3169
|
-
phoneNumber: string;
|
|
3170
|
-
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3171
3170
|
notes?: string | undefined;
|
|
3171
|
+
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3172
3172
|
}>;
|
|
3173
3173
|
path: "/v2/own-research/call";
|
|
3174
3174
|
responses: {
|
|
@@ -3280,11 +3280,11 @@ export declare const ownResearchContract: {
|
|
|
3280
3280
|
name: z.ZodString;
|
|
3281
3281
|
phoneNumber: z.ZodString;
|
|
3282
3282
|
}, "strip", z.ZodTypeAny, {
|
|
3283
|
-
name: string;
|
|
3284
3283
|
phoneNumber: string;
|
|
3285
|
-
}, {
|
|
3286
3284
|
name: string;
|
|
3285
|
+
}, {
|
|
3287
3286
|
phoneNumber: string;
|
|
3287
|
+
name: string;
|
|
3288
3288
|
}>>;
|
|
3289
3289
|
agentId: z.ZodNullable<z.ZodString>;
|
|
3290
3290
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -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;
|
|
3342
3339
|
firstName: string;
|
|
3343
3340
|
lastName: string;
|
|
3341
|
+
email: string;
|
|
3344
3342
|
phoneNumbers: {
|
|
3345
3343
|
id: string;
|
|
3346
3344
|
phoneNumber: string;
|
|
3347
3345
|
isPrimary: boolean;
|
|
3348
3346
|
description?: string | null | undefined;
|
|
3349
3347
|
}[];
|
|
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;
|
|
3365
3362
|
firstName: string;
|
|
3366
3363
|
lastName: string;
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
name: string;
|
|
3371
|
-
} | null | undefined;
|
|
3364
|
+
email: string;
|
|
3365
|
+
createdAt: string | Date;
|
|
3366
|
+
updatedAt: string | Date;
|
|
3372
3367
|
phoneNumbers?: {
|
|
3373
3368
|
id: string;
|
|
3374
3369
|
phoneNumber: string;
|
|
3375
3370
|
description?: string | null | undefined;
|
|
3376
3371
|
isPrimary?: boolean | undefined;
|
|
3377
3372
|
}[] | 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,45 +3393,39 @@ export declare const ownResearchContract: {
|
|
|
3393
3393
|
}, "strip", z.ZodTypeAny, {
|
|
3394
3394
|
id: string;
|
|
3395
3395
|
name: string;
|
|
3396
|
-
updatedAt: string;
|
|
3397
3396
|
createdAt: string;
|
|
3397
|
+
updatedAt: string;
|
|
3398
3398
|
}, {
|
|
3399
3399
|
id: string;
|
|
3400
3400
|
name: string;
|
|
3401
|
-
updatedAt: string | Date;
|
|
3402
3401
|
createdAt: string | Date;
|
|
3402
|
+
updatedAt: 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
|
-
updatedAt: string;
|
|
3409
|
-
createdAt: string;
|
|
3410
3408
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3411
|
-
companyId: string | null;
|
|
3412
3409
|
agentId: string | null;
|
|
3410
|
+
createdAt: string;
|
|
3411
|
+
updatedAt: string;
|
|
3413
3412
|
leadId: string;
|
|
3414
3413
|
assignedAt: string;
|
|
3415
3414
|
assignedBy: string | null;
|
|
3416
|
-
|
|
3417
|
-
id: string;
|
|
3418
|
-
name: string;
|
|
3419
|
-
updatedAt: string;
|
|
3420
|
-
createdAt: string;
|
|
3421
|
-
} | null | undefined;
|
|
3415
|
+
companyId: string | null;
|
|
3422
3416
|
agent?: {
|
|
3423
3417
|
id: string;
|
|
3424
|
-
updatedAt: string;
|
|
3425
|
-
createdAt: string;
|
|
3426
|
-
email: string;
|
|
3427
3418
|
firstName: string;
|
|
3428
3419
|
lastName: string;
|
|
3420
|
+
email: string;
|
|
3429
3421
|
phoneNumbers: {
|
|
3430
3422
|
id: string;
|
|
3431
3423
|
phoneNumber: string;
|
|
3432
3424
|
isPrimary: boolean;
|
|
3433
3425
|
description?: string | null | undefined;
|
|
3434
3426
|
}[];
|
|
3427
|
+
createdAt: string;
|
|
3428
|
+
updatedAt: string;
|
|
3435
3429
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3436
3430
|
office?: {
|
|
3437
3431
|
id: string;
|
|
@@ -3444,43 +3438,43 @@ export declare const ownResearchContract: {
|
|
|
3444
3438
|
}[] | undefined;
|
|
3445
3439
|
} | undefined;
|
|
3446
3440
|
lead?: {
|
|
3447
|
-
name: string;
|
|
3448
3441
|
phoneNumber: string;
|
|
3442
|
+
name: string;
|
|
3449
3443
|
} | undefined;
|
|
3444
|
+
company?: {
|
|
3445
|
+
id: string;
|
|
3446
|
+
name: string;
|
|
3447
|
+
createdAt: string;
|
|
3448
|
+
updatedAt: string;
|
|
3449
|
+
} | null | undefined;
|
|
3450
3450
|
}, {
|
|
3451
3451
|
id: string;
|
|
3452
|
-
updatedAt: string | Date;
|
|
3453
|
-
createdAt: string | Date;
|
|
3454
3452
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3455
|
-
companyId: string | null;
|
|
3456
3453
|
agentId: string | null;
|
|
3454
|
+
createdAt: string | Date;
|
|
3455
|
+
updatedAt: string | Date;
|
|
3457
3456
|
leadId: string;
|
|
3458
3457
|
assignedAt: string | Date;
|
|
3459
3458
|
assignedBy: string | null;
|
|
3460
|
-
|
|
3461
|
-
id: string;
|
|
3462
|
-
name: string;
|
|
3463
|
-
updatedAt: string | Date;
|
|
3464
|
-
createdAt: string | Date;
|
|
3465
|
-
} | null | undefined;
|
|
3459
|
+
companyId: string | null;
|
|
3466
3460
|
agent?: {
|
|
3467
3461
|
id: string;
|
|
3468
|
-
updatedAt: string | Date;
|
|
3469
|
-
createdAt: string | Date;
|
|
3470
|
-
email: string;
|
|
3471
3462
|
firstName: string;
|
|
3472
3463
|
lastName: string;
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
name: string;
|
|
3477
|
-
} | null | undefined;
|
|
3464
|
+
email: string;
|
|
3465
|
+
createdAt: string | Date;
|
|
3466
|
+
updatedAt: string | Date;
|
|
3478
3467
|
phoneNumbers?: {
|
|
3479
3468
|
id: string;
|
|
3480
3469
|
phoneNumber: string;
|
|
3481
3470
|
description?: string | null | undefined;
|
|
3482
3471
|
isPrimary?: boolean | undefined;
|
|
3483
3472
|
}[] | undefined;
|
|
3473
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3474
|
+
office?: {
|
|
3475
|
+
id: string;
|
|
3476
|
+
name: string;
|
|
3477
|
+
} | null | undefined;
|
|
3484
3478
|
canImpersonateUsers?: {
|
|
3485
3479
|
id: string;
|
|
3486
3480
|
firstName: string;
|
|
@@ -3488,9 +3482,15 @@ export declare const ownResearchContract: {
|
|
|
3488
3482
|
}[] | undefined;
|
|
3489
3483
|
} | undefined;
|
|
3490
3484
|
lead?: {
|
|
3491
|
-
name: string;
|
|
3492
3485
|
phoneNumber: string;
|
|
3486
|
+
name: string;
|
|
3493
3487
|
} | undefined;
|
|
3488
|
+
company?: {
|
|
3489
|
+
id: string;
|
|
3490
|
+
name: string;
|
|
3491
|
+
createdAt: string | Date;
|
|
3492
|
+
updatedAt: string | Date;
|
|
3493
|
+
} | null | 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;
|
|
3550
3547
|
firstName: string;
|
|
3551
3548
|
lastName: string;
|
|
3549
|
+
email: string;
|
|
3552
3550
|
phoneNumbers: {
|
|
3553
3551
|
id: string;
|
|
3554
3552
|
phoneNumber: string;
|
|
3555
3553
|
isPrimary: boolean;
|
|
3556
3554
|
description?: string | null | undefined;
|
|
3557
3555
|
}[];
|
|
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;
|
|
3573
3570
|
firstName: string;
|
|
3574
3571
|
lastName: string;
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
name: string;
|
|
3579
|
-
} | null | undefined;
|
|
3572
|
+
email: string;
|
|
3573
|
+
createdAt: string | Date;
|
|
3574
|
+
updatedAt: string | Date;
|
|
3580
3575
|
phoneNumbers?: {
|
|
3581
3576
|
id: string;
|
|
3582
3577
|
phoneNumber: string;
|
|
3583
3578
|
description?: string | null | undefined;
|
|
3584
3579
|
isPrimary?: boolean | undefined;
|
|
3585
3580
|
}[] | 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
|
+
phoneNumber: string;
|
|
3607
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3608
|
+
agentId: string;
|
|
3606
3609
|
name: string;
|
|
3607
|
-
updatedAt: string;
|
|
3608
3610
|
createdAt: string;
|
|
3609
|
-
|
|
3610
|
-
blacklistReason: string | null;
|
|
3611
|
-
agentId: string;
|
|
3612
|
-
phoneNumber: string;
|
|
3613
|
-
lastCalledAt: string | null;
|
|
3611
|
+
updatedAt: string;
|
|
3614
3612
|
callCount: number;
|
|
3613
|
+
lastCalledAt: string | null;
|
|
3614
|
+
cooldownUntil: string | null;
|
|
3615
|
+
blacklistReason: string | null;
|
|
3615
3616
|
lastCallNotes: string | null;
|
|
3616
3617
|
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;
|
|
3624
3621
|
firstName: string;
|
|
3625
3622
|
lastName: string;
|
|
3623
|
+
email: string;
|
|
3626
3624
|
phoneNumbers: {
|
|
3627
3625
|
id: string;
|
|
3628
3626
|
phoneNumber: string;
|
|
3629
3627
|
isPrimary: boolean;
|
|
3630
3628
|
description?: string | null | undefined;
|
|
3631
3629
|
}[];
|
|
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
|
+
phoneNumber: string;
|
|
3646
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3647
|
+
agentId: string;
|
|
3645
3648
|
name: string;
|
|
3646
|
-
updatedAt: string | Date;
|
|
3647
3649
|
createdAt: string | Date;
|
|
3648
|
-
|
|
3649
|
-
blacklistReason: string | null;
|
|
3650
|
-
agentId: string;
|
|
3651
|
-
phoneNumber: string;
|
|
3652
|
-
lastCalledAt: string | Date | null;
|
|
3650
|
+
updatedAt: string | Date;
|
|
3653
3651
|
callCount: number;
|
|
3652
|
+
lastCalledAt: string | Date | null;
|
|
3653
|
+
cooldownUntil: string | Date | null;
|
|
3654
|
+
blacklistReason: string | null;
|
|
3654
3655
|
lastCallNotes: string | null;
|
|
3655
3656
|
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;
|
|
3663
3660
|
firstName: string;
|
|
3664
3661
|
lastName: string;
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
name: string;
|
|
3669
|
-
} | null | undefined;
|
|
3662
|
+
email: string;
|
|
3663
|
+
createdAt: string | Date;
|
|
3664
|
+
updatedAt: string | Date;
|
|
3670
3665
|
phoneNumbers?: {
|
|
3671
3666
|
id: string;
|
|
3672
3667
|
phoneNumber: string;
|
|
3673
3668
|
description?: string | null | undefined;
|
|
3674
3669
|
isPrimary?: boolean | undefined;
|
|
3675
3670
|
}[] | 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
|
+
phoneNumber: string;
|
|
3687
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3688
|
+
agentId: string;
|
|
3686
3689
|
name: string;
|
|
3687
|
-
updatedAt: string;
|
|
3688
3690
|
createdAt: string;
|
|
3689
|
-
|
|
3690
|
-
blacklistReason: string | null;
|
|
3691
|
-
agentId: string;
|
|
3692
|
-
phoneNumber: string;
|
|
3693
|
-
lastCalledAt: string | null;
|
|
3691
|
+
updatedAt: string;
|
|
3694
3692
|
callCount: number;
|
|
3693
|
+
lastCalledAt: string | null;
|
|
3694
|
+
cooldownUntil: string | null;
|
|
3695
|
+
blacklistReason: string | null;
|
|
3695
3696
|
lastCallNotes: string | null;
|
|
3696
3697
|
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;
|
|
3704
3701
|
firstName: string;
|
|
3705
3702
|
lastName: string;
|
|
3703
|
+
email: string;
|
|
3706
3704
|
phoneNumbers: {
|
|
3707
3705
|
id: string;
|
|
3708
3706
|
phoneNumber: string;
|
|
3709
3707
|
isPrimary: boolean;
|
|
3710
3708
|
description?: string | null | undefined;
|
|
3711
3709
|
}[];
|
|
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,33 +3723,27 @@ export declare const ownResearchContract: {
|
|
|
3723
3723
|
};
|
|
3724
3724
|
assignment?: {
|
|
3725
3725
|
id: string;
|
|
3726
|
-
updatedAt: string;
|
|
3727
|
-
createdAt: string;
|
|
3728
3726
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3729
|
-
companyId: string | null;
|
|
3730
3727
|
agentId: string | null;
|
|
3728
|
+
createdAt: string;
|
|
3729
|
+
updatedAt: string;
|
|
3731
3730
|
leadId: string;
|
|
3732
3731
|
assignedAt: string;
|
|
3733
3732
|
assignedBy: string | null;
|
|
3734
|
-
|
|
3735
|
-
id: string;
|
|
3736
|
-
name: string;
|
|
3737
|
-
updatedAt: string;
|
|
3738
|
-
createdAt: string;
|
|
3739
|
-
} | null | undefined;
|
|
3733
|
+
companyId: string | null;
|
|
3740
3734
|
agent?: {
|
|
3741
3735
|
id: string;
|
|
3742
|
-
updatedAt: string;
|
|
3743
|
-
createdAt: string;
|
|
3744
|
-
email: string;
|
|
3745
3736
|
firstName: string;
|
|
3746
3737
|
lastName: string;
|
|
3738
|
+
email: string;
|
|
3747
3739
|
phoneNumbers: {
|
|
3748
3740
|
id: string;
|
|
3749
3741
|
phoneNumber: string;
|
|
3750
3742
|
isPrimary: boolean;
|
|
3751
3743
|
description?: string | null | undefined;
|
|
3752
3744
|
}[];
|
|
3745
|
+
createdAt: string;
|
|
3746
|
+
updatedAt: string;
|
|
3753
3747
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3754
3748
|
office?: {
|
|
3755
3749
|
id: string;
|
|
@@ -3762,44 +3756,50 @@ export declare const ownResearchContract: {
|
|
|
3762
3756
|
}[] | undefined;
|
|
3763
3757
|
} | undefined;
|
|
3764
3758
|
lead?: {
|
|
3765
|
-
name: string;
|
|
3766
3759
|
phoneNumber: string;
|
|
3760
|
+
name: string;
|
|
3767
3761
|
} | undefined;
|
|
3762
|
+
company?: {
|
|
3763
|
+
id: string;
|
|
3764
|
+
name: string;
|
|
3765
|
+
createdAt: string;
|
|
3766
|
+
updatedAt: string;
|
|
3767
|
+
} | null | undefined;
|
|
3768
3768
|
} | null | undefined;
|
|
3769
3769
|
}, {
|
|
3770
3770
|
ownResearchLead: {
|
|
3771
3771
|
id: string;
|
|
3772
|
+
phoneNumber: string;
|
|
3773
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3774
|
+
agentId: string;
|
|
3772
3775
|
name: string;
|
|
3773
|
-
updatedAt: string | Date;
|
|
3774
3776
|
createdAt: string | Date;
|
|
3775
|
-
|
|
3776
|
-
blacklistReason: string | null;
|
|
3777
|
-
agentId: string;
|
|
3778
|
-
phoneNumber: string;
|
|
3779
|
-
lastCalledAt: string | Date | null;
|
|
3777
|
+
updatedAt: string | Date;
|
|
3780
3778
|
callCount: number;
|
|
3779
|
+
lastCalledAt: string | Date | null;
|
|
3780
|
+
cooldownUntil: string | Date | null;
|
|
3781
|
+
blacklistReason: string | null;
|
|
3781
3782
|
lastCallNotes: string | null;
|
|
3782
3783
|
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;
|
|
3790
3787
|
firstName: string;
|
|
3791
3788
|
lastName: string;
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
name: string;
|
|
3796
|
-
} | null | undefined;
|
|
3789
|
+
email: string;
|
|
3790
|
+
createdAt: string | Date;
|
|
3791
|
+
updatedAt: string | Date;
|
|
3797
3792
|
phoneNumbers?: {
|
|
3798
3793
|
id: string;
|
|
3799
3794
|
phoneNumber: string;
|
|
3800
3795
|
description?: string | null | undefined;
|
|
3801
3796
|
isPrimary?: boolean | undefined;
|
|
3802
3797
|
}[] | 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,38 +3809,32 @@ export declare const ownResearchContract: {
|
|
|
3809
3809
|
};
|
|
3810
3810
|
assignment?: {
|
|
3811
3811
|
id: string;
|
|
3812
|
-
updatedAt: string | Date;
|
|
3813
|
-
createdAt: string | Date;
|
|
3814
3812
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3815
|
-
companyId: string | null;
|
|
3816
3813
|
agentId: string | null;
|
|
3814
|
+
createdAt: string | Date;
|
|
3815
|
+
updatedAt: string | Date;
|
|
3817
3816
|
leadId: string;
|
|
3818
3817
|
assignedAt: string | Date;
|
|
3819
3818
|
assignedBy: string | null;
|
|
3820
|
-
|
|
3821
|
-
id: string;
|
|
3822
|
-
name: string;
|
|
3823
|
-
updatedAt: string | Date;
|
|
3824
|
-
createdAt: string | Date;
|
|
3825
|
-
} | null | undefined;
|
|
3819
|
+
companyId: string | null;
|
|
3826
3820
|
agent?: {
|
|
3827
3821
|
id: string;
|
|
3828
|
-
updatedAt: string | Date;
|
|
3829
|
-
createdAt: string | Date;
|
|
3830
|
-
email: string;
|
|
3831
3822
|
firstName: string;
|
|
3832
3823
|
lastName: string;
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
name: string;
|
|
3837
|
-
} | null | undefined;
|
|
3824
|
+
email: string;
|
|
3825
|
+
createdAt: string | Date;
|
|
3826
|
+
updatedAt: string | Date;
|
|
3838
3827
|
phoneNumbers?: {
|
|
3839
3828
|
id: string;
|
|
3840
3829
|
phoneNumber: string;
|
|
3841
3830
|
description?: string | null | undefined;
|
|
3842
3831
|
isPrimary?: boolean | undefined;
|
|
3843
3832
|
}[] | undefined;
|
|
3833
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3834
|
+
office?: {
|
|
3835
|
+
id: string;
|
|
3836
|
+
name: string;
|
|
3837
|
+
} | null | undefined;
|
|
3844
3838
|
canImpersonateUsers?: {
|
|
3845
3839
|
id: string;
|
|
3846
3840
|
firstName: string;
|
|
@@ -3848,9 +3842,15 @@ export declare const ownResearchContract: {
|
|
|
3848
3842
|
}[] | undefined;
|
|
3849
3843
|
} | undefined;
|
|
3850
3844
|
lead?: {
|
|
3851
|
-
name: string;
|
|
3852
3845
|
phoneNumber: string;
|
|
3846
|
+
name: string;
|
|
3853
3847
|
} | undefined;
|
|
3848
|
+
company?: {
|
|
3849
|
+
id: string;
|
|
3850
|
+
name: string;
|
|
3851
|
+
createdAt: string | Date;
|
|
3852
|
+
updatedAt: string | Date;
|
|
3853
|
+
} | null | undefined;
|
|
3854
3854
|
} | null | undefined;
|
|
3855
3855
|
}>;
|
|
3856
3856
|
};
|