@dakkitor/api-contracts 1.8.0 → 1.9.2
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 +28 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +32 -1
- package/dist/abilities/abilities.contract.spec.js +63 -3
- package/dist/abilities/admin-dashboard.abilities.test.js +1 -0
- package/dist/abilities/automatic-caller.abilities.json +1 -0
- package/dist/abilities/first-agent.abilities.json +14 -0
- package/dist/abilities/interconnection.abilities.json +17 -1
- package/dist/abilities/office-manager.abilities.json +4 -0
- package/dist/abilities/second-agent.abilities.json +48 -1
- package/dist/abilities/worker-curator.abilities.json +17 -1
- package/dist/actives/actives.contract.d.ts +6959 -6547
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1275 -1173
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.d.ts +102 -102
- package/dist/bookings/backdate-guard.spec.js +24 -32
- package/dist/bookings/bookings.contract.d.ts +9963 -9305
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +2 -16
- package/dist/call-history/call-history.contract.d.ts +1040 -828
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +138 -98
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +18372 -0
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.js +494 -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 +357 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts +10 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-dialpad-call.schemas.js +33 -0
- package/dist/client-contacts/client-contacts.contract.d.ts +622 -622
- package/dist/clients/clients.contract.d.ts +289 -289
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3108 -3004
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +2604 -2507
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/common/callback-slots.d.ts +4 -0
- package/dist/common/callback-slots.d.ts.map +1 -0
- package/dist/common/callback-slots.js +20 -0
- package/dist/common/common-schemas.d.ts +10 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +6 -0
- package/dist/companies/companies.contract.d.ts +120 -120
- package/dist/crews/crews.contract.d.ts +278 -278
- package/dist/cron-executions/cron-executions.contract.d.ts +245 -245
- 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 +3830 -2354
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +73 -7
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +94 -94
- package/dist/curated-worker-leads/contact-history.spec.js +141 -0
- package/dist/curated-worker-leads/job-candidate-cards.spec.js +19 -0
- package/dist/curated-worker-leads/job-candidates.spec.js +179 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +8185 -2106
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +126 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +110 -110
- package/dist/curated-workers/curated-workers.contract.d.ts +2033 -1951
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts +2 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.d.ts.map +1 -0
- package/dist/dashboards/dashboard-widgets.contact-history.spec.js +160 -0
- package/dist/dashboards/dashboard-widgets.contract.d.ts +1027 -284
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +46 -1
- package/dist/dashboards/dashboard.contract.d.ts +8 -8
- package/dist/document-intake/document-intake.contract.d.ts +1145 -1145
- package/dist/export-jobs/export-jobs.contract.d.ts +755 -755
- package/dist/exports-events/exports-events.schemas.d.ts +6 -6
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/jobs/jobs.contract.d.ts +8507 -6044
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +95 -2
- package/dist/jobs/jobs.contract.spec.js +231 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +102 -102
- package/dist/lead-assignments/lead-assignments.contract.d.ts +2985 -1139
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-assignments/lead-assignments.contract.js +102 -2
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts +2 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.d.ts.map +1 -0
- package/dist/lead-assignments/lead-assignments.contract.spec.js +51 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +341 -317
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.d.ts +282 -282
- package/dist/locations/location-enrichment.contract.spec.d.ts +2 -0
- package/dist/locations/location-enrichment.contract.spec.d.ts.map +1 -0
- package/dist/locations/location-enrichment.contract.spec.js +50 -0
- package/dist/locations/locations.contract.d.ts +132 -98
- package/dist/locations/locations.contract.d.ts.map +1 -1
- package/dist/locations/locations.contract.js +10 -0
- package/dist/notifications/notifications.contract.d.ts +579 -107
- package/dist/notifications/notifications.contract.d.ts.map +1 -1
- package/dist/notifications/notifications.contract.js +36 -2
- package/dist/notifications/notifications.contract.spec.d.ts +2 -0
- package/dist/notifications/notifications.contract.spec.d.ts.map +1 -0
- package/dist/notifications/notifications.contract.spec.js +39 -0
- 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 +971 -820
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/own-research/own-research.contract.js +6 -1
- package/dist/proofs/proofs.contract.d.ts +356 -356
- package/dist/proofs/proofs.dtos.d.ts +148 -148
- package/dist/realtime/job-call-priority-updated.d.ts +18 -0
- package/dist/realtime/job-call-priority-updated.d.ts.map +1 -0
- package/dist/realtime/job-call-priority-updated.js +17 -0
- package/dist/shared/summary-schemas.d.ts +36 -27
- package/dist/shared/summary-schemas.d.ts.map +1 -1
- package/dist/shared/summary-schemas.js +7 -0
- package/dist/sheets-sync/sheets-sync.contract.d.ts +683 -683
- package/dist/user-access-grants/user-access-grants.contract.d.ts +216 -216
- package/dist/users/users.contract.d.ts +365 -336
- 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 +150 -150
- package/dist/workers/workers.contract.d.ts +4505 -4261
- 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,33 +99,34 @@ 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;
|
|
106
107
|
firstName: string;
|
|
107
108
|
}[] | undefined;
|
|
108
109
|
} | null | undefined;
|
|
110
|
+
deletedAt?: string | null | undefined;
|
|
109
111
|
canImpersonateUsers?: {
|
|
110
112
|
id: string;
|
|
111
113
|
lastName: string;
|
|
112
114
|
firstName: string;
|
|
113
115
|
}[] | undefined;
|
|
114
|
-
|
|
116
|
+
dialpadUserId?: 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;
|
|
@@ -137,12 +139,13 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
137
139
|
description?: string | null | undefined;
|
|
138
140
|
isPrimary?: boolean | undefined;
|
|
139
141
|
}[] | undefined;
|
|
142
|
+
deletedAt?: string | Date | null | undefined;
|
|
140
143
|
canImpersonateUsers?: {
|
|
141
144
|
id: string;
|
|
142
145
|
lastName: string;
|
|
143
146
|
firstName: string;
|
|
144
147
|
}[] | undefined;
|
|
145
|
-
|
|
148
|
+
dialpadUserId?: string | null | undefined;
|
|
146
149
|
}>>;
|
|
147
150
|
name: z.ZodString;
|
|
148
151
|
phoneNumber: 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,49 +191,50 @@ 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;
|
|
196
199
|
firstName: string;
|
|
197
200
|
}[] | undefined;
|
|
198
201
|
} | null | undefined;
|
|
202
|
+
deletedAt?: string | null | undefined;
|
|
199
203
|
canImpersonateUsers?: {
|
|
200
204
|
id: string;
|
|
201
205
|
lastName: string;
|
|
202
206
|
firstName: string;
|
|
203
207
|
}[] | undefined;
|
|
204
|
-
|
|
208
|
+
dialpadUserId?: 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;
|
|
@@ -243,12 +247,13 @@ export declare const OwnResearchLeadSchema: z.ZodObject<{
|
|
|
243
247
|
description?: string | null | undefined;
|
|
244
248
|
isPrimary?: boolean | undefined;
|
|
245
249
|
}[] | undefined;
|
|
250
|
+
deletedAt?: string | Date | null | undefined;
|
|
246
251
|
canImpersonateUsers?: {
|
|
247
252
|
id: string;
|
|
248
253
|
lastName: string;
|
|
249
254
|
firstName: string;
|
|
250
255
|
}[] | undefined;
|
|
251
|
-
|
|
256
|
+
dialpadUserId?: string | null | undefined;
|
|
252
257
|
} | undefined;
|
|
253
258
|
}>;
|
|
254
259
|
export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
@@ -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,33 +375,34 @@ 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;
|
|
374
383
|
firstName: string;
|
|
375
384
|
}[] | undefined;
|
|
376
385
|
} | null | undefined;
|
|
386
|
+
deletedAt?: string | null | undefined;
|
|
377
387
|
canImpersonateUsers?: {
|
|
378
388
|
id: string;
|
|
379
389
|
lastName: string;
|
|
380
390
|
firstName: string;
|
|
381
391
|
}[] | undefined;
|
|
382
|
-
|
|
392
|
+
dialpadUserId?: 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;
|
|
@@ -405,12 +415,13 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
405
415
|
description?: string | null | undefined;
|
|
406
416
|
isPrimary?: boolean | undefined;
|
|
407
417
|
}[] | undefined;
|
|
418
|
+
deletedAt?: string | Date | null | undefined;
|
|
408
419
|
canImpersonateUsers?: {
|
|
409
420
|
id: string;
|
|
410
421
|
lastName: string;
|
|
411
422
|
firstName: string;
|
|
412
423
|
}[] | undefined;
|
|
413
|
-
|
|
424
|
+
dialpadUserId?: string | null | undefined;
|
|
414
425
|
}>>;
|
|
415
426
|
name: z.ZodString;
|
|
416
427
|
phoneNumber: 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,49 +467,50 @@ 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;
|
|
464
475
|
firstName: string;
|
|
465
476
|
}[] | undefined;
|
|
466
477
|
} | null | undefined;
|
|
478
|
+
deletedAt?: string | null | undefined;
|
|
467
479
|
canImpersonateUsers?: {
|
|
468
480
|
id: string;
|
|
469
481
|
lastName: string;
|
|
470
482
|
firstName: string;
|
|
471
483
|
}[] | undefined;
|
|
472
|
-
|
|
484
|
+
dialpadUserId?: 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;
|
|
@@ -511,12 +523,13 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
511
523
|
description?: string | null | undefined;
|
|
512
524
|
isPrimary?: boolean | undefined;
|
|
513
525
|
}[] | undefined;
|
|
526
|
+
deletedAt?: string | Date | null | undefined;
|
|
514
527
|
canImpersonateUsers?: {
|
|
515
528
|
id: string;
|
|
516
529
|
lastName: string;
|
|
517
530
|
firstName: string;
|
|
518
531
|
}[] | undefined;
|
|
519
|
-
|
|
532
|
+
dialpadUserId?: string | null | undefined;
|
|
520
533
|
} | undefined;
|
|
521
534
|
}>>>;
|
|
522
535
|
isOnCooldown: z.ZodBoolean;
|
|
@@ -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,20 +579,21 @@ 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;
|
|
573
587
|
firstName: string;
|
|
574
588
|
}[] | undefined;
|
|
575
589
|
} | null | undefined;
|
|
590
|
+
deletedAt?: string | null | undefined;
|
|
576
591
|
canImpersonateUsers?: {
|
|
577
592
|
id: string;
|
|
578
593
|
lastName: string;
|
|
579
594
|
firstName: string;
|
|
580
595
|
}[] | undefined;
|
|
581
|
-
|
|
596
|
+
dialpadUserId?: string | null | undefined;
|
|
582
597
|
} | undefined;
|
|
583
598
|
} | null | undefined;
|
|
584
599
|
}, {
|
|
@@ -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;
|
|
@@ -633,12 +649,13 @@ export declare const CheckPhoneResponseSchema: z.ZodObject<{
|
|
|
633
649
|
description?: string | null | undefined;
|
|
634
650
|
isPrimary?: boolean | undefined;
|
|
635
651
|
}[] | undefined;
|
|
652
|
+
deletedAt?: string | Date | null | undefined;
|
|
636
653
|
canImpersonateUsers?: {
|
|
637
654
|
id: string;
|
|
638
655
|
lastName: string;
|
|
639
656
|
firstName: string;
|
|
640
657
|
}[] | undefined;
|
|
641
|
-
|
|
658
|
+
dialpadUserId?: string | null | undefined;
|
|
642
659
|
} | undefined;
|
|
643
660
|
} | null | undefined;
|
|
644
661
|
}>;
|
|
@@ -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,33 +791,34 @@ 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;
|
|
781
799
|
firstName: string;
|
|
782
800
|
}[] | undefined;
|
|
783
801
|
} | null | undefined;
|
|
802
|
+
deletedAt?: string | null | undefined;
|
|
784
803
|
canImpersonateUsers?: {
|
|
785
804
|
id: string;
|
|
786
805
|
lastName: string;
|
|
787
806
|
firstName: string;
|
|
788
807
|
}[] | undefined;
|
|
789
|
-
|
|
808
|
+
dialpadUserId?: 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;
|
|
@@ -812,12 +831,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
812
831
|
description?: string | null | undefined;
|
|
813
832
|
isPrimary?: boolean | undefined;
|
|
814
833
|
}[] | undefined;
|
|
834
|
+
deletedAt?: string | Date | null | undefined;
|
|
815
835
|
canImpersonateUsers?: {
|
|
816
836
|
id: string;
|
|
817
837
|
lastName: string;
|
|
818
838
|
firstName: string;
|
|
819
839
|
}[] | undefined;
|
|
820
|
-
|
|
840
|
+
dialpadUserId?: string | null | undefined;
|
|
821
841
|
}>>;
|
|
822
842
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
823
843
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -829,44 +849,47 @@ 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>;
|
|
864
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
865
|
+
id: z.ZodString;
|
|
866
|
+
dueAt: z.ZodString;
|
|
867
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
868
|
+
}, "strip", z.ZodTypeAny, {
|
|
869
|
+
id: string;
|
|
870
|
+
dueAt: string;
|
|
871
|
+
originNotes: string | null;
|
|
872
|
+
}, {
|
|
873
|
+
id: string;
|
|
874
|
+
dueAt: string;
|
|
875
|
+
originNotes: string | null;
|
|
876
|
+
}>>>;
|
|
844
877
|
}, "strip", z.ZodTypeAny, {
|
|
845
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
846
|
-
id: string;
|
|
847
|
-
updatedAt: string;
|
|
848
878
|
createdAt: string;
|
|
849
|
-
|
|
879
|
+
updatedAt: string;
|
|
880
|
+
id: string;
|
|
881
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
850
882
|
agentId: string | null;
|
|
851
883
|
leadId: string;
|
|
852
884
|
assignedAt: string;
|
|
853
885
|
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;
|
|
886
|
+
companyId: string | null;
|
|
864
887
|
agent?: {
|
|
865
|
-
status: "ACTIVE" | "INACTIVE";
|
|
866
|
-
id: string;
|
|
867
|
-
updatedAt: string;
|
|
868
|
-
createdAt: string;
|
|
869
888
|
email: string;
|
|
889
|
+
createdAt: string;
|
|
890
|
+
updatedAt: string;
|
|
891
|
+
id: string;
|
|
892
|
+
status: "ACTIVE" | "INACTIVE";
|
|
870
893
|
lastName: string;
|
|
871
894
|
firstName: string;
|
|
872
895
|
phoneNumbers: {
|
|
@@ -878,54 +901,60 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
878
901
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
879
902
|
officeId?: string | null | undefined;
|
|
880
903
|
office?: {
|
|
881
|
-
id: string;
|
|
882
904
|
name: string;
|
|
905
|
+
id: string;
|
|
883
906
|
managers?: {
|
|
884
907
|
id: string;
|
|
885
908
|
lastName: string;
|
|
886
909
|
firstName: string;
|
|
887
910
|
}[] | undefined;
|
|
888
911
|
} | null | undefined;
|
|
912
|
+
deletedAt?: string | null | undefined;
|
|
889
913
|
canImpersonateUsers?: {
|
|
890
914
|
id: string;
|
|
891
915
|
lastName: string;
|
|
892
916
|
firstName: string;
|
|
893
917
|
}[] | undefined;
|
|
894
|
-
|
|
918
|
+
dialpadUserId?: string | null | undefined;
|
|
895
919
|
} | undefined;
|
|
920
|
+
lead?: {
|
|
921
|
+
name: string;
|
|
922
|
+
phoneNumber: string;
|
|
923
|
+
} | undefined;
|
|
924
|
+
company?: {
|
|
925
|
+
name: string;
|
|
926
|
+
createdAt: string;
|
|
927
|
+
updatedAt: string;
|
|
928
|
+
id: string;
|
|
929
|
+
} | null | undefined;
|
|
930
|
+
callback?: {
|
|
931
|
+
id: string;
|
|
932
|
+
dueAt: string;
|
|
933
|
+
originNotes: string | null;
|
|
934
|
+
} | null | undefined;
|
|
896
935
|
}, {
|
|
897
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
898
|
-
id: string;
|
|
899
|
-
updatedAt: string | Date;
|
|
900
936
|
createdAt: string | Date;
|
|
901
|
-
|
|
937
|
+
updatedAt: string | Date;
|
|
938
|
+
id: string;
|
|
939
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
902
940
|
agentId: string | null;
|
|
903
941
|
leadId: string;
|
|
904
942
|
assignedAt: string | Date;
|
|
905
943
|
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;
|
|
944
|
+
companyId: string | null;
|
|
916
945
|
agent?: {
|
|
917
|
-
status: "ACTIVE" | "INACTIVE";
|
|
918
|
-
id: string;
|
|
919
|
-
updatedAt: string | Date;
|
|
920
|
-
createdAt: string | Date;
|
|
921
946
|
email: string;
|
|
947
|
+
createdAt: string | Date;
|
|
948
|
+
updatedAt: string | Date;
|
|
949
|
+
id: string;
|
|
950
|
+
status: "ACTIVE" | "INACTIVE";
|
|
922
951
|
lastName: string;
|
|
923
952
|
firstName: string;
|
|
924
953
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
925
954
|
officeId?: string | null | undefined;
|
|
926
955
|
office?: {
|
|
927
|
-
id: string;
|
|
928
956
|
name: string;
|
|
957
|
+
id: string;
|
|
929
958
|
managers?: {
|
|
930
959
|
id: string;
|
|
931
960
|
lastName: string;
|
|
@@ -938,13 +967,29 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
938
967
|
description?: string | null | undefined;
|
|
939
968
|
isPrimary?: boolean | undefined;
|
|
940
969
|
}[] | undefined;
|
|
970
|
+
deletedAt?: string | Date | null | undefined;
|
|
941
971
|
canImpersonateUsers?: {
|
|
942
972
|
id: string;
|
|
943
973
|
lastName: string;
|
|
944
974
|
firstName: string;
|
|
945
975
|
}[] | undefined;
|
|
946
|
-
|
|
976
|
+
dialpadUserId?: string | null | undefined;
|
|
947
977
|
} | undefined;
|
|
978
|
+
lead?: {
|
|
979
|
+
name: string;
|
|
980
|
+
phoneNumber: string;
|
|
981
|
+
} | undefined;
|
|
982
|
+
company?: {
|
|
983
|
+
name: string;
|
|
984
|
+
createdAt: string | Date;
|
|
985
|
+
updatedAt: string | Date;
|
|
986
|
+
id: string;
|
|
987
|
+
} | null | undefined;
|
|
988
|
+
callback?: {
|
|
989
|
+
id: string;
|
|
990
|
+
dueAt: string;
|
|
991
|
+
originNotes: string | null;
|
|
992
|
+
} | null | undefined;
|
|
948
993
|
}>>>;
|
|
949
994
|
ownResearchLead: z.ZodObject<{
|
|
950
995
|
id: z.ZodString;
|
|
@@ -989,16 +1034,16 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
989
1034
|
firstName: string;
|
|
990
1035
|
}>, "many">>;
|
|
991
1036
|
}, "strip", z.ZodTypeAny, {
|
|
992
|
-
id: string;
|
|
993
1037
|
name: string;
|
|
1038
|
+
id: string;
|
|
994
1039
|
managers?: {
|
|
995
1040
|
id: string;
|
|
996
1041
|
lastName: string;
|
|
997
1042
|
firstName: string;
|
|
998
1043
|
}[] | undefined;
|
|
999
1044
|
}, {
|
|
1000
|
-
id: string;
|
|
1001
1045
|
name: string;
|
|
1046
|
+
id: string;
|
|
1002
1047
|
managers?: {
|
|
1003
1048
|
id: string;
|
|
1004
1049
|
lastName: string;
|
|
@@ -1019,15 +1064,16 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1019
1064
|
firstName: string;
|
|
1020
1065
|
}>, "many">>;
|
|
1021
1066
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1067
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1022
1068
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1023
1069
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1024
1070
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1025
1071
|
}, "strip", z.ZodTypeAny, {
|
|
1026
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1027
|
-
id: string;
|
|
1028
|
-
updatedAt: string;
|
|
1029
|
-
createdAt: string;
|
|
1030
1072
|
email: string;
|
|
1073
|
+
createdAt: string;
|
|
1074
|
+
updatedAt: string;
|
|
1075
|
+
id: string;
|
|
1076
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1031
1077
|
lastName: string;
|
|
1032
1078
|
firstName: string;
|
|
1033
1079
|
phoneNumbers: {
|
|
@@ -1039,33 +1085,34 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1039
1085
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1040
1086
|
officeId?: string | null | undefined;
|
|
1041
1087
|
office?: {
|
|
1042
|
-
id: string;
|
|
1043
1088
|
name: string;
|
|
1089
|
+
id: string;
|
|
1044
1090
|
managers?: {
|
|
1045
1091
|
id: string;
|
|
1046
1092
|
lastName: string;
|
|
1047
1093
|
firstName: string;
|
|
1048
1094
|
}[] | undefined;
|
|
1049
1095
|
} | null | undefined;
|
|
1096
|
+
deletedAt?: string | null | undefined;
|
|
1050
1097
|
canImpersonateUsers?: {
|
|
1051
1098
|
id: string;
|
|
1052
1099
|
lastName: string;
|
|
1053
1100
|
firstName: string;
|
|
1054
1101
|
}[] | undefined;
|
|
1055
|
-
|
|
1102
|
+
dialpadUserId?: string | null | undefined;
|
|
1056
1103
|
}, {
|
|
1057
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1058
|
-
id: string;
|
|
1059
|
-
updatedAt: string | Date;
|
|
1060
|
-
createdAt: string | Date;
|
|
1061
1104
|
email: string;
|
|
1105
|
+
createdAt: string | Date;
|
|
1106
|
+
updatedAt: string | Date;
|
|
1107
|
+
id: string;
|
|
1108
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1062
1109
|
lastName: string;
|
|
1063
1110
|
firstName: string;
|
|
1064
1111
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1065
1112
|
officeId?: string | null | undefined;
|
|
1066
1113
|
office?: {
|
|
1067
|
-
id: string;
|
|
1068
1114
|
name: string;
|
|
1115
|
+
id: string;
|
|
1069
1116
|
managers?: {
|
|
1070
1117
|
id: string;
|
|
1071
1118
|
lastName: string;
|
|
@@ -1078,12 +1125,13 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1078
1125
|
description?: string | null | undefined;
|
|
1079
1126
|
isPrimary?: boolean | undefined;
|
|
1080
1127
|
}[] | undefined;
|
|
1128
|
+
deletedAt?: string | Date | null | undefined;
|
|
1081
1129
|
canImpersonateUsers?: {
|
|
1082
1130
|
id: string;
|
|
1083
1131
|
lastName: string;
|
|
1084
1132
|
firstName: string;
|
|
1085
1133
|
}[] | undefined;
|
|
1086
|
-
|
|
1134
|
+
dialpadUserId?: string | null | undefined;
|
|
1087
1135
|
}>>;
|
|
1088
1136
|
name: z.ZodString;
|
|
1089
1137
|
phoneNumber: z.ZodString;
|
|
@@ -1098,26 +1146,26 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1098
1146
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1099
1147
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1100
1148
|
}, "strip", z.ZodTypeAny, {
|
|
1101
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1102
|
-
id: string;
|
|
1103
1149
|
name: string;
|
|
1104
|
-
updatedAt: string;
|
|
1105
1150
|
createdAt: string;
|
|
1106
|
-
|
|
1151
|
+
updatedAt: string;
|
|
1152
|
+
id: string;
|
|
1153
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1107
1154
|
agentId: string;
|
|
1108
1155
|
phoneNumber: string;
|
|
1109
|
-
lastCalledAt: string | null;
|
|
1110
1156
|
callCount: number;
|
|
1157
|
+
lastCalledAt: string | null;
|
|
1158
|
+
cooldownUntil: string | null;
|
|
1159
|
+
blacklistReason: string | null;
|
|
1111
1160
|
lastCallNotes: string | null;
|
|
1112
1161
|
existsInLeadsTable: boolean;
|
|
1113
|
-
cooldownUntil: string | null;
|
|
1114
1162
|
originalLeadId: string | null;
|
|
1115
1163
|
agent?: {
|
|
1116
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1117
|
-
id: string;
|
|
1118
|
-
updatedAt: string;
|
|
1119
|
-
createdAt: string;
|
|
1120
1164
|
email: string;
|
|
1165
|
+
createdAt: string;
|
|
1166
|
+
updatedAt: string;
|
|
1167
|
+
id: string;
|
|
1168
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1121
1169
|
lastName: string;
|
|
1122
1170
|
firstName: string;
|
|
1123
1171
|
phoneNumbers: {
|
|
@@ -1129,49 +1177,50 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1129
1177
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1130
1178
|
officeId?: string | null | undefined;
|
|
1131
1179
|
office?: {
|
|
1132
|
-
id: string;
|
|
1133
1180
|
name: string;
|
|
1181
|
+
id: string;
|
|
1134
1182
|
managers?: {
|
|
1135
1183
|
id: string;
|
|
1136
1184
|
lastName: string;
|
|
1137
1185
|
firstName: string;
|
|
1138
1186
|
}[] | undefined;
|
|
1139
1187
|
} | null | undefined;
|
|
1188
|
+
deletedAt?: string | null | undefined;
|
|
1140
1189
|
canImpersonateUsers?: {
|
|
1141
1190
|
id: string;
|
|
1142
1191
|
lastName: string;
|
|
1143
1192
|
firstName: string;
|
|
1144
1193
|
}[] | undefined;
|
|
1145
|
-
|
|
1194
|
+
dialpadUserId?: string | null | undefined;
|
|
1146
1195
|
} | undefined;
|
|
1147
1196
|
}, {
|
|
1148
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1149
|
-
id: string;
|
|
1150
1197
|
name: string;
|
|
1151
|
-
updatedAt: string | Date;
|
|
1152
1198
|
createdAt: string | Date;
|
|
1153
|
-
|
|
1199
|
+
updatedAt: string | Date;
|
|
1200
|
+
id: string;
|
|
1201
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1154
1202
|
agentId: string;
|
|
1155
1203
|
phoneNumber: string;
|
|
1156
|
-
lastCalledAt: string | Date | null;
|
|
1157
1204
|
callCount: number;
|
|
1205
|
+
lastCalledAt: string | Date | null;
|
|
1206
|
+
cooldownUntil: string | Date | null;
|
|
1207
|
+
blacklistReason: string | null;
|
|
1158
1208
|
lastCallNotes: string | null;
|
|
1159
1209
|
existsInLeadsTable: boolean;
|
|
1160
|
-
cooldownUntil: string | Date | null;
|
|
1161
1210
|
originalLeadId: string | null;
|
|
1162
1211
|
agent?: {
|
|
1163
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1164
|
-
id: string;
|
|
1165
|
-
updatedAt: string | Date;
|
|
1166
|
-
createdAt: string | Date;
|
|
1167
1212
|
email: string;
|
|
1213
|
+
createdAt: string | Date;
|
|
1214
|
+
updatedAt: string | Date;
|
|
1215
|
+
id: string;
|
|
1216
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1168
1217
|
lastName: string;
|
|
1169
1218
|
firstName: string;
|
|
1170
1219
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1171
1220
|
officeId?: string | null | undefined;
|
|
1172
1221
|
office?: {
|
|
1173
|
-
id: string;
|
|
1174
1222
|
name: string;
|
|
1223
|
+
id: string;
|
|
1175
1224
|
managers?: {
|
|
1176
1225
|
id: string;
|
|
1177
1226
|
lastName: string;
|
|
@@ -1184,36 +1233,37 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1184
1233
|
description?: string | null | undefined;
|
|
1185
1234
|
isPrimary?: boolean | undefined;
|
|
1186
1235
|
}[] | undefined;
|
|
1236
|
+
deletedAt?: string | Date | null | undefined;
|
|
1187
1237
|
canImpersonateUsers?: {
|
|
1188
1238
|
id: string;
|
|
1189
1239
|
lastName: string;
|
|
1190
1240
|
firstName: string;
|
|
1191
1241
|
}[] | undefined;
|
|
1192
|
-
|
|
1242
|
+
dialpadUserId?: string | null | undefined;
|
|
1193
1243
|
} | undefined;
|
|
1194
1244
|
}>;
|
|
1195
1245
|
}, "strip", z.ZodTypeAny, {
|
|
1196
1246
|
ownResearchLead: {
|
|
1197
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1198
|
-
id: string;
|
|
1199
1247
|
name: string;
|
|
1200
|
-
updatedAt: string;
|
|
1201
1248
|
createdAt: string;
|
|
1202
|
-
|
|
1249
|
+
updatedAt: string;
|
|
1250
|
+
id: string;
|
|
1251
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1203
1252
|
agentId: string;
|
|
1204
1253
|
phoneNumber: string;
|
|
1205
|
-
lastCalledAt: string | null;
|
|
1206
1254
|
callCount: number;
|
|
1255
|
+
lastCalledAt: string | null;
|
|
1256
|
+
cooldownUntil: string | null;
|
|
1257
|
+
blacklistReason: string | null;
|
|
1207
1258
|
lastCallNotes: string | null;
|
|
1208
1259
|
existsInLeadsTable: boolean;
|
|
1209
|
-
cooldownUntil: string | null;
|
|
1210
1260
|
originalLeadId: string | null;
|
|
1211
1261
|
agent?: {
|
|
1212
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1213
|
-
id: string;
|
|
1214
|
-
updatedAt: string;
|
|
1215
|
-
createdAt: string;
|
|
1216
1262
|
email: string;
|
|
1263
|
+
createdAt: string;
|
|
1264
|
+
updatedAt: string;
|
|
1265
|
+
id: string;
|
|
1266
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1217
1267
|
lastName: string;
|
|
1218
1268
|
firstName: string;
|
|
1219
1269
|
phoneNumbers: {
|
|
@@ -1225,48 +1275,39 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1225
1275
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1226
1276
|
officeId?: string | null | undefined;
|
|
1227
1277
|
office?: {
|
|
1228
|
-
id: string;
|
|
1229
1278
|
name: string;
|
|
1279
|
+
id: string;
|
|
1230
1280
|
managers?: {
|
|
1231
1281
|
id: string;
|
|
1232
1282
|
lastName: string;
|
|
1233
1283
|
firstName: string;
|
|
1234
1284
|
}[] | undefined;
|
|
1235
1285
|
} | null | undefined;
|
|
1286
|
+
deletedAt?: string | null | undefined;
|
|
1236
1287
|
canImpersonateUsers?: {
|
|
1237
1288
|
id: string;
|
|
1238
1289
|
lastName: string;
|
|
1239
1290
|
firstName: string;
|
|
1240
1291
|
}[] | undefined;
|
|
1241
|
-
|
|
1292
|
+
dialpadUserId?: string | null | undefined;
|
|
1242
1293
|
} | undefined;
|
|
1243
1294
|
};
|
|
1244
1295
|
assignment?: {
|
|
1245
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1246
|
-
id: string;
|
|
1247
|
-
updatedAt: string;
|
|
1248
1296
|
createdAt: string;
|
|
1249
|
-
|
|
1297
|
+
updatedAt: string;
|
|
1298
|
+
id: string;
|
|
1299
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1250
1300
|
agentId: string | null;
|
|
1251
1301
|
leadId: string;
|
|
1252
1302
|
assignedAt: string;
|
|
1253
1303
|
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;
|
|
1304
|
+
companyId: string | null;
|
|
1264
1305
|
agent?: {
|
|
1265
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1266
|
-
id: string;
|
|
1267
|
-
updatedAt: string;
|
|
1268
|
-
createdAt: string;
|
|
1269
1306
|
email: string;
|
|
1307
|
+
createdAt: string;
|
|
1308
|
+
updatedAt: string;
|
|
1309
|
+
id: string;
|
|
1310
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1270
1311
|
lastName: string;
|
|
1271
1312
|
firstName: string;
|
|
1272
1313
|
phoneNumbers: {
|
|
@@ -1278,51 +1319,67 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1278
1319
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1279
1320
|
officeId?: string | null | undefined;
|
|
1280
1321
|
office?: {
|
|
1281
|
-
id: string;
|
|
1282
1322
|
name: string;
|
|
1323
|
+
id: string;
|
|
1283
1324
|
managers?: {
|
|
1284
1325
|
id: string;
|
|
1285
1326
|
lastName: string;
|
|
1286
1327
|
firstName: string;
|
|
1287
1328
|
}[] | undefined;
|
|
1288
1329
|
} | null | undefined;
|
|
1330
|
+
deletedAt?: string | null | undefined;
|
|
1289
1331
|
canImpersonateUsers?: {
|
|
1290
1332
|
id: string;
|
|
1291
1333
|
lastName: string;
|
|
1292
1334
|
firstName: string;
|
|
1293
1335
|
}[] | undefined;
|
|
1294
|
-
|
|
1336
|
+
dialpadUserId?: string | null | undefined;
|
|
1295
1337
|
} | undefined;
|
|
1338
|
+
lead?: {
|
|
1339
|
+
name: string;
|
|
1340
|
+
phoneNumber: string;
|
|
1341
|
+
} | undefined;
|
|
1342
|
+
company?: {
|
|
1343
|
+
name: string;
|
|
1344
|
+
createdAt: string;
|
|
1345
|
+
updatedAt: string;
|
|
1346
|
+
id: string;
|
|
1347
|
+
} | null | undefined;
|
|
1348
|
+
callback?: {
|
|
1349
|
+
id: string;
|
|
1350
|
+
dueAt: string;
|
|
1351
|
+
originNotes: string | null;
|
|
1352
|
+
} | null | undefined;
|
|
1296
1353
|
} | null | undefined;
|
|
1297
1354
|
}, {
|
|
1298
1355
|
ownResearchLead: {
|
|
1299
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1300
|
-
id: string;
|
|
1301
1356
|
name: string;
|
|
1302
|
-
updatedAt: string | Date;
|
|
1303
1357
|
createdAt: string | Date;
|
|
1304
|
-
|
|
1358
|
+
updatedAt: string | Date;
|
|
1359
|
+
id: string;
|
|
1360
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1305
1361
|
agentId: string;
|
|
1306
1362
|
phoneNumber: string;
|
|
1307
|
-
lastCalledAt: string | Date | null;
|
|
1308
1363
|
callCount: number;
|
|
1364
|
+
lastCalledAt: string | Date | null;
|
|
1365
|
+
cooldownUntil: string | Date | null;
|
|
1366
|
+
blacklistReason: string | null;
|
|
1309
1367
|
lastCallNotes: string | null;
|
|
1310
1368
|
existsInLeadsTable: boolean;
|
|
1311
|
-
cooldownUntil: string | Date | null;
|
|
1312
1369
|
originalLeadId: string | null;
|
|
1313
1370
|
agent?: {
|
|
1314
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1315
|
-
id: string;
|
|
1316
|
-
updatedAt: string | Date;
|
|
1317
|
-
createdAt: string | Date;
|
|
1318
1371
|
email: string;
|
|
1372
|
+
createdAt: string | Date;
|
|
1373
|
+
updatedAt: string | Date;
|
|
1374
|
+
id: string;
|
|
1375
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1319
1376
|
lastName: string;
|
|
1320
1377
|
firstName: string;
|
|
1321
1378
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1322
1379
|
officeId?: string | null | undefined;
|
|
1323
1380
|
office?: {
|
|
1324
|
-
id: string;
|
|
1325
1381
|
name: string;
|
|
1382
|
+
id: string;
|
|
1326
1383
|
managers?: {
|
|
1327
1384
|
id: string;
|
|
1328
1385
|
lastName: string;
|
|
@@ -1335,47 +1392,38 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1335
1392
|
description?: string | null | undefined;
|
|
1336
1393
|
isPrimary?: boolean | undefined;
|
|
1337
1394
|
}[] | undefined;
|
|
1395
|
+
deletedAt?: string | Date | null | undefined;
|
|
1338
1396
|
canImpersonateUsers?: {
|
|
1339
1397
|
id: string;
|
|
1340
1398
|
lastName: string;
|
|
1341
1399
|
firstName: string;
|
|
1342
1400
|
}[] | undefined;
|
|
1343
|
-
|
|
1401
|
+
dialpadUserId?: string | null | undefined;
|
|
1344
1402
|
} | undefined;
|
|
1345
1403
|
};
|
|
1346
1404
|
assignment?: {
|
|
1347
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1348
|
-
id: string;
|
|
1349
|
-
updatedAt: string | Date;
|
|
1350
1405
|
createdAt: string | Date;
|
|
1351
|
-
|
|
1406
|
+
updatedAt: string | Date;
|
|
1407
|
+
id: string;
|
|
1408
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1352
1409
|
agentId: string | null;
|
|
1353
1410
|
leadId: string;
|
|
1354
1411
|
assignedAt: string | Date;
|
|
1355
1412
|
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;
|
|
1413
|
+
companyId: string | null;
|
|
1366
1414
|
agent?: {
|
|
1367
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1368
|
-
id: string;
|
|
1369
|
-
updatedAt: string | Date;
|
|
1370
|
-
createdAt: string | Date;
|
|
1371
1415
|
email: string;
|
|
1416
|
+
createdAt: string | Date;
|
|
1417
|
+
updatedAt: string | Date;
|
|
1418
|
+
id: string;
|
|
1419
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1372
1420
|
lastName: string;
|
|
1373
1421
|
firstName: string;
|
|
1374
1422
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1375
1423
|
officeId?: string | null | undefined;
|
|
1376
1424
|
office?: {
|
|
1377
|
-
id: string;
|
|
1378
1425
|
name: string;
|
|
1426
|
+
id: string;
|
|
1379
1427
|
managers?: {
|
|
1380
1428
|
id: string;
|
|
1381
1429
|
lastName: string;
|
|
@@ -1388,13 +1436,29 @@ export declare const RecordOwnResearchCallResponseSchema: z.ZodObject<{
|
|
|
1388
1436
|
description?: string | null | undefined;
|
|
1389
1437
|
isPrimary?: boolean | undefined;
|
|
1390
1438
|
}[] | undefined;
|
|
1439
|
+
deletedAt?: string | Date | null | undefined;
|
|
1391
1440
|
canImpersonateUsers?: {
|
|
1392
1441
|
id: string;
|
|
1393
1442
|
lastName: string;
|
|
1394
1443
|
firstName: string;
|
|
1395
1444
|
}[] | undefined;
|
|
1396
|
-
|
|
1445
|
+
dialpadUserId?: string | null | undefined;
|
|
1397
1446
|
} | undefined;
|
|
1447
|
+
lead?: {
|
|
1448
|
+
name: string;
|
|
1449
|
+
phoneNumber: string;
|
|
1450
|
+
} | undefined;
|
|
1451
|
+
company?: {
|
|
1452
|
+
name: string;
|
|
1453
|
+
createdAt: string | Date;
|
|
1454
|
+
updatedAt: string | Date;
|
|
1455
|
+
id: string;
|
|
1456
|
+
} | null | undefined;
|
|
1457
|
+
callback?: {
|
|
1458
|
+
id: string;
|
|
1459
|
+
dueAt: string;
|
|
1460
|
+
originNotes: string | null;
|
|
1461
|
+
} | null | undefined;
|
|
1398
1462
|
} | null | undefined;
|
|
1399
1463
|
}>;
|
|
1400
1464
|
export declare const AddOwnResearchLeadSchema: z.ZodObject<{
|
|
@@ -1451,16 +1515,16 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1451
1515
|
firstName: string;
|
|
1452
1516
|
}>, "many">>;
|
|
1453
1517
|
}, "strip", z.ZodTypeAny, {
|
|
1454
|
-
id: string;
|
|
1455
1518
|
name: string;
|
|
1519
|
+
id: string;
|
|
1456
1520
|
managers?: {
|
|
1457
1521
|
id: string;
|
|
1458
1522
|
lastName: string;
|
|
1459
1523
|
firstName: string;
|
|
1460
1524
|
}[] | undefined;
|
|
1461
1525
|
}, {
|
|
1462
|
-
id: string;
|
|
1463
1526
|
name: string;
|
|
1527
|
+
id: string;
|
|
1464
1528
|
managers?: {
|
|
1465
1529
|
id: string;
|
|
1466
1530
|
lastName: string;
|
|
@@ -1481,15 +1545,16 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1481
1545
|
firstName: string;
|
|
1482
1546
|
}>, "many">>;
|
|
1483
1547
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1548
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1484
1549
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1485
1550
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1486
1551
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1487
1552
|
}, "strip", z.ZodTypeAny, {
|
|
1488
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1489
|
-
id: string;
|
|
1490
|
-
updatedAt: string;
|
|
1491
|
-
createdAt: string;
|
|
1492
1553
|
email: string;
|
|
1554
|
+
createdAt: string;
|
|
1555
|
+
updatedAt: string;
|
|
1556
|
+
id: string;
|
|
1557
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1493
1558
|
lastName: string;
|
|
1494
1559
|
firstName: string;
|
|
1495
1560
|
phoneNumbers: {
|
|
@@ -1501,33 +1566,34 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1501
1566
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1502
1567
|
officeId?: string | null | undefined;
|
|
1503
1568
|
office?: {
|
|
1504
|
-
id: string;
|
|
1505
1569
|
name: string;
|
|
1570
|
+
id: string;
|
|
1506
1571
|
managers?: {
|
|
1507
1572
|
id: string;
|
|
1508
1573
|
lastName: string;
|
|
1509
1574
|
firstName: string;
|
|
1510
1575
|
}[] | undefined;
|
|
1511
1576
|
} | null | undefined;
|
|
1577
|
+
deletedAt?: string | null | undefined;
|
|
1512
1578
|
canImpersonateUsers?: {
|
|
1513
1579
|
id: string;
|
|
1514
1580
|
lastName: string;
|
|
1515
1581
|
firstName: string;
|
|
1516
1582
|
}[] | undefined;
|
|
1517
|
-
|
|
1583
|
+
dialpadUserId?: string | null | undefined;
|
|
1518
1584
|
}, {
|
|
1519
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1520
|
-
id: string;
|
|
1521
|
-
updatedAt: string | Date;
|
|
1522
|
-
createdAt: string | Date;
|
|
1523
1585
|
email: string;
|
|
1586
|
+
createdAt: string | Date;
|
|
1587
|
+
updatedAt: string | Date;
|
|
1588
|
+
id: string;
|
|
1589
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1524
1590
|
lastName: string;
|
|
1525
1591
|
firstName: string;
|
|
1526
1592
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1527
1593
|
officeId?: string | null | undefined;
|
|
1528
1594
|
office?: {
|
|
1529
|
-
id: string;
|
|
1530
1595
|
name: string;
|
|
1596
|
+
id: string;
|
|
1531
1597
|
managers?: {
|
|
1532
1598
|
id: string;
|
|
1533
1599
|
lastName: string;
|
|
@@ -1540,12 +1606,13 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1540
1606
|
description?: string | null | undefined;
|
|
1541
1607
|
isPrimary?: boolean | undefined;
|
|
1542
1608
|
}[] | undefined;
|
|
1609
|
+
deletedAt?: string | Date | null | undefined;
|
|
1543
1610
|
canImpersonateUsers?: {
|
|
1544
1611
|
id: string;
|
|
1545
1612
|
lastName: string;
|
|
1546
1613
|
firstName: string;
|
|
1547
1614
|
}[] | undefined;
|
|
1548
|
-
|
|
1615
|
+
dialpadUserId?: string | null | undefined;
|
|
1549
1616
|
}>>;
|
|
1550
1617
|
name: z.ZodString;
|
|
1551
1618
|
phoneNumber: z.ZodString;
|
|
@@ -1560,26 +1627,26 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1560
1627
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1561
1628
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1562
1629
|
}, "strip", z.ZodTypeAny, {
|
|
1563
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1564
|
-
id: string;
|
|
1565
1630
|
name: string;
|
|
1566
|
-
updatedAt: string;
|
|
1567
1631
|
createdAt: string;
|
|
1568
|
-
|
|
1632
|
+
updatedAt: string;
|
|
1633
|
+
id: string;
|
|
1634
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1569
1635
|
agentId: string;
|
|
1570
1636
|
phoneNumber: string;
|
|
1571
|
-
lastCalledAt: string | null;
|
|
1572
1637
|
callCount: number;
|
|
1638
|
+
lastCalledAt: string | null;
|
|
1639
|
+
cooldownUntil: string | null;
|
|
1640
|
+
blacklistReason: string | null;
|
|
1573
1641
|
lastCallNotes: string | null;
|
|
1574
1642
|
existsInLeadsTable: boolean;
|
|
1575
|
-
cooldownUntil: string | null;
|
|
1576
1643
|
originalLeadId: string | null;
|
|
1577
1644
|
agent?: {
|
|
1578
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1579
|
-
id: string;
|
|
1580
|
-
updatedAt: string;
|
|
1581
|
-
createdAt: string;
|
|
1582
1645
|
email: string;
|
|
1646
|
+
createdAt: string;
|
|
1647
|
+
updatedAt: string;
|
|
1648
|
+
id: string;
|
|
1649
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1583
1650
|
lastName: string;
|
|
1584
1651
|
firstName: string;
|
|
1585
1652
|
phoneNumbers: {
|
|
@@ -1591,49 +1658,50 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1591
1658
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1592
1659
|
officeId?: string | null | undefined;
|
|
1593
1660
|
office?: {
|
|
1594
|
-
id: string;
|
|
1595
1661
|
name: string;
|
|
1662
|
+
id: string;
|
|
1596
1663
|
managers?: {
|
|
1597
1664
|
id: string;
|
|
1598
1665
|
lastName: string;
|
|
1599
1666
|
firstName: string;
|
|
1600
1667
|
}[] | undefined;
|
|
1601
1668
|
} | null | undefined;
|
|
1669
|
+
deletedAt?: string | null | undefined;
|
|
1602
1670
|
canImpersonateUsers?: {
|
|
1603
1671
|
id: string;
|
|
1604
1672
|
lastName: string;
|
|
1605
1673
|
firstName: string;
|
|
1606
1674
|
}[] | undefined;
|
|
1607
|
-
|
|
1675
|
+
dialpadUserId?: string | null | undefined;
|
|
1608
1676
|
} | undefined;
|
|
1609
1677
|
}, {
|
|
1610
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1611
|
-
id: string;
|
|
1612
1678
|
name: string;
|
|
1613
|
-
updatedAt: string | Date;
|
|
1614
1679
|
createdAt: string | Date;
|
|
1615
|
-
|
|
1680
|
+
updatedAt: string | Date;
|
|
1681
|
+
id: string;
|
|
1682
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1616
1683
|
agentId: string;
|
|
1617
1684
|
phoneNumber: string;
|
|
1618
|
-
lastCalledAt: string | Date | null;
|
|
1619
1685
|
callCount: number;
|
|
1686
|
+
lastCalledAt: string | Date | null;
|
|
1687
|
+
cooldownUntil: string | Date | null;
|
|
1688
|
+
blacklistReason: string | null;
|
|
1620
1689
|
lastCallNotes: string | null;
|
|
1621
1690
|
existsInLeadsTable: boolean;
|
|
1622
|
-
cooldownUntil: string | Date | null;
|
|
1623
1691
|
originalLeadId: string | null;
|
|
1624
1692
|
agent?: {
|
|
1625
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1626
|
-
id: string;
|
|
1627
|
-
updatedAt: string | Date;
|
|
1628
|
-
createdAt: string | Date;
|
|
1629
1693
|
email: string;
|
|
1694
|
+
createdAt: string | Date;
|
|
1695
|
+
updatedAt: string | Date;
|
|
1696
|
+
id: string;
|
|
1697
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1630
1698
|
lastName: string;
|
|
1631
1699
|
firstName: string;
|
|
1632
1700
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1633
1701
|
officeId?: string | null | undefined;
|
|
1634
1702
|
office?: {
|
|
1635
|
-
id: string;
|
|
1636
1703
|
name: string;
|
|
1704
|
+
id: string;
|
|
1637
1705
|
managers?: {
|
|
1638
1706
|
id: string;
|
|
1639
1707
|
lastName: string;
|
|
@@ -1646,36 +1714,37 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1646
1714
|
description?: string | null | undefined;
|
|
1647
1715
|
isPrimary?: boolean | undefined;
|
|
1648
1716
|
}[] | undefined;
|
|
1717
|
+
deletedAt?: string | Date | null | undefined;
|
|
1649
1718
|
canImpersonateUsers?: {
|
|
1650
1719
|
id: string;
|
|
1651
1720
|
lastName: string;
|
|
1652
1721
|
firstName: string;
|
|
1653
1722
|
}[] | undefined;
|
|
1654
|
-
|
|
1723
|
+
dialpadUserId?: string | null | undefined;
|
|
1655
1724
|
} | undefined;
|
|
1656
1725
|
}>;
|
|
1657
1726
|
}, "strip", z.ZodTypeAny, {
|
|
1658
1727
|
ownResearchLead: {
|
|
1659
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1660
|
-
id: string;
|
|
1661
1728
|
name: string;
|
|
1662
|
-
updatedAt: string;
|
|
1663
1729
|
createdAt: string;
|
|
1664
|
-
|
|
1730
|
+
updatedAt: string;
|
|
1731
|
+
id: string;
|
|
1732
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1665
1733
|
agentId: string;
|
|
1666
1734
|
phoneNumber: string;
|
|
1667
|
-
lastCalledAt: string | null;
|
|
1668
1735
|
callCount: number;
|
|
1736
|
+
lastCalledAt: string | null;
|
|
1737
|
+
cooldownUntil: string | null;
|
|
1738
|
+
blacklistReason: string | null;
|
|
1669
1739
|
lastCallNotes: string | null;
|
|
1670
1740
|
existsInLeadsTable: boolean;
|
|
1671
|
-
cooldownUntil: string | null;
|
|
1672
1741
|
originalLeadId: string | null;
|
|
1673
1742
|
agent?: {
|
|
1674
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1675
|
-
id: string;
|
|
1676
|
-
updatedAt: string;
|
|
1677
|
-
createdAt: string;
|
|
1678
1743
|
email: string;
|
|
1744
|
+
createdAt: string;
|
|
1745
|
+
updatedAt: string;
|
|
1746
|
+
id: string;
|
|
1747
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1679
1748
|
lastName: string;
|
|
1680
1749
|
firstName: string;
|
|
1681
1750
|
phoneNumbers: {
|
|
@@ -1687,51 +1756,52 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1687
1756
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1688
1757
|
officeId?: string | null | undefined;
|
|
1689
1758
|
office?: {
|
|
1690
|
-
id: string;
|
|
1691
1759
|
name: string;
|
|
1760
|
+
id: string;
|
|
1692
1761
|
managers?: {
|
|
1693
1762
|
id: string;
|
|
1694
1763
|
lastName: string;
|
|
1695
1764
|
firstName: string;
|
|
1696
1765
|
}[] | undefined;
|
|
1697
1766
|
} | null | undefined;
|
|
1767
|
+
deletedAt?: string | null | undefined;
|
|
1698
1768
|
canImpersonateUsers?: {
|
|
1699
1769
|
id: string;
|
|
1700
1770
|
lastName: string;
|
|
1701
1771
|
firstName: string;
|
|
1702
1772
|
}[] | undefined;
|
|
1703
|
-
|
|
1773
|
+
dialpadUserId?: string | null | undefined;
|
|
1704
1774
|
} | undefined;
|
|
1705
1775
|
};
|
|
1706
1776
|
}, {
|
|
1707
1777
|
ownResearchLead: {
|
|
1708
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1709
|
-
id: string;
|
|
1710
1778
|
name: string;
|
|
1711
|
-
updatedAt: string | Date;
|
|
1712
1779
|
createdAt: string | Date;
|
|
1713
|
-
|
|
1780
|
+
updatedAt: string | Date;
|
|
1781
|
+
id: string;
|
|
1782
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1714
1783
|
agentId: string;
|
|
1715
1784
|
phoneNumber: string;
|
|
1716
|
-
lastCalledAt: string | Date | null;
|
|
1717
1785
|
callCount: number;
|
|
1786
|
+
lastCalledAt: string | Date | null;
|
|
1787
|
+
cooldownUntil: string | Date | null;
|
|
1788
|
+
blacklistReason: string | null;
|
|
1718
1789
|
lastCallNotes: string | null;
|
|
1719
1790
|
existsInLeadsTable: boolean;
|
|
1720
|
-
cooldownUntil: string | Date | null;
|
|
1721
1791
|
originalLeadId: string | null;
|
|
1722
1792
|
agent?: {
|
|
1723
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1724
|
-
id: string;
|
|
1725
|
-
updatedAt: string | Date;
|
|
1726
|
-
createdAt: string | Date;
|
|
1727
1793
|
email: string;
|
|
1794
|
+
createdAt: string | Date;
|
|
1795
|
+
updatedAt: string | Date;
|
|
1796
|
+
id: string;
|
|
1797
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1728
1798
|
lastName: string;
|
|
1729
1799
|
firstName: string;
|
|
1730
1800
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1731
1801
|
officeId?: string | null | undefined;
|
|
1732
1802
|
office?: {
|
|
1733
|
-
id: string;
|
|
1734
1803
|
name: string;
|
|
1804
|
+
id: string;
|
|
1735
1805
|
managers?: {
|
|
1736
1806
|
id: string;
|
|
1737
1807
|
lastName: string;
|
|
@@ -1744,12 +1814,13 @@ export declare const AddOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1744
1814
|
description?: string | null | undefined;
|
|
1745
1815
|
isPrimary?: boolean | undefined;
|
|
1746
1816
|
}[] | undefined;
|
|
1817
|
+
deletedAt?: string | Date | null | undefined;
|
|
1747
1818
|
canImpersonateUsers?: {
|
|
1748
1819
|
id: string;
|
|
1749
1820
|
lastName: string;
|
|
1750
1821
|
firstName: string;
|
|
1751
1822
|
}[] | undefined;
|
|
1752
|
-
|
|
1823
|
+
dialpadUserId?: string | null | undefined;
|
|
1753
1824
|
} | undefined;
|
|
1754
1825
|
};
|
|
1755
1826
|
}>;
|
|
@@ -1790,29 +1861,29 @@ export declare const FilterOwnResearchLeadSchema: z.ZodObject<{
|
|
|
1790
1861
|
}, "strip", z.ZodTypeAny, {
|
|
1791
1862
|
page: number;
|
|
1792
1863
|
limit: number;
|
|
1793
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED" | undefined;
|
|
1794
1864
|
name?: string | undefined;
|
|
1865
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1795
1866
|
phoneNumber?: string | undefined;
|
|
1867
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1868
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1796
1869
|
lastCalledAt?: {
|
|
1797
1870
|
from?: string | null | undefined;
|
|
1798
1871
|
to?: string | null | undefined;
|
|
1799
1872
|
} | undefined;
|
|
1800
1873
|
minTotalCalls?: number | undefined;
|
|
1801
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
1802
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1803
1874
|
}, {
|
|
1804
|
-
|
|
1875
|
+
name?: string | undefined;
|
|
1805
1876
|
page?: number | undefined;
|
|
1806
1877
|
limit?: number | undefined;
|
|
1807
|
-
|
|
1878
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
1808
1879
|
phoneNumber?: string | undefined;
|
|
1880
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
1881
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1809
1882
|
lastCalledAt?: {
|
|
1810
1883
|
from?: string | null | undefined;
|
|
1811
1884
|
to?: string | null | undefined;
|
|
1812
1885
|
} | undefined;
|
|
1813
1886
|
minTotalCalls?: number | undefined;
|
|
1814
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
1815
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1816
1887
|
}>;
|
|
1817
1888
|
export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
1818
1889
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -1858,16 +1929,16 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1858
1929
|
firstName: string;
|
|
1859
1930
|
}>, "many">>;
|
|
1860
1931
|
}, "strip", z.ZodTypeAny, {
|
|
1861
|
-
id: string;
|
|
1862
1932
|
name: string;
|
|
1933
|
+
id: string;
|
|
1863
1934
|
managers?: {
|
|
1864
1935
|
id: string;
|
|
1865
1936
|
lastName: string;
|
|
1866
1937
|
firstName: string;
|
|
1867
1938
|
}[] | undefined;
|
|
1868
1939
|
}, {
|
|
1869
|
-
id: string;
|
|
1870
1940
|
name: string;
|
|
1941
|
+
id: string;
|
|
1871
1942
|
managers?: {
|
|
1872
1943
|
id: string;
|
|
1873
1944
|
lastName: string;
|
|
@@ -1888,15 +1959,16 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1888
1959
|
firstName: string;
|
|
1889
1960
|
}>, "many">>;
|
|
1890
1961
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1962
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
1891
1963
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1892
1964
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1893
1965
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1894
1966
|
}, "strip", z.ZodTypeAny, {
|
|
1895
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1896
|
-
id: string;
|
|
1897
|
-
updatedAt: string;
|
|
1898
|
-
createdAt: string;
|
|
1899
1967
|
email: string;
|
|
1968
|
+
createdAt: string;
|
|
1969
|
+
updatedAt: string;
|
|
1970
|
+
id: string;
|
|
1971
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1900
1972
|
lastName: string;
|
|
1901
1973
|
firstName: string;
|
|
1902
1974
|
phoneNumbers: {
|
|
@@ -1908,33 +1980,34 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1908
1980
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1909
1981
|
officeId?: string | null | undefined;
|
|
1910
1982
|
office?: {
|
|
1911
|
-
id: string;
|
|
1912
1983
|
name: string;
|
|
1984
|
+
id: string;
|
|
1913
1985
|
managers?: {
|
|
1914
1986
|
id: string;
|
|
1915
1987
|
lastName: string;
|
|
1916
1988
|
firstName: string;
|
|
1917
1989
|
}[] | undefined;
|
|
1918
1990
|
} | null | undefined;
|
|
1991
|
+
deletedAt?: string | null | undefined;
|
|
1919
1992
|
canImpersonateUsers?: {
|
|
1920
1993
|
id: string;
|
|
1921
1994
|
lastName: string;
|
|
1922
1995
|
firstName: string;
|
|
1923
1996
|
}[] | undefined;
|
|
1924
|
-
|
|
1997
|
+
dialpadUserId?: string | null | undefined;
|
|
1925
1998
|
}, {
|
|
1926
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1927
|
-
id: string;
|
|
1928
|
-
updatedAt: string | Date;
|
|
1929
|
-
createdAt: string | Date;
|
|
1930
1999
|
email: string;
|
|
2000
|
+
createdAt: string | Date;
|
|
2001
|
+
updatedAt: string | Date;
|
|
2002
|
+
id: string;
|
|
2003
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1931
2004
|
lastName: string;
|
|
1932
2005
|
firstName: string;
|
|
1933
2006
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1934
2007
|
officeId?: string | null | undefined;
|
|
1935
2008
|
office?: {
|
|
1936
|
-
id: string;
|
|
1937
2009
|
name: string;
|
|
2010
|
+
id: string;
|
|
1938
2011
|
managers?: {
|
|
1939
2012
|
id: string;
|
|
1940
2013
|
lastName: string;
|
|
@@ -1947,12 +2020,13 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1947
2020
|
description?: string | null | undefined;
|
|
1948
2021
|
isPrimary?: boolean | undefined;
|
|
1949
2022
|
}[] | undefined;
|
|
2023
|
+
deletedAt?: string | Date | null | undefined;
|
|
1950
2024
|
canImpersonateUsers?: {
|
|
1951
2025
|
id: string;
|
|
1952
2026
|
lastName: string;
|
|
1953
2027
|
firstName: string;
|
|
1954
2028
|
}[] | undefined;
|
|
1955
|
-
|
|
2029
|
+
dialpadUserId?: string | null | undefined;
|
|
1956
2030
|
}>>;
|
|
1957
2031
|
name: z.ZodString;
|
|
1958
2032
|
phoneNumber: z.ZodString;
|
|
@@ -1967,26 +2041,26 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1967
2041
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1968
2042
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1969
2043
|
}, "strip", z.ZodTypeAny, {
|
|
1970
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
1971
|
-
id: string;
|
|
1972
2044
|
name: string;
|
|
1973
|
-
updatedAt: string;
|
|
1974
2045
|
createdAt: string;
|
|
1975
|
-
|
|
2046
|
+
updatedAt: string;
|
|
2047
|
+
id: string;
|
|
2048
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
1976
2049
|
agentId: string;
|
|
1977
2050
|
phoneNumber: string;
|
|
1978
|
-
lastCalledAt: string | null;
|
|
1979
2051
|
callCount: number;
|
|
2052
|
+
lastCalledAt: string | null;
|
|
2053
|
+
cooldownUntil: string | null;
|
|
2054
|
+
blacklistReason: string | null;
|
|
1980
2055
|
lastCallNotes: string | null;
|
|
1981
2056
|
existsInLeadsTable: boolean;
|
|
1982
|
-
cooldownUntil: string | null;
|
|
1983
2057
|
originalLeadId: string | null;
|
|
1984
2058
|
agent?: {
|
|
1985
|
-
status: "ACTIVE" | "INACTIVE";
|
|
1986
|
-
id: string;
|
|
1987
|
-
updatedAt: string;
|
|
1988
|
-
createdAt: string;
|
|
1989
2059
|
email: string;
|
|
2060
|
+
createdAt: string;
|
|
2061
|
+
updatedAt: string;
|
|
2062
|
+
id: string;
|
|
2063
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1990
2064
|
lastName: string;
|
|
1991
2065
|
firstName: string;
|
|
1992
2066
|
phoneNumbers: {
|
|
@@ -1998,49 +2072,50 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
1998
2072
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1999
2073
|
officeId?: string | null | undefined;
|
|
2000
2074
|
office?: {
|
|
2001
|
-
id: string;
|
|
2002
2075
|
name: string;
|
|
2076
|
+
id: string;
|
|
2003
2077
|
managers?: {
|
|
2004
2078
|
id: string;
|
|
2005
2079
|
lastName: string;
|
|
2006
2080
|
firstName: string;
|
|
2007
2081
|
}[] | undefined;
|
|
2008
2082
|
} | null | undefined;
|
|
2083
|
+
deletedAt?: string | null | undefined;
|
|
2009
2084
|
canImpersonateUsers?: {
|
|
2010
2085
|
id: string;
|
|
2011
2086
|
lastName: string;
|
|
2012
2087
|
firstName: string;
|
|
2013
2088
|
}[] | undefined;
|
|
2014
|
-
|
|
2089
|
+
dialpadUserId?: string | null | undefined;
|
|
2015
2090
|
} | undefined;
|
|
2016
2091
|
}, {
|
|
2017
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2018
|
-
id: string;
|
|
2019
2092
|
name: string;
|
|
2020
|
-
updatedAt: string | Date;
|
|
2021
2093
|
createdAt: string | Date;
|
|
2022
|
-
|
|
2094
|
+
updatedAt: string | Date;
|
|
2095
|
+
id: string;
|
|
2096
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2023
2097
|
agentId: string;
|
|
2024
2098
|
phoneNumber: string;
|
|
2025
|
-
lastCalledAt: string | Date | null;
|
|
2026
2099
|
callCount: number;
|
|
2100
|
+
lastCalledAt: string | Date | null;
|
|
2101
|
+
cooldownUntil: string | Date | null;
|
|
2102
|
+
blacklistReason: string | null;
|
|
2027
2103
|
lastCallNotes: string | null;
|
|
2028
2104
|
existsInLeadsTable: boolean;
|
|
2029
|
-
cooldownUntil: string | Date | null;
|
|
2030
2105
|
originalLeadId: string | null;
|
|
2031
2106
|
agent?: {
|
|
2032
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2033
|
-
id: string;
|
|
2034
|
-
updatedAt: string | Date;
|
|
2035
|
-
createdAt: string | Date;
|
|
2036
2107
|
email: string;
|
|
2108
|
+
createdAt: string | Date;
|
|
2109
|
+
updatedAt: string | Date;
|
|
2110
|
+
id: string;
|
|
2111
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2037
2112
|
lastName: string;
|
|
2038
2113
|
firstName: string;
|
|
2039
2114
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2040
2115
|
officeId?: string | null | undefined;
|
|
2041
2116
|
office?: {
|
|
2042
|
-
id: string;
|
|
2043
2117
|
name: string;
|
|
2118
|
+
id: string;
|
|
2044
2119
|
managers?: {
|
|
2045
2120
|
id: string;
|
|
2046
2121
|
lastName: string;
|
|
@@ -2053,12 +2128,13 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2053
2128
|
description?: string | null | undefined;
|
|
2054
2129
|
isPrimary?: boolean | undefined;
|
|
2055
2130
|
}[] | undefined;
|
|
2131
|
+
deletedAt?: string | Date | null | undefined;
|
|
2056
2132
|
canImpersonateUsers?: {
|
|
2057
2133
|
id: string;
|
|
2058
2134
|
lastName: string;
|
|
2059
2135
|
firstName: string;
|
|
2060
2136
|
}[] | undefined;
|
|
2061
|
-
|
|
2137
|
+
dialpadUserId?: string | null | undefined;
|
|
2062
2138
|
} | undefined;
|
|
2063
2139
|
}>, "many">;
|
|
2064
2140
|
totalCount: z.ZodNumber;
|
|
@@ -2069,26 +2145,26 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2069
2145
|
}, "strip", z.ZodTypeAny, {
|
|
2070
2146
|
limit: number;
|
|
2071
2147
|
items: {
|
|
2072
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2073
|
-
id: string;
|
|
2074
2148
|
name: string;
|
|
2075
|
-
updatedAt: string;
|
|
2076
2149
|
createdAt: string;
|
|
2077
|
-
|
|
2150
|
+
updatedAt: string;
|
|
2151
|
+
id: string;
|
|
2152
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2078
2153
|
agentId: string;
|
|
2079
2154
|
phoneNumber: string;
|
|
2080
|
-
lastCalledAt: string | null;
|
|
2081
2155
|
callCount: number;
|
|
2156
|
+
lastCalledAt: string | null;
|
|
2157
|
+
cooldownUntil: string | null;
|
|
2158
|
+
blacklistReason: string | null;
|
|
2082
2159
|
lastCallNotes: string | null;
|
|
2083
2160
|
existsInLeadsTable: boolean;
|
|
2084
|
-
cooldownUntil: string | null;
|
|
2085
2161
|
originalLeadId: string | null;
|
|
2086
2162
|
agent?: {
|
|
2087
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2088
|
-
id: string;
|
|
2089
|
-
updatedAt: string;
|
|
2090
|
-
createdAt: string;
|
|
2091
2163
|
email: string;
|
|
2164
|
+
createdAt: string;
|
|
2165
|
+
updatedAt: string;
|
|
2166
|
+
id: string;
|
|
2167
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2092
2168
|
lastName: string;
|
|
2093
2169
|
firstName: string;
|
|
2094
2170
|
phoneNumbers: {
|
|
@@ -2100,20 +2176,21 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2100
2176
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2101
2177
|
officeId?: string | null | undefined;
|
|
2102
2178
|
office?: {
|
|
2103
|
-
id: string;
|
|
2104
2179
|
name: string;
|
|
2180
|
+
id: string;
|
|
2105
2181
|
managers?: {
|
|
2106
2182
|
id: string;
|
|
2107
2183
|
lastName: string;
|
|
2108
2184
|
firstName: string;
|
|
2109
2185
|
}[] | undefined;
|
|
2110
2186
|
} | null | undefined;
|
|
2187
|
+
deletedAt?: string | null | undefined;
|
|
2111
2188
|
canImpersonateUsers?: {
|
|
2112
2189
|
id: string;
|
|
2113
2190
|
lastName: string;
|
|
2114
2191
|
firstName: string;
|
|
2115
2192
|
}[] | undefined;
|
|
2116
|
-
|
|
2193
|
+
dialpadUserId?: string | null | undefined;
|
|
2117
2194
|
} | undefined;
|
|
2118
2195
|
}[];
|
|
2119
2196
|
totalCount: number;
|
|
@@ -2123,33 +2200,33 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2123
2200
|
}, {
|
|
2124
2201
|
limit: number;
|
|
2125
2202
|
items: {
|
|
2126
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2127
|
-
id: string;
|
|
2128
2203
|
name: string;
|
|
2129
|
-
updatedAt: string | Date;
|
|
2130
2204
|
createdAt: string | Date;
|
|
2131
|
-
|
|
2205
|
+
updatedAt: string | Date;
|
|
2206
|
+
id: string;
|
|
2207
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2132
2208
|
agentId: string;
|
|
2133
2209
|
phoneNumber: string;
|
|
2134
|
-
lastCalledAt: string | Date | null;
|
|
2135
2210
|
callCount: number;
|
|
2211
|
+
lastCalledAt: string | Date | null;
|
|
2212
|
+
cooldownUntil: string | Date | null;
|
|
2213
|
+
blacklistReason: string | null;
|
|
2136
2214
|
lastCallNotes: string | null;
|
|
2137
2215
|
existsInLeadsTable: boolean;
|
|
2138
|
-
cooldownUntil: string | Date | null;
|
|
2139
2216
|
originalLeadId: string | null;
|
|
2140
2217
|
agent?: {
|
|
2141
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2142
|
-
id: string;
|
|
2143
|
-
updatedAt: string | Date;
|
|
2144
|
-
createdAt: string | Date;
|
|
2145
2218
|
email: string;
|
|
2219
|
+
createdAt: string | Date;
|
|
2220
|
+
updatedAt: string | Date;
|
|
2221
|
+
id: string;
|
|
2222
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2146
2223
|
lastName: string;
|
|
2147
2224
|
firstName: string;
|
|
2148
2225
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2149
2226
|
officeId?: string | null | undefined;
|
|
2150
2227
|
office?: {
|
|
2151
|
-
id: string;
|
|
2152
2228
|
name: string;
|
|
2229
|
+
id: string;
|
|
2153
2230
|
managers?: {
|
|
2154
2231
|
id: string;
|
|
2155
2232
|
lastName: string;
|
|
@@ -2162,12 +2239,13 @@ export declare const PaginatedOwnResearchLeadResponseSchema: z.ZodObject<{
|
|
|
2162
2239
|
description?: string | null | undefined;
|
|
2163
2240
|
isPrimary?: boolean | undefined;
|
|
2164
2241
|
}[] | undefined;
|
|
2242
|
+
deletedAt?: string | Date | null | undefined;
|
|
2165
2243
|
canImpersonateUsers?: {
|
|
2166
2244
|
id: string;
|
|
2167
2245
|
lastName: string;
|
|
2168
2246
|
firstName: string;
|
|
2169
2247
|
}[] | undefined;
|
|
2170
|
-
|
|
2248
|
+
dialpadUserId?: string | null | undefined;
|
|
2171
2249
|
} | undefined;
|
|
2172
2250
|
}[];
|
|
2173
2251
|
totalCount: number;
|
|
@@ -2194,7 +2272,7 @@ export declare const ownResearchContract: {
|
|
|
2194
2272
|
method: "GET";
|
|
2195
2273
|
path: "/v2/own-research/agent-info";
|
|
2196
2274
|
responses: {
|
|
2197
|
-
|
|
2275
|
+
401: z.ZodObject<{
|
|
2198
2276
|
statusCode: z.ZodNumber;
|
|
2199
2277
|
message: z.ZodString;
|
|
2200
2278
|
code: z.ZodString;
|
|
@@ -2203,23 +2281,23 @@ export declare const ownResearchContract: {
|
|
|
2203
2281
|
path: z.ZodString;
|
|
2204
2282
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2205
2283
|
}, "strip", z.ZodTypeAny, {
|
|
2206
|
-
message: string;
|
|
2207
2284
|
code: string;
|
|
2208
2285
|
path: string;
|
|
2286
|
+
message: string;
|
|
2209
2287
|
statusCode: number;
|
|
2210
2288
|
timestamp: string;
|
|
2211
2289
|
details?: unknown;
|
|
2212
2290
|
correlationId?: string | undefined;
|
|
2213
2291
|
}, {
|
|
2214
|
-
message: string;
|
|
2215
2292
|
code: string;
|
|
2216
2293
|
path: string;
|
|
2294
|
+
message: string;
|
|
2217
2295
|
statusCode: number;
|
|
2218
2296
|
timestamp: string;
|
|
2219
2297
|
details?: unknown;
|
|
2220
2298
|
correlationId?: string | undefined;
|
|
2221
2299
|
}>;
|
|
2222
|
-
|
|
2300
|
+
400: z.ZodObject<{
|
|
2223
2301
|
statusCode: z.ZodNumber;
|
|
2224
2302
|
message: z.ZodString;
|
|
2225
2303
|
code: z.ZodString;
|
|
@@ -2228,17 +2306,17 @@ export declare const ownResearchContract: {
|
|
|
2228
2306
|
path: z.ZodString;
|
|
2229
2307
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2230
2308
|
}, "strip", z.ZodTypeAny, {
|
|
2231
|
-
message: string;
|
|
2232
2309
|
code: string;
|
|
2233
2310
|
path: string;
|
|
2311
|
+
message: string;
|
|
2234
2312
|
statusCode: number;
|
|
2235
2313
|
timestamp: string;
|
|
2236
2314
|
details?: unknown;
|
|
2237
2315
|
correlationId?: string | undefined;
|
|
2238
2316
|
}, {
|
|
2239
|
-
message: string;
|
|
2240
2317
|
code: string;
|
|
2241
2318
|
path: string;
|
|
2319
|
+
message: string;
|
|
2242
2320
|
statusCode: number;
|
|
2243
2321
|
timestamp: string;
|
|
2244
2322
|
details?: unknown;
|
|
@@ -2253,17 +2331,17 @@ export declare const ownResearchContract: {
|
|
|
2253
2331
|
path: z.ZodString;
|
|
2254
2332
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2255
2333
|
}, "strip", z.ZodTypeAny, {
|
|
2256
|
-
message: string;
|
|
2257
2334
|
code: string;
|
|
2258
2335
|
path: string;
|
|
2336
|
+
message: string;
|
|
2259
2337
|
statusCode: number;
|
|
2260
2338
|
timestamp: string;
|
|
2261
2339
|
details?: unknown;
|
|
2262
2340
|
correlationId?: string | undefined;
|
|
2263
2341
|
}, {
|
|
2264
|
-
message: string;
|
|
2265
2342
|
code: string;
|
|
2266
2343
|
path: string;
|
|
2344
|
+
message: string;
|
|
2267
2345
|
statusCode: number;
|
|
2268
2346
|
timestamp: string;
|
|
2269
2347
|
details?: unknown;
|
|
@@ -2278,17 +2356,17 @@ export declare const ownResearchContract: {
|
|
|
2278
2356
|
path: z.ZodString;
|
|
2279
2357
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2280
2358
|
}, "strip", z.ZodTypeAny, {
|
|
2281
|
-
message: string;
|
|
2282
2359
|
code: string;
|
|
2283
2360
|
path: string;
|
|
2361
|
+
message: string;
|
|
2284
2362
|
statusCode: number;
|
|
2285
2363
|
timestamp: string;
|
|
2286
2364
|
details?: unknown;
|
|
2287
2365
|
correlationId?: string | undefined;
|
|
2288
2366
|
}, {
|
|
2289
|
-
message: string;
|
|
2290
2367
|
code: string;
|
|
2291
2368
|
path: string;
|
|
2369
|
+
message: string;
|
|
2292
2370
|
statusCode: number;
|
|
2293
2371
|
timestamp: string;
|
|
2294
2372
|
details?: unknown;
|
|
@@ -2333,29 +2411,29 @@ export declare const ownResearchContract: {
|
|
|
2333
2411
|
}, "strip", z.ZodTypeAny, {
|
|
2334
2412
|
page: number;
|
|
2335
2413
|
limit: number;
|
|
2336
|
-
status?: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED" | undefined;
|
|
2337
2414
|
name?: string | undefined;
|
|
2415
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
2338
2416
|
phoneNumber?: string | undefined;
|
|
2417
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
2418
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
2339
2419
|
lastCalledAt?: {
|
|
2340
2420
|
from?: string | null | undefined;
|
|
2341
2421
|
to?: string | null | undefined;
|
|
2342
2422
|
} | undefined;
|
|
2343
2423
|
minTotalCalls?: number | undefined;
|
|
2344
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
2345
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
2346
2424
|
}, {
|
|
2347
|
-
|
|
2425
|
+
name?: string | undefined;
|
|
2348
2426
|
page?: number | undefined;
|
|
2349
2427
|
limit?: number | undefined;
|
|
2350
|
-
|
|
2428
|
+
status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED" | undefined;
|
|
2351
2429
|
phoneNumber?: string | undefined;
|
|
2430
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "callCount" | "lastCalledAt" | undefined;
|
|
2431
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
2352
2432
|
lastCalledAt?: {
|
|
2353
2433
|
from?: string | null | undefined;
|
|
2354
2434
|
to?: string | null | undefined;
|
|
2355
2435
|
} | undefined;
|
|
2356
2436
|
minTotalCalls?: number | undefined;
|
|
2357
|
-
sortBy?: "name" | "updatedAt" | "createdAt" | "lastCalledAt" | "callCount" | undefined;
|
|
2358
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
2359
2437
|
}>;
|
|
2360
2438
|
metadata: {
|
|
2361
2439
|
tags: string[];
|
|
@@ -2364,7 +2442,7 @@ export declare const ownResearchContract: {
|
|
|
2364
2442
|
method: "GET";
|
|
2365
2443
|
path: "/v2/own-research/leads";
|
|
2366
2444
|
responses: {
|
|
2367
|
-
|
|
2445
|
+
401: z.ZodObject<{
|
|
2368
2446
|
statusCode: z.ZodNumber;
|
|
2369
2447
|
message: z.ZodString;
|
|
2370
2448
|
code: z.ZodString;
|
|
@@ -2373,23 +2451,23 @@ export declare const ownResearchContract: {
|
|
|
2373
2451
|
path: z.ZodString;
|
|
2374
2452
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2375
2453
|
}, "strip", z.ZodTypeAny, {
|
|
2376
|
-
message: string;
|
|
2377
2454
|
code: string;
|
|
2378
2455
|
path: string;
|
|
2456
|
+
message: string;
|
|
2379
2457
|
statusCode: number;
|
|
2380
2458
|
timestamp: string;
|
|
2381
2459
|
details?: unknown;
|
|
2382
2460
|
correlationId?: string | undefined;
|
|
2383
2461
|
}, {
|
|
2384
|
-
message: string;
|
|
2385
2462
|
code: string;
|
|
2386
2463
|
path: string;
|
|
2464
|
+
message: string;
|
|
2387
2465
|
statusCode: number;
|
|
2388
2466
|
timestamp: string;
|
|
2389
2467
|
details?: unknown;
|
|
2390
2468
|
correlationId?: string | undefined;
|
|
2391
2469
|
}>;
|
|
2392
|
-
|
|
2470
|
+
400: z.ZodObject<{
|
|
2393
2471
|
statusCode: z.ZodNumber;
|
|
2394
2472
|
message: z.ZodString;
|
|
2395
2473
|
code: z.ZodString;
|
|
@@ -2398,17 +2476,17 @@ export declare const ownResearchContract: {
|
|
|
2398
2476
|
path: z.ZodString;
|
|
2399
2477
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2400
2478
|
}, "strip", z.ZodTypeAny, {
|
|
2401
|
-
message: string;
|
|
2402
2479
|
code: string;
|
|
2403
2480
|
path: string;
|
|
2481
|
+
message: string;
|
|
2404
2482
|
statusCode: number;
|
|
2405
2483
|
timestamp: string;
|
|
2406
2484
|
details?: unknown;
|
|
2407
2485
|
correlationId?: string | undefined;
|
|
2408
2486
|
}, {
|
|
2409
|
-
message: string;
|
|
2410
2487
|
code: string;
|
|
2411
2488
|
path: string;
|
|
2489
|
+
message: string;
|
|
2412
2490
|
statusCode: number;
|
|
2413
2491
|
timestamp: string;
|
|
2414
2492
|
details?: unknown;
|
|
@@ -2423,17 +2501,17 @@ export declare const ownResearchContract: {
|
|
|
2423
2501
|
path: z.ZodString;
|
|
2424
2502
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2425
2503
|
}, "strip", z.ZodTypeAny, {
|
|
2426
|
-
message: string;
|
|
2427
2504
|
code: string;
|
|
2428
2505
|
path: string;
|
|
2506
|
+
message: string;
|
|
2429
2507
|
statusCode: number;
|
|
2430
2508
|
timestamp: string;
|
|
2431
2509
|
details?: unknown;
|
|
2432
2510
|
correlationId?: string | undefined;
|
|
2433
2511
|
}, {
|
|
2434
|
-
message: string;
|
|
2435
2512
|
code: string;
|
|
2436
2513
|
path: string;
|
|
2514
|
+
message: string;
|
|
2437
2515
|
statusCode: number;
|
|
2438
2516
|
timestamp: string;
|
|
2439
2517
|
details?: unknown;
|
|
@@ -2448,17 +2526,17 @@ export declare const ownResearchContract: {
|
|
|
2448
2526
|
path: z.ZodString;
|
|
2449
2527
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2450
2528
|
}, "strip", z.ZodTypeAny, {
|
|
2451
|
-
message: string;
|
|
2452
2529
|
code: string;
|
|
2453
2530
|
path: string;
|
|
2531
|
+
message: string;
|
|
2454
2532
|
statusCode: number;
|
|
2455
2533
|
timestamp: string;
|
|
2456
2534
|
details?: unknown;
|
|
2457
2535
|
correlationId?: string | undefined;
|
|
2458
2536
|
}, {
|
|
2459
|
-
message: string;
|
|
2460
2537
|
code: string;
|
|
2461
2538
|
path: string;
|
|
2539
|
+
message: string;
|
|
2462
2540
|
statusCode: number;
|
|
2463
2541
|
timestamp: string;
|
|
2464
2542
|
details?: unknown;
|
|
@@ -2508,16 +2586,16 @@ export declare const ownResearchContract: {
|
|
|
2508
2586
|
firstName: string;
|
|
2509
2587
|
}>, "many">>;
|
|
2510
2588
|
}, "strip", z.ZodTypeAny, {
|
|
2511
|
-
id: string;
|
|
2512
2589
|
name: string;
|
|
2590
|
+
id: string;
|
|
2513
2591
|
managers?: {
|
|
2514
2592
|
id: string;
|
|
2515
2593
|
lastName: string;
|
|
2516
2594
|
firstName: string;
|
|
2517
2595
|
}[] | undefined;
|
|
2518
2596
|
}, {
|
|
2519
|
-
id: string;
|
|
2520
2597
|
name: string;
|
|
2598
|
+
id: string;
|
|
2521
2599
|
managers?: {
|
|
2522
2600
|
id: string;
|
|
2523
2601
|
lastName: string;
|
|
@@ -2538,15 +2616,16 @@ export declare const ownResearchContract: {
|
|
|
2538
2616
|
firstName: string;
|
|
2539
2617
|
}>, "many">>;
|
|
2540
2618
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2619
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
2541
2620
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2542
2621
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2543
2622
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2544
2623
|
}, "strip", z.ZodTypeAny, {
|
|
2545
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2546
|
-
id: string;
|
|
2547
|
-
updatedAt: string;
|
|
2548
|
-
createdAt: string;
|
|
2549
2624
|
email: string;
|
|
2625
|
+
createdAt: string;
|
|
2626
|
+
updatedAt: string;
|
|
2627
|
+
id: string;
|
|
2628
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2550
2629
|
lastName: string;
|
|
2551
2630
|
firstName: string;
|
|
2552
2631
|
phoneNumbers: {
|
|
@@ -2558,33 +2637,34 @@ export declare const ownResearchContract: {
|
|
|
2558
2637
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2559
2638
|
officeId?: string | null | undefined;
|
|
2560
2639
|
office?: {
|
|
2561
|
-
id: string;
|
|
2562
2640
|
name: string;
|
|
2641
|
+
id: string;
|
|
2563
2642
|
managers?: {
|
|
2564
2643
|
id: string;
|
|
2565
2644
|
lastName: string;
|
|
2566
2645
|
firstName: string;
|
|
2567
2646
|
}[] | undefined;
|
|
2568
2647
|
} | null | undefined;
|
|
2648
|
+
deletedAt?: string | null | undefined;
|
|
2569
2649
|
canImpersonateUsers?: {
|
|
2570
2650
|
id: string;
|
|
2571
2651
|
lastName: string;
|
|
2572
2652
|
firstName: string;
|
|
2573
2653
|
}[] | undefined;
|
|
2574
|
-
|
|
2654
|
+
dialpadUserId?: string | null | undefined;
|
|
2575
2655
|
}, {
|
|
2576
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2577
|
-
id: string;
|
|
2578
|
-
updatedAt: string | Date;
|
|
2579
|
-
createdAt: string | Date;
|
|
2580
2656
|
email: string;
|
|
2657
|
+
createdAt: string | Date;
|
|
2658
|
+
updatedAt: string | Date;
|
|
2659
|
+
id: string;
|
|
2660
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2581
2661
|
lastName: string;
|
|
2582
2662
|
firstName: string;
|
|
2583
2663
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2584
2664
|
officeId?: string | null | undefined;
|
|
2585
2665
|
office?: {
|
|
2586
|
-
id: string;
|
|
2587
2666
|
name: string;
|
|
2667
|
+
id: string;
|
|
2588
2668
|
managers?: {
|
|
2589
2669
|
id: string;
|
|
2590
2670
|
lastName: string;
|
|
@@ -2597,12 +2677,13 @@ export declare const ownResearchContract: {
|
|
|
2597
2677
|
description?: string | null | undefined;
|
|
2598
2678
|
isPrimary?: boolean | undefined;
|
|
2599
2679
|
}[] | undefined;
|
|
2680
|
+
deletedAt?: string | Date | null | undefined;
|
|
2600
2681
|
canImpersonateUsers?: {
|
|
2601
2682
|
id: string;
|
|
2602
2683
|
lastName: string;
|
|
2603
2684
|
firstName: string;
|
|
2604
2685
|
}[] | undefined;
|
|
2605
|
-
|
|
2686
|
+
dialpadUserId?: string | null | undefined;
|
|
2606
2687
|
}>>;
|
|
2607
2688
|
name: z.ZodString;
|
|
2608
2689
|
phoneNumber: z.ZodString;
|
|
@@ -2617,26 +2698,26 @@ export declare const ownResearchContract: {
|
|
|
2617
2698
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2618
2699
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2619
2700
|
}, "strip", z.ZodTypeAny, {
|
|
2620
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2621
|
-
id: string;
|
|
2622
2701
|
name: string;
|
|
2623
|
-
updatedAt: string;
|
|
2624
2702
|
createdAt: string;
|
|
2625
|
-
|
|
2703
|
+
updatedAt: string;
|
|
2704
|
+
id: string;
|
|
2705
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2626
2706
|
agentId: string;
|
|
2627
2707
|
phoneNumber: string;
|
|
2628
|
-
lastCalledAt: string | null;
|
|
2629
2708
|
callCount: number;
|
|
2709
|
+
lastCalledAt: string | null;
|
|
2710
|
+
cooldownUntil: string | null;
|
|
2711
|
+
blacklistReason: string | null;
|
|
2630
2712
|
lastCallNotes: string | null;
|
|
2631
2713
|
existsInLeadsTable: boolean;
|
|
2632
|
-
cooldownUntil: string | null;
|
|
2633
2714
|
originalLeadId: string | null;
|
|
2634
2715
|
agent?: {
|
|
2635
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2636
|
-
id: string;
|
|
2637
|
-
updatedAt: string;
|
|
2638
|
-
createdAt: string;
|
|
2639
2716
|
email: string;
|
|
2717
|
+
createdAt: string;
|
|
2718
|
+
updatedAt: string;
|
|
2719
|
+
id: string;
|
|
2720
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2640
2721
|
lastName: string;
|
|
2641
2722
|
firstName: string;
|
|
2642
2723
|
phoneNumbers: {
|
|
@@ -2648,49 +2729,50 @@ export declare const ownResearchContract: {
|
|
|
2648
2729
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2649
2730
|
officeId?: string | null | undefined;
|
|
2650
2731
|
office?: {
|
|
2651
|
-
id: string;
|
|
2652
2732
|
name: string;
|
|
2733
|
+
id: string;
|
|
2653
2734
|
managers?: {
|
|
2654
2735
|
id: string;
|
|
2655
2736
|
lastName: string;
|
|
2656
2737
|
firstName: string;
|
|
2657
2738
|
}[] | undefined;
|
|
2658
2739
|
} | null | undefined;
|
|
2740
|
+
deletedAt?: string | null | undefined;
|
|
2659
2741
|
canImpersonateUsers?: {
|
|
2660
2742
|
id: string;
|
|
2661
2743
|
lastName: string;
|
|
2662
2744
|
firstName: string;
|
|
2663
2745
|
}[] | undefined;
|
|
2664
|
-
|
|
2746
|
+
dialpadUserId?: string | null | undefined;
|
|
2665
2747
|
} | undefined;
|
|
2666
2748
|
}, {
|
|
2667
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2668
|
-
id: string;
|
|
2669
2749
|
name: string;
|
|
2670
|
-
updatedAt: string | Date;
|
|
2671
2750
|
createdAt: string | Date;
|
|
2672
|
-
|
|
2751
|
+
updatedAt: string | Date;
|
|
2752
|
+
id: string;
|
|
2753
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2673
2754
|
agentId: string;
|
|
2674
2755
|
phoneNumber: string;
|
|
2675
|
-
lastCalledAt: string | Date | null;
|
|
2676
2756
|
callCount: number;
|
|
2757
|
+
lastCalledAt: string | Date | null;
|
|
2758
|
+
cooldownUntil: string | Date | null;
|
|
2759
|
+
blacklistReason: string | null;
|
|
2677
2760
|
lastCallNotes: string | null;
|
|
2678
2761
|
existsInLeadsTable: boolean;
|
|
2679
|
-
cooldownUntil: string | Date | null;
|
|
2680
2762
|
originalLeadId: string | null;
|
|
2681
2763
|
agent?: {
|
|
2682
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2683
|
-
id: string;
|
|
2684
|
-
updatedAt: string | Date;
|
|
2685
|
-
createdAt: string | Date;
|
|
2686
2764
|
email: string;
|
|
2765
|
+
createdAt: string | Date;
|
|
2766
|
+
updatedAt: string | Date;
|
|
2767
|
+
id: string;
|
|
2768
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2687
2769
|
lastName: string;
|
|
2688
2770
|
firstName: string;
|
|
2689
2771
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2690
2772
|
officeId?: string | null | undefined;
|
|
2691
2773
|
office?: {
|
|
2692
|
-
id: string;
|
|
2693
2774
|
name: string;
|
|
2775
|
+
id: string;
|
|
2694
2776
|
managers?: {
|
|
2695
2777
|
id: string;
|
|
2696
2778
|
lastName: string;
|
|
@@ -2703,12 +2785,13 @@ export declare const ownResearchContract: {
|
|
|
2703
2785
|
description?: string | null | undefined;
|
|
2704
2786
|
isPrimary?: boolean | undefined;
|
|
2705
2787
|
}[] | undefined;
|
|
2788
|
+
deletedAt?: string | Date | null | undefined;
|
|
2706
2789
|
canImpersonateUsers?: {
|
|
2707
2790
|
id: string;
|
|
2708
2791
|
lastName: string;
|
|
2709
2792
|
firstName: string;
|
|
2710
2793
|
}[] | undefined;
|
|
2711
|
-
|
|
2794
|
+
dialpadUserId?: string | null | undefined;
|
|
2712
2795
|
} | undefined;
|
|
2713
2796
|
}>, "many">;
|
|
2714
2797
|
totalCount: z.ZodNumber;
|
|
@@ -2719,26 +2802,26 @@ export declare const ownResearchContract: {
|
|
|
2719
2802
|
}, "strip", z.ZodTypeAny, {
|
|
2720
2803
|
limit: number;
|
|
2721
2804
|
items: {
|
|
2722
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2723
|
-
id: string;
|
|
2724
2805
|
name: string;
|
|
2725
|
-
updatedAt: string;
|
|
2726
2806
|
createdAt: string;
|
|
2727
|
-
|
|
2807
|
+
updatedAt: string;
|
|
2808
|
+
id: string;
|
|
2809
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2728
2810
|
agentId: string;
|
|
2729
2811
|
phoneNumber: string;
|
|
2730
|
-
lastCalledAt: string | null;
|
|
2731
2812
|
callCount: number;
|
|
2813
|
+
lastCalledAt: string | null;
|
|
2814
|
+
cooldownUntil: string | null;
|
|
2815
|
+
blacklistReason: string | null;
|
|
2732
2816
|
lastCallNotes: string | null;
|
|
2733
2817
|
existsInLeadsTable: boolean;
|
|
2734
|
-
cooldownUntil: string | null;
|
|
2735
2818
|
originalLeadId: string | null;
|
|
2736
2819
|
agent?: {
|
|
2737
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2738
|
-
id: string;
|
|
2739
|
-
updatedAt: string;
|
|
2740
|
-
createdAt: string;
|
|
2741
2820
|
email: string;
|
|
2821
|
+
createdAt: string;
|
|
2822
|
+
updatedAt: string;
|
|
2823
|
+
id: string;
|
|
2824
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2742
2825
|
lastName: string;
|
|
2743
2826
|
firstName: string;
|
|
2744
2827
|
phoneNumbers: {
|
|
@@ -2750,20 +2833,21 @@ export declare const ownResearchContract: {
|
|
|
2750
2833
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2751
2834
|
officeId?: string | null | undefined;
|
|
2752
2835
|
office?: {
|
|
2753
|
-
id: string;
|
|
2754
2836
|
name: string;
|
|
2837
|
+
id: string;
|
|
2755
2838
|
managers?: {
|
|
2756
2839
|
id: string;
|
|
2757
2840
|
lastName: string;
|
|
2758
2841
|
firstName: string;
|
|
2759
2842
|
}[] | undefined;
|
|
2760
2843
|
} | null | undefined;
|
|
2844
|
+
deletedAt?: string | null | undefined;
|
|
2761
2845
|
canImpersonateUsers?: {
|
|
2762
2846
|
id: string;
|
|
2763
2847
|
lastName: string;
|
|
2764
2848
|
firstName: string;
|
|
2765
2849
|
}[] | undefined;
|
|
2766
|
-
|
|
2850
|
+
dialpadUserId?: string | null | undefined;
|
|
2767
2851
|
} | undefined;
|
|
2768
2852
|
}[];
|
|
2769
2853
|
totalCount: number;
|
|
@@ -2773,33 +2857,33 @@ export declare const ownResearchContract: {
|
|
|
2773
2857
|
}, {
|
|
2774
2858
|
limit: number;
|
|
2775
2859
|
items: {
|
|
2776
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
2777
|
-
id: string;
|
|
2778
2860
|
name: string;
|
|
2779
|
-
updatedAt: string | Date;
|
|
2780
2861
|
createdAt: string | Date;
|
|
2781
|
-
|
|
2862
|
+
updatedAt: string | Date;
|
|
2863
|
+
id: string;
|
|
2864
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2782
2865
|
agentId: string;
|
|
2783
2866
|
phoneNumber: string;
|
|
2784
|
-
lastCalledAt: string | Date | null;
|
|
2785
2867
|
callCount: number;
|
|
2868
|
+
lastCalledAt: string | Date | null;
|
|
2869
|
+
cooldownUntil: string | Date | null;
|
|
2870
|
+
blacklistReason: string | null;
|
|
2786
2871
|
lastCallNotes: string | null;
|
|
2787
2872
|
existsInLeadsTable: boolean;
|
|
2788
|
-
cooldownUntil: string | Date | null;
|
|
2789
2873
|
originalLeadId: string | null;
|
|
2790
2874
|
agent?: {
|
|
2791
|
-
status: "ACTIVE" | "INACTIVE";
|
|
2792
|
-
id: string;
|
|
2793
|
-
updatedAt: string | Date;
|
|
2794
|
-
createdAt: string | Date;
|
|
2795
2875
|
email: string;
|
|
2876
|
+
createdAt: string | Date;
|
|
2877
|
+
updatedAt: string | Date;
|
|
2878
|
+
id: string;
|
|
2879
|
+
status: "ACTIVE" | "INACTIVE";
|
|
2796
2880
|
lastName: string;
|
|
2797
2881
|
firstName: string;
|
|
2798
2882
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2799
2883
|
officeId?: string | null | undefined;
|
|
2800
2884
|
office?: {
|
|
2801
|
-
id: string;
|
|
2802
2885
|
name: string;
|
|
2886
|
+
id: string;
|
|
2803
2887
|
managers?: {
|
|
2804
2888
|
id: string;
|
|
2805
2889
|
lastName: string;
|
|
@@ -2812,12 +2896,13 @@ export declare const ownResearchContract: {
|
|
|
2812
2896
|
description?: string | null | undefined;
|
|
2813
2897
|
isPrimary?: boolean | undefined;
|
|
2814
2898
|
}[] | undefined;
|
|
2899
|
+
deletedAt?: string | Date | null | undefined;
|
|
2815
2900
|
canImpersonateUsers?: {
|
|
2816
2901
|
id: string;
|
|
2817
2902
|
lastName: string;
|
|
2818
2903
|
firstName: string;
|
|
2819
2904
|
}[] | undefined;
|
|
2820
|
-
|
|
2905
|
+
dialpadUserId?: string | null | undefined;
|
|
2821
2906
|
} | undefined;
|
|
2822
2907
|
}[];
|
|
2823
2908
|
totalCount: number;
|
|
@@ -2842,7 +2927,7 @@ export declare const ownResearchContract: {
|
|
|
2842
2927
|
}>;
|
|
2843
2928
|
path: "/v2/own-research/check-phone";
|
|
2844
2929
|
responses: {
|
|
2845
|
-
|
|
2930
|
+
401: z.ZodObject<{
|
|
2846
2931
|
statusCode: z.ZodNumber;
|
|
2847
2932
|
message: z.ZodString;
|
|
2848
2933
|
code: z.ZodString;
|
|
@@ -2851,23 +2936,23 @@ export declare const ownResearchContract: {
|
|
|
2851
2936
|
path: z.ZodString;
|
|
2852
2937
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2853
2938
|
}, "strip", z.ZodTypeAny, {
|
|
2854
|
-
message: string;
|
|
2855
2939
|
code: string;
|
|
2856
2940
|
path: string;
|
|
2941
|
+
message: string;
|
|
2857
2942
|
statusCode: number;
|
|
2858
2943
|
timestamp: string;
|
|
2859
2944
|
details?: unknown;
|
|
2860
2945
|
correlationId?: string | undefined;
|
|
2861
2946
|
}, {
|
|
2862
|
-
message: string;
|
|
2863
2947
|
code: string;
|
|
2864
2948
|
path: string;
|
|
2949
|
+
message: string;
|
|
2865
2950
|
statusCode: number;
|
|
2866
2951
|
timestamp: string;
|
|
2867
2952
|
details?: unknown;
|
|
2868
2953
|
correlationId?: string | undefined;
|
|
2869
2954
|
}>;
|
|
2870
|
-
|
|
2955
|
+
400: z.ZodObject<{
|
|
2871
2956
|
statusCode: z.ZodNumber;
|
|
2872
2957
|
message: z.ZodString;
|
|
2873
2958
|
code: z.ZodString;
|
|
@@ -2876,17 +2961,17 @@ export declare const ownResearchContract: {
|
|
|
2876
2961
|
path: z.ZodString;
|
|
2877
2962
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2878
2963
|
}, "strip", z.ZodTypeAny, {
|
|
2879
|
-
message: string;
|
|
2880
2964
|
code: string;
|
|
2881
2965
|
path: string;
|
|
2966
|
+
message: string;
|
|
2882
2967
|
statusCode: number;
|
|
2883
2968
|
timestamp: string;
|
|
2884
2969
|
details?: unknown;
|
|
2885
2970
|
correlationId?: string | undefined;
|
|
2886
2971
|
}, {
|
|
2887
|
-
message: string;
|
|
2888
2972
|
code: string;
|
|
2889
2973
|
path: string;
|
|
2974
|
+
message: string;
|
|
2890
2975
|
statusCode: number;
|
|
2891
2976
|
timestamp: string;
|
|
2892
2977
|
details?: unknown;
|
|
@@ -2901,17 +2986,17 @@ export declare const ownResearchContract: {
|
|
|
2901
2986
|
path: z.ZodString;
|
|
2902
2987
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2903
2988
|
}, "strip", z.ZodTypeAny, {
|
|
2904
|
-
message: string;
|
|
2905
2989
|
code: string;
|
|
2906
2990
|
path: string;
|
|
2991
|
+
message: string;
|
|
2907
2992
|
statusCode: number;
|
|
2908
2993
|
timestamp: string;
|
|
2909
2994
|
details?: unknown;
|
|
2910
2995
|
correlationId?: string | undefined;
|
|
2911
2996
|
}, {
|
|
2912
|
-
message: string;
|
|
2913
2997
|
code: string;
|
|
2914
2998
|
path: string;
|
|
2999
|
+
message: string;
|
|
2915
3000
|
statusCode: number;
|
|
2916
3001
|
timestamp: string;
|
|
2917
3002
|
details?: unknown;
|
|
@@ -2926,17 +3011,17 @@ export declare const ownResearchContract: {
|
|
|
2926
3011
|
path: z.ZodString;
|
|
2927
3012
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
2928
3013
|
}, "strip", z.ZodTypeAny, {
|
|
2929
|
-
message: string;
|
|
2930
3014
|
code: string;
|
|
2931
3015
|
path: string;
|
|
3016
|
+
message: string;
|
|
2932
3017
|
statusCode: number;
|
|
2933
3018
|
timestamp: string;
|
|
2934
3019
|
details?: unknown;
|
|
2935
3020
|
correlationId?: string | undefined;
|
|
2936
3021
|
}, {
|
|
2937
|
-
message: string;
|
|
2938
3022
|
code: string;
|
|
2939
3023
|
path: string;
|
|
3024
|
+
message: string;
|
|
2940
3025
|
statusCode: number;
|
|
2941
3026
|
timestamp: string;
|
|
2942
3027
|
details?: unknown;
|
|
@@ -2949,20 +3034,23 @@ export declare const ownResearchContract: {
|
|
|
2949
3034
|
id: z.ZodString;
|
|
2950
3035
|
name: z.ZodString;
|
|
2951
3036
|
phoneNumber: z.ZodString;
|
|
2952
|
-
status: z.
|
|
3037
|
+
status: z.ZodEnum<["AVAILABLE", "ASSIGNED", "BLACKLISTED", "PARKED"]>;
|
|
3038
|
+
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2953
3039
|
cooldownUntil: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>;
|
|
2954
3040
|
}, "strip", z.ZodTypeAny, {
|
|
2955
|
-
status: string;
|
|
2956
|
-
id: string;
|
|
2957
3041
|
name: string;
|
|
3042
|
+
id: string;
|
|
3043
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2958
3044
|
phoneNumber: string;
|
|
2959
3045
|
cooldownUntil: string | null;
|
|
3046
|
+
blacklistReason?: string | null | undefined;
|
|
2960
3047
|
}, {
|
|
2961
|
-
status: string;
|
|
2962
|
-
id: string;
|
|
2963
3048
|
name: string;
|
|
3049
|
+
id: string;
|
|
3050
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
2964
3051
|
phoneNumber: string;
|
|
2965
3052
|
cooldownUntil: string | Date | null;
|
|
3053
|
+
blacklistReason?: string | null | undefined;
|
|
2966
3054
|
}>>>;
|
|
2967
3055
|
ownResearchLead: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2968
3056
|
id: z.ZodString;
|
|
@@ -3007,16 +3095,16 @@ export declare const ownResearchContract: {
|
|
|
3007
3095
|
firstName: string;
|
|
3008
3096
|
}>, "many">>;
|
|
3009
3097
|
}, "strip", z.ZodTypeAny, {
|
|
3010
|
-
id: string;
|
|
3011
3098
|
name: string;
|
|
3099
|
+
id: string;
|
|
3012
3100
|
managers?: {
|
|
3013
3101
|
id: string;
|
|
3014
3102
|
lastName: string;
|
|
3015
3103
|
firstName: string;
|
|
3016
3104
|
}[] | undefined;
|
|
3017
3105
|
}, {
|
|
3018
|
-
id: string;
|
|
3019
3106
|
name: string;
|
|
3107
|
+
id: string;
|
|
3020
3108
|
managers?: {
|
|
3021
3109
|
id: string;
|
|
3022
3110
|
lastName: string;
|
|
@@ -3037,15 +3125,16 @@ export declare const ownResearchContract: {
|
|
|
3037
3125
|
firstName: string;
|
|
3038
3126
|
}>, "many">>;
|
|
3039
3127
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3128
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
3040
3129
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3041
3130
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3042
3131
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3043
3132
|
}, "strip", z.ZodTypeAny, {
|
|
3044
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3045
|
-
id: string;
|
|
3046
|
-
updatedAt: string;
|
|
3047
|
-
createdAt: string;
|
|
3048
3133
|
email: string;
|
|
3134
|
+
createdAt: string;
|
|
3135
|
+
updatedAt: string;
|
|
3136
|
+
id: string;
|
|
3137
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3049
3138
|
lastName: string;
|
|
3050
3139
|
firstName: string;
|
|
3051
3140
|
phoneNumbers: {
|
|
@@ -3057,33 +3146,34 @@ export declare const ownResearchContract: {
|
|
|
3057
3146
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3058
3147
|
officeId?: string | null | undefined;
|
|
3059
3148
|
office?: {
|
|
3060
|
-
id: string;
|
|
3061
3149
|
name: string;
|
|
3150
|
+
id: string;
|
|
3062
3151
|
managers?: {
|
|
3063
3152
|
id: string;
|
|
3064
3153
|
lastName: string;
|
|
3065
3154
|
firstName: string;
|
|
3066
3155
|
}[] | undefined;
|
|
3067
3156
|
} | null | undefined;
|
|
3157
|
+
deletedAt?: string | null | undefined;
|
|
3068
3158
|
canImpersonateUsers?: {
|
|
3069
3159
|
id: string;
|
|
3070
3160
|
lastName: string;
|
|
3071
3161
|
firstName: string;
|
|
3072
3162
|
}[] | undefined;
|
|
3073
|
-
|
|
3163
|
+
dialpadUserId?: string | null | undefined;
|
|
3074
3164
|
}, {
|
|
3075
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3076
|
-
id: string;
|
|
3077
|
-
updatedAt: string | Date;
|
|
3078
|
-
createdAt: string | Date;
|
|
3079
3165
|
email: string;
|
|
3166
|
+
createdAt: string | Date;
|
|
3167
|
+
updatedAt: string | Date;
|
|
3168
|
+
id: string;
|
|
3169
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3080
3170
|
lastName: string;
|
|
3081
3171
|
firstName: string;
|
|
3082
3172
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3083
3173
|
officeId?: string | null | undefined;
|
|
3084
3174
|
office?: {
|
|
3085
|
-
id: string;
|
|
3086
3175
|
name: string;
|
|
3176
|
+
id: string;
|
|
3087
3177
|
managers?: {
|
|
3088
3178
|
id: string;
|
|
3089
3179
|
lastName: string;
|
|
@@ -3096,12 +3186,13 @@ export declare const ownResearchContract: {
|
|
|
3096
3186
|
description?: string | null | undefined;
|
|
3097
3187
|
isPrimary?: boolean | undefined;
|
|
3098
3188
|
}[] | undefined;
|
|
3189
|
+
deletedAt?: string | Date | null | undefined;
|
|
3099
3190
|
canImpersonateUsers?: {
|
|
3100
3191
|
id: string;
|
|
3101
3192
|
lastName: string;
|
|
3102
3193
|
firstName: string;
|
|
3103
3194
|
}[] | undefined;
|
|
3104
|
-
|
|
3195
|
+
dialpadUserId?: string | null | undefined;
|
|
3105
3196
|
}>>;
|
|
3106
3197
|
name: z.ZodString;
|
|
3107
3198
|
phoneNumber: z.ZodString;
|
|
@@ -3116,26 +3207,26 @@ export declare const ownResearchContract: {
|
|
|
3116
3207
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3117
3208
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3118
3209
|
}, "strip", z.ZodTypeAny, {
|
|
3119
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3120
|
-
id: string;
|
|
3121
3210
|
name: string;
|
|
3122
|
-
updatedAt: string;
|
|
3123
3211
|
createdAt: string;
|
|
3124
|
-
|
|
3212
|
+
updatedAt: string;
|
|
3213
|
+
id: string;
|
|
3214
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3125
3215
|
agentId: string;
|
|
3126
3216
|
phoneNumber: string;
|
|
3127
|
-
lastCalledAt: string | null;
|
|
3128
3217
|
callCount: number;
|
|
3218
|
+
lastCalledAt: string | null;
|
|
3219
|
+
cooldownUntil: string | null;
|
|
3220
|
+
blacklistReason: string | null;
|
|
3129
3221
|
lastCallNotes: string | null;
|
|
3130
3222
|
existsInLeadsTable: boolean;
|
|
3131
|
-
cooldownUntil: string | null;
|
|
3132
3223
|
originalLeadId: string | null;
|
|
3133
3224
|
agent?: {
|
|
3134
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3135
|
-
id: string;
|
|
3136
|
-
updatedAt: string;
|
|
3137
|
-
createdAt: string;
|
|
3138
3225
|
email: string;
|
|
3226
|
+
createdAt: string;
|
|
3227
|
+
updatedAt: string;
|
|
3228
|
+
id: string;
|
|
3229
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3139
3230
|
lastName: string;
|
|
3140
3231
|
firstName: string;
|
|
3141
3232
|
phoneNumbers: {
|
|
@@ -3147,49 +3238,50 @@ export declare const ownResearchContract: {
|
|
|
3147
3238
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3148
3239
|
officeId?: string | null | undefined;
|
|
3149
3240
|
office?: {
|
|
3150
|
-
id: string;
|
|
3151
3241
|
name: string;
|
|
3242
|
+
id: string;
|
|
3152
3243
|
managers?: {
|
|
3153
3244
|
id: string;
|
|
3154
3245
|
lastName: string;
|
|
3155
3246
|
firstName: string;
|
|
3156
3247
|
}[] | undefined;
|
|
3157
3248
|
} | null | undefined;
|
|
3249
|
+
deletedAt?: string | null | undefined;
|
|
3158
3250
|
canImpersonateUsers?: {
|
|
3159
3251
|
id: string;
|
|
3160
3252
|
lastName: string;
|
|
3161
3253
|
firstName: string;
|
|
3162
3254
|
}[] | undefined;
|
|
3163
|
-
|
|
3255
|
+
dialpadUserId?: string | null | undefined;
|
|
3164
3256
|
} | undefined;
|
|
3165
3257
|
}, {
|
|
3166
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3167
|
-
id: string;
|
|
3168
3258
|
name: string;
|
|
3169
|
-
updatedAt: string | Date;
|
|
3170
3259
|
createdAt: string | Date;
|
|
3171
|
-
|
|
3260
|
+
updatedAt: string | Date;
|
|
3261
|
+
id: string;
|
|
3262
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3172
3263
|
agentId: string;
|
|
3173
3264
|
phoneNumber: string;
|
|
3174
|
-
lastCalledAt: string | Date | null;
|
|
3175
3265
|
callCount: number;
|
|
3266
|
+
lastCalledAt: string | Date | null;
|
|
3267
|
+
cooldownUntil: string | Date | null;
|
|
3268
|
+
blacklistReason: string | null;
|
|
3176
3269
|
lastCallNotes: string | null;
|
|
3177
3270
|
existsInLeadsTable: boolean;
|
|
3178
|
-
cooldownUntil: string | Date | null;
|
|
3179
3271
|
originalLeadId: string | null;
|
|
3180
3272
|
agent?: {
|
|
3181
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3182
|
-
id: string;
|
|
3183
|
-
updatedAt: string | Date;
|
|
3184
|
-
createdAt: string | Date;
|
|
3185
3273
|
email: string;
|
|
3274
|
+
createdAt: string | Date;
|
|
3275
|
+
updatedAt: string | Date;
|
|
3276
|
+
id: string;
|
|
3277
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3186
3278
|
lastName: string;
|
|
3187
3279
|
firstName: string;
|
|
3188
3280
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3189
3281
|
officeId?: string | null | undefined;
|
|
3190
3282
|
office?: {
|
|
3191
|
-
id: string;
|
|
3192
3283
|
name: string;
|
|
3284
|
+
id: string;
|
|
3193
3285
|
managers?: {
|
|
3194
3286
|
id: string;
|
|
3195
3287
|
lastName: string;
|
|
@@ -3202,12 +3294,13 @@ export declare const ownResearchContract: {
|
|
|
3202
3294
|
description?: string | null | undefined;
|
|
3203
3295
|
isPrimary?: boolean | undefined;
|
|
3204
3296
|
}[] | undefined;
|
|
3297
|
+
deletedAt?: string | Date | null | undefined;
|
|
3205
3298
|
canImpersonateUsers?: {
|
|
3206
3299
|
id: string;
|
|
3207
3300
|
lastName: string;
|
|
3208
3301
|
firstName: string;
|
|
3209
3302
|
}[] | undefined;
|
|
3210
|
-
|
|
3303
|
+
dialpadUserId?: string | null | undefined;
|
|
3211
3304
|
} | undefined;
|
|
3212
3305
|
}>>>;
|
|
3213
3306
|
isOnCooldown: z.ZodBoolean;
|
|
@@ -3218,33 +3311,34 @@ export declare const ownResearchContract: {
|
|
|
3218
3311
|
existsInOwnResearch: boolean;
|
|
3219
3312
|
isOnCooldown: boolean;
|
|
3220
3313
|
lead?: {
|
|
3221
|
-
status: string;
|
|
3222
|
-
id: string;
|
|
3223
3314
|
name: string;
|
|
3315
|
+
id: string;
|
|
3316
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3224
3317
|
phoneNumber: string;
|
|
3225
3318
|
cooldownUntil: string | null;
|
|
3319
|
+
blacklistReason?: string | null | undefined;
|
|
3226
3320
|
} | null | undefined;
|
|
3227
3321
|
ownResearchLead?: {
|
|
3228
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3229
|
-
id: string;
|
|
3230
3322
|
name: string;
|
|
3231
|
-
updatedAt: string;
|
|
3232
3323
|
createdAt: string;
|
|
3233
|
-
|
|
3324
|
+
updatedAt: string;
|
|
3325
|
+
id: string;
|
|
3326
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3234
3327
|
agentId: string;
|
|
3235
3328
|
phoneNumber: string;
|
|
3236
|
-
lastCalledAt: string | null;
|
|
3237
3329
|
callCount: number;
|
|
3330
|
+
lastCalledAt: string | null;
|
|
3331
|
+
cooldownUntil: string | null;
|
|
3332
|
+
blacklistReason: string | null;
|
|
3238
3333
|
lastCallNotes: string | null;
|
|
3239
3334
|
existsInLeadsTable: boolean;
|
|
3240
|
-
cooldownUntil: string | null;
|
|
3241
3335
|
originalLeadId: string | null;
|
|
3242
3336
|
agent?: {
|
|
3243
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3244
|
-
id: string;
|
|
3245
|
-
updatedAt: string;
|
|
3246
|
-
createdAt: string;
|
|
3247
3337
|
email: string;
|
|
3338
|
+
createdAt: string;
|
|
3339
|
+
updatedAt: string;
|
|
3340
|
+
id: string;
|
|
3341
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3248
3342
|
lastName: string;
|
|
3249
3343
|
firstName: string;
|
|
3250
3344
|
phoneNumbers: {
|
|
@@ -3256,20 +3350,21 @@ export declare const ownResearchContract: {
|
|
|
3256
3350
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3257
3351
|
officeId?: string | null | undefined;
|
|
3258
3352
|
office?: {
|
|
3259
|
-
id: string;
|
|
3260
3353
|
name: string;
|
|
3354
|
+
id: string;
|
|
3261
3355
|
managers?: {
|
|
3262
3356
|
id: string;
|
|
3263
3357
|
lastName: string;
|
|
3264
3358
|
firstName: string;
|
|
3265
3359
|
}[] | undefined;
|
|
3266
3360
|
} | null | undefined;
|
|
3361
|
+
deletedAt?: string | null | undefined;
|
|
3267
3362
|
canImpersonateUsers?: {
|
|
3268
3363
|
id: string;
|
|
3269
3364
|
lastName: string;
|
|
3270
3365
|
firstName: string;
|
|
3271
3366
|
}[] | undefined;
|
|
3272
|
-
|
|
3367
|
+
dialpadUserId?: string | null | undefined;
|
|
3273
3368
|
} | undefined;
|
|
3274
3369
|
} | null | undefined;
|
|
3275
3370
|
}, {
|
|
@@ -3278,40 +3373,41 @@ export declare const ownResearchContract: {
|
|
|
3278
3373
|
existsInOwnResearch: boolean;
|
|
3279
3374
|
isOnCooldown: boolean;
|
|
3280
3375
|
lead?: {
|
|
3281
|
-
status: string;
|
|
3282
|
-
id: string;
|
|
3283
3376
|
name: string;
|
|
3377
|
+
id: string;
|
|
3378
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3284
3379
|
phoneNumber: string;
|
|
3285
3380
|
cooldownUntil: string | Date | null;
|
|
3381
|
+
blacklistReason?: string | null | undefined;
|
|
3286
3382
|
} | null | undefined;
|
|
3287
3383
|
ownResearchLead?: {
|
|
3288
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3289
|
-
id: string;
|
|
3290
3384
|
name: string;
|
|
3291
|
-
updatedAt: string | Date;
|
|
3292
3385
|
createdAt: string | Date;
|
|
3293
|
-
|
|
3386
|
+
updatedAt: string | Date;
|
|
3387
|
+
id: string;
|
|
3388
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3294
3389
|
agentId: string;
|
|
3295
3390
|
phoneNumber: string;
|
|
3296
|
-
lastCalledAt: string | Date | null;
|
|
3297
3391
|
callCount: number;
|
|
3392
|
+
lastCalledAt: string | Date | null;
|
|
3393
|
+
cooldownUntil: string | Date | null;
|
|
3394
|
+
blacklistReason: string | null;
|
|
3298
3395
|
lastCallNotes: string | null;
|
|
3299
3396
|
existsInLeadsTable: boolean;
|
|
3300
|
-
cooldownUntil: string | Date | null;
|
|
3301
3397
|
originalLeadId: string | null;
|
|
3302
3398
|
agent?: {
|
|
3303
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3304
|
-
id: string;
|
|
3305
|
-
updatedAt: string | Date;
|
|
3306
|
-
createdAt: string | Date;
|
|
3307
3399
|
email: string;
|
|
3400
|
+
createdAt: string | Date;
|
|
3401
|
+
updatedAt: string | Date;
|
|
3402
|
+
id: string;
|
|
3403
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3308
3404
|
lastName: string;
|
|
3309
3405
|
firstName: string;
|
|
3310
3406
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3311
3407
|
officeId?: string | null | undefined;
|
|
3312
3408
|
office?: {
|
|
3313
|
-
id: string;
|
|
3314
3409
|
name: string;
|
|
3410
|
+
id: string;
|
|
3315
3411
|
managers?: {
|
|
3316
3412
|
id: string;
|
|
3317
3413
|
lastName: string;
|
|
@@ -3324,12 +3420,13 @@ export declare const ownResearchContract: {
|
|
|
3324
3420
|
description?: string | null | undefined;
|
|
3325
3421
|
isPrimary?: boolean | undefined;
|
|
3326
3422
|
}[] | undefined;
|
|
3423
|
+
deletedAt?: string | Date | null | undefined;
|
|
3327
3424
|
canImpersonateUsers?: {
|
|
3328
3425
|
id: string;
|
|
3329
3426
|
lastName: string;
|
|
3330
3427
|
firstName: string;
|
|
3331
3428
|
}[] | undefined;
|
|
3332
|
-
|
|
3429
|
+
dialpadUserId?: string | null | undefined;
|
|
3333
3430
|
} | undefined;
|
|
3334
3431
|
} | null | undefined;
|
|
3335
3432
|
}>;
|
|
@@ -3353,7 +3450,7 @@ export declare const ownResearchContract: {
|
|
|
3353
3450
|
}>;
|
|
3354
3451
|
path: "/v2/own-research/leads";
|
|
3355
3452
|
responses: {
|
|
3356
|
-
|
|
3453
|
+
401: z.ZodObject<{
|
|
3357
3454
|
statusCode: z.ZodNumber;
|
|
3358
3455
|
message: z.ZodString;
|
|
3359
3456
|
code: z.ZodString;
|
|
@@ -3362,23 +3459,23 @@ export declare const ownResearchContract: {
|
|
|
3362
3459
|
path: z.ZodString;
|
|
3363
3460
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3364
3461
|
}, "strip", z.ZodTypeAny, {
|
|
3365
|
-
message: string;
|
|
3366
3462
|
code: string;
|
|
3367
3463
|
path: string;
|
|
3464
|
+
message: string;
|
|
3368
3465
|
statusCode: number;
|
|
3369
3466
|
timestamp: string;
|
|
3370
3467
|
details?: unknown;
|
|
3371
3468
|
correlationId?: string | undefined;
|
|
3372
3469
|
}, {
|
|
3373
|
-
message: string;
|
|
3374
3470
|
code: string;
|
|
3375
3471
|
path: string;
|
|
3472
|
+
message: string;
|
|
3376
3473
|
statusCode: number;
|
|
3377
3474
|
timestamp: string;
|
|
3378
3475
|
details?: unknown;
|
|
3379
3476
|
correlationId?: string | undefined;
|
|
3380
3477
|
}>;
|
|
3381
|
-
|
|
3478
|
+
400: z.ZodObject<{
|
|
3382
3479
|
statusCode: z.ZodNumber;
|
|
3383
3480
|
message: z.ZodString;
|
|
3384
3481
|
code: z.ZodString;
|
|
@@ -3387,17 +3484,17 @@ export declare const ownResearchContract: {
|
|
|
3387
3484
|
path: z.ZodString;
|
|
3388
3485
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3389
3486
|
}, "strip", z.ZodTypeAny, {
|
|
3390
|
-
message: string;
|
|
3391
3487
|
code: string;
|
|
3392
3488
|
path: string;
|
|
3489
|
+
message: string;
|
|
3393
3490
|
statusCode: number;
|
|
3394
3491
|
timestamp: string;
|
|
3395
3492
|
details?: unknown;
|
|
3396
3493
|
correlationId?: string | undefined;
|
|
3397
3494
|
}, {
|
|
3398
|
-
message: string;
|
|
3399
3495
|
code: string;
|
|
3400
3496
|
path: string;
|
|
3497
|
+
message: string;
|
|
3401
3498
|
statusCode: number;
|
|
3402
3499
|
timestamp: string;
|
|
3403
3500
|
details?: unknown;
|
|
@@ -3412,17 +3509,17 @@ export declare const ownResearchContract: {
|
|
|
3412
3509
|
path: z.ZodString;
|
|
3413
3510
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3414
3511
|
}, "strip", z.ZodTypeAny, {
|
|
3415
|
-
message: string;
|
|
3416
3512
|
code: string;
|
|
3417
3513
|
path: string;
|
|
3514
|
+
message: string;
|
|
3418
3515
|
statusCode: number;
|
|
3419
3516
|
timestamp: string;
|
|
3420
3517
|
details?: unknown;
|
|
3421
3518
|
correlationId?: string | undefined;
|
|
3422
3519
|
}, {
|
|
3423
|
-
message: string;
|
|
3424
3520
|
code: string;
|
|
3425
3521
|
path: string;
|
|
3522
|
+
message: string;
|
|
3426
3523
|
statusCode: number;
|
|
3427
3524
|
timestamp: string;
|
|
3428
3525
|
details?: unknown;
|
|
@@ -3437,17 +3534,17 @@ export declare const ownResearchContract: {
|
|
|
3437
3534
|
path: z.ZodString;
|
|
3438
3535
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3439
3536
|
}, "strip", z.ZodTypeAny, {
|
|
3440
|
-
message: string;
|
|
3441
3537
|
code: string;
|
|
3442
3538
|
path: string;
|
|
3539
|
+
message: string;
|
|
3443
3540
|
statusCode: number;
|
|
3444
3541
|
timestamp: string;
|
|
3445
3542
|
details?: unknown;
|
|
3446
3543
|
correlationId?: string | undefined;
|
|
3447
3544
|
}, {
|
|
3448
|
-
message: string;
|
|
3449
3545
|
code: string;
|
|
3450
3546
|
path: string;
|
|
3547
|
+
message: string;
|
|
3451
3548
|
statusCode: number;
|
|
3452
3549
|
timestamp: string;
|
|
3453
3550
|
details?: unknown;
|
|
@@ -3497,16 +3594,16 @@ export declare const ownResearchContract: {
|
|
|
3497
3594
|
firstName: string;
|
|
3498
3595
|
}>, "many">>;
|
|
3499
3596
|
}, "strip", z.ZodTypeAny, {
|
|
3500
|
-
id: string;
|
|
3501
3597
|
name: string;
|
|
3598
|
+
id: string;
|
|
3502
3599
|
managers?: {
|
|
3503
3600
|
id: string;
|
|
3504
3601
|
lastName: string;
|
|
3505
3602
|
firstName: string;
|
|
3506
3603
|
}[] | undefined;
|
|
3507
3604
|
}, {
|
|
3508
|
-
id: string;
|
|
3509
3605
|
name: string;
|
|
3606
|
+
id: string;
|
|
3510
3607
|
managers?: {
|
|
3511
3608
|
id: string;
|
|
3512
3609
|
lastName: string;
|
|
@@ -3527,15 +3624,16 @@ export declare const ownResearchContract: {
|
|
|
3527
3624
|
firstName: string;
|
|
3528
3625
|
}>, "many">>;
|
|
3529
3626
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
3627
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
3530
3628
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3531
3629
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3532
3630
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3533
3631
|
}, "strip", z.ZodTypeAny, {
|
|
3534
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3535
|
-
id: string;
|
|
3536
|
-
updatedAt: string;
|
|
3537
|
-
createdAt: string;
|
|
3538
3632
|
email: string;
|
|
3633
|
+
createdAt: string;
|
|
3634
|
+
updatedAt: string;
|
|
3635
|
+
id: string;
|
|
3636
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3539
3637
|
lastName: string;
|
|
3540
3638
|
firstName: string;
|
|
3541
3639
|
phoneNumbers: {
|
|
@@ -3547,33 +3645,34 @@ export declare const ownResearchContract: {
|
|
|
3547
3645
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3548
3646
|
officeId?: string | null | undefined;
|
|
3549
3647
|
office?: {
|
|
3550
|
-
id: string;
|
|
3551
3648
|
name: string;
|
|
3649
|
+
id: string;
|
|
3552
3650
|
managers?: {
|
|
3553
3651
|
id: string;
|
|
3554
3652
|
lastName: string;
|
|
3555
3653
|
firstName: string;
|
|
3556
3654
|
}[] | undefined;
|
|
3557
3655
|
} | null | undefined;
|
|
3656
|
+
deletedAt?: string | null | undefined;
|
|
3558
3657
|
canImpersonateUsers?: {
|
|
3559
3658
|
id: string;
|
|
3560
3659
|
lastName: string;
|
|
3561
3660
|
firstName: string;
|
|
3562
3661
|
}[] | undefined;
|
|
3563
|
-
|
|
3662
|
+
dialpadUserId?: string | null | undefined;
|
|
3564
3663
|
}, {
|
|
3565
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3566
|
-
id: string;
|
|
3567
|
-
updatedAt: string | Date;
|
|
3568
|
-
createdAt: string | Date;
|
|
3569
3664
|
email: string;
|
|
3665
|
+
createdAt: string | Date;
|
|
3666
|
+
updatedAt: string | Date;
|
|
3667
|
+
id: string;
|
|
3668
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3570
3669
|
lastName: string;
|
|
3571
3670
|
firstName: string;
|
|
3572
3671
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3573
3672
|
officeId?: string | null | undefined;
|
|
3574
3673
|
office?: {
|
|
3575
|
-
id: string;
|
|
3576
3674
|
name: string;
|
|
3675
|
+
id: string;
|
|
3577
3676
|
managers?: {
|
|
3578
3677
|
id: string;
|
|
3579
3678
|
lastName: string;
|
|
@@ -3586,12 +3685,13 @@ export declare const ownResearchContract: {
|
|
|
3586
3685
|
description?: string | null | undefined;
|
|
3587
3686
|
isPrimary?: boolean | undefined;
|
|
3588
3687
|
}[] | undefined;
|
|
3688
|
+
deletedAt?: string | Date | null | undefined;
|
|
3589
3689
|
canImpersonateUsers?: {
|
|
3590
3690
|
id: string;
|
|
3591
3691
|
lastName: string;
|
|
3592
3692
|
firstName: string;
|
|
3593
3693
|
}[] | undefined;
|
|
3594
|
-
|
|
3694
|
+
dialpadUserId?: string | null | undefined;
|
|
3595
3695
|
}>>;
|
|
3596
3696
|
name: z.ZodString;
|
|
3597
3697
|
phoneNumber: z.ZodString;
|
|
@@ -3606,26 +3706,26 @@ export declare const ownResearchContract: {
|
|
|
3606
3706
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3607
3707
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3608
3708
|
}, "strip", z.ZodTypeAny, {
|
|
3609
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3610
|
-
id: string;
|
|
3611
3709
|
name: string;
|
|
3612
|
-
updatedAt: string;
|
|
3613
3710
|
createdAt: string;
|
|
3614
|
-
|
|
3711
|
+
updatedAt: string;
|
|
3712
|
+
id: string;
|
|
3713
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3615
3714
|
agentId: string;
|
|
3616
3715
|
phoneNumber: string;
|
|
3617
|
-
lastCalledAt: string | null;
|
|
3618
3716
|
callCount: number;
|
|
3717
|
+
lastCalledAt: string | null;
|
|
3718
|
+
cooldownUntil: string | null;
|
|
3719
|
+
blacklistReason: string | null;
|
|
3619
3720
|
lastCallNotes: string | null;
|
|
3620
3721
|
existsInLeadsTable: boolean;
|
|
3621
|
-
cooldownUntil: string | null;
|
|
3622
3722
|
originalLeadId: string | null;
|
|
3623
3723
|
agent?: {
|
|
3624
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3625
|
-
id: string;
|
|
3626
|
-
updatedAt: string;
|
|
3627
|
-
createdAt: string;
|
|
3628
3724
|
email: string;
|
|
3725
|
+
createdAt: string;
|
|
3726
|
+
updatedAt: string;
|
|
3727
|
+
id: string;
|
|
3728
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3629
3729
|
lastName: string;
|
|
3630
3730
|
firstName: string;
|
|
3631
3731
|
phoneNumbers: {
|
|
@@ -3637,49 +3737,50 @@ export declare const ownResearchContract: {
|
|
|
3637
3737
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3638
3738
|
officeId?: string | null | undefined;
|
|
3639
3739
|
office?: {
|
|
3640
|
-
id: string;
|
|
3641
3740
|
name: string;
|
|
3741
|
+
id: string;
|
|
3642
3742
|
managers?: {
|
|
3643
3743
|
id: string;
|
|
3644
3744
|
lastName: string;
|
|
3645
3745
|
firstName: string;
|
|
3646
3746
|
}[] | undefined;
|
|
3647
3747
|
} | null | undefined;
|
|
3748
|
+
deletedAt?: string | null | undefined;
|
|
3648
3749
|
canImpersonateUsers?: {
|
|
3649
3750
|
id: string;
|
|
3650
3751
|
lastName: string;
|
|
3651
3752
|
firstName: string;
|
|
3652
3753
|
}[] | undefined;
|
|
3653
|
-
|
|
3754
|
+
dialpadUserId?: string | null | undefined;
|
|
3654
3755
|
} | undefined;
|
|
3655
3756
|
}, {
|
|
3656
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3657
|
-
id: string;
|
|
3658
3757
|
name: string;
|
|
3659
|
-
updatedAt: string | Date;
|
|
3660
3758
|
createdAt: string | Date;
|
|
3661
|
-
|
|
3759
|
+
updatedAt: string | Date;
|
|
3760
|
+
id: string;
|
|
3761
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3662
3762
|
agentId: string;
|
|
3663
3763
|
phoneNumber: string;
|
|
3664
|
-
lastCalledAt: string | Date | null;
|
|
3665
3764
|
callCount: number;
|
|
3765
|
+
lastCalledAt: string | Date | null;
|
|
3766
|
+
cooldownUntil: string | Date | null;
|
|
3767
|
+
blacklistReason: string | null;
|
|
3666
3768
|
lastCallNotes: string | null;
|
|
3667
3769
|
existsInLeadsTable: boolean;
|
|
3668
|
-
cooldownUntil: string | Date | null;
|
|
3669
3770
|
originalLeadId: string | null;
|
|
3670
3771
|
agent?: {
|
|
3671
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3672
|
-
id: string;
|
|
3673
|
-
updatedAt: string | Date;
|
|
3674
|
-
createdAt: string | Date;
|
|
3675
3772
|
email: string;
|
|
3773
|
+
createdAt: string | Date;
|
|
3774
|
+
updatedAt: string | Date;
|
|
3775
|
+
id: string;
|
|
3776
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3676
3777
|
lastName: string;
|
|
3677
3778
|
firstName: string;
|
|
3678
3779
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3679
3780
|
officeId?: string | null | undefined;
|
|
3680
3781
|
office?: {
|
|
3681
|
-
id: string;
|
|
3682
3782
|
name: string;
|
|
3783
|
+
id: string;
|
|
3683
3784
|
managers?: {
|
|
3684
3785
|
id: string;
|
|
3685
3786
|
lastName: string;
|
|
@@ -3692,36 +3793,37 @@ export declare const ownResearchContract: {
|
|
|
3692
3793
|
description?: string | null | undefined;
|
|
3693
3794
|
isPrimary?: boolean | undefined;
|
|
3694
3795
|
}[] | undefined;
|
|
3796
|
+
deletedAt?: string | Date | null | undefined;
|
|
3695
3797
|
canImpersonateUsers?: {
|
|
3696
3798
|
id: string;
|
|
3697
3799
|
lastName: string;
|
|
3698
3800
|
firstName: string;
|
|
3699
3801
|
}[] | undefined;
|
|
3700
|
-
|
|
3802
|
+
dialpadUserId?: string | null | undefined;
|
|
3701
3803
|
} | undefined;
|
|
3702
3804
|
}>;
|
|
3703
3805
|
}, "strip", z.ZodTypeAny, {
|
|
3704
3806
|
ownResearchLead: {
|
|
3705
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3706
|
-
id: string;
|
|
3707
3807
|
name: string;
|
|
3708
|
-
updatedAt: string;
|
|
3709
3808
|
createdAt: string;
|
|
3710
|
-
|
|
3809
|
+
updatedAt: string;
|
|
3810
|
+
id: string;
|
|
3811
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3711
3812
|
agentId: string;
|
|
3712
3813
|
phoneNumber: string;
|
|
3713
|
-
lastCalledAt: string | null;
|
|
3714
3814
|
callCount: number;
|
|
3815
|
+
lastCalledAt: string | null;
|
|
3816
|
+
cooldownUntil: string | null;
|
|
3817
|
+
blacklistReason: string | null;
|
|
3715
3818
|
lastCallNotes: string | null;
|
|
3716
3819
|
existsInLeadsTable: boolean;
|
|
3717
|
-
cooldownUntil: string | null;
|
|
3718
3820
|
originalLeadId: string | null;
|
|
3719
3821
|
agent?: {
|
|
3720
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3721
|
-
id: string;
|
|
3722
|
-
updatedAt: string;
|
|
3723
|
-
createdAt: string;
|
|
3724
3822
|
email: string;
|
|
3823
|
+
createdAt: string;
|
|
3824
|
+
updatedAt: string;
|
|
3825
|
+
id: string;
|
|
3826
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3725
3827
|
lastName: string;
|
|
3726
3828
|
firstName: string;
|
|
3727
3829
|
phoneNumbers: {
|
|
@@ -3733,51 +3835,52 @@ export declare const ownResearchContract: {
|
|
|
3733
3835
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3734
3836
|
officeId?: string | null | undefined;
|
|
3735
3837
|
office?: {
|
|
3736
|
-
id: string;
|
|
3737
3838
|
name: string;
|
|
3839
|
+
id: string;
|
|
3738
3840
|
managers?: {
|
|
3739
3841
|
id: string;
|
|
3740
3842
|
lastName: string;
|
|
3741
3843
|
firstName: string;
|
|
3742
3844
|
}[] | undefined;
|
|
3743
3845
|
} | null | undefined;
|
|
3846
|
+
deletedAt?: string | null | undefined;
|
|
3744
3847
|
canImpersonateUsers?: {
|
|
3745
3848
|
id: string;
|
|
3746
3849
|
lastName: string;
|
|
3747
3850
|
firstName: string;
|
|
3748
3851
|
}[] | undefined;
|
|
3749
|
-
|
|
3852
|
+
dialpadUserId?: string | null | undefined;
|
|
3750
3853
|
} | undefined;
|
|
3751
3854
|
};
|
|
3752
3855
|
}, {
|
|
3753
3856
|
ownResearchLead: {
|
|
3754
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
3755
|
-
id: string;
|
|
3756
3857
|
name: string;
|
|
3757
|
-
updatedAt: string | Date;
|
|
3758
3858
|
createdAt: string | Date;
|
|
3759
|
-
|
|
3859
|
+
updatedAt: string | Date;
|
|
3860
|
+
id: string;
|
|
3861
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
3760
3862
|
agentId: string;
|
|
3761
3863
|
phoneNumber: string;
|
|
3762
|
-
lastCalledAt: string | Date | null;
|
|
3763
3864
|
callCount: number;
|
|
3865
|
+
lastCalledAt: string | Date | null;
|
|
3866
|
+
cooldownUntil: string | Date | null;
|
|
3867
|
+
blacklistReason: string | null;
|
|
3764
3868
|
lastCallNotes: string | null;
|
|
3765
3869
|
existsInLeadsTable: boolean;
|
|
3766
|
-
cooldownUntil: string | Date | null;
|
|
3767
3870
|
originalLeadId: string | null;
|
|
3768
3871
|
agent?: {
|
|
3769
|
-
status: "ACTIVE" | "INACTIVE";
|
|
3770
|
-
id: string;
|
|
3771
|
-
updatedAt: string | Date;
|
|
3772
|
-
createdAt: string | Date;
|
|
3773
3872
|
email: string;
|
|
3873
|
+
createdAt: string | Date;
|
|
3874
|
+
updatedAt: string | Date;
|
|
3875
|
+
id: string;
|
|
3876
|
+
status: "ACTIVE" | "INACTIVE";
|
|
3774
3877
|
lastName: string;
|
|
3775
3878
|
firstName: string;
|
|
3776
3879
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
3777
3880
|
officeId?: string | null | undefined;
|
|
3778
3881
|
office?: {
|
|
3779
|
-
id: string;
|
|
3780
3882
|
name: string;
|
|
3883
|
+
id: string;
|
|
3781
3884
|
managers?: {
|
|
3782
3885
|
id: string;
|
|
3783
3886
|
lastName: string;
|
|
@@ -3790,12 +3893,13 @@ export declare const ownResearchContract: {
|
|
|
3790
3893
|
description?: string | null | undefined;
|
|
3791
3894
|
isPrimary?: boolean | undefined;
|
|
3792
3895
|
}[] | undefined;
|
|
3896
|
+
deletedAt?: string | Date | null | undefined;
|
|
3793
3897
|
canImpersonateUsers?: {
|
|
3794
3898
|
id: string;
|
|
3795
3899
|
lastName: string;
|
|
3796
3900
|
firstName: string;
|
|
3797
3901
|
}[] | undefined;
|
|
3798
|
-
|
|
3902
|
+
dialpadUserId?: string | null | undefined;
|
|
3799
3903
|
} | undefined;
|
|
3800
3904
|
};
|
|
3801
3905
|
}>;
|
|
@@ -3815,20 +3919,20 @@ export declare const ownResearchContract: {
|
|
|
3815
3919
|
callType: z.ZodOptional<z.ZodNativeEnum<typeof import("../call-history/call-history.contract").CallType>>;
|
|
3816
3920
|
}, "strip", z.ZodTypeAny, {
|
|
3817
3921
|
name: string;
|
|
3818
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
3819
3922
|
phoneNumber: string;
|
|
3820
|
-
|
|
3923
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
3821
3924
|
notes?: string | undefined;
|
|
3925
|
+
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3822
3926
|
}, {
|
|
3823
3927
|
name: string;
|
|
3824
|
-
rating: import("../common/call-rating.schema").CallRating;
|
|
3825
3928
|
phoneNumber: string;
|
|
3826
|
-
|
|
3929
|
+
rating: import("../common/call-rating.schema").CallRating;
|
|
3827
3930
|
notes?: string | undefined;
|
|
3931
|
+
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
3828
3932
|
}>;
|
|
3829
3933
|
path: "/v2/own-research/call";
|
|
3830
3934
|
responses: {
|
|
3831
|
-
|
|
3935
|
+
401: z.ZodObject<{
|
|
3832
3936
|
statusCode: z.ZodNumber;
|
|
3833
3937
|
message: z.ZodString;
|
|
3834
3938
|
code: z.ZodString;
|
|
@@ -3837,23 +3941,23 @@ export declare const ownResearchContract: {
|
|
|
3837
3941
|
path: z.ZodString;
|
|
3838
3942
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3839
3943
|
}, "strip", z.ZodTypeAny, {
|
|
3840
|
-
message: string;
|
|
3841
3944
|
code: string;
|
|
3842
3945
|
path: string;
|
|
3946
|
+
message: string;
|
|
3843
3947
|
statusCode: number;
|
|
3844
3948
|
timestamp: string;
|
|
3845
3949
|
details?: unknown;
|
|
3846
3950
|
correlationId?: string | undefined;
|
|
3847
3951
|
}, {
|
|
3848
|
-
message: string;
|
|
3849
3952
|
code: string;
|
|
3850
3953
|
path: string;
|
|
3954
|
+
message: string;
|
|
3851
3955
|
statusCode: number;
|
|
3852
3956
|
timestamp: string;
|
|
3853
3957
|
details?: unknown;
|
|
3854
3958
|
correlationId?: string | undefined;
|
|
3855
3959
|
}>;
|
|
3856
|
-
|
|
3960
|
+
400: z.ZodObject<{
|
|
3857
3961
|
statusCode: z.ZodNumber;
|
|
3858
3962
|
message: z.ZodString;
|
|
3859
3963
|
code: z.ZodString;
|
|
@@ -3862,17 +3966,17 @@ export declare const ownResearchContract: {
|
|
|
3862
3966
|
path: z.ZodString;
|
|
3863
3967
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3864
3968
|
}, "strip", z.ZodTypeAny, {
|
|
3865
|
-
message: string;
|
|
3866
3969
|
code: string;
|
|
3867
3970
|
path: string;
|
|
3971
|
+
message: string;
|
|
3868
3972
|
statusCode: number;
|
|
3869
3973
|
timestamp: string;
|
|
3870
3974
|
details?: unknown;
|
|
3871
3975
|
correlationId?: string | undefined;
|
|
3872
3976
|
}, {
|
|
3873
|
-
message: string;
|
|
3874
3977
|
code: string;
|
|
3875
3978
|
path: string;
|
|
3979
|
+
message: string;
|
|
3876
3980
|
statusCode: number;
|
|
3877
3981
|
timestamp: string;
|
|
3878
3982
|
details?: unknown;
|
|
@@ -3887,17 +3991,17 @@ export declare const ownResearchContract: {
|
|
|
3887
3991
|
path: z.ZodString;
|
|
3888
3992
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3889
3993
|
}, "strip", z.ZodTypeAny, {
|
|
3890
|
-
message: string;
|
|
3891
3994
|
code: string;
|
|
3892
3995
|
path: string;
|
|
3996
|
+
message: string;
|
|
3893
3997
|
statusCode: number;
|
|
3894
3998
|
timestamp: string;
|
|
3895
3999
|
details?: unknown;
|
|
3896
4000
|
correlationId?: string | undefined;
|
|
3897
4001
|
}, {
|
|
3898
|
-
message: string;
|
|
3899
4002
|
code: string;
|
|
3900
4003
|
path: string;
|
|
4004
|
+
message: string;
|
|
3901
4005
|
statusCode: number;
|
|
3902
4006
|
timestamp: string;
|
|
3903
4007
|
details?: unknown;
|
|
@@ -3912,17 +4016,17 @@ export declare const ownResearchContract: {
|
|
|
3912
4016
|
path: z.ZodString;
|
|
3913
4017
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
3914
4018
|
}, "strip", z.ZodTypeAny, {
|
|
3915
|
-
message: string;
|
|
3916
4019
|
code: string;
|
|
3917
4020
|
path: string;
|
|
4021
|
+
message: string;
|
|
3918
4022
|
statusCode: number;
|
|
3919
4023
|
timestamp: string;
|
|
3920
4024
|
details?: unknown;
|
|
3921
4025
|
correlationId?: string | undefined;
|
|
3922
4026
|
}, {
|
|
3923
|
-
message: string;
|
|
3924
4027
|
code: string;
|
|
3925
4028
|
path: string;
|
|
4029
|
+
message: string;
|
|
3926
4030
|
statusCode: number;
|
|
3927
4031
|
timestamp: string;
|
|
3928
4032
|
details?: unknown;
|
|
@@ -3983,16 +4087,16 @@ export declare const ownResearchContract: {
|
|
|
3983
4087
|
firstName: string;
|
|
3984
4088
|
}>, "many">>;
|
|
3985
4089
|
}, "strip", z.ZodTypeAny, {
|
|
3986
|
-
id: string;
|
|
3987
4090
|
name: string;
|
|
4091
|
+
id: string;
|
|
3988
4092
|
managers?: {
|
|
3989
4093
|
id: string;
|
|
3990
4094
|
lastName: string;
|
|
3991
4095
|
firstName: string;
|
|
3992
4096
|
}[] | undefined;
|
|
3993
4097
|
}, {
|
|
3994
|
-
id: string;
|
|
3995
4098
|
name: string;
|
|
4099
|
+
id: string;
|
|
3996
4100
|
managers?: {
|
|
3997
4101
|
id: string;
|
|
3998
4102
|
lastName: string;
|
|
@@ -4013,15 +4117,16 @@ export declare const ownResearchContract: {
|
|
|
4013
4117
|
firstName: string;
|
|
4014
4118
|
}>, "many">>;
|
|
4015
4119
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
4120
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
4016
4121
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4017
4122
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4018
4123
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
4019
4124
|
}, "strip", z.ZodTypeAny, {
|
|
4020
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4021
|
-
id: string;
|
|
4022
|
-
updatedAt: string;
|
|
4023
|
-
createdAt: string;
|
|
4024
4125
|
email: string;
|
|
4126
|
+
createdAt: string;
|
|
4127
|
+
updatedAt: string;
|
|
4128
|
+
id: string;
|
|
4129
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4025
4130
|
lastName: string;
|
|
4026
4131
|
firstName: string;
|
|
4027
4132
|
phoneNumbers: {
|
|
@@ -4033,33 +4138,34 @@ export declare const ownResearchContract: {
|
|
|
4033
4138
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4034
4139
|
officeId?: string | null | undefined;
|
|
4035
4140
|
office?: {
|
|
4036
|
-
id: string;
|
|
4037
4141
|
name: string;
|
|
4142
|
+
id: string;
|
|
4038
4143
|
managers?: {
|
|
4039
4144
|
id: string;
|
|
4040
4145
|
lastName: string;
|
|
4041
4146
|
firstName: string;
|
|
4042
4147
|
}[] | undefined;
|
|
4043
4148
|
} | null | undefined;
|
|
4149
|
+
deletedAt?: string | null | undefined;
|
|
4044
4150
|
canImpersonateUsers?: {
|
|
4045
4151
|
id: string;
|
|
4046
4152
|
lastName: string;
|
|
4047
4153
|
firstName: string;
|
|
4048
4154
|
}[] | undefined;
|
|
4049
|
-
|
|
4155
|
+
dialpadUserId?: string | null | undefined;
|
|
4050
4156
|
}, {
|
|
4051
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4052
|
-
id: string;
|
|
4053
|
-
updatedAt: string | Date;
|
|
4054
|
-
createdAt: string | Date;
|
|
4055
4157
|
email: string;
|
|
4158
|
+
createdAt: string | Date;
|
|
4159
|
+
updatedAt: string | Date;
|
|
4160
|
+
id: string;
|
|
4161
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4056
4162
|
lastName: string;
|
|
4057
4163
|
firstName: string;
|
|
4058
4164
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4059
4165
|
officeId?: string | null | undefined;
|
|
4060
4166
|
office?: {
|
|
4061
|
-
id: string;
|
|
4062
4167
|
name: string;
|
|
4168
|
+
id: string;
|
|
4063
4169
|
managers?: {
|
|
4064
4170
|
id: string;
|
|
4065
4171
|
lastName: string;
|
|
@@ -4072,12 +4178,13 @@ export declare const ownResearchContract: {
|
|
|
4072
4178
|
description?: string | null | undefined;
|
|
4073
4179
|
isPrimary?: boolean | undefined;
|
|
4074
4180
|
}[] | undefined;
|
|
4181
|
+
deletedAt?: string | Date | null | undefined;
|
|
4075
4182
|
canImpersonateUsers?: {
|
|
4076
4183
|
id: string;
|
|
4077
4184
|
lastName: string;
|
|
4078
4185
|
firstName: string;
|
|
4079
4186
|
}[] | undefined;
|
|
4080
|
-
|
|
4187
|
+
dialpadUserId?: string | null | undefined;
|
|
4081
4188
|
}>>;
|
|
4082
4189
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4083
4190
|
assignedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -4089,44 +4196,47 @@ export declare const ownResearchContract: {
|
|
|
4089
4196
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4090
4197
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4091
4198
|
}, "strip", z.ZodTypeAny, {
|
|
4092
|
-
id: string;
|
|
4093
4199
|
name: string;
|
|
4094
|
-
updatedAt: string;
|
|
4095
4200
|
createdAt: string;
|
|
4096
|
-
|
|
4201
|
+
updatedAt: string;
|
|
4097
4202
|
id: string;
|
|
4203
|
+
}, {
|
|
4098
4204
|
name: string;
|
|
4099
|
-
updatedAt: string | Date;
|
|
4100
4205
|
createdAt: string | Date;
|
|
4206
|
+
updatedAt: string | Date;
|
|
4207
|
+
id: string;
|
|
4101
4208
|
}>>>;
|
|
4102
4209
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4103
4210
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4211
|
+
callback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4212
|
+
id: z.ZodString;
|
|
4213
|
+
dueAt: z.ZodString;
|
|
4214
|
+
originNotes: z.ZodNullable<z.ZodString>;
|
|
4215
|
+
}, "strip", z.ZodTypeAny, {
|
|
4216
|
+
id: string;
|
|
4217
|
+
dueAt: string;
|
|
4218
|
+
originNotes: string | null;
|
|
4219
|
+
}, {
|
|
4220
|
+
id: string;
|
|
4221
|
+
dueAt: string;
|
|
4222
|
+
originNotes: string | null;
|
|
4223
|
+
}>>>;
|
|
4104
4224
|
}, "strip", z.ZodTypeAny, {
|
|
4105
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4106
|
-
id: string;
|
|
4107
|
-
updatedAt: string;
|
|
4108
4225
|
createdAt: string;
|
|
4109
|
-
|
|
4226
|
+
updatedAt: string;
|
|
4227
|
+
id: string;
|
|
4228
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4110
4229
|
agentId: string | null;
|
|
4111
4230
|
leadId: string;
|
|
4112
4231
|
assignedAt: string;
|
|
4113
4232
|
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;
|
|
4233
|
+
companyId: string | null;
|
|
4124
4234
|
agent?: {
|
|
4125
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4126
|
-
id: string;
|
|
4127
|
-
updatedAt: string;
|
|
4128
|
-
createdAt: string;
|
|
4129
4235
|
email: string;
|
|
4236
|
+
createdAt: string;
|
|
4237
|
+
updatedAt: string;
|
|
4238
|
+
id: string;
|
|
4239
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4130
4240
|
lastName: string;
|
|
4131
4241
|
firstName: string;
|
|
4132
4242
|
phoneNumbers: {
|
|
@@ -4138,54 +4248,60 @@ export declare const ownResearchContract: {
|
|
|
4138
4248
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4139
4249
|
officeId?: string | null | undefined;
|
|
4140
4250
|
office?: {
|
|
4141
|
-
id: string;
|
|
4142
4251
|
name: string;
|
|
4252
|
+
id: string;
|
|
4143
4253
|
managers?: {
|
|
4144
4254
|
id: string;
|
|
4145
4255
|
lastName: string;
|
|
4146
4256
|
firstName: string;
|
|
4147
4257
|
}[] | undefined;
|
|
4148
4258
|
} | null | undefined;
|
|
4259
|
+
deletedAt?: string | null | undefined;
|
|
4149
4260
|
canImpersonateUsers?: {
|
|
4150
4261
|
id: string;
|
|
4151
4262
|
lastName: string;
|
|
4152
4263
|
firstName: string;
|
|
4153
4264
|
}[] | undefined;
|
|
4154
|
-
|
|
4265
|
+
dialpadUserId?: string | null | undefined;
|
|
4266
|
+
} | undefined;
|
|
4267
|
+
lead?: {
|
|
4268
|
+
name: string;
|
|
4269
|
+
phoneNumber: string;
|
|
4155
4270
|
} | undefined;
|
|
4271
|
+
company?: {
|
|
4272
|
+
name: string;
|
|
4273
|
+
createdAt: string;
|
|
4274
|
+
updatedAt: string;
|
|
4275
|
+
id: string;
|
|
4276
|
+
} | null | undefined;
|
|
4277
|
+
callback?: {
|
|
4278
|
+
id: string;
|
|
4279
|
+
dueAt: string;
|
|
4280
|
+
originNotes: string | null;
|
|
4281
|
+
} | null | undefined;
|
|
4156
4282
|
}, {
|
|
4157
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4158
|
-
id: string;
|
|
4159
|
-
updatedAt: string | Date;
|
|
4160
4283
|
createdAt: string | Date;
|
|
4161
|
-
|
|
4284
|
+
updatedAt: string | Date;
|
|
4285
|
+
id: string;
|
|
4286
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4162
4287
|
agentId: string | null;
|
|
4163
4288
|
leadId: string;
|
|
4164
4289
|
assignedAt: string | Date;
|
|
4165
4290
|
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;
|
|
4291
|
+
companyId: string | null;
|
|
4176
4292
|
agent?: {
|
|
4177
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4178
|
-
id: string;
|
|
4179
|
-
updatedAt: string | Date;
|
|
4180
|
-
createdAt: string | Date;
|
|
4181
4293
|
email: string;
|
|
4294
|
+
createdAt: string | Date;
|
|
4295
|
+
updatedAt: string | Date;
|
|
4296
|
+
id: string;
|
|
4297
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4182
4298
|
lastName: string;
|
|
4183
4299
|
firstName: string;
|
|
4184
4300
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4185
4301
|
officeId?: string | null | undefined;
|
|
4186
4302
|
office?: {
|
|
4187
|
-
id: string;
|
|
4188
4303
|
name: string;
|
|
4304
|
+
id: string;
|
|
4189
4305
|
managers?: {
|
|
4190
4306
|
id: string;
|
|
4191
4307
|
lastName: string;
|
|
@@ -4198,13 +4314,29 @@ export declare const ownResearchContract: {
|
|
|
4198
4314
|
description?: string | null | undefined;
|
|
4199
4315
|
isPrimary?: boolean | undefined;
|
|
4200
4316
|
}[] | undefined;
|
|
4317
|
+
deletedAt?: string | Date | null | undefined;
|
|
4201
4318
|
canImpersonateUsers?: {
|
|
4202
4319
|
id: string;
|
|
4203
4320
|
lastName: string;
|
|
4204
4321
|
firstName: string;
|
|
4205
4322
|
}[] | undefined;
|
|
4206
|
-
|
|
4323
|
+
dialpadUserId?: string | null | undefined;
|
|
4324
|
+
} | undefined;
|
|
4325
|
+
lead?: {
|
|
4326
|
+
name: string;
|
|
4327
|
+
phoneNumber: string;
|
|
4207
4328
|
} | undefined;
|
|
4329
|
+
company?: {
|
|
4330
|
+
name: string;
|
|
4331
|
+
createdAt: string | Date;
|
|
4332
|
+
updatedAt: string | Date;
|
|
4333
|
+
id: string;
|
|
4334
|
+
} | null | undefined;
|
|
4335
|
+
callback?: {
|
|
4336
|
+
id: string;
|
|
4337
|
+
dueAt: string;
|
|
4338
|
+
originNotes: string | null;
|
|
4339
|
+
} | null | undefined;
|
|
4208
4340
|
}>>>;
|
|
4209
4341
|
ownResearchLead: z.ZodObject<{
|
|
4210
4342
|
id: z.ZodString;
|
|
@@ -4249,16 +4381,16 @@ export declare const ownResearchContract: {
|
|
|
4249
4381
|
firstName: string;
|
|
4250
4382
|
}>, "many">>;
|
|
4251
4383
|
}, "strip", z.ZodTypeAny, {
|
|
4252
|
-
id: string;
|
|
4253
4384
|
name: string;
|
|
4385
|
+
id: string;
|
|
4254
4386
|
managers?: {
|
|
4255
4387
|
id: string;
|
|
4256
4388
|
lastName: string;
|
|
4257
4389
|
firstName: string;
|
|
4258
4390
|
}[] | undefined;
|
|
4259
4391
|
}, {
|
|
4260
|
-
id: string;
|
|
4261
4392
|
name: string;
|
|
4393
|
+
id: string;
|
|
4262
4394
|
managers?: {
|
|
4263
4395
|
id: string;
|
|
4264
4396
|
lastName: string;
|
|
@@ -4279,15 +4411,16 @@ export declare const ownResearchContract: {
|
|
|
4279
4411
|
firstName: string;
|
|
4280
4412
|
}>, "many">>;
|
|
4281
4413
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
4414
|
+
dialpadUserId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string | null, string>>>;
|
|
4282
4415
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4283
4416
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4284
4417
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
4285
4418
|
}, "strip", z.ZodTypeAny, {
|
|
4286
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4287
|
-
id: string;
|
|
4288
|
-
updatedAt: string;
|
|
4289
|
-
createdAt: string;
|
|
4290
4419
|
email: string;
|
|
4420
|
+
createdAt: string;
|
|
4421
|
+
updatedAt: string;
|
|
4422
|
+
id: string;
|
|
4423
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4291
4424
|
lastName: string;
|
|
4292
4425
|
firstName: string;
|
|
4293
4426
|
phoneNumbers: {
|
|
@@ -4299,33 +4432,34 @@ export declare const ownResearchContract: {
|
|
|
4299
4432
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4300
4433
|
officeId?: string | null | undefined;
|
|
4301
4434
|
office?: {
|
|
4302
|
-
id: string;
|
|
4303
4435
|
name: string;
|
|
4436
|
+
id: string;
|
|
4304
4437
|
managers?: {
|
|
4305
4438
|
id: string;
|
|
4306
4439
|
lastName: string;
|
|
4307
4440
|
firstName: string;
|
|
4308
4441
|
}[] | undefined;
|
|
4309
4442
|
} | null | undefined;
|
|
4443
|
+
deletedAt?: string | null | undefined;
|
|
4310
4444
|
canImpersonateUsers?: {
|
|
4311
4445
|
id: string;
|
|
4312
4446
|
lastName: string;
|
|
4313
4447
|
firstName: string;
|
|
4314
4448
|
}[] | undefined;
|
|
4315
|
-
|
|
4449
|
+
dialpadUserId?: string | null | undefined;
|
|
4316
4450
|
}, {
|
|
4317
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4318
|
-
id: string;
|
|
4319
|
-
updatedAt: string | Date;
|
|
4320
|
-
createdAt: string | Date;
|
|
4321
4451
|
email: string;
|
|
4452
|
+
createdAt: string | Date;
|
|
4453
|
+
updatedAt: string | Date;
|
|
4454
|
+
id: string;
|
|
4455
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4322
4456
|
lastName: string;
|
|
4323
4457
|
firstName: string;
|
|
4324
4458
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4325
4459
|
officeId?: string | null | undefined;
|
|
4326
4460
|
office?: {
|
|
4327
|
-
id: string;
|
|
4328
4461
|
name: string;
|
|
4462
|
+
id: string;
|
|
4329
4463
|
managers?: {
|
|
4330
4464
|
id: string;
|
|
4331
4465
|
lastName: string;
|
|
@@ -4338,12 +4472,13 @@ export declare const ownResearchContract: {
|
|
|
4338
4472
|
description?: string | null | undefined;
|
|
4339
4473
|
isPrimary?: boolean | undefined;
|
|
4340
4474
|
}[] | undefined;
|
|
4475
|
+
deletedAt?: string | Date | null | undefined;
|
|
4341
4476
|
canImpersonateUsers?: {
|
|
4342
4477
|
id: string;
|
|
4343
4478
|
lastName: string;
|
|
4344
4479
|
firstName: string;
|
|
4345
4480
|
}[] | undefined;
|
|
4346
|
-
|
|
4481
|
+
dialpadUserId?: string | null | undefined;
|
|
4347
4482
|
}>>;
|
|
4348
4483
|
name: z.ZodString;
|
|
4349
4484
|
phoneNumber: z.ZodString;
|
|
@@ -4358,26 +4493,26 @@ export declare const ownResearchContract: {
|
|
|
4358
4493
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4359
4494
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
4360
4495
|
}, "strip", z.ZodTypeAny, {
|
|
4361
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
4362
|
-
id: string;
|
|
4363
4496
|
name: string;
|
|
4364
|
-
updatedAt: string;
|
|
4365
4497
|
createdAt: string;
|
|
4366
|
-
|
|
4498
|
+
updatedAt: string;
|
|
4499
|
+
id: string;
|
|
4500
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
4367
4501
|
agentId: string;
|
|
4368
4502
|
phoneNumber: string;
|
|
4369
|
-
lastCalledAt: string | null;
|
|
4370
4503
|
callCount: number;
|
|
4504
|
+
lastCalledAt: string | null;
|
|
4505
|
+
cooldownUntil: string | null;
|
|
4506
|
+
blacklistReason: string | null;
|
|
4371
4507
|
lastCallNotes: string | null;
|
|
4372
4508
|
existsInLeadsTable: boolean;
|
|
4373
|
-
cooldownUntil: string | null;
|
|
4374
4509
|
originalLeadId: string | null;
|
|
4375
4510
|
agent?: {
|
|
4376
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4377
|
-
id: string;
|
|
4378
|
-
updatedAt: string;
|
|
4379
|
-
createdAt: string;
|
|
4380
4511
|
email: string;
|
|
4512
|
+
createdAt: string;
|
|
4513
|
+
updatedAt: string;
|
|
4514
|
+
id: string;
|
|
4515
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4381
4516
|
lastName: string;
|
|
4382
4517
|
firstName: string;
|
|
4383
4518
|
phoneNumbers: {
|
|
@@ -4389,49 +4524,50 @@ export declare const ownResearchContract: {
|
|
|
4389
4524
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4390
4525
|
officeId?: string | null | undefined;
|
|
4391
4526
|
office?: {
|
|
4392
|
-
id: string;
|
|
4393
4527
|
name: string;
|
|
4528
|
+
id: string;
|
|
4394
4529
|
managers?: {
|
|
4395
4530
|
id: string;
|
|
4396
4531
|
lastName: string;
|
|
4397
4532
|
firstName: string;
|
|
4398
4533
|
}[] | undefined;
|
|
4399
4534
|
} | null | undefined;
|
|
4535
|
+
deletedAt?: string | null | undefined;
|
|
4400
4536
|
canImpersonateUsers?: {
|
|
4401
4537
|
id: string;
|
|
4402
4538
|
lastName: string;
|
|
4403
4539
|
firstName: string;
|
|
4404
4540
|
}[] | undefined;
|
|
4405
|
-
|
|
4541
|
+
dialpadUserId?: string | null | undefined;
|
|
4406
4542
|
} | undefined;
|
|
4407
4543
|
}, {
|
|
4408
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
4409
|
-
id: string;
|
|
4410
4544
|
name: string;
|
|
4411
|
-
updatedAt: string | Date;
|
|
4412
4545
|
createdAt: string | Date;
|
|
4413
|
-
|
|
4546
|
+
updatedAt: string | Date;
|
|
4547
|
+
id: string;
|
|
4548
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
4414
4549
|
agentId: string;
|
|
4415
4550
|
phoneNumber: string;
|
|
4416
|
-
lastCalledAt: string | Date | null;
|
|
4417
4551
|
callCount: number;
|
|
4552
|
+
lastCalledAt: string | Date | null;
|
|
4553
|
+
cooldownUntil: string | Date | null;
|
|
4554
|
+
blacklistReason: string | null;
|
|
4418
4555
|
lastCallNotes: string | null;
|
|
4419
4556
|
existsInLeadsTable: boolean;
|
|
4420
|
-
cooldownUntil: string | Date | null;
|
|
4421
4557
|
originalLeadId: string | null;
|
|
4422
4558
|
agent?: {
|
|
4423
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4424
|
-
id: string;
|
|
4425
|
-
updatedAt: string | Date;
|
|
4426
|
-
createdAt: string | Date;
|
|
4427
4559
|
email: string;
|
|
4560
|
+
createdAt: string | Date;
|
|
4561
|
+
updatedAt: string | Date;
|
|
4562
|
+
id: string;
|
|
4563
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4428
4564
|
lastName: string;
|
|
4429
4565
|
firstName: string;
|
|
4430
4566
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4431
4567
|
officeId?: string | null | undefined;
|
|
4432
4568
|
office?: {
|
|
4433
|
-
id: string;
|
|
4434
4569
|
name: string;
|
|
4570
|
+
id: string;
|
|
4435
4571
|
managers?: {
|
|
4436
4572
|
id: string;
|
|
4437
4573
|
lastName: string;
|
|
@@ -4444,36 +4580,37 @@ export declare const ownResearchContract: {
|
|
|
4444
4580
|
description?: string | null | undefined;
|
|
4445
4581
|
isPrimary?: boolean | undefined;
|
|
4446
4582
|
}[] | undefined;
|
|
4583
|
+
deletedAt?: string | Date | null | undefined;
|
|
4447
4584
|
canImpersonateUsers?: {
|
|
4448
4585
|
id: string;
|
|
4449
4586
|
lastName: string;
|
|
4450
4587
|
firstName: string;
|
|
4451
4588
|
}[] | undefined;
|
|
4452
|
-
|
|
4589
|
+
dialpadUserId?: string | null | undefined;
|
|
4453
4590
|
} | undefined;
|
|
4454
4591
|
}>;
|
|
4455
4592
|
}, "strip", z.ZodTypeAny, {
|
|
4456
4593
|
ownResearchLead: {
|
|
4457
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
4458
|
-
id: string;
|
|
4459
4594
|
name: string;
|
|
4460
|
-
updatedAt: string;
|
|
4461
4595
|
createdAt: string;
|
|
4462
|
-
|
|
4596
|
+
updatedAt: string;
|
|
4597
|
+
id: string;
|
|
4598
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
4463
4599
|
agentId: string;
|
|
4464
4600
|
phoneNumber: string;
|
|
4465
|
-
lastCalledAt: string | null;
|
|
4466
4601
|
callCount: number;
|
|
4602
|
+
lastCalledAt: string | null;
|
|
4603
|
+
cooldownUntil: string | null;
|
|
4604
|
+
blacklistReason: string | null;
|
|
4467
4605
|
lastCallNotes: string | null;
|
|
4468
4606
|
existsInLeadsTable: boolean;
|
|
4469
|
-
cooldownUntil: string | null;
|
|
4470
4607
|
originalLeadId: string | null;
|
|
4471
4608
|
agent?: {
|
|
4472
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4473
|
-
id: string;
|
|
4474
|
-
updatedAt: string;
|
|
4475
|
-
createdAt: string;
|
|
4476
4609
|
email: string;
|
|
4610
|
+
createdAt: string;
|
|
4611
|
+
updatedAt: string;
|
|
4612
|
+
id: string;
|
|
4613
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4477
4614
|
lastName: string;
|
|
4478
4615
|
firstName: string;
|
|
4479
4616
|
phoneNumbers: {
|
|
@@ -4485,48 +4622,39 @@ export declare const ownResearchContract: {
|
|
|
4485
4622
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4486
4623
|
officeId?: string | null | undefined;
|
|
4487
4624
|
office?: {
|
|
4488
|
-
id: string;
|
|
4489
4625
|
name: string;
|
|
4626
|
+
id: string;
|
|
4490
4627
|
managers?: {
|
|
4491
4628
|
id: string;
|
|
4492
4629
|
lastName: string;
|
|
4493
4630
|
firstName: string;
|
|
4494
4631
|
}[] | undefined;
|
|
4495
4632
|
} | null | undefined;
|
|
4633
|
+
deletedAt?: string | null | undefined;
|
|
4496
4634
|
canImpersonateUsers?: {
|
|
4497
4635
|
id: string;
|
|
4498
4636
|
lastName: string;
|
|
4499
4637
|
firstName: string;
|
|
4500
4638
|
}[] | undefined;
|
|
4501
|
-
|
|
4639
|
+
dialpadUserId?: string | null | undefined;
|
|
4502
4640
|
} | undefined;
|
|
4503
4641
|
};
|
|
4504
4642
|
assignment?: {
|
|
4505
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4506
|
-
id: string;
|
|
4507
|
-
updatedAt: string;
|
|
4508
4643
|
createdAt: string;
|
|
4509
|
-
|
|
4644
|
+
updatedAt: string;
|
|
4645
|
+
id: string;
|
|
4646
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4510
4647
|
agentId: string | null;
|
|
4511
4648
|
leadId: string;
|
|
4512
4649
|
assignedAt: string;
|
|
4513
4650
|
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;
|
|
4651
|
+
companyId: string | null;
|
|
4524
4652
|
agent?: {
|
|
4525
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4526
|
-
id: string;
|
|
4527
|
-
updatedAt: string;
|
|
4528
|
-
createdAt: string;
|
|
4529
4653
|
email: string;
|
|
4654
|
+
createdAt: string;
|
|
4655
|
+
updatedAt: string;
|
|
4656
|
+
id: string;
|
|
4657
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4530
4658
|
lastName: string;
|
|
4531
4659
|
firstName: string;
|
|
4532
4660
|
phoneNumbers: {
|
|
@@ -4538,51 +4666,67 @@ export declare const ownResearchContract: {
|
|
|
4538
4666
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4539
4667
|
officeId?: string | null | undefined;
|
|
4540
4668
|
office?: {
|
|
4541
|
-
id: string;
|
|
4542
4669
|
name: string;
|
|
4670
|
+
id: string;
|
|
4543
4671
|
managers?: {
|
|
4544
4672
|
id: string;
|
|
4545
4673
|
lastName: string;
|
|
4546
4674
|
firstName: string;
|
|
4547
4675
|
}[] | undefined;
|
|
4548
4676
|
} | null | undefined;
|
|
4677
|
+
deletedAt?: string | null | undefined;
|
|
4549
4678
|
canImpersonateUsers?: {
|
|
4550
4679
|
id: string;
|
|
4551
4680
|
lastName: string;
|
|
4552
4681
|
firstName: string;
|
|
4553
4682
|
}[] | undefined;
|
|
4554
|
-
|
|
4683
|
+
dialpadUserId?: string | null | undefined;
|
|
4684
|
+
} | undefined;
|
|
4685
|
+
lead?: {
|
|
4686
|
+
name: string;
|
|
4687
|
+
phoneNumber: string;
|
|
4555
4688
|
} | undefined;
|
|
4689
|
+
company?: {
|
|
4690
|
+
name: string;
|
|
4691
|
+
createdAt: string;
|
|
4692
|
+
updatedAt: string;
|
|
4693
|
+
id: string;
|
|
4694
|
+
} | null | undefined;
|
|
4695
|
+
callback?: {
|
|
4696
|
+
id: string;
|
|
4697
|
+
dueAt: string;
|
|
4698
|
+
originNotes: string | null;
|
|
4699
|
+
} | null | undefined;
|
|
4556
4700
|
} | null | undefined;
|
|
4557
4701
|
}, {
|
|
4558
4702
|
ownResearchLead: {
|
|
4559
|
-
status: "BLACKLISTED" | "AVAILABLE" | "ASSIGNED" | "PARKED";
|
|
4560
|
-
id: string;
|
|
4561
4703
|
name: string;
|
|
4562
|
-
updatedAt: string | Date;
|
|
4563
4704
|
createdAt: string | Date;
|
|
4564
|
-
|
|
4705
|
+
updatedAt: string | Date;
|
|
4706
|
+
id: string;
|
|
4707
|
+
status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | "PARKED";
|
|
4565
4708
|
agentId: string;
|
|
4566
4709
|
phoneNumber: string;
|
|
4567
|
-
lastCalledAt: string | Date | null;
|
|
4568
4710
|
callCount: number;
|
|
4711
|
+
lastCalledAt: string | Date | null;
|
|
4712
|
+
cooldownUntil: string | Date | null;
|
|
4713
|
+
blacklistReason: string | null;
|
|
4569
4714
|
lastCallNotes: string | null;
|
|
4570
4715
|
existsInLeadsTable: boolean;
|
|
4571
|
-
cooldownUntil: string | Date | null;
|
|
4572
4716
|
originalLeadId: string | null;
|
|
4573
4717
|
agent?: {
|
|
4574
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4575
|
-
id: string;
|
|
4576
|
-
updatedAt: string | Date;
|
|
4577
|
-
createdAt: string | Date;
|
|
4578
4718
|
email: string;
|
|
4719
|
+
createdAt: string | Date;
|
|
4720
|
+
updatedAt: string | Date;
|
|
4721
|
+
id: string;
|
|
4722
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4579
4723
|
lastName: string;
|
|
4580
4724
|
firstName: string;
|
|
4581
4725
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4582
4726
|
officeId?: string | null | undefined;
|
|
4583
4727
|
office?: {
|
|
4584
|
-
id: string;
|
|
4585
4728
|
name: string;
|
|
4729
|
+
id: string;
|
|
4586
4730
|
managers?: {
|
|
4587
4731
|
id: string;
|
|
4588
4732
|
lastName: string;
|
|
@@ -4595,47 +4739,38 @@ export declare const ownResearchContract: {
|
|
|
4595
4739
|
description?: string | null | undefined;
|
|
4596
4740
|
isPrimary?: boolean | undefined;
|
|
4597
4741
|
}[] | undefined;
|
|
4742
|
+
deletedAt?: string | Date | null | undefined;
|
|
4598
4743
|
canImpersonateUsers?: {
|
|
4599
4744
|
id: string;
|
|
4600
4745
|
lastName: string;
|
|
4601
4746
|
firstName: string;
|
|
4602
4747
|
}[] | undefined;
|
|
4603
|
-
|
|
4748
|
+
dialpadUserId?: string | null | undefined;
|
|
4604
4749
|
} | undefined;
|
|
4605
4750
|
};
|
|
4606
4751
|
assignment?: {
|
|
4607
|
-
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4608
|
-
id: string;
|
|
4609
|
-
updatedAt: string | Date;
|
|
4610
4752
|
createdAt: string | Date;
|
|
4611
|
-
|
|
4753
|
+
updatedAt: string | Date;
|
|
4754
|
+
id: string;
|
|
4755
|
+
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
4612
4756
|
agentId: string | null;
|
|
4613
4757
|
leadId: string;
|
|
4614
4758
|
assignedAt: string | Date;
|
|
4615
4759
|
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;
|
|
4760
|
+
companyId: string | null;
|
|
4626
4761
|
agent?: {
|
|
4627
|
-
status: "ACTIVE" | "INACTIVE";
|
|
4628
|
-
id: string;
|
|
4629
|
-
updatedAt: string | Date;
|
|
4630
|
-
createdAt: string | Date;
|
|
4631
4762
|
email: string;
|
|
4763
|
+
createdAt: string | Date;
|
|
4764
|
+
updatedAt: string | Date;
|
|
4765
|
+
id: string;
|
|
4766
|
+
status: "ACTIVE" | "INACTIVE";
|
|
4632
4767
|
lastName: string;
|
|
4633
4768
|
firstName: string;
|
|
4634
4769
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
4635
4770
|
officeId?: string | null | undefined;
|
|
4636
4771
|
office?: {
|
|
4637
|
-
id: string;
|
|
4638
4772
|
name: string;
|
|
4773
|
+
id: string;
|
|
4639
4774
|
managers?: {
|
|
4640
4775
|
id: string;
|
|
4641
4776
|
lastName: string;
|
|
@@ -4648,13 +4783,29 @@ export declare const ownResearchContract: {
|
|
|
4648
4783
|
description?: string | null | undefined;
|
|
4649
4784
|
isPrimary?: boolean | undefined;
|
|
4650
4785
|
}[] | undefined;
|
|
4786
|
+
deletedAt?: string | Date | null | undefined;
|
|
4651
4787
|
canImpersonateUsers?: {
|
|
4652
4788
|
id: string;
|
|
4653
4789
|
lastName: string;
|
|
4654
4790
|
firstName: string;
|
|
4655
4791
|
}[] | undefined;
|
|
4656
|
-
|
|
4792
|
+
dialpadUserId?: string | null | undefined;
|
|
4793
|
+
} | undefined;
|
|
4794
|
+
lead?: {
|
|
4795
|
+
name: string;
|
|
4796
|
+
phoneNumber: string;
|
|
4657
4797
|
} | undefined;
|
|
4798
|
+
company?: {
|
|
4799
|
+
name: string;
|
|
4800
|
+
createdAt: string | Date;
|
|
4801
|
+
updatedAt: string | Date;
|
|
4802
|
+
id: string;
|
|
4803
|
+
} | null | undefined;
|
|
4804
|
+
callback?: {
|
|
4805
|
+
id: string;
|
|
4806
|
+
dueAt: string;
|
|
4807
|
+
originNotes: string | null;
|
|
4808
|
+
} | null | undefined;
|
|
4658
4809
|
} | null | undefined;
|
|
4659
4810
|
}>;
|
|
4660
4811
|
};
|