@dakkitor/api-contracts 1.8.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/abilities.contract.d.ts +1 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +1 -0
- package/dist/abilities/abilities.contract.spec.js +11 -0
- package/dist/abilities/second-agent.abilities.json +16 -0
- package/dist/actives/actives.contract.d.ts +6327 -6196
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1148 -1046
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.d.ts +23 -23
- package/dist/bookings/bookings.contract.d.ts +9238 -9006
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +768 -731
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +99 -92
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +13397 -0
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.js +206 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts +2 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.js +193 -0
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2738 -2634
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +2281 -2184
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.d.ts +7 -7
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +1 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2663 -2045
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +37 -4
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +228 -228
- package/dist/curated-worker-leads/contact-history.spec.js +55 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +1928 -1928
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +36 -36
- package/dist/curated-workers/curated-workers.contract.d.ts +1195 -1195
- package/dist/dashboards/dashboard-widgets.contract.d.ts +396 -396
- package/dist/dashboards/dashboard.contract.d.ts +16 -16
- package/dist/export-jobs/export-jobs.contract.d.ts +675 -675
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/jobs/jobs.contract.d.ts +7903 -7645
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +72 -72
- package/dist/lead-assignments/lead-assignments.contract.d.ts +999 -928
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +244 -220
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.d.ts +259 -259
- package/dist/notifications/notifications.contract.d.ts +67 -67
- package/dist/outreach/__tests__/outreach-claim.test.js +33 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
- package/dist/outreach/outreach.contract.d.ts +583 -162
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +50 -1
- package/dist/outreach/relay-hub-outreach.contract.d.ts +299 -121
- package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -1
- package/dist/outreach/relay-hub-outreach.contract.js +10 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.js +26 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts +94 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.schemas.js +15 -0
- package/dist/own-research/check-phone-response.spec.d.ts +2 -0
- package/dist/own-research/check-phone-response.spec.d.ts.map +1 -0
- package/dist/own-research/check-phone-response.spec.js +54 -0
- package/dist/own-research/own-research.contract.d.ts +801 -716
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/own-research/own-research.contract.js +6 -1
- package/dist/user-access-grants/user-access-grants.contract.d.ts +179 -179
- package/dist/users/users.contract.d.ts +227 -198
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +9 -1
- package/dist/users/users.contract.spec.js +39 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +124 -124
- package/dist/workers/workers.contract.d.ts +2761 -2717
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +12 -0
- package/package.json +1 -1
|
@@ -48,16 +48,16 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
48
48
|
firstName: string;
|
|
49
49
|
}>, "many">>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
id: string;
|
|
52
51
|
name: string;
|
|
52
|
+
id: string;
|
|
53
53
|
managers?: {
|
|
54
54
|
id: string;
|
|
55
55
|
lastName: string;
|
|
56
56
|
firstName: string;
|
|
57
57
|
}[] | undefined;
|
|
58
58
|
}, {
|
|
59
|
-
id: string;
|
|
60
59
|
name: string;
|
|
60
|
+
id: string;
|
|
61
61
|
managers?: {
|
|
62
62
|
id: string;
|
|
63
63
|
lastName: string;
|
|
@@ -78,15 +78,16 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
78
78
|
firstName: string;
|
|
79
79
|
}>, "many">>;
|
|
80
80
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
81
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
81
82
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
82
83
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
83
84
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
84
85
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
status: "ACTIVE" | "INACTIVE";
|
|
86
|
-
id: string;
|
|
87
|
-
updatedAt: string;
|
|
88
|
-
createdAt: string;
|
|
89
86
|
email: string;
|
|
87
|
+
createdAt: string;
|
|
88
|
+
updatedAt: string;
|
|
89
|
+
id: string;
|
|
90
|
+
status: "ACTIVE" | "INACTIVE";
|
|
90
91
|
lastName: string;
|
|
91
92
|
firstName: string;
|
|
92
93
|
phoneNumbers: {
|
|
@@ -98,8 +99,8 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
98
99
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
99
100
|
officeId?: string | null | undefined;
|
|
100
101
|
office?: {
|
|
101
|
-
id: string;
|
|
102
102
|
name: string;
|
|
103
|
+
id: string;
|
|
103
104
|
managers?: {
|
|
104
105
|
id: string;
|
|
105
106
|
lastName: string;
|
|
@@ -111,20 +112,21 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
111
112
|
lastName: string;
|
|
112
113
|
firstName: string;
|
|
113
114
|
}[] | undefined;
|
|
115
|
+
dialpadUserId?: string | null | undefined;
|
|
114
116
|
deletedAt?: string | null | undefined;
|
|
115
117
|
}, {
|
|
116
|
-
status: "ACTIVE" | "INACTIVE";
|
|
117
|
-
id: string;
|
|
118
|
-
updatedAt: string | Date;
|
|
119
|
-
createdAt: string | Date;
|
|
120
118
|
email: string;
|
|
119
|
+
createdAt: string | Date;
|
|
120
|
+
updatedAt: string | Date;
|
|
121
|
+
id: string;
|
|
122
|
+
status: "ACTIVE" | "INACTIVE";
|
|
121
123
|
lastName: string;
|
|
122
124
|
firstName: string;
|
|
123
125
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
124
126
|
officeId?: string | null | undefined;
|
|
125
127
|
office?: {
|
|
126
|
-
id: string;
|
|
127
128
|
name: string;
|
|
129
|
+
id: string;
|
|
128
130
|
managers?: {
|
|
129
131
|
id: string;
|
|
130
132
|
lastName: string;
|
|
@@ -142,6 +144,7 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
142
144
|
lastName: string;
|
|
143
145
|
firstName: string;
|
|
144
146
|
}[] | undefined;
|
|
147
|
+
dialpadUserId?: string | null | undefined;
|
|
145
148
|
deletedAt?: string | Date | null | undefined;
|
|
146
149
|
}>>;
|
|
147
150
|
name: z.ZodString;
|
|
@@ -157,26 +160,26 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
157
160
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
158
161
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
159
162
|
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
161
|
-
id: string;
|
|
162
163
|
name: string;
|
|
163
|
-
updatedAt: string;
|
|
164
164
|
createdAt: string;
|
|
165
|
-
|
|
165
|
+
updatedAt: string;
|
|
166
|
+
id: string;
|
|
167
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
166
168
|
agentId: string;
|
|
167
169
|
phoneNumber: string;
|
|
168
|
-
lastCalledAt: string | null;
|
|
169
170
|
callCount: number;
|
|
171
|
+
lastCalledAt: string | null;
|
|
172
|
+
cooldownUntil: string | null;
|
|
173
|
+
blacklistReason: string | null;
|
|
170
174
|
lastCallNotes: string | null;
|
|
171
175
|
existsInLeadsTable: boolean;
|
|
172
|
-
cooldownUntil: string | null;
|
|
173
176
|
originalLeadId: string | null;
|
|
174
177
|
agent?: {
|
|
175
|
-
status: "ACTIVE" | "INACTIVE";
|
|
176
|
-
id: string;
|
|
177
|
-
updatedAt: string;
|
|
178
|
-
createdAt: string;
|
|
179
178
|
email: string;
|
|
179
|
+
createdAt: string;
|
|
180
|
+
updatedAt: string;
|
|
181
|
+
id: string;
|
|
182
|
+
status: "ACTIVE" | "INACTIVE";
|
|
180
183
|
lastName: string;
|
|
181
184
|
firstName: string;
|
|
182
185
|
phoneNumbers: {
|
|
@@ -188,8 +191,8 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
188
191
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
189
192
|
officeId?: string | null | undefined;
|
|
190
193
|
office?: {
|
|
191
|
-
id: string;
|
|
192
194
|
name: string;
|
|
195
|
+
id: string;
|
|
193
196
|
managers?: {
|
|
194
197
|
id: string;
|
|
195
198
|
lastName: string;
|
|
@@ -201,36 +204,37 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
201
204
|
lastName: string;
|
|
202
205
|
firstName: string;
|
|
203
206
|
}[] | undefined;
|
|
207
|
+
dialpadUserId?: string | null | undefined;
|
|
204
208
|
deletedAt?: string | null | undefined;
|
|
205
209
|
} | undefined;
|
|
206
210
|
}, {
|
|
207
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
208
|
-
id: string;
|
|
209
211
|
name: string;
|
|
210
|
-
updatedAt: string | Date;
|
|
211
212
|
createdAt: string | Date;
|
|
212
|
-
|
|
213
|
+
updatedAt: string | Date;
|
|
214
|
+
id: string;
|
|
215
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
213
216
|
agentId: string;
|
|
214
217
|
phoneNumber: string;
|
|
215
|
-
lastCalledAt: string | Date | null;
|
|
216
218
|
callCount: number;
|
|
219
|
+
lastCalledAt: string | Date | null;
|
|
220
|
+
cooldownUntil: string | Date | null;
|
|
221
|
+
blacklistReason: string | null;
|
|
217
222
|
lastCallNotes: string | null;
|
|
218
223
|
existsInLeadsTable: boolean;
|
|
219
|
-
cooldownUntil: string | Date | null;
|
|
220
224
|
originalLeadId: string | null;
|
|
221
225
|
agent?: {
|
|
222
|
-
status: "ACTIVE" | "INACTIVE";
|
|
223
|
-
id: string;
|
|
224
|
-
updatedAt: string | Date;
|
|
225
|
-
createdAt: string | Date;
|
|
226
226
|
email: string;
|
|
227
|
+
createdAt: string | Date;
|
|
228
|
+
updatedAt: string | Date;
|
|
229
|
+
id: string;
|
|
230
|
+
status: "ACTIVE" | "INACTIVE";
|
|
227
231
|
lastName: string;
|
|
228
232
|
firstName: string;
|
|
229
233
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
230
234
|
officeId?: string | null | undefined;
|
|
231
235
|
office?: {
|
|
232
|
-
id: string;
|
|
233
236
|
name: string;
|
|
237
|
+
id: string;
|
|
234
238
|
managers?: {
|
|
235
239
|
id: string;
|
|
236
240
|
lastName: string;
|
|
@@ -248,6 +252,7 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
248
252
|
lastName: string;
|
|
249
253
|
firstName: string;
|
|
250
254
|
}[] | undefined;
|
|
255
|
+
dialpadUserId?: string | null | undefined;
|
|
251
256
|
deletedAt?: string | Date | null | undefined;
|
|
252
257
|
} | undefined;
|
|
253
258
|
}>;
|
|
@@ -258,20 +263,23 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
258
263
|
id: z.ZodString;
|
|
259
264
|
name: z.ZodString;
|
|
260
265
|
phoneNumber: z.ZodString;
|
|
261
|
-
status: z.
|
|
266
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
267
|
+
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
268
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
263
269
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
status: string;
|
|
265
|
-
id: string;
|
|
266
270
|
name: string;
|
|
271
|
+
id: string;
|
|
272
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
267
273
|
phoneNumber: string;
|
|
268
274
|
cooldownUntil: string | null;
|
|
275
|
+
blacklistReason?: string | null | undefined;
|
|
269
276
|
}, {
|
|
270
|
-
status: string;
|
|
271
|
-
id: string;
|
|
272
277
|
name: string;
|
|
278
|
+
id: string;
|
|
279
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
273
280
|
phoneNumber: string;
|
|
274
281
|
cooldownUntil: string | Date | null;
|
|
282
|
+
blacklistReason?: string | null | undefined;
|
|
275
283
|
}>>>;
|
|
276
284
|
ownResearchLead: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
277
285
|
id: z.ZodString;
|
|
@@ -316,16 +324,16 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
316
324
|
firstName: string;
|
|
317
325
|
}>, "many">>;
|
|
318
326
|
}, "strip", z.ZodTypeAny, {
|
|
319
|
-
id: string;
|
|
320
327
|
name: string;
|
|
328
|
+
id: string;
|
|
321
329
|
managers?: {
|
|
322
330
|
id: string;
|
|
323
331
|
lastName: string;
|
|
324
332
|
firstName: string;
|
|
325
333
|
}[] | undefined;
|
|
326
334
|
}, {
|
|
327
|
-
id: string;
|
|
328
335
|
name: string;
|
|
336
|
+
id: string;
|
|
329
337
|
managers?: {
|
|
330
338
|
id: string;
|
|
331
339
|
lastName: string;
|
|
@@ -346,15 +354,16 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
346
354
|
firstName: string;
|
|
347
355
|
}>, "many">>;
|
|
348
356
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
357
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
349
358
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
350
359
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
351
360
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
352
361
|
}, "strip", z.ZodTypeAny, {
|
|
353
|
-
status: "ACTIVE" | "INACTIVE";
|
|
354
|
-
id: string;
|
|
355
|
-
updatedAt: string;
|
|
356
|
-
createdAt: string;
|
|
357
362
|
email: string;
|
|
363
|
+
createdAt: string;
|
|
364
|
+
updatedAt: string;
|
|
365
|
+
id: string;
|
|
366
|
+
status: "ACTIVE" | "INACTIVE";
|
|
358
367
|
lastName: string;
|
|
359
368
|
firstName: string;
|
|
360
369
|
phoneNumbers: {
|
|
@@ -366,8 +375,8 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
366
375
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
367
376
|
officeId?: string | null | undefined;
|
|
368
377
|
office?: {
|
|
369
|
-
id: string;
|
|
370
378
|
name: string;
|
|
379
|
+
id: string;
|
|
371
380
|
managers?: {
|
|
372
381
|
id: string;
|
|
373
382
|
lastName: string;
|
|
@@ -379,20 +388,21 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
379
388
|
lastName: string;
|
|
380
389
|
firstName: string;
|
|
381
390
|
}[] | undefined;
|
|
391
|
+
dialpadUserId?: string | null | undefined;
|
|
382
392
|
deletedAt?: string | null | undefined;
|
|
383
393
|
}, {
|
|
384
|
-
status: "ACTIVE" | "INACTIVE";
|
|
385
|
-
id: string;
|
|
386
|
-
updatedAt: string | Date;
|
|
387
|
-
createdAt: string | Date;
|
|
388
394
|
email: string;
|
|
395
|
+
createdAt: string | Date;
|
|
396
|
+
updatedAt: string | Date;
|
|
397
|
+
id: string;
|
|
398
|
+
status: "ACTIVE" | "INACTIVE";
|
|
389
399
|
lastName: string;
|
|
390
400
|
firstName: string;
|
|
391
401
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
392
402
|
officeId?: string | null | undefined;
|
|
393
403
|
office?: {
|
|
394
|
-
id: string;
|
|
395
404
|
name: string;
|
|
405
|
+
id: string;
|
|
396
406
|
managers?: {
|
|
397
407
|
id: string;
|
|
398
408
|
lastName: string;
|
|
@@ -410,6 +420,7 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
410
420
|
lastName: string;
|
|
411
421
|
firstName: string;
|
|
412
422
|
}[] | undefined;
|
|
423
|
+
dialpadUserId?: string | null | undefined;
|
|
413
424
|
deletedAt?: string | Date | null | undefined;
|
|
414
425
|
}>>;
|
|
415
426
|
name: z.ZodString;
|
|
@@ -425,26 +436,26 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
425
436
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
426
437
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
427
438
|
}, "strip", z.ZodTypeAny, {
|
|
428
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
429
|
-
id: string;
|
|
430
439
|
name: string;
|
|
431
|
-
updatedAt: string;
|
|
432
440
|
createdAt: string;
|
|
433
|
-
|
|
441
|
+
updatedAt: string;
|
|
442
|
+
id: string;
|
|
443
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
434
444
|
agentId: string;
|
|
435
445
|
phoneNumber: string;
|
|
436
|
-
lastCalledAt: string | null;
|
|
437
446
|
callCount: number;
|
|
447
|
+
lastCalledAt: string | null;
|
|
448
|
+
cooldownUntil: string | null;
|
|
449
|
+
blacklistReason: string | null;
|
|
438
450
|
lastCallNotes: string | null;
|
|
439
451
|
existsInLeadsTable: boolean;
|
|
440
|
-
cooldownUntil: string | null;
|
|
441
452
|
originalLeadId: string | null;
|
|
442
453
|
agent?: {
|
|
443
|
-
status: "ACTIVE" | "INACTIVE";
|
|
444
|
-
id: string;
|
|
445
|
-
updatedAt: string;
|
|
446
|
-
createdAt: string;
|
|
447
454
|
email: string;
|
|
455
|
+
createdAt: string;
|
|
456
|
+
updatedAt: string;
|
|
457
|
+
id: string;
|
|
458
|
+
status: "ACTIVE" | "INACTIVE";
|
|
448
459
|
lastName: string;
|
|
449
460
|
firstName: string;
|
|
450
461
|
phoneNumbers: {
|
|
@@ -456,8 +467,8 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
456
467
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
457
468
|
officeId?: string | null | undefined;
|
|
458
469
|
office?: {
|
|
459
|
-
id: string;
|
|
460
470
|
name: string;
|
|
471
|
+
id: string;
|
|
461
472
|
managers?: {
|
|
462
473
|
id: string;
|
|
463
474
|
lastName: string;
|
|
@@ -469,36 +480,37 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
469
480
|
lastName: string;
|
|
470
481
|
firstName: string;
|
|
471
482
|
}[] | undefined;
|
|
483
|
+
dialpadUserId?: string | null | undefined;
|
|
472
484
|
deletedAt?: string | null | undefined;
|
|
473
485
|
} | undefined;
|
|
474
486
|
}, {
|
|
475
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
476
|
-
id: string;
|
|
477
487
|
name: string;
|
|
478
|
-
updatedAt: string | Date;
|
|
479
488
|
createdAt: string | Date;
|
|
480
|
-
|
|
489
|
+
updatedAt: string | Date;
|
|
490
|
+
id: string;
|
|
491
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
481
492
|
agentId: string;
|
|
482
493
|
phoneNumber: string;
|
|
483
|
-
lastCalledAt: string | Date | null;
|
|
484
494
|
callCount: number;
|
|
495
|
+
lastCalledAt: string | Date | null;
|
|
496
|
+
cooldownUntil: string | Date | null;
|
|
497
|
+
blacklistReason: string | null;
|
|
485
498
|
lastCallNotes: string | null;
|
|
486
499
|
existsInLeadsTable: boolean;
|
|
487
|
-
cooldownUntil: string | Date | null;
|
|
488
500
|
originalLeadId: string | null;
|
|
489
501
|
agent?: {
|
|
490
|
-
status: "ACTIVE" | "INACTIVE";
|
|
491
|
-
id: string;
|
|
492
|
-
updatedAt: string | Date;
|
|
493
|
-
createdAt: string | Date;
|
|
494
502
|
email: string;
|
|
503
|
+
createdAt: string | Date;
|
|
504
|
+
updatedAt: string | Date;
|
|
505
|
+
id: string;
|
|
506
|
+
status: "ACTIVE" | "INACTIVE";
|
|
495
507
|
lastName: string;
|
|
496
508
|
firstName: string;
|
|
497
509
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
498
510
|
officeId?: string | null | undefined;
|
|
499
511
|
office?: {
|
|
500
|
-
id: string;
|
|
501
512
|
name: string;
|
|
513
|
+
id: string;
|
|
502
514
|
managers?: {
|
|
503
515
|
id: string;
|
|
504
516
|
lastName: string;
|
|
@@ -516,6 +528,7 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
516
528
|
lastName: string;
|
|
517
529
|
firstName: string;
|
|
518
530
|
}[] | undefined;
|
|
531
|
+
dialpadUserId?: string | null | undefined;
|
|
519
532
|
deletedAt?: string | Date | null | undefined;
|
|
520
533
|
} | undefined;
|
|
521
534
|
}>>>;
|
|
@@ -527,33 +540,34 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
527
540
|
existsInOwnResearch: boolean;
|
|
528
541
|
isOnCooldown: boolean;
|
|
529
542
|
lead?: {
|
|
530
|
-
status: string;
|
|
531
|
-
id: string;
|
|
532
543
|
name: string;
|
|
544
|
+
id: string;
|
|
545
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
533
546
|
phoneNumber: string;
|
|
534
547
|
cooldownUntil: string | null;
|
|
548
|
+
blacklistReason?: string | null | undefined;
|
|
535
549
|
} | null | undefined;
|
|
536
550
|
ownResearchLead?: {
|
|
537
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
538
|
-
id: string;
|
|
539
551
|
name: string;
|
|
540
|
-
updatedAt: string;
|
|
541
552
|
createdAt: string;
|
|
542
|
-
|
|
553
|
+
updatedAt: string;
|
|
554
|
+
id: string;
|
|
555
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
543
556
|
agentId: string;
|
|
544
557
|
phoneNumber: string;
|
|
545
|
-
lastCalledAt: string | null;
|
|
546
558
|
callCount: number;
|
|
559
|
+
lastCalledAt: string | null;
|
|
560
|
+
cooldownUntil: string | null;
|
|
561
|
+
blacklistReason: string | null;
|
|
547
562
|
lastCallNotes: string | null;
|
|
548
563
|
existsInLeadsTable: boolean;
|
|
549
|
-
cooldownUntil: string | null;
|
|
550
564
|
originalLeadId: string | null;
|
|
551
565
|
agent?: {
|
|
552
|
-
status: "ACTIVE" | "INACTIVE";
|
|
553
|
-
id: string;
|
|
554
|
-
updatedAt: string;
|
|
555
|
-
createdAt: string;
|
|
556
566
|
email: string;
|
|
567
|
+
createdAt: string;
|
|
568
|
+
updatedAt: string;
|
|
569
|
+
id: string;
|
|
570
|
+
status: "ACTIVE" | "INACTIVE";
|
|
557
571
|
lastName: string;
|
|
558
572
|
firstName: string;
|
|
559
573
|
phoneNumbers: {
|
|
@@ -565,8 +579,8 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
565
579
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
566
580
|
officeId?: string | null | undefined;
|
|
567
581
|
office?: {
|
|
568
|
-
id: string;
|
|
569
582
|
name: string;
|
|
583
|
+
id: string;
|
|
570
584
|
managers?: {
|
|
571
585
|
id: string;
|
|
572
586
|
lastName: string;
|
|
@@ -578,6 +592,7 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
578
592
|
lastName: string;
|
|
579
593
|
firstName: string;
|
|
580
594
|
}[] | undefined;
|
|
595
|
+
dialpadUserId?: string | null | undefined;
|
|
581
596
|
deletedAt?: string | null | undefined;
|
|
582
597
|
} | undefined;
|
|
583
598
|
} | null | undefined;
|
|
@@ -587,40 +602,41 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
587
602
|
existsInOwnResearch: boolean;
|
|
588
603
|
isOnCooldown: boolean;
|
|
589
604
|
lead?: {
|
|
590
|
-
status: string;
|
|
591
|
-
id: string;
|
|
592
605
|
name: string;
|
|
606
|
+
id: string;
|
|
607
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
593
608
|
phoneNumber: string;
|
|
594
609
|
cooldownUntil: string | Date | null;
|
|
610
|
+
blacklistReason?: string | null | undefined;
|
|
595
611
|
} | null | undefined;
|
|
596
612
|
ownResearchLead?: {
|
|
597
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
598
|
-
id: string;
|
|
599
613
|
name: string;
|
|
600
|
-
updatedAt: string | Date;
|
|
601
614
|
createdAt: string | Date;
|
|
602
|
-
|
|
615
|
+
updatedAt: string | Date;
|
|
616
|
+
id: string;
|
|
617
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
603
618
|
agentId: string;
|
|
604
619
|
phoneNumber: string;
|
|
605
|
-
lastCalledAt: string | Date | null;
|
|
606
620
|
callCount: number;
|
|
621
|
+
lastCalledAt: string | Date | null;
|
|
622
|
+
cooldownUntil: string | Date | null;
|
|
623
|
+
blacklistReason: string | null;
|
|
607
624
|
lastCallNotes: string | null;
|
|
608
625
|
existsInLeadsTable: boolean;
|
|
609
|
-
cooldownUntil: string | Date | null;
|
|
610
626
|
originalLeadId: string | null;
|
|
611
627
|
agent?: {
|
|
612
|
-
status: "ACTIVE" | "INACTIVE";
|
|
613
|
-
id: string;
|
|
614
|
-
updatedAt: string | Date;
|
|
615
|
-
createdAt: string | Date;
|
|
616
628
|
email: string;
|
|
629
|
+
createdAt: string | Date;
|
|
630
|
+
updatedAt: string | Date;
|
|
631
|
+
id: string;
|
|
632
|
+
status: "ACTIVE" | "INACTIVE";
|
|
617
633
|
lastName: string;
|
|
618
634
|
firstName: string;
|
|
619
635
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
620
636
|
officeId?: string | null | undefined;
|
|
621
637
|
office?: {
|
|
622
|
-
id: string;
|
|
623
638
|
name: string;
|
|
639
|
+
id: string;
|
|
624
640
|
managers?: {
|
|
625
641
|
id: string;
|
|
626
642
|
lastName: string;
|
|
@@ -638,6 +654,7 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
638
654
|
lastName: string;
|
|
639
655
|
firstName: string;
|
|
640
656
|
}[] | undefined;
|
|
657
|
+
dialpadUserId?: string | null | undefined;
|
|
641
658
|
deletedAt?: string | Date | null | undefined;
|
|
642
659
|
} | undefined;
|
|
643
660
|
} | null | undefined;
|
|
@@ -657,16 +674,16 @@ export declare const RecordOwnResearchCallSchema: z.ZodObject<{
|
|
|
657
674
|
callType: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>>;
|
|
658
675
|
}, "strip", z.ZodTypeAny, {
|
|
659
676
|
name: string;
|
|
660
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
661
677
|
phoneNumber: string;
|
|
662
|
-
|
|
678
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
663
679
|
notes?: string | undefined;
|
|
680
|
+
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
664
681
|
}, {
|
|
665
682
|
name: string;
|
|
666
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
667
683
|
phoneNumber: string;
|
|
668
|
-
|
|
684
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
669
685
|
notes?: string | undefined;
|
|
686
|
+
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
670
687
|
}>;
|
|
671
688
|
export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
672
689
|
assignment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -723,16 +740,16 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
723
740
|
firstName: string;
|
|
724
741
|
}>, "many">>;
|
|
725
742
|
}, "strip", z.ZodTypeAny, {
|
|
726
|
-
id: string;
|
|
727
743
|
name: string;
|
|
744
|
+
id: string;
|
|
728
745
|
managers?: {
|
|
729
746
|
id: string;
|
|
730
747
|
lastName: string;
|
|
731
748
|
firstName: string;
|
|
732
749
|
}[] | undefined;
|
|
733
750
|
}, {
|
|
734
|
-
id: string;
|
|
735
751
|
name: string;
|
|
752
|
+
id: string;
|
|
736
753
|
managers?: {
|
|
737
754
|
id: string;
|
|
738
755
|
lastName: string;
|
|
@@ -753,15 +770,16 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
753
770
|
firstName: string;
|
|
754
771
|
}>, "many">>;
|
|
755
772
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
773
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
756
774
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
757
775
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
758
776
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
759
777
|
}, "strip", z.ZodTypeAny, {
|
|
760
|
-
status: "ACTIVE" | "INACTIVE";
|
|
761
|
-
id: string;
|
|
762
|
-
updatedAt: string;
|
|
763
|
-
createdAt: string;
|
|
764
778
|
email: string;
|
|
779
|
+
createdAt: string;
|
|
780
|
+
updatedAt: string;
|
|
781
|
+
id: string;
|
|
782
|
+
status: "ACTIVE" | "INACTIVE";
|
|
765
783
|
lastName: string;
|
|
766
784
|
firstName: string;
|
|
767
785
|
phoneNumbers: {
|
|
@@ -773,8 +791,8 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
773
791
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
774
792
|
officeId?: string | null | undefined;
|
|
775
793
|
office?: {
|
|
776
|
-
id: string;
|
|
777
794
|
name: string;
|
|
795
|
+
id: string;
|
|
778
796
|
managers?: {
|
|
779
797
|
id: string;
|
|
780
798
|
lastName: string;
|
|
@@ -786,20 +804,21 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
786
804
|
lastName: string;
|
|
787
805
|
firstName: string;
|
|
788
806
|
}[] | undefined;
|
|
807
|
+
dialpadUserId?: string | null | undefined;
|
|
789
808
|
deletedAt?: string | null | undefined;
|
|
790
809
|
}, {
|
|
791
|
-
status: "ACTIVE" | "INACTIVE";
|
|
792
|
-
id: string;
|
|
793
|
-
updatedAt: string | Date;
|
|
794
|
-
createdAt: string | Date;
|
|
795
810
|
email: string;
|
|
811
|
+
createdAt: string | Date;
|
|
812
|
+
updatedAt: string | Date;
|
|
813
|
+
id: string;
|
|
814
|
+
status: "ACTIVE" | "INACTIVE";
|
|
796
815
|
lastName: string;
|
|
797
816
|
firstName: string;
|
|
798
817
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
799
818
|
officeId?: string | null | undefined;
|
|
800
819
|
office?: {
|
|
801
|
-
id: string;
|
|
802
820
|
name: string;
|
|
821
|
+
id: string;
|
|
803
822
|
managers?: {
|
|
804
823
|
id: string;
|
|
805
824
|
lastName: string;
|
|
@@ -817,6 +836,7 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
817
836
|
lastName: string;
|
|
818
837
|
firstName: string;
|
|
819
838
|
}[] | undefined;
|
|
839
|
+
dialpadUserId?: string | null | undefined;
|
|
820
840
|
deletedAt?: string | Date | null | undefined;
|
|
821
841
|
}>>;
|
|
822
842
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -829,44 +849,34 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
829
849
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
830
850
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
831
851
|
}, "strip", z.ZodTypeAny, {
|
|
832
|
-
id: string;
|
|
833
852
|
name: string;
|
|
834
|
-
updatedAt: string;
|
|
835
853
|
createdAt: string;
|
|
836
|
-
|
|
854
|
+
updatedAt: string;
|
|
837
855
|
id: string;
|
|
856
|
+
}, {
|
|
838
857
|
name: string;
|
|
839
|
-
updatedAt: string | Date;
|
|
840
858
|
createdAt: string | Date;
|
|
859
|
+
updatedAt: string | Date;
|
|
860
|
+
id: string;
|
|
841
861
|
}>>>;
|
|
842
862
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
843
863
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
844
864
|
}, "strip", z.ZodTypeAny, {
|
|
845
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
846
|
-
id: string;
|
|
847
|
-
updatedAt: string;
|
|
848
865
|
createdAt: string;
|
|
849
|
-
|
|
866
|
+
updatedAt: string;
|
|
867
|
+
id: string;
|
|
868
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
850
869
|
agentId: string | null;
|
|
851
870
|
leadId: string;
|
|
852
871
|
assignedAt: string;
|
|
853
872
|
assignedBy: string | null;
|
|
854
|
-
|
|
855
|
-
id: string;
|
|
856
|
-
name: string;
|
|
857
|
-
updatedAt: string;
|
|
858
|
-
createdAt: string;
|
|
859
|
-
} | null | undefined;
|
|
860
|
-
lead?: {
|
|
861
|
-
name: string;
|
|
862
|
-
phoneNumber: string;
|
|
863
|
-
} | undefined;
|
|
873
|
+
companyId: string | null;
|
|
864
874
|
agent?: {
|
|
865
|
-
status: "ACTIVE" | "INACTIVE";
|
|
866
|
-
id: string;
|
|
867
|
-
updatedAt: string;
|
|
868
|
-
createdAt: string;
|
|
869
875
|
email: string;
|
|
876
|
+
createdAt: string;
|
|
877
|
+
updatedAt: string;
|
|
878
|
+
id: string;
|
|
879
|
+
status: "ACTIVE" | "INACTIVE";
|
|
870
880
|
lastName: string;
|
|
871
881
|
firstName: string;
|
|
872
882
|
phoneNumbers: {
|
|
@@ -878,8 +888,8 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
878
888
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
879
889
|
officeId?: string | null | undefined;
|
|
880
890
|
office?: {
|
|
881
|
-
id: string;
|
|
882
891
|
name: string;
|
|
892
|
+
id: string;
|
|
883
893
|
managers?: {
|
|
884
894
|
id: string;
|
|
885
895
|
lastName: string;
|
|
@@ -891,41 +901,42 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
891
901
|
lastName: string;
|
|
892
902
|
firstName: string;
|
|
893
903
|
}[] | undefined;
|
|
904
|
+
dialpadUserId?: string | null | undefined;
|
|
894
905
|
deletedAt?: string | null | undefined;
|
|
895
906
|
} | undefined;
|
|
907
|
+
lead?: {
|
|
908
|
+
name: string;
|
|
909
|
+
phoneNumber: string;
|
|
910
|
+
} | undefined;
|
|
911
|
+
company?: {
|
|
912
|
+
name: string;
|
|
913
|
+
createdAt: string;
|
|
914
|
+
updatedAt: string;
|
|
915
|
+
id: string;
|
|
916
|
+
} | null | undefined;
|
|
896
917
|
}, {
|
|
897
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
898
|
-
id: string;
|
|
899
|
-
updatedAt: string | Date;
|
|
900
918
|
createdAt: string | Date;
|
|
901
|
-
|
|
919
|
+
updatedAt: string | Date;
|
|
920
|
+
id: string;
|
|
921
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
902
922
|
agentId: string | null;
|
|
903
923
|
leadId: string;
|
|
904
924
|
assignedAt: string | Date;
|
|
905
925
|
assignedBy: string | null;
|
|
906
|
-
|
|
907
|
-
id: string;
|
|
908
|
-
name: string;
|
|
909
|
-
updatedAt: string | Date;
|
|
910
|
-
createdAt: string | Date;
|
|
911
|
-
} | null | undefined;
|
|
912
|
-
lead?: {
|
|
913
|
-
name: string;
|
|
914
|
-
phoneNumber: string;
|
|
915
|
-
} | undefined;
|
|
926
|
+
companyId: string | null;
|
|
916
927
|
agent?: {
|
|
917
|
-
status: "ACTIVE" | "INACTIVE";
|
|
918
|
-
id: string;
|
|
919
|
-
updatedAt: string | Date;
|
|
920
|
-
createdAt: string | Date;
|
|
921
928
|
email: string;
|
|
929
|
+
createdAt: string | Date;
|
|
930
|
+
updatedAt: string | Date;
|
|
931
|
+
id: string;
|
|
932
|
+
status: "ACTIVE" | "INACTIVE";
|
|
922
933
|
lastName: string;
|
|
923
934
|
firstName: string;
|
|
924
935
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
925
936
|
officeId?: string | null | undefined;
|
|
926
937
|
office?: {
|
|
927
|
-
id: string;
|
|
928
938
|
name: string;
|
|
939
|
+
id: string;
|
|
929
940
|
managers?: {
|
|
930
941
|
id: string;
|
|
931
942
|
lastName: string;
|
|
@@ -943,8 +954,19 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
943
954
|
lastName: string;
|
|
944
955
|
firstName: string;
|
|
945
956
|
}[] | undefined;
|
|
957
|
+
dialpadUserId?: string | null | undefined;
|
|
946
958
|
deletedAt?: string | Date | null | undefined;
|
|
947
959
|
} | undefined;
|
|
960
|
+
lead?: {
|
|
961
|
+
name: string;
|
|
962
|
+
phoneNumber: string;
|
|
963
|
+
} | undefined;
|
|
964
|
+
company?: {
|
|
965
|
+
name: string;
|
|
966
|
+
createdAt: string | Date;
|
|
967
|
+
updatedAt: string | Date;
|
|
968
|
+
id: string;
|
|
969
|
+
} | null | undefined;
|
|
948
970
|
}>>>;
|
|
949
971
|
ownResearchLead: z.ZodObject<{
|
|
950
972
|
id: z.ZodString;
|
|
@@ -989,16 +1011,16 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
989
1011
|
firstName: string;
|
|
990
1012
|
}>, "many">>;
|
|
991
1013
|
}, "strip", z.ZodTypeAny, {
|
|
992
|
-
id: string;
|
|
993
1014
|
name: string;
|
|
1015
|
+
id: string;
|
|
994
1016
|
managers?: {
|
|
995
1017
|
id: string;
|
|
996
1018
|
lastName: string;
|
|
997
1019
|
firstName: string;
|
|
998
1020
|
}[] | undefined;
|
|
999
1021
|
}, {
|
|
1000
|
-
id: string;
|
|
1001
1022
|
name: string;
|
|
1023
|
+
id: string;
|
|
1002
1024
|
managers?: {
|
|
1003
1025
|
id: string;
|
|
1004
1026
|
lastName: string;
|
|
@@ -1019,15 +1041,16 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1019
1041
|
firstName: string;
|
|
1020
1042
|
}>, "many">>;
|
|
1021
1043
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1044
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1022
1045
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1023
1046
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1024
1047
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1025
1048
|
}, "strip", z.ZodTypeAny, {
|
|
1026
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1027
|
-
id: string;
|
|
1028
|
-
updatedAt: string;
|
|
1029
|
-
createdAt: string;
|
|
1030
1049
|
email: string;
|
|
1050
|
+
createdAt: string;
|
|
1051
|
+
updatedAt: string;
|
|
1052
|
+
id: string;
|
|
1053
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1031
1054
|
lastName: string;
|
|
1032
1055
|
firstName: string;
|
|
1033
1056
|
phoneNumbers: {
|
|
@@ -1039,8 +1062,8 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1039
1062
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1040
1063
|
officeId?: string | null | undefined;
|
|
1041
1064
|
office?: {
|
|
1042
|
-
id: string;
|
|
1043
1065
|
name: string;
|
|
1066
|
+
id: string;
|
|
1044
1067
|
managers?: {
|
|
1045
1068
|
id: string;
|
|
1046
1069
|
lastName: string;
|
|
@@ -1052,20 +1075,21 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1052
1075
|
lastName: string;
|
|
1053
1076
|
firstName: string;
|
|
1054
1077
|
}[] | undefined;
|
|
1078
|
+
dialpadUserId?: string | null | undefined;
|
|
1055
1079
|
deletedAt?: string | null | undefined;
|
|
1056
1080
|
}, {
|
|
1057
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1058
|
-
id: string;
|
|
1059
|
-
updatedAt: string | Date;
|
|
1060
|
-
createdAt: string | Date;
|
|
1061
1081
|
email: string;
|
|
1082
|
+
createdAt: string | Date;
|
|
1083
|
+
updatedAt: string | Date;
|
|
1084
|
+
id: string;
|
|
1085
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1062
1086
|
lastName: string;
|
|
1063
1087
|
firstName: string;
|
|
1064
1088
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1065
1089
|
officeId?: string | null | undefined;
|
|
1066
1090
|
office?: {
|
|
1067
|
-
id: string;
|
|
1068
1091
|
name: string;
|
|
1092
|
+
id: string;
|
|
1069
1093
|
managers?: {
|
|
1070
1094
|
id: string;
|
|
1071
1095
|
lastName: string;
|
|
@@ -1083,6 +1107,7 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1083
1107
|
lastName: string;
|
|
1084
1108
|
firstName: string;
|
|
1085
1109
|
}[] | undefined;
|
|
1110
|
+
dialpadUserId?: string | null | undefined;
|
|
1086
1111
|
deletedAt?: string | Date | null | undefined;
|
|
1087
1112
|
}>>;
|
|
1088
1113
|
name: z.ZodString;
|
|
@@ -1098,26 +1123,26 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1098
1123
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1099
1124
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1100
1125
|
}, "strip", z.ZodTypeAny, {
|
|
1101
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1102
|
-
id: string;
|
|
1103
1126
|
name: string;
|
|
1104
|
-
updatedAt: string;
|
|
1105
1127
|
createdAt: string;
|
|
1106
|
-
|
|
1128
|
+
updatedAt: string;
|
|
1129
|
+
id: string;
|
|
1130
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1107
1131
|
agentId: string;
|
|
1108
1132
|
phoneNumber: string;
|
|
1109
|
-
lastCalledAt: string | null;
|
|
1110
1133
|
callCount: number;
|
|
1134
|
+
lastCalledAt: string | null;
|
|
1135
|
+
cooldownUntil: string | null;
|
|
1136
|
+
blacklistReason: string | null;
|
|
1111
1137
|
lastCallNotes: string | null;
|
|
1112
1138
|
existsInLeadsTable: boolean;
|
|
1113
|
-
cooldownUntil: string | null;
|
|
1114
1139
|
originalLeadId: string | null;
|
|
1115
1140
|
agent?: {
|
|
1116
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1117
|
-
id: string;
|
|
1118
|
-
updatedAt: string;
|
|
1119
|
-
createdAt: string;
|
|
1120
1141
|
email: string;
|
|
1142
|
+
createdAt: string;
|
|
1143
|
+
updatedAt: string;
|
|
1144
|
+
id: string;
|
|
1145
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1121
1146
|
lastName: string;
|
|
1122
1147
|
firstName: string;
|
|
1123
1148
|
phoneNumbers: {
|
|
@@ -1129,8 +1154,8 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1129
1154
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1130
1155
|
officeId?: string | null | undefined;
|
|
1131
1156
|
office?: {
|
|
1132
|
-
id: string;
|
|
1133
1157
|
name: string;
|
|
1158
|
+
id: string;
|
|
1134
1159
|
managers?: {
|
|
1135
1160
|
id: string;
|
|
1136
1161
|
lastName: string;
|
|
@@ -1142,36 +1167,37 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1142
1167
|
lastName: string;
|
|
1143
1168
|
firstName: string;
|
|
1144
1169
|
}[] | undefined;
|
|
1170
|
+
dialpadUserId?: string | null | undefined;
|
|
1145
1171
|
deletedAt?: string | null | undefined;
|
|
1146
1172
|
} | undefined;
|
|
1147
1173
|
}, {
|
|
1148
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1149
|
-
id: string;
|
|
1150
1174
|
name: string;
|
|
1151
|
-
updatedAt: string | Date;
|
|
1152
1175
|
createdAt: string | Date;
|
|
1153
|
-
|
|
1176
|
+
updatedAt: string | Date;
|
|
1177
|
+
id: string;
|
|
1178
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1154
1179
|
agentId: string;
|
|
1155
1180
|
phoneNumber: string;
|
|
1156
|
-
lastCalledAt: string | Date | null;
|
|
1157
1181
|
callCount: number;
|
|
1182
|
+
lastCalledAt: string | Date | null;
|
|
1183
|
+
cooldownUntil: string | Date | null;
|
|
1184
|
+
blacklistReason: string | null;
|
|
1158
1185
|
lastCallNotes: string | null;
|
|
1159
1186
|
existsInLeadsTable: boolean;
|
|
1160
|
-
cooldownUntil: string | Date | null;
|
|
1161
1187
|
originalLeadId: string | null;
|
|
1162
1188
|
agent?: {
|
|
1163
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1164
|
-
id: string;
|
|
1165
|
-
updatedAt: string | Date;
|
|
1166
|
-
createdAt: string | Date;
|
|
1167
1189
|
email: string;
|
|
1190
|
+
createdAt: string | Date;
|
|
1191
|
+
updatedAt: string | Date;
|
|
1192
|
+
id: string;
|
|
1193
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1168
1194
|
lastName: string;
|
|
1169
1195
|
firstName: string;
|
|
1170
1196
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1171
1197
|
officeId?: string | null | undefined;
|
|
1172
1198
|
office?: {
|
|
1173
|
-
id: string;
|
|
1174
1199
|
name: string;
|
|
1200
|
+
id: string;
|
|
1175
1201
|
managers?: {
|
|
1176
1202
|
id: string;
|
|
1177
1203
|
lastName: string;
|
|
@@ -1189,31 +1215,32 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1189
1215
|
lastName: string;
|
|
1190
1216
|
firstName: string;
|
|
1191
1217
|
}[] | undefined;
|
|
1218
|
+
dialpadUserId?: string | null | undefined;
|
|
1192
1219
|
deletedAt?: string | Date | null | undefined;
|
|
1193
1220
|
} | undefined;
|
|
1194
1221
|
}>;
|
|
1195
1222
|
}, "strip", z.ZodTypeAny, {
|
|
1196
1223
|
ownResearchLead: {
|
|
1197
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1198
|
-
id: string;
|
|
1199
1224
|
name: string;
|
|
1200
|
-
updatedAt: string;
|
|
1201
1225
|
createdAt: string;
|
|
1202
|
-
|
|
1226
|
+
updatedAt: string;
|
|
1227
|
+
id: string;
|
|
1228
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1203
1229
|
agentId: string;
|
|
1204
1230
|
phoneNumber: string;
|
|
1205
|
-
lastCalledAt: string | null;
|
|
1206
1231
|
callCount: number;
|
|
1232
|
+
lastCalledAt: string | null;
|
|
1233
|
+
cooldownUntil: string | null;
|
|
1234
|
+
blacklistReason: string | null;
|
|
1207
1235
|
lastCallNotes: string | null;
|
|
1208
1236
|
existsInLeadsTable: boolean;
|
|
1209
|
-
cooldownUntil: string | null;
|
|
1210
1237
|
originalLeadId: string | null;
|
|
1211
1238
|
agent?: {
|
|
1212
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1213
|
-
id: string;
|
|
1214
|
-
updatedAt: string;
|
|
1215
|
-
createdAt: string;
|
|
1216
1239
|
email: string;
|
|
1240
|
+
createdAt: string;
|
|
1241
|
+
updatedAt: string;
|
|
1242
|
+
id: string;
|
|
1243
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1217
1244
|
lastName: string;
|
|
1218
1245
|
firstName: string;
|
|
1219
1246
|
phoneNumbers: {
|
|
@@ -1225,8 +1252,8 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1225
1252
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1226
1253
|
officeId?: string | null | undefined;
|
|
1227
1254
|
office?: {
|
|
1228
|
-
id: string;
|
|
1229
1255
|
name: string;
|
|
1256
|
+
id: string;
|
|
1230
1257
|
managers?: {
|
|
1231
1258
|
id: string;
|
|
1232
1259
|
lastName: string;
|
|
@@ -1238,35 +1265,26 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1238
1265
|
lastName: string;
|
|
1239
1266
|
firstName: string;
|
|
1240
1267
|
}[] | undefined;
|
|
1268
|
+
dialpadUserId?: string | null | undefined;
|
|
1241
1269
|
deletedAt?: string | null | undefined;
|
|
1242
1270
|
} | undefined;
|
|
1243
1271
|
};
|
|
1244
1272
|
assignment?: {
|
|
1245
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1246
|
-
id: string;
|
|
1247
|
-
updatedAt: string;
|
|
1248
1273
|
createdAt: string;
|
|
1249
|
-
|
|
1274
|
+
updatedAt: string;
|
|
1275
|
+
id: string;
|
|
1276
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1250
1277
|
agentId: string | null;
|
|
1251
1278
|
leadId: string;
|
|
1252
1279
|
assignedAt: string;
|
|
1253
1280
|
assignedBy: string | null;
|
|
1254
|
-
|
|
1255
|
-
id: string;
|
|
1256
|
-
name: string;
|
|
1257
|
-
updatedAt: string;
|
|
1258
|
-
createdAt: string;
|
|
1259
|
-
} | null | undefined;
|
|
1260
|
-
lead?: {
|
|
1261
|
-
name: string;
|
|
1262
|
-
phoneNumber: string;
|
|
1263
|
-
} | undefined;
|
|
1281
|
+
companyId: string | null;
|
|
1264
1282
|
agent?: {
|
|
1265
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1266
|
-
id: string;
|
|
1267
|
-
updatedAt: string;
|
|
1268
|
-
createdAt: string;
|
|
1269
1283
|
email: string;
|
|
1284
|
+
createdAt: string;
|
|
1285
|
+
updatedAt: string;
|
|
1286
|
+
id: string;
|
|
1287
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1270
1288
|
lastName: string;
|
|
1271
1289
|
firstName: string;
|
|
1272
1290
|
phoneNumbers: {
|
|
@@ -1278,8 +1296,8 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1278
1296
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1279
1297
|
officeId?: string | null | undefined;
|
|
1280
1298
|
office?: {
|
|
1281
|
-
id: string;
|
|
1282
1299
|
name: string;
|
|
1300
|
+
id: string;
|
|
1283
1301
|
managers?: {
|
|
1284
1302
|
id: string;
|
|
1285
1303
|
lastName: string;
|
|
@@ -1291,38 +1309,49 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1291
1309
|
lastName: string;
|
|
1292
1310
|
firstName: string;
|
|
1293
1311
|
}[] | undefined;
|
|
1312
|
+
dialpadUserId?: string | null | undefined;
|
|
1294
1313
|
deletedAt?: string | null | undefined;
|
|
1295
1314
|
} | undefined;
|
|
1315
|
+
lead?: {
|
|
1316
|
+
name: string;
|
|
1317
|
+
phoneNumber: string;
|
|
1318
|
+
} | undefined;
|
|
1319
|
+
company?: {
|
|
1320
|
+
name: string;
|
|
1321
|
+
createdAt: string;
|
|
1322
|
+
updatedAt: string;
|
|
1323
|
+
id: string;
|
|
1324
|
+
} | null | undefined;
|
|
1296
1325
|
} | null | undefined;
|
|
1297
1326
|
}, {
|
|
1298
1327
|
ownResearchLead: {
|
|
1299
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1300
|
-
id: string;
|
|
1301
1328
|
name: string;
|
|
1302
|
-
updatedAt: string | Date;
|
|
1303
1329
|
createdAt: string | Date;
|
|
1304
|
-
|
|
1330
|
+
updatedAt: string | Date;
|
|
1331
|
+
id: string;
|
|
1332
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1305
1333
|
agentId: string;
|
|
1306
1334
|
phoneNumber: string;
|
|
1307
|
-
lastCalledAt: string | Date | null;
|
|
1308
1335
|
callCount: number;
|
|
1336
|
+
lastCalledAt: string | Date | null;
|
|
1337
|
+
cooldownUntil: string | Date | null;
|
|
1338
|
+
blacklistReason: string | null;
|
|
1309
1339
|
lastCallNotes: string | null;
|
|
1310
1340
|
existsInLeadsTable: boolean;
|
|
1311
|
-
cooldownUntil: string | Date | null;
|
|
1312
1341
|
originalLeadId: string | null;
|
|
1313
1342
|
agent?: {
|
|
1314
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1315
|
-
id: string;
|
|
1316
|
-
updatedAt: string | Date;
|
|
1317
|
-
createdAt: string | Date;
|
|
1318
1343
|
email: string;
|
|
1344
|
+
createdAt: string | Date;
|
|
1345
|
+
updatedAt: string | Date;
|
|
1346
|
+
id: string;
|
|
1347
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1319
1348
|
lastName: string;
|
|
1320
1349
|
firstName: string;
|
|
1321
1350
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1322
1351
|
officeId?: string | null | undefined;
|
|
1323
1352
|
office?: {
|
|
1324
|
-
id: string;
|
|
1325
1353
|
name: string;
|
|
1354
|
+
id: string;
|
|
1326
1355
|
managers?: {
|
|
1327
1356
|
id: string;
|
|
1328
1357
|
lastName: string;
|
|
@@ -1340,42 +1369,33 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1340
1369
|
lastName: string;
|
|
1341
1370
|
firstName: string;
|
|
1342
1371
|
}[] | undefined;
|
|
1372
|
+
dialpadUserId?: string | null | undefined;
|
|
1343
1373
|
deletedAt?: string | Date | null | undefined;
|
|
1344
1374
|
} | undefined;
|
|
1345
1375
|
};
|
|
1346
1376
|
assignment?: {
|
|
1347
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1348
|
-
id: string;
|
|
1349
|
-
updatedAt: string | Date;
|
|
1350
1377
|
createdAt: string | Date;
|
|
1351
|
-
|
|
1378
|
+
updatedAt: string | Date;
|
|
1379
|
+
id: string;
|
|
1380
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1352
1381
|
agentId: string | null;
|
|
1353
1382
|
leadId: string;
|
|
1354
1383
|
assignedAt: string | Date;
|
|
1355
1384
|
assignedBy: string | null;
|
|
1356
|
-
|
|
1357
|
-
id: string;
|
|
1358
|
-
name: string;
|
|
1359
|
-
updatedAt: string | Date;
|
|
1360
|
-
createdAt: string | Date;
|
|
1361
|
-
} | null | undefined;
|
|
1362
|
-
lead?: {
|
|
1363
|
-
name: string;
|
|
1364
|
-
phoneNumber: string;
|
|
1365
|
-
} | undefined;
|
|
1385
|
+
companyId: string | null;
|
|
1366
1386
|
agent?: {
|
|
1367
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1368
|
-
id: string;
|
|
1369
|
-
updatedAt: string | Date;
|
|
1370
|
-
createdAt: string | Date;
|
|
1371
1387
|
email: string;
|
|
1388
|
+
createdAt: string | Date;
|
|
1389
|
+
updatedAt: string | Date;
|
|
1390
|
+
id: string;
|
|
1391
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1372
1392
|
lastName: string;
|
|
1373
1393
|
firstName: string;
|
|
1374
1394
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1375
1395
|
officeId?: string | null | undefined;
|
|
1376
1396
|
office?: {
|
|
1377
|
-
id: string;
|
|
1378
1397
|
name: string;
|
|
1398
|
+
id: string;
|
|
1379
1399
|
managers?: {
|
|
1380
1400
|
id: string;
|
|
1381
1401
|
lastName: string;
|
|
@@ -1393,8 +1413,19 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1393
1413
|
lastName: string;
|
|
1394
1414
|
firstName: string;
|
|
1395
1415
|
}[] | undefined;
|
|
1416
|
+
dialpadUserId?: string | null | undefined;
|
|
1396
1417
|
deletedAt?: string | Date | null | undefined;
|
|
1397
1418
|
} | undefined;
|
|
1419
|
+
lead?: {
|
|
1420
|
+
name: string;
|
|
1421
|
+
phoneNumber: string;
|
|
1422
|
+
} | undefined;
|
|
1423
|
+
company?: {
|
|
1424
|
+
name: string;
|
|
1425
|
+
createdAt: string | Date;
|
|
1426
|
+
updatedAt: string | Date;
|
|
1427
|
+
id: string;
|
|
1428
|
+
} | null | undefined;
|
|
1398
1429
|
} | null | undefined;
|
|
1399
1430
|
}>;
|
|
1400
1431
|
export declare const AddOwnResearchLeadSchema: z.ZodObject<{
|
|
@@ -1451,16 +1482,16 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1451
1482
|
firstName: string;
|
|
1452
1483
|
}>, "many">>;
|
|
1453
1484
|
}, "strip", z.ZodTypeAny, {
|
|
1454
|
-
id: string;
|
|
1455
1485
|
name: string;
|
|
1486
|
+
id: string;
|
|
1456
1487
|
managers?: {
|
|
1457
1488
|
id: string;
|
|
1458
1489
|
lastName: string;
|
|
1459
1490
|
firstName: string;
|
|
1460
1491
|
}[] | undefined;
|
|
1461
1492
|
}, {
|
|
1462
|
-
id: string;
|
|
1463
1493
|
name: string;
|
|
1494
|
+
id: string;
|
|
1464
1495
|
managers?: {
|
|
1465
1496
|
id: string;
|
|
1466
1497
|
lastName: string;
|
|
@@ -1481,15 +1512,16 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1481
1512
|
firstName: string;
|
|
1482
1513
|
}>, "many">>;
|
|
1483
1514
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1515
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1484
1516
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1485
1517
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1486
1518
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1487
1519
|
}, "strip", z.ZodTypeAny, {
|
|
1488
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1489
|
-
id: string;
|
|
1490
|
-
updatedAt: string;
|
|
1491
|
-
createdAt: string;
|
|
1492
1520
|
email: string;
|
|
1521
|
+
createdAt: string;
|
|
1522
|
+
updatedAt: string;
|
|
1523
|
+
id: string;
|
|
1524
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1493
1525
|
lastName: string;
|
|
1494
1526
|
firstName: string;
|
|
1495
1527
|
phoneNumbers: {
|
|
@@ -1501,8 +1533,8 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1501
1533
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1502
1534
|
officeId?: string | null | undefined;
|
|
1503
1535
|
office?: {
|
|
1504
|
-
id: string;
|
|
1505
1536
|
name: string;
|
|
1537
|
+
id: string;
|
|
1506
1538
|
managers?: {
|
|
1507
1539
|
id: string;
|
|
1508
1540
|
lastName: string;
|
|
@@ -1514,20 +1546,21 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1514
1546
|
lastName: string;
|
|
1515
1547
|
firstName: string;
|
|
1516
1548
|
}[] | undefined;
|
|
1549
|
+
dialpadUserId?: string | null | undefined;
|
|
1517
1550
|
deletedAt?: string | null | undefined;
|
|
1518
1551
|
}, {
|
|
1519
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1520
|
-
id: string;
|
|
1521
|
-
updatedAt: string | Date;
|
|
1522
|
-
createdAt: string | Date;
|
|
1523
1552
|
email: string;
|
|
1553
|
+
createdAt: string | Date;
|
|
1554
|
+
updatedAt: string | Date;
|
|
1555
|
+
id: string;
|
|
1556
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1524
1557
|
lastName: string;
|
|
1525
1558
|
firstName: string;
|
|
1526
1559
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1527
1560
|
officeId?: string | null | undefined;
|
|
1528
1561
|
office?: {
|
|
1529
|
-
id: string;
|
|
1530
1562
|
name: string;
|
|
1563
|
+
id: string;
|
|
1531
1564
|
managers?: {
|
|
1532
1565
|
id: string;
|
|
1533
1566
|
lastName: string;
|
|
@@ -1545,6 +1578,7 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1545
1578
|
lastName: string;
|
|
1546
1579
|
firstName: string;
|
|
1547
1580
|
}[] | undefined;
|
|
1581
|
+
dialpadUserId?: string | null | undefined;
|
|
1548
1582
|
deletedAt?: string | Date | null | undefined;
|
|
1549
1583
|
}>>;
|
|
1550
1584
|
name: z.ZodString;
|
|
@@ -1560,27 +1594,27 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1560
1594
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1561
1595
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1562
1596
|
}, "strip", z.ZodTypeAny, {
|
|
1563
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1564
|
-
id: string;
|
|
1565
1597
|
name: string;
|
|
1566
|
-
updatedAt: string;
|
|
1567
1598
|
createdAt: string;
|
|
1568
|
-
|
|
1599
|
+
updatedAt: string;
|
|
1600
|
+
id: string;
|
|
1601
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1569
1602
|
agentId: string;
|
|
1570
1603
|
phoneNumber: string;
|
|
1571
|
-
lastCalledAt: string | null;
|
|
1572
1604
|
callCount: number;
|
|
1605
|
+
lastCalledAt: string | null;
|
|
1606
|
+
cooldownUntil: string | null;
|
|
1607
|
+
blacklistReason: string | null;
|
|
1573
1608
|
lastCallNotes: string | null;
|
|
1574
1609
|
existsInLeadsTable: boolean;
|
|
1575
|
-
cooldownUntil: string | null;
|
|
1576
1610
|
originalLeadId: string | null;
|
|
1577
1611
|
agent?: {
|
|
1578
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1579
|
-
id: string;
|
|
1580
|
-
updatedAt: string;
|
|
1581
|
-
createdAt: string;
|
|
1582
1612
|
email: string;
|
|
1583
|
-
|
|
1613
|
+
createdAt: string;
|
|
1614
|
+
updatedAt: string;
|
|
1615
|
+
id: string;
|
|
1616
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1617
|
+
lastName: string;
|
|
1584
1618
|
firstName: string;
|
|
1585
1619
|
phoneNumbers: {
|
|
1586
1620
|
id: string;
|
|
@@ -1591,8 +1625,8 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1591
1625
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1592
1626
|
officeId?: string | null | undefined;
|
|
1593
1627
|
office?: {
|
|
1594
|
-
id: string;
|
|
1595
1628
|
name: string;
|
|
1629
|
+
id: string;
|
|
1596
1630
|
managers?: {
|
|
1597
1631
|
id: string;
|
|
1598
1632
|
lastName: string;
|
|
@@ -1604,36 +1638,37 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1604
1638
|
lastName: string;
|
|
1605
1639
|
firstName: string;
|
|
1606
1640
|
}[] | undefined;
|
|
1641
|
+
dialpadUserId?: string | null | undefined;
|
|
1607
1642
|
deletedAt?: string | null | undefined;
|
|
1608
1643
|
} | undefined;
|
|
1609
1644
|
}, {
|
|
1610
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1611
|
-
id: string;
|
|
1612
1645
|
name: string;
|
|
1613
|
-
updatedAt: string | Date;
|
|
1614
1646
|
createdAt: string | Date;
|
|
1615
|
-
|
|
1647
|
+
updatedAt: string | Date;
|
|
1648
|
+
id: string;
|
|
1649
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1616
1650
|
agentId: string;
|
|
1617
1651
|
phoneNumber: string;
|
|
1618
|
-
lastCalledAt: string | Date | null;
|
|
1619
1652
|
callCount: number;
|
|
1653
|
+
lastCalledAt: string | Date | null;
|
|
1654
|
+
cooldownUntil: string | Date | null;
|
|
1655
|
+
blacklistReason: string | null;
|
|
1620
1656
|
lastCallNotes: string | null;
|
|
1621
1657
|
existsInLeadsTable: boolean;
|
|
1622
|
-
cooldownUntil: string | Date | null;
|
|
1623
1658
|
originalLeadId: string | null;
|
|
1624
1659
|
agent?: {
|
|
1625
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1626
|
-
id: string;
|
|
1627
|
-
updatedAt: string | Date;
|
|
1628
|
-
createdAt: string | Date;
|
|
1629
1660
|
email: string;
|
|
1661
|
+
createdAt: string | Date;
|
|
1662
|
+
updatedAt: string | Date;
|
|
1663
|
+
id: string;
|
|
1664
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1630
1665
|
lastName: string;
|
|
1631
1666
|
firstName: string;
|
|
1632
1667
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1633
1668
|
officeId?: string | null | undefined;
|
|
1634
1669
|
office?: {
|
|
1635
|
-
id: string;
|
|
1636
1670
|
name: string;
|
|
1671
|
+
id: string;
|
|
1637
1672
|
managers?: {
|
|
1638
1673
|
id: string;
|
|
1639
1674
|
lastName: string;
|
|
@@ -1651,31 +1686,32 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1651
1686
|
lastName: string;
|
|
1652
1687
|
firstName: string;
|
|
1653
1688
|
}[] | undefined;
|
|
1689
|
+
dialpadUserId?: string | null | undefined;
|
|
1654
1690
|
deletedAt?: string | Date | null | undefined;
|
|
1655
1691
|
} | undefined;
|
|
1656
1692
|
}>;
|
|
1657
1693
|
}, "strip", z.ZodTypeAny, {
|
|
1658
1694
|
ownResearchLead: {
|
|
1659
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1660
|
-
id: string;
|
|
1661
1695
|
name: string;
|
|
1662
|
-
updatedAt: string;
|
|
1663
1696
|
createdAt: string;
|
|
1664
|
-
|
|
1697
|
+
updatedAt: string;
|
|
1698
|
+
id: string;
|
|
1699
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1665
1700
|
agentId: string;
|
|
1666
1701
|
phoneNumber: string;
|
|
1667
|
-
lastCalledAt: string | null;
|
|
1668
1702
|
callCount: number;
|
|
1703
|
+
lastCalledAt: string | null;
|
|
1704
|
+
cooldownUntil: string | null;
|
|
1705
|
+
blacklistReason: string | null;
|
|
1669
1706
|
lastCallNotes: string | null;
|
|
1670
1707
|
existsInLeadsTable: boolean;
|
|
1671
|
-
cooldownUntil: string | null;
|
|
1672
1708
|
originalLeadId: string | null;
|
|
1673
1709
|
agent?: {
|
|
1674
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1675
|
-
id: string;
|
|
1676
|
-
updatedAt: string;
|
|
1677
|
-
createdAt: string;
|
|
1678
1710
|
email: string;
|
|
1711
|
+
createdAt: string;
|
|
1712
|
+
updatedAt: string;
|
|
1713
|
+
id: string;
|
|
1714
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1679
1715
|
lastName: string;
|
|
1680
1716
|
firstName: string;
|
|
1681
1717
|
phoneNumbers: {
|
|
@@ -1687,8 +1723,8 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1687
1723
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1688
1724
|
officeId?: string | null | undefined;
|
|
1689
1725
|
office?: {
|
|
1690
|
-
id: string;
|
|
1691
1726
|
name: string;
|
|
1727
|
+
id: string;
|
|
1692
1728
|
managers?: {
|
|
1693
1729
|
id: string;
|
|
1694
1730
|
lastName: string;
|
|
@@ -1700,38 +1736,39 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1700
1736
|
lastName: string;
|
|
1701
1737
|
firstName: string;
|
|
1702
1738
|
}[] | undefined;
|
|
1739
|
+
dialpadUserId?: string | null | undefined;
|
|
1703
1740
|
deletedAt?: string | null | undefined;
|
|
1704
1741
|
} | undefined;
|
|
1705
1742
|
};
|
|
1706
1743
|
}, {
|
|
1707
1744
|
ownResearchLead: {
|
|
1708
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1709
|
-
id: string;
|
|
1710
1745
|
name: string;
|
|
1711
|
-
updatedAt: string | Date;
|
|
1712
1746
|
createdAt: string | Date;
|
|
1713
|
-
|
|
1747
|
+
updatedAt: string | Date;
|
|
1748
|
+
id: string;
|
|
1749
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1714
1750
|
agentId: string;
|
|
1715
1751
|
phoneNumber: string;
|
|
1716
|
-
lastCalledAt: string | Date | null;
|
|
1717
1752
|
callCount: number;
|
|
1753
|
+
lastCalledAt: string | Date | null;
|
|
1754
|
+
cooldownUntil: string | Date | null;
|
|
1755
|
+
blacklistReason: string | null;
|
|
1718
1756
|
lastCallNotes: string | null;
|
|
1719
1757
|
existsInLeadsTable: boolean;
|
|
1720
|
-
cooldownUntil: string | Date | null;
|
|
1721
1758
|
originalLeadId: string | null;
|
|
1722
1759
|
agent?: {
|
|
1723
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1724
|
-
id: string;
|
|
1725
|
-
updatedAt: string | Date;
|
|
1726
|
-
createdAt: string | Date;
|
|
1727
1760
|
email: string;
|
|
1761
|
+
createdAt: string | Date;
|
|
1762
|
+
updatedAt: string | Date;
|
|
1763
|
+
id: string;
|
|
1764
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1728
1765
|
lastName: string;
|
|
1729
1766
|
firstName: string;
|
|
1730
1767
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1731
1768
|
officeId?: string | null | undefined;
|
|
1732
1769
|
office?: {
|
|
1733
|
-
id: string;
|
|
1734
1770
|
name: string;
|
|
1771
|
+
id: string;
|
|
1735
1772
|
managers?: {
|
|
1736
1773
|
id: string;
|
|
1737
1774
|
lastName: string;
|
|
@@ -1749,6 +1786,7 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1749
1786
|
lastName: string;
|
|
1750
1787
|
firstName: string;
|
|
1751
1788
|
}[] | undefined;
|
|
1789
|
+
dialpadUserId?: string | null | undefined;
|
|
1752
1790
|
deletedAt?: string | Date | null | undefined;
|
|
1753
1791
|
} | undefined;
|
|
1754
1792
|
};
|
|
@@ -1790,28 +1828,28 @@ export declare const FilterOwnResearchLeadSchema: z.ZodObject<{
|
|
|
1790
1828
|
}, "strip", z.ZodTypeAny, {
|
|
1791
1829
|
page: number;
|
|
1792
1830
|
limit: number;
|
|
1793
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED" | undefined;
|
|
1794
1831
|
name?: string | undefined;
|
|
1832
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1795
1833
|
phoneNumber?: string | undefined;
|
|
1796
1834
|
lastCalledAt?: {
|
|
1797
1835
|
from?: string | null | undefined;
|
|
1798
1836
|
to?: string | null | undefined;
|
|
1799
1837
|
} | undefined;
|
|
1800
1838
|
minTotalCalls?: number | undefined;
|
|
1801
|
-
sortBy?: "name" | "
|
|
1839
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1802
1840
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1803
1841
|
}, {
|
|
1804
|
-
|
|
1842
|
+
name?: string | undefined;
|
|
1805
1843
|
page?: number | undefined;
|
|
1806
1844
|
limit?: number | undefined;
|
|
1807
|
-
|
|
1845
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1808
1846
|
phoneNumber?: string | undefined;
|
|
1809
1847
|
lastCalledAt?: {
|
|
1810
1848
|
from?: string | null | undefined;
|
|
1811
1849
|
to?: string | null | undefined;
|
|
1812
1850
|
} | undefined;
|
|
1813
1851
|
minTotalCalls?: number | undefined;
|
|
1814
|
-
sortBy?: "name" | "
|
|
1852
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1815
1853
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1816
1854
|
}>;
|
|
1817
1855
|
export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
@@ -1858,16 +1896,16 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1858
1896
|
firstName: string;
|
|
1859
1897
|
}>, "many">>;
|
|
1860
1898
|
}, "strip", z.ZodTypeAny, {
|
|
1861
|
-
id: string;
|
|
1862
1899
|
name: string;
|
|
1900
|
+
id: string;
|
|
1863
1901
|
managers?: {
|
|
1864
1902
|
id: string;
|
|
1865
1903
|
lastName: string;
|
|
1866
1904
|
firstName: string;
|
|
1867
1905
|
}[] | undefined;
|
|
1868
1906
|
}, {
|
|
1869
|
-
id: string;
|
|
1870
1907
|
name: string;
|
|
1908
|
+
id: string;
|
|
1871
1909
|
managers?: {
|
|
1872
1910
|
id: string;
|
|
1873
1911
|
lastName: string;
|
|
@@ -1888,15 +1926,16 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1888
1926
|
firstName: string;
|
|
1889
1927
|
}>, "many">>;
|
|
1890
1928
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1929
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1891
1930
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1892
1931
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1893
1932
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1894
1933
|
}, "strip", z.ZodTypeAny, {
|
|
1895
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1896
|
-
id: string;
|
|
1897
|
-
updatedAt: string;
|
|
1898
|
-
createdAt: string;
|
|
1899
1934
|
email: string;
|
|
1935
|
+
createdAt: string;
|
|
1936
|
+
updatedAt: string;
|
|
1937
|
+
id: string;
|
|
1938
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1900
1939
|
lastName: string;
|
|
1901
1940
|
firstName: string;
|
|
1902
1941
|
phoneNumbers: {
|
|
@@ -1908,8 +1947,8 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1908
1947
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1909
1948
|
officeId?: string | null | undefined;
|
|
1910
1949
|
office?: {
|
|
1911
|
-
id: string;
|
|
1912
1950
|
name: string;
|
|
1951
|
+
id: string;
|
|
1913
1952
|
managers?: {
|
|
1914
1953
|
id: string;
|
|
1915
1954
|
lastName: string;
|
|
@@ -1921,20 +1960,21 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1921
1960
|
lastName: string;
|
|
1922
1961
|
firstName: string;
|
|
1923
1962
|
}[] | undefined;
|
|
1963
|
+
dialpadUserId?: string | null | undefined;
|
|
1924
1964
|
deletedAt?: string | null | undefined;
|
|
1925
1965
|
}, {
|
|
1926
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1927
|
-
id: string;
|
|
1928
|
-
updatedAt: string | Date;
|
|
1929
|
-
createdAt: string | Date;
|
|
1930
1966
|
email: string;
|
|
1967
|
+
createdAt: string | Date;
|
|
1968
|
+
updatedAt: string | Date;
|
|
1969
|
+
id: string;
|
|
1970
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1931
1971
|
lastName: string;
|
|
1932
1972
|
firstName: string;
|
|
1933
1973
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1934
1974
|
officeId?: string | null | undefined;
|
|
1935
1975
|
office?: {
|
|
1936
|
-
id: string;
|
|
1937
1976
|
name: string;
|
|
1977
|
+
id: string;
|
|
1938
1978
|
managers?: {
|
|
1939
1979
|
id: string;
|
|
1940
1980
|
lastName: string;
|
|
@@ -1952,6 +1992,7 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1952
1992
|
lastName: string;
|
|
1953
1993
|
firstName: string;
|
|
1954
1994
|
}[] | undefined;
|
|
1995
|
+
dialpadUserId?: string | null | undefined;
|
|
1955
1996
|
deletedAt?: string | Date | null | undefined;
|
|
1956
1997
|
}>>;
|
|
1957
1998
|
name: z.ZodString;
|
|
@@ -1967,26 +2008,26 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1967
2008
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1968
2009
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1969
2010
|
}, "strip", z.ZodTypeAny, {
|
|
1970
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1971
|
-
id: string;
|
|
1972
2011
|
name: string;
|
|
1973
|
-
updatedAt: string;
|
|
1974
2012
|
createdAt: string;
|
|
1975
|
-
|
|
2013
|
+
updatedAt: string;
|
|
2014
|
+
id: string;
|
|
2015
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1976
2016
|
agentId: string;
|
|
1977
2017
|
phoneNumber: string;
|
|
1978
|
-
lastCalledAt: string | null;
|
|
1979
2018
|
callCount: number;
|
|
2019
|
+
lastCalledAt: string | null;
|
|
2020
|
+
cooldownUntil: string | null;
|
|
2021
|
+
blacklistReason: string | null;
|
|
1980
2022
|
lastCallNotes: string | null;
|
|
1981
2023
|
existsInLeadsTable: boolean;
|
|
1982
|
-
cooldownUntil: string | null;
|
|
1983
2024
|
originalLeadId: string | null;
|
|
1984
2025
|
agent?: {
|
|
1985
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1986
|
-
id: string;
|
|
1987
|
-
updatedAt: string;
|
|
1988
|
-
createdAt: string;
|
|
1989
2026
|
email: string;
|
|
2027
|
+
createdAt: string;
|
|
2028
|
+
updatedAt: string;
|
|
2029
|
+
id: string;
|
|
2030
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1990
2031
|
lastName: string;
|
|
1991
2032
|
firstName: string;
|
|
1992
2033
|
phoneNumbers: {
|
|
@@ -1998,8 +2039,8 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1998
2039
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1999
2040
|
officeId?: string | null | undefined;
|
|
2000
2041
|
office?: {
|
|
2001
|
-
id: string;
|
|
2002
2042
|
name: string;
|
|
2043
|
+
id: string;
|
|
2003
2044
|
managers?: {
|
|
2004
2045
|
id: string;
|
|
2005
2046
|
lastName: string;
|
|
@@ -2011,36 +2052,37 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2011
2052
|
lastName: string;
|
|
2012
2053
|
firstName: string;
|
|
2013
2054
|
}[] | undefined;
|
|
2055
|
+
dialpadUserId?: string | null | undefined;
|
|
2014
2056
|
deletedAt?: string | null | undefined;
|
|
2015
2057
|
} | undefined;
|
|
2016
2058
|
}, {
|
|
2017
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2018
|
-
id: string;
|
|
2019
2059
|
name: string;
|
|
2020
|
-
updatedAt: string | Date;
|
|
2021
2060
|
createdAt: string | Date;
|
|
2022
|
-
|
|
2061
|
+
updatedAt: string | Date;
|
|
2062
|
+
id: string;
|
|
2063
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2023
2064
|
agentId: string;
|
|
2024
2065
|
phoneNumber: string;
|
|
2025
|
-
lastCalledAt: string | Date | null;
|
|
2026
2066
|
callCount: number;
|
|
2067
|
+
lastCalledAt: string | Date | null;
|
|
2068
|
+
cooldownUntil: string | Date | null;
|
|
2069
|
+
blacklistReason: string | null;
|
|
2027
2070
|
lastCallNotes: string | null;
|
|
2028
2071
|
existsInLeadsTable: boolean;
|
|
2029
|
-
cooldownUntil: string | Date | null;
|
|
2030
2072
|
originalLeadId: string | null;
|
|
2031
2073
|
agent?: {
|
|
2032
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2033
|
-
id: string;
|
|
2034
|
-
updatedAt: string | Date;
|
|
2035
|
-
createdAt: string | Date;
|
|
2036
2074
|
email: string;
|
|
2075
|
+
createdAt: string | Date;
|
|
2076
|
+
updatedAt: string | Date;
|
|
2077
|
+
id: string;
|
|
2078
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2037
2079
|
lastName: string;
|
|
2038
2080
|
firstName: string;
|
|
2039
2081
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2040
2082
|
officeId?: string | null | undefined;
|
|
2041
2083
|
office?: {
|
|
2042
|
-
id: string;
|
|
2043
2084
|
name: string;
|
|
2085
|
+
id: string;
|
|
2044
2086
|
managers?: {
|
|
2045
2087
|
id: string;
|
|
2046
2088
|
lastName: string;
|
|
@@ -2058,6 +2100,7 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2058
2100
|
lastName: string;
|
|
2059
2101
|
firstName: string;
|
|
2060
2102
|
}[] | undefined;
|
|
2103
|
+
dialpadUserId?: string | null | undefined;
|
|
2061
2104
|
deletedAt?: string | Date | null | undefined;
|
|
2062
2105
|
} | undefined;
|
|
2063
2106
|
}>, "many">;
|
|
@@ -2069,26 +2112,26 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2069
2112
|
}, "strip", z.ZodTypeAny, {
|
|
2070
2113
|
limit: number;
|
|
2071
2114
|
items: {
|
|
2072
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2073
|
-
id: string;
|
|
2074
2115
|
name: string;
|
|
2075
|
-
updatedAt: string;
|
|
2076
2116
|
createdAt: string;
|
|
2077
|
-
|
|
2117
|
+
updatedAt: string;
|
|
2118
|
+
id: string;
|
|
2119
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2078
2120
|
agentId: string;
|
|
2079
2121
|
phoneNumber: string;
|
|
2080
|
-
lastCalledAt: string | null;
|
|
2081
2122
|
callCount: number;
|
|
2123
|
+
lastCalledAt: string | null;
|
|
2124
|
+
cooldownUntil: string | null;
|
|
2125
|
+
blacklistReason: string | null;
|
|
2082
2126
|
lastCallNotes: string | null;
|
|
2083
2127
|
existsInLeadsTable: boolean;
|
|
2084
|
-
cooldownUntil: string | null;
|
|
2085
2128
|
originalLeadId: string | null;
|
|
2086
2129
|
agent?: {
|
|
2087
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2088
|
-
id: string;
|
|
2089
|
-
updatedAt: string;
|
|
2090
|
-
createdAt: string;
|
|
2091
2130
|
email: string;
|
|
2131
|
+
createdAt: string;
|
|
2132
|
+
updatedAt: string;
|
|
2133
|
+
id: string;
|
|
2134
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2092
2135
|
lastName: string;
|
|
2093
2136
|
firstName: string;
|
|
2094
2137
|
phoneNumbers: {
|
|
@@ -2100,8 +2143,8 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2100
2143
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2101
2144
|
officeId?: string | null | undefined;
|
|
2102
2145
|
office?: {
|
|
2103
|
-
id: string;
|
|
2104
2146
|
name: string;
|
|
2147
|
+
id: string;
|
|
2105
2148
|
managers?: {
|
|
2106
2149
|
id: string;
|
|
2107
2150
|
lastName: string;
|
|
@@ -2113,6 +2156,7 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2113
2156
|
lastName: string;
|
|
2114
2157
|
firstName: string;
|
|
2115
2158
|
}[] | undefined;
|
|
2159
|
+
dialpadUserId?: string | null | undefined;
|
|
2116
2160
|
deletedAt?: string | null | undefined;
|
|
2117
2161
|
} | undefined;
|
|
2118
2162
|
}[];
|
|
@@ -2123,33 +2167,33 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2123
2167
|
}, {
|
|
2124
2168
|
limit: number;
|
|
2125
2169
|
items: {
|
|
2126
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2127
|
-
id: string;
|
|
2128
2170
|
name: string;
|
|
2129
|
-
updatedAt: string | Date;
|
|
2130
2171
|
createdAt: string | Date;
|
|
2131
|
-
|
|
2172
|
+
updatedAt: string | Date;
|
|
2173
|
+
id: string;
|
|
2174
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2132
2175
|
agentId: string;
|
|
2133
2176
|
phoneNumber: string;
|
|
2134
|
-
lastCalledAt: string | Date | null;
|
|
2135
2177
|
callCount: number;
|
|
2178
|
+
lastCalledAt: string | Date | null;
|
|
2179
|
+
cooldownUntil: string | Date | null;
|
|
2180
|
+
blacklistReason: string | null;
|
|
2136
2181
|
lastCallNotes: string | null;
|
|
2137
2182
|
existsInLeadsTable: boolean;
|
|
2138
|
-
cooldownUntil: string | Date | null;
|
|
2139
2183
|
originalLeadId: string | null;
|
|
2140
2184
|
agent?: {
|
|
2141
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2142
|
-
id: string;
|
|
2143
|
-
updatedAt: string | Date;
|
|
2144
|
-
createdAt: string | Date;
|
|
2145
2185
|
email: string;
|
|
2186
|
+
createdAt: string | Date;
|
|
2187
|
+
updatedAt: string | Date;
|
|
2188
|
+
id: string;
|
|
2189
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2146
2190
|
lastName: string;
|
|
2147
2191
|
firstName: string;
|
|
2148
2192
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2149
2193
|
officeId?: string | null | undefined;
|
|
2150
2194
|
office?: {
|
|
2151
|
-
id: string;
|
|
2152
2195
|
name: string;
|
|
2196
|
+
id: string;
|
|
2153
2197
|
managers?: {
|
|
2154
2198
|
id: string;
|
|
2155
2199
|
lastName: string;
|
|
@@ -2167,6 +2211,7 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2167
2211
|
lastName: string;
|
|
2168
2212
|
firstName: string;
|
|
2169
2213
|
}[] | undefined;
|
|
2214
|
+
dialpadUserId?: string | null | undefined;
|
|
2170
2215
|
deletedAt?: string | Date | null | undefined;
|
|
2171
2216
|
} | undefined;
|
|
2172
2217
|
}[];
|
|
@@ -2219,7 +2264,7 @@ export declare const ownResearchContract: {
|
|
|
2219
2264
|
details?: unknown;
|
|
2220
2265
|
correlationId?: string | undefined;
|
|
2221
2266
|
}>;
|
|
2222
|
-
|
|
2267
|
+
403: z.ZodObject<{
|
|
2223
2268
|
statusCode: z.ZodNumber;
|
|
2224
2269
|
message: z.ZodString;
|
|
2225
2270
|
code: z.ZodString;
|
|
@@ -2244,7 +2289,7 @@ export declare const ownResearchContract: {
|
|
|
2244
2289
|
details?: unknown;
|
|
2245
2290
|
correlationId?: string | undefined;
|
|
2246
2291
|
}>;
|
|
2247
|
-
|
|
2292
|
+
401: z.ZodObject<{
|
|
2248
2293
|
statusCode: z.ZodNumber;
|
|
2249
2294
|
message: z.ZodString;
|
|
2250
2295
|
code: z.ZodString;
|
|
@@ -2310,6 +2355,9 @@ export declare const ownResearchContract: {
|
|
|
2310
2355
|
};
|
|
2311
2356
|
};
|
|
2312
2357
|
findAll: {
|
|
2358
|
+
metadata: {
|
|
2359
|
+
tags: string[];
|
|
2360
|
+
};
|
|
2313
2361
|
query: z.ZodObject<{
|
|
2314
2362
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
2315
2363
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2333,33 +2381,30 @@ export declare const ownResearchContract: {
|
|
|
2333
2381
|
}, "strip", z.ZodTypeAny, {
|
|
2334
2382
|
page: number;
|
|
2335
2383
|
limit: number;
|
|
2336
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED" | undefined;
|
|
2337
2384
|
name?: string | undefined;
|
|
2385
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
2338
2386
|
phoneNumber?: string | undefined;
|
|
2339
2387
|
lastCalledAt?: {
|
|
2340
2388
|
from?: string | null | undefined;
|
|
2341
2389
|
to?: string | null | undefined;
|
|
2342
2390
|
} | undefined;
|
|
2343
2391
|
minTotalCalls?: number | undefined;
|
|
2344
|
-
sortBy?: "name" | "
|
|
2392
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
2345
2393
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
2346
2394
|
}, {
|
|
2347
|
-
|
|
2395
|
+
name?: string | undefined;
|
|
2348
2396
|
page?: number | undefined;
|
|
2349
2397
|
limit?: number | undefined;
|
|
2350
|
-
|
|
2398
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
2351
2399
|
phoneNumber?: string | undefined;
|
|
2352
2400
|
lastCalledAt?: {
|
|
2353
2401
|
from?: string | null | undefined;
|
|
2354
2402
|
to?: string | null | undefined;
|
|
2355
2403
|
} | undefined;
|
|
2356
2404
|
minTotalCalls?: number | undefined;
|
|
2357
|
-
sortBy?: "name" | "
|
|
2405
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
2358
2406
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
2359
2407
|
}>;
|
|
2360
|
-
metadata: {
|
|
2361
|
-
tags: string[];
|
|
2362
|
-
};
|
|
2363
2408
|
summary: "Get all own research leads for the current agent";
|
|
2364
2409
|
method: "GET";
|
|
2365
2410
|
path: "/v2/own-research/leads";
|
|
@@ -2389,7 +2434,7 @@ export declare const ownResearchContract: {
|
|
|
2389
2434
|
details?: unknown;
|
|
2390
2435
|
correlationId?: string | undefined;
|
|
2391
2436
|
}>;
|
|
2392
|
-
|
|
2437
|
+
403: z.ZodObject<{
|
|
2393
2438
|
statusCode: z.ZodNumber;
|
|
2394
2439
|
message: z.ZodString;
|
|
2395
2440
|
code: z.ZodString;
|
|
@@ -2414,7 +2459,7 @@ export declare const ownResearchContract: {
|
|
|
2414
2459
|
details?: unknown;
|
|
2415
2460
|
correlationId?: string | undefined;
|
|
2416
2461
|
}>;
|
|
2417
|
-
|
|
2462
|
+
401: z.ZodObject<{
|
|
2418
2463
|
statusCode: z.ZodNumber;
|
|
2419
2464
|
message: z.ZodString;
|
|
2420
2465
|
code: z.ZodString;
|
|
@@ -2508,16 +2553,16 @@ export declare const ownResearchContract: {
|
|
|
2508
2553
|
firstName: string;
|
|
2509
2554
|
}>, "many">>;
|
|
2510
2555
|
}, "strip", z.ZodTypeAny, {
|
|
2511
|
-
id: string;
|
|
2512
2556
|
name: string;
|
|
2557
|
+
id: string;
|
|
2513
2558
|
managers?: {
|
|
2514
2559
|
id: string;
|
|
2515
2560
|
lastName: string;
|
|
2516
2561
|
firstName: string;
|
|
2517
2562
|
}[] | undefined;
|
|
2518
2563
|
}, {
|
|
2519
|
-
id: string;
|
|
2520
2564
|
name: string;
|
|
2565
|
+
id: string;
|
|
2521
2566
|
managers?: {
|
|
2522
2567
|
id: string;
|
|
2523
2568
|
lastName: string;
|
|
@@ -2538,15 +2583,16 @@ export declare const ownResearchContract: {
|
|
|
2538
2583
|
firstName: string;
|
|
2539
2584
|
}>, "many">>;
|
|
2540
2585
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2586
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
2541
2587
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2542
2588
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2543
2589
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2544
2590
|
}, "strip", z.ZodTypeAny, {
|
|
2545
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2546
|
-
id: string;
|
|
2547
|
-
updatedAt: string;
|
|
2548
|
-
createdAt: string;
|
|
2549
2591
|
email: string;
|
|
2592
|
+
createdAt: string;
|
|
2593
|
+
updatedAt: string;
|
|
2594
|
+
id: string;
|
|
2595
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2550
2596
|
lastName: string;
|
|
2551
2597
|
firstName: string;
|
|
2552
2598
|
phoneNumbers: {
|
|
@@ -2558,8 +2604,8 @@ export declare const ownResearchContract: {
|
|
|
2558
2604
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2559
2605
|
officeId?: string | null | undefined;
|
|
2560
2606
|
office?: {
|
|
2561
|
-
id: string;
|
|
2562
2607
|
name: string;
|
|
2608
|
+
id: string;
|
|
2563
2609
|
managers?: {
|
|
2564
2610
|
id: string;
|
|
2565
2611
|
lastName: string;
|
|
@@ -2571,20 +2617,21 @@ export declare const ownResearchContract: {
|
|
|
2571
2617
|
lastName: string;
|
|
2572
2618
|
firstName: string;
|
|
2573
2619
|
}[] | undefined;
|
|
2620
|
+
dialpadUserId?: string | null | undefined;
|
|
2574
2621
|
deletedAt?: string | null | undefined;
|
|
2575
2622
|
}, {
|
|
2576
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2577
|
-
id: string;
|
|
2578
|
-
updatedAt: string | Date;
|
|
2579
|
-
createdAt: string | Date;
|
|
2580
2623
|
email: string;
|
|
2624
|
+
createdAt: string | Date;
|
|
2625
|
+
updatedAt: string | Date;
|
|
2626
|
+
id: string;
|
|
2627
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2581
2628
|
lastName: string;
|
|
2582
2629
|
firstName: string;
|
|
2583
2630
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2584
2631
|
officeId?: string | null | undefined;
|
|
2585
2632
|
office?: {
|
|
2586
|
-
id: string;
|
|
2587
2633
|
name: string;
|
|
2634
|
+
id: string;
|
|
2588
2635
|
managers?: {
|
|
2589
2636
|
id: string;
|
|
2590
2637
|
lastName: string;
|
|
@@ -2602,6 +2649,7 @@ export declare const ownResearchContract: {
|
|
|
2602
2649
|
lastName: string;
|
|
2603
2650
|
firstName: string;
|
|
2604
2651
|
}[] | undefined;
|
|
2652
|
+
dialpadUserId?: string | null | undefined;
|
|
2605
2653
|
deletedAt?: string | Date | null | undefined;
|
|
2606
2654
|
}>>;
|
|
2607
2655
|
name: z.ZodString;
|
|
@@ -2617,26 +2665,26 @@ export declare const ownResearchContract: {
|
|
|
2617
2665
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2618
2666
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2619
2667
|
}, "strip", z.ZodTypeAny, {
|
|
2620
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2621
|
-
id: string;
|
|
2622
2668
|
name: string;
|
|
2623
|
-
updatedAt: string;
|
|
2624
2669
|
createdAt: string;
|
|
2625
|
-
|
|
2670
|
+
updatedAt: string;
|
|
2671
|
+
id: string;
|
|
2672
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2626
2673
|
agentId: string;
|
|
2627
2674
|
phoneNumber: string;
|
|
2628
|
-
lastCalledAt: string | null;
|
|
2629
2675
|
callCount: number;
|
|
2676
|
+
lastCalledAt: string | null;
|
|
2677
|
+
cooldownUntil: string | null;
|
|
2678
|
+
blacklistReason: string | null;
|
|
2630
2679
|
lastCallNotes: string | null;
|
|
2631
2680
|
existsInLeadsTable: boolean;
|
|
2632
|
-
cooldownUntil: string | null;
|
|
2633
2681
|
originalLeadId: string | null;
|
|
2634
2682
|
agent?: {
|
|
2635
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2636
|
-
id: string;
|
|
2637
|
-
updatedAt: string;
|
|
2638
|
-
createdAt: string;
|
|
2639
2683
|
email: string;
|
|
2684
|
+
createdAt: string;
|
|
2685
|
+
updatedAt: string;
|
|
2686
|
+
id: string;
|
|
2687
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2640
2688
|
lastName: string;
|
|
2641
2689
|
firstName: string;
|
|
2642
2690
|
phoneNumbers: {
|
|
@@ -2648,8 +2696,8 @@ export declare const ownResearchContract: {
|
|
|
2648
2696
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2649
2697
|
officeId?: string | null | undefined;
|
|
2650
2698
|
office?: {
|
|
2651
|
-
id: string;
|
|
2652
2699
|
name: string;
|
|
2700
|
+
id: string;
|
|
2653
2701
|
managers?: {
|
|
2654
2702
|
id: string;
|
|
2655
2703
|
lastName: string;
|
|
@@ -2661,36 +2709,37 @@ export declare const ownResearchContract: {
|
|
|
2661
2709
|
lastName: string;
|
|
2662
2710
|
firstName: string;
|
|
2663
2711
|
}[] | undefined;
|
|
2712
|
+
dialpadUserId?: string | null | undefined;
|
|
2664
2713
|
deletedAt?: string | null | undefined;
|
|
2665
2714
|
} | undefined;
|
|
2666
2715
|
}, {
|
|
2667
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2668
|
-
id: string;
|
|
2669
2716
|
name: string;
|
|
2670
|
-
updatedAt: string | Date;
|
|
2671
2717
|
createdAt: string | Date;
|
|
2672
|
-
|
|
2718
|
+
updatedAt: string | Date;
|
|
2719
|
+
id: string;
|
|
2720
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2673
2721
|
agentId: string;
|
|
2674
2722
|
phoneNumber: string;
|
|
2675
|
-
lastCalledAt: string | Date | null;
|
|
2676
2723
|
callCount: number;
|
|
2724
|
+
lastCalledAt: string | Date | null;
|
|
2725
|
+
cooldownUntil: string | Date | null;
|
|
2726
|
+
blacklistReason: string | null;
|
|
2677
2727
|
lastCallNotes: string | null;
|
|
2678
2728
|
existsInLeadsTable: boolean;
|
|
2679
|
-
cooldownUntil: string | Date | null;
|
|
2680
2729
|
originalLeadId: string | null;
|
|
2681
2730
|
agent?: {
|
|
2682
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2683
|
-
id: string;
|
|
2684
|
-
updatedAt: string | Date;
|
|
2685
|
-
createdAt: string | Date;
|
|
2686
2731
|
email: string;
|
|
2732
|
+
createdAt: string | Date;
|
|
2733
|
+
updatedAt: string | Date;
|
|
2734
|
+
id: string;
|
|
2735
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2687
2736
|
lastName: string;
|
|
2688
2737
|
firstName: string;
|
|
2689
2738
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2690
2739
|
officeId?: string | null | undefined;
|
|
2691
2740
|
office?: {
|
|
2692
|
-
id: string;
|
|
2693
2741
|
name: string;
|
|
2742
|
+
id: string;
|
|
2694
2743
|
managers?: {
|
|
2695
2744
|
id: string;
|
|
2696
2745
|
lastName: string;
|
|
@@ -2708,6 +2757,7 @@ export declare const ownResearchContract: {
|
|
|
2708
2757
|
lastName: string;
|
|
2709
2758
|
firstName: string;
|
|
2710
2759
|
}[] | undefined;
|
|
2760
|
+
dialpadUserId?: string | null | undefined;
|
|
2711
2761
|
deletedAt?: string | Date | null | undefined;
|
|
2712
2762
|
} | undefined;
|
|
2713
2763
|
}>, "many">;
|
|
@@ -2719,26 +2769,26 @@ export declare const ownResearchContract: {
|
|
|
2719
2769
|
}, "strip", z.ZodTypeAny, {
|
|
2720
2770
|
limit: number;
|
|
2721
2771
|
items: {
|
|
2722
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2723
|
-
id: string;
|
|
2724
2772
|
name: string;
|
|
2725
|
-
updatedAt: string;
|
|
2726
2773
|
createdAt: string;
|
|
2727
|
-
|
|
2774
|
+
updatedAt: string;
|
|
2775
|
+
id: string;
|
|
2776
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2728
2777
|
agentId: string;
|
|
2729
2778
|
phoneNumber: string;
|
|
2730
|
-
lastCalledAt: string | null;
|
|
2731
2779
|
callCount: number;
|
|
2780
|
+
lastCalledAt: string | null;
|
|
2781
|
+
cooldownUntil: string | null;
|
|
2782
|
+
blacklistReason: string | null;
|
|
2732
2783
|
lastCallNotes: string | null;
|
|
2733
2784
|
existsInLeadsTable: boolean;
|
|
2734
|
-
cooldownUntil: string | null;
|
|
2735
2785
|
originalLeadId: string | null;
|
|
2736
2786
|
agent?: {
|
|
2737
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2738
|
-
id: string;
|
|
2739
|
-
updatedAt: string;
|
|
2740
|
-
createdAt: string;
|
|
2741
2787
|
email: string;
|
|
2788
|
+
createdAt: string;
|
|
2789
|
+
updatedAt: string;
|
|
2790
|
+
id: string;
|
|
2791
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2742
2792
|
lastName: string;
|
|
2743
2793
|
firstName: string;
|
|
2744
2794
|
phoneNumbers: {
|
|
@@ -2750,8 +2800,8 @@ export declare const ownResearchContract: {
|
|
|
2750
2800
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2751
2801
|
officeId?: string | null | undefined;
|
|
2752
2802
|
office?: {
|
|
2753
|
-
id: string;
|
|
2754
2803
|
name: string;
|
|
2804
|
+
id: string;
|
|
2755
2805
|
managers?: {
|
|
2756
2806
|
id: string;
|
|
2757
2807
|
lastName: string;
|
|
@@ -2763,6 +2813,7 @@ export declare const ownResearchContract: {
|
|
|
2763
2813
|
lastName: string;
|
|
2764
2814
|
firstName: string;
|
|
2765
2815
|
}[] | undefined;
|
|
2816
|
+
dialpadUserId?: string | null | undefined;
|
|
2766
2817
|
deletedAt?: string | null | undefined;
|
|
2767
2818
|
} | undefined;
|
|
2768
2819
|
}[];
|
|
@@ -2773,33 +2824,33 @@ export declare const ownResearchContract: {
|
|
|
2773
2824
|
}, {
|
|
2774
2825
|
limit: number;
|
|
2775
2826
|
items: {
|
|
2776
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2777
|
-
id: string;
|
|
2778
2827
|
name: string;
|
|
2779
|
-
updatedAt: string | Date;
|
|
2780
2828
|
createdAt: string | Date;
|
|
2781
|
-
|
|
2829
|
+
updatedAt: string | Date;
|
|
2830
|
+
id: string;
|
|
2831
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2782
2832
|
agentId: string;
|
|
2783
2833
|
phoneNumber: string;
|
|
2784
|
-
lastCalledAt: string | Date | null;
|
|
2785
2834
|
callCount: number;
|
|
2835
|
+
lastCalledAt: string | Date | null;
|
|
2836
|
+
cooldownUntil: string | Date | null;
|
|
2837
|
+
blacklistReason: string | null;
|
|
2786
2838
|
lastCallNotes: string | null;
|
|
2787
2839
|
existsInLeadsTable: boolean;
|
|
2788
|
-
cooldownUntil: string | Date | null;
|
|
2789
2840
|
originalLeadId: string | null;
|
|
2790
2841
|
agent?: {
|
|
2791
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2792
|
-
id: string;
|
|
2793
|
-
updatedAt: string | Date;
|
|
2794
|
-
createdAt: string | Date;
|
|
2795
2842
|
email: string;
|
|
2843
|
+
createdAt: string | Date;
|
|
2844
|
+
updatedAt: string | Date;
|
|
2845
|
+
id: string;
|
|
2846
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2796
2847
|
lastName: string;
|
|
2797
2848
|
firstName: string;
|
|
2798
2849
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2799
2850
|
officeId?: string | null | undefined;
|
|
2800
2851
|
office?: {
|
|
2801
|
-
id: string;
|
|
2802
2852
|
name: string;
|
|
2853
|
+
id: string;
|
|
2803
2854
|
managers?: {
|
|
2804
2855
|
id: string;
|
|
2805
2856
|
lastName: string;
|
|
@@ -2817,6 +2868,7 @@ export declare const ownResearchContract: {
|
|
|
2817
2868
|
lastName: string;
|
|
2818
2869
|
firstName: string;
|
|
2819
2870
|
}[] | undefined;
|
|
2871
|
+
dialpadUserId?: string | null | undefined;
|
|
2820
2872
|
deletedAt?: string | Date | null | undefined;
|
|
2821
2873
|
} | undefined;
|
|
2822
2874
|
}[];
|
|
@@ -2867,7 +2919,7 @@ export declare const ownResearchContract: {
|
|
|
2867
2919
|
details?: unknown;
|
|
2868
2920
|
correlationId?: string | undefined;
|
|
2869
2921
|
}>;
|
|
2870
|
-
|
|
2922
|
+
403: z.ZodObject<{
|
|
2871
2923
|
statusCode: z.ZodNumber;
|
|
2872
2924
|
message: z.ZodString;
|
|
2873
2925
|
code: z.ZodString;
|
|
@@ -2892,7 +2944,7 @@ export declare const ownResearchContract: {
|
|
|
2892
2944
|
details?: unknown;
|
|
2893
2945
|
correlationId?: string | undefined;
|
|
2894
2946
|
}>;
|
|
2895
|
-
|
|
2947
|
+
401: z.ZodObject<{
|
|
2896
2948
|
statusCode: z.ZodNumber;
|
|
2897
2949
|
message: z.ZodString;
|
|
2898
2950
|
code: z.ZodString;
|
|
@@ -2949,20 +3001,23 @@ export declare const ownResearchContract: {
|
|
|
2949
3001
|
id: z.ZodString;
|
|
2950
3002
|
name: z.ZodString;
|
|
2951
3003
|
phoneNumber: z.ZodString;
|
|
2952
|
-
status: z.
|
|
3004
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
3005
|
+
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2953
3006
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
2954
3007
|
}, "strip", z.ZodTypeAny, {
|
|
2955
|
-
status: string;
|
|
2956
|
-
id: string;
|
|
2957
3008
|
name: string;
|
|
3009
|
+
id: string;
|
|
3010
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2958
3011
|
phoneNumber: string;
|
|
2959
3012
|
cooldownUntil: string | null;
|
|
3013
|
+
blacklistReason?: string | null | undefined;
|
|
2960
3014
|
}, {
|
|
2961
|
-
status: string;
|
|
2962
|
-
id: string;
|
|
2963
3015
|
name: string;
|
|
3016
|
+
id: string;
|
|
3017
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2964
3018
|
phoneNumber: string;
|
|
2965
3019
|
cooldownUntil: string | Date | null;
|
|
3020
|
+
blacklistReason?: string | null | undefined;
|
|
2966
3021
|
}>>>;
|
|
2967
3022
|
ownResearchLead: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2968
3023
|
id: z.ZodString;
|
|
@@ -3007,16 +3062,16 @@ export declare const ownResearchContract: {
|
|
|
3007
3062
|
firstName: string;
|
|
3008
3063
|
}>, "many">>;
|
|
3009
3064
|
}, "strip", z.ZodTypeAny, {
|
|
3010
|
-
id: string;
|
|
3011
3065
|
name: string;
|
|
3066
|
+
id: string;
|
|
3012
3067
|
managers?: {
|
|
3013
3068
|
id: string;
|
|
3014
3069
|
lastName: string;
|
|
3015
3070
|
firstName: string;
|
|
3016
3071
|
}[] | undefined;
|
|
3017
3072
|
}, {
|
|
3018
|
-
id: string;
|
|
3019
3073
|
name: string;
|
|
3074
|
+
id: string;
|
|
3020
3075
|
managers?: {
|
|
3021
3076
|
id: string;
|
|
3022
3077
|
lastName: string;
|
|
@@ -3037,15 +3092,16 @@ export declare const ownResearchContract: {
|
|
|
3037
3092
|
firstName: string;
|
|
3038
3093
|
}>, "many">>;
|
|
3039
3094
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3095
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
3040
3096
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3041
3097
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3042
3098
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3043
3099
|
}, "strip", z.ZodTypeAny, {
|
|
3044
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3045
|
-
id: string;
|
|
3046
|
-
updatedAt: string;
|
|
3047
|
-
createdAt: string;
|
|
3048
3100
|
email: string;
|
|
3101
|
+
createdAt: string;
|
|
3102
|
+
updatedAt: string;
|
|
3103
|
+
id: string;
|
|
3104
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3049
3105
|
lastName: string;
|
|
3050
3106
|
firstName: string;
|
|
3051
3107
|
phoneNumbers: {
|
|
@@ -3057,8 +3113,8 @@ export declare const ownResearchContract: {
|
|
|
3057
3113
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3058
3114
|
officeId?: string | null | undefined;
|
|
3059
3115
|
office?: {
|
|
3060
|
-
id: string;
|
|
3061
3116
|
name: string;
|
|
3117
|
+
id: string;
|
|
3062
3118
|
managers?: {
|
|
3063
3119
|
id: string;
|
|
3064
3120
|
lastName: string;
|
|
@@ -3070,20 +3126,21 @@ export declare const ownResearchContract: {
|
|
|
3070
3126
|
lastName: string;
|
|
3071
3127
|
firstName: string;
|
|
3072
3128
|
}[] | undefined;
|
|
3129
|
+
dialpadUserId?: string | null | undefined;
|
|
3073
3130
|
deletedAt?: string | null | undefined;
|
|
3074
3131
|
}, {
|
|
3075
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3076
|
-
id: string;
|
|
3077
|
-
updatedAt: string | Date;
|
|
3078
|
-
createdAt: string | Date;
|
|
3079
3132
|
email: string;
|
|
3133
|
+
createdAt: string | Date;
|
|
3134
|
+
updatedAt: string | Date;
|
|
3135
|
+
id: string;
|
|
3136
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3080
3137
|
lastName: string;
|
|
3081
3138
|
firstName: string;
|
|
3082
3139
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3083
3140
|
officeId?: string | null | undefined;
|
|
3084
3141
|
office?: {
|
|
3085
|
-
id: string;
|
|
3086
3142
|
name: string;
|
|
3143
|
+
id: string;
|
|
3087
3144
|
managers?: {
|
|
3088
3145
|
id: string;
|
|
3089
3146
|
lastName: string;
|
|
@@ -3101,6 +3158,7 @@ export declare const ownResearchContract: {
|
|
|
3101
3158
|
lastName: string;
|
|
3102
3159
|
firstName: string;
|
|
3103
3160
|
}[] | undefined;
|
|
3161
|
+
dialpadUserId?: string | null | undefined;
|
|
3104
3162
|
deletedAt?: string | Date | null | undefined;
|
|
3105
3163
|
}>>;
|
|
3106
3164
|
name: z.ZodString;
|
|
@@ -3116,26 +3174,26 @@ export declare const ownResearchContract: {
|
|
|
3116
3174
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3117
3175
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3118
3176
|
}, "strip", z.ZodTypeAny, {
|
|
3119
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3120
|
-
id: string;
|
|
3121
3177
|
name: string;
|
|
3122
|
-
updatedAt: string;
|
|
3123
3178
|
createdAt: string;
|
|
3124
|
-
|
|
3179
|
+
updatedAt: string;
|
|
3180
|
+
id: string;
|
|
3181
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3125
3182
|
agentId: string;
|
|
3126
3183
|
phoneNumber: string;
|
|
3127
|
-
lastCalledAt: string | null;
|
|
3128
3184
|
callCount: number;
|
|
3185
|
+
lastCalledAt: string | null;
|
|
3186
|
+
cooldownUntil: string | null;
|
|
3187
|
+
blacklistReason: string | null;
|
|
3129
3188
|
lastCallNotes: string | null;
|
|
3130
3189
|
existsInLeadsTable: boolean;
|
|
3131
|
-
cooldownUntil: string | null;
|
|
3132
3190
|
originalLeadId: string | null;
|
|
3133
3191
|
agent?: {
|
|
3134
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3135
|
-
id: string;
|
|
3136
|
-
updatedAt: string;
|
|
3137
|
-
createdAt: string;
|
|
3138
3192
|
email: string;
|
|
3193
|
+
createdAt: string;
|
|
3194
|
+
updatedAt: string;
|
|
3195
|
+
id: string;
|
|
3196
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3139
3197
|
lastName: string;
|
|
3140
3198
|
firstName: string;
|
|
3141
3199
|
phoneNumbers: {
|
|
@@ -3147,8 +3205,8 @@ export declare const ownResearchContract: {
|
|
|
3147
3205
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3148
3206
|
officeId?: string | null | undefined;
|
|
3149
3207
|
office?: {
|
|
3150
|
-
id: string;
|
|
3151
3208
|
name: string;
|
|
3209
|
+
id: string;
|
|
3152
3210
|
managers?: {
|
|
3153
3211
|
id: string;
|
|
3154
3212
|
lastName: string;
|
|
@@ -3160,36 +3218,37 @@ export declare const ownResearchContract: {
|
|
|
3160
3218
|
lastName: string;
|
|
3161
3219
|
firstName: string;
|
|
3162
3220
|
}[] | undefined;
|
|
3221
|
+
dialpadUserId?: string | null | undefined;
|
|
3163
3222
|
deletedAt?: string | null | undefined;
|
|
3164
3223
|
} | undefined;
|
|
3165
3224
|
}, {
|
|
3166
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3167
|
-
id: string;
|
|
3168
3225
|
name: string;
|
|
3169
|
-
updatedAt: string | Date;
|
|
3170
3226
|
createdAt: string | Date;
|
|
3171
|
-
|
|
3227
|
+
updatedAt: string | Date;
|
|
3228
|
+
id: string;
|
|
3229
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3172
3230
|
agentId: string;
|
|
3173
3231
|
phoneNumber: string;
|
|
3174
|
-
lastCalledAt: string | Date | null;
|
|
3175
3232
|
callCount: number;
|
|
3233
|
+
lastCalledAt: string | Date | null;
|
|
3234
|
+
cooldownUntil: string | Date | null;
|
|
3235
|
+
blacklistReason: string | null;
|
|
3176
3236
|
lastCallNotes: string | null;
|
|
3177
3237
|
existsInLeadsTable: boolean;
|
|
3178
|
-
cooldownUntil: string | Date | null;
|
|
3179
3238
|
originalLeadId: string | null;
|
|
3180
3239
|
agent?: {
|
|
3181
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3182
|
-
id: string;
|
|
3183
|
-
updatedAt: string | Date;
|
|
3184
|
-
createdAt: string | Date;
|
|
3185
3240
|
email: string;
|
|
3241
|
+
createdAt: string | Date;
|
|
3242
|
+
updatedAt: string | Date;
|
|
3243
|
+
id: string;
|
|
3244
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3186
3245
|
lastName: string;
|
|
3187
3246
|
firstName: string;
|
|
3188
3247
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3189
3248
|
officeId?: string | null | undefined;
|
|
3190
3249
|
office?: {
|
|
3191
|
-
id: string;
|
|
3192
3250
|
name: string;
|
|
3251
|
+
id: string;
|
|
3193
3252
|
managers?: {
|
|
3194
3253
|
id: string;
|
|
3195
3254
|
lastName: string;
|
|
@@ -3207,6 +3266,7 @@ export declare const ownResearchContract: {
|
|
|
3207
3266
|
lastName: string;
|
|
3208
3267
|
firstName: string;
|
|
3209
3268
|
}[] | undefined;
|
|
3269
|
+
dialpadUserId?: string | null | undefined;
|
|
3210
3270
|
deletedAt?: string | Date | null | undefined;
|
|
3211
3271
|
} | undefined;
|
|
3212
3272
|
}>>>;
|
|
@@ -3218,33 +3278,34 @@ export declare const ownResearchContract: {
|
|
|
3218
3278
|
existsInOwnResearch: boolean;
|
|
3219
3279
|
isOnCooldown: boolean;
|
|
3220
3280
|
lead?: {
|
|
3221
|
-
status: string;
|
|
3222
|
-
id: string;
|
|
3223
3281
|
name: string;
|
|
3282
|
+
id: string;
|
|
3283
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3224
3284
|
phoneNumber: string;
|
|
3225
3285
|
cooldownUntil: string | null;
|
|
3286
|
+
blacklistReason?: string | null | undefined;
|
|
3226
3287
|
} | null | undefined;
|
|
3227
3288
|
ownResearchLead?: {
|
|
3228
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3229
|
-
id: string;
|
|
3230
3289
|
name: string;
|
|
3231
|
-
updatedAt: string;
|
|
3232
3290
|
createdAt: string;
|
|
3233
|
-
|
|
3291
|
+
updatedAt: string;
|
|
3292
|
+
id: string;
|
|
3293
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3234
3294
|
agentId: string;
|
|
3235
3295
|
phoneNumber: string;
|
|
3236
|
-
lastCalledAt: string | null;
|
|
3237
3296
|
callCount: number;
|
|
3297
|
+
lastCalledAt: string | null;
|
|
3298
|
+
cooldownUntil: string | null;
|
|
3299
|
+
blacklistReason: string | null;
|
|
3238
3300
|
lastCallNotes: string | null;
|
|
3239
3301
|
existsInLeadsTable: boolean;
|
|
3240
|
-
cooldownUntil: string | null;
|
|
3241
3302
|
originalLeadId: string | null;
|
|
3242
3303
|
agent?: {
|
|
3243
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3244
|
-
id: string;
|
|
3245
|
-
updatedAt: string;
|
|
3246
|
-
createdAt: string;
|
|
3247
3304
|
email: string;
|
|
3305
|
+
createdAt: string;
|
|
3306
|
+
updatedAt: string;
|
|
3307
|
+
id: string;
|
|
3308
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3248
3309
|
lastName: string;
|
|
3249
3310
|
firstName: string;
|
|
3250
3311
|
phoneNumbers: {
|
|
@@ -3256,8 +3317,8 @@ export declare const ownResearchContract: {
|
|
|
3256
3317
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3257
3318
|
officeId?: string | null | undefined;
|
|
3258
3319
|
office?: {
|
|
3259
|
-
id: string;
|
|
3260
3320
|
name: string;
|
|
3321
|
+
id: string;
|
|
3261
3322
|
managers?: {
|
|
3262
3323
|
id: string;
|
|
3263
3324
|
lastName: string;
|
|
@@ -3269,6 +3330,7 @@ export declare const ownResearchContract: {
|
|
|
3269
3330
|
lastName: string;
|
|
3270
3331
|
firstName: string;
|
|
3271
3332
|
}[] | undefined;
|
|
3333
|
+
dialpadUserId?: string | null | undefined;
|
|
3272
3334
|
deletedAt?: string | null | undefined;
|
|
3273
3335
|
} | undefined;
|
|
3274
3336
|
} | null | undefined;
|
|
@@ -3278,40 +3340,41 @@ export declare const ownResearchContract: {
|
|
|
3278
3340
|
existsInOwnResearch: boolean;
|
|
3279
3341
|
isOnCooldown: boolean;
|
|
3280
3342
|
lead?: {
|
|
3281
|
-
status: string;
|
|
3282
|
-
id: string;
|
|
3283
3343
|
name: string;
|
|
3344
|
+
id: string;
|
|
3345
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3284
3346
|
phoneNumber: string;
|
|
3285
3347
|
cooldownUntil: string | Date | null;
|
|
3348
|
+
blacklistReason?: string | null | undefined;
|
|
3286
3349
|
} | null | undefined;
|
|
3287
3350
|
ownResearchLead?: {
|
|
3288
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3289
|
-
id: string;
|
|
3290
3351
|
name: string;
|
|
3291
|
-
updatedAt: string | Date;
|
|
3292
3352
|
createdAt: string | Date;
|
|
3293
|
-
|
|
3353
|
+
updatedAt: string | Date;
|
|
3354
|
+
id: string;
|
|
3355
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3294
3356
|
agentId: string;
|
|
3295
3357
|
phoneNumber: string;
|
|
3296
|
-
lastCalledAt: string | Date | null;
|
|
3297
3358
|
callCount: number;
|
|
3359
|
+
lastCalledAt: string | Date | null;
|
|
3360
|
+
cooldownUntil: string | Date | null;
|
|
3361
|
+
blacklistReason: string | null;
|
|
3298
3362
|
lastCallNotes: string | null;
|
|
3299
3363
|
existsInLeadsTable: boolean;
|
|
3300
|
-
cooldownUntil: string | Date | null;
|
|
3301
3364
|
originalLeadId: string | null;
|
|
3302
3365
|
agent?: {
|
|
3303
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3304
|
-
id: string;
|
|
3305
|
-
updatedAt: string | Date;
|
|
3306
|
-
createdAt: string | Date;
|
|
3307
3366
|
email: string;
|
|
3367
|
+
createdAt: string | Date;
|
|
3368
|
+
updatedAt: string | Date;
|
|
3369
|
+
id: string;
|
|
3370
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3308
3371
|
lastName: string;
|
|
3309
3372
|
firstName: string;
|
|
3310
3373
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3311
3374
|
officeId?: string | null | undefined;
|
|
3312
3375
|
office?: {
|
|
3313
|
-
id: string;
|
|
3314
3376
|
name: string;
|
|
3377
|
+
id: string;
|
|
3315
3378
|
managers?: {
|
|
3316
3379
|
id: string;
|
|
3317
3380
|
lastName: string;
|
|
@@ -3329,6 +3392,7 @@ export declare const ownResearchContract: {
|
|
|
3329
3392
|
lastName: string;
|
|
3330
3393
|
firstName: string;
|
|
3331
3394
|
}[] | undefined;
|
|
3395
|
+
dialpadUserId?: string | null | undefined;
|
|
3332
3396
|
deletedAt?: string | Date | null | undefined;
|
|
3333
3397
|
} | undefined;
|
|
3334
3398
|
} | null | undefined;
|
|
@@ -3378,7 +3442,7 @@ export declare const ownResearchContract: {
|
|
|
3378
3442
|
details?: unknown;
|
|
3379
3443
|
correlationId?: string | undefined;
|
|
3380
3444
|
}>;
|
|
3381
|
-
|
|
3445
|
+
403: z.ZodObject<{
|
|
3382
3446
|
statusCode: z.ZodNumber;
|
|
3383
3447
|
message: z.ZodString;
|
|
3384
3448
|
code: z.ZodString;
|
|
@@ -3403,7 +3467,7 @@ export declare const ownResearchContract: {
|
|
|
3403
3467
|
details?: unknown;
|
|
3404
3468
|
correlationId?: string | undefined;
|
|
3405
3469
|
}>;
|
|
3406
|
-
|
|
3470
|
+
401: z.ZodObject<{
|
|
3407
3471
|
statusCode: z.ZodNumber;
|
|
3408
3472
|
message: z.ZodString;
|
|
3409
3473
|
code: z.ZodString;
|
|
@@ -3497,16 +3561,16 @@ export declare const ownResearchContract: {
|
|
|
3497
3561
|
firstName: string;
|
|
3498
3562
|
}>, "many">>;
|
|
3499
3563
|
}, "strip", z.ZodTypeAny, {
|
|
3500
|
-
id: string;
|
|
3501
3564
|
name: string;
|
|
3565
|
+
id: string;
|
|
3502
3566
|
managers?: {
|
|
3503
3567
|
id: string;
|
|
3504
3568
|
lastName: string;
|
|
3505
3569
|
firstName: string;
|
|
3506
3570
|
}[] | undefined;
|
|
3507
3571
|
}, {
|
|
3508
|
-
id: string;
|
|
3509
3572
|
name: string;
|
|
3573
|
+
id: string;
|
|
3510
3574
|
managers?: {
|
|
3511
3575
|
id: string;
|
|
3512
3576
|
lastName: string;
|
|
@@ -3527,15 +3591,16 @@ export declare const ownResearchContract: {
|
|
|
3527
3591
|
firstName: string;
|
|
3528
3592
|
}>, "many">>;
|
|
3529
3593
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3594
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
3530
3595
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3531
3596
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3532
3597
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3533
3598
|
}, "strip", z.ZodTypeAny, {
|
|
3534
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3535
|
-
id: string;
|
|
3536
|
-
updatedAt: string;
|
|
3537
|
-
createdAt: string;
|
|
3538
3599
|
email: string;
|
|
3600
|
+
createdAt: string;
|
|
3601
|
+
updatedAt: string;
|
|
3602
|
+
id: string;
|
|
3603
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3539
3604
|
lastName: string;
|
|
3540
3605
|
firstName: string;
|
|
3541
3606
|
phoneNumbers: {
|
|
@@ -3547,8 +3612,8 @@ export declare const ownResearchContract: {
|
|
|
3547
3612
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3548
3613
|
officeId?: string | null | undefined;
|
|
3549
3614
|
office?: {
|
|
3550
|
-
id: string;
|
|
3551
3615
|
name: string;
|
|
3616
|
+
id: string;
|
|
3552
3617
|
managers?: {
|
|
3553
3618
|
id: string;
|
|
3554
3619
|
lastName: string;
|
|
@@ -3560,20 +3625,21 @@ export declare const ownResearchContract: {
|
|
|
3560
3625
|
lastName: string;
|
|
3561
3626
|
firstName: string;
|
|
3562
3627
|
}[] | undefined;
|
|
3628
|
+
dialpadUserId?: string | null | undefined;
|
|
3563
3629
|
deletedAt?: string | null | undefined;
|
|
3564
3630
|
}, {
|
|
3565
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3566
|
-
id: string;
|
|
3567
|
-
updatedAt: string | Date;
|
|
3568
|
-
createdAt: string | Date;
|
|
3569
3631
|
email: string;
|
|
3632
|
+
createdAt: string | Date;
|
|
3633
|
+
updatedAt: string | Date;
|
|
3634
|
+
id: string;
|
|
3635
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3570
3636
|
lastName: string;
|
|
3571
3637
|
firstName: string;
|
|
3572
3638
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3573
3639
|
officeId?: string | null | undefined;
|
|
3574
3640
|
office?: {
|
|
3575
|
-
id: string;
|
|
3576
3641
|
name: string;
|
|
3642
|
+
id: string;
|
|
3577
3643
|
managers?: {
|
|
3578
3644
|
id: string;
|
|
3579
3645
|
lastName: string;
|
|
@@ -3591,6 +3657,7 @@ export declare const ownResearchContract: {
|
|
|
3591
3657
|
lastName: string;
|
|
3592
3658
|
firstName: string;
|
|
3593
3659
|
}[] | undefined;
|
|
3660
|
+
dialpadUserId?: string | null | undefined;
|
|
3594
3661
|
deletedAt?: string | Date | null | undefined;
|
|
3595
3662
|
}>>;
|
|
3596
3663
|
name: z.ZodString;
|
|
@@ -3606,26 +3673,26 @@ export declare const ownResearchContract: {
|
|
|
3606
3673
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3607
3674
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3608
3675
|
}, "strip", z.ZodTypeAny, {
|
|
3609
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3610
|
-
id: string;
|
|
3611
3676
|
name: string;
|
|
3612
|
-
updatedAt: string;
|
|
3613
3677
|
createdAt: string;
|
|
3614
|
-
|
|
3678
|
+
updatedAt: string;
|
|
3679
|
+
id: string;
|
|
3680
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3615
3681
|
agentId: string;
|
|
3616
3682
|
phoneNumber: string;
|
|
3617
|
-
lastCalledAt: string | null;
|
|
3618
3683
|
callCount: number;
|
|
3684
|
+
lastCalledAt: string | null;
|
|
3685
|
+
cooldownUntil: string | null;
|
|
3686
|
+
blacklistReason: string | null;
|
|
3619
3687
|
lastCallNotes: string | null;
|
|
3620
3688
|
existsInLeadsTable: boolean;
|
|
3621
|
-
cooldownUntil: string | null;
|
|
3622
3689
|
originalLeadId: string | null;
|
|
3623
3690
|
agent?: {
|
|
3624
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3625
|
-
id: string;
|
|
3626
|
-
updatedAt: string;
|
|
3627
|
-
createdAt: string;
|
|
3628
3691
|
email: string;
|
|
3692
|
+
createdAt: string;
|
|
3693
|
+
updatedAt: string;
|
|
3694
|
+
id: string;
|
|
3695
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3629
3696
|
lastName: string;
|
|
3630
3697
|
firstName: string;
|
|
3631
3698
|
phoneNumbers: {
|
|
@@ -3637,8 +3704,8 @@ export declare const ownResearchContract: {
|
|
|
3637
3704
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3638
3705
|
officeId?: string | null | undefined;
|
|
3639
3706
|
office?: {
|
|
3640
|
-
id: string;
|
|
3641
3707
|
name: string;
|
|
3708
|
+
id: string;
|
|
3642
3709
|
managers?: {
|
|
3643
3710
|
id: string;
|
|
3644
3711
|
lastName: string;
|
|
@@ -3650,36 +3717,37 @@ export declare const ownResearchContract: {
|
|
|
3650
3717
|
lastName: string;
|
|
3651
3718
|
firstName: string;
|
|
3652
3719
|
}[] | undefined;
|
|
3720
|
+
dialpadUserId?: string | null | undefined;
|
|
3653
3721
|
deletedAt?: string | null | undefined;
|
|
3654
3722
|
} | undefined;
|
|
3655
3723
|
}, {
|
|
3656
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3657
|
-
id: string;
|
|
3658
3724
|
name: string;
|
|
3659
|
-
updatedAt: string | Date;
|
|
3660
3725
|
createdAt: string | Date;
|
|
3661
|
-
|
|
3726
|
+
updatedAt: string | Date;
|
|
3727
|
+
id: string;
|
|
3728
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3662
3729
|
agentId: string;
|
|
3663
3730
|
phoneNumber: string;
|
|
3664
|
-
lastCalledAt: string | Date | null;
|
|
3665
3731
|
callCount: number;
|
|
3732
|
+
lastCalledAt: string | Date | null;
|
|
3733
|
+
cooldownUntil: string | Date | null;
|
|
3734
|
+
blacklistReason: string | null;
|
|
3666
3735
|
lastCallNotes: string | null;
|
|
3667
3736
|
existsInLeadsTable: boolean;
|
|
3668
|
-
cooldownUntil: string | Date | null;
|
|
3669
3737
|
originalLeadId: string | null;
|
|
3670
3738
|
agent?: {
|
|
3671
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3672
|
-
id: string;
|
|
3673
|
-
updatedAt: string | Date;
|
|
3674
|
-
createdAt: string | Date;
|
|
3675
3739
|
email: string;
|
|
3740
|
+
createdAt: string | Date;
|
|
3741
|
+
updatedAt: string | Date;
|
|
3742
|
+
id: string;
|
|
3743
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3676
3744
|
lastName: string;
|
|
3677
3745
|
firstName: string;
|
|
3678
3746
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3679
3747
|
officeId?: string | null | undefined;
|
|
3680
3748
|
office?: {
|
|
3681
|
-
id: string;
|
|
3682
3749
|
name: string;
|
|
3750
|
+
id: string;
|
|
3683
3751
|
managers?: {
|
|
3684
3752
|
id: string;
|
|
3685
3753
|
lastName: string;
|
|
@@ -3697,31 +3765,32 @@ export declare const ownResearchContract: {
|
|
|
3697
3765
|
lastName: string;
|
|
3698
3766
|
firstName: string;
|
|
3699
3767
|
}[] | undefined;
|
|
3768
|
+
dialpadUserId?: string | null | undefined;
|
|
3700
3769
|
deletedAt?: string | Date | null | undefined;
|
|
3701
3770
|
} | undefined;
|
|
3702
3771
|
}>;
|
|
3703
3772
|
}, "strip", z.ZodTypeAny, {
|
|
3704
3773
|
ownResearchLead: {
|
|
3705
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3706
|
-
id: string;
|
|
3707
3774
|
name: string;
|
|
3708
|
-
updatedAt: string;
|
|
3709
3775
|
createdAt: string;
|
|
3710
|
-
|
|
3776
|
+
updatedAt: string;
|
|
3777
|
+
id: string;
|
|
3778
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3711
3779
|
agentId: string;
|
|
3712
3780
|
phoneNumber: string;
|
|
3713
|
-
lastCalledAt: string | null;
|
|
3714
3781
|
callCount: number;
|
|
3782
|
+
lastCalledAt: string | null;
|
|
3783
|
+
cooldownUntil: string | null;
|
|
3784
|
+
blacklistReason: string | null;
|
|
3715
3785
|
lastCallNotes: string | null;
|
|
3716
3786
|
existsInLeadsTable: boolean;
|
|
3717
|
-
cooldownUntil: string | null;
|
|
3718
3787
|
originalLeadId: string | null;
|
|
3719
3788
|
agent?: {
|
|
3720
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3721
|
-
id: string;
|
|
3722
|
-
updatedAt: string;
|
|
3723
|
-
createdAt: string;
|
|
3724
3789
|
email: string;
|
|
3790
|
+
createdAt: string;
|
|
3791
|
+
updatedAt: string;
|
|
3792
|
+
id: string;
|
|
3793
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3725
3794
|
lastName: string;
|
|
3726
3795
|
firstName: string;
|
|
3727
3796
|
phoneNumbers: {
|
|
@@ -3733,8 +3802,8 @@ export declare const ownResearchContract: {
|
|
|
3733
3802
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3734
3803
|
officeId?: string | null | undefined;
|
|
3735
3804
|
office?: {
|
|
3736
|
-
id: string;
|
|
3737
3805
|
name: string;
|
|
3806
|
+
id: string;
|
|
3738
3807
|
managers?: {
|
|
3739
3808
|
id: string;
|
|
3740
3809
|
lastName: string;
|
|
@@ -3746,38 +3815,39 @@ export declare const ownResearchContract: {
|
|
|
3746
3815
|
lastName: string;
|
|
3747
3816
|
firstName: string;
|
|
3748
3817
|
}[] | undefined;
|
|
3818
|
+
dialpadUserId?: string | null | undefined;
|
|
3749
3819
|
deletedAt?: string | null | undefined;
|
|
3750
3820
|
} | undefined;
|
|
3751
3821
|
};
|
|
3752
3822
|
}, {
|
|
3753
3823
|
ownResearchLead: {
|
|
3754
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3755
|
-
id: string;
|
|
3756
3824
|
name: string;
|
|
3757
|
-
updatedAt: string | Date;
|
|
3758
3825
|
createdAt: string | Date;
|
|
3759
|
-
|
|
3826
|
+
updatedAt: string | Date;
|
|
3827
|
+
id: string;
|
|
3828
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3760
3829
|
agentId: string;
|
|
3761
3830
|
phoneNumber: string;
|
|
3762
|
-
lastCalledAt: string | Date | null;
|
|
3763
3831
|
callCount: number;
|
|
3832
|
+
lastCalledAt: string | Date | null;
|
|
3833
|
+
cooldownUntil: string | Date | null;
|
|
3834
|
+
blacklistReason: string | null;
|
|
3764
3835
|
lastCallNotes: string | null;
|
|
3765
3836
|
existsInLeadsTable: boolean;
|
|
3766
|
-
cooldownUntil: string | Date | null;
|
|
3767
3837
|
originalLeadId: string | null;
|
|
3768
3838
|
agent?: {
|
|
3769
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3770
|
-
id: string;
|
|
3771
|
-
updatedAt: string | Date;
|
|
3772
|
-
createdAt: string | Date;
|
|
3773
3839
|
email: string;
|
|
3840
|
+
createdAt: string | Date;
|
|
3841
|
+
updatedAt: string | Date;
|
|
3842
|
+
id: string;
|
|
3843
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3774
3844
|
lastName: string;
|
|
3775
3845
|
firstName: string;
|
|
3776
3846
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3777
3847
|
officeId?: string | null | undefined;
|
|
3778
3848
|
office?: {
|
|
3779
|
-
id: string;
|
|
3780
3849
|
name: string;
|
|
3850
|
+
id: string;
|
|
3781
3851
|
managers?: {
|
|
3782
3852
|
id: string;
|
|
3783
3853
|
lastName: string;
|
|
@@ -3795,6 +3865,7 @@ export declare const ownResearchContract: {
|
|
|
3795
3865
|
lastName: string;
|
|
3796
3866
|
firstName: string;
|
|
3797
3867
|
}[] | undefined;
|
|
3868
|
+
dialpadUserId?: string | null | undefined;
|
|
3798
3869
|
deletedAt?: string | Date | null | undefined;
|
|
3799
3870
|
} | undefined;
|
|
3800
3871
|
};
|
|
@@ -3815,16 +3886,16 @@ export declare const ownResearchContract: {
|
|
|
3815
3886
|
callType: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>>;
|
|
3816
3887
|
}, "strip", z.ZodTypeAny, {
|
|
3817
3888
|
name: string;
|
|
3818
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
3819
3889
|
phoneNumber: string;
|
|
3820
|
-
|
|
3890
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
3821
3891
|
notes?: string | undefined;
|
|
3892
|
+
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3822
3893
|
}, {
|
|
3823
3894
|
name: string;
|
|
3824
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
3825
3895
|
phoneNumber: string;
|
|
3826
|
-
|
|
3896
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
3827
3897
|
notes?: string | undefined;
|
|
3898
|
+
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3828
3899
|
}>;
|
|
3829
3900
|
path: "/v2/own-research/call";
|
|
3830
3901
|
responses: {
|
|
@@ -3853,7 +3924,7 @@ export declare const ownResearchContract: {
|
|
|
3853
3924
|
details?: unknown;
|
|
3854
3925
|
correlationId?: string | undefined;
|
|
3855
3926
|
}>;
|
|
3856
|
-
|
|
3927
|
+
403: z.ZodObject<{
|
|
3857
3928
|
statusCode: z.ZodNumber;
|
|
3858
3929
|
message: z.ZodString;
|
|
3859
3930
|
code: z.ZodString;
|
|
@@ -3878,7 +3949,7 @@ export declare const ownResearchContract: {
|
|
|
3878
3949
|
details?: unknown;
|
|
3879
3950
|
correlationId?: string | undefined;
|
|
3880
3951
|
}>;
|
|
3881
|
-
|
|
3952
|
+
401: z.ZodObject<{
|
|
3882
3953
|
statusCode: z.ZodNumber;
|
|
3883
3954
|
message: z.ZodString;
|
|
3884
3955
|
code: z.ZodString;
|
|
@@ -3983,16 +4054,16 @@ export declare const ownResearchContract: {
|
|
|
3983
4054
|
firstName: string;
|
|
3984
4055
|
}>, "many">>;
|
|
3985
4056
|
}, "strip", z.ZodTypeAny, {
|
|
3986
|
-
id: string;
|
|
3987
4057
|
name: string;
|
|
4058
|
+
id: string;
|
|
3988
4059
|
managers?: {
|
|
3989
4060
|
id: string;
|
|
3990
4061
|
lastName: string;
|
|
3991
4062
|
firstName: string;
|
|
3992
4063
|
}[] | undefined;
|
|
3993
4064
|
}, {
|
|
3994
|
-
id: string;
|
|
3995
4065
|
name: string;
|
|
4066
|
+
id: string;
|
|
3996
4067
|
managers?: {
|
|
3997
4068
|
id: string;
|
|
3998
4069
|
lastName: string;
|
|
@@ -4013,15 +4084,16 @@ export declare const ownResearchContract: {
|
|
|
4013
4084
|
firstName: string;
|
|
4014
4085
|
}>, "many">>;
|
|
4015
4086
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
4087
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
4016
4088
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4017
4089
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4018
4090
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
4019
4091
|
}, "strip", z.ZodTypeAny, {
|
|
4020
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4021
|
-
id: string;
|
|
4022
|
-
updatedAt: string;
|
|
4023
|
-
createdAt: string;
|
|
4024
4092
|
email: string;
|
|
4093
|
+
createdAt: string;
|
|
4094
|
+
updatedAt: string;
|
|
4095
|
+
id: string;
|
|
4096
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4025
4097
|
lastName: string;
|
|
4026
4098
|
firstName: string;
|
|
4027
4099
|
phoneNumbers: {
|
|
@@ -4033,8 +4105,8 @@ export declare const ownResearchContract: {
|
|
|
4033
4105
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4034
4106
|
officeId?: string | null | undefined;
|
|
4035
4107
|
office?: {
|
|
4036
|
-
id: string;
|
|
4037
4108
|
name: string;
|
|
4109
|
+
id: string;
|
|
4038
4110
|
managers?: {
|
|
4039
4111
|
id: string;
|
|
4040
4112
|
lastName: string;
|
|
@@ -4046,20 +4118,21 @@ export declare const ownResearchContract: {
|
|
|
4046
4118
|
lastName: string;
|
|
4047
4119
|
firstName: string;
|
|
4048
4120
|
}[] | undefined;
|
|
4121
|
+
dialpadUserId?: string | null | undefined;
|
|
4049
4122
|
deletedAt?: string | null | undefined;
|
|
4050
4123
|
}, {
|
|
4051
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4052
|
-
id: string;
|
|
4053
|
-
updatedAt: string | Date;
|
|
4054
|
-
createdAt: string | Date;
|
|
4055
4124
|
email: string;
|
|
4125
|
+
createdAt: string | Date;
|
|
4126
|
+
updatedAt: string | Date;
|
|
4127
|
+
id: string;
|
|
4128
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4056
4129
|
lastName: string;
|
|
4057
4130
|
firstName: string;
|
|
4058
4131
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4059
4132
|
officeId?: string | null | undefined;
|
|
4060
4133
|
office?: {
|
|
4061
|
-
id: string;
|
|
4062
4134
|
name: string;
|
|
4135
|
+
id: string;
|
|
4063
4136
|
managers?: {
|
|
4064
4137
|
id: string;
|
|
4065
4138
|
lastName: string;
|
|
@@ -4077,6 +4150,7 @@ export declare const ownResearchContract: {
|
|
|
4077
4150
|
lastName: string;
|
|
4078
4151
|
firstName: string;
|
|
4079
4152
|
}[] | undefined;
|
|
4153
|
+
dialpadUserId?: string | null | undefined;
|
|
4080
4154
|
deletedAt?: string | Date | null | undefined;
|
|
4081
4155
|
}>>;
|
|
4082
4156
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -4089,44 +4163,34 @@ export declare const ownResearchContract: {
|
|
|
4089
4163
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4090
4164
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4091
4165
|
}, "strip", z.ZodTypeAny, {
|
|
4092
|
-
id: string;
|
|
4093
4166
|
name: string;
|
|
4094
|
-
updatedAt: string;
|
|
4095
4167
|
createdAt: string;
|
|
4096
|
-
|
|
4168
|
+
updatedAt: string;
|
|
4097
4169
|
id: string;
|
|
4170
|
+
}, {
|
|
4098
4171
|
name: string;
|
|
4099
|
-
updatedAt: string | Date;
|
|
4100
4172
|
createdAt: string | Date;
|
|
4173
|
+
updatedAt: string | Date;
|
|
4174
|
+
id: string;
|
|
4101
4175
|
}>>>;
|
|
4102
4176
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4103
4177
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4104
4178
|
}, "strip", z.ZodTypeAny, {
|
|
4105
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4106
|
-
id: string;
|
|
4107
|
-
updatedAt: string;
|
|
4108
4179
|
createdAt: string;
|
|
4109
|
-
|
|
4180
|
+
updatedAt: string;
|
|
4181
|
+
id: string;
|
|
4182
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4110
4183
|
agentId: string | null;
|
|
4111
4184
|
leadId: string;
|
|
4112
4185
|
assignedAt: string;
|
|
4113
4186
|
assignedBy: string | null;
|
|
4114
|
-
|
|
4115
|
-
id: string;
|
|
4116
|
-
name: string;
|
|
4117
|
-
updatedAt: string;
|
|
4118
|
-
createdAt: string;
|
|
4119
|
-
} | null | undefined;
|
|
4120
|
-
lead?: {
|
|
4121
|
-
name: string;
|
|
4122
|
-
phoneNumber: string;
|
|
4123
|
-
} | undefined;
|
|
4187
|
+
companyId: string | null;
|
|
4124
4188
|
agent?: {
|
|
4125
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4126
|
-
id: string;
|
|
4127
|
-
updatedAt: string;
|
|
4128
|
-
createdAt: string;
|
|
4129
4189
|
email: string;
|
|
4190
|
+
createdAt: string;
|
|
4191
|
+
updatedAt: string;
|
|
4192
|
+
id: string;
|
|
4193
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4130
4194
|
lastName: string;
|
|
4131
4195
|
firstName: string;
|
|
4132
4196
|
phoneNumbers: {
|
|
@@ -4138,8 +4202,8 @@ export declare const ownResearchContract: {
|
|
|
4138
4202
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4139
4203
|
officeId?: string | null | undefined;
|
|
4140
4204
|
office?: {
|
|
4141
|
-
id: string;
|
|
4142
4205
|
name: string;
|
|
4206
|
+
id: string;
|
|
4143
4207
|
managers?: {
|
|
4144
4208
|
id: string;
|
|
4145
4209
|
lastName: string;
|
|
@@ -4151,41 +4215,42 @@ export declare const ownResearchContract: {
|
|
|
4151
4215
|
lastName: string;
|
|
4152
4216
|
firstName: string;
|
|
4153
4217
|
}[] | undefined;
|
|
4218
|
+
dialpadUserId?: string | null | undefined;
|
|
4154
4219
|
deletedAt?: string | null | undefined;
|
|
4155
4220
|
} | undefined;
|
|
4221
|
+
lead?: {
|
|
4222
|
+
name: string;
|
|
4223
|
+
phoneNumber: string;
|
|
4224
|
+
} | undefined;
|
|
4225
|
+
company?: {
|
|
4226
|
+
name: string;
|
|
4227
|
+
createdAt: string;
|
|
4228
|
+
updatedAt: string;
|
|
4229
|
+
id: string;
|
|
4230
|
+
} | null | undefined;
|
|
4156
4231
|
}, {
|
|
4157
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4158
|
-
id: string;
|
|
4159
|
-
updatedAt: string | Date;
|
|
4160
4232
|
createdAt: string | Date;
|
|
4161
|
-
|
|
4233
|
+
updatedAt: string | Date;
|
|
4234
|
+
id: string;
|
|
4235
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4162
4236
|
agentId: string | null;
|
|
4163
4237
|
leadId: string;
|
|
4164
4238
|
assignedAt: string | Date;
|
|
4165
4239
|
assignedBy: string | null;
|
|
4166
|
-
|
|
4167
|
-
id: string;
|
|
4168
|
-
name: string;
|
|
4169
|
-
updatedAt: string | Date;
|
|
4170
|
-
createdAt: string | Date;
|
|
4171
|
-
} | null | undefined;
|
|
4172
|
-
lead?: {
|
|
4173
|
-
name: string;
|
|
4174
|
-
phoneNumber: string;
|
|
4175
|
-
} | undefined;
|
|
4240
|
+
companyId: string | null;
|
|
4176
4241
|
agent?: {
|
|
4177
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4178
|
-
id: string;
|
|
4179
|
-
updatedAt: string | Date;
|
|
4180
|
-
createdAt: string | Date;
|
|
4181
4242
|
email: string;
|
|
4243
|
+
createdAt: string | Date;
|
|
4244
|
+
updatedAt: string | Date;
|
|
4245
|
+
id: string;
|
|
4246
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4182
4247
|
lastName: string;
|
|
4183
4248
|
firstName: string;
|
|
4184
4249
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4185
4250
|
officeId?: string | null | undefined;
|
|
4186
4251
|
office?: {
|
|
4187
|
-
id: string;
|
|
4188
4252
|
name: string;
|
|
4253
|
+
id: string;
|
|
4189
4254
|
managers?: {
|
|
4190
4255
|
id: string;
|
|
4191
4256
|
lastName: string;
|
|
@@ -4203,8 +4268,19 @@ export declare const ownResearchContract: {
|
|
|
4203
4268
|
lastName: string;
|
|
4204
4269
|
firstName: string;
|
|
4205
4270
|
}[] | undefined;
|
|
4271
|
+
dialpadUserId?: string | null | undefined;
|
|
4206
4272
|
deletedAt?: string | Date | null | undefined;
|
|
4207
4273
|
} | undefined;
|
|
4274
|
+
lead?: {
|
|
4275
|
+
name: string;
|
|
4276
|
+
phoneNumber: string;
|
|
4277
|
+
} | undefined;
|
|
4278
|
+
company?: {
|
|
4279
|
+
name: string;
|
|
4280
|
+
createdAt: string | Date;
|
|
4281
|
+
updatedAt: string | Date;
|
|
4282
|
+
id: string;
|
|
4283
|
+
} | null | undefined;
|
|
4208
4284
|
}>>>;
|
|
4209
4285
|
ownResearchLead: z.ZodObject<{
|
|
4210
4286
|
id: z.ZodString;
|
|
@@ -4249,16 +4325,16 @@ export declare const ownResearchContract: {
|
|
|
4249
4325
|
firstName: string;
|
|
4250
4326
|
}>, "many">>;
|
|
4251
4327
|
}, "strip", z.ZodTypeAny, {
|
|
4252
|
-
id: string;
|
|
4253
4328
|
name: string;
|
|
4329
|
+
id: string;
|
|
4254
4330
|
managers?: {
|
|
4255
4331
|
id: string;
|
|
4256
4332
|
lastName: string;
|
|
4257
4333
|
firstName: string;
|
|
4258
4334
|
}[] | undefined;
|
|
4259
4335
|
}, {
|
|
4260
|
-
id: string;
|
|
4261
4336
|
name: string;
|
|
4337
|
+
id: string;
|
|
4262
4338
|
managers?: {
|
|
4263
4339
|
id: string;
|
|
4264
4340
|
lastName: string;
|
|
@@ -4279,15 +4355,16 @@ export declare const ownResearchContract: {
|
|
|
4279
4355
|
firstName: string;
|
|
4280
4356
|
}>, "many">>;
|
|
4281
4357
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
4358
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
4282
4359
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4283
4360
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4284
4361
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
4285
4362
|
}, "strip", z.ZodTypeAny, {
|
|
4286
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4287
|
-
id: string;
|
|
4288
|
-
updatedAt: string;
|
|
4289
|
-
createdAt: string;
|
|
4290
4363
|
email: string;
|
|
4364
|
+
createdAt: string;
|
|
4365
|
+
updatedAt: string;
|
|
4366
|
+
id: string;
|
|
4367
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4291
4368
|
lastName: string;
|
|
4292
4369
|
firstName: string;
|
|
4293
4370
|
phoneNumbers: {
|
|
@@ -4299,8 +4376,8 @@ export declare const ownResearchContract: {
|
|
|
4299
4376
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4300
4377
|
officeId?: string | null | undefined;
|
|
4301
4378
|
office?: {
|
|
4302
|
-
id: string;
|
|
4303
4379
|
name: string;
|
|
4380
|
+
id: string;
|
|
4304
4381
|
managers?: {
|
|
4305
4382
|
id: string;
|
|
4306
4383
|
lastName: string;
|
|
@@ -4312,20 +4389,21 @@ export declare const ownResearchContract: {
|
|
|
4312
4389
|
lastName: string;
|
|
4313
4390
|
firstName: string;
|
|
4314
4391
|
}[] | undefined;
|
|
4392
|
+
dialpadUserId?: string | null | undefined;
|
|
4315
4393
|
deletedAt?: string | null | undefined;
|
|
4316
4394
|
}, {
|
|
4317
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4318
|
-
id: string;
|
|
4319
|
-
updatedAt: string | Date;
|
|
4320
|
-
createdAt: string | Date;
|
|
4321
4395
|
email: string;
|
|
4396
|
+
createdAt: string | Date;
|
|
4397
|
+
updatedAt: string | Date;
|
|
4398
|
+
id: string;
|
|
4399
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4322
4400
|
lastName: string;
|
|
4323
4401
|
firstName: string;
|
|
4324
4402
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4325
4403
|
officeId?: string | null | undefined;
|
|
4326
4404
|
office?: {
|
|
4327
|
-
id: string;
|
|
4328
4405
|
name: string;
|
|
4406
|
+
id: string;
|
|
4329
4407
|
managers?: {
|
|
4330
4408
|
id: string;
|
|
4331
4409
|
lastName: string;
|
|
@@ -4343,6 +4421,7 @@ export declare const ownResearchContract: {
|
|
|
4343
4421
|
lastName: string;
|
|
4344
4422
|
firstName: string;
|
|
4345
4423
|
}[] | undefined;
|
|
4424
|
+
dialpadUserId?: string | null | undefined;
|
|
4346
4425
|
deletedAt?: string | Date | null | undefined;
|
|
4347
4426
|
}>>;
|
|
4348
4427
|
name: z.ZodString;
|
|
@@ -4358,26 +4437,26 @@ export declare const ownResearchContract: {
|
|
|
4358
4437
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4359
4438
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4360
4439
|
}, "strip", z.ZodTypeAny, {
|
|
4361
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
4362
|
-
id: string;
|
|
4363
4440
|
name: string;
|
|
4364
|
-
updatedAt: string;
|
|
4365
4441
|
createdAt: string;
|
|
4366
|
-
|
|
4442
|
+
updatedAt: string;
|
|
4443
|
+
id: string;
|
|
4444
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
4367
4445
|
agentId: string;
|
|
4368
4446
|
phoneNumber: string;
|
|
4369
|
-
lastCalledAt: string | null;
|
|
4370
4447
|
callCount: number;
|
|
4448
|
+
lastCalledAt: string | null;
|
|
4449
|
+
cooldownUntil: string | null;
|
|
4450
|
+
blacklistReason: string | null;
|
|
4371
4451
|
lastCallNotes: string | null;
|
|
4372
4452
|
existsInLeadsTable: boolean;
|
|
4373
|
-
cooldownUntil: string | null;
|
|
4374
4453
|
originalLeadId: string | null;
|
|
4375
4454
|
agent?: {
|
|
4376
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4377
|
-
id: string;
|
|
4378
|
-
updatedAt: string;
|
|
4379
|
-
createdAt: string;
|
|
4380
4455
|
email: string;
|
|
4456
|
+
createdAt: string;
|
|
4457
|
+
updatedAt: string;
|
|
4458
|
+
id: string;
|
|
4459
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4381
4460
|
lastName: string;
|
|
4382
4461
|
firstName: string;
|
|
4383
4462
|
phoneNumbers: {
|
|
@@ -4389,8 +4468,8 @@ export declare const ownResearchContract: {
|
|
|
4389
4468
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4390
4469
|
officeId?: string | null | undefined;
|
|
4391
4470
|
office?: {
|
|
4392
|
-
id: string;
|
|
4393
4471
|
name: string;
|
|
4472
|
+
id: string;
|
|
4394
4473
|
managers?: {
|
|
4395
4474
|
id: string;
|
|
4396
4475
|
lastName: string;
|
|
@@ -4402,36 +4481,37 @@ export declare const ownResearchContract: {
|
|
|
4402
4481
|
lastName: string;
|
|
4403
4482
|
firstName: string;
|
|
4404
4483
|
}[] | undefined;
|
|
4484
|
+
dialpadUserId?: string | null | undefined;
|
|
4405
4485
|
deletedAt?: string | null | undefined;
|
|
4406
4486
|
} | undefined;
|
|
4407
4487
|
}, {
|
|
4408
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
4409
|
-
id: string;
|
|
4410
4488
|
name: string;
|
|
4411
|
-
updatedAt: string | Date;
|
|
4412
4489
|
createdAt: string | Date;
|
|
4413
|
-
|
|
4490
|
+
updatedAt: string | Date;
|
|
4491
|
+
id: string;
|
|
4492
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
4414
4493
|
agentId: string;
|
|
4415
4494
|
phoneNumber: string;
|
|
4416
|
-
lastCalledAt: string | Date | null;
|
|
4417
4495
|
callCount: number;
|
|
4496
|
+
lastCalledAt: string | Date | null;
|
|
4497
|
+
cooldownUntil: string | Date | null;
|
|
4498
|
+
blacklistReason: string | null;
|
|
4418
4499
|
lastCallNotes: string | null;
|
|
4419
4500
|
existsInLeadsTable: boolean;
|
|
4420
|
-
cooldownUntil: string | Date | null;
|
|
4421
4501
|
originalLeadId: string | null;
|
|
4422
4502
|
agent?: {
|
|
4423
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4424
|
-
id: string;
|
|
4425
|
-
updatedAt: string | Date;
|
|
4426
|
-
createdAt: string | Date;
|
|
4427
4503
|
email: string;
|
|
4504
|
+
createdAt: string | Date;
|
|
4505
|
+
updatedAt: string | Date;
|
|
4506
|
+
id: string;
|
|
4507
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4428
4508
|
lastName: string;
|
|
4429
4509
|
firstName: string;
|
|
4430
4510
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4431
4511
|
officeId?: string | null | undefined;
|
|
4432
4512
|
office?: {
|
|
4433
|
-
id: string;
|
|
4434
4513
|
name: string;
|
|
4514
|
+
id: string;
|
|
4435
4515
|
managers?: {
|
|
4436
4516
|
id: string;
|
|
4437
4517
|
lastName: string;
|
|
@@ -4449,31 +4529,32 @@ export declare const ownResearchContract: {
|
|
|
4449
4529
|
lastName: string;
|
|
4450
4530
|
firstName: string;
|
|
4451
4531
|
}[] | undefined;
|
|
4532
|
+
dialpadUserId?: string | null | undefined;
|
|
4452
4533
|
deletedAt?: string | Date | null | undefined;
|
|
4453
4534
|
} | undefined;
|
|
4454
4535
|
}>;
|
|
4455
4536
|
}, "strip", z.ZodTypeAny, {
|
|
4456
4537
|
ownResearchLead: {
|
|
4457
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
4458
|
-
id: string;
|
|
4459
4538
|
name: string;
|
|
4460
|
-
updatedAt: string;
|
|
4461
4539
|
createdAt: string;
|
|
4462
|
-
|
|
4540
|
+
updatedAt: string;
|
|
4541
|
+
id: string;
|
|
4542
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
4463
4543
|
agentId: string;
|
|
4464
4544
|
phoneNumber: string;
|
|
4465
|
-
lastCalledAt: string | null;
|
|
4466
4545
|
callCount: number;
|
|
4546
|
+
lastCalledAt: string | null;
|
|
4547
|
+
cooldownUntil: string | null;
|
|
4548
|
+
blacklistReason: string | null;
|
|
4467
4549
|
lastCallNotes: string | null;
|
|
4468
4550
|
existsInLeadsTable: boolean;
|
|
4469
|
-
cooldownUntil: string | null;
|
|
4470
4551
|
originalLeadId: string | null;
|
|
4471
4552
|
agent?: {
|
|
4472
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4473
|
-
id: string;
|
|
4474
|
-
updatedAt: string;
|
|
4475
|
-
createdAt: string;
|
|
4476
4553
|
email: string;
|
|
4554
|
+
createdAt: string;
|
|
4555
|
+
updatedAt: string;
|
|
4556
|
+
id: string;
|
|
4557
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4477
4558
|
lastName: string;
|
|
4478
4559
|
firstName: string;
|
|
4479
4560
|
phoneNumbers: {
|
|
@@ -4485,8 +4566,8 @@ export declare const ownResearchContract: {
|
|
|
4485
4566
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4486
4567
|
officeId?: string | null | undefined;
|
|
4487
4568
|
office?: {
|
|
4488
|
-
id: string;
|
|
4489
4569
|
name: string;
|
|
4570
|
+
id: string;
|
|
4490
4571
|
managers?: {
|
|
4491
4572
|
id: string;
|
|
4492
4573
|
lastName: string;
|
|
@@ -4498,35 +4579,26 @@ export declare const ownResearchContract: {
|
|
|
4498
4579
|
lastName: string;
|
|
4499
4580
|
firstName: string;
|
|
4500
4581
|
}[] | undefined;
|
|
4582
|
+
dialpadUserId?: string | null | undefined;
|
|
4501
4583
|
deletedAt?: string | null | undefined;
|
|
4502
4584
|
} | undefined;
|
|
4503
4585
|
};
|
|
4504
4586
|
assignment?: {
|
|
4505
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4506
|
-
id: string;
|
|
4507
|
-
updatedAt: string;
|
|
4508
4587
|
createdAt: string;
|
|
4509
|
-
|
|
4588
|
+
updatedAt: string;
|
|
4589
|
+
id: string;
|
|
4590
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4510
4591
|
agentId: string | null;
|
|
4511
4592
|
leadId: string;
|
|
4512
4593
|
assignedAt: string;
|
|
4513
4594
|
assignedBy: string | null;
|
|
4514
|
-
|
|
4515
|
-
id: string;
|
|
4516
|
-
name: string;
|
|
4517
|
-
updatedAt: string;
|
|
4518
|
-
createdAt: string;
|
|
4519
|
-
} | null | undefined;
|
|
4520
|
-
lead?: {
|
|
4521
|
-
name: string;
|
|
4522
|
-
phoneNumber: string;
|
|
4523
|
-
} | undefined;
|
|
4595
|
+
companyId: string | null;
|
|
4524
4596
|
agent?: {
|
|
4525
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4526
|
-
id: string;
|
|
4527
|
-
updatedAt: string;
|
|
4528
|
-
createdAt: string;
|
|
4529
4597
|
email: string;
|
|
4598
|
+
createdAt: string;
|
|
4599
|
+
updatedAt: string;
|
|
4600
|
+
id: string;
|
|
4601
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4530
4602
|
lastName: string;
|
|
4531
4603
|
firstName: string;
|
|
4532
4604
|
phoneNumbers: {
|
|
@@ -4538,8 +4610,8 @@ export declare const ownResearchContract: {
|
|
|
4538
4610
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4539
4611
|
officeId?: string | null | undefined;
|
|
4540
4612
|
office?: {
|
|
4541
|
-
id: string;
|
|
4542
4613
|
name: string;
|
|
4614
|
+
id: string;
|
|
4543
4615
|
managers?: {
|
|
4544
4616
|
id: string;
|
|
4545
4617
|
lastName: string;
|
|
@@ -4551,38 +4623,49 @@ export declare const ownResearchContract: {
|
|
|
4551
4623
|
lastName: string;
|
|
4552
4624
|
firstName: string;
|
|
4553
4625
|
}[] | undefined;
|
|
4626
|
+
dialpadUserId?: string | null | undefined;
|
|
4554
4627
|
deletedAt?: string | null | undefined;
|
|
4555
4628
|
} | undefined;
|
|
4629
|
+
lead?: {
|
|
4630
|
+
name: string;
|
|
4631
|
+
phoneNumber: string;
|
|
4632
|
+
} | undefined;
|
|
4633
|
+
company?: {
|
|
4634
|
+
name: string;
|
|
4635
|
+
createdAt: string;
|
|
4636
|
+
updatedAt: string;
|
|
4637
|
+
id: string;
|
|
4638
|
+
} | null | undefined;
|
|
4556
4639
|
} | null | undefined;
|
|
4557
4640
|
}, {
|
|
4558
4641
|
ownResearchLead: {
|
|
4559
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
4560
|
-
id: string;
|
|
4561
4642
|
name: string;
|
|
4562
|
-
updatedAt: string | Date;
|
|
4563
4643
|
createdAt: string | Date;
|
|
4564
|
-
|
|
4644
|
+
updatedAt: string | Date;
|
|
4645
|
+
id: string;
|
|
4646
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
4565
4647
|
agentId: string;
|
|
4566
4648
|
phoneNumber: string;
|
|
4567
|
-
lastCalledAt: string | Date | null;
|
|
4568
4649
|
callCount: number;
|
|
4650
|
+
lastCalledAt: string | Date | null;
|
|
4651
|
+
cooldownUntil: string | Date | null;
|
|
4652
|
+
blacklistReason: string | null;
|
|
4569
4653
|
lastCallNotes: string | null;
|
|
4570
4654
|
existsInLeadsTable: boolean;
|
|
4571
|
-
cooldownUntil: string | Date | null;
|
|
4572
4655
|
originalLeadId: string | null;
|
|
4573
4656
|
agent?: {
|
|
4574
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4575
|
-
id: string;
|
|
4576
|
-
updatedAt: string | Date;
|
|
4577
|
-
createdAt: string | Date;
|
|
4578
4657
|
email: string;
|
|
4658
|
+
createdAt: string | Date;
|
|
4659
|
+
updatedAt: string | Date;
|
|
4660
|
+
id: string;
|
|
4661
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4579
4662
|
lastName: string;
|
|
4580
4663
|
firstName: string;
|
|
4581
4664
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4582
4665
|
officeId?: string | null | undefined;
|
|
4583
4666
|
office?: {
|
|
4584
|
-
id: string;
|
|
4585
4667
|
name: string;
|
|
4668
|
+
id: string;
|
|
4586
4669
|
managers?: {
|
|
4587
4670
|
id: string;
|
|
4588
4671
|
lastName: string;
|
|
@@ -4600,42 +4683,33 @@ export declare const ownResearchContract: {
|
|
|
4600
4683
|
lastName: string;
|
|
4601
4684
|
firstName: string;
|
|
4602
4685
|
}[] | undefined;
|
|
4686
|
+
dialpadUserId?: string | null | undefined;
|
|
4603
4687
|
deletedAt?: string | Date | null | undefined;
|
|
4604
4688
|
} | undefined;
|
|
4605
4689
|
};
|
|
4606
4690
|
assignment?: {
|
|
4607
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4608
|
-
id: string;
|
|
4609
|
-
updatedAt: string | Date;
|
|
4610
4691
|
createdAt: string | Date;
|
|
4611
|
-
|
|
4692
|
+
updatedAt: string | Date;
|
|
4693
|
+
id: string;
|
|
4694
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4612
4695
|
agentId: string | null;
|
|
4613
4696
|
leadId: string;
|
|
4614
4697
|
assignedAt: string | Date;
|
|
4615
4698
|
assignedBy: string | null;
|
|
4616
|
-
|
|
4617
|
-
id: string;
|
|
4618
|
-
name: string;
|
|
4619
|
-
updatedAt: string | Date;
|
|
4620
|
-
createdAt: string | Date;
|
|
4621
|
-
} | null | undefined;
|
|
4622
|
-
lead?: {
|
|
4623
|
-
name: string;
|
|
4624
|
-
phoneNumber: string;
|
|
4625
|
-
} | undefined;
|
|
4699
|
+
companyId: string | null;
|
|
4626
4700
|
agent?: {
|
|
4627
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4628
|
-
id: string;
|
|
4629
|
-
updatedAt: string | Date;
|
|
4630
|
-
createdAt: string | Date;
|
|
4631
4701
|
email: string;
|
|
4702
|
+
createdAt: string | Date;
|
|
4703
|
+
updatedAt: string | Date;
|
|
4704
|
+
id: string;
|
|
4705
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4632
4706
|
lastName: string;
|
|
4633
4707
|
firstName: string;
|
|
4634
4708
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4635
4709
|
officeId?: string | null | undefined;
|
|
4636
4710
|
office?: {
|
|
4637
|
-
id: string;
|
|
4638
4711
|
name: string;
|
|
4712
|
+
id: string;
|
|
4639
4713
|
managers?: {
|
|
4640
4714
|
id: string;
|
|
4641
4715
|
lastName: string;
|
|
@@ -4653,8 +4727,19 @@ export declare const ownResearchContract: {
|
|
|
4653
4727
|
lastName: string;
|
|
4654
4728
|
firstName: string;
|
|
4655
4729
|
}[] | undefined;
|
|
4730
|
+
dialpadUserId?: string | null | undefined;
|
|
4656
4731
|
deletedAt?: string | Date | null | undefined;
|
|
4657
4732
|
} | undefined;
|
|
4733
|
+
lead?: {
|
|
4734
|
+
name: string;
|
|
4735
|
+
phoneNumber: string;
|
|
4736
|
+
} | undefined;
|
|
4737
|
+
company?: {
|
|
4738
|
+
name: string;
|
|
4739
|
+
createdAt: string | Date;
|
|
4740
|
+
updatedAt: string | Date;
|
|
4741
|
+
id: string;
|
|
4742
|
+
} | null | undefined;
|
|
4658
4743
|
} | null | undefined;
|
|
4659
4744
|
}>;
|
|
4660
4745
|
};
|