@dakkitor/api-contracts 1.1.136 → 1.1.138
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 +13 -19
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +18 -33
- package/dist/abilities/admin.abilities.json +10 -0
- package/dist/abilities/bot.abilities.json +4 -0
- package/dist/abilities/first-agent.abilities.json +21 -2
- package/dist/abilities/kpi.abilities.json +4 -0
- package/dist/abilities/second-agent.abilities.json +13 -1
- package/dist/abilities/team-leads.json +4 -0
- package/dist/actives/actives.contract.d.ts +7776 -5918
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +2521 -658
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.js +56 -2
- package/dist/auth/auth.contract.d.ts +16 -16
- package/dist/bookings/bookings.contract.d.ts +30403 -22293
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +161 -37
- package/dist/call-history/call-history.contract.d.ts +814 -640
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.d.ts +306 -306
- package/dist/clients/clients.contract.d.ts +189 -123
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +50 -6
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2136 -1752
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +2039 -1658
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.js +2 -2
- package/dist/common/common-schemas.d.ts +23 -4
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +31 -1
- package/dist/companies/companies.contract.d.ts +28 -28
- package/dist/cron-executions/cron-executions.contract.d.ts +26 -26
- package/dist/curated-workers/curated-workers.contract.d.ts +762 -500
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +10 -0
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +173 -803
- package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -1
- package/dist/dashboards/agent-daily-metrics.contract.js +45 -108
- package/dist/dashboards/dashboard-widgets.contract.d.ts +398 -292
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +77 -32
- package/dist/dashboards/dashboard.contract.d.ts +215 -305
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/jobs/jobs.contract.d.ts +3932 -3272
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +1340 -0
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts.map +1 -0
- package/dist/kpi-impersonation/kpi-impersonation.contract.js +146 -0
- package/dist/lead-assignments/lead-assignments.contract.d.ts +754 -562
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +900 -408
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.js +57 -1
- package/dist/leads/leads.contract.d.ts +228 -228
- package/dist/locations/locations.contract.d.ts +22 -22
- package/dist/offices/offices.contract.d.ts +794 -0
- package/dist/offices/offices.contract.d.ts.map +1 -0
- package/dist/offices/offices.contract.js +93 -0
- package/dist/own-research/own-research.contract.d.ts +854 -563
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/users/users.contract.d.ts +345 -245
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +7 -25
- package/dist/workers/workers.contract.d.ts +1102 -702
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +13 -0
- package/package.json +1 -1
|
@@ -40,11 +40,11 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
40
40
|
name: z.ZodString;
|
|
41
41
|
phoneNumber: z.ZodString;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
name: string;
|
|
44
43
|
phoneNumber: string;
|
|
45
|
-
}, {
|
|
46
44
|
name: string;
|
|
45
|
+
}, {
|
|
47
46
|
phoneNumber: string;
|
|
47
|
+
name: string;
|
|
48
48
|
}>>;
|
|
49
49
|
agentId: z.ZodNullable<z.ZodString>;
|
|
50
50
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -69,61 +69,76 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
69
69
|
isPrimary?: boolean | undefined;
|
|
70
70
|
}>, "many">>>;
|
|
71
71
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
72
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
72
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
}, {
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
}>>>;
|
|
73
82
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
83
|
id: z.ZodString;
|
|
75
84
|
firstName: z.ZodString;
|
|
76
85
|
lastName: z.ZodString;
|
|
77
86
|
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
id: string;
|
|
79
|
-
firstName: string;
|
|
80
87
|
lastName: string;
|
|
81
|
-
}, {
|
|
82
|
-
id: string;
|
|
83
88
|
firstName: string;
|
|
89
|
+
id: string;
|
|
90
|
+
}, {
|
|
84
91
|
lastName: string;
|
|
92
|
+
firstName: string;
|
|
93
|
+
id: string;
|
|
85
94
|
}>, "many">>;
|
|
86
95
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
87
96
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
88
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
lastName: string;
|
|
99
|
+
firstName: string;
|
|
89
100
|
email: string;
|
|
90
|
-
id: string;
|
|
91
101
|
createdAt: string;
|
|
92
|
-
|
|
93
|
-
firstName: string;
|
|
94
|
-
lastName: string;
|
|
102
|
+
id: string;
|
|
95
103
|
phoneNumbers: {
|
|
96
104
|
id: string;
|
|
97
105
|
phoneNumber: string;
|
|
98
106
|
isPrimary: boolean;
|
|
99
107
|
description?: string | null | undefined;
|
|
100
108
|
}[];
|
|
109
|
+
updatedAt: string;
|
|
110
|
+
office?: {
|
|
111
|
+
id: string;
|
|
112
|
+
name: string;
|
|
113
|
+
} | null | undefined;
|
|
101
114
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
102
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
103
115
|
canImpersonateUsers?: {
|
|
104
|
-
id: string;
|
|
105
|
-
firstName: string;
|
|
106
116
|
lastName: string;
|
|
117
|
+
firstName: string;
|
|
118
|
+
id: string;
|
|
107
119
|
}[] | undefined;
|
|
108
120
|
}, {
|
|
121
|
+
lastName: string;
|
|
122
|
+
firstName: string;
|
|
109
123
|
email: string;
|
|
110
|
-
id: string;
|
|
111
124
|
createdAt: string | Date;
|
|
125
|
+
id: string;
|
|
112
126
|
updatedAt: string | Date;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
127
|
+
office?: {
|
|
128
|
+
id: string;
|
|
129
|
+
name: string;
|
|
130
|
+
} | null | undefined;
|
|
116
131
|
phoneNumbers?: {
|
|
117
132
|
id: string;
|
|
118
133
|
phoneNumber: string;
|
|
119
134
|
description?: string | null | undefined;
|
|
120
135
|
isPrimary?: boolean | undefined;
|
|
121
136
|
}[] | undefined;
|
|
122
|
-
|
|
137
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
123
138
|
canImpersonateUsers?: {
|
|
124
|
-
id: string;
|
|
125
|
-
firstName: string;
|
|
126
139
|
lastName: string;
|
|
140
|
+
firstName: string;
|
|
141
|
+
id: string;
|
|
127
142
|
}[] | undefined;
|
|
128
143
|
}>>;
|
|
129
144
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -136,98 +151,104 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
136
151
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
137
152
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
138
153
|
}, "strip", z.ZodTypeAny, {
|
|
139
|
-
name: string;
|
|
140
|
-
id: string;
|
|
141
154
|
createdAt: string;
|
|
155
|
+
id: string;
|
|
156
|
+
name: string;
|
|
142
157
|
updatedAt: string;
|
|
143
158
|
}, {
|
|
144
|
-
name: string;
|
|
145
|
-
id: string;
|
|
146
159
|
createdAt: string | Date;
|
|
160
|
+
id: string;
|
|
161
|
+
name: string;
|
|
147
162
|
updatedAt: string | Date;
|
|
148
163
|
}>>>;
|
|
149
164
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
150
165
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
151
166
|
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
createdAt: string;
|
|
152
168
|
id: string;
|
|
153
169
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
154
|
-
agentId: string | null;
|
|
155
|
-
createdAt: string;
|
|
156
170
|
updatedAt: string;
|
|
171
|
+
agentId: string | null;
|
|
157
172
|
leadId: string;
|
|
158
173
|
assignedAt: string;
|
|
159
174
|
assignedBy: string | null;
|
|
160
175
|
companyId: string | null;
|
|
161
|
-
lead?: {
|
|
162
|
-
name: string;
|
|
163
|
-
phoneNumber: string;
|
|
164
|
-
} | undefined;
|
|
165
176
|
agent?: {
|
|
177
|
+
lastName: string;
|
|
178
|
+
firstName: string;
|
|
166
179
|
email: string;
|
|
167
|
-
id: string;
|
|
168
180
|
createdAt: string;
|
|
169
|
-
|
|
170
|
-
firstName: string;
|
|
171
|
-
lastName: string;
|
|
181
|
+
id: string;
|
|
172
182
|
phoneNumbers: {
|
|
173
183
|
id: string;
|
|
174
184
|
phoneNumber: string;
|
|
175
185
|
isPrimary: boolean;
|
|
176
186
|
description?: string | null | undefined;
|
|
177
187
|
}[];
|
|
188
|
+
updatedAt: string;
|
|
189
|
+
office?: {
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
} | null | undefined;
|
|
178
193
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
179
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
180
194
|
canImpersonateUsers?: {
|
|
181
|
-
id: string;
|
|
182
|
-
firstName: string;
|
|
183
195
|
lastName: string;
|
|
196
|
+
firstName: string;
|
|
197
|
+
id: string;
|
|
184
198
|
}[] | undefined;
|
|
185
199
|
} | undefined;
|
|
186
|
-
|
|
200
|
+
lead?: {
|
|
201
|
+
phoneNumber: string;
|
|
187
202
|
name: string;
|
|
188
|
-
|
|
203
|
+
} | undefined;
|
|
204
|
+
company?: {
|
|
189
205
|
createdAt: string;
|
|
206
|
+
id: string;
|
|
207
|
+
name: string;
|
|
190
208
|
updatedAt: string;
|
|
191
209
|
} | null | undefined;
|
|
192
210
|
}, {
|
|
211
|
+
createdAt: string | Date;
|
|
193
212
|
id: string;
|
|
194
213
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
195
|
-
agentId: string | null;
|
|
196
|
-
createdAt: string | Date;
|
|
197
214
|
updatedAt: string | Date;
|
|
215
|
+
agentId: string | null;
|
|
198
216
|
leadId: string;
|
|
199
217
|
assignedAt: string | Date;
|
|
200
218
|
assignedBy: string | null;
|
|
201
219
|
companyId: string | null;
|
|
202
|
-
lead?: {
|
|
203
|
-
name: string;
|
|
204
|
-
phoneNumber: string;
|
|
205
|
-
} | undefined;
|
|
206
220
|
agent?: {
|
|
221
|
+
lastName: string;
|
|
222
|
+
firstName: string;
|
|
207
223
|
email: string;
|
|
208
|
-
id: string;
|
|
209
224
|
createdAt: string | Date;
|
|
225
|
+
id: string;
|
|
210
226
|
updatedAt: string | Date;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
227
|
+
office?: {
|
|
228
|
+
id: string;
|
|
229
|
+
name: string;
|
|
230
|
+
} | null | undefined;
|
|
214
231
|
phoneNumbers?: {
|
|
215
232
|
id: string;
|
|
216
233
|
phoneNumber: string;
|
|
217
234
|
description?: string | null | undefined;
|
|
218
235
|
isPrimary?: boolean | undefined;
|
|
219
236
|
}[] | undefined;
|
|
220
|
-
|
|
237
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
221
238
|
canImpersonateUsers?: {
|
|
222
|
-
id: string;
|
|
223
|
-
firstName: string;
|
|
224
239
|
lastName: string;
|
|
240
|
+
firstName: string;
|
|
241
|
+
id: string;
|
|
225
242
|
}[] | undefined;
|
|
226
243
|
} | undefined;
|
|
227
|
-
|
|
244
|
+
lead?: {
|
|
245
|
+
phoneNumber: string;
|
|
228
246
|
name: string;
|
|
229
|
-
|
|
247
|
+
} | undefined;
|
|
248
|
+
company?: {
|
|
230
249
|
createdAt: string | Date;
|
|
250
|
+
id: string;
|
|
251
|
+
name: string;
|
|
231
252
|
updatedAt: string | Date;
|
|
232
253
|
} | null | undefined;
|
|
233
254
|
}>>>;
|
|
@@ -240,112 +261,118 @@ export declare const CallHistorySchema: z.ZodObject<{
|
|
|
240
261
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
241
262
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
242
263
|
}, "strip", z.ZodTypeAny, {
|
|
243
|
-
id: string;
|
|
244
264
|
createdAt: string;
|
|
265
|
+
id: string;
|
|
245
266
|
updatedAt: string;
|
|
246
267
|
rating: CallRating;
|
|
247
268
|
notes: string | null;
|
|
269
|
+
callType: CallType;
|
|
248
270
|
assignmentId: string;
|
|
249
271
|
callDate: string;
|
|
250
|
-
callType: CallType;
|
|
251
|
-
ratingWeight: number;
|
|
252
272
|
leadSource: LeadSource;
|
|
273
|
+
ratingWeight: number;
|
|
253
274
|
agentId?: string | undefined;
|
|
254
275
|
leadId?: string | undefined;
|
|
255
276
|
assignment?: {
|
|
277
|
+
createdAt: string;
|
|
256
278
|
id: string;
|
|
257
279
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
258
|
-
agentId: string | null;
|
|
259
|
-
createdAt: string;
|
|
260
280
|
updatedAt: string;
|
|
281
|
+
agentId: string | null;
|
|
261
282
|
leadId: string;
|
|
262
283
|
assignedAt: string;
|
|
263
284
|
assignedBy: string | null;
|
|
264
285
|
companyId: string | null;
|
|
265
|
-
lead?: {
|
|
266
|
-
name: string;
|
|
267
|
-
phoneNumber: string;
|
|
268
|
-
} | undefined;
|
|
269
286
|
agent?: {
|
|
287
|
+
lastName: string;
|
|
288
|
+
firstName: string;
|
|
270
289
|
email: string;
|
|
271
|
-
id: string;
|
|
272
290
|
createdAt: string;
|
|
273
|
-
|
|
274
|
-
firstName: string;
|
|
275
|
-
lastName: string;
|
|
291
|
+
id: string;
|
|
276
292
|
phoneNumbers: {
|
|
277
293
|
id: string;
|
|
278
294
|
phoneNumber: string;
|
|
279
295
|
isPrimary: boolean;
|
|
280
296
|
description?: string | null | undefined;
|
|
281
297
|
}[];
|
|
298
|
+
updatedAt: string;
|
|
299
|
+
office?: {
|
|
300
|
+
id: string;
|
|
301
|
+
name: string;
|
|
302
|
+
} | null | undefined;
|
|
282
303
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
283
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
284
304
|
canImpersonateUsers?: {
|
|
285
|
-
id: string;
|
|
286
|
-
firstName: string;
|
|
287
305
|
lastName: string;
|
|
306
|
+
firstName: string;
|
|
307
|
+
id: string;
|
|
288
308
|
}[] | undefined;
|
|
289
309
|
} | undefined;
|
|
290
|
-
|
|
310
|
+
lead?: {
|
|
311
|
+
phoneNumber: string;
|
|
291
312
|
name: string;
|
|
292
|
-
|
|
313
|
+
} | undefined;
|
|
314
|
+
company?: {
|
|
293
315
|
createdAt: string;
|
|
316
|
+
id: string;
|
|
317
|
+
name: string;
|
|
294
318
|
updatedAt: string;
|
|
295
319
|
} | null | undefined;
|
|
296
320
|
} | null | undefined;
|
|
297
321
|
}, {
|
|
298
|
-
id: string;
|
|
299
322
|
createdAt: string | Date;
|
|
323
|
+
id: string;
|
|
300
324
|
updatedAt: string | Date;
|
|
301
325
|
rating: CallRating;
|
|
302
326
|
notes: string | null;
|
|
327
|
+
callType: CallType;
|
|
303
328
|
assignmentId: string;
|
|
304
329
|
callDate: string | Date;
|
|
305
|
-
callType: CallType;
|
|
306
|
-
ratingWeight: number;
|
|
307
330
|
leadSource: LeadSource;
|
|
331
|
+
ratingWeight: number;
|
|
308
332
|
agentId?: string | undefined;
|
|
309
333
|
leadId?: string | undefined;
|
|
310
334
|
assignment?: {
|
|
335
|
+
createdAt: string | Date;
|
|
311
336
|
id: string;
|
|
312
337
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
313
|
-
agentId: string | null;
|
|
314
|
-
createdAt: string | Date;
|
|
315
338
|
updatedAt: string | Date;
|
|
339
|
+
agentId: string | null;
|
|
316
340
|
leadId: string;
|
|
317
341
|
assignedAt: string | Date;
|
|
318
342
|
assignedBy: string | null;
|
|
319
343
|
companyId: string | null;
|
|
320
|
-
lead?: {
|
|
321
|
-
name: string;
|
|
322
|
-
phoneNumber: string;
|
|
323
|
-
} | undefined;
|
|
324
344
|
agent?: {
|
|
345
|
+
lastName: string;
|
|
346
|
+
firstName: string;
|
|
325
347
|
email: string;
|
|
326
|
-
id: string;
|
|
327
348
|
createdAt: string | Date;
|
|
349
|
+
id: string;
|
|
328
350
|
updatedAt: string | Date;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
351
|
+
office?: {
|
|
352
|
+
id: string;
|
|
353
|
+
name: string;
|
|
354
|
+
} | null | undefined;
|
|
332
355
|
phoneNumbers?: {
|
|
333
356
|
id: string;
|
|
334
357
|
phoneNumber: string;
|
|
335
358
|
description?: string | null | undefined;
|
|
336
359
|
isPrimary?: boolean | undefined;
|
|
337
360
|
}[] | undefined;
|
|
338
|
-
|
|
361
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
339
362
|
canImpersonateUsers?: {
|
|
340
|
-
id: string;
|
|
341
|
-
firstName: string;
|
|
342
363
|
lastName: string;
|
|
364
|
+
firstName: string;
|
|
365
|
+
id: string;
|
|
343
366
|
}[] | undefined;
|
|
344
367
|
} | undefined;
|
|
345
|
-
|
|
368
|
+
lead?: {
|
|
369
|
+
phoneNumber: string;
|
|
346
370
|
name: string;
|
|
347
|
-
|
|
371
|
+
} | undefined;
|
|
372
|
+
company?: {
|
|
348
373
|
createdAt: string | Date;
|
|
374
|
+
id: string;
|
|
375
|
+
name: string;
|
|
349
376
|
updatedAt: string | Date;
|
|
350
377
|
} | null | undefined;
|
|
351
378
|
} | null | undefined;
|
|
@@ -363,11 +390,11 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
363
390
|
name: z.ZodString;
|
|
364
391
|
phoneNumber: z.ZodString;
|
|
365
392
|
}, "strip", z.ZodTypeAny, {
|
|
366
|
-
name: string;
|
|
367
393
|
phoneNumber: string;
|
|
368
|
-
}, {
|
|
369
394
|
name: string;
|
|
395
|
+
}, {
|
|
370
396
|
phoneNumber: string;
|
|
397
|
+
name: string;
|
|
371
398
|
}>>;
|
|
372
399
|
agentId: z.ZodNullable<z.ZodString>;
|
|
373
400
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -392,61 +419,76 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
392
419
|
isPrimary?: boolean | undefined;
|
|
393
420
|
}>, "many">>>;
|
|
394
421
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
395
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
422
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
423
|
+
id: z.ZodString;
|
|
424
|
+
name: z.ZodString;
|
|
425
|
+
}, "strip", z.ZodTypeAny, {
|
|
426
|
+
id: string;
|
|
427
|
+
name: string;
|
|
428
|
+
}, {
|
|
429
|
+
id: string;
|
|
430
|
+
name: string;
|
|
431
|
+
}>>>;
|
|
396
432
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
397
433
|
id: z.ZodString;
|
|
398
434
|
firstName: z.ZodString;
|
|
399
435
|
lastName: z.ZodString;
|
|
400
436
|
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
id: string;
|
|
402
|
-
firstName: string;
|
|
403
437
|
lastName: string;
|
|
404
|
-
}, {
|
|
405
|
-
id: string;
|
|
406
438
|
firstName: string;
|
|
439
|
+
id: string;
|
|
440
|
+
}, {
|
|
407
441
|
lastName: string;
|
|
442
|
+
firstName: string;
|
|
443
|
+
id: string;
|
|
408
444
|
}>, "many">>;
|
|
409
445
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
410
446
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
411
447
|
}, "strip", z.ZodTypeAny, {
|
|
448
|
+
lastName: string;
|
|
449
|
+
firstName: string;
|
|
412
450
|
email: string;
|
|
413
|
-
id: string;
|
|
414
451
|
createdAt: string;
|
|
415
|
-
|
|
416
|
-
firstName: string;
|
|
417
|
-
lastName: string;
|
|
452
|
+
id: string;
|
|
418
453
|
phoneNumbers: {
|
|
419
454
|
id: string;
|
|
420
455
|
phoneNumber: string;
|
|
421
456
|
isPrimary: boolean;
|
|
422
457
|
description?: string | null | undefined;
|
|
423
458
|
}[];
|
|
459
|
+
updatedAt: string;
|
|
460
|
+
office?: {
|
|
461
|
+
id: string;
|
|
462
|
+
name: string;
|
|
463
|
+
} | null | undefined;
|
|
424
464
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
425
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
426
465
|
canImpersonateUsers?: {
|
|
427
|
-
id: string;
|
|
428
|
-
firstName: string;
|
|
429
466
|
lastName: string;
|
|
467
|
+
firstName: string;
|
|
468
|
+
id: string;
|
|
430
469
|
}[] | undefined;
|
|
431
470
|
}, {
|
|
471
|
+
lastName: string;
|
|
472
|
+
firstName: string;
|
|
432
473
|
email: string;
|
|
433
|
-
id: string;
|
|
434
474
|
createdAt: string | Date;
|
|
475
|
+
id: string;
|
|
435
476
|
updatedAt: string | Date;
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
477
|
+
office?: {
|
|
478
|
+
id: string;
|
|
479
|
+
name: string;
|
|
480
|
+
} | null | undefined;
|
|
439
481
|
phoneNumbers?: {
|
|
440
482
|
id: string;
|
|
441
483
|
phoneNumber: string;
|
|
442
484
|
description?: string | null | undefined;
|
|
443
485
|
isPrimary?: boolean | undefined;
|
|
444
486
|
}[] | undefined;
|
|
445
|
-
|
|
487
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
446
488
|
canImpersonateUsers?: {
|
|
447
|
-
id: string;
|
|
448
|
-
firstName: string;
|
|
449
489
|
lastName: string;
|
|
490
|
+
firstName: string;
|
|
491
|
+
id: string;
|
|
450
492
|
}[] | undefined;
|
|
451
493
|
}>>;
|
|
452
494
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -459,98 +501,104 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
459
501
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
460
502
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
461
503
|
}, "strip", z.ZodTypeAny, {
|
|
462
|
-
name: string;
|
|
463
|
-
id: string;
|
|
464
504
|
createdAt: string;
|
|
505
|
+
id: string;
|
|
506
|
+
name: string;
|
|
465
507
|
updatedAt: string;
|
|
466
508
|
}, {
|
|
467
|
-
name: string;
|
|
468
|
-
id: string;
|
|
469
509
|
createdAt: string | Date;
|
|
510
|
+
id: string;
|
|
511
|
+
name: string;
|
|
470
512
|
updatedAt: string | Date;
|
|
471
513
|
}>>>;
|
|
472
514
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
473
515
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
474
516
|
}, "strip", z.ZodTypeAny, {
|
|
517
|
+
createdAt: string;
|
|
475
518
|
id: string;
|
|
476
519
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
477
|
-
agentId: string | null;
|
|
478
|
-
createdAt: string;
|
|
479
520
|
updatedAt: string;
|
|
521
|
+
agentId: string | null;
|
|
480
522
|
leadId: string;
|
|
481
523
|
assignedAt: string;
|
|
482
524
|
assignedBy: string | null;
|
|
483
525
|
companyId: string | null;
|
|
484
|
-
lead?: {
|
|
485
|
-
name: string;
|
|
486
|
-
phoneNumber: string;
|
|
487
|
-
} | undefined;
|
|
488
526
|
agent?: {
|
|
527
|
+
lastName: string;
|
|
528
|
+
firstName: string;
|
|
489
529
|
email: string;
|
|
490
|
-
id: string;
|
|
491
530
|
createdAt: string;
|
|
492
|
-
|
|
493
|
-
firstName: string;
|
|
494
|
-
lastName: string;
|
|
531
|
+
id: string;
|
|
495
532
|
phoneNumbers: {
|
|
496
533
|
id: string;
|
|
497
534
|
phoneNumber: string;
|
|
498
535
|
isPrimary: boolean;
|
|
499
536
|
description?: string | null | undefined;
|
|
500
537
|
}[];
|
|
538
|
+
updatedAt: string;
|
|
539
|
+
office?: {
|
|
540
|
+
id: string;
|
|
541
|
+
name: string;
|
|
542
|
+
} | null | undefined;
|
|
501
543
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
502
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
503
544
|
canImpersonateUsers?: {
|
|
504
|
-
id: string;
|
|
505
|
-
firstName: string;
|
|
506
545
|
lastName: string;
|
|
546
|
+
firstName: string;
|
|
547
|
+
id: string;
|
|
507
548
|
}[] | undefined;
|
|
508
549
|
} | undefined;
|
|
509
|
-
|
|
550
|
+
lead?: {
|
|
551
|
+
phoneNumber: string;
|
|
510
552
|
name: string;
|
|
511
|
-
|
|
553
|
+
} | undefined;
|
|
554
|
+
company?: {
|
|
512
555
|
createdAt: string;
|
|
556
|
+
id: string;
|
|
557
|
+
name: string;
|
|
513
558
|
updatedAt: string;
|
|
514
559
|
} | null | undefined;
|
|
515
560
|
}, {
|
|
561
|
+
createdAt: string | Date;
|
|
516
562
|
id: string;
|
|
517
563
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
518
|
-
agentId: string | null;
|
|
519
|
-
createdAt: string | Date;
|
|
520
564
|
updatedAt: string | Date;
|
|
565
|
+
agentId: string | null;
|
|
521
566
|
leadId: string;
|
|
522
567
|
assignedAt: string | Date;
|
|
523
568
|
assignedBy: string | null;
|
|
524
569
|
companyId: string | null;
|
|
525
|
-
lead?: {
|
|
526
|
-
name: string;
|
|
527
|
-
phoneNumber: string;
|
|
528
|
-
} | undefined;
|
|
529
570
|
agent?: {
|
|
571
|
+
lastName: string;
|
|
572
|
+
firstName: string;
|
|
530
573
|
email: string;
|
|
531
|
-
id: string;
|
|
532
574
|
createdAt: string | Date;
|
|
575
|
+
id: string;
|
|
533
576
|
updatedAt: string | Date;
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
577
|
+
office?: {
|
|
578
|
+
id: string;
|
|
579
|
+
name: string;
|
|
580
|
+
} | null | undefined;
|
|
537
581
|
phoneNumbers?: {
|
|
538
582
|
id: string;
|
|
539
583
|
phoneNumber: string;
|
|
540
584
|
description?: string | null | undefined;
|
|
541
585
|
isPrimary?: boolean | undefined;
|
|
542
586
|
}[] | undefined;
|
|
543
|
-
|
|
587
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
544
588
|
canImpersonateUsers?: {
|
|
545
|
-
id: string;
|
|
546
|
-
firstName: string;
|
|
547
589
|
lastName: string;
|
|
590
|
+
firstName: string;
|
|
591
|
+
id: string;
|
|
548
592
|
}[] | undefined;
|
|
549
593
|
} | undefined;
|
|
550
|
-
|
|
594
|
+
lead?: {
|
|
595
|
+
phoneNumber: string;
|
|
551
596
|
name: string;
|
|
552
|
-
|
|
597
|
+
} | undefined;
|
|
598
|
+
company?: {
|
|
553
599
|
createdAt: string | Date;
|
|
600
|
+
id: string;
|
|
601
|
+
name: string;
|
|
554
602
|
updatedAt: string | Date;
|
|
555
603
|
} | null | undefined;
|
|
556
604
|
}>>>;
|
|
@@ -563,112 +611,118 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
563
611
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
564
612
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
565
613
|
}, "strip", z.ZodTypeAny, {
|
|
566
|
-
id: string;
|
|
567
614
|
createdAt: string;
|
|
615
|
+
id: string;
|
|
568
616
|
updatedAt: string;
|
|
569
617
|
rating: CallRating;
|
|
570
618
|
notes: string | null;
|
|
619
|
+
callType: CallType;
|
|
571
620
|
assignmentId: string;
|
|
572
621
|
callDate: string;
|
|
573
|
-
callType: CallType;
|
|
574
|
-
ratingWeight: number;
|
|
575
622
|
leadSource: LeadSource;
|
|
623
|
+
ratingWeight: number;
|
|
576
624
|
agentId?: string | undefined;
|
|
577
625
|
leadId?: string | undefined;
|
|
578
626
|
assignment?: {
|
|
627
|
+
createdAt: string;
|
|
579
628
|
id: string;
|
|
580
629
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
581
|
-
agentId: string | null;
|
|
582
|
-
createdAt: string;
|
|
583
630
|
updatedAt: string;
|
|
631
|
+
agentId: string | null;
|
|
584
632
|
leadId: string;
|
|
585
633
|
assignedAt: string;
|
|
586
634
|
assignedBy: string | null;
|
|
587
635
|
companyId: string | null;
|
|
588
|
-
lead?: {
|
|
589
|
-
name: string;
|
|
590
|
-
phoneNumber: string;
|
|
591
|
-
} | undefined;
|
|
592
636
|
agent?: {
|
|
637
|
+
lastName: string;
|
|
638
|
+
firstName: string;
|
|
593
639
|
email: string;
|
|
594
|
-
id: string;
|
|
595
640
|
createdAt: string;
|
|
596
|
-
|
|
597
|
-
firstName: string;
|
|
598
|
-
lastName: string;
|
|
641
|
+
id: string;
|
|
599
642
|
phoneNumbers: {
|
|
600
643
|
id: string;
|
|
601
644
|
phoneNumber: string;
|
|
602
645
|
isPrimary: boolean;
|
|
603
646
|
description?: string | null | undefined;
|
|
604
647
|
}[];
|
|
648
|
+
updatedAt: string;
|
|
649
|
+
office?: {
|
|
650
|
+
id: string;
|
|
651
|
+
name: string;
|
|
652
|
+
} | null | undefined;
|
|
605
653
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
606
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
607
654
|
canImpersonateUsers?: {
|
|
608
|
-
id: string;
|
|
609
|
-
firstName: string;
|
|
610
655
|
lastName: string;
|
|
656
|
+
firstName: string;
|
|
657
|
+
id: string;
|
|
611
658
|
}[] | undefined;
|
|
612
659
|
} | undefined;
|
|
613
|
-
|
|
660
|
+
lead?: {
|
|
661
|
+
phoneNumber: string;
|
|
614
662
|
name: string;
|
|
615
|
-
|
|
663
|
+
} | undefined;
|
|
664
|
+
company?: {
|
|
616
665
|
createdAt: string;
|
|
666
|
+
id: string;
|
|
667
|
+
name: string;
|
|
617
668
|
updatedAt: string;
|
|
618
669
|
} | null | undefined;
|
|
619
670
|
} | null | undefined;
|
|
620
671
|
}, {
|
|
621
|
-
id: string;
|
|
622
672
|
createdAt: string | Date;
|
|
673
|
+
id: string;
|
|
623
674
|
updatedAt: string | Date;
|
|
624
675
|
rating: CallRating;
|
|
625
676
|
notes: string | null;
|
|
677
|
+
callType: CallType;
|
|
626
678
|
assignmentId: string;
|
|
627
679
|
callDate: string | Date;
|
|
628
|
-
callType: CallType;
|
|
629
|
-
ratingWeight: number;
|
|
630
680
|
leadSource: LeadSource;
|
|
681
|
+
ratingWeight: number;
|
|
631
682
|
agentId?: string | undefined;
|
|
632
683
|
leadId?: string | undefined;
|
|
633
684
|
assignment?: {
|
|
685
|
+
createdAt: string | Date;
|
|
634
686
|
id: string;
|
|
635
687
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
636
|
-
agentId: string | null;
|
|
637
|
-
createdAt: string | Date;
|
|
638
688
|
updatedAt: string | Date;
|
|
689
|
+
agentId: string | null;
|
|
639
690
|
leadId: string;
|
|
640
691
|
assignedAt: string | Date;
|
|
641
692
|
assignedBy: string | null;
|
|
642
693
|
companyId: string | null;
|
|
643
|
-
lead?: {
|
|
644
|
-
name: string;
|
|
645
|
-
phoneNumber: string;
|
|
646
|
-
} | undefined;
|
|
647
694
|
agent?: {
|
|
695
|
+
lastName: string;
|
|
696
|
+
firstName: string;
|
|
648
697
|
email: string;
|
|
649
|
-
id: string;
|
|
650
698
|
createdAt: string | Date;
|
|
699
|
+
id: string;
|
|
651
700
|
updatedAt: string | Date;
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
701
|
+
office?: {
|
|
702
|
+
id: string;
|
|
703
|
+
name: string;
|
|
704
|
+
} | null | undefined;
|
|
655
705
|
phoneNumbers?: {
|
|
656
706
|
id: string;
|
|
657
707
|
phoneNumber: string;
|
|
658
708
|
description?: string | null | undefined;
|
|
659
709
|
isPrimary?: boolean | undefined;
|
|
660
710
|
}[] | undefined;
|
|
661
|
-
|
|
711
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
662
712
|
canImpersonateUsers?: {
|
|
663
|
-
id: string;
|
|
664
|
-
firstName: string;
|
|
665
713
|
lastName: string;
|
|
714
|
+
firstName: string;
|
|
715
|
+
id: string;
|
|
666
716
|
}[] | undefined;
|
|
667
717
|
} | undefined;
|
|
668
|
-
|
|
718
|
+
lead?: {
|
|
719
|
+
phoneNumber: string;
|
|
669
720
|
name: string;
|
|
670
|
-
|
|
721
|
+
} | undefined;
|
|
722
|
+
company?: {
|
|
671
723
|
createdAt: string | Date;
|
|
724
|
+
id: string;
|
|
725
|
+
name: string;
|
|
672
726
|
updatedAt: string | Date;
|
|
673
727
|
} | null | undefined;
|
|
674
728
|
} | null | undefined;
|
|
@@ -681,57 +735,60 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
681
735
|
}, "strip", z.ZodTypeAny, {
|
|
682
736
|
limit: number;
|
|
683
737
|
items: {
|
|
684
|
-
id: string;
|
|
685
738
|
createdAt: string;
|
|
739
|
+
id: string;
|
|
686
740
|
updatedAt: string;
|
|
687
741
|
rating: CallRating;
|
|
688
742
|
notes: string | null;
|
|
743
|
+
callType: CallType;
|
|
689
744
|
assignmentId: string;
|
|
690
745
|
callDate: string;
|
|
691
|
-
callType: CallType;
|
|
692
|
-
ratingWeight: number;
|
|
693
746
|
leadSource: LeadSource;
|
|
747
|
+
ratingWeight: number;
|
|
694
748
|
agentId?: string | undefined;
|
|
695
749
|
leadId?: string | undefined;
|
|
696
750
|
assignment?: {
|
|
751
|
+
createdAt: string;
|
|
697
752
|
id: string;
|
|
698
753
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
699
|
-
agentId: string | null;
|
|
700
|
-
createdAt: string;
|
|
701
754
|
updatedAt: string;
|
|
755
|
+
agentId: string | null;
|
|
702
756
|
leadId: string;
|
|
703
757
|
assignedAt: string;
|
|
704
758
|
assignedBy: string | null;
|
|
705
759
|
companyId: string | null;
|
|
706
|
-
lead?: {
|
|
707
|
-
name: string;
|
|
708
|
-
phoneNumber: string;
|
|
709
|
-
} | undefined;
|
|
710
760
|
agent?: {
|
|
761
|
+
lastName: string;
|
|
762
|
+
firstName: string;
|
|
711
763
|
email: string;
|
|
712
|
-
id: string;
|
|
713
764
|
createdAt: string;
|
|
714
|
-
|
|
715
|
-
firstName: string;
|
|
716
|
-
lastName: string;
|
|
765
|
+
id: string;
|
|
717
766
|
phoneNumbers: {
|
|
718
767
|
id: string;
|
|
719
768
|
phoneNumber: string;
|
|
720
769
|
isPrimary: boolean;
|
|
721
770
|
description?: string | null | undefined;
|
|
722
771
|
}[];
|
|
772
|
+
updatedAt: string;
|
|
773
|
+
office?: {
|
|
774
|
+
id: string;
|
|
775
|
+
name: string;
|
|
776
|
+
} | null | undefined;
|
|
723
777
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
724
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
725
778
|
canImpersonateUsers?: {
|
|
726
|
-
id: string;
|
|
727
|
-
firstName: string;
|
|
728
779
|
lastName: string;
|
|
780
|
+
firstName: string;
|
|
781
|
+
id: string;
|
|
729
782
|
}[] | undefined;
|
|
730
783
|
} | undefined;
|
|
731
|
-
|
|
784
|
+
lead?: {
|
|
785
|
+
phoneNumber: string;
|
|
732
786
|
name: string;
|
|
733
|
-
|
|
787
|
+
} | undefined;
|
|
788
|
+
company?: {
|
|
734
789
|
createdAt: string;
|
|
790
|
+
id: string;
|
|
791
|
+
name: string;
|
|
735
792
|
updatedAt: string;
|
|
736
793
|
} | null | undefined;
|
|
737
794
|
} | null | undefined;
|
|
@@ -743,57 +800,60 @@ export declare const PaginatedCallHistoryResponseSchema: z.ZodObject<{
|
|
|
743
800
|
}, {
|
|
744
801
|
limit: number;
|
|
745
802
|
items: {
|
|
746
|
-
id: string;
|
|
747
803
|
createdAt: string | Date;
|
|
804
|
+
id: string;
|
|
748
805
|
updatedAt: string | Date;
|
|
749
806
|
rating: CallRating;
|
|
750
807
|
notes: string | null;
|
|
808
|
+
callType: CallType;
|
|
751
809
|
assignmentId: string;
|
|
752
810
|
callDate: string | Date;
|
|
753
|
-
callType: CallType;
|
|
754
|
-
ratingWeight: number;
|
|
755
811
|
leadSource: LeadSource;
|
|
812
|
+
ratingWeight: number;
|
|
756
813
|
agentId?: string | undefined;
|
|
757
814
|
leadId?: string | undefined;
|
|
758
815
|
assignment?: {
|
|
816
|
+
createdAt: string | Date;
|
|
759
817
|
id: string;
|
|
760
818
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
761
|
-
agentId: string | null;
|
|
762
|
-
createdAt: string | Date;
|
|
763
819
|
updatedAt: string | Date;
|
|
820
|
+
agentId: string | null;
|
|
764
821
|
leadId: string;
|
|
765
822
|
assignedAt: string | Date;
|
|
766
823
|
assignedBy: string | null;
|
|
767
824
|
companyId: string | null;
|
|
768
|
-
lead?: {
|
|
769
|
-
name: string;
|
|
770
|
-
phoneNumber: string;
|
|
771
|
-
} | undefined;
|
|
772
825
|
agent?: {
|
|
826
|
+
lastName: string;
|
|
827
|
+
firstName: string;
|
|
773
828
|
email: string;
|
|
774
|
-
id: string;
|
|
775
829
|
createdAt: string | Date;
|
|
830
|
+
id: string;
|
|
776
831
|
updatedAt: string | Date;
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
832
|
+
office?: {
|
|
833
|
+
id: string;
|
|
834
|
+
name: string;
|
|
835
|
+
} | null | undefined;
|
|
780
836
|
phoneNumbers?: {
|
|
781
837
|
id: string;
|
|
782
838
|
phoneNumber: string;
|
|
783
839
|
description?: string | null | undefined;
|
|
784
840
|
isPrimary?: boolean | undefined;
|
|
785
841
|
}[] | undefined;
|
|
786
|
-
|
|
842
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
787
843
|
canImpersonateUsers?: {
|
|
788
|
-
id: string;
|
|
789
|
-
firstName: string;
|
|
790
844
|
lastName: string;
|
|
845
|
+
firstName: string;
|
|
846
|
+
id: string;
|
|
791
847
|
}[] | undefined;
|
|
792
848
|
} | undefined;
|
|
793
|
-
|
|
849
|
+
lead?: {
|
|
850
|
+
phoneNumber: string;
|
|
794
851
|
name: string;
|
|
795
|
-
|
|
852
|
+
} | undefined;
|
|
853
|
+
company?: {
|
|
796
854
|
createdAt: string | Date;
|
|
855
|
+
id: string;
|
|
856
|
+
name: string;
|
|
797
857
|
updatedAt: string | Date;
|
|
798
858
|
} | null | undefined;
|
|
799
859
|
} | null | undefined;
|
|
@@ -810,13 +870,13 @@ export declare const CreateCallHistorySchema: z.ZodObject<{
|
|
|
810
870
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
811
871
|
}, "strip", z.ZodTypeAny, {
|
|
812
872
|
rating: CallRating;
|
|
813
|
-
assignmentId: string;
|
|
814
873
|
callType: CallType;
|
|
874
|
+
assignmentId: string;
|
|
815
875
|
notes?: string | undefined;
|
|
816
876
|
}, {
|
|
817
877
|
rating: CallRating;
|
|
818
|
-
assignmentId: string;
|
|
819
878
|
callType: CallType;
|
|
879
|
+
assignmentId: string;
|
|
820
880
|
notes?: string | undefined;
|
|
821
881
|
}>;
|
|
822
882
|
export declare const UpdateCallHistorySchema: z.ZodObject<{
|
|
@@ -865,41 +925,41 @@ export declare const FilterCallHistorySchema: z.ZodObject<{
|
|
|
865
925
|
sortBy: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof CallHistorySortableFields>>>;
|
|
866
926
|
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
867
927
|
}, "strip", z.ZodTypeAny, {
|
|
868
|
-
page: number;
|
|
869
928
|
limit: number;
|
|
929
|
+
page: number;
|
|
930
|
+
phoneNumber?: string | undefined;
|
|
870
931
|
sortBy?: CallHistorySortableFields | undefined;
|
|
871
932
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
872
|
-
phoneNumber?: string | undefined;
|
|
873
933
|
agentId?: string | undefined;
|
|
874
934
|
rating?: {
|
|
875
935
|
from?: CallRating | null | undefined;
|
|
876
936
|
to?: CallRating | null | undefined;
|
|
877
937
|
} | null | undefined;
|
|
938
|
+
callType?: CallType | undefined;
|
|
878
939
|
companyId?: string | undefined;
|
|
879
940
|
callDate?: {
|
|
880
941
|
from?: string | null | undefined;
|
|
881
942
|
to?: string | null | undefined;
|
|
882
943
|
} | null | undefined;
|
|
883
|
-
callType?: CallType | undefined;
|
|
884
944
|
leadSource?: LeadSource | undefined;
|
|
885
945
|
leadName?: string | undefined;
|
|
886
946
|
}, {
|
|
947
|
+
phoneNumber?: string | undefined;
|
|
948
|
+
limit?: number | undefined;
|
|
949
|
+
page?: number | undefined;
|
|
887
950
|
sortBy?: CallHistorySortableFields | undefined;
|
|
888
951
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
889
|
-
page?: number | undefined;
|
|
890
|
-
limit?: number | undefined;
|
|
891
|
-
phoneNumber?: string | undefined;
|
|
892
952
|
agentId?: string | undefined;
|
|
893
953
|
rating?: {
|
|
894
954
|
from?: unknown;
|
|
895
955
|
to?: unknown;
|
|
896
956
|
} | null | undefined;
|
|
957
|
+
callType?: CallType | undefined;
|
|
897
958
|
companyId?: string | undefined;
|
|
898
959
|
callDate?: {
|
|
899
960
|
from?: string | null | undefined;
|
|
900
961
|
to?: string | null | undefined;
|
|
901
962
|
} | null | undefined;
|
|
902
|
-
callType?: CallType | undefined;
|
|
903
963
|
leadSource?: LeadSource | undefined;
|
|
904
964
|
leadName?: string | undefined;
|
|
905
965
|
}>;
|
|
@@ -936,13 +996,13 @@ export declare const callHistoryContract: {
|
|
|
936
996
|
callType: z.ZodNativeEnum<typeof CallType>;
|
|
937
997
|
}, "strip", z.ZodTypeAny, {
|
|
938
998
|
rating: CallRating;
|
|
939
|
-
assignmentId: string;
|
|
940
999
|
callType: CallType;
|
|
1000
|
+
assignmentId: string;
|
|
941
1001
|
notes?: string | undefined;
|
|
942
1002
|
}, {
|
|
943
1003
|
rating: CallRating;
|
|
944
|
-
assignmentId: string;
|
|
945
1004
|
callType: CallType;
|
|
1005
|
+
assignmentId: string;
|
|
946
1006
|
notes?: string | undefined;
|
|
947
1007
|
}>;
|
|
948
1008
|
path: "/v2/call-history";
|
|
@@ -1059,11 +1119,11 @@ export declare const callHistoryContract: {
|
|
|
1059
1119
|
name: z.ZodString;
|
|
1060
1120
|
phoneNumber: z.ZodString;
|
|
1061
1121
|
}, "strip", z.ZodTypeAny, {
|
|
1062
|
-
name: string;
|
|
1063
1122
|
phoneNumber: string;
|
|
1064
|
-
}, {
|
|
1065
1123
|
name: string;
|
|
1124
|
+
}, {
|
|
1066
1125
|
phoneNumber: string;
|
|
1126
|
+
name: string;
|
|
1067
1127
|
}>>;
|
|
1068
1128
|
agentId: z.ZodNullable<z.ZodString>;
|
|
1069
1129
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1088,61 +1148,76 @@ export declare const callHistoryContract: {
|
|
|
1088
1148
|
isPrimary?: boolean | undefined;
|
|
1089
1149
|
}>, "many">>>;
|
|
1090
1150
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
1091
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
1151
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1152
|
+
id: z.ZodString;
|
|
1153
|
+
name: z.ZodString;
|
|
1154
|
+
}, "strip", z.ZodTypeAny, {
|
|
1155
|
+
id: string;
|
|
1156
|
+
name: string;
|
|
1157
|
+
}, {
|
|
1158
|
+
id: string;
|
|
1159
|
+
name: string;
|
|
1160
|
+
}>>>;
|
|
1092
1161
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1093
1162
|
id: z.ZodString;
|
|
1094
1163
|
firstName: z.ZodString;
|
|
1095
1164
|
lastName: z.ZodString;
|
|
1096
1165
|
}, "strip", z.ZodTypeAny, {
|
|
1097
|
-
id: string;
|
|
1098
|
-
firstName: string;
|
|
1099
1166
|
lastName: string;
|
|
1100
|
-
}, {
|
|
1101
|
-
id: string;
|
|
1102
1167
|
firstName: string;
|
|
1168
|
+
id: string;
|
|
1169
|
+
}, {
|
|
1103
1170
|
lastName: string;
|
|
1171
|
+
firstName: string;
|
|
1172
|
+
id: string;
|
|
1104
1173
|
}>, "many">>;
|
|
1105
1174
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1106
1175
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1107
1176
|
}, "strip", z.ZodTypeAny, {
|
|
1177
|
+
lastName: string;
|
|
1178
|
+
firstName: string;
|
|
1108
1179
|
email: string;
|
|
1109
|
-
id: string;
|
|
1110
1180
|
createdAt: string;
|
|
1111
|
-
|
|
1112
|
-
firstName: string;
|
|
1113
|
-
lastName: string;
|
|
1181
|
+
id: string;
|
|
1114
1182
|
phoneNumbers: {
|
|
1115
1183
|
id: string;
|
|
1116
1184
|
phoneNumber: string;
|
|
1117
1185
|
isPrimary: boolean;
|
|
1118
1186
|
description?: string | null | undefined;
|
|
1119
1187
|
}[];
|
|
1188
|
+
updatedAt: string;
|
|
1189
|
+
office?: {
|
|
1190
|
+
id: string;
|
|
1191
|
+
name: string;
|
|
1192
|
+
} | null | undefined;
|
|
1120
1193
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1121
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
1122
1194
|
canImpersonateUsers?: {
|
|
1123
|
-
id: string;
|
|
1124
|
-
firstName: string;
|
|
1125
1195
|
lastName: string;
|
|
1196
|
+
firstName: string;
|
|
1197
|
+
id: string;
|
|
1126
1198
|
}[] | undefined;
|
|
1127
1199
|
}, {
|
|
1200
|
+
lastName: string;
|
|
1201
|
+
firstName: string;
|
|
1128
1202
|
email: string;
|
|
1129
|
-
id: string;
|
|
1130
1203
|
createdAt: string | Date;
|
|
1204
|
+
id: string;
|
|
1131
1205
|
updatedAt: string | Date;
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1206
|
+
office?: {
|
|
1207
|
+
id: string;
|
|
1208
|
+
name: string;
|
|
1209
|
+
} | null | undefined;
|
|
1135
1210
|
phoneNumbers?: {
|
|
1136
1211
|
id: string;
|
|
1137
1212
|
phoneNumber: string;
|
|
1138
1213
|
description?: string | null | undefined;
|
|
1139
1214
|
isPrimary?: boolean | undefined;
|
|
1140
1215
|
}[] | undefined;
|
|
1141
|
-
|
|
1216
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1142
1217
|
canImpersonateUsers?: {
|
|
1143
|
-
id: string;
|
|
1144
|
-
firstName: string;
|
|
1145
1218
|
lastName: string;
|
|
1219
|
+
firstName: string;
|
|
1220
|
+
id: string;
|
|
1146
1221
|
}[] | undefined;
|
|
1147
1222
|
}>>;
|
|
1148
1223
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1155,98 +1230,104 @@ export declare const callHistoryContract: {
|
|
|
1155
1230
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1156
1231
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1157
1232
|
}, "strip", z.ZodTypeAny, {
|
|
1158
|
-
name: string;
|
|
1159
|
-
id: string;
|
|
1160
1233
|
createdAt: string;
|
|
1234
|
+
id: string;
|
|
1235
|
+
name: string;
|
|
1161
1236
|
updatedAt: string;
|
|
1162
1237
|
}, {
|
|
1163
|
-
name: string;
|
|
1164
|
-
id: string;
|
|
1165
1238
|
createdAt: string | Date;
|
|
1239
|
+
id: string;
|
|
1240
|
+
name: string;
|
|
1166
1241
|
updatedAt: string | Date;
|
|
1167
1242
|
}>>>;
|
|
1168
1243
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1169
1244
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1170
1245
|
}, "strip", z.ZodTypeAny, {
|
|
1246
|
+
createdAt: string;
|
|
1171
1247
|
id: string;
|
|
1172
1248
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1173
|
-
agentId: string | null;
|
|
1174
|
-
createdAt: string;
|
|
1175
1249
|
updatedAt: string;
|
|
1250
|
+
agentId: string | null;
|
|
1176
1251
|
leadId: string;
|
|
1177
1252
|
assignedAt: string;
|
|
1178
1253
|
assignedBy: string | null;
|
|
1179
1254
|
companyId: string | null;
|
|
1180
|
-
lead?: {
|
|
1181
|
-
name: string;
|
|
1182
|
-
phoneNumber: string;
|
|
1183
|
-
} | undefined;
|
|
1184
1255
|
agent?: {
|
|
1256
|
+
lastName: string;
|
|
1257
|
+
firstName: string;
|
|
1185
1258
|
email: string;
|
|
1186
|
-
id: string;
|
|
1187
1259
|
createdAt: string;
|
|
1188
|
-
|
|
1189
|
-
firstName: string;
|
|
1190
|
-
lastName: string;
|
|
1260
|
+
id: string;
|
|
1191
1261
|
phoneNumbers: {
|
|
1192
1262
|
id: string;
|
|
1193
1263
|
phoneNumber: string;
|
|
1194
1264
|
isPrimary: boolean;
|
|
1195
1265
|
description?: string | null | undefined;
|
|
1196
1266
|
}[];
|
|
1267
|
+
updatedAt: string;
|
|
1268
|
+
office?: {
|
|
1269
|
+
id: string;
|
|
1270
|
+
name: string;
|
|
1271
|
+
} | null | undefined;
|
|
1197
1272
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1198
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
1199
1273
|
canImpersonateUsers?: {
|
|
1200
|
-
id: string;
|
|
1201
|
-
firstName: string;
|
|
1202
1274
|
lastName: string;
|
|
1275
|
+
firstName: string;
|
|
1276
|
+
id: string;
|
|
1203
1277
|
}[] | undefined;
|
|
1204
1278
|
} | undefined;
|
|
1205
|
-
|
|
1279
|
+
lead?: {
|
|
1280
|
+
phoneNumber: string;
|
|
1206
1281
|
name: string;
|
|
1207
|
-
|
|
1282
|
+
} | undefined;
|
|
1283
|
+
company?: {
|
|
1208
1284
|
createdAt: string;
|
|
1285
|
+
id: string;
|
|
1286
|
+
name: string;
|
|
1209
1287
|
updatedAt: string;
|
|
1210
1288
|
} | null | undefined;
|
|
1211
1289
|
}, {
|
|
1290
|
+
createdAt: string | Date;
|
|
1212
1291
|
id: string;
|
|
1213
1292
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1214
|
-
agentId: string | null;
|
|
1215
|
-
createdAt: string | Date;
|
|
1216
1293
|
updatedAt: string | Date;
|
|
1294
|
+
agentId: string | null;
|
|
1217
1295
|
leadId: string;
|
|
1218
1296
|
assignedAt: string | Date;
|
|
1219
1297
|
assignedBy: string | null;
|
|
1220
1298
|
companyId: string | null;
|
|
1221
|
-
lead?: {
|
|
1222
|
-
name: string;
|
|
1223
|
-
phoneNumber: string;
|
|
1224
|
-
} | undefined;
|
|
1225
1299
|
agent?: {
|
|
1300
|
+
lastName: string;
|
|
1301
|
+
firstName: string;
|
|
1226
1302
|
email: string;
|
|
1227
|
-
id: string;
|
|
1228
1303
|
createdAt: string | Date;
|
|
1304
|
+
id: string;
|
|
1229
1305
|
updatedAt: string | Date;
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1306
|
+
office?: {
|
|
1307
|
+
id: string;
|
|
1308
|
+
name: string;
|
|
1309
|
+
} | null | undefined;
|
|
1233
1310
|
phoneNumbers?: {
|
|
1234
1311
|
id: string;
|
|
1235
1312
|
phoneNumber: string;
|
|
1236
1313
|
description?: string | null | undefined;
|
|
1237
1314
|
isPrimary?: boolean | undefined;
|
|
1238
1315
|
}[] | undefined;
|
|
1239
|
-
|
|
1316
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1240
1317
|
canImpersonateUsers?: {
|
|
1241
|
-
id: string;
|
|
1242
|
-
firstName: string;
|
|
1243
1318
|
lastName: string;
|
|
1319
|
+
firstName: string;
|
|
1320
|
+
id: string;
|
|
1244
1321
|
}[] | undefined;
|
|
1245
1322
|
} | undefined;
|
|
1246
|
-
|
|
1323
|
+
lead?: {
|
|
1324
|
+
phoneNumber: string;
|
|
1247
1325
|
name: string;
|
|
1248
|
-
|
|
1326
|
+
} | undefined;
|
|
1327
|
+
company?: {
|
|
1249
1328
|
createdAt: string | Date;
|
|
1329
|
+
id: string;
|
|
1330
|
+
name: string;
|
|
1250
1331
|
updatedAt: string | Date;
|
|
1251
1332
|
} | null | undefined;
|
|
1252
1333
|
}>>>;
|
|
@@ -1259,112 +1340,118 @@ export declare const callHistoryContract: {
|
|
|
1259
1340
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1260
1341
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1261
1342
|
}, "strip", z.ZodTypeAny, {
|
|
1262
|
-
id: string;
|
|
1263
1343
|
createdAt: string;
|
|
1344
|
+
id: string;
|
|
1264
1345
|
updatedAt: string;
|
|
1265
1346
|
rating: CallRating;
|
|
1266
1347
|
notes: string | null;
|
|
1348
|
+
callType: CallType;
|
|
1267
1349
|
assignmentId: string;
|
|
1268
1350
|
callDate: string;
|
|
1269
|
-
callType: CallType;
|
|
1270
|
-
ratingWeight: number;
|
|
1271
1351
|
leadSource: LeadSource;
|
|
1352
|
+
ratingWeight: number;
|
|
1272
1353
|
agentId?: string | undefined;
|
|
1273
1354
|
leadId?: string | undefined;
|
|
1274
1355
|
assignment?: {
|
|
1356
|
+
createdAt: string;
|
|
1275
1357
|
id: string;
|
|
1276
1358
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1277
|
-
agentId: string | null;
|
|
1278
|
-
createdAt: string;
|
|
1279
1359
|
updatedAt: string;
|
|
1360
|
+
agentId: string | null;
|
|
1280
1361
|
leadId: string;
|
|
1281
1362
|
assignedAt: string;
|
|
1282
1363
|
assignedBy: string | null;
|
|
1283
1364
|
companyId: string | null;
|
|
1284
|
-
lead?: {
|
|
1285
|
-
name: string;
|
|
1286
|
-
phoneNumber: string;
|
|
1287
|
-
} | undefined;
|
|
1288
1365
|
agent?: {
|
|
1366
|
+
lastName: string;
|
|
1367
|
+
firstName: string;
|
|
1289
1368
|
email: string;
|
|
1290
|
-
id: string;
|
|
1291
1369
|
createdAt: string;
|
|
1292
|
-
|
|
1293
|
-
firstName: string;
|
|
1294
|
-
lastName: string;
|
|
1370
|
+
id: string;
|
|
1295
1371
|
phoneNumbers: {
|
|
1296
1372
|
id: string;
|
|
1297
1373
|
phoneNumber: string;
|
|
1298
1374
|
isPrimary: boolean;
|
|
1299
1375
|
description?: string | null | undefined;
|
|
1300
1376
|
}[];
|
|
1377
|
+
updatedAt: string;
|
|
1378
|
+
office?: {
|
|
1379
|
+
id: string;
|
|
1380
|
+
name: string;
|
|
1381
|
+
} | null | undefined;
|
|
1301
1382
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1302
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
1303
1383
|
canImpersonateUsers?: {
|
|
1304
|
-
id: string;
|
|
1305
|
-
firstName: string;
|
|
1306
1384
|
lastName: string;
|
|
1385
|
+
firstName: string;
|
|
1386
|
+
id: string;
|
|
1307
1387
|
}[] | undefined;
|
|
1308
1388
|
} | undefined;
|
|
1309
|
-
|
|
1389
|
+
lead?: {
|
|
1390
|
+
phoneNumber: string;
|
|
1310
1391
|
name: string;
|
|
1311
|
-
|
|
1392
|
+
} | undefined;
|
|
1393
|
+
company?: {
|
|
1312
1394
|
createdAt: string;
|
|
1395
|
+
id: string;
|
|
1396
|
+
name: string;
|
|
1313
1397
|
updatedAt: string;
|
|
1314
1398
|
} | null | undefined;
|
|
1315
1399
|
} | null | undefined;
|
|
1316
1400
|
}, {
|
|
1317
|
-
id: string;
|
|
1318
1401
|
createdAt: string | Date;
|
|
1402
|
+
id: string;
|
|
1319
1403
|
updatedAt: string | Date;
|
|
1320
1404
|
rating: CallRating;
|
|
1321
1405
|
notes: string | null;
|
|
1406
|
+
callType: CallType;
|
|
1322
1407
|
assignmentId: string;
|
|
1323
1408
|
callDate: string | Date;
|
|
1324
|
-
callType: CallType;
|
|
1325
|
-
ratingWeight: number;
|
|
1326
1409
|
leadSource: LeadSource;
|
|
1410
|
+
ratingWeight: number;
|
|
1327
1411
|
agentId?: string | undefined;
|
|
1328
1412
|
leadId?: string | undefined;
|
|
1329
1413
|
assignment?: {
|
|
1414
|
+
createdAt: string | Date;
|
|
1330
1415
|
id: string;
|
|
1331
1416
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1332
|
-
agentId: string | null;
|
|
1333
|
-
createdAt: string | Date;
|
|
1334
1417
|
updatedAt: string | Date;
|
|
1418
|
+
agentId: string | null;
|
|
1335
1419
|
leadId: string;
|
|
1336
1420
|
assignedAt: string | Date;
|
|
1337
1421
|
assignedBy: string | null;
|
|
1338
1422
|
companyId: string | null;
|
|
1339
|
-
lead?: {
|
|
1340
|
-
name: string;
|
|
1341
|
-
phoneNumber: string;
|
|
1342
|
-
} | undefined;
|
|
1343
1423
|
agent?: {
|
|
1424
|
+
lastName: string;
|
|
1425
|
+
firstName: string;
|
|
1344
1426
|
email: string;
|
|
1345
|
-
id: string;
|
|
1346
1427
|
createdAt: string | Date;
|
|
1428
|
+
id: string;
|
|
1347
1429
|
updatedAt: string | Date;
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1430
|
+
office?: {
|
|
1431
|
+
id: string;
|
|
1432
|
+
name: string;
|
|
1433
|
+
} | null | undefined;
|
|
1351
1434
|
phoneNumbers?: {
|
|
1352
1435
|
id: string;
|
|
1353
1436
|
phoneNumber: string;
|
|
1354
1437
|
description?: string | null | undefined;
|
|
1355
1438
|
isPrimary?: boolean | undefined;
|
|
1356
1439
|
}[] | undefined;
|
|
1357
|
-
|
|
1440
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1358
1441
|
canImpersonateUsers?: {
|
|
1359
|
-
id: string;
|
|
1360
|
-
firstName: string;
|
|
1361
1442
|
lastName: string;
|
|
1443
|
+
firstName: string;
|
|
1444
|
+
id: string;
|
|
1362
1445
|
}[] | undefined;
|
|
1363
1446
|
} | undefined;
|
|
1364
|
-
|
|
1447
|
+
lead?: {
|
|
1448
|
+
phoneNumber: string;
|
|
1365
1449
|
name: string;
|
|
1366
|
-
|
|
1450
|
+
} | undefined;
|
|
1451
|
+
company?: {
|
|
1367
1452
|
createdAt: string | Date;
|
|
1453
|
+
id: string;
|
|
1454
|
+
name: string;
|
|
1368
1455
|
updatedAt: string | Date;
|
|
1369
1456
|
} | null | undefined;
|
|
1370
1457
|
} | null | undefined;
|
|
@@ -1397,6 +1484,9 @@ export declare const callHistoryContract: {
|
|
|
1397
1484
|
};
|
|
1398
1485
|
};
|
|
1399
1486
|
findAll: {
|
|
1487
|
+
metadata: {
|
|
1488
|
+
tags: string[];
|
|
1489
|
+
};
|
|
1400
1490
|
query: z.ZodObject<{
|
|
1401
1491
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
1402
1492
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1430,47 +1520,44 @@ export declare const callHistoryContract: {
|
|
|
1430
1520
|
sortBy: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof CallHistorySortableFields>>>;
|
|
1431
1521
|
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
1432
1522
|
}, "strip", z.ZodTypeAny, {
|
|
1433
|
-
page: number;
|
|
1434
1523
|
limit: number;
|
|
1524
|
+
page: number;
|
|
1525
|
+
phoneNumber?: string | undefined;
|
|
1435
1526
|
sortBy?: CallHistorySortableFields | undefined;
|
|
1436
1527
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1437
|
-
phoneNumber?: string | undefined;
|
|
1438
1528
|
agentId?: string | undefined;
|
|
1439
1529
|
rating?: {
|
|
1440
1530
|
from?: CallRating | null | undefined;
|
|
1441
1531
|
to?: CallRating | null | undefined;
|
|
1442
1532
|
} | null | undefined;
|
|
1533
|
+
callType?: CallType | undefined;
|
|
1443
1534
|
companyId?: string | undefined;
|
|
1444
1535
|
callDate?: {
|
|
1445
1536
|
from?: string | null | undefined;
|
|
1446
1537
|
to?: string | null | undefined;
|
|
1447
1538
|
} | null | undefined;
|
|
1448
|
-
callType?: CallType | undefined;
|
|
1449
1539
|
leadSource?: LeadSource | undefined;
|
|
1450
1540
|
leadName?: string | undefined;
|
|
1451
1541
|
}, {
|
|
1542
|
+
phoneNumber?: string | undefined;
|
|
1543
|
+
limit?: number | undefined;
|
|
1544
|
+
page?: number | undefined;
|
|
1452
1545
|
sortBy?: CallHistorySortableFields | undefined;
|
|
1453
1546
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1454
|
-
page?: number | undefined;
|
|
1455
|
-
limit?: number | undefined;
|
|
1456
|
-
phoneNumber?: string | undefined;
|
|
1457
1547
|
agentId?: string | undefined;
|
|
1458
1548
|
rating?: {
|
|
1459
1549
|
from?: unknown;
|
|
1460
1550
|
to?: unknown;
|
|
1461
1551
|
} | null | undefined;
|
|
1552
|
+
callType?: CallType | undefined;
|
|
1462
1553
|
companyId?: string | undefined;
|
|
1463
1554
|
callDate?: {
|
|
1464
1555
|
from?: string | null | undefined;
|
|
1465
1556
|
to?: string | null | undefined;
|
|
1466
1557
|
} | null | undefined;
|
|
1467
|
-
callType?: CallType | undefined;
|
|
1468
1558
|
leadSource?: LeadSource | undefined;
|
|
1469
1559
|
leadName?: string | undefined;
|
|
1470
1560
|
}>;
|
|
1471
|
-
metadata: {
|
|
1472
|
-
tags: string[];
|
|
1473
|
-
};
|
|
1474
1561
|
summary: "Get call history records";
|
|
1475
1562
|
method: "GET";
|
|
1476
1563
|
path: "/v2/call-history";
|
|
@@ -1588,11 +1675,11 @@ export declare const callHistoryContract: {
|
|
|
1588
1675
|
name: z.ZodString;
|
|
1589
1676
|
phoneNumber: z.ZodString;
|
|
1590
1677
|
}, "strip", z.ZodTypeAny, {
|
|
1591
|
-
name: string;
|
|
1592
1678
|
phoneNumber: string;
|
|
1593
|
-
}, {
|
|
1594
1679
|
name: string;
|
|
1680
|
+
}, {
|
|
1595
1681
|
phoneNumber: string;
|
|
1682
|
+
name: string;
|
|
1596
1683
|
}>>;
|
|
1597
1684
|
agentId: z.ZodNullable<z.ZodString>;
|
|
1598
1685
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1617,61 +1704,76 @@ export declare const callHistoryContract: {
|
|
|
1617
1704
|
isPrimary?: boolean | undefined;
|
|
1618
1705
|
}>, "many">>>;
|
|
1619
1706
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
1620
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
1707
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1708
|
+
id: z.ZodString;
|
|
1709
|
+
name: z.ZodString;
|
|
1710
|
+
}, "strip", z.ZodTypeAny, {
|
|
1711
|
+
id: string;
|
|
1712
|
+
name: string;
|
|
1713
|
+
}, {
|
|
1714
|
+
id: string;
|
|
1715
|
+
name: string;
|
|
1716
|
+
}>>>;
|
|
1621
1717
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1622
1718
|
id: z.ZodString;
|
|
1623
1719
|
firstName: z.ZodString;
|
|
1624
1720
|
lastName: z.ZodString;
|
|
1625
1721
|
}, "strip", z.ZodTypeAny, {
|
|
1626
|
-
id: string;
|
|
1627
|
-
firstName: string;
|
|
1628
1722
|
lastName: string;
|
|
1629
|
-
}, {
|
|
1630
|
-
id: string;
|
|
1631
1723
|
firstName: string;
|
|
1724
|
+
id: string;
|
|
1725
|
+
}, {
|
|
1632
1726
|
lastName: string;
|
|
1727
|
+
firstName: string;
|
|
1728
|
+
id: string;
|
|
1633
1729
|
}>, "many">>;
|
|
1634
1730
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1635
1731
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1636
1732
|
}, "strip", z.ZodTypeAny, {
|
|
1733
|
+
lastName: string;
|
|
1734
|
+
firstName: string;
|
|
1637
1735
|
email: string;
|
|
1638
|
-
id: string;
|
|
1639
1736
|
createdAt: string;
|
|
1640
|
-
|
|
1641
|
-
firstName: string;
|
|
1642
|
-
lastName: string;
|
|
1737
|
+
id: string;
|
|
1643
1738
|
phoneNumbers: {
|
|
1644
1739
|
id: string;
|
|
1645
1740
|
phoneNumber: string;
|
|
1646
1741
|
isPrimary: boolean;
|
|
1647
1742
|
description?: string | null | undefined;
|
|
1648
1743
|
}[];
|
|
1744
|
+
updatedAt: string;
|
|
1745
|
+
office?: {
|
|
1746
|
+
id: string;
|
|
1747
|
+
name: string;
|
|
1748
|
+
} | null | undefined;
|
|
1649
1749
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1650
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
1651
1750
|
canImpersonateUsers?: {
|
|
1652
|
-
id: string;
|
|
1653
|
-
firstName: string;
|
|
1654
1751
|
lastName: string;
|
|
1752
|
+
firstName: string;
|
|
1753
|
+
id: string;
|
|
1655
1754
|
}[] | undefined;
|
|
1656
1755
|
}, {
|
|
1756
|
+
lastName: string;
|
|
1757
|
+
firstName: string;
|
|
1657
1758
|
email: string;
|
|
1658
|
-
id: string;
|
|
1659
1759
|
createdAt: string | Date;
|
|
1760
|
+
id: string;
|
|
1660
1761
|
updatedAt: string | Date;
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1762
|
+
office?: {
|
|
1763
|
+
id: string;
|
|
1764
|
+
name: string;
|
|
1765
|
+
} | null | undefined;
|
|
1664
1766
|
phoneNumbers?: {
|
|
1665
1767
|
id: string;
|
|
1666
1768
|
phoneNumber: string;
|
|
1667
1769
|
description?: string | null | undefined;
|
|
1668
1770
|
isPrimary?: boolean | undefined;
|
|
1669
1771
|
}[] | undefined;
|
|
1670
|
-
|
|
1772
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1671
1773
|
canImpersonateUsers?: {
|
|
1672
|
-
id: string;
|
|
1673
|
-
firstName: string;
|
|
1674
1774
|
lastName: string;
|
|
1775
|
+
firstName: string;
|
|
1776
|
+
id: string;
|
|
1675
1777
|
}[] | undefined;
|
|
1676
1778
|
}>>;
|
|
1677
1779
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1684,98 +1786,104 @@ export declare const callHistoryContract: {
|
|
|
1684
1786
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1685
1787
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1686
1788
|
}, "strip", z.ZodTypeAny, {
|
|
1687
|
-
name: string;
|
|
1688
|
-
id: string;
|
|
1689
1789
|
createdAt: string;
|
|
1790
|
+
id: string;
|
|
1791
|
+
name: string;
|
|
1690
1792
|
updatedAt: string;
|
|
1691
1793
|
}, {
|
|
1692
|
-
name: string;
|
|
1693
|
-
id: string;
|
|
1694
1794
|
createdAt: string | Date;
|
|
1795
|
+
id: string;
|
|
1796
|
+
name: string;
|
|
1695
1797
|
updatedAt: string | Date;
|
|
1696
1798
|
}>>>;
|
|
1697
1799
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1698
1800
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1699
1801
|
}, "strip", z.ZodTypeAny, {
|
|
1802
|
+
createdAt: string;
|
|
1700
1803
|
id: string;
|
|
1701
1804
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1702
|
-
agentId: string | null;
|
|
1703
|
-
createdAt: string;
|
|
1704
1805
|
updatedAt: string;
|
|
1806
|
+
agentId: string | null;
|
|
1705
1807
|
leadId: string;
|
|
1706
1808
|
assignedAt: string;
|
|
1707
1809
|
assignedBy: string | null;
|
|
1708
1810
|
companyId: string | null;
|
|
1709
|
-
lead?: {
|
|
1710
|
-
name: string;
|
|
1711
|
-
phoneNumber: string;
|
|
1712
|
-
} | undefined;
|
|
1713
1811
|
agent?: {
|
|
1812
|
+
lastName: string;
|
|
1813
|
+
firstName: string;
|
|
1714
1814
|
email: string;
|
|
1715
|
-
id: string;
|
|
1716
1815
|
createdAt: string;
|
|
1717
|
-
|
|
1718
|
-
firstName: string;
|
|
1719
|
-
lastName: string;
|
|
1816
|
+
id: string;
|
|
1720
1817
|
phoneNumbers: {
|
|
1721
1818
|
id: string;
|
|
1722
1819
|
phoneNumber: string;
|
|
1723
1820
|
isPrimary: boolean;
|
|
1724
1821
|
description?: string | null | undefined;
|
|
1725
1822
|
}[];
|
|
1823
|
+
updatedAt: string;
|
|
1824
|
+
office?: {
|
|
1825
|
+
id: string;
|
|
1826
|
+
name: string;
|
|
1827
|
+
} | null | undefined;
|
|
1726
1828
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1727
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
1728
1829
|
canImpersonateUsers?: {
|
|
1729
|
-
id: string;
|
|
1730
|
-
firstName: string;
|
|
1731
1830
|
lastName: string;
|
|
1831
|
+
firstName: string;
|
|
1832
|
+
id: string;
|
|
1732
1833
|
}[] | undefined;
|
|
1733
1834
|
} | undefined;
|
|
1734
|
-
|
|
1835
|
+
lead?: {
|
|
1836
|
+
phoneNumber: string;
|
|
1735
1837
|
name: string;
|
|
1736
|
-
|
|
1838
|
+
} | undefined;
|
|
1839
|
+
company?: {
|
|
1737
1840
|
createdAt: string;
|
|
1841
|
+
id: string;
|
|
1842
|
+
name: string;
|
|
1738
1843
|
updatedAt: string;
|
|
1739
1844
|
} | null | undefined;
|
|
1740
1845
|
}, {
|
|
1846
|
+
createdAt: string | Date;
|
|
1741
1847
|
id: string;
|
|
1742
1848
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1743
|
-
agentId: string | null;
|
|
1744
|
-
createdAt: string | Date;
|
|
1745
1849
|
updatedAt: string | Date;
|
|
1850
|
+
agentId: string | null;
|
|
1746
1851
|
leadId: string;
|
|
1747
1852
|
assignedAt: string | Date;
|
|
1748
1853
|
assignedBy: string | null;
|
|
1749
1854
|
companyId: string | null;
|
|
1750
|
-
lead?: {
|
|
1751
|
-
name: string;
|
|
1752
|
-
phoneNumber: string;
|
|
1753
|
-
} | undefined;
|
|
1754
1855
|
agent?: {
|
|
1856
|
+
lastName: string;
|
|
1857
|
+
firstName: string;
|
|
1755
1858
|
email: string;
|
|
1756
|
-
id: string;
|
|
1757
1859
|
createdAt: string | Date;
|
|
1860
|
+
id: string;
|
|
1758
1861
|
updatedAt: string | Date;
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1862
|
+
office?: {
|
|
1863
|
+
id: string;
|
|
1864
|
+
name: string;
|
|
1865
|
+
} | null | undefined;
|
|
1762
1866
|
phoneNumbers?: {
|
|
1763
1867
|
id: string;
|
|
1764
1868
|
phoneNumber: string;
|
|
1765
1869
|
description?: string | null | undefined;
|
|
1766
1870
|
isPrimary?: boolean | undefined;
|
|
1767
1871
|
}[] | undefined;
|
|
1768
|
-
|
|
1872
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1769
1873
|
canImpersonateUsers?: {
|
|
1770
|
-
id: string;
|
|
1771
|
-
firstName: string;
|
|
1772
1874
|
lastName: string;
|
|
1875
|
+
firstName: string;
|
|
1876
|
+
id: string;
|
|
1773
1877
|
}[] | undefined;
|
|
1774
1878
|
} | undefined;
|
|
1775
|
-
|
|
1879
|
+
lead?: {
|
|
1880
|
+
phoneNumber: string;
|
|
1776
1881
|
name: string;
|
|
1777
|
-
|
|
1882
|
+
} | undefined;
|
|
1883
|
+
company?: {
|
|
1778
1884
|
createdAt: string | Date;
|
|
1885
|
+
id: string;
|
|
1886
|
+
name: string;
|
|
1779
1887
|
updatedAt: string | Date;
|
|
1780
1888
|
} | null | undefined;
|
|
1781
1889
|
}>>>;
|
|
@@ -1788,112 +1896,118 @@ export declare const callHistoryContract: {
|
|
|
1788
1896
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1789
1897
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1790
1898
|
}, "strip", z.ZodTypeAny, {
|
|
1791
|
-
id: string;
|
|
1792
1899
|
createdAt: string;
|
|
1900
|
+
id: string;
|
|
1793
1901
|
updatedAt: string;
|
|
1794
1902
|
rating: CallRating;
|
|
1795
1903
|
notes: string | null;
|
|
1904
|
+
callType: CallType;
|
|
1796
1905
|
assignmentId: string;
|
|
1797
1906
|
callDate: string;
|
|
1798
|
-
callType: CallType;
|
|
1799
|
-
ratingWeight: number;
|
|
1800
1907
|
leadSource: LeadSource;
|
|
1908
|
+
ratingWeight: number;
|
|
1801
1909
|
agentId?: string | undefined;
|
|
1802
1910
|
leadId?: string | undefined;
|
|
1803
1911
|
assignment?: {
|
|
1912
|
+
createdAt: string;
|
|
1804
1913
|
id: string;
|
|
1805
1914
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1806
|
-
agentId: string | null;
|
|
1807
|
-
createdAt: string;
|
|
1808
1915
|
updatedAt: string;
|
|
1916
|
+
agentId: string | null;
|
|
1809
1917
|
leadId: string;
|
|
1810
1918
|
assignedAt: string;
|
|
1811
1919
|
assignedBy: string | null;
|
|
1812
1920
|
companyId: string | null;
|
|
1813
|
-
lead?: {
|
|
1814
|
-
name: string;
|
|
1815
|
-
phoneNumber: string;
|
|
1816
|
-
} | undefined;
|
|
1817
1921
|
agent?: {
|
|
1922
|
+
lastName: string;
|
|
1923
|
+
firstName: string;
|
|
1818
1924
|
email: string;
|
|
1819
|
-
id: string;
|
|
1820
1925
|
createdAt: string;
|
|
1821
|
-
|
|
1822
|
-
firstName: string;
|
|
1823
|
-
lastName: string;
|
|
1926
|
+
id: string;
|
|
1824
1927
|
phoneNumbers: {
|
|
1825
1928
|
id: string;
|
|
1826
1929
|
phoneNumber: string;
|
|
1827
1930
|
isPrimary: boolean;
|
|
1828
1931
|
description?: string | null | undefined;
|
|
1829
1932
|
}[];
|
|
1933
|
+
updatedAt: string;
|
|
1934
|
+
office?: {
|
|
1935
|
+
id: string;
|
|
1936
|
+
name: string;
|
|
1937
|
+
} | null | undefined;
|
|
1830
1938
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1831
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
1832
1939
|
canImpersonateUsers?: {
|
|
1833
|
-
id: string;
|
|
1834
|
-
firstName: string;
|
|
1835
1940
|
lastName: string;
|
|
1941
|
+
firstName: string;
|
|
1942
|
+
id: string;
|
|
1836
1943
|
}[] | undefined;
|
|
1837
1944
|
} | undefined;
|
|
1838
|
-
|
|
1945
|
+
lead?: {
|
|
1946
|
+
phoneNumber: string;
|
|
1839
1947
|
name: string;
|
|
1840
|
-
|
|
1948
|
+
} | undefined;
|
|
1949
|
+
company?: {
|
|
1841
1950
|
createdAt: string;
|
|
1951
|
+
id: string;
|
|
1952
|
+
name: string;
|
|
1842
1953
|
updatedAt: string;
|
|
1843
1954
|
} | null | undefined;
|
|
1844
1955
|
} | null | undefined;
|
|
1845
1956
|
}, {
|
|
1846
|
-
id: string;
|
|
1847
1957
|
createdAt: string | Date;
|
|
1958
|
+
id: string;
|
|
1848
1959
|
updatedAt: string | Date;
|
|
1849
1960
|
rating: CallRating;
|
|
1850
1961
|
notes: string | null;
|
|
1962
|
+
callType: CallType;
|
|
1851
1963
|
assignmentId: string;
|
|
1852
1964
|
callDate: string | Date;
|
|
1853
|
-
callType: CallType;
|
|
1854
|
-
ratingWeight: number;
|
|
1855
1965
|
leadSource: LeadSource;
|
|
1966
|
+
ratingWeight: number;
|
|
1856
1967
|
agentId?: string | undefined;
|
|
1857
1968
|
leadId?: string | undefined;
|
|
1858
1969
|
assignment?: {
|
|
1970
|
+
createdAt: string | Date;
|
|
1859
1971
|
id: string;
|
|
1860
1972
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1861
|
-
agentId: string | null;
|
|
1862
|
-
createdAt: string | Date;
|
|
1863
1973
|
updatedAt: string | Date;
|
|
1974
|
+
agentId: string | null;
|
|
1864
1975
|
leadId: string;
|
|
1865
1976
|
assignedAt: string | Date;
|
|
1866
1977
|
assignedBy: string | null;
|
|
1867
1978
|
companyId: string | null;
|
|
1868
|
-
lead?: {
|
|
1869
|
-
name: string;
|
|
1870
|
-
phoneNumber: string;
|
|
1871
|
-
} | undefined;
|
|
1872
1979
|
agent?: {
|
|
1980
|
+
lastName: string;
|
|
1981
|
+
firstName: string;
|
|
1873
1982
|
email: string;
|
|
1874
|
-
id: string;
|
|
1875
1983
|
createdAt: string | Date;
|
|
1984
|
+
id: string;
|
|
1876
1985
|
updatedAt: string | Date;
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1986
|
+
office?: {
|
|
1987
|
+
id: string;
|
|
1988
|
+
name: string;
|
|
1989
|
+
} | null | undefined;
|
|
1880
1990
|
phoneNumbers?: {
|
|
1881
1991
|
id: string;
|
|
1882
1992
|
phoneNumber: string;
|
|
1883
1993
|
description?: string | null | undefined;
|
|
1884
1994
|
isPrimary?: boolean | undefined;
|
|
1885
1995
|
}[] | undefined;
|
|
1886
|
-
|
|
1996
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1887
1997
|
canImpersonateUsers?: {
|
|
1888
|
-
id: string;
|
|
1889
|
-
firstName: string;
|
|
1890
1998
|
lastName: string;
|
|
1999
|
+
firstName: string;
|
|
2000
|
+
id: string;
|
|
1891
2001
|
}[] | undefined;
|
|
1892
2002
|
} | undefined;
|
|
1893
|
-
|
|
2003
|
+
lead?: {
|
|
2004
|
+
phoneNumber: string;
|
|
1894
2005
|
name: string;
|
|
1895
|
-
|
|
2006
|
+
} | undefined;
|
|
2007
|
+
company?: {
|
|
1896
2008
|
createdAt: string | Date;
|
|
2009
|
+
id: string;
|
|
2010
|
+
name: string;
|
|
1897
2011
|
updatedAt: string | Date;
|
|
1898
2012
|
} | null | undefined;
|
|
1899
2013
|
} | null | undefined;
|
|
@@ -1906,57 +2020,60 @@ export declare const callHistoryContract: {
|
|
|
1906
2020
|
}, "strip", z.ZodTypeAny, {
|
|
1907
2021
|
limit: number;
|
|
1908
2022
|
items: {
|
|
1909
|
-
id: string;
|
|
1910
2023
|
createdAt: string;
|
|
2024
|
+
id: string;
|
|
1911
2025
|
updatedAt: string;
|
|
1912
2026
|
rating: CallRating;
|
|
1913
2027
|
notes: string | null;
|
|
2028
|
+
callType: CallType;
|
|
1914
2029
|
assignmentId: string;
|
|
1915
2030
|
callDate: string;
|
|
1916
|
-
callType: CallType;
|
|
1917
|
-
ratingWeight: number;
|
|
1918
2031
|
leadSource: LeadSource;
|
|
2032
|
+
ratingWeight: number;
|
|
1919
2033
|
agentId?: string | undefined;
|
|
1920
2034
|
leadId?: string | undefined;
|
|
1921
2035
|
assignment?: {
|
|
2036
|
+
createdAt: string;
|
|
1922
2037
|
id: string;
|
|
1923
2038
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1924
|
-
agentId: string | null;
|
|
1925
|
-
createdAt: string;
|
|
1926
2039
|
updatedAt: string;
|
|
2040
|
+
agentId: string | null;
|
|
1927
2041
|
leadId: string;
|
|
1928
2042
|
assignedAt: string;
|
|
1929
2043
|
assignedBy: string | null;
|
|
1930
2044
|
companyId: string | null;
|
|
1931
|
-
lead?: {
|
|
1932
|
-
name: string;
|
|
1933
|
-
phoneNumber: string;
|
|
1934
|
-
} | undefined;
|
|
1935
2045
|
agent?: {
|
|
2046
|
+
lastName: string;
|
|
2047
|
+
firstName: string;
|
|
1936
2048
|
email: string;
|
|
1937
|
-
id: string;
|
|
1938
2049
|
createdAt: string;
|
|
1939
|
-
|
|
1940
|
-
firstName: string;
|
|
1941
|
-
lastName: string;
|
|
2050
|
+
id: string;
|
|
1942
2051
|
phoneNumbers: {
|
|
1943
2052
|
id: string;
|
|
1944
2053
|
phoneNumber: string;
|
|
1945
2054
|
isPrimary: boolean;
|
|
1946
2055
|
description?: string | null | undefined;
|
|
1947
2056
|
}[];
|
|
2057
|
+
updatedAt: string;
|
|
2058
|
+
office?: {
|
|
2059
|
+
id: string;
|
|
2060
|
+
name: string;
|
|
2061
|
+
} | null | undefined;
|
|
1948
2062
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1949
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
1950
2063
|
canImpersonateUsers?: {
|
|
1951
|
-
id: string;
|
|
1952
|
-
firstName: string;
|
|
1953
2064
|
lastName: string;
|
|
2065
|
+
firstName: string;
|
|
2066
|
+
id: string;
|
|
1954
2067
|
}[] | undefined;
|
|
1955
2068
|
} | undefined;
|
|
1956
|
-
|
|
2069
|
+
lead?: {
|
|
2070
|
+
phoneNumber: string;
|
|
1957
2071
|
name: string;
|
|
1958
|
-
|
|
2072
|
+
} | undefined;
|
|
2073
|
+
company?: {
|
|
1959
2074
|
createdAt: string;
|
|
2075
|
+
id: string;
|
|
2076
|
+
name: string;
|
|
1960
2077
|
updatedAt: string;
|
|
1961
2078
|
} | null | undefined;
|
|
1962
2079
|
} | null | undefined;
|
|
@@ -1968,57 +2085,60 @@ export declare const callHistoryContract: {
|
|
|
1968
2085
|
}, {
|
|
1969
2086
|
limit: number;
|
|
1970
2087
|
items: {
|
|
1971
|
-
id: string;
|
|
1972
2088
|
createdAt: string | Date;
|
|
2089
|
+
id: string;
|
|
1973
2090
|
updatedAt: string | Date;
|
|
1974
2091
|
rating: CallRating;
|
|
1975
2092
|
notes: string | null;
|
|
2093
|
+
callType: CallType;
|
|
1976
2094
|
assignmentId: string;
|
|
1977
2095
|
callDate: string | Date;
|
|
1978
|
-
callType: CallType;
|
|
1979
|
-
ratingWeight: number;
|
|
1980
2096
|
leadSource: LeadSource;
|
|
2097
|
+
ratingWeight: number;
|
|
1981
2098
|
agentId?: string | undefined;
|
|
1982
2099
|
leadId?: string | undefined;
|
|
1983
2100
|
assignment?: {
|
|
2101
|
+
createdAt: string | Date;
|
|
1984
2102
|
id: string;
|
|
1985
2103
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
1986
|
-
agentId: string | null;
|
|
1987
|
-
createdAt: string | Date;
|
|
1988
2104
|
updatedAt: string | Date;
|
|
2105
|
+
agentId: string | null;
|
|
1989
2106
|
leadId: string;
|
|
1990
2107
|
assignedAt: string | Date;
|
|
1991
2108
|
assignedBy: string | null;
|
|
1992
2109
|
companyId: string | null;
|
|
1993
|
-
lead?: {
|
|
1994
|
-
name: string;
|
|
1995
|
-
phoneNumber: string;
|
|
1996
|
-
} | undefined;
|
|
1997
2110
|
agent?: {
|
|
2111
|
+
lastName: string;
|
|
2112
|
+
firstName: string;
|
|
1998
2113
|
email: string;
|
|
1999
|
-
id: string;
|
|
2000
2114
|
createdAt: string | Date;
|
|
2115
|
+
id: string;
|
|
2001
2116
|
updatedAt: string | Date;
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2117
|
+
office?: {
|
|
2118
|
+
id: string;
|
|
2119
|
+
name: string;
|
|
2120
|
+
} | null | undefined;
|
|
2005
2121
|
phoneNumbers?: {
|
|
2006
2122
|
id: string;
|
|
2007
2123
|
phoneNumber: string;
|
|
2008
2124
|
description?: string | null | undefined;
|
|
2009
2125
|
isPrimary?: boolean | undefined;
|
|
2010
2126
|
}[] | undefined;
|
|
2011
|
-
|
|
2127
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2012
2128
|
canImpersonateUsers?: {
|
|
2013
|
-
id: string;
|
|
2014
|
-
firstName: string;
|
|
2015
2129
|
lastName: string;
|
|
2130
|
+
firstName: string;
|
|
2131
|
+
id: string;
|
|
2016
2132
|
}[] | undefined;
|
|
2017
2133
|
} | undefined;
|
|
2018
|
-
|
|
2134
|
+
lead?: {
|
|
2135
|
+
phoneNumber: string;
|
|
2019
2136
|
name: string;
|
|
2020
|
-
|
|
2137
|
+
} | undefined;
|
|
2138
|
+
company?: {
|
|
2021
2139
|
createdAt: string | Date;
|
|
2140
|
+
id: string;
|
|
2141
|
+
name: string;
|
|
2022
2142
|
updatedAt: string | Date;
|
|
2023
2143
|
} | null | undefined;
|
|
2024
2144
|
} | null | undefined;
|
|
@@ -2157,11 +2277,11 @@ export declare const callHistoryContract: {
|
|
|
2157
2277
|
name: z.ZodString;
|
|
2158
2278
|
phoneNumber: z.ZodString;
|
|
2159
2279
|
}, "strip", z.ZodTypeAny, {
|
|
2160
|
-
name: string;
|
|
2161
2280
|
phoneNumber: string;
|
|
2162
|
-
}, {
|
|
2163
2281
|
name: string;
|
|
2282
|
+
}, {
|
|
2164
2283
|
phoneNumber: string;
|
|
2284
|
+
name: string;
|
|
2165
2285
|
}>>;
|
|
2166
2286
|
agentId: z.ZodNullable<z.ZodString>;
|
|
2167
2287
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -2186,61 +2306,76 @@ export declare const callHistoryContract: {
|
|
|
2186
2306
|
isPrimary?: boolean | undefined;
|
|
2187
2307
|
}>, "many">>>;
|
|
2188
2308
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
2189
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
2309
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2310
|
+
id: z.ZodString;
|
|
2311
|
+
name: z.ZodString;
|
|
2312
|
+
}, "strip", z.ZodTypeAny, {
|
|
2313
|
+
id: string;
|
|
2314
|
+
name: string;
|
|
2315
|
+
}, {
|
|
2316
|
+
id: string;
|
|
2317
|
+
name: string;
|
|
2318
|
+
}>>>;
|
|
2190
2319
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2191
2320
|
id: z.ZodString;
|
|
2192
2321
|
firstName: z.ZodString;
|
|
2193
2322
|
lastName: z.ZodString;
|
|
2194
2323
|
}, "strip", z.ZodTypeAny, {
|
|
2195
|
-
id: string;
|
|
2196
|
-
firstName: string;
|
|
2197
2324
|
lastName: string;
|
|
2198
|
-
}, {
|
|
2199
|
-
id: string;
|
|
2200
2325
|
firstName: string;
|
|
2326
|
+
id: string;
|
|
2327
|
+
}, {
|
|
2201
2328
|
lastName: string;
|
|
2329
|
+
firstName: string;
|
|
2330
|
+
id: string;
|
|
2202
2331
|
}>, "many">>;
|
|
2203
2332
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2204
2333
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2205
2334
|
}, "strip", z.ZodTypeAny, {
|
|
2335
|
+
lastName: string;
|
|
2336
|
+
firstName: string;
|
|
2206
2337
|
email: string;
|
|
2207
|
-
id: string;
|
|
2208
2338
|
createdAt: string;
|
|
2209
|
-
|
|
2210
|
-
firstName: string;
|
|
2211
|
-
lastName: string;
|
|
2339
|
+
id: string;
|
|
2212
2340
|
phoneNumbers: {
|
|
2213
2341
|
id: string;
|
|
2214
2342
|
phoneNumber: string;
|
|
2215
2343
|
isPrimary: boolean;
|
|
2216
2344
|
description?: string | null | undefined;
|
|
2217
2345
|
}[];
|
|
2346
|
+
updatedAt: string;
|
|
2347
|
+
office?: {
|
|
2348
|
+
id: string;
|
|
2349
|
+
name: string;
|
|
2350
|
+
} | null | undefined;
|
|
2218
2351
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2219
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
2220
2352
|
canImpersonateUsers?: {
|
|
2221
|
-
id: string;
|
|
2222
|
-
firstName: string;
|
|
2223
2353
|
lastName: string;
|
|
2354
|
+
firstName: string;
|
|
2355
|
+
id: string;
|
|
2224
2356
|
}[] | undefined;
|
|
2225
2357
|
}, {
|
|
2358
|
+
lastName: string;
|
|
2359
|
+
firstName: string;
|
|
2226
2360
|
email: string;
|
|
2227
|
-
id: string;
|
|
2228
2361
|
createdAt: string | Date;
|
|
2362
|
+
id: string;
|
|
2229
2363
|
updatedAt: string | Date;
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2364
|
+
office?: {
|
|
2365
|
+
id: string;
|
|
2366
|
+
name: string;
|
|
2367
|
+
} | null | undefined;
|
|
2233
2368
|
phoneNumbers?: {
|
|
2234
2369
|
id: string;
|
|
2235
2370
|
phoneNumber: string;
|
|
2236
2371
|
description?: string | null | undefined;
|
|
2237
2372
|
isPrimary?: boolean | undefined;
|
|
2238
2373
|
}[] | undefined;
|
|
2239
|
-
|
|
2374
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2240
2375
|
canImpersonateUsers?: {
|
|
2241
|
-
id: string;
|
|
2242
|
-
firstName: string;
|
|
2243
2376
|
lastName: string;
|
|
2377
|
+
firstName: string;
|
|
2378
|
+
id: string;
|
|
2244
2379
|
}[] | undefined;
|
|
2245
2380
|
}>>;
|
|
2246
2381
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2253,98 +2388,104 @@ export declare const callHistoryContract: {
|
|
|
2253
2388
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2254
2389
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2255
2390
|
}, "strip", z.ZodTypeAny, {
|
|
2256
|
-
name: string;
|
|
2257
|
-
id: string;
|
|
2258
2391
|
createdAt: string;
|
|
2392
|
+
id: string;
|
|
2393
|
+
name: string;
|
|
2259
2394
|
updatedAt: string;
|
|
2260
2395
|
}, {
|
|
2261
|
-
name: string;
|
|
2262
|
-
id: string;
|
|
2263
2396
|
createdAt: string | Date;
|
|
2397
|
+
id: string;
|
|
2398
|
+
name: string;
|
|
2264
2399
|
updatedAt: string | Date;
|
|
2265
2400
|
}>>>;
|
|
2266
2401
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2267
2402
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2268
2403
|
}, "strip", z.ZodTypeAny, {
|
|
2404
|
+
createdAt: string;
|
|
2269
2405
|
id: string;
|
|
2270
2406
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2271
|
-
agentId: string | null;
|
|
2272
|
-
createdAt: string;
|
|
2273
2407
|
updatedAt: string;
|
|
2408
|
+
agentId: string | null;
|
|
2274
2409
|
leadId: string;
|
|
2275
2410
|
assignedAt: string;
|
|
2276
2411
|
assignedBy: string | null;
|
|
2277
2412
|
companyId: string | null;
|
|
2278
|
-
lead?: {
|
|
2279
|
-
name: string;
|
|
2280
|
-
phoneNumber: string;
|
|
2281
|
-
} | undefined;
|
|
2282
2413
|
agent?: {
|
|
2414
|
+
lastName: string;
|
|
2415
|
+
firstName: string;
|
|
2283
2416
|
email: string;
|
|
2284
|
-
id: string;
|
|
2285
2417
|
createdAt: string;
|
|
2286
|
-
|
|
2287
|
-
firstName: string;
|
|
2288
|
-
lastName: string;
|
|
2418
|
+
id: string;
|
|
2289
2419
|
phoneNumbers: {
|
|
2290
2420
|
id: string;
|
|
2291
2421
|
phoneNumber: string;
|
|
2292
2422
|
isPrimary: boolean;
|
|
2293
2423
|
description?: string | null | undefined;
|
|
2294
2424
|
}[];
|
|
2425
|
+
updatedAt: string;
|
|
2426
|
+
office?: {
|
|
2427
|
+
id: string;
|
|
2428
|
+
name: string;
|
|
2429
|
+
} | null | undefined;
|
|
2295
2430
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2296
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
2297
2431
|
canImpersonateUsers?: {
|
|
2298
|
-
id: string;
|
|
2299
|
-
firstName: string;
|
|
2300
2432
|
lastName: string;
|
|
2433
|
+
firstName: string;
|
|
2434
|
+
id: string;
|
|
2301
2435
|
}[] | undefined;
|
|
2302
2436
|
} | undefined;
|
|
2303
|
-
|
|
2437
|
+
lead?: {
|
|
2438
|
+
phoneNumber: string;
|
|
2304
2439
|
name: string;
|
|
2305
|
-
|
|
2440
|
+
} | undefined;
|
|
2441
|
+
company?: {
|
|
2306
2442
|
createdAt: string;
|
|
2443
|
+
id: string;
|
|
2444
|
+
name: string;
|
|
2307
2445
|
updatedAt: string;
|
|
2308
2446
|
} | null | undefined;
|
|
2309
2447
|
}, {
|
|
2448
|
+
createdAt: string | Date;
|
|
2310
2449
|
id: string;
|
|
2311
2450
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2312
|
-
agentId: string | null;
|
|
2313
|
-
createdAt: string | Date;
|
|
2314
2451
|
updatedAt: string | Date;
|
|
2452
|
+
agentId: string | null;
|
|
2315
2453
|
leadId: string;
|
|
2316
2454
|
assignedAt: string | Date;
|
|
2317
2455
|
assignedBy: string | null;
|
|
2318
2456
|
companyId: string | null;
|
|
2319
|
-
lead?: {
|
|
2320
|
-
name: string;
|
|
2321
|
-
phoneNumber: string;
|
|
2322
|
-
} | undefined;
|
|
2323
2457
|
agent?: {
|
|
2458
|
+
lastName: string;
|
|
2459
|
+
firstName: string;
|
|
2324
2460
|
email: string;
|
|
2325
|
-
id: string;
|
|
2326
2461
|
createdAt: string | Date;
|
|
2462
|
+
id: string;
|
|
2327
2463
|
updatedAt: string | Date;
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2464
|
+
office?: {
|
|
2465
|
+
id: string;
|
|
2466
|
+
name: string;
|
|
2467
|
+
} | null | undefined;
|
|
2331
2468
|
phoneNumbers?: {
|
|
2332
2469
|
id: string;
|
|
2333
2470
|
phoneNumber: string;
|
|
2334
2471
|
description?: string | null | undefined;
|
|
2335
2472
|
isPrimary?: boolean | undefined;
|
|
2336
2473
|
}[] | undefined;
|
|
2337
|
-
|
|
2474
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2338
2475
|
canImpersonateUsers?: {
|
|
2339
|
-
id: string;
|
|
2340
|
-
firstName: string;
|
|
2341
2476
|
lastName: string;
|
|
2477
|
+
firstName: string;
|
|
2478
|
+
id: string;
|
|
2342
2479
|
}[] | undefined;
|
|
2343
2480
|
} | undefined;
|
|
2344
|
-
|
|
2481
|
+
lead?: {
|
|
2482
|
+
phoneNumber: string;
|
|
2345
2483
|
name: string;
|
|
2346
|
-
|
|
2484
|
+
} | undefined;
|
|
2485
|
+
company?: {
|
|
2347
2486
|
createdAt: string | Date;
|
|
2487
|
+
id: string;
|
|
2488
|
+
name: string;
|
|
2348
2489
|
updatedAt: string | Date;
|
|
2349
2490
|
} | null | undefined;
|
|
2350
2491
|
}>>>;
|
|
@@ -2357,112 +2498,118 @@ export declare const callHistoryContract: {
|
|
|
2357
2498
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2358
2499
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2359
2500
|
}, "strip", z.ZodTypeAny, {
|
|
2360
|
-
id: string;
|
|
2361
2501
|
createdAt: string;
|
|
2502
|
+
id: string;
|
|
2362
2503
|
updatedAt: string;
|
|
2363
2504
|
rating: CallRating;
|
|
2364
2505
|
notes: string | null;
|
|
2506
|
+
callType: CallType;
|
|
2365
2507
|
assignmentId: string;
|
|
2366
2508
|
callDate: string;
|
|
2367
|
-
callType: CallType;
|
|
2368
|
-
ratingWeight: number;
|
|
2369
2509
|
leadSource: LeadSource;
|
|
2510
|
+
ratingWeight: number;
|
|
2370
2511
|
agentId?: string | undefined;
|
|
2371
2512
|
leadId?: string | undefined;
|
|
2372
2513
|
assignment?: {
|
|
2514
|
+
createdAt: string;
|
|
2373
2515
|
id: string;
|
|
2374
2516
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2375
|
-
agentId: string | null;
|
|
2376
|
-
createdAt: string;
|
|
2377
2517
|
updatedAt: string;
|
|
2518
|
+
agentId: string | null;
|
|
2378
2519
|
leadId: string;
|
|
2379
2520
|
assignedAt: string;
|
|
2380
2521
|
assignedBy: string | null;
|
|
2381
|
-
companyId: string | null;
|
|
2382
|
-
lead?: {
|
|
2383
|
-
name: string;
|
|
2384
|
-
phoneNumber: string;
|
|
2385
|
-
} | undefined;
|
|
2522
|
+
companyId: string | null;
|
|
2386
2523
|
agent?: {
|
|
2524
|
+
lastName: string;
|
|
2525
|
+
firstName: string;
|
|
2387
2526
|
email: string;
|
|
2388
|
-
id: string;
|
|
2389
2527
|
createdAt: string;
|
|
2390
|
-
|
|
2391
|
-
firstName: string;
|
|
2392
|
-
lastName: string;
|
|
2528
|
+
id: string;
|
|
2393
2529
|
phoneNumbers: {
|
|
2394
2530
|
id: string;
|
|
2395
2531
|
phoneNumber: string;
|
|
2396
2532
|
isPrimary: boolean;
|
|
2397
2533
|
description?: string | null | undefined;
|
|
2398
2534
|
}[];
|
|
2535
|
+
updatedAt: string;
|
|
2536
|
+
office?: {
|
|
2537
|
+
id: string;
|
|
2538
|
+
name: string;
|
|
2539
|
+
} | null | undefined;
|
|
2399
2540
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2400
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
2401
2541
|
canImpersonateUsers?: {
|
|
2402
|
-
id: string;
|
|
2403
|
-
firstName: string;
|
|
2404
2542
|
lastName: string;
|
|
2543
|
+
firstName: string;
|
|
2544
|
+
id: string;
|
|
2405
2545
|
}[] | undefined;
|
|
2406
2546
|
} | undefined;
|
|
2407
|
-
|
|
2547
|
+
lead?: {
|
|
2548
|
+
phoneNumber: string;
|
|
2408
2549
|
name: string;
|
|
2409
|
-
|
|
2550
|
+
} | undefined;
|
|
2551
|
+
company?: {
|
|
2410
2552
|
createdAt: string;
|
|
2553
|
+
id: string;
|
|
2554
|
+
name: string;
|
|
2411
2555
|
updatedAt: string;
|
|
2412
2556
|
} | null | undefined;
|
|
2413
2557
|
} | null | undefined;
|
|
2414
2558
|
}, {
|
|
2415
|
-
id: string;
|
|
2416
2559
|
createdAt: string | Date;
|
|
2560
|
+
id: string;
|
|
2417
2561
|
updatedAt: string | Date;
|
|
2418
2562
|
rating: CallRating;
|
|
2419
2563
|
notes: string | null;
|
|
2564
|
+
callType: CallType;
|
|
2420
2565
|
assignmentId: string;
|
|
2421
2566
|
callDate: string | Date;
|
|
2422
|
-
callType: CallType;
|
|
2423
|
-
ratingWeight: number;
|
|
2424
2567
|
leadSource: LeadSource;
|
|
2568
|
+
ratingWeight: number;
|
|
2425
2569
|
agentId?: string | undefined;
|
|
2426
2570
|
leadId?: string | undefined;
|
|
2427
2571
|
assignment?: {
|
|
2572
|
+
createdAt: string | Date;
|
|
2428
2573
|
id: string;
|
|
2429
2574
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2430
|
-
agentId: string | null;
|
|
2431
|
-
createdAt: string | Date;
|
|
2432
2575
|
updatedAt: string | Date;
|
|
2576
|
+
agentId: string | null;
|
|
2433
2577
|
leadId: string;
|
|
2434
2578
|
assignedAt: string | Date;
|
|
2435
2579
|
assignedBy: string | null;
|
|
2436
2580
|
companyId: string | null;
|
|
2437
|
-
lead?: {
|
|
2438
|
-
name: string;
|
|
2439
|
-
phoneNumber: string;
|
|
2440
|
-
} | undefined;
|
|
2441
2581
|
agent?: {
|
|
2582
|
+
lastName: string;
|
|
2583
|
+
firstName: string;
|
|
2442
2584
|
email: string;
|
|
2443
|
-
id: string;
|
|
2444
2585
|
createdAt: string | Date;
|
|
2586
|
+
id: string;
|
|
2445
2587
|
updatedAt: string | Date;
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2588
|
+
office?: {
|
|
2589
|
+
id: string;
|
|
2590
|
+
name: string;
|
|
2591
|
+
} | null | undefined;
|
|
2449
2592
|
phoneNumbers?: {
|
|
2450
2593
|
id: string;
|
|
2451
2594
|
phoneNumber: string;
|
|
2452
2595
|
description?: string | null | undefined;
|
|
2453
2596
|
isPrimary?: boolean | undefined;
|
|
2454
2597
|
}[] | undefined;
|
|
2455
|
-
|
|
2598
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2456
2599
|
canImpersonateUsers?: {
|
|
2457
|
-
id: string;
|
|
2458
|
-
firstName: string;
|
|
2459
2600
|
lastName: string;
|
|
2601
|
+
firstName: string;
|
|
2602
|
+
id: string;
|
|
2460
2603
|
}[] | undefined;
|
|
2461
2604
|
} | undefined;
|
|
2462
|
-
|
|
2605
|
+
lead?: {
|
|
2606
|
+
phoneNumber: string;
|
|
2463
2607
|
name: string;
|
|
2464
|
-
|
|
2608
|
+
} | undefined;
|
|
2609
|
+
company?: {
|
|
2465
2610
|
createdAt: string | Date;
|
|
2611
|
+
id: string;
|
|
2612
|
+
name: string;
|
|
2466
2613
|
updatedAt: string | Date;
|
|
2467
2614
|
} | null | undefined;
|
|
2468
2615
|
} | null | undefined;
|
|
@@ -2634,11 +2781,11 @@ export declare const callHistoryContract: {
|
|
|
2634
2781
|
name: z.ZodString;
|
|
2635
2782
|
phoneNumber: z.ZodString;
|
|
2636
2783
|
}, "strip", z.ZodTypeAny, {
|
|
2637
|
-
name: string;
|
|
2638
2784
|
phoneNumber: string;
|
|
2639
|
-
}, {
|
|
2640
2785
|
name: string;
|
|
2786
|
+
}, {
|
|
2641
2787
|
phoneNumber: string;
|
|
2788
|
+
name: string;
|
|
2642
2789
|
}>>;
|
|
2643
2790
|
agentId: z.ZodNullable<z.ZodString>;
|
|
2644
2791
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -2663,61 +2810,76 @@ export declare const callHistoryContract: {
|
|
|
2663
2810
|
isPrimary?: boolean | undefined;
|
|
2664
2811
|
}>, "many">>>;
|
|
2665
2812
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
2666
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
2813
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2814
|
+
id: z.ZodString;
|
|
2815
|
+
name: z.ZodString;
|
|
2816
|
+
}, "strip", z.ZodTypeAny, {
|
|
2817
|
+
id: string;
|
|
2818
|
+
name: string;
|
|
2819
|
+
}, {
|
|
2820
|
+
id: string;
|
|
2821
|
+
name: string;
|
|
2822
|
+
}>>>;
|
|
2667
2823
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2668
2824
|
id: z.ZodString;
|
|
2669
2825
|
firstName: z.ZodString;
|
|
2670
2826
|
lastName: z.ZodString;
|
|
2671
2827
|
}, "strip", z.ZodTypeAny, {
|
|
2672
|
-
id: string;
|
|
2673
|
-
firstName: string;
|
|
2674
2828
|
lastName: string;
|
|
2675
|
-
}, {
|
|
2676
|
-
id: string;
|
|
2677
2829
|
firstName: string;
|
|
2830
|
+
id: string;
|
|
2831
|
+
}, {
|
|
2678
2832
|
lastName: string;
|
|
2833
|
+
firstName: string;
|
|
2834
|
+
id: string;
|
|
2679
2835
|
}>, "many">>;
|
|
2680
2836
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2681
2837
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2682
2838
|
}, "strip", z.ZodTypeAny, {
|
|
2839
|
+
lastName: string;
|
|
2840
|
+
firstName: string;
|
|
2683
2841
|
email: string;
|
|
2684
|
-
id: string;
|
|
2685
2842
|
createdAt: string;
|
|
2686
|
-
|
|
2687
|
-
firstName: string;
|
|
2688
|
-
lastName: string;
|
|
2843
|
+
id: string;
|
|
2689
2844
|
phoneNumbers: {
|
|
2690
2845
|
id: string;
|
|
2691
2846
|
phoneNumber: string;
|
|
2692
2847
|
isPrimary: boolean;
|
|
2693
2848
|
description?: string | null | undefined;
|
|
2694
2849
|
}[];
|
|
2850
|
+
updatedAt: string;
|
|
2851
|
+
office?: {
|
|
2852
|
+
id: string;
|
|
2853
|
+
name: string;
|
|
2854
|
+
} | null | undefined;
|
|
2695
2855
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2696
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
2697
2856
|
canImpersonateUsers?: {
|
|
2698
|
-
id: string;
|
|
2699
|
-
firstName: string;
|
|
2700
2857
|
lastName: string;
|
|
2858
|
+
firstName: string;
|
|
2859
|
+
id: string;
|
|
2701
2860
|
}[] | undefined;
|
|
2702
2861
|
}, {
|
|
2862
|
+
lastName: string;
|
|
2863
|
+
firstName: string;
|
|
2703
2864
|
email: string;
|
|
2704
|
-
id: string;
|
|
2705
2865
|
createdAt: string | Date;
|
|
2866
|
+
id: string;
|
|
2706
2867
|
updatedAt: string | Date;
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2868
|
+
office?: {
|
|
2869
|
+
id: string;
|
|
2870
|
+
name: string;
|
|
2871
|
+
} | null | undefined;
|
|
2710
2872
|
phoneNumbers?: {
|
|
2711
2873
|
id: string;
|
|
2712
2874
|
phoneNumber: string;
|
|
2713
2875
|
description?: string | null | undefined;
|
|
2714
2876
|
isPrimary?: boolean | undefined;
|
|
2715
2877
|
}[] | undefined;
|
|
2716
|
-
|
|
2878
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2717
2879
|
canImpersonateUsers?: {
|
|
2718
|
-
id: string;
|
|
2719
|
-
firstName: string;
|
|
2720
2880
|
lastName: string;
|
|
2881
|
+
firstName: string;
|
|
2882
|
+
id: string;
|
|
2721
2883
|
}[] | undefined;
|
|
2722
2884
|
}>>;
|
|
2723
2885
|
assignedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2730,98 +2892,104 @@ export declare const callHistoryContract: {
|
|
|
2730
2892
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2731
2893
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2732
2894
|
}, "strip", z.ZodTypeAny, {
|
|
2733
|
-
name: string;
|
|
2734
|
-
id: string;
|
|
2735
2895
|
createdAt: string;
|
|
2896
|
+
id: string;
|
|
2897
|
+
name: string;
|
|
2736
2898
|
updatedAt: string;
|
|
2737
2899
|
}, {
|
|
2738
|
-
name: string;
|
|
2739
|
-
id: string;
|
|
2740
2900
|
createdAt: string | Date;
|
|
2901
|
+
id: string;
|
|
2902
|
+
name: string;
|
|
2741
2903
|
updatedAt: string | Date;
|
|
2742
2904
|
}>>>;
|
|
2743
2905
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2744
2906
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2745
2907
|
}, "strip", z.ZodTypeAny, {
|
|
2908
|
+
createdAt: string;
|
|
2746
2909
|
id: string;
|
|
2747
2910
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2748
|
-
agentId: string | null;
|
|
2749
|
-
createdAt: string;
|
|
2750
2911
|
updatedAt: string;
|
|
2912
|
+
agentId: string | null;
|
|
2751
2913
|
leadId: string;
|
|
2752
2914
|
assignedAt: string;
|
|
2753
2915
|
assignedBy: string | null;
|
|
2754
2916
|
companyId: string | null;
|
|
2755
|
-
lead?: {
|
|
2756
|
-
name: string;
|
|
2757
|
-
phoneNumber: string;
|
|
2758
|
-
} | undefined;
|
|
2759
2917
|
agent?: {
|
|
2918
|
+
lastName: string;
|
|
2919
|
+
firstName: string;
|
|
2760
2920
|
email: string;
|
|
2761
|
-
id: string;
|
|
2762
2921
|
createdAt: string;
|
|
2763
|
-
|
|
2764
|
-
firstName: string;
|
|
2765
|
-
lastName: string;
|
|
2922
|
+
id: string;
|
|
2766
2923
|
phoneNumbers: {
|
|
2767
2924
|
id: string;
|
|
2768
2925
|
phoneNumber: string;
|
|
2769
2926
|
isPrimary: boolean;
|
|
2770
2927
|
description?: string | null | undefined;
|
|
2771
2928
|
}[];
|
|
2929
|
+
updatedAt: string;
|
|
2930
|
+
office?: {
|
|
2931
|
+
id: string;
|
|
2932
|
+
name: string;
|
|
2933
|
+
} | null | undefined;
|
|
2772
2934
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2773
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
2774
2935
|
canImpersonateUsers?: {
|
|
2775
|
-
id: string;
|
|
2776
|
-
firstName: string;
|
|
2777
2936
|
lastName: string;
|
|
2937
|
+
firstName: string;
|
|
2938
|
+
id: string;
|
|
2778
2939
|
}[] | undefined;
|
|
2779
2940
|
} | undefined;
|
|
2780
|
-
|
|
2941
|
+
lead?: {
|
|
2942
|
+
phoneNumber: string;
|
|
2781
2943
|
name: string;
|
|
2782
|
-
|
|
2944
|
+
} | undefined;
|
|
2945
|
+
company?: {
|
|
2783
2946
|
createdAt: string;
|
|
2947
|
+
id: string;
|
|
2948
|
+
name: string;
|
|
2784
2949
|
updatedAt: string;
|
|
2785
2950
|
} | null | undefined;
|
|
2786
2951
|
}, {
|
|
2952
|
+
createdAt: string | Date;
|
|
2787
2953
|
id: string;
|
|
2788
2954
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2789
|
-
agentId: string | null;
|
|
2790
|
-
createdAt: string | Date;
|
|
2791
2955
|
updatedAt: string | Date;
|
|
2956
|
+
agentId: string | null;
|
|
2792
2957
|
leadId: string;
|
|
2793
2958
|
assignedAt: string | Date;
|
|
2794
2959
|
assignedBy: string | null;
|
|
2795
2960
|
companyId: string | null;
|
|
2796
|
-
lead?: {
|
|
2797
|
-
name: string;
|
|
2798
|
-
phoneNumber: string;
|
|
2799
|
-
} | undefined;
|
|
2800
2961
|
agent?: {
|
|
2962
|
+
lastName: string;
|
|
2963
|
+
firstName: string;
|
|
2801
2964
|
email: string;
|
|
2802
|
-
id: string;
|
|
2803
2965
|
createdAt: string | Date;
|
|
2966
|
+
id: string;
|
|
2804
2967
|
updatedAt: string | Date;
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2968
|
+
office?: {
|
|
2969
|
+
id: string;
|
|
2970
|
+
name: string;
|
|
2971
|
+
} | null | undefined;
|
|
2808
2972
|
phoneNumbers?: {
|
|
2809
2973
|
id: string;
|
|
2810
2974
|
phoneNumber: string;
|
|
2811
2975
|
description?: string | null | undefined;
|
|
2812
2976
|
isPrimary?: boolean | undefined;
|
|
2813
2977
|
}[] | undefined;
|
|
2814
|
-
|
|
2978
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2815
2979
|
canImpersonateUsers?: {
|
|
2816
|
-
id: string;
|
|
2817
|
-
firstName: string;
|
|
2818
2980
|
lastName: string;
|
|
2981
|
+
firstName: string;
|
|
2982
|
+
id: string;
|
|
2819
2983
|
}[] | undefined;
|
|
2820
2984
|
} | undefined;
|
|
2821
|
-
|
|
2985
|
+
lead?: {
|
|
2986
|
+
phoneNumber: string;
|
|
2822
2987
|
name: string;
|
|
2823
|
-
|
|
2988
|
+
} | undefined;
|
|
2989
|
+
company?: {
|
|
2824
2990
|
createdAt: string | Date;
|
|
2991
|
+
id: string;
|
|
2992
|
+
name: string;
|
|
2825
2993
|
updatedAt: string | Date;
|
|
2826
2994
|
} | null | undefined;
|
|
2827
2995
|
}>>>;
|
|
@@ -2834,112 +3002,118 @@ export declare const callHistoryContract: {
|
|
|
2834
3002
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2835
3003
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2836
3004
|
}, "strip", z.ZodTypeAny, {
|
|
2837
|
-
id: string;
|
|
2838
3005
|
createdAt: string;
|
|
3006
|
+
id: string;
|
|
2839
3007
|
updatedAt: string;
|
|
2840
3008
|
rating: CallRating;
|
|
2841
3009
|
notes: string | null;
|
|
3010
|
+
callType: CallType;
|
|
2842
3011
|
assignmentId: string;
|
|
2843
3012
|
callDate: string;
|
|
2844
|
-
callType: CallType;
|
|
2845
|
-
ratingWeight: number;
|
|
2846
3013
|
leadSource: LeadSource;
|
|
3014
|
+
ratingWeight: number;
|
|
2847
3015
|
agentId?: string | undefined;
|
|
2848
3016
|
leadId?: string | undefined;
|
|
2849
3017
|
assignment?: {
|
|
3018
|
+
createdAt: string;
|
|
2850
3019
|
id: string;
|
|
2851
3020
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2852
|
-
agentId: string | null;
|
|
2853
|
-
createdAt: string;
|
|
2854
3021
|
updatedAt: string;
|
|
3022
|
+
agentId: string | null;
|
|
2855
3023
|
leadId: string;
|
|
2856
3024
|
assignedAt: string;
|
|
2857
3025
|
assignedBy: string | null;
|
|
2858
3026
|
companyId: string | null;
|
|
2859
|
-
lead?: {
|
|
2860
|
-
name: string;
|
|
2861
|
-
phoneNumber: string;
|
|
2862
|
-
} | undefined;
|
|
2863
3027
|
agent?: {
|
|
3028
|
+
lastName: string;
|
|
3029
|
+
firstName: string;
|
|
2864
3030
|
email: string;
|
|
2865
|
-
id: string;
|
|
2866
3031
|
createdAt: string;
|
|
2867
|
-
|
|
2868
|
-
firstName: string;
|
|
2869
|
-
lastName: string;
|
|
3032
|
+
id: string;
|
|
2870
3033
|
phoneNumbers: {
|
|
2871
3034
|
id: string;
|
|
2872
3035
|
phoneNumber: string;
|
|
2873
3036
|
isPrimary: boolean;
|
|
2874
3037
|
description?: string | null | undefined;
|
|
2875
3038
|
}[];
|
|
3039
|
+
updatedAt: string;
|
|
3040
|
+
office?: {
|
|
3041
|
+
id: string;
|
|
3042
|
+
name: string;
|
|
3043
|
+
} | null | undefined;
|
|
2876
3044
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2877
|
-
office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | null | undefined;
|
|
2878
3045
|
canImpersonateUsers?: {
|
|
2879
|
-
id: string;
|
|
2880
|
-
firstName: string;
|
|
2881
3046
|
lastName: string;
|
|
3047
|
+
firstName: string;
|
|
3048
|
+
id: string;
|
|
2882
3049
|
}[] | undefined;
|
|
2883
3050
|
} | undefined;
|
|
2884
|
-
|
|
3051
|
+
lead?: {
|
|
3052
|
+
phoneNumber: string;
|
|
2885
3053
|
name: string;
|
|
2886
|
-
|
|
3054
|
+
} | undefined;
|
|
3055
|
+
company?: {
|
|
2887
3056
|
createdAt: string;
|
|
3057
|
+
id: string;
|
|
3058
|
+
name: string;
|
|
2888
3059
|
updatedAt: string;
|
|
2889
3060
|
} | null | undefined;
|
|
2890
3061
|
} | null | undefined;
|
|
2891
3062
|
}, {
|
|
2892
|
-
id: string;
|
|
2893
3063
|
createdAt: string | Date;
|
|
3064
|
+
id: string;
|
|
2894
3065
|
updatedAt: string | Date;
|
|
2895
3066
|
rating: CallRating;
|
|
2896
3067
|
notes: string | null;
|
|
3068
|
+
callType: CallType;
|
|
2897
3069
|
assignmentId: string;
|
|
2898
3070
|
callDate: string | Date;
|
|
2899
|
-
callType: CallType;
|
|
2900
|
-
ratingWeight: number;
|
|
2901
3071
|
leadSource: LeadSource;
|
|
3072
|
+
ratingWeight: number;
|
|
2902
3073
|
agentId?: string | undefined;
|
|
2903
3074
|
leadId?: string | undefined;
|
|
2904
3075
|
assignment?: {
|
|
3076
|
+
createdAt: string | Date;
|
|
2905
3077
|
id: string;
|
|
2906
3078
|
status: import("../lead-assignments/lead-assignments.contract").LeadAssignmentStatus;
|
|
2907
|
-
agentId: string | null;
|
|
2908
|
-
createdAt: string | Date;
|
|
2909
3079
|
updatedAt: string | Date;
|
|
3080
|
+
agentId: string | null;
|
|
2910
3081
|
leadId: string;
|
|
2911
3082
|
assignedAt: string | Date;
|
|
2912
3083
|
assignedBy: string | null;
|
|
2913
3084
|
companyId: string | null;
|
|
2914
|
-
lead?: {
|
|
2915
|
-
name: string;
|
|
2916
|
-
phoneNumber: string;
|
|
2917
|
-
} | undefined;
|
|
2918
3085
|
agent?: {
|
|
3086
|
+
lastName: string;
|
|
3087
|
+
firstName: string;
|
|
2919
3088
|
email: string;
|
|
2920
|
-
id: string;
|
|
2921
3089
|
createdAt: string | Date;
|
|
3090
|
+
id: string;
|
|
2922
3091
|
updatedAt: string | Date;
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
3092
|
+
office?: {
|
|
3093
|
+
id: string;
|
|
3094
|
+
name: string;
|
|
3095
|
+
} | null | undefined;
|
|
2926
3096
|
phoneNumbers?: {
|
|
2927
3097
|
id: string;
|
|
2928
3098
|
phoneNumber: string;
|
|
2929
3099
|
description?: string | null | undefined;
|
|
2930
3100
|
isPrimary?: boolean | undefined;
|
|
2931
3101
|
}[] | undefined;
|
|
2932
|
-
|
|
3102
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2933
3103
|
canImpersonateUsers?: {
|
|
2934
|
-
id: string;
|
|
2935
|
-
firstName: string;
|
|
2936
3104
|
lastName: string;
|
|
3105
|
+
firstName: string;
|
|
3106
|
+
id: string;
|
|
2937
3107
|
}[] | undefined;
|
|
2938
3108
|
} | undefined;
|
|
2939
|
-
|
|
3109
|
+
lead?: {
|
|
3110
|
+
phoneNumber: string;
|
|
2940
3111
|
name: string;
|
|
2941
|
-
|
|
3112
|
+
} | undefined;
|
|
3113
|
+
company?: {
|
|
2942
3114
|
createdAt: string | Date;
|
|
3115
|
+
id: string;
|
|
3116
|
+
name: string;
|
|
2943
3117
|
updatedAt: string | Date;
|
|
2944
3118
|
} | null | undefined;
|
|
2945
3119
|
} | null | undefined;
|