@dakkitor/api-contracts 1.1.140 → 1.1.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/first-agent.abilities.json +65 -16
- package/dist/actives/actives.contract.d.ts +5165 -3938
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +14 -2
- package/dist/bookings/bookings.contract.d.ts +9663 -7583
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +30 -11
- package/dist/call-history/call-history.contract.d.ts +688 -717
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.js +2 -12
- package/dist/dashboards/dashboard-widgets.contract.d.ts +86 -86
- package/dist/leads/leads.contract.d.ts +116 -122
- package/dist/leads/leads.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.js +0 -4
- package/dist/own-research/own-research.contract.d.ts +700 -700
- package/package.json +1 -1
|
@@ -45,50 +45,46 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
45
45
|
firstName: z.ZodString;
|
|
46
46
|
lastName: z.ZodString;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
lastName: string;
|
|
49
|
-
firstName: string;
|
|
50
48
|
id: string;
|
|
51
|
-
}, {
|
|
52
|
-
lastName: string;
|
|
53
49
|
firstName: string;
|
|
50
|
+
lastName: string;
|
|
51
|
+
}, {
|
|
54
52
|
id: string;
|
|
53
|
+
firstName: string;
|
|
54
|
+
lastName: string;
|
|
55
55
|
}>, "many">>;
|
|
56
56
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
57
57
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
|
|
59
|
+
id: string;
|
|
60
60
|
firstName: string;
|
|
61
|
+
lastName: string;
|
|
61
62
|
email: string;
|
|
62
|
-
createdAt: string;
|
|
63
|
-
id: string;
|
|
64
63
|
phoneNumbers: {
|
|
65
64
|
id: string;
|
|
66
65
|
phoneNumber: string;
|
|
67
66
|
isPrimary: boolean;
|
|
68
67
|
description?: string | null | undefined;
|
|
69
68
|
}[];
|
|
69
|
+
createdAt: string;
|
|
70
70
|
updatedAt: string;
|
|
71
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
71
72
|
office?: {
|
|
72
73
|
id: string;
|
|
73
74
|
name: string;
|
|
74
75
|
} | null | undefined;
|
|
75
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
76
76
|
canImpersonateUsers?: {
|
|
77
|
-
lastName: string;
|
|
78
|
-
firstName: string;
|
|
79
77
|
id: string;
|
|
78
|
+
firstName: string;
|
|
79
|
+
lastName: string;
|
|
80
80
|
}[] | undefined;
|
|
81
81
|
}, {
|
|
82
|
-
|
|
82
|
+
id: string;
|
|
83
83
|
firstName: string;
|
|
84
|
+
lastName: string;
|
|
84
85
|
email: string;
|
|
85
86
|
createdAt: string | Date;
|
|
86
|
-
id: string;
|
|
87
87
|
updatedAt: string | Date;
|
|
88
|
-
office?: {
|
|
89
|
-
id: string;
|
|
90
|
-
name: string;
|
|
91
|
-
} | null | undefined;
|
|
92
88
|
phoneNumbers?: {
|
|
93
89
|
id: string;
|
|
94
90
|
phoneNumber: string;
|
|
@@ -96,10 +92,14 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
96
92
|
isPrimary?: boolean | undefined;
|
|
97
93
|
}[] | undefined;
|
|
98
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
|
-
lastName: string;
|
|
101
|
-
firstName: string;
|
|
102
100
|
id: string;
|
|
101
|
+
firstName: string;
|
|
102
|
+
lastName: string;
|
|
103
103
|
}[] | undefined;
|
|
104
104
|
}>>;
|
|
105
105
|
name: z.ZodString;
|
|
@@ -115,13 +115,13 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
115
115
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
116
116
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
createdAt: string;
|
|
119
118
|
id: string;
|
|
119
|
+
agentId: string;
|
|
120
|
+
name: string;
|
|
120
121
|
phoneNumber: string;
|
|
121
122
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
122
|
-
|
|
123
|
+
createdAt: string;
|
|
123
124
|
updatedAt: string;
|
|
124
|
-
agentId: string;
|
|
125
125
|
callCount: number;
|
|
126
126
|
lastCalledAt: string | null;
|
|
127
127
|
cooldownUntil: string | null;
|
|
@@ -130,37 +130,37 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
130
130
|
existsInLeadsTable: boolean;
|
|
131
131
|
originalLeadId: string | null;
|
|
132
132
|
agent?: {
|
|
133
|
-
|
|
133
|
+
id: string;
|
|
134
134
|
firstName: string;
|
|
135
|
+
lastName: string;
|
|
135
136
|
email: string;
|
|
136
|
-
createdAt: string;
|
|
137
|
-
id: string;
|
|
138
137
|
phoneNumbers: {
|
|
139
138
|
id: string;
|
|
140
139
|
phoneNumber: string;
|
|
141
140
|
isPrimary: boolean;
|
|
142
141
|
description?: string | null | undefined;
|
|
143
142
|
}[];
|
|
143
|
+
createdAt: string;
|
|
144
144
|
updatedAt: string;
|
|
145
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
145
146
|
office?: {
|
|
146
147
|
id: string;
|
|
147
148
|
name: string;
|
|
148
149
|
} | null | undefined;
|
|
149
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
150
150
|
canImpersonateUsers?: {
|
|
151
|
-
lastName: string;
|
|
152
|
-
firstName: string;
|
|
153
151
|
id: string;
|
|
152
|
+
firstName: string;
|
|
153
|
+
lastName: string;
|
|
154
154
|
}[] | undefined;
|
|
155
155
|
} | undefined;
|
|
156
156
|
}, {
|
|
157
|
-
createdAt: string | Date;
|
|
158
157
|
id: string;
|
|
158
|
+
agentId: string;
|
|
159
|
+
name: string;
|
|
159
160
|
phoneNumber: string;
|
|
160
161
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
161
|
-
|
|
162
|
+
createdAt: string | Date;
|
|
162
163
|
updatedAt: string | Date;
|
|
163
|
-
agentId: string;
|
|
164
164
|
callCount: number;
|
|
165
165
|
lastCalledAt: string | Date | null;
|
|
166
166
|
cooldownUntil: string | Date | null;
|
|
@@ -169,16 +169,12 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
169
169
|
existsInLeadsTable: boolean;
|
|
170
170
|
originalLeadId: string | null;
|
|
171
171
|
agent?: {
|
|
172
|
-
|
|
172
|
+
id: string;
|
|
173
173
|
firstName: string;
|
|
174
|
+
lastName: string;
|
|
174
175
|
email: string;
|
|
175
176
|
createdAt: string | Date;
|
|
176
|
-
id: string;
|
|
177
177
|
updatedAt: string | Date;
|
|
178
|
-
office?: {
|
|
179
|
-
id: string;
|
|
180
|
-
name: string;
|
|
181
|
-
} | null | undefined;
|
|
182
178
|
phoneNumbers?: {
|
|
183
179
|
id: string;
|
|
184
180
|
phoneNumber: string;
|
|
@@ -186,10 +182,14 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
186
182
|
isPrimary?: boolean | undefined;
|
|
187
183
|
}[] | undefined;
|
|
188
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
|
-
lastName: string;
|
|
191
|
-
firstName: string;
|
|
192
190
|
id: string;
|
|
191
|
+
firstName: string;
|
|
192
|
+
lastName: string;
|
|
193
193
|
}[] | undefined;
|
|
194
194
|
} | undefined;
|
|
195
195
|
}>;
|
|
@@ -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;
|
|
207
208
|
phoneNumber: string;
|
|
208
209
|
status: string;
|
|
209
|
-
name: string;
|
|
210
210
|
cooldownUntil: string | null;
|
|
211
211
|
}, {
|
|
212
212
|
id: string;
|
|
213
|
+
name: string;
|
|
213
214
|
phoneNumber: string;
|
|
214
215
|
status: string;
|
|
215
|
-
name: string;
|
|
216
216
|
cooldownUntil: string | Date | null;
|
|
217
217
|
}>>>;
|
|
218
218
|
ownResearchLead: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -255,50 +255,46 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
255
255
|
firstName: z.ZodString;
|
|
256
256
|
lastName: z.ZodString;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
|
-
lastName: string;
|
|
259
|
-
firstName: string;
|
|
260
258
|
id: string;
|
|
261
|
-
}, {
|
|
262
|
-
lastName: string;
|
|
263
259
|
firstName: string;
|
|
260
|
+
lastName: string;
|
|
261
|
+
}, {
|
|
264
262
|
id: string;
|
|
263
|
+
firstName: string;
|
|
264
|
+
lastName: string;
|
|
265
265
|
}>, "many">>;
|
|
266
266
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
267
267
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
268
268
|
}, "strip", z.ZodTypeAny, {
|
|
269
|
-
|
|
269
|
+
id: string;
|
|
270
270
|
firstName: string;
|
|
271
|
+
lastName: string;
|
|
271
272
|
email: string;
|
|
272
|
-
createdAt: string;
|
|
273
|
-
id: string;
|
|
274
273
|
phoneNumbers: {
|
|
275
274
|
id: string;
|
|
276
275
|
phoneNumber: string;
|
|
277
276
|
isPrimary: boolean;
|
|
278
277
|
description?: string | null | undefined;
|
|
279
278
|
}[];
|
|
279
|
+
createdAt: string;
|
|
280
280
|
updatedAt: string;
|
|
281
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
281
282
|
office?: {
|
|
282
283
|
id: string;
|
|
283
284
|
name: string;
|
|
284
285
|
} | null | undefined;
|
|
285
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
286
286
|
canImpersonateUsers?: {
|
|
287
|
-
lastName: string;
|
|
288
|
-
firstName: string;
|
|
289
287
|
id: string;
|
|
288
|
+
firstName: string;
|
|
289
|
+
lastName: string;
|
|
290
290
|
}[] | undefined;
|
|
291
291
|
}, {
|
|
292
|
-
|
|
292
|
+
id: string;
|
|
293
293
|
firstName: string;
|
|
294
|
+
lastName: string;
|
|
294
295
|
email: string;
|
|
295
296
|
createdAt: string | Date;
|
|
296
|
-
id: string;
|
|
297
297
|
updatedAt: string | Date;
|
|
298
|
-
office?: {
|
|
299
|
-
id: string;
|
|
300
|
-
name: string;
|
|
301
|
-
} | null | undefined;
|
|
302
298
|
phoneNumbers?: {
|
|
303
299
|
id: string;
|
|
304
300
|
phoneNumber: string;
|
|
@@ -306,10 +302,14 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
306
302
|
isPrimary?: boolean | undefined;
|
|
307
303
|
}[] | undefined;
|
|
308
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
|
-
lastName: string;
|
|
311
|
-
firstName: string;
|
|
312
310
|
id: string;
|
|
311
|
+
firstName: string;
|
|
312
|
+
lastName: string;
|
|
313
313
|
}[] | undefined;
|
|
314
314
|
}>>;
|
|
315
315
|
name: z.ZodString;
|
|
@@ -325,13 +325,13 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
325
325
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
326
326
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
327
327
|
}, "strip", z.ZodTypeAny, {
|
|
328
|
-
createdAt: string;
|
|
329
328
|
id: string;
|
|
329
|
+
agentId: string;
|
|
330
|
+
name: string;
|
|
330
331
|
phoneNumber: string;
|
|
331
332
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
332
|
-
|
|
333
|
+
createdAt: string;
|
|
333
334
|
updatedAt: string;
|
|
334
|
-
agentId: string;
|
|
335
335
|
callCount: number;
|
|
336
336
|
lastCalledAt: string | null;
|
|
337
337
|
cooldownUntil: string | null;
|
|
@@ -340,37 +340,37 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
340
340
|
existsInLeadsTable: boolean;
|
|
341
341
|
originalLeadId: string | null;
|
|
342
342
|
agent?: {
|
|
343
|
-
|
|
343
|
+
id: string;
|
|
344
344
|
firstName: string;
|
|
345
|
+
lastName: string;
|
|
345
346
|
email: string;
|
|
346
|
-
createdAt: string;
|
|
347
|
-
id: string;
|
|
348
347
|
phoneNumbers: {
|
|
349
348
|
id: string;
|
|
350
349
|
phoneNumber: string;
|
|
351
350
|
isPrimary: boolean;
|
|
352
351
|
description?: string | null | undefined;
|
|
353
352
|
}[];
|
|
353
|
+
createdAt: string;
|
|
354
354
|
updatedAt: string;
|
|
355
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
355
356
|
office?: {
|
|
356
357
|
id: string;
|
|
357
358
|
name: string;
|
|
358
359
|
} | null | undefined;
|
|
359
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
360
360
|
canImpersonateUsers?: {
|
|
361
|
-
lastName: string;
|
|
362
|
-
firstName: string;
|
|
363
361
|
id: string;
|
|
362
|
+
firstName: string;
|
|
363
|
+
lastName: string;
|
|
364
364
|
}[] | undefined;
|
|
365
365
|
} | undefined;
|
|
366
366
|
}, {
|
|
367
|
-
createdAt: string | Date;
|
|
368
367
|
id: string;
|
|
368
|
+
agentId: string;
|
|
369
|
+
name: string;
|
|
369
370
|
phoneNumber: string;
|
|
370
371
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
371
|
-
|
|
372
|
+
createdAt: string | Date;
|
|
372
373
|
updatedAt: string | Date;
|
|
373
|
-
agentId: string;
|
|
374
374
|
callCount: number;
|
|
375
375
|
lastCalledAt: string | Date | null;
|
|
376
376
|
cooldownUntil: string | Date | null;
|
|
@@ -379,16 +379,12 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
379
379
|
existsInLeadsTable: boolean;
|
|
380
380
|
originalLeadId: string | null;
|
|
381
381
|
agent?: {
|
|
382
|
-
|
|
382
|
+
id: string;
|
|
383
383
|
firstName: string;
|
|
384
|
+
lastName: string;
|
|
384
385
|
email: string;
|
|
385
386
|
createdAt: string | Date;
|
|
386
|
-
id: string;
|
|
387
387
|
updatedAt: string | Date;
|
|
388
|
-
office?: {
|
|
389
|
-
id: string;
|
|
390
|
-
name: string;
|
|
391
|
-
} | null | undefined;
|
|
392
388
|
phoneNumbers?: {
|
|
393
389
|
id: string;
|
|
394
390
|
phoneNumber: string;
|
|
@@ -396,10 +392,14 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
396
392
|
isPrimary?: boolean | undefined;
|
|
397
393
|
}[] | undefined;
|
|
398
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
|
-
lastName: string;
|
|
401
|
-
firstName: string;
|
|
402
400
|
id: string;
|
|
401
|
+
firstName: string;
|
|
402
|
+
lastName: string;
|
|
403
403
|
}[] | undefined;
|
|
404
404
|
} | undefined;
|
|
405
405
|
}>>>;
|
|
@@ -412,19 +412,19 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
412
412
|
isOnCooldown: boolean;
|
|
413
413
|
lead?: {
|
|
414
414
|
id: string;
|
|
415
|
+
name: string;
|
|
415
416
|
phoneNumber: string;
|
|
416
417
|
status: string;
|
|
417
|
-
name: string;
|
|
418
418
|
cooldownUntil: string | null;
|
|
419
419
|
} | null | undefined;
|
|
420
420
|
ownResearchLead?: {
|
|
421
|
-
createdAt: string;
|
|
422
421
|
id: string;
|
|
422
|
+
agentId: string;
|
|
423
|
+
name: string;
|
|
423
424
|
phoneNumber: string;
|
|
424
425
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
425
|
-
|
|
426
|
+
createdAt: string;
|
|
426
427
|
updatedAt: string;
|
|
427
|
-
agentId: string;
|
|
428
428
|
callCount: number;
|
|
429
429
|
lastCalledAt: string | null;
|
|
430
430
|
cooldownUntil: string | null;
|
|
@@ -433,27 +433,27 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
433
433
|
existsInLeadsTable: boolean;
|
|
434
434
|
originalLeadId: string | null;
|
|
435
435
|
agent?: {
|
|
436
|
-
|
|
436
|
+
id: string;
|
|
437
437
|
firstName: string;
|
|
438
|
+
lastName: string;
|
|
438
439
|
email: string;
|
|
439
|
-
createdAt: string;
|
|
440
|
-
id: string;
|
|
441
440
|
phoneNumbers: {
|
|
442
441
|
id: string;
|
|
443
442
|
phoneNumber: string;
|
|
444
443
|
isPrimary: boolean;
|
|
445
444
|
description?: string | null | undefined;
|
|
446
445
|
}[];
|
|
446
|
+
createdAt: string;
|
|
447
447
|
updatedAt: string;
|
|
448
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
448
449
|
office?: {
|
|
449
450
|
id: string;
|
|
450
451
|
name: string;
|
|
451
452
|
} | null | undefined;
|
|
452
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
453
453
|
canImpersonateUsers?: {
|
|
454
|
-
lastName: string;
|
|
455
|
-
firstName: string;
|
|
456
454
|
id: string;
|
|
455
|
+
firstName: string;
|
|
456
|
+
lastName: string;
|
|
457
457
|
}[] | undefined;
|
|
458
458
|
} | undefined;
|
|
459
459
|
} | null | undefined;
|
|
@@ -464,19 +464,19 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
464
464
|
isOnCooldown: boolean;
|
|
465
465
|
lead?: {
|
|
466
466
|
id: string;
|
|
467
|
+
name: string;
|
|
467
468
|
phoneNumber: string;
|
|
468
469
|
status: string;
|
|
469
|
-
name: string;
|
|
470
470
|
cooldownUntil: string | Date | null;
|
|
471
471
|
} | null | undefined;
|
|
472
472
|
ownResearchLead?: {
|
|
473
|
-
createdAt: string | Date;
|
|
474
473
|
id: string;
|
|
474
|
+
agentId: string;
|
|
475
|
+
name: string;
|
|
475
476
|
phoneNumber: string;
|
|
476
477
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
477
|
-
|
|
478
|
+
createdAt: string | Date;
|
|
478
479
|
updatedAt: string | Date;
|
|
479
|
-
agentId: string;
|
|
480
480
|
callCount: number;
|
|
481
481
|
lastCalledAt: string | Date | null;
|
|
482
482
|
cooldownUntil: string | Date | null;
|
|
@@ -485,16 +485,12 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
485
485
|
existsInLeadsTable: boolean;
|
|
486
486
|
originalLeadId: string | null;
|
|
487
487
|
agent?: {
|
|
488
|
-
|
|
488
|
+
id: string;
|
|
489
489
|
firstName: string;
|
|
490
|
+
lastName: string;
|
|
490
491
|
email: string;
|
|
491
492
|
createdAt: string | Date;
|
|
492
|
-
id: string;
|
|
493
493
|
updatedAt: string | Date;
|
|
494
|
-
office?: {
|
|
495
|
-
id: string;
|
|
496
|
-
name: string;
|
|
497
|
-
} | null | undefined;
|
|
498
494
|
phoneNumbers?: {
|
|
499
495
|
id: string;
|
|
500
496
|
phoneNumber: string;
|
|
@@ -502,10 +498,14 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
502
498
|
isPrimary?: boolean | undefined;
|
|
503
499
|
}[] | undefined;
|
|
504
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
|
-
lastName: string;
|
|
507
|
-
firstName: string;
|
|
508
506
|
id: string;
|
|
507
|
+
firstName: string;
|
|
508
|
+
lastName: string;
|
|
509
509
|
}[] | undefined;
|
|
510
510
|
} | undefined;
|
|
511
511
|
} | null | undefined;
|
|
@@ -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;
|
|
528
527
|
name: string;
|
|
528
|
+
phoneNumber: string;
|
|
529
529
|
rating: import("../common/call-rating.schema").CallRating;
|
|
530
|
-
notes?: string | undefined;
|
|
531
530
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
531
|
+
notes?: string | undefined;
|
|
532
532
|
}, {
|
|
533
|
-
phoneNumber: string;
|
|
534
533
|
name: string;
|
|
534
|
+
phoneNumber: string;
|
|
535
535
|
rating: import("../common/call-rating.schema").CallRating;
|
|
536
|
-
notes?: string | undefined;
|
|
537
536
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
537
|
+
notes?: string | 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
|
-
phoneNumber: string;
|
|
548
547
|
name: string;
|
|
549
|
-
}, {
|
|
550
548
|
phoneNumber: string;
|
|
549
|
+
}, {
|
|
551
550
|
name: string;
|
|
551
|
+
phoneNumber: string;
|
|
552
552
|
}>>;
|
|
553
553
|
agentId: z.ZodNullable<z.ZodString>;
|
|
554
554
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -588,50 +588,46 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
588
588
|
firstName: z.ZodString;
|
|
589
589
|
lastName: z.ZodString;
|
|
590
590
|
}, "strip", z.ZodTypeAny, {
|
|
591
|
-
lastName: string;
|
|
592
|
-
firstName: string;
|
|
593
591
|
id: string;
|
|
594
|
-
}, {
|
|
595
|
-
lastName: string;
|
|
596
592
|
firstName: string;
|
|
593
|
+
lastName: string;
|
|
594
|
+
}, {
|
|
597
595
|
id: string;
|
|
596
|
+
firstName: string;
|
|
597
|
+
lastName: string;
|
|
598
598
|
}>, "many">>;
|
|
599
599
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
600
600
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
602
|
-
|
|
602
|
+
id: string;
|
|
603
603
|
firstName: string;
|
|
604
|
+
lastName: string;
|
|
604
605
|
email: string;
|
|
605
|
-
createdAt: string;
|
|
606
|
-
id: string;
|
|
607
606
|
phoneNumbers: {
|
|
608
607
|
id: string;
|
|
609
608
|
phoneNumber: string;
|
|
610
609
|
isPrimary: boolean;
|
|
611
610
|
description?: string | null | undefined;
|
|
612
611
|
}[];
|
|
612
|
+
createdAt: string;
|
|
613
613
|
updatedAt: string;
|
|
614
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
614
615
|
office?: {
|
|
615
616
|
id: string;
|
|
616
617
|
name: string;
|
|
617
618
|
} | null | undefined;
|
|
618
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
619
619
|
canImpersonateUsers?: {
|
|
620
|
-
lastName: string;
|
|
621
|
-
firstName: string;
|
|
622
620
|
id: string;
|
|
621
|
+
firstName: string;
|
|
622
|
+
lastName: string;
|
|
623
623
|
}[] | undefined;
|
|
624
624
|
}, {
|
|
625
|
-
|
|
625
|
+
id: string;
|
|
626
626
|
firstName: string;
|
|
627
|
+
lastName: string;
|
|
627
628
|
email: string;
|
|
628
629
|
createdAt: string | Date;
|
|
629
|
-
id: string;
|
|
630
630
|
updatedAt: string | Date;
|
|
631
|
-
office?: {
|
|
632
|
-
id: string;
|
|
633
|
-
name: string;
|
|
634
|
-
} | null | undefined;
|
|
635
631
|
phoneNumbers?: {
|
|
636
632
|
id: string;
|
|
637
633
|
phoneNumber: string;
|
|
@@ -639,10 +635,14 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
639
635
|
isPrimary?: boolean | undefined;
|
|
640
636
|
}[] | undefined;
|
|
641
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
|
-
lastName: string;
|
|
644
|
-
firstName: string;
|
|
645
643
|
id: string;
|
|
644
|
+
firstName: string;
|
|
645
|
+
lastName: string;
|
|
646
646
|
}[] | undefined;
|
|
647
647
|
}>>;
|
|
648
648
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -655,83 +655,83 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
655
655
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
656
656
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
657
657
|
}, "strip", z.ZodTypeAny, {
|
|
658
|
-
createdAt: string;
|
|
659
658
|
id: string;
|
|
660
659
|
name: string;
|
|
660
|
+
createdAt: string;
|
|
661
661
|
updatedAt: string;
|
|
662
662
|
}, {
|
|
663
|
-
createdAt: string | Date;
|
|
664
663
|
id: string;
|
|
665
664
|
name: string;
|
|
665
|
+
createdAt: string | Date;
|
|
666
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
|
-
createdAt: string;
|
|
672
671
|
id: string;
|
|
672
|
+
leadId: string;
|
|
673
|
+
agentId: string | null;
|
|
673
674
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
675
|
+
createdAt: string;
|
|
674
676
|
updatedAt: string;
|
|
675
|
-
agentId: string | null;
|
|
676
|
-
leadId: string;
|
|
677
677
|
assignedAt: string;
|
|
678
678
|
assignedBy: string | null;
|
|
679
679
|
companyId: string | null;
|
|
680
|
+
lead?: {
|
|
681
|
+
name: string;
|
|
682
|
+
phoneNumber: string;
|
|
683
|
+
} | undefined;
|
|
680
684
|
agent?: {
|
|
681
|
-
|
|
685
|
+
id: string;
|
|
682
686
|
firstName: string;
|
|
687
|
+
lastName: string;
|
|
683
688
|
email: string;
|
|
684
|
-
createdAt: string;
|
|
685
|
-
id: string;
|
|
686
689
|
phoneNumbers: {
|
|
687
690
|
id: string;
|
|
688
691
|
phoneNumber: string;
|
|
689
692
|
isPrimary: boolean;
|
|
690
693
|
description?: string | null | undefined;
|
|
691
694
|
}[];
|
|
695
|
+
createdAt: string;
|
|
692
696
|
updatedAt: string;
|
|
697
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
693
698
|
office?: {
|
|
694
699
|
id: string;
|
|
695
700
|
name: string;
|
|
696
701
|
} | null | undefined;
|
|
697
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
698
702
|
canImpersonateUsers?: {
|
|
699
|
-
lastName: string;
|
|
700
|
-
firstName: string;
|
|
701
703
|
id: string;
|
|
704
|
+
firstName: string;
|
|
705
|
+
lastName: string;
|
|
702
706
|
}[] | undefined;
|
|
703
707
|
} | undefined;
|
|
704
|
-
lead?: {
|
|
705
|
-
phoneNumber: string;
|
|
706
|
-
name: string;
|
|
707
|
-
} | undefined;
|
|
708
708
|
company?: {
|
|
709
|
-
createdAt: string;
|
|
710
709
|
id: string;
|
|
711
710
|
name: string;
|
|
711
|
+
createdAt: string;
|
|
712
712
|
updatedAt: string;
|
|
713
713
|
} | null | undefined;
|
|
714
714
|
}, {
|
|
715
|
-
createdAt: string | Date;
|
|
716
715
|
id: string;
|
|
716
|
+
leadId: string;
|
|
717
|
+
agentId: string | null;
|
|
717
718
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
719
|
+
createdAt: string | Date;
|
|
718
720
|
updatedAt: string | Date;
|
|
719
|
-
agentId: string | null;
|
|
720
|
-
leadId: string;
|
|
721
721
|
assignedAt: string | Date;
|
|
722
722
|
assignedBy: string | null;
|
|
723
723
|
companyId: string | null;
|
|
724
|
+
lead?: {
|
|
725
|
+
name: string;
|
|
726
|
+
phoneNumber: string;
|
|
727
|
+
} | undefined;
|
|
724
728
|
agent?: {
|
|
725
|
-
|
|
729
|
+
id: string;
|
|
726
730
|
firstName: string;
|
|
731
|
+
lastName: string;
|
|
727
732
|
email: string;
|
|
728
733
|
createdAt: string | Date;
|
|
729
|
-
id: string;
|
|
730
734
|
updatedAt: string | Date;
|
|
731
|
-
office?: {
|
|
732
|
-
id: string;
|
|
733
|
-
name: string;
|
|
734
|
-
} | null | undefined;
|
|
735
735
|
phoneNumbers?: {
|
|
736
736
|
id: string;
|
|
737
737
|
phoneNumber: string;
|
|
@@ -739,20 +739,20 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
739
739
|
isPrimary?: boolean | undefined;
|
|
740
740
|
}[] | undefined;
|
|
741
741
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
742
|
+
office?: {
|
|
743
|
+
id: string;
|
|
744
|
+
name: string;
|
|
745
|
+
} | null | undefined;
|
|
742
746
|
canImpersonateUsers?: {
|
|
743
|
-
lastName: string;
|
|
744
|
-
firstName: string;
|
|
745
747
|
id: string;
|
|
748
|
+
firstName: string;
|
|
749
|
+
lastName: string;
|
|
746
750
|
}[] | undefined;
|
|
747
751
|
} | undefined;
|
|
748
|
-
lead?: {
|
|
749
|
-
phoneNumber: string;
|
|
750
|
-
name: string;
|
|
751
|
-
} | undefined;
|
|
752
752
|
company?: {
|
|
753
|
-
createdAt: string | Date;
|
|
754
753
|
id: string;
|
|
755
754
|
name: string;
|
|
755
|
+
createdAt: string | Date;
|
|
756
756
|
updatedAt: string | Date;
|
|
757
757
|
} | null | undefined;
|
|
758
758
|
}>>>;
|
|
@@ -796,50 +796,46 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
796
796
|
firstName: z.ZodString;
|
|
797
797
|
lastName: z.ZodString;
|
|
798
798
|
}, "strip", z.ZodTypeAny, {
|
|
799
|
-
lastName: string;
|
|
800
|
-
firstName: string;
|
|
801
799
|
id: string;
|
|
802
|
-
}, {
|
|
803
|
-
lastName: string;
|
|
804
800
|
firstName: string;
|
|
801
|
+
lastName: string;
|
|
802
|
+
}, {
|
|
805
803
|
id: string;
|
|
804
|
+
firstName: string;
|
|
805
|
+
lastName: string;
|
|
806
806
|
}>, "many">>;
|
|
807
807
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
808
808
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
809
809
|
}, "strip", z.ZodTypeAny, {
|
|
810
|
-
|
|
810
|
+
id: string;
|
|
811
811
|
firstName: string;
|
|
812
|
+
lastName: string;
|
|
812
813
|
email: string;
|
|
813
|
-
createdAt: string;
|
|
814
|
-
id: string;
|
|
815
814
|
phoneNumbers: {
|
|
816
815
|
id: string;
|
|
817
816
|
phoneNumber: string;
|
|
818
817
|
isPrimary: boolean;
|
|
819
818
|
description?: string | null | undefined;
|
|
820
819
|
}[];
|
|
820
|
+
createdAt: string;
|
|
821
821
|
updatedAt: string;
|
|
822
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
822
823
|
office?: {
|
|
823
824
|
id: string;
|
|
824
825
|
name: string;
|
|
825
826
|
} | null | undefined;
|
|
826
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
827
827
|
canImpersonateUsers?: {
|
|
828
|
-
lastName: string;
|
|
829
|
-
firstName: string;
|
|
830
828
|
id: string;
|
|
829
|
+
firstName: string;
|
|
830
|
+
lastName: string;
|
|
831
831
|
}[] | undefined;
|
|
832
832
|
}, {
|
|
833
|
-
|
|
833
|
+
id: string;
|
|
834
834
|
firstName: string;
|
|
835
|
+
lastName: string;
|
|
835
836
|
email: string;
|
|
836
837
|
createdAt: string | Date;
|
|
837
|
-
id: string;
|
|
838
838
|
updatedAt: string | Date;
|
|
839
|
-
office?: {
|
|
840
|
-
id: string;
|
|
841
|
-
name: string;
|
|
842
|
-
} | null | undefined;
|
|
843
839
|
phoneNumbers?: {
|
|
844
840
|
id: string;
|
|
845
841
|
phoneNumber: string;
|
|
@@ -847,10 +843,14 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
847
843
|
isPrimary?: boolean | undefined;
|
|
848
844
|
}[] | undefined;
|
|
849
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
|
-
lastName: string;
|
|
852
|
-
firstName: string;
|
|
853
851
|
id: string;
|
|
852
|
+
firstName: string;
|
|
853
|
+
lastName: string;
|
|
854
854
|
}[] | undefined;
|
|
855
855
|
}>>;
|
|
856
856
|
name: z.ZodString;
|
|
@@ -866,13 +866,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
866
866
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
867
867
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
868
868
|
}, "strip", z.ZodTypeAny, {
|
|
869
|
-
createdAt: string;
|
|
870
869
|
id: string;
|
|
870
|
+
agentId: string;
|
|
871
|
+
name: string;
|
|
871
872
|
phoneNumber: string;
|
|
872
873
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
873
|
-
|
|
874
|
+
createdAt: string;
|
|
874
875
|
updatedAt: string;
|
|
875
|
-
agentId: string;
|
|
876
876
|
callCount: number;
|
|
877
877
|
lastCalledAt: string | null;
|
|
878
878
|
cooldownUntil: string | null;
|
|
@@ -881,37 +881,37 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
881
881
|
existsInLeadsTable: boolean;
|
|
882
882
|
originalLeadId: string | null;
|
|
883
883
|
agent?: {
|
|
884
|
-
|
|
884
|
+
id: string;
|
|
885
885
|
firstName: string;
|
|
886
|
+
lastName: string;
|
|
886
887
|
email: string;
|
|
887
|
-
createdAt: string;
|
|
888
|
-
id: string;
|
|
889
888
|
phoneNumbers: {
|
|
890
889
|
id: string;
|
|
891
890
|
phoneNumber: string;
|
|
892
891
|
isPrimary: boolean;
|
|
893
892
|
description?: string | null | undefined;
|
|
894
893
|
}[];
|
|
894
|
+
createdAt: string;
|
|
895
895
|
updatedAt: string;
|
|
896
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
896
897
|
office?: {
|
|
897
898
|
id: string;
|
|
898
899
|
name: string;
|
|
899
900
|
} | null | undefined;
|
|
900
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
901
901
|
canImpersonateUsers?: {
|
|
902
|
-
lastName: string;
|
|
903
|
-
firstName: string;
|
|
904
902
|
id: string;
|
|
903
|
+
firstName: string;
|
|
904
|
+
lastName: string;
|
|
905
905
|
}[] | undefined;
|
|
906
906
|
} | undefined;
|
|
907
907
|
}, {
|
|
908
|
-
createdAt: string | Date;
|
|
909
908
|
id: string;
|
|
909
|
+
agentId: string;
|
|
910
|
+
name: string;
|
|
910
911
|
phoneNumber: string;
|
|
911
912
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
912
|
-
|
|
913
|
+
createdAt: string | Date;
|
|
913
914
|
updatedAt: string | Date;
|
|
914
|
-
agentId: string;
|
|
915
915
|
callCount: number;
|
|
916
916
|
lastCalledAt: string | Date | null;
|
|
917
917
|
cooldownUntil: string | Date | null;
|
|
@@ -920,16 +920,12 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
920
920
|
existsInLeadsTable: boolean;
|
|
921
921
|
originalLeadId: string | null;
|
|
922
922
|
agent?: {
|
|
923
|
-
|
|
923
|
+
id: string;
|
|
924
924
|
firstName: string;
|
|
925
|
+
lastName: string;
|
|
925
926
|
email: string;
|
|
926
927
|
createdAt: string | Date;
|
|
927
|
-
id: string;
|
|
928
928
|
updatedAt: string | Date;
|
|
929
|
-
office?: {
|
|
930
|
-
id: string;
|
|
931
|
-
name: string;
|
|
932
|
-
} | null | undefined;
|
|
933
929
|
phoneNumbers?: {
|
|
934
930
|
id: string;
|
|
935
931
|
phoneNumber: string;
|
|
@@ -937,22 +933,26 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
937
933
|
isPrimary?: boolean | undefined;
|
|
938
934
|
}[] | undefined;
|
|
939
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
|
-
lastName: string;
|
|
942
|
-
firstName: string;
|
|
943
941
|
id: string;
|
|
942
|
+
firstName: string;
|
|
943
|
+
lastName: string;
|
|
944
944
|
}[] | undefined;
|
|
945
945
|
} | undefined;
|
|
946
946
|
}>;
|
|
947
947
|
}, "strip", z.ZodTypeAny, {
|
|
948
948
|
ownResearchLead: {
|
|
949
|
-
createdAt: string;
|
|
950
949
|
id: string;
|
|
950
|
+
agentId: string;
|
|
951
|
+
name: string;
|
|
951
952
|
phoneNumber: string;
|
|
952
953
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
953
|
-
|
|
954
|
+
createdAt: string;
|
|
954
955
|
updatedAt: string;
|
|
955
|
-
agentId: string;
|
|
956
956
|
callCount: number;
|
|
957
957
|
lastCalledAt: string | null;
|
|
958
958
|
cooldownUntil: string | null;
|
|
@@ -961,84 +961,84 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
961
961
|
existsInLeadsTable: boolean;
|
|
962
962
|
originalLeadId: string | null;
|
|
963
963
|
agent?: {
|
|
964
|
-
|
|
964
|
+
id: string;
|
|
965
965
|
firstName: string;
|
|
966
|
+
lastName: string;
|
|
966
967
|
email: string;
|
|
967
|
-
createdAt: string;
|
|
968
|
-
id: string;
|
|
969
968
|
phoneNumbers: {
|
|
970
969
|
id: string;
|
|
971
970
|
phoneNumber: string;
|
|
972
971
|
isPrimary: boolean;
|
|
973
972
|
description?: string | null | undefined;
|
|
974
973
|
}[];
|
|
974
|
+
createdAt: string;
|
|
975
975
|
updatedAt: string;
|
|
976
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
976
977
|
office?: {
|
|
977
978
|
id: string;
|
|
978
979
|
name: string;
|
|
979
980
|
} | null | undefined;
|
|
980
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
981
981
|
canImpersonateUsers?: {
|
|
982
|
-
lastName: string;
|
|
983
|
-
firstName: string;
|
|
984
982
|
id: string;
|
|
983
|
+
firstName: string;
|
|
984
|
+
lastName: string;
|
|
985
985
|
}[] | undefined;
|
|
986
986
|
} | undefined;
|
|
987
987
|
};
|
|
988
988
|
assignment?: {
|
|
989
|
-
createdAt: string;
|
|
990
989
|
id: string;
|
|
990
|
+
leadId: string;
|
|
991
|
+
agentId: string | null;
|
|
991
992
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
993
|
+
createdAt: string;
|
|
992
994
|
updatedAt: string;
|
|
993
|
-
agentId: string | null;
|
|
994
|
-
leadId: string;
|
|
995
995
|
assignedAt: string;
|
|
996
996
|
assignedBy: string | null;
|
|
997
997
|
companyId: string | null;
|
|
998
|
+
lead?: {
|
|
999
|
+
name: string;
|
|
1000
|
+
phoneNumber: string;
|
|
1001
|
+
} | undefined;
|
|
998
1002
|
agent?: {
|
|
999
|
-
|
|
1003
|
+
id: string;
|
|
1000
1004
|
firstName: string;
|
|
1005
|
+
lastName: string;
|
|
1001
1006
|
email: string;
|
|
1002
|
-
createdAt: string;
|
|
1003
|
-
id: string;
|
|
1004
1007
|
phoneNumbers: {
|
|
1005
1008
|
id: string;
|
|
1006
1009
|
phoneNumber: string;
|
|
1007
1010
|
isPrimary: boolean;
|
|
1008
1011
|
description?: string | null | undefined;
|
|
1009
1012
|
}[];
|
|
1013
|
+
createdAt: string;
|
|
1010
1014
|
updatedAt: string;
|
|
1015
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1011
1016
|
office?: {
|
|
1012
1017
|
id: string;
|
|
1013
1018
|
name: string;
|
|
1014
1019
|
} | null | undefined;
|
|
1015
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1016
1020
|
canImpersonateUsers?: {
|
|
1017
|
-
lastName: string;
|
|
1018
|
-
firstName: string;
|
|
1019
1021
|
id: string;
|
|
1022
|
+
firstName: string;
|
|
1023
|
+
lastName: string;
|
|
1020
1024
|
}[] | undefined;
|
|
1021
1025
|
} | undefined;
|
|
1022
|
-
lead?: {
|
|
1023
|
-
phoneNumber: string;
|
|
1024
|
-
name: string;
|
|
1025
|
-
} | undefined;
|
|
1026
1026
|
company?: {
|
|
1027
|
-
createdAt: string;
|
|
1028
1027
|
id: string;
|
|
1029
1028
|
name: string;
|
|
1029
|
+
createdAt: string;
|
|
1030
1030
|
updatedAt: string;
|
|
1031
1031
|
} | null | undefined;
|
|
1032
1032
|
} | null | undefined;
|
|
1033
1033
|
}, {
|
|
1034
1034
|
ownResearchLead: {
|
|
1035
|
-
createdAt: string | Date;
|
|
1036
1035
|
id: string;
|
|
1036
|
+
agentId: string;
|
|
1037
|
+
name: string;
|
|
1037
1038
|
phoneNumber: string;
|
|
1038
1039
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1039
|
-
|
|
1040
|
+
createdAt: string | Date;
|
|
1040
1041
|
updatedAt: string | Date;
|
|
1041
|
-
agentId: string;
|
|
1042
1042
|
callCount: number;
|
|
1043
1043
|
lastCalledAt: string | Date | null;
|
|
1044
1044
|
cooldownUntil: string | Date | null;
|
|
@@ -1047,16 +1047,12 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1047
1047
|
existsInLeadsTable: boolean;
|
|
1048
1048
|
originalLeadId: string | null;
|
|
1049
1049
|
agent?: {
|
|
1050
|
-
|
|
1050
|
+
id: string;
|
|
1051
1051
|
firstName: string;
|
|
1052
|
+
lastName: string;
|
|
1052
1053
|
email: string;
|
|
1053
1054
|
createdAt: string | Date;
|
|
1054
|
-
id: string;
|
|
1055
1055
|
updatedAt: string | Date;
|
|
1056
|
-
office?: {
|
|
1057
|
-
id: string;
|
|
1058
|
-
name: string;
|
|
1059
|
-
} | null | undefined;
|
|
1060
1056
|
phoneNumbers?: {
|
|
1061
1057
|
id: string;
|
|
1062
1058
|
phoneNumber: string;
|
|
@@ -1064,34 +1060,38 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1064
1060
|
isPrimary?: boolean | undefined;
|
|
1065
1061
|
}[] | undefined;
|
|
1066
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
|
-
lastName: string;
|
|
1069
|
-
firstName: string;
|
|
1070
1068
|
id: string;
|
|
1069
|
+
firstName: string;
|
|
1070
|
+
lastName: string;
|
|
1071
1071
|
}[] | undefined;
|
|
1072
1072
|
} | undefined;
|
|
1073
1073
|
};
|
|
1074
1074
|
assignment?: {
|
|
1075
|
-
createdAt: string | Date;
|
|
1076
1075
|
id: string;
|
|
1076
|
+
leadId: string;
|
|
1077
|
+
agentId: string | null;
|
|
1077
1078
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1079
|
+
createdAt: string | Date;
|
|
1078
1080
|
updatedAt: string | Date;
|
|
1079
|
-
agentId: string | null;
|
|
1080
|
-
leadId: string;
|
|
1081
1081
|
assignedAt: string | Date;
|
|
1082
1082
|
assignedBy: string | null;
|
|
1083
1083
|
companyId: string | null;
|
|
1084
|
+
lead?: {
|
|
1085
|
+
name: string;
|
|
1086
|
+
phoneNumber: string;
|
|
1087
|
+
} | undefined;
|
|
1084
1088
|
agent?: {
|
|
1085
|
-
|
|
1089
|
+
id: string;
|
|
1086
1090
|
firstName: string;
|
|
1091
|
+
lastName: string;
|
|
1087
1092
|
email: string;
|
|
1088
1093
|
createdAt: string | Date;
|
|
1089
|
-
id: string;
|
|
1090
1094
|
updatedAt: string | Date;
|
|
1091
|
-
office?: {
|
|
1092
|
-
id: string;
|
|
1093
|
-
name: string;
|
|
1094
|
-
} | null | undefined;
|
|
1095
1095
|
phoneNumbers?: {
|
|
1096
1096
|
id: string;
|
|
1097
1097
|
phoneNumber: string;
|
|
@@ -1099,20 +1099,20 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1099
1099
|
isPrimary?: boolean | undefined;
|
|
1100
1100
|
}[] | undefined;
|
|
1101
1101
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1102
|
+
office?: {
|
|
1103
|
+
id: string;
|
|
1104
|
+
name: string;
|
|
1105
|
+
} | null | undefined;
|
|
1102
1106
|
canImpersonateUsers?: {
|
|
1103
|
-
lastName: string;
|
|
1104
|
-
firstName: string;
|
|
1105
1107
|
id: string;
|
|
1108
|
+
firstName: string;
|
|
1109
|
+
lastName: string;
|
|
1106
1110
|
}[] | undefined;
|
|
1107
1111
|
} | undefined;
|
|
1108
|
-
lead?: {
|
|
1109
|
-
phoneNumber: string;
|
|
1110
|
-
name: string;
|
|
1111
|
-
} | undefined;
|
|
1112
1112
|
company?: {
|
|
1113
|
-
createdAt: string | Date;
|
|
1114
1113
|
id: string;
|
|
1115
1114
|
name: string;
|
|
1115
|
+
createdAt: string | Date;
|
|
1116
1116
|
updatedAt: string | Date;
|
|
1117
1117
|
} | null | undefined;
|
|
1118
1118
|
} | null | undefined;
|
|
@@ -1121,11 +1121,11 @@ 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
|
-
phoneNumber: string;
|
|
1125
1124
|
name: string;
|
|
1126
|
-
}, {
|
|
1127
1125
|
phoneNumber: string;
|
|
1126
|
+
}, {
|
|
1128
1127
|
name: string;
|
|
1128
|
+
phoneNumber: string;
|
|
1129
1129
|
}>;
|
|
1130
1130
|
export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
1131
1131
|
ownResearchLead: z.ZodObject<{
|
|
@@ -1168,50 +1168,46 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1168
1168
|
firstName: z.ZodString;
|
|
1169
1169
|
lastName: z.ZodString;
|
|
1170
1170
|
}, "strip", z.ZodTypeAny, {
|
|
1171
|
-
lastName: string;
|
|
1172
|
-
firstName: string;
|
|
1173
1171
|
id: string;
|
|
1174
|
-
}, {
|
|
1175
|
-
lastName: string;
|
|
1176
1172
|
firstName: string;
|
|
1173
|
+
lastName: string;
|
|
1174
|
+
}, {
|
|
1177
1175
|
id: string;
|
|
1176
|
+
firstName: string;
|
|
1177
|
+
lastName: string;
|
|
1178
1178
|
}>, "many">>;
|
|
1179
1179
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1180
1180
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1181
1181
|
}, "strip", z.ZodTypeAny, {
|
|
1182
|
-
|
|
1182
|
+
id: string;
|
|
1183
1183
|
firstName: string;
|
|
1184
|
+
lastName: string;
|
|
1184
1185
|
email: string;
|
|
1185
|
-
createdAt: string;
|
|
1186
|
-
id: string;
|
|
1187
1186
|
phoneNumbers: {
|
|
1188
1187
|
id: string;
|
|
1189
1188
|
phoneNumber: string;
|
|
1190
1189
|
isPrimary: boolean;
|
|
1191
1190
|
description?: string | null | undefined;
|
|
1192
1191
|
}[];
|
|
1192
|
+
createdAt: string;
|
|
1193
1193
|
updatedAt: string;
|
|
1194
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1194
1195
|
office?: {
|
|
1195
1196
|
id: string;
|
|
1196
1197
|
name: string;
|
|
1197
1198
|
} | null | undefined;
|
|
1198
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1199
1199
|
canImpersonateUsers?: {
|
|
1200
|
-
lastName: string;
|
|
1201
|
-
firstName: string;
|
|
1202
1200
|
id: string;
|
|
1201
|
+
firstName: string;
|
|
1202
|
+
lastName: string;
|
|
1203
1203
|
}[] | undefined;
|
|
1204
1204
|
}, {
|
|
1205
|
-
|
|
1205
|
+
id: string;
|
|
1206
1206
|
firstName: string;
|
|
1207
|
+
lastName: string;
|
|
1207
1208
|
email: string;
|
|
1208
1209
|
createdAt: string | Date;
|
|
1209
|
-
id: string;
|
|
1210
1210
|
updatedAt: string | Date;
|
|
1211
|
-
office?: {
|
|
1212
|
-
id: string;
|
|
1213
|
-
name: string;
|
|
1214
|
-
} | null | undefined;
|
|
1215
1211
|
phoneNumbers?: {
|
|
1216
1212
|
id: string;
|
|
1217
1213
|
phoneNumber: string;
|
|
@@ -1219,10 +1215,14 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1219
1215
|
isPrimary?: boolean | undefined;
|
|
1220
1216
|
}[] | undefined;
|
|
1221
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
|
-
lastName: string;
|
|
1224
|
-
firstName: string;
|
|
1225
1223
|
id: string;
|
|
1224
|
+
firstName: string;
|
|
1225
|
+
lastName: string;
|
|
1226
1226
|
}[] | undefined;
|
|
1227
1227
|
}>>;
|
|
1228
1228
|
name: z.ZodString;
|
|
@@ -1238,13 +1238,13 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1238
1238
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1239
1239
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1240
1240
|
}, "strip", z.ZodTypeAny, {
|
|
1241
|
-
createdAt: string;
|
|
1242
1241
|
id: string;
|
|
1242
|
+
agentId: string;
|
|
1243
|
+
name: string;
|
|
1243
1244
|
phoneNumber: string;
|
|
1244
1245
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1245
|
-
|
|
1246
|
+
createdAt: string;
|
|
1246
1247
|
updatedAt: string;
|
|
1247
|
-
agentId: string;
|
|
1248
1248
|
callCount: number;
|
|
1249
1249
|
lastCalledAt: string | null;
|
|
1250
1250
|
cooldownUntil: string | null;
|
|
@@ -1253,37 +1253,37 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1253
1253
|
existsInLeadsTable: boolean;
|
|
1254
1254
|
originalLeadId: string | null;
|
|
1255
1255
|
agent?: {
|
|
1256
|
-
|
|
1256
|
+
id: string;
|
|
1257
1257
|
firstName: string;
|
|
1258
|
+
lastName: string;
|
|
1258
1259
|
email: string;
|
|
1259
|
-
createdAt: string;
|
|
1260
|
-
id: string;
|
|
1261
1260
|
phoneNumbers: {
|
|
1262
1261
|
id: string;
|
|
1263
1262
|
phoneNumber: string;
|
|
1264
1263
|
isPrimary: boolean;
|
|
1265
1264
|
description?: string | null | undefined;
|
|
1266
1265
|
}[];
|
|
1266
|
+
createdAt: string;
|
|
1267
1267
|
updatedAt: string;
|
|
1268
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1268
1269
|
office?: {
|
|
1269
1270
|
id: string;
|
|
1270
1271
|
name: string;
|
|
1271
1272
|
} | null | undefined;
|
|
1272
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1273
1273
|
canImpersonateUsers?: {
|
|
1274
|
-
lastName: string;
|
|
1275
|
-
firstName: string;
|
|
1276
1274
|
id: string;
|
|
1275
|
+
firstName: string;
|
|
1276
|
+
lastName: string;
|
|
1277
1277
|
}[] | undefined;
|
|
1278
1278
|
} | undefined;
|
|
1279
1279
|
}, {
|
|
1280
|
-
createdAt: string | Date;
|
|
1281
1280
|
id: string;
|
|
1281
|
+
agentId: string;
|
|
1282
|
+
name: string;
|
|
1282
1283
|
phoneNumber: string;
|
|
1283
1284
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1284
|
-
|
|
1285
|
+
createdAt: string | Date;
|
|
1285
1286
|
updatedAt: string | Date;
|
|
1286
|
-
agentId: string;
|
|
1287
1287
|
callCount: number;
|
|
1288
1288
|
lastCalledAt: string | Date | null;
|
|
1289
1289
|
cooldownUntil: string | Date | null;
|
|
@@ -1292,16 +1292,12 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1292
1292
|
existsInLeadsTable: boolean;
|
|
1293
1293
|
originalLeadId: string | null;
|
|
1294
1294
|
agent?: {
|
|
1295
|
-
|
|
1295
|
+
id: string;
|
|
1296
1296
|
firstName: string;
|
|
1297
|
+
lastName: string;
|
|
1297
1298
|
email: string;
|
|
1298
1299
|
createdAt: string | Date;
|
|
1299
|
-
id: string;
|
|
1300
1300
|
updatedAt: string | Date;
|
|
1301
|
-
office?: {
|
|
1302
|
-
id: string;
|
|
1303
|
-
name: string;
|
|
1304
|
-
} | null | undefined;
|
|
1305
1301
|
phoneNumbers?: {
|
|
1306
1302
|
id: string;
|
|
1307
1303
|
phoneNumber: string;
|
|
@@ -1309,22 +1305,26 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1309
1305
|
isPrimary?: boolean | undefined;
|
|
1310
1306
|
}[] | undefined;
|
|
1311
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
|
-
lastName: string;
|
|
1314
|
-
firstName: string;
|
|
1315
1313
|
id: string;
|
|
1314
|
+
firstName: string;
|
|
1315
|
+
lastName: string;
|
|
1316
1316
|
}[] | undefined;
|
|
1317
1317
|
} | undefined;
|
|
1318
1318
|
}>;
|
|
1319
1319
|
}, "strip", z.ZodTypeAny, {
|
|
1320
1320
|
ownResearchLead: {
|
|
1321
|
-
createdAt: string;
|
|
1322
1321
|
id: string;
|
|
1322
|
+
agentId: string;
|
|
1323
|
+
name: string;
|
|
1323
1324
|
phoneNumber: string;
|
|
1324
1325
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1325
|
-
|
|
1326
|
+
createdAt: string;
|
|
1326
1327
|
updatedAt: string;
|
|
1327
|
-
agentId: string;
|
|
1328
1328
|
callCount: number;
|
|
1329
1329
|
lastCalledAt: string | null;
|
|
1330
1330
|
cooldownUntil: string | null;
|
|
@@ -1333,39 +1333,39 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1333
1333
|
existsInLeadsTable: boolean;
|
|
1334
1334
|
originalLeadId: string | null;
|
|
1335
1335
|
agent?: {
|
|
1336
|
-
|
|
1336
|
+
id: string;
|
|
1337
1337
|
firstName: string;
|
|
1338
|
+
lastName: string;
|
|
1338
1339
|
email: string;
|
|
1339
|
-
createdAt: string;
|
|
1340
|
-
id: string;
|
|
1341
1340
|
phoneNumbers: {
|
|
1342
1341
|
id: string;
|
|
1343
1342
|
phoneNumber: string;
|
|
1344
1343
|
isPrimary: boolean;
|
|
1345
1344
|
description?: string | null | undefined;
|
|
1346
1345
|
}[];
|
|
1346
|
+
createdAt: string;
|
|
1347
1347
|
updatedAt: string;
|
|
1348
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1348
1349
|
office?: {
|
|
1349
1350
|
id: string;
|
|
1350
1351
|
name: string;
|
|
1351
1352
|
} | null | undefined;
|
|
1352
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1353
1353
|
canImpersonateUsers?: {
|
|
1354
|
-
lastName: string;
|
|
1355
|
-
firstName: string;
|
|
1356
1354
|
id: string;
|
|
1355
|
+
firstName: string;
|
|
1356
|
+
lastName: string;
|
|
1357
1357
|
}[] | undefined;
|
|
1358
1358
|
} | undefined;
|
|
1359
1359
|
};
|
|
1360
1360
|
}, {
|
|
1361
1361
|
ownResearchLead: {
|
|
1362
|
-
createdAt: string | Date;
|
|
1363
1362
|
id: string;
|
|
1363
|
+
agentId: string;
|
|
1364
|
+
name: string;
|
|
1364
1365
|
phoneNumber: string;
|
|
1365
1366
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1366
|
-
|
|
1367
|
+
createdAt: string | Date;
|
|
1367
1368
|
updatedAt: string | Date;
|
|
1368
|
-
agentId: string;
|
|
1369
1369
|
callCount: number;
|
|
1370
1370
|
lastCalledAt: string | Date | null;
|
|
1371
1371
|
cooldownUntil: string | Date | null;
|
|
@@ -1374,16 +1374,12 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1374
1374
|
existsInLeadsTable: boolean;
|
|
1375
1375
|
originalLeadId: string | null;
|
|
1376
1376
|
agent?: {
|
|
1377
|
-
|
|
1377
|
+
id: string;
|
|
1378
1378
|
firstName: string;
|
|
1379
|
+
lastName: string;
|
|
1379
1380
|
email: string;
|
|
1380
1381
|
createdAt: string | Date;
|
|
1381
|
-
id: string;
|
|
1382
1382
|
updatedAt: string | Date;
|
|
1383
|
-
office?: {
|
|
1384
|
-
id: string;
|
|
1385
|
-
name: string;
|
|
1386
|
-
} | null | undefined;
|
|
1387
1383
|
phoneNumbers?: {
|
|
1388
1384
|
id: string;
|
|
1389
1385
|
phoneNumber: string;
|
|
@@ -1391,10 +1387,14 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1391
1387
|
isPrimary?: boolean | undefined;
|
|
1392
1388
|
}[] | undefined;
|
|
1393
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
|
-
lastName: string;
|
|
1396
|
-
firstName: string;
|
|
1397
1395
|
id: string;
|
|
1396
|
+
firstName: string;
|
|
1397
|
+
lastName: string;
|
|
1398
1398
|
}[] | undefined;
|
|
1399
1399
|
} | undefined;
|
|
1400
1400
|
};
|
|
@@ -1433,10 +1433,10 @@ export declare const FilterOwnResearchLeadSchema: z.ZodObject<{
|
|
|
1433
1433
|
}, "strip", z.ZodTypeAny, {
|
|
1434
1434
|
limit: number;
|
|
1435
1435
|
page: number;
|
|
1436
|
+
name?: string | undefined;
|
|
1436
1437
|
phoneNumber?: string | undefined;
|
|
1437
1438
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1438
|
-
|
|
1439
|
-
sortBy?: "createdAt" | "name" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1439
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1440
1440
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1441
1441
|
lastCalledAt?: {
|
|
1442
1442
|
from?: string | null | undefined;
|
|
@@ -1444,12 +1444,12 @@ export declare const FilterOwnResearchLeadSchema: z.ZodObject<{
|
|
|
1444
1444
|
} | undefined;
|
|
1445
1445
|
minTotalCalls?: number | undefined;
|
|
1446
1446
|
}, {
|
|
1447
|
+
name?: string | undefined;
|
|
1447
1448
|
phoneNumber?: string | undefined;
|
|
1448
1449
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1449
|
-
name?: string | undefined;
|
|
1450
1450
|
limit?: number | undefined;
|
|
1451
1451
|
page?: number | undefined;
|
|
1452
|
-
sortBy?: "
|
|
1452
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1453
1453
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1454
1454
|
lastCalledAt?: {
|
|
1455
1455
|
from?: string | null | undefined;
|
|
@@ -1498,50 +1498,46 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1498
1498
|
firstName: z.ZodString;
|
|
1499
1499
|
lastName: z.ZodString;
|
|
1500
1500
|
}, "strip", z.ZodTypeAny, {
|
|
1501
|
-
lastName: string;
|
|
1502
|
-
firstName: string;
|
|
1503
1501
|
id: string;
|
|
1504
|
-
}, {
|
|
1505
|
-
lastName: string;
|
|
1506
1502
|
firstName: string;
|
|
1503
|
+
lastName: string;
|
|
1504
|
+
}, {
|
|
1507
1505
|
id: string;
|
|
1506
|
+
firstName: string;
|
|
1507
|
+
lastName: string;
|
|
1508
1508
|
}>, "many">>;
|
|
1509
1509
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1510
1510
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1511
1511
|
}, "strip", z.ZodTypeAny, {
|
|
1512
|
-
|
|
1512
|
+
id: string;
|
|
1513
1513
|
firstName: string;
|
|
1514
|
+
lastName: string;
|
|
1514
1515
|
email: string;
|
|
1515
|
-
createdAt: string;
|
|
1516
|
-
id: string;
|
|
1517
1516
|
phoneNumbers: {
|
|
1518
1517
|
id: string;
|
|
1519
1518
|
phoneNumber: string;
|
|
1520
1519
|
isPrimary: boolean;
|
|
1521
1520
|
description?: string | null | undefined;
|
|
1522
1521
|
}[];
|
|
1522
|
+
createdAt: string;
|
|
1523
1523
|
updatedAt: string;
|
|
1524
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1524
1525
|
office?: {
|
|
1525
1526
|
id: string;
|
|
1526
1527
|
name: string;
|
|
1527
1528
|
} | null | undefined;
|
|
1528
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1529
1529
|
canImpersonateUsers?: {
|
|
1530
|
-
lastName: string;
|
|
1531
|
-
firstName: string;
|
|
1532
1530
|
id: string;
|
|
1531
|
+
firstName: string;
|
|
1532
|
+
lastName: string;
|
|
1533
1533
|
}[] | undefined;
|
|
1534
1534
|
}, {
|
|
1535
|
-
|
|
1535
|
+
id: string;
|
|
1536
1536
|
firstName: string;
|
|
1537
|
+
lastName: string;
|
|
1537
1538
|
email: string;
|
|
1538
1539
|
createdAt: string | Date;
|
|
1539
|
-
id: string;
|
|
1540
1540
|
updatedAt: string | Date;
|
|
1541
|
-
office?: {
|
|
1542
|
-
id: string;
|
|
1543
|
-
name: string;
|
|
1544
|
-
} | null | undefined;
|
|
1545
1541
|
phoneNumbers?: {
|
|
1546
1542
|
id: string;
|
|
1547
1543
|
phoneNumber: string;
|
|
@@ -1549,10 +1545,14 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1549
1545
|
isPrimary?: boolean | undefined;
|
|
1550
1546
|
}[] | undefined;
|
|
1551
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
|
-
lastName: string;
|
|
1554
|
-
firstName: string;
|
|
1555
1553
|
id: string;
|
|
1554
|
+
firstName: string;
|
|
1555
|
+
lastName: string;
|
|
1556
1556
|
}[] | undefined;
|
|
1557
1557
|
}>>;
|
|
1558
1558
|
name: z.ZodString;
|
|
@@ -1568,13 +1568,13 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1568
1568
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1569
1569
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1570
1570
|
}, "strip", z.ZodTypeAny, {
|
|
1571
|
-
createdAt: string;
|
|
1572
1571
|
id: string;
|
|
1572
|
+
agentId: string;
|
|
1573
|
+
name: string;
|
|
1573
1574
|
phoneNumber: string;
|
|
1574
1575
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1575
|
-
|
|
1576
|
+
createdAt: string;
|
|
1576
1577
|
updatedAt: string;
|
|
1577
|
-
agentId: string;
|
|
1578
1578
|
callCount: number;
|
|
1579
1579
|
lastCalledAt: string | null;
|
|
1580
1580
|
cooldownUntil: string | null;
|
|
@@ -1583,37 +1583,37 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1583
1583
|
existsInLeadsTable: boolean;
|
|
1584
1584
|
originalLeadId: string | null;
|
|
1585
1585
|
agent?: {
|
|
1586
|
-
|
|
1586
|
+
id: string;
|
|
1587
1587
|
firstName: string;
|
|
1588
|
+
lastName: string;
|
|
1588
1589
|
email: string;
|
|
1589
|
-
createdAt: string;
|
|
1590
|
-
id: string;
|
|
1591
1590
|
phoneNumbers: {
|
|
1592
1591
|
id: string;
|
|
1593
1592
|
phoneNumber: string;
|
|
1594
1593
|
isPrimary: boolean;
|
|
1595
1594
|
description?: string | null | undefined;
|
|
1596
1595
|
}[];
|
|
1596
|
+
createdAt: string;
|
|
1597
1597
|
updatedAt: string;
|
|
1598
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1598
1599
|
office?: {
|
|
1599
1600
|
id: string;
|
|
1600
1601
|
name: string;
|
|
1601
1602
|
} | null | undefined;
|
|
1602
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1603
1603
|
canImpersonateUsers?: {
|
|
1604
|
-
lastName: string;
|
|
1605
|
-
firstName: string;
|
|
1606
1604
|
id: string;
|
|
1605
|
+
firstName: string;
|
|
1606
|
+
lastName: string;
|
|
1607
1607
|
}[] | undefined;
|
|
1608
1608
|
} | undefined;
|
|
1609
1609
|
}, {
|
|
1610
|
-
createdAt: string | Date;
|
|
1611
1610
|
id: string;
|
|
1611
|
+
agentId: string;
|
|
1612
|
+
name: string;
|
|
1612
1613
|
phoneNumber: string;
|
|
1613
1614
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1614
|
-
|
|
1615
|
+
createdAt: string | Date;
|
|
1615
1616
|
updatedAt: string | Date;
|
|
1616
|
-
agentId: string;
|
|
1617
1617
|
callCount: number;
|
|
1618
1618
|
lastCalledAt: string | Date | null;
|
|
1619
1619
|
cooldownUntil: string | Date | null;
|
|
@@ -1622,16 +1622,12 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1622
1622
|
existsInLeadsTable: boolean;
|
|
1623
1623
|
originalLeadId: string | null;
|
|
1624
1624
|
agent?: {
|
|
1625
|
-
|
|
1625
|
+
id: string;
|
|
1626
1626
|
firstName: string;
|
|
1627
|
+
lastName: string;
|
|
1627
1628
|
email: string;
|
|
1628
1629
|
createdAt: string | Date;
|
|
1629
|
-
id: string;
|
|
1630
1630
|
updatedAt: string | Date;
|
|
1631
|
-
office?: {
|
|
1632
|
-
id: string;
|
|
1633
|
-
name: string;
|
|
1634
|
-
} | null | undefined;
|
|
1635
1631
|
phoneNumbers?: {
|
|
1636
1632
|
id: string;
|
|
1637
1633
|
phoneNumber: string;
|
|
@@ -1639,10 +1635,14 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1639
1635
|
isPrimary?: boolean | undefined;
|
|
1640
1636
|
}[] | undefined;
|
|
1641
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
|
-
lastName: string;
|
|
1644
|
-
firstName: string;
|
|
1645
1643
|
id: string;
|
|
1644
|
+
firstName: string;
|
|
1645
|
+
lastName: string;
|
|
1646
1646
|
}[] | undefined;
|
|
1647
1647
|
} | undefined;
|
|
1648
1648
|
}>, "many">;
|
|
@@ -1652,15 +1652,14 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1652
1652
|
currentPage: z.ZodNumber;
|
|
1653
1653
|
totalPages: z.ZodNumber;
|
|
1654
1654
|
}, "strip", z.ZodTypeAny, {
|
|
1655
|
-
limit: number;
|
|
1656
1655
|
items: {
|
|
1657
|
-
createdAt: string;
|
|
1658
1656
|
id: string;
|
|
1657
|
+
agentId: string;
|
|
1658
|
+
name: string;
|
|
1659
1659
|
phoneNumber: string;
|
|
1660
1660
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1661
|
-
|
|
1661
|
+
createdAt: string;
|
|
1662
1662
|
updatedAt: string;
|
|
1663
|
-
agentId: string;
|
|
1664
1663
|
callCount: number;
|
|
1665
1664
|
lastCalledAt: string | null;
|
|
1666
1665
|
cooldownUntil: string | null;
|
|
@@ -1669,44 +1668,44 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1669
1668
|
existsInLeadsTable: boolean;
|
|
1670
1669
|
originalLeadId: string | null;
|
|
1671
1670
|
agent?: {
|
|
1672
|
-
|
|
1671
|
+
id: string;
|
|
1673
1672
|
firstName: string;
|
|
1673
|
+
lastName: string;
|
|
1674
1674
|
email: string;
|
|
1675
|
-
createdAt: string;
|
|
1676
|
-
id: string;
|
|
1677
1675
|
phoneNumbers: {
|
|
1678
1676
|
id: string;
|
|
1679
1677
|
phoneNumber: string;
|
|
1680
1678
|
isPrimary: boolean;
|
|
1681
1679
|
description?: string | null | undefined;
|
|
1682
1680
|
}[];
|
|
1681
|
+
createdAt: string;
|
|
1683
1682
|
updatedAt: string;
|
|
1683
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1684
1684
|
office?: {
|
|
1685
1685
|
id: string;
|
|
1686
1686
|
name: string;
|
|
1687
1687
|
} | null | undefined;
|
|
1688
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1689
1688
|
canImpersonateUsers?: {
|
|
1690
|
-
lastName: string;
|
|
1691
|
-
firstName: string;
|
|
1692
1689
|
id: string;
|
|
1690
|
+
firstName: string;
|
|
1691
|
+
lastName: string;
|
|
1693
1692
|
}[] | undefined;
|
|
1694
1693
|
} | undefined;
|
|
1695
1694
|
}[];
|
|
1696
1695
|
totalCount: number;
|
|
1696
|
+
limit: number;
|
|
1697
1697
|
skip: number;
|
|
1698
1698
|
currentPage: number;
|
|
1699
1699
|
totalPages: number;
|
|
1700
1700
|
}, {
|
|
1701
|
-
limit: number;
|
|
1702
1701
|
items: {
|
|
1703
|
-
createdAt: string | Date;
|
|
1704
1702
|
id: string;
|
|
1703
|
+
agentId: string;
|
|
1704
|
+
name: string;
|
|
1705
1705
|
phoneNumber: string;
|
|
1706
1706
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
1707
|
-
|
|
1707
|
+
createdAt: string | Date;
|
|
1708
1708
|
updatedAt: string | Date;
|
|
1709
|
-
agentId: string;
|
|
1710
1709
|
callCount: number;
|
|
1711
1710
|
lastCalledAt: string | Date | null;
|
|
1712
1711
|
cooldownUntil: string | Date | null;
|
|
@@ -1715,16 +1714,12 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1715
1714
|
existsInLeadsTable: boolean;
|
|
1716
1715
|
originalLeadId: string | null;
|
|
1717
1716
|
agent?: {
|
|
1718
|
-
|
|
1717
|
+
id: string;
|
|
1719
1718
|
firstName: string;
|
|
1719
|
+
lastName: string;
|
|
1720
1720
|
email: string;
|
|
1721
1721
|
createdAt: string | Date;
|
|
1722
|
-
id: string;
|
|
1723
1722
|
updatedAt: string | Date;
|
|
1724
|
-
office?: {
|
|
1725
|
-
id: string;
|
|
1726
|
-
name: string;
|
|
1727
|
-
} | null | undefined;
|
|
1728
1723
|
phoneNumbers?: {
|
|
1729
1724
|
id: string;
|
|
1730
1725
|
phoneNumber: string;
|
|
@@ -1732,14 +1727,19 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1732
1727
|
isPrimary?: boolean | undefined;
|
|
1733
1728
|
}[] | undefined;
|
|
1734
1729
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1730
|
+
office?: {
|
|
1731
|
+
id: string;
|
|
1732
|
+
name: string;
|
|
1733
|
+
} | null | undefined;
|
|
1735
1734
|
canImpersonateUsers?: {
|
|
1736
|
-
lastName: string;
|
|
1737
|
-
firstName: string;
|
|
1738
1735
|
id: string;
|
|
1736
|
+
firstName: string;
|
|
1737
|
+
lastName: string;
|
|
1739
1738
|
}[] | undefined;
|
|
1740
1739
|
} | undefined;
|
|
1741
1740
|
}[];
|
|
1742
1741
|
totalCount: number;
|
|
1742
|
+
limit: number;
|
|
1743
1743
|
skip: number;
|
|
1744
1744
|
currentPage: number;
|
|
1745
1745
|
totalPages: number;
|
|
@@ -1902,10 +1902,10 @@ export declare const ownResearchContract: {
|
|
|
1902
1902
|
}, "strip", z.ZodTypeAny, {
|
|
1903
1903
|
limit: number;
|
|
1904
1904
|
page: number;
|
|
1905
|
+
name?: string | undefined;
|
|
1905
1906
|
phoneNumber?: string | undefined;
|
|
1906
1907
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1907
|
-
|
|
1908
|
-
sortBy?: "createdAt" | "name" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1908
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1909
1909
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1910
1910
|
lastCalledAt?: {
|
|
1911
1911
|
from?: string | null | undefined;
|
|
@@ -1913,12 +1913,12 @@ export declare const ownResearchContract: {
|
|
|
1913
1913
|
} | undefined;
|
|
1914
1914
|
minTotalCalls?: number | undefined;
|
|
1915
1915
|
}, {
|
|
1916
|
+
name?: string | undefined;
|
|
1916
1917
|
phoneNumber?: string | undefined;
|
|
1917
1918
|
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
|
|
1918
|
-
name?: string | undefined;
|
|
1919
1919
|
limit?: number | undefined;
|
|
1920
1920
|
page?: number | undefined;
|
|
1921
|
-
sortBy?: "
|
|
1921
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1922
1922
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1923
1923
|
lastCalledAt?: {
|
|
1924
1924
|
from?: string | null | undefined;
|
|
@@ -2071,50 +2071,46 @@ export declare const ownResearchContract: {
|
|
|
2071
2071
|
firstName: z.ZodString;
|
|
2072
2072
|
lastName: z.ZodString;
|
|
2073
2073
|
}, "strip", z.ZodTypeAny, {
|
|
2074
|
-
lastName: string;
|
|
2075
|
-
firstName: string;
|
|
2076
2074
|
id: string;
|
|
2077
|
-
}, {
|
|
2078
|
-
lastName: string;
|
|
2079
2075
|
firstName: string;
|
|
2076
|
+
lastName: string;
|
|
2077
|
+
}, {
|
|
2080
2078
|
id: string;
|
|
2079
|
+
firstName: string;
|
|
2080
|
+
lastName: string;
|
|
2081
2081
|
}>, "many">>;
|
|
2082
2082
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2083
2083
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2084
2084
|
}, "strip", z.ZodTypeAny, {
|
|
2085
|
-
|
|
2085
|
+
id: string;
|
|
2086
2086
|
firstName: string;
|
|
2087
|
+
lastName: string;
|
|
2087
2088
|
email: string;
|
|
2088
|
-
createdAt: string;
|
|
2089
|
-
id: string;
|
|
2090
2089
|
phoneNumbers: {
|
|
2091
2090
|
id: string;
|
|
2092
2091
|
phoneNumber: string;
|
|
2093
2092
|
isPrimary: boolean;
|
|
2094
2093
|
description?: string | null | undefined;
|
|
2095
2094
|
}[];
|
|
2095
|
+
createdAt: string;
|
|
2096
2096
|
updatedAt: string;
|
|
2097
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2097
2098
|
office?: {
|
|
2098
2099
|
id: string;
|
|
2099
2100
|
name: string;
|
|
2100
2101
|
} | null | undefined;
|
|
2101
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2102
2102
|
canImpersonateUsers?: {
|
|
2103
|
-
lastName: string;
|
|
2104
|
-
firstName: string;
|
|
2105
2103
|
id: string;
|
|
2104
|
+
firstName: string;
|
|
2105
|
+
lastName: string;
|
|
2106
2106
|
}[] | undefined;
|
|
2107
2107
|
}, {
|
|
2108
|
-
|
|
2108
|
+
id: string;
|
|
2109
2109
|
firstName: string;
|
|
2110
|
+
lastName: string;
|
|
2110
2111
|
email: string;
|
|
2111
2112
|
createdAt: string | Date;
|
|
2112
|
-
id: string;
|
|
2113
2113
|
updatedAt: string | Date;
|
|
2114
|
-
office?: {
|
|
2115
|
-
id: string;
|
|
2116
|
-
name: string;
|
|
2117
|
-
} | null | undefined;
|
|
2118
2114
|
phoneNumbers?: {
|
|
2119
2115
|
id: string;
|
|
2120
2116
|
phoneNumber: string;
|
|
@@ -2122,10 +2118,14 @@ export declare const ownResearchContract: {
|
|
|
2122
2118
|
isPrimary?: boolean | undefined;
|
|
2123
2119
|
}[] | undefined;
|
|
2124
2120
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2125
|
-
|
|
2126
|
-
lastName: string;
|
|
2127
|
-
firstName: string;
|
|
2121
|
+
office?: {
|
|
2128
2122
|
id: string;
|
|
2123
|
+
name: string;
|
|
2124
|
+
} | null | undefined;
|
|
2125
|
+
canImpersonateUsers?: {
|
|
2126
|
+
id: string;
|
|
2127
|
+
firstName: string;
|
|
2128
|
+
lastName: string;
|
|
2129
2129
|
}[] | undefined;
|
|
2130
2130
|
}>>;
|
|
2131
2131
|
name: z.ZodString;
|
|
@@ -2141,13 +2141,13 @@ export declare const ownResearchContract: {
|
|
|
2141
2141
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2142
2142
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2143
2143
|
}, "strip", z.ZodTypeAny, {
|
|
2144
|
-
createdAt: string;
|
|
2145
2144
|
id: string;
|
|
2145
|
+
agentId: string;
|
|
2146
|
+
name: string;
|
|
2146
2147
|
phoneNumber: string;
|
|
2147
2148
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2148
|
-
|
|
2149
|
+
createdAt: string;
|
|
2149
2150
|
updatedAt: string;
|
|
2150
|
-
agentId: string;
|
|
2151
2151
|
callCount: number;
|
|
2152
2152
|
lastCalledAt: string | null;
|
|
2153
2153
|
cooldownUntil: string | null;
|
|
@@ -2156,37 +2156,37 @@ export declare const ownResearchContract: {
|
|
|
2156
2156
|
existsInLeadsTable: boolean;
|
|
2157
2157
|
originalLeadId: string | null;
|
|
2158
2158
|
agent?: {
|
|
2159
|
-
|
|
2159
|
+
id: string;
|
|
2160
2160
|
firstName: string;
|
|
2161
|
+
lastName: string;
|
|
2161
2162
|
email: string;
|
|
2162
|
-
createdAt: string;
|
|
2163
|
-
id: string;
|
|
2164
2163
|
phoneNumbers: {
|
|
2165
2164
|
id: string;
|
|
2166
2165
|
phoneNumber: string;
|
|
2167
2166
|
isPrimary: boolean;
|
|
2168
2167
|
description?: string | null | undefined;
|
|
2169
2168
|
}[];
|
|
2169
|
+
createdAt: string;
|
|
2170
2170
|
updatedAt: string;
|
|
2171
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2171
2172
|
office?: {
|
|
2172
2173
|
id: string;
|
|
2173
2174
|
name: string;
|
|
2174
2175
|
} | null | undefined;
|
|
2175
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2176
2176
|
canImpersonateUsers?: {
|
|
2177
|
-
lastName: string;
|
|
2178
|
-
firstName: string;
|
|
2179
2177
|
id: string;
|
|
2178
|
+
firstName: string;
|
|
2179
|
+
lastName: string;
|
|
2180
2180
|
}[] | undefined;
|
|
2181
2181
|
} | undefined;
|
|
2182
2182
|
}, {
|
|
2183
|
-
createdAt: string | Date;
|
|
2184
2183
|
id: string;
|
|
2184
|
+
agentId: string;
|
|
2185
|
+
name: string;
|
|
2185
2186
|
phoneNumber: string;
|
|
2186
2187
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2187
|
-
|
|
2188
|
+
createdAt: string | Date;
|
|
2188
2189
|
updatedAt: string | Date;
|
|
2189
|
-
agentId: string;
|
|
2190
2190
|
callCount: number;
|
|
2191
2191
|
lastCalledAt: string | Date | null;
|
|
2192
2192
|
cooldownUntil: string | Date | null;
|
|
@@ -2195,16 +2195,12 @@ export declare const ownResearchContract: {
|
|
|
2195
2195
|
existsInLeadsTable: boolean;
|
|
2196
2196
|
originalLeadId: string | null;
|
|
2197
2197
|
agent?: {
|
|
2198
|
-
|
|
2198
|
+
id: string;
|
|
2199
2199
|
firstName: string;
|
|
2200
|
+
lastName: string;
|
|
2200
2201
|
email: string;
|
|
2201
2202
|
createdAt: string | Date;
|
|
2202
|
-
id: string;
|
|
2203
2203
|
updatedAt: string | Date;
|
|
2204
|
-
office?: {
|
|
2205
|
-
id: string;
|
|
2206
|
-
name: string;
|
|
2207
|
-
} | null | undefined;
|
|
2208
2204
|
phoneNumbers?: {
|
|
2209
2205
|
id: string;
|
|
2210
2206
|
phoneNumber: string;
|
|
@@ -2212,10 +2208,14 @@ export declare const ownResearchContract: {
|
|
|
2212
2208
|
isPrimary?: boolean | undefined;
|
|
2213
2209
|
}[] | undefined;
|
|
2214
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
|
-
lastName: string;
|
|
2217
|
-
firstName: string;
|
|
2218
2216
|
id: string;
|
|
2217
|
+
firstName: string;
|
|
2218
|
+
lastName: string;
|
|
2219
2219
|
}[] | undefined;
|
|
2220
2220
|
} | undefined;
|
|
2221
2221
|
}>, "many">;
|
|
@@ -2225,15 +2225,14 @@ export declare const ownResearchContract: {
|
|
|
2225
2225
|
currentPage: z.ZodNumber;
|
|
2226
2226
|
totalPages: z.ZodNumber;
|
|
2227
2227
|
}, "strip", z.ZodTypeAny, {
|
|
2228
|
-
limit: number;
|
|
2229
2228
|
items: {
|
|
2230
|
-
createdAt: string;
|
|
2231
2229
|
id: string;
|
|
2230
|
+
agentId: string;
|
|
2231
|
+
name: string;
|
|
2232
2232
|
phoneNumber: string;
|
|
2233
2233
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2234
|
-
|
|
2234
|
+
createdAt: string;
|
|
2235
2235
|
updatedAt: string;
|
|
2236
|
-
agentId: string;
|
|
2237
2236
|
callCount: number;
|
|
2238
2237
|
lastCalledAt: string | null;
|
|
2239
2238
|
cooldownUntil: string | null;
|
|
@@ -2242,44 +2241,44 @@ export declare const ownResearchContract: {
|
|
|
2242
2241
|
existsInLeadsTable: boolean;
|
|
2243
2242
|
originalLeadId: string | null;
|
|
2244
2243
|
agent?: {
|
|
2245
|
-
|
|
2244
|
+
id: string;
|
|
2246
2245
|
firstName: string;
|
|
2246
|
+
lastName: string;
|
|
2247
2247
|
email: string;
|
|
2248
|
-
createdAt: string;
|
|
2249
|
-
id: string;
|
|
2250
2248
|
phoneNumbers: {
|
|
2251
2249
|
id: string;
|
|
2252
2250
|
phoneNumber: string;
|
|
2253
2251
|
isPrimary: boolean;
|
|
2254
2252
|
description?: string | null | undefined;
|
|
2255
2253
|
}[];
|
|
2254
|
+
createdAt: string;
|
|
2256
2255
|
updatedAt: string;
|
|
2256
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2257
2257
|
office?: {
|
|
2258
2258
|
id: string;
|
|
2259
2259
|
name: string;
|
|
2260
2260
|
} | null | undefined;
|
|
2261
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2262
2261
|
canImpersonateUsers?: {
|
|
2263
|
-
lastName: string;
|
|
2264
|
-
firstName: string;
|
|
2265
2262
|
id: string;
|
|
2263
|
+
firstName: string;
|
|
2264
|
+
lastName: string;
|
|
2266
2265
|
}[] | undefined;
|
|
2267
2266
|
} | undefined;
|
|
2268
2267
|
}[];
|
|
2269
2268
|
totalCount: number;
|
|
2269
|
+
limit: number;
|
|
2270
2270
|
skip: number;
|
|
2271
2271
|
currentPage: number;
|
|
2272
2272
|
totalPages: number;
|
|
2273
2273
|
}, {
|
|
2274
|
-
limit: number;
|
|
2275
2274
|
items: {
|
|
2276
|
-
createdAt: string | Date;
|
|
2277
2275
|
id: string;
|
|
2276
|
+
agentId: string;
|
|
2277
|
+
name: string;
|
|
2278
2278
|
phoneNumber: string;
|
|
2279
2279
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2280
|
-
|
|
2280
|
+
createdAt: string | Date;
|
|
2281
2281
|
updatedAt: string | Date;
|
|
2282
|
-
agentId: string;
|
|
2283
2282
|
callCount: number;
|
|
2284
2283
|
lastCalledAt: string | Date | null;
|
|
2285
2284
|
cooldownUntil: string | Date | null;
|
|
@@ -2288,16 +2287,12 @@ export declare const ownResearchContract: {
|
|
|
2288
2287
|
existsInLeadsTable: boolean;
|
|
2289
2288
|
originalLeadId: string | null;
|
|
2290
2289
|
agent?: {
|
|
2291
|
-
|
|
2290
|
+
id: string;
|
|
2292
2291
|
firstName: string;
|
|
2292
|
+
lastName: string;
|
|
2293
2293
|
email: string;
|
|
2294
2294
|
createdAt: string | Date;
|
|
2295
|
-
id: string;
|
|
2296
2295
|
updatedAt: string | Date;
|
|
2297
|
-
office?: {
|
|
2298
|
-
id: string;
|
|
2299
|
-
name: string;
|
|
2300
|
-
} | null | undefined;
|
|
2301
2296
|
phoneNumbers?: {
|
|
2302
2297
|
id: string;
|
|
2303
2298
|
phoneNumber: string;
|
|
@@ -2305,14 +2300,19 @@ export declare const ownResearchContract: {
|
|
|
2305
2300
|
isPrimary?: boolean | undefined;
|
|
2306
2301
|
}[] | undefined;
|
|
2307
2302
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2303
|
+
office?: {
|
|
2304
|
+
id: string;
|
|
2305
|
+
name: string;
|
|
2306
|
+
} | null | undefined;
|
|
2308
2307
|
canImpersonateUsers?: {
|
|
2309
|
-
lastName: string;
|
|
2310
|
-
firstName: string;
|
|
2311
2308
|
id: string;
|
|
2309
|
+
firstName: string;
|
|
2310
|
+
lastName: string;
|
|
2312
2311
|
}[] | undefined;
|
|
2313
2312
|
} | undefined;
|
|
2314
2313
|
}[];
|
|
2315
2314
|
totalCount: number;
|
|
2315
|
+
limit: number;
|
|
2316
2316
|
skip: number;
|
|
2317
2317
|
currentPage: number;
|
|
2318
2318
|
totalPages: number;
|
|
@@ -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;
|
|
2448
2449
|
phoneNumber: string;
|
|
2449
2450
|
status: string;
|
|
2450
|
-
name: string;
|
|
2451
2451
|
cooldownUntil: string | null;
|
|
2452
2452
|
}, {
|
|
2453
2453
|
id: string;
|
|
2454
|
+
name: string;
|
|
2454
2455
|
phoneNumber: string;
|
|
2455
2456
|
status: string;
|
|
2456
|
-
name: string;
|
|
2457
2457
|
cooldownUntil: string | Date | null;
|
|
2458
2458
|
}>>>;
|
|
2459
2459
|
ownResearchLead: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2496,50 +2496,46 @@ export declare const ownResearchContract: {
|
|
|
2496
2496
|
firstName: z.ZodString;
|
|
2497
2497
|
lastName: z.ZodString;
|
|
2498
2498
|
}, "strip", z.ZodTypeAny, {
|
|
2499
|
-
lastName: string;
|
|
2500
|
-
firstName: string;
|
|
2501
2499
|
id: string;
|
|
2502
|
-
}, {
|
|
2503
|
-
lastName: string;
|
|
2504
2500
|
firstName: string;
|
|
2501
|
+
lastName: string;
|
|
2502
|
+
}, {
|
|
2505
2503
|
id: string;
|
|
2504
|
+
firstName: string;
|
|
2505
|
+
lastName: string;
|
|
2506
2506
|
}>, "many">>;
|
|
2507
2507
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2508
2508
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2509
2509
|
}, "strip", z.ZodTypeAny, {
|
|
2510
|
-
|
|
2510
|
+
id: string;
|
|
2511
2511
|
firstName: string;
|
|
2512
|
+
lastName: string;
|
|
2512
2513
|
email: string;
|
|
2513
|
-
createdAt: string;
|
|
2514
|
-
id: string;
|
|
2515
2514
|
phoneNumbers: {
|
|
2516
2515
|
id: string;
|
|
2517
2516
|
phoneNumber: string;
|
|
2518
2517
|
isPrimary: boolean;
|
|
2519
2518
|
description?: string | null | undefined;
|
|
2520
2519
|
}[];
|
|
2520
|
+
createdAt: string;
|
|
2521
2521
|
updatedAt: string;
|
|
2522
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2522
2523
|
office?: {
|
|
2523
2524
|
id: string;
|
|
2524
2525
|
name: string;
|
|
2525
2526
|
} | null | undefined;
|
|
2526
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2527
2527
|
canImpersonateUsers?: {
|
|
2528
|
-
lastName: string;
|
|
2529
|
-
firstName: string;
|
|
2530
2528
|
id: string;
|
|
2529
|
+
firstName: string;
|
|
2530
|
+
lastName: string;
|
|
2531
2531
|
}[] | undefined;
|
|
2532
2532
|
}, {
|
|
2533
|
-
|
|
2533
|
+
id: string;
|
|
2534
2534
|
firstName: string;
|
|
2535
|
+
lastName: string;
|
|
2535
2536
|
email: string;
|
|
2536
2537
|
createdAt: string | Date;
|
|
2537
|
-
id: string;
|
|
2538
2538
|
updatedAt: string | Date;
|
|
2539
|
-
office?: {
|
|
2540
|
-
id: string;
|
|
2541
|
-
name: string;
|
|
2542
|
-
} | null | undefined;
|
|
2543
2539
|
phoneNumbers?: {
|
|
2544
2540
|
id: string;
|
|
2545
2541
|
phoneNumber: string;
|
|
@@ -2547,10 +2543,14 @@ export declare const ownResearchContract: {
|
|
|
2547
2543
|
isPrimary?: boolean | undefined;
|
|
2548
2544
|
}[] | undefined;
|
|
2549
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
|
-
lastName: string;
|
|
2552
|
-
firstName: string;
|
|
2553
2551
|
id: string;
|
|
2552
|
+
firstName: string;
|
|
2553
|
+
lastName: string;
|
|
2554
2554
|
}[] | undefined;
|
|
2555
2555
|
}>>;
|
|
2556
2556
|
name: z.ZodString;
|
|
@@ -2566,13 +2566,13 @@ export declare const ownResearchContract: {
|
|
|
2566
2566
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2567
2567
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2568
2568
|
}, "strip", z.ZodTypeAny, {
|
|
2569
|
-
createdAt: string;
|
|
2570
2569
|
id: string;
|
|
2570
|
+
agentId: string;
|
|
2571
|
+
name: string;
|
|
2571
2572
|
phoneNumber: string;
|
|
2572
2573
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2573
|
-
|
|
2574
|
+
createdAt: string;
|
|
2574
2575
|
updatedAt: string;
|
|
2575
|
-
agentId: string;
|
|
2576
2576
|
callCount: number;
|
|
2577
2577
|
lastCalledAt: string | null;
|
|
2578
2578
|
cooldownUntil: string | null;
|
|
@@ -2581,37 +2581,37 @@ export declare const ownResearchContract: {
|
|
|
2581
2581
|
existsInLeadsTable: boolean;
|
|
2582
2582
|
originalLeadId: string | null;
|
|
2583
2583
|
agent?: {
|
|
2584
|
-
|
|
2584
|
+
id: string;
|
|
2585
2585
|
firstName: string;
|
|
2586
|
+
lastName: string;
|
|
2586
2587
|
email: string;
|
|
2587
|
-
createdAt: string;
|
|
2588
|
-
id: string;
|
|
2589
2588
|
phoneNumbers: {
|
|
2590
2589
|
id: string;
|
|
2591
2590
|
phoneNumber: string;
|
|
2592
2591
|
isPrimary: boolean;
|
|
2593
2592
|
description?: string | null | undefined;
|
|
2594
2593
|
}[];
|
|
2594
|
+
createdAt: string;
|
|
2595
2595
|
updatedAt: string;
|
|
2596
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2596
2597
|
office?: {
|
|
2597
2598
|
id: string;
|
|
2598
2599
|
name: string;
|
|
2599
2600
|
} | null | undefined;
|
|
2600
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2601
2601
|
canImpersonateUsers?: {
|
|
2602
|
-
lastName: string;
|
|
2603
|
-
firstName: string;
|
|
2604
2602
|
id: string;
|
|
2603
|
+
firstName: string;
|
|
2604
|
+
lastName: string;
|
|
2605
2605
|
}[] | undefined;
|
|
2606
2606
|
} | undefined;
|
|
2607
2607
|
}, {
|
|
2608
|
-
createdAt: string | Date;
|
|
2609
2608
|
id: string;
|
|
2609
|
+
agentId: string;
|
|
2610
|
+
name: string;
|
|
2610
2611
|
phoneNumber: string;
|
|
2611
2612
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2612
|
-
|
|
2613
|
+
createdAt: string | Date;
|
|
2613
2614
|
updatedAt: string | Date;
|
|
2614
|
-
agentId: string;
|
|
2615
2615
|
callCount: number;
|
|
2616
2616
|
lastCalledAt: string | Date | null;
|
|
2617
2617
|
cooldownUntil: string | Date | null;
|
|
@@ -2620,16 +2620,12 @@ export declare const ownResearchContract: {
|
|
|
2620
2620
|
existsInLeadsTable: boolean;
|
|
2621
2621
|
originalLeadId: string | null;
|
|
2622
2622
|
agent?: {
|
|
2623
|
-
|
|
2623
|
+
id: string;
|
|
2624
2624
|
firstName: string;
|
|
2625
|
+
lastName: string;
|
|
2625
2626
|
email: string;
|
|
2626
2627
|
createdAt: string | Date;
|
|
2627
|
-
id: string;
|
|
2628
2628
|
updatedAt: string | Date;
|
|
2629
|
-
office?: {
|
|
2630
|
-
id: string;
|
|
2631
|
-
name: string;
|
|
2632
|
-
} | null | undefined;
|
|
2633
2629
|
phoneNumbers?: {
|
|
2634
2630
|
id: string;
|
|
2635
2631
|
phoneNumber: string;
|
|
@@ -2637,10 +2633,14 @@ export declare const ownResearchContract: {
|
|
|
2637
2633
|
isPrimary?: boolean | undefined;
|
|
2638
2634
|
}[] | undefined;
|
|
2639
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
|
-
lastName: string;
|
|
2642
|
-
firstName: string;
|
|
2643
2641
|
id: string;
|
|
2642
|
+
firstName: string;
|
|
2643
|
+
lastName: string;
|
|
2644
2644
|
}[] | undefined;
|
|
2645
2645
|
} | undefined;
|
|
2646
2646
|
}>>>;
|
|
@@ -2653,19 +2653,19 @@ export declare const ownResearchContract: {
|
|
|
2653
2653
|
isOnCooldown: boolean;
|
|
2654
2654
|
lead?: {
|
|
2655
2655
|
id: string;
|
|
2656
|
+
name: string;
|
|
2656
2657
|
phoneNumber: string;
|
|
2657
2658
|
status: string;
|
|
2658
|
-
name: string;
|
|
2659
2659
|
cooldownUntil: string | null;
|
|
2660
2660
|
} | null | undefined;
|
|
2661
2661
|
ownResearchLead?: {
|
|
2662
|
-
createdAt: string;
|
|
2663
2662
|
id: string;
|
|
2663
|
+
agentId: string;
|
|
2664
|
+
name: string;
|
|
2664
2665
|
phoneNumber: string;
|
|
2665
2666
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2666
|
-
|
|
2667
|
+
createdAt: string;
|
|
2667
2668
|
updatedAt: string;
|
|
2668
|
-
agentId: string;
|
|
2669
2669
|
callCount: number;
|
|
2670
2670
|
lastCalledAt: string | null;
|
|
2671
2671
|
cooldownUntil: string | null;
|
|
@@ -2674,27 +2674,27 @@ export declare const ownResearchContract: {
|
|
|
2674
2674
|
existsInLeadsTable: boolean;
|
|
2675
2675
|
originalLeadId: string | null;
|
|
2676
2676
|
agent?: {
|
|
2677
|
-
|
|
2677
|
+
id: string;
|
|
2678
2678
|
firstName: string;
|
|
2679
|
+
lastName: string;
|
|
2679
2680
|
email: string;
|
|
2680
|
-
createdAt: string;
|
|
2681
|
-
id: string;
|
|
2682
2681
|
phoneNumbers: {
|
|
2683
2682
|
id: string;
|
|
2684
2683
|
phoneNumber: string;
|
|
2685
2684
|
isPrimary: boolean;
|
|
2686
2685
|
description?: string | null | undefined;
|
|
2687
2686
|
}[];
|
|
2687
|
+
createdAt: string;
|
|
2688
2688
|
updatedAt: string;
|
|
2689
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2689
2690
|
office?: {
|
|
2690
2691
|
id: string;
|
|
2691
2692
|
name: string;
|
|
2692
2693
|
} | null | undefined;
|
|
2693
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2694
2694
|
canImpersonateUsers?: {
|
|
2695
|
-
lastName: string;
|
|
2696
|
-
firstName: string;
|
|
2697
2695
|
id: string;
|
|
2696
|
+
firstName: string;
|
|
2697
|
+
lastName: string;
|
|
2698
2698
|
}[] | undefined;
|
|
2699
2699
|
} | undefined;
|
|
2700
2700
|
} | null | undefined;
|
|
@@ -2705,19 +2705,19 @@ export declare const ownResearchContract: {
|
|
|
2705
2705
|
isOnCooldown: boolean;
|
|
2706
2706
|
lead?: {
|
|
2707
2707
|
id: string;
|
|
2708
|
+
name: string;
|
|
2708
2709
|
phoneNumber: string;
|
|
2709
2710
|
status: string;
|
|
2710
|
-
name: string;
|
|
2711
2711
|
cooldownUntil: string | Date | null;
|
|
2712
2712
|
} | null | undefined;
|
|
2713
2713
|
ownResearchLead?: {
|
|
2714
|
-
createdAt: string | Date;
|
|
2715
2714
|
id: string;
|
|
2715
|
+
agentId: string;
|
|
2716
|
+
name: string;
|
|
2716
2717
|
phoneNumber: string;
|
|
2717
2718
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2718
|
-
|
|
2719
|
+
createdAt: string | Date;
|
|
2719
2720
|
updatedAt: string | Date;
|
|
2720
|
-
agentId: string;
|
|
2721
2721
|
callCount: number;
|
|
2722
2722
|
lastCalledAt: string | Date | null;
|
|
2723
2723
|
cooldownUntil: string | Date | null;
|
|
@@ -2726,16 +2726,12 @@ export declare const ownResearchContract: {
|
|
|
2726
2726
|
existsInLeadsTable: boolean;
|
|
2727
2727
|
originalLeadId: string | null;
|
|
2728
2728
|
agent?: {
|
|
2729
|
-
|
|
2729
|
+
id: string;
|
|
2730
2730
|
firstName: string;
|
|
2731
|
+
lastName: string;
|
|
2731
2732
|
email: string;
|
|
2732
2733
|
createdAt: string | Date;
|
|
2733
|
-
id: string;
|
|
2734
2734
|
updatedAt: string | Date;
|
|
2735
|
-
office?: {
|
|
2736
|
-
id: string;
|
|
2737
|
-
name: string;
|
|
2738
|
-
} | null | undefined;
|
|
2739
2735
|
phoneNumbers?: {
|
|
2740
2736
|
id: string;
|
|
2741
2737
|
phoneNumber: string;
|
|
@@ -2743,10 +2739,14 @@ export declare const ownResearchContract: {
|
|
|
2743
2739
|
isPrimary?: boolean | undefined;
|
|
2744
2740
|
}[] | undefined;
|
|
2745
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
|
-
lastName: string;
|
|
2748
|
-
firstName: string;
|
|
2749
2747
|
id: string;
|
|
2748
|
+
firstName: string;
|
|
2749
|
+
lastName: string;
|
|
2750
2750
|
}[] | undefined;
|
|
2751
2751
|
} | undefined;
|
|
2752
2752
|
} | null | undefined;
|
|
@@ -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
|
-
phoneNumber: string;
|
|
2767
2766
|
name: string;
|
|
2768
|
-
}, {
|
|
2769
2767
|
phoneNumber: string;
|
|
2768
|
+
}, {
|
|
2770
2769
|
name: string;
|
|
2770
|
+
phoneNumber: string;
|
|
2771
2771
|
}>;
|
|
2772
2772
|
path: "/v2/own-research/leads";
|
|
2773
2773
|
responses: {
|
|
@@ -2912,50 +2912,46 @@ export declare const ownResearchContract: {
|
|
|
2912
2912
|
firstName: z.ZodString;
|
|
2913
2913
|
lastName: z.ZodString;
|
|
2914
2914
|
}, "strip", z.ZodTypeAny, {
|
|
2915
|
-
lastName: string;
|
|
2916
|
-
firstName: string;
|
|
2917
2915
|
id: string;
|
|
2918
|
-
}, {
|
|
2919
|
-
lastName: string;
|
|
2920
2916
|
firstName: string;
|
|
2917
|
+
lastName: string;
|
|
2918
|
+
}, {
|
|
2921
2919
|
id: string;
|
|
2920
|
+
firstName: string;
|
|
2921
|
+
lastName: string;
|
|
2922
2922
|
}>, "many">>;
|
|
2923
2923
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2924
2924
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2925
2925
|
}, "strip", z.ZodTypeAny, {
|
|
2926
|
-
|
|
2926
|
+
id: string;
|
|
2927
2927
|
firstName: string;
|
|
2928
|
+
lastName: string;
|
|
2928
2929
|
email: string;
|
|
2929
|
-
createdAt: string;
|
|
2930
|
-
id: string;
|
|
2931
2930
|
phoneNumbers: {
|
|
2932
2931
|
id: string;
|
|
2933
2932
|
phoneNumber: string;
|
|
2934
2933
|
isPrimary: boolean;
|
|
2935
2934
|
description?: string | null | undefined;
|
|
2936
2935
|
}[];
|
|
2936
|
+
createdAt: string;
|
|
2937
2937
|
updatedAt: string;
|
|
2938
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2938
2939
|
office?: {
|
|
2939
2940
|
id: string;
|
|
2940
2941
|
name: string;
|
|
2941
2942
|
} | null | undefined;
|
|
2942
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2943
2943
|
canImpersonateUsers?: {
|
|
2944
|
-
lastName: string;
|
|
2945
|
-
firstName: string;
|
|
2946
2944
|
id: string;
|
|
2945
|
+
firstName: string;
|
|
2946
|
+
lastName: string;
|
|
2947
2947
|
}[] | undefined;
|
|
2948
2948
|
}, {
|
|
2949
|
-
|
|
2949
|
+
id: string;
|
|
2950
2950
|
firstName: string;
|
|
2951
|
+
lastName: string;
|
|
2951
2952
|
email: string;
|
|
2952
2953
|
createdAt: string | Date;
|
|
2953
|
-
id: string;
|
|
2954
2954
|
updatedAt: string | Date;
|
|
2955
|
-
office?: {
|
|
2956
|
-
id: string;
|
|
2957
|
-
name: string;
|
|
2958
|
-
} | null | undefined;
|
|
2959
2955
|
phoneNumbers?: {
|
|
2960
2956
|
id: string;
|
|
2961
2957
|
phoneNumber: string;
|
|
@@ -2963,10 +2959,14 @@ export declare const ownResearchContract: {
|
|
|
2963
2959
|
isPrimary?: boolean | undefined;
|
|
2964
2960
|
}[] | undefined;
|
|
2965
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
|
-
lastName: string;
|
|
2968
|
-
firstName: string;
|
|
2969
2967
|
id: string;
|
|
2968
|
+
firstName: string;
|
|
2969
|
+
lastName: string;
|
|
2970
2970
|
}[] | undefined;
|
|
2971
2971
|
}>>;
|
|
2972
2972
|
name: z.ZodString;
|
|
@@ -2982,13 +2982,13 @@ export declare const ownResearchContract: {
|
|
|
2982
2982
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2983
2983
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2984
2984
|
}, "strip", z.ZodTypeAny, {
|
|
2985
|
-
createdAt: string;
|
|
2986
2985
|
id: string;
|
|
2987
|
-
|
|
2988
|
-
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2986
|
+
agentId: string;
|
|
2989
2987
|
name: string;
|
|
2988
|
+
phoneNumber: string;
|
|
2989
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
2990
|
+
createdAt: string;
|
|
2990
2991
|
updatedAt: string;
|
|
2991
|
-
agentId: string;
|
|
2992
2992
|
callCount: number;
|
|
2993
2993
|
lastCalledAt: string | null;
|
|
2994
2994
|
cooldownUntil: string | null;
|
|
@@ -2997,37 +2997,37 @@ export declare const ownResearchContract: {
|
|
|
2997
2997
|
existsInLeadsTable: boolean;
|
|
2998
2998
|
originalLeadId: string | null;
|
|
2999
2999
|
agent?: {
|
|
3000
|
-
|
|
3000
|
+
id: string;
|
|
3001
3001
|
firstName: string;
|
|
3002
|
+
lastName: string;
|
|
3002
3003
|
email: string;
|
|
3003
|
-
createdAt: string;
|
|
3004
|
-
id: string;
|
|
3005
3004
|
phoneNumbers: {
|
|
3006
3005
|
id: string;
|
|
3007
3006
|
phoneNumber: string;
|
|
3008
3007
|
isPrimary: boolean;
|
|
3009
3008
|
description?: string | null | undefined;
|
|
3010
3009
|
}[];
|
|
3010
|
+
createdAt: string;
|
|
3011
3011
|
updatedAt: string;
|
|
3012
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3012
3013
|
office?: {
|
|
3013
3014
|
id: string;
|
|
3014
3015
|
name: string;
|
|
3015
3016
|
} | null | undefined;
|
|
3016
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3017
3017
|
canImpersonateUsers?: {
|
|
3018
|
-
lastName: string;
|
|
3019
|
-
firstName: string;
|
|
3020
3018
|
id: string;
|
|
3019
|
+
firstName: string;
|
|
3020
|
+
lastName: string;
|
|
3021
3021
|
}[] | undefined;
|
|
3022
3022
|
} | undefined;
|
|
3023
3023
|
}, {
|
|
3024
|
-
createdAt: string | Date;
|
|
3025
3024
|
id: string;
|
|
3025
|
+
agentId: string;
|
|
3026
|
+
name: string;
|
|
3026
3027
|
phoneNumber: string;
|
|
3027
3028
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3028
|
-
|
|
3029
|
+
createdAt: string | Date;
|
|
3029
3030
|
updatedAt: string | Date;
|
|
3030
|
-
agentId: string;
|
|
3031
3031
|
callCount: number;
|
|
3032
3032
|
lastCalledAt: string | Date | null;
|
|
3033
3033
|
cooldownUntil: string | Date | null;
|
|
@@ -3036,16 +3036,12 @@ export declare const ownResearchContract: {
|
|
|
3036
3036
|
existsInLeadsTable: boolean;
|
|
3037
3037
|
originalLeadId: string | null;
|
|
3038
3038
|
agent?: {
|
|
3039
|
-
|
|
3039
|
+
id: string;
|
|
3040
3040
|
firstName: string;
|
|
3041
|
+
lastName: string;
|
|
3041
3042
|
email: string;
|
|
3042
3043
|
createdAt: string | Date;
|
|
3043
|
-
id: string;
|
|
3044
3044
|
updatedAt: string | Date;
|
|
3045
|
-
office?: {
|
|
3046
|
-
id: string;
|
|
3047
|
-
name: string;
|
|
3048
|
-
} | null | undefined;
|
|
3049
3045
|
phoneNumbers?: {
|
|
3050
3046
|
id: string;
|
|
3051
3047
|
phoneNumber: string;
|
|
@@ -3053,22 +3049,26 @@ export declare const ownResearchContract: {
|
|
|
3053
3049
|
isPrimary?: boolean | undefined;
|
|
3054
3050
|
}[] | undefined;
|
|
3055
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
|
-
lastName: string;
|
|
3058
|
-
firstName: string;
|
|
3059
3057
|
id: string;
|
|
3058
|
+
firstName: string;
|
|
3059
|
+
lastName: string;
|
|
3060
3060
|
}[] | undefined;
|
|
3061
3061
|
} | undefined;
|
|
3062
3062
|
}>;
|
|
3063
3063
|
}, "strip", z.ZodTypeAny, {
|
|
3064
3064
|
ownResearchLead: {
|
|
3065
|
-
createdAt: string;
|
|
3066
3065
|
id: string;
|
|
3066
|
+
agentId: string;
|
|
3067
|
+
name: string;
|
|
3067
3068
|
phoneNumber: string;
|
|
3068
3069
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3069
|
-
|
|
3070
|
+
createdAt: string;
|
|
3070
3071
|
updatedAt: string;
|
|
3071
|
-
agentId: string;
|
|
3072
3072
|
callCount: number;
|
|
3073
3073
|
lastCalledAt: string | null;
|
|
3074
3074
|
cooldownUntil: string | null;
|
|
@@ -3077,39 +3077,39 @@ export declare const ownResearchContract: {
|
|
|
3077
3077
|
existsInLeadsTable: boolean;
|
|
3078
3078
|
originalLeadId: string | null;
|
|
3079
3079
|
agent?: {
|
|
3080
|
-
|
|
3080
|
+
id: string;
|
|
3081
3081
|
firstName: string;
|
|
3082
|
+
lastName: string;
|
|
3082
3083
|
email: string;
|
|
3083
|
-
createdAt: string;
|
|
3084
|
-
id: string;
|
|
3085
3084
|
phoneNumbers: {
|
|
3086
3085
|
id: string;
|
|
3087
3086
|
phoneNumber: string;
|
|
3088
3087
|
isPrimary: boolean;
|
|
3089
3088
|
description?: string | null | undefined;
|
|
3090
3089
|
}[];
|
|
3090
|
+
createdAt: string;
|
|
3091
3091
|
updatedAt: string;
|
|
3092
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3092
3093
|
office?: {
|
|
3093
3094
|
id: string;
|
|
3094
3095
|
name: string;
|
|
3095
3096
|
} | null | undefined;
|
|
3096
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3097
3097
|
canImpersonateUsers?: {
|
|
3098
|
-
lastName: string;
|
|
3099
|
-
firstName: string;
|
|
3100
3098
|
id: string;
|
|
3099
|
+
firstName: string;
|
|
3100
|
+
lastName: string;
|
|
3101
3101
|
}[] | undefined;
|
|
3102
3102
|
} | undefined;
|
|
3103
3103
|
};
|
|
3104
3104
|
}, {
|
|
3105
3105
|
ownResearchLead: {
|
|
3106
|
-
createdAt: string | Date;
|
|
3107
3106
|
id: string;
|
|
3107
|
+
agentId: string;
|
|
3108
|
+
name: string;
|
|
3108
3109
|
phoneNumber: string;
|
|
3109
3110
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3110
|
-
|
|
3111
|
+
createdAt: string | Date;
|
|
3111
3112
|
updatedAt: string | Date;
|
|
3112
|
-
agentId: string;
|
|
3113
3113
|
callCount: number;
|
|
3114
3114
|
lastCalledAt: string | Date | null;
|
|
3115
3115
|
cooldownUntil: string | Date | null;
|
|
@@ -3118,16 +3118,12 @@ export declare const ownResearchContract: {
|
|
|
3118
3118
|
existsInLeadsTable: boolean;
|
|
3119
3119
|
originalLeadId: string | null;
|
|
3120
3120
|
agent?: {
|
|
3121
|
-
|
|
3121
|
+
id: string;
|
|
3122
3122
|
firstName: string;
|
|
3123
|
+
lastName: string;
|
|
3123
3124
|
email: string;
|
|
3124
3125
|
createdAt: string | Date;
|
|
3125
|
-
id: string;
|
|
3126
3126
|
updatedAt: string | Date;
|
|
3127
|
-
office?: {
|
|
3128
|
-
id: string;
|
|
3129
|
-
name: string;
|
|
3130
|
-
} | null | undefined;
|
|
3131
3127
|
phoneNumbers?: {
|
|
3132
3128
|
id: string;
|
|
3133
3129
|
phoneNumber: string;
|
|
@@ -3135,10 +3131,14 @@ export declare const ownResearchContract: {
|
|
|
3135
3131
|
isPrimary?: boolean | undefined;
|
|
3136
3132
|
}[] | undefined;
|
|
3137
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
|
-
lastName: string;
|
|
3140
|
-
firstName: string;
|
|
3141
3139
|
id: string;
|
|
3140
|
+
firstName: string;
|
|
3141
|
+
lastName: string;
|
|
3142
3142
|
}[] | undefined;
|
|
3143
3143
|
} | undefined;
|
|
3144
3144
|
};
|
|
@@ -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;
|
|
3162
3161
|
name: string;
|
|
3162
|
+
phoneNumber: string;
|
|
3163
3163
|
rating: import("../common/call-rating.schema").CallRating;
|
|
3164
|
-
notes?: string | undefined;
|
|
3165
3164
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3165
|
+
notes?: string | undefined;
|
|
3166
3166
|
}, {
|
|
3167
|
-
phoneNumber: string;
|
|
3168
3167
|
name: string;
|
|
3168
|
+
phoneNumber: string;
|
|
3169
3169
|
rating: import("../common/call-rating.schema").CallRating;
|
|
3170
|
-
notes?: string | undefined;
|
|
3171
3170
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3171
|
+
notes?: string | 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
|
-
phoneNumber: string;
|
|
3284
3283
|
name: string;
|
|
3285
|
-
}, {
|
|
3286
3284
|
phoneNumber: string;
|
|
3285
|
+
}, {
|
|
3287
3286
|
name: string;
|
|
3287
|
+
phoneNumber: string;
|
|
3288
3288
|
}>>;
|
|
3289
3289
|
agentId: z.ZodNullable<z.ZodString>;
|
|
3290
3290
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -3324,50 +3324,46 @@ export declare const ownResearchContract: {
|
|
|
3324
3324
|
firstName: z.ZodString;
|
|
3325
3325
|
lastName: z.ZodString;
|
|
3326
3326
|
}, "strip", z.ZodTypeAny, {
|
|
3327
|
-
lastName: string;
|
|
3328
|
-
firstName: string;
|
|
3329
3327
|
id: string;
|
|
3330
|
-
}, {
|
|
3331
|
-
lastName: string;
|
|
3332
3328
|
firstName: string;
|
|
3329
|
+
lastName: string;
|
|
3330
|
+
}, {
|
|
3333
3331
|
id: string;
|
|
3332
|
+
firstName: string;
|
|
3333
|
+
lastName: string;
|
|
3334
3334
|
}>, "many">>;
|
|
3335
3335
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3336
3336
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3337
3337
|
}, "strip", z.ZodTypeAny, {
|
|
3338
|
-
|
|
3338
|
+
id: string;
|
|
3339
3339
|
firstName: string;
|
|
3340
|
+
lastName: string;
|
|
3340
3341
|
email: string;
|
|
3341
|
-
createdAt: string;
|
|
3342
|
-
id: string;
|
|
3343
3342
|
phoneNumbers: {
|
|
3344
3343
|
id: string;
|
|
3345
3344
|
phoneNumber: string;
|
|
3346
3345
|
isPrimary: boolean;
|
|
3347
3346
|
description?: string | null | undefined;
|
|
3348
3347
|
}[];
|
|
3348
|
+
createdAt: string;
|
|
3349
3349
|
updatedAt: string;
|
|
3350
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3350
3351
|
office?: {
|
|
3351
3352
|
id: string;
|
|
3352
3353
|
name: string;
|
|
3353
3354
|
} | null | undefined;
|
|
3354
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3355
3355
|
canImpersonateUsers?: {
|
|
3356
|
-
lastName: string;
|
|
3357
|
-
firstName: string;
|
|
3358
3356
|
id: string;
|
|
3357
|
+
firstName: string;
|
|
3358
|
+
lastName: string;
|
|
3359
3359
|
}[] | undefined;
|
|
3360
3360
|
}, {
|
|
3361
|
-
|
|
3361
|
+
id: string;
|
|
3362
3362
|
firstName: string;
|
|
3363
|
+
lastName: string;
|
|
3363
3364
|
email: string;
|
|
3364
3365
|
createdAt: string | Date;
|
|
3365
|
-
id: string;
|
|
3366
3366
|
updatedAt: string | Date;
|
|
3367
|
-
office?: {
|
|
3368
|
-
id: string;
|
|
3369
|
-
name: string;
|
|
3370
|
-
} | null | undefined;
|
|
3371
3367
|
phoneNumbers?: {
|
|
3372
3368
|
id: string;
|
|
3373
3369
|
phoneNumber: string;
|
|
@@ -3375,10 +3371,14 @@ export declare const ownResearchContract: {
|
|
|
3375
3371
|
isPrimary?: boolean | undefined;
|
|
3376
3372
|
}[] | undefined;
|
|
3377
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
|
-
lastName: string;
|
|
3380
|
-
firstName: string;
|
|
3381
3379
|
id: string;
|
|
3380
|
+
firstName: string;
|
|
3381
|
+
lastName: string;
|
|
3382
3382
|
}[] | undefined;
|
|
3383
3383
|
}>>;
|
|
3384
3384
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -3391,83 +3391,83 @@ export declare const ownResearchContract: {
|
|
|
3391
3391
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3392
3392
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3393
3393
|
}, "strip", z.ZodTypeAny, {
|
|
3394
|
-
createdAt: string;
|
|
3395
3394
|
id: string;
|
|
3396
3395
|
name: string;
|
|
3396
|
+
createdAt: string;
|
|
3397
3397
|
updatedAt: string;
|
|
3398
3398
|
}, {
|
|
3399
|
-
createdAt: string | Date;
|
|
3400
3399
|
id: string;
|
|
3401
3400
|
name: string;
|
|
3401
|
+
createdAt: string | Date;
|
|
3402
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
|
-
createdAt: string;
|
|
3408
3407
|
id: string;
|
|
3408
|
+
leadId: string;
|
|
3409
|
+
agentId: string | null;
|
|
3409
3410
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3411
|
+
createdAt: string;
|
|
3410
3412
|
updatedAt: string;
|
|
3411
|
-
agentId: string | null;
|
|
3412
|
-
leadId: string;
|
|
3413
3413
|
assignedAt: string;
|
|
3414
3414
|
assignedBy: string | null;
|
|
3415
3415
|
companyId: string | null;
|
|
3416
|
+
lead?: {
|
|
3417
|
+
name: string;
|
|
3418
|
+
phoneNumber: string;
|
|
3419
|
+
} | undefined;
|
|
3416
3420
|
agent?: {
|
|
3417
|
-
|
|
3421
|
+
id: string;
|
|
3418
3422
|
firstName: string;
|
|
3423
|
+
lastName: string;
|
|
3419
3424
|
email: string;
|
|
3420
|
-
createdAt: string;
|
|
3421
|
-
id: string;
|
|
3422
3425
|
phoneNumbers: {
|
|
3423
3426
|
id: string;
|
|
3424
3427
|
phoneNumber: string;
|
|
3425
3428
|
isPrimary: boolean;
|
|
3426
3429
|
description?: string | null | undefined;
|
|
3427
3430
|
}[];
|
|
3431
|
+
createdAt: string;
|
|
3428
3432
|
updatedAt: string;
|
|
3433
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3429
3434
|
office?: {
|
|
3430
3435
|
id: string;
|
|
3431
3436
|
name: string;
|
|
3432
3437
|
} | null | undefined;
|
|
3433
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3434
3438
|
canImpersonateUsers?: {
|
|
3435
|
-
lastName: string;
|
|
3436
|
-
firstName: string;
|
|
3437
3439
|
id: string;
|
|
3440
|
+
firstName: string;
|
|
3441
|
+
lastName: string;
|
|
3438
3442
|
}[] | undefined;
|
|
3439
3443
|
} | undefined;
|
|
3440
|
-
lead?: {
|
|
3441
|
-
phoneNumber: string;
|
|
3442
|
-
name: string;
|
|
3443
|
-
} | undefined;
|
|
3444
3444
|
company?: {
|
|
3445
|
-
createdAt: string;
|
|
3446
3445
|
id: string;
|
|
3447
3446
|
name: string;
|
|
3447
|
+
createdAt: string;
|
|
3448
3448
|
updatedAt: string;
|
|
3449
3449
|
} | null | undefined;
|
|
3450
3450
|
}, {
|
|
3451
|
-
createdAt: string | Date;
|
|
3452
3451
|
id: string;
|
|
3452
|
+
leadId: string;
|
|
3453
|
+
agentId: string | null;
|
|
3453
3454
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3455
|
+
createdAt: string | Date;
|
|
3454
3456
|
updatedAt: string | Date;
|
|
3455
|
-
agentId: string | null;
|
|
3456
|
-
leadId: string;
|
|
3457
3457
|
assignedAt: string | Date;
|
|
3458
3458
|
assignedBy: string | null;
|
|
3459
3459
|
companyId: string | null;
|
|
3460
|
+
lead?: {
|
|
3461
|
+
name: string;
|
|
3462
|
+
phoneNumber: string;
|
|
3463
|
+
} | undefined;
|
|
3460
3464
|
agent?: {
|
|
3461
|
-
|
|
3465
|
+
id: string;
|
|
3462
3466
|
firstName: string;
|
|
3467
|
+
lastName: string;
|
|
3463
3468
|
email: string;
|
|
3464
3469
|
createdAt: string | Date;
|
|
3465
|
-
id: string;
|
|
3466
3470
|
updatedAt: string | Date;
|
|
3467
|
-
office?: {
|
|
3468
|
-
id: string;
|
|
3469
|
-
name: string;
|
|
3470
|
-
} | null | undefined;
|
|
3471
3471
|
phoneNumbers?: {
|
|
3472
3472
|
id: string;
|
|
3473
3473
|
phoneNumber: string;
|
|
@@ -3475,20 +3475,20 @@ export declare const ownResearchContract: {
|
|
|
3475
3475
|
isPrimary?: boolean | undefined;
|
|
3476
3476
|
}[] | undefined;
|
|
3477
3477
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3478
|
+
office?: {
|
|
3479
|
+
id: string;
|
|
3480
|
+
name: string;
|
|
3481
|
+
} | null | undefined;
|
|
3478
3482
|
canImpersonateUsers?: {
|
|
3479
|
-
lastName: string;
|
|
3480
|
-
firstName: string;
|
|
3481
3483
|
id: string;
|
|
3484
|
+
firstName: string;
|
|
3485
|
+
lastName: string;
|
|
3482
3486
|
}[] | undefined;
|
|
3483
3487
|
} | undefined;
|
|
3484
|
-
lead?: {
|
|
3485
|
-
phoneNumber: string;
|
|
3486
|
-
name: string;
|
|
3487
|
-
} | undefined;
|
|
3488
3488
|
company?: {
|
|
3489
|
-
createdAt: string | Date;
|
|
3490
3489
|
id: string;
|
|
3491
3490
|
name: string;
|
|
3491
|
+
createdAt: string | Date;
|
|
3492
3492
|
updatedAt: string | Date;
|
|
3493
3493
|
} | null | undefined;
|
|
3494
3494
|
}>>>;
|
|
@@ -3532,50 +3532,46 @@ export declare const ownResearchContract: {
|
|
|
3532
3532
|
firstName: z.ZodString;
|
|
3533
3533
|
lastName: z.ZodString;
|
|
3534
3534
|
}, "strip", z.ZodTypeAny, {
|
|
3535
|
-
lastName: string;
|
|
3536
|
-
firstName: string;
|
|
3537
3535
|
id: string;
|
|
3538
|
-
}, {
|
|
3539
|
-
lastName: string;
|
|
3540
3536
|
firstName: string;
|
|
3537
|
+
lastName: string;
|
|
3538
|
+
}, {
|
|
3541
3539
|
id: string;
|
|
3540
|
+
firstName: string;
|
|
3541
|
+
lastName: string;
|
|
3542
3542
|
}>, "many">>;
|
|
3543
3543
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3544
3544
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3545
3545
|
}, "strip", z.ZodTypeAny, {
|
|
3546
|
-
|
|
3546
|
+
id: string;
|
|
3547
3547
|
firstName: string;
|
|
3548
|
+
lastName: string;
|
|
3548
3549
|
email: string;
|
|
3549
|
-
createdAt: string;
|
|
3550
|
-
id: string;
|
|
3551
3550
|
phoneNumbers: {
|
|
3552
3551
|
id: string;
|
|
3553
3552
|
phoneNumber: string;
|
|
3554
3553
|
isPrimary: boolean;
|
|
3555
3554
|
description?: string | null | undefined;
|
|
3556
3555
|
}[];
|
|
3556
|
+
createdAt: string;
|
|
3557
3557
|
updatedAt: string;
|
|
3558
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3558
3559
|
office?: {
|
|
3559
3560
|
id: string;
|
|
3560
3561
|
name: string;
|
|
3561
3562
|
} | null | undefined;
|
|
3562
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3563
3563
|
canImpersonateUsers?: {
|
|
3564
|
-
lastName: string;
|
|
3565
|
-
firstName: string;
|
|
3566
3564
|
id: string;
|
|
3565
|
+
firstName: string;
|
|
3566
|
+
lastName: string;
|
|
3567
3567
|
}[] | undefined;
|
|
3568
3568
|
}, {
|
|
3569
|
-
|
|
3569
|
+
id: string;
|
|
3570
3570
|
firstName: string;
|
|
3571
|
+
lastName: string;
|
|
3571
3572
|
email: string;
|
|
3572
3573
|
createdAt: string | Date;
|
|
3573
|
-
id: string;
|
|
3574
3574
|
updatedAt: string | Date;
|
|
3575
|
-
office?: {
|
|
3576
|
-
id: string;
|
|
3577
|
-
name: string;
|
|
3578
|
-
} | null | undefined;
|
|
3579
3575
|
phoneNumbers?: {
|
|
3580
3576
|
id: string;
|
|
3581
3577
|
phoneNumber: string;
|
|
@@ -3583,10 +3579,14 @@ export declare const ownResearchContract: {
|
|
|
3583
3579
|
isPrimary?: boolean | undefined;
|
|
3584
3580
|
}[] | undefined;
|
|
3585
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
|
-
lastName: string;
|
|
3588
|
-
firstName: string;
|
|
3589
3587
|
id: string;
|
|
3588
|
+
firstName: string;
|
|
3589
|
+
lastName: string;
|
|
3590
3590
|
}[] | undefined;
|
|
3591
3591
|
}>>;
|
|
3592
3592
|
name: z.ZodString;
|
|
@@ -3602,13 +3602,13 @@ export declare const ownResearchContract: {
|
|
|
3602
3602
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3603
3603
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3604
3604
|
}, "strip", z.ZodTypeAny, {
|
|
3605
|
-
createdAt: string;
|
|
3606
3605
|
id: string;
|
|
3606
|
+
agentId: string;
|
|
3607
|
+
name: string;
|
|
3607
3608
|
phoneNumber: string;
|
|
3608
3609
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3609
|
-
|
|
3610
|
+
createdAt: string;
|
|
3610
3611
|
updatedAt: string;
|
|
3611
|
-
agentId: string;
|
|
3612
3612
|
callCount: number;
|
|
3613
3613
|
lastCalledAt: string | null;
|
|
3614
3614
|
cooldownUntil: string | null;
|
|
@@ -3617,37 +3617,37 @@ export declare const ownResearchContract: {
|
|
|
3617
3617
|
existsInLeadsTable: boolean;
|
|
3618
3618
|
originalLeadId: string | null;
|
|
3619
3619
|
agent?: {
|
|
3620
|
-
|
|
3620
|
+
id: string;
|
|
3621
3621
|
firstName: string;
|
|
3622
|
+
lastName: string;
|
|
3622
3623
|
email: string;
|
|
3623
|
-
createdAt: string;
|
|
3624
|
-
id: string;
|
|
3625
3624
|
phoneNumbers: {
|
|
3626
3625
|
id: string;
|
|
3627
3626
|
phoneNumber: string;
|
|
3628
3627
|
isPrimary: boolean;
|
|
3629
3628
|
description?: string | null | undefined;
|
|
3630
3629
|
}[];
|
|
3630
|
+
createdAt: string;
|
|
3631
3631
|
updatedAt: string;
|
|
3632
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3632
3633
|
office?: {
|
|
3633
3634
|
id: string;
|
|
3634
3635
|
name: string;
|
|
3635
3636
|
} | null | undefined;
|
|
3636
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3637
3637
|
canImpersonateUsers?: {
|
|
3638
|
-
lastName: string;
|
|
3639
|
-
firstName: string;
|
|
3640
3638
|
id: string;
|
|
3639
|
+
firstName: string;
|
|
3640
|
+
lastName: string;
|
|
3641
3641
|
}[] | undefined;
|
|
3642
3642
|
} | undefined;
|
|
3643
3643
|
}, {
|
|
3644
|
-
createdAt: string | Date;
|
|
3645
3644
|
id: string;
|
|
3645
|
+
agentId: string;
|
|
3646
|
+
name: string;
|
|
3646
3647
|
phoneNumber: string;
|
|
3647
3648
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3648
|
-
|
|
3649
|
+
createdAt: string | Date;
|
|
3649
3650
|
updatedAt: string | Date;
|
|
3650
|
-
agentId: string;
|
|
3651
3651
|
callCount: number;
|
|
3652
3652
|
lastCalledAt: string | Date | null;
|
|
3653
3653
|
cooldownUntil: string | Date | null;
|
|
@@ -3656,16 +3656,12 @@ export declare const ownResearchContract: {
|
|
|
3656
3656
|
existsInLeadsTable: boolean;
|
|
3657
3657
|
originalLeadId: string | null;
|
|
3658
3658
|
agent?: {
|
|
3659
|
-
|
|
3659
|
+
id: string;
|
|
3660
3660
|
firstName: string;
|
|
3661
|
+
lastName: string;
|
|
3661
3662
|
email: string;
|
|
3662
3663
|
createdAt: string | Date;
|
|
3663
|
-
id: string;
|
|
3664
3664
|
updatedAt: string | Date;
|
|
3665
|
-
office?: {
|
|
3666
|
-
id: string;
|
|
3667
|
-
name: string;
|
|
3668
|
-
} | null | undefined;
|
|
3669
3665
|
phoneNumbers?: {
|
|
3670
3666
|
id: string;
|
|
3671
3667
|
phoneNumber: string;
|
|
@@ -3673,22 +3669,26 @@ export declare const ownResearchContract: {
|
|
|
3673
3669
|
isPrimary?: boolean | undefined;
|
|
3674
3670
|
}[] | undefined;
|
|
3675
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
|
-
lastName: string;
|
|
3678
|
-
firstName: string;
|
|
3679
3677
|
id: string;
|
|
3678
|
+
firstName: string;
|
|
3679
|
+
lastName: string;
|
|
3680
3680
|
}[] | undefined;
|
|
3681
3681
|
} | undefined;
|
|
3682
3682
|
}>;
|
|
3683
3683
|
}, "strip", z.ZodTypeAny, {
|
|
3684
3684
|
ownResearchLead: {
|
|
3685
|
-
createdAt: string;
|
|
3686
3685
|
id: string;
|
|
3686
|
+
agentId: string;
|
|
3687
|
+
name: string;
|
|
3687
3688
|
phoneNumber: string;
|
|
3688
3689
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3689
|
-
|
|
3690
|
+
createdAt: string;
|
|
3690
3691
|
updatedAt: string;
|
|
3691
|
-
agentId: string;
|
|
3692
3692
|
callCount: number;
|
|
3693
3693
|
lastCalledAt: string | null;
|
|
3694
3694
|
cooldownUntil: string | null;
|
|
@@ -3697,84 +3697,84 @@ export declare const ownResearchContract: {
|
|
|
3697
3697
|
existsInLeadsTable: boolean;
|
|
3698
3698
|
originalLeadId: string | null;
|
|
3699
3699
|
agent?: {
|
|
3700
|
-
|
|
3700
|
+
id: string;
|
|
3701
3701
|
firstName: string;
|
|
3702
|
+
lastName: string;
|
|
3702
3703
|
email: string;
|
|
3703
|
-
createdAt: string;
|
|
3704
|
-
id: string;
|
|
3705
3704
|
phoneNumbers: {
|
|
3706
3705
|
id: string;
|
|
3707
3706
|
phoneNumber: string;
|
|
3708
3707
|
isPrimary: boolean;
|
|
3709
3708
|
description?: string | null | undefined;
|
|
3710
3709
|
}[];
|
|
3710
|
+
createdAt: string;
|
|
3711
3711
|
updatedAt: string;
|
|
3712
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3712
3713
|
office?: {
|
|
3713
3714
|
id: string;
|
|
3714
3715
|
name: string;
|
|
3715
3716
|
} | null | undefined;
|
|
3716
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3717
3717
|
canImpersonateUsers?: {
|
|
3718
|
-
lastName: string;
|
|
3719
|
-
firstName: string;
|
|
3720
3718
|
id: string;
|
|
3719
|
+
firstName: string;
|
|
3720
|
+
lastName: string;
|
|
3721
3721
|
}[] | undefined;
|
|
3722
3722
|
} | undefined;
|
|
3723
3723
|
};
|
|
3724
3724
|
assignment?: {
|
|
3725
|
-
createdAt: string;
|
|
3726
3725
|
id: string;
|
|
3726
|
+
leadId: string;
|
|
3727
|
+
agentId: string | null;
|
|
3727
3728
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3729
|
+
createdAt: string;
|
|
3728
3730
|
updatedAt: string;
|
|
3729
|
-
agentId: string | null;
|
|
3730
|
-
leadId: string;
|
|
3731
3731
|
assignedAt: string;
|
|
3732
3732
|
assignedBy: string | null;
|
|
3733
3733
|
companyId: string | null;
|
|
3734
|
+
lead?: {
|
|
3735
|
+
name: string;
|
|
3736
|
+
phoneNumber: string;
|
|
3737
|
+
} | undefined;
|
|
3734
3738
|
agent?: {
|
|
3735
|
-
|
|
3739
|
+
id: string;
|
|
3736
3740
|
firstName: string;
|
|
3741
|
+
lastName: string;
|
|
3737
3742
|
email: string;
|
|
3738
|
-
createdAt: string;
|
|
3739
|
-
id: string;
|
|
3740
3743
|
phoneNumbers: {
|
|
3741
3744
|
id: string;
|
|
3742
3745
|
phoneNumber: string;
|
|
3743
3746
|
isPrimary: boolean;
|
|
3744
3747
|
description?: string | null | undefined;
|
|
3745
3748
|
}[];
|
|
3749
|
+
createdAt: string;
|
|
3746
3750
|
updatedAt: string;
|
|
3751
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3747
3752
|
office?: {
|
|
3748
3753
|
id: string;
|
|
3749
3754
|
name: string;
|
|
3750
3755
|
} | null | undefined;
|
|
3751
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3752
3756
|
canImpersonateUsers?: {
|
|
3753
|
-
lastName: string;
|
|
3754
|
-
firstName: string;
|
|
3755
3757
|
id: string;
|
|
3758
|
+
firstName: string;
|
|
3759
|
+
lastName: string;
|
|
3756
3760
|
}[] | undefined;
|
|
3757
3761
|
} | undefined;
|
|
3758
|
-
lead?: {
|
|
3759
|
-
phoneNumber: string;
|
|
3760
|
-
name: string;
|
|
3761
|
-
} | undefined;
|
|
3762
3762
|
company?: {
|
|
3763
|
-
createdAt: string;
|
|
3764
3763
|
id: string;
|
|
3765
3764
|
name: string;
|
|
3765
|
+
createdAt: string;
|
|
3766
3766
|
updatedAt: string;
|
|
3767
3767
|
} | null | undefined;
|
|
3768
3768
|
} | null | undefined;
|
|
3769
3769
|
}, {
|
|
3770
3770
|
ownResearchLead: {
|
|
3771
|
-
createdAt: string | Date;
|
|
3772
3771
|
id: string;
|
|
3772
|
+
agentId: string;
|
|
3773
|
+
name: string;
|
|
3773
3774
|
phoneNumber: string;
|
|
3774
3775
|
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
|
|
3775
|
-
|
|
3776
|
+
createdAt: string | Date;
|
|
3776
3777
|
updatedAt: string | Date;
|
|
3777
|
-
agentId: string;
|
|
3778
3778
|
callCount: number;
|
|
3779
3779
|
lastCalledAt: string | Date | null;
|
|
3780
3780
|
cooldownUntil: string | Date | null;
|
|
@@ -3783,16 +3783,12 @@ export declare const ownResearchContract: {
|
|
|
3783
3783
|
existsInLeadsTable: boolean;
|
|
3784
3784
|
originalLeadId: string | null;
|
|
3785
3785
|
agent?: {
|
|
3786
|
-
|
|
3786
|
+
id: string;
|
|
3787
3787
|
firstName: string;
|
|
3788
|
+
lastName: string;
|
|
3788
3789
|
email: string;
|
|
3789
3790
|
createdAt: string | Date;
|
|
3790
|
-
id: string;
|
|
3791
3791
|
updatedAt: string | Date;
|
|
3792
|
-
office?: {
|
|
3793
|
-
id: string;
|
|
3794
|
-
name: string;
|
|
3795
|
-
} | null | undefined;
|
|
3796
3792
|
phoneNumbers?: {
|
|
3797
3793
|
id: string;
|
|
3798
3794
|
phoneNumber: string;
|
|
@@ -3800,34 +3796,38 @@ export declare const ownResearchContract: {
|
|
|
3800
3796
|
isPrimary?: boolean | undefined;
|
|
3801
3797
|
}[] | undefined;
|
|
3802
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
|
-
lastName: string;
|
|
3805
|
-
firstName: string;
|
|
3806
3804
|
id: string;
|
|
3805
|
+
firstName: string;
|
|
3806
|
+
lastName: string;
|
|
3807
3807
|
}[] | undefined;
|
|
3808
3808
|
} | undefined;
|
|
3809
3809
|
};
|
|
3810
3810
|
assignment?: {
|
|
3811
|
-
createdAt: string | Date;
|
|
3812
3811
|
id: string;
|
|
3812
|
+
leadId: string;
|
|
3813
|
+
agentId: string | null;
|
|
3813
3814
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
3815
|
+
createdAt: string | Date;
|
|
3814
3816
|
updatedAt: string | Date;
|
|
3815
|
-
agentId: string | null;
|
|
3816
|
-
leadId: string;
|
|
3817
3817
|
assignedAt: string | Date;
|
|
3818
3818
|
assignedBy: string | null;
|
|
3819
3819
|
companyId: string | null;
|
|
3820
|
+
lead?: {
|
|
3821
|
+
name: string;
|
|
3822
|
+
phoneNumber: string;
|
|
3823
|
+
} | undefined;
|
|
3820
3824
|
agent?: {
|
|
3821
|
-
|
|
3825
|
+
id: string;
|
|
3822
3826
|
firstName: string;
|
|
3827
|
+
lastName: string;
|
|
3823
3828
|
email: string;
|
|
3824
3829
|
createdAt: string | Date;
|
|
3825
|
-
id: string;
|
|
3826
3830
|
updatedAt: string | Date;
|
|
3827
|
-
office?: {
|
|
3828
|
-
id: string;
|
|
3829
|
-
name: string;
|
|
3830
|
-
} | null | undefined;
|
|
3831
3831
|
phoneNumbers?: {
|
|
3832
3832
|
id: string;
|
|
3833
3833
|
phoneNumber: string;
|
|
@@ -3835,20 +3835,20 @@ export declare const ownResearchContract: {
|
|
|
3835
3835
|
isPrimary?: boolean | undefined;
|
|
3836
3836
|
}[] | undefined;
|
|
3837
3837
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3838
|
+
office?: {
|
|
3839
|
+
id: string;
|
|
3840
|
+
name: string;
|
|
3841
|
+
} | null | undefined;
|
|
3838
3842
|
canImpersonateUsers?: {
|
|
3839
|
-
lastName: string;
|
|
3840
|
-
firstName: string;
|
|
3841
3843
|
id: string;
|
|
3844
|
+
firstName: string;
|
|
3845
|
+
lastName: string;
|
|
3842
3846
|
}[] | undefined;
|
|
3843
3847
|
} | undefined;
|
|
3844
|
-
lead?: {
|
|
3845
|
-
phoneNumber: string;
|
|
3846
|
-
name: string;
|
|
3847
|
-
} | undefined;
|
|
3848
3848
|
company?: {
|
|
3849
|
-
createdAt: string | Date;
|
|
3850
3849
|
id: string;
|
|
3851
3850
|
name: string;
|
|
3851
|
+
createdAt: string | Date;
|
|
3852
3852
|
updatedAt: string | Date;
|
|
3853
3853
|
} | null | undefined;
|
|
3854
3854
|
} | null | undefined;
|