@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
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { AutocompleteQuerySchema } from '../common/common-schemas';
|
|
3
3
|
export declare const UserRoleSchema: z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const UserSortableFieldsSchema: z.ZodEnum<["lastName", "firstName", "email", "createdAt"]>;
|
|
4
|
+
export declare const UserSortableFieldsSchema: z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>;
|
|
6
5
|
export declare const UserPhoneNumberSchema: z.ZodObject<{
|
|
7
6
|
id: z.ZodString;
|
|
8
7
|
phoneNumber: z.ZodString;
|
|
@@ -63,26 +62,26 @@ export declare const UserAutocompleteResponseSchema: z.ZodObject<{
|
|
|
63
62
|
firstName: z.ZodString;
|
|
64
63
|
lastName: z.ZodString;
|
|
65
64
|
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
id: string;
|
|
67
|
-
firstName: string;
|
|
68
65
|
lastName: string;
|
|
69
|
-
}, {
|
|
70
|
-
id: string;
|
|
71
66
|
firstName: string;
|
|
67
|
+
id: string;
|
|
68
|
+
}, {
|
|
72
69
|
lastName: string;
|
|
70
|
+
firstName: string;
|
|
71
|
+
id: string;
|
|
73
72
|
}>;
|
|
74
73
|
export declare const UserAutocompleteArraySchema: z.ZodArray<z.ZodObject<{
|
|
75
74
|
id: z.ZodString;
|
|
76
75
|
firstName: z.ZodString;
|
|
77
76
|
lastName: z.ZodString;
|
|
78
77
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
id: string;
|
|
80
|
-
firstName: string;
|
|
81
78
|
lastName: string;
|
|
82
|
-
}, {
|
|
83
|
-
id: string;
|
|
84
79
|
firstName: string;
|
|
80
|
+
id: string;
|
|
81
|
+
}, {
|
|
85
82
|
lastName: string;
|
|
83
|
+
firstName: string;
|
|
84
|
+
id: string;
|
|
86
85
|
}>, "many">;
|
|
87
86
|
export declare const RolesFilterSchema: z.ZodObject<{
|
|
88
87
|
values: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
@@ -116,61 +115,76 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
116
115
|
isPrimary?: boolean | undefined;
|
|
117
116
|
}>, "many">>>;
|
|
118
117
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
119
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
118
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
119
|
+
id: z.ZodString;
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
id: string;
|
|
123
|
+
name: string;
|
|
124
|
+
}, {
|
|
125
|
+
id: string;
|
|
126
|
+
name: string;
|
|
127
|
+
}>>>;
|
|
120
128
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
121
129
|
id: z.ZodString;
|
|
122
130
|
firstName: z.ZodString;
|
|
123
131
|
lastName: z.ZodString;
|
|
124
132
|
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
id: string;
|
|
126
|
-
firstName: string;
|
|
127
133
|
lastName: string;
|
|
128
|
-
}, {
|
|
129
|
-
id: string;
|
|
130
134
|
firstName: string;
|
|
135
|
+
id: string;
|
|
136
|
+
}, {
|
|
131
137
|
lastName: string;
|
|
138
|
+
firstName: string;
|
|
139
|
+
id: string;
|
|
132
140
|
}>, "many">>;
|
|
133
141
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
134
142
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
135
143
|
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
lastName: string;
|
|
145
|
+
firstName: string;
|
|
136
146
|
email: string;
|
|
137
|
-
id: string;
|
|
138
147
|
createdAt: string;
|
|
139
|
-
|
|
140
|
-
firstName: string;
|
|
141
|
-
lastName: string;
|
|
148
|
+
id: string;
|
|
142
149
|
phoneNumbers: {
|
|
143
150
|
id: string;
|
|
144
151
|
phoneNumber: string;
|
|
145
152
|
isPrimary: boolean;
|
|
146
153
|
description?: string | null | undefined;
|
|
147
154
|
}[];
|
|
155
|
+
updatedAt: string;
|
|
156
|
+
office?: {
|
|
157
|
+
id: string;
|
|
158
|
+
name: string;
|
|
159
|
+
} | null | undefined;
|
|
148
160
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
149
|
-
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;
|
|
150
161
|
canImpersonateUsers?: {
|
|
151
|
-
id: string;
|
|
152
|
-
firstName: string;
|
|
153
162
|
lastName: string;
|
|
163
|
+
firstName: string;
|
|
164
|
+
id: string;
|
|
154
165
|
}[] | undefined;
|
|
155
166
|
}, {
|
|
167
|
+
lastName: string;
|
|
168
|
+
firstName: string;
|
|
156
169
|
email: string;
|
|
157
|
-
id: string;
|
|
158
170
|
createdAt: string | Date;
|
|
171
|
+
id: string;
|
|
159
172
|
updatedAt: string | Date;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
173
|
+
office?: {
|
|
174
|
+
id: string;
|
|
175
|
+
name: string;
|
|
176
|
+
} | null | undefined;
|
|
163
177
|
phoneNumbers?: {
|
|
164
178
|
id: string;
|
|
165
179
|
phoneNumber: string;
|
|
166
180
|
description?: string | null | undefined;
|
|
167
181
|
isPrimary?: boolean | undefined;
|
|
168
182
|
}[] | undefined;
|
|
169
|
-
|
|
183
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
170
184
|
canImpersonateUsers?: {
|
|
171
|
-
id: string;
|
|
172
|
-
firstName: string;
|
|
173
185
|
lastName: string;
|
|
186
|
+
firstName: string;
|
|
187
|
+
id: string;
|
|
174
188
|
}[] | undefined;
|
|
175
189
|
}>;
|
|
176
190
|
export declare const CreateUserSchema: z.ZodObject<{
|
|
@@ -200,31 +214,31 @@ export declare const CreateUserSchema: z.ZodObject<{
|
|
|
200
214
|
}[]>;
|
|
201
215
|
password: z.ZodOptional<z.ZodString>;
|
|
202
216
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
203
|
-
|
|
217
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
204
218
|
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
email: string;
|
|
206
|
-
firstName: string;
|
|
207
219
|
lastName: string;
|
|
220
|
+
firstName: string;
|
|
221
|
+
email: string;
|
|
208
222
|
phoneNumbers: {
|
|
209
223
|
phoneNumber: string;
|
|
210
224
|
isPrimary: boolean;
|
|
211
225
|
description?: string | null | undefined;
|
|
212
226
|
}[];
|
|
213
227
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
214
|
-
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;
|
|
215
228
|
password?: string | undefined;
|
|
229
|
+
officeId?: string | null | undefined;
|
|
216
230
|
}, {
|
|
217
|
-
email: string;
|
|
218
|
-
firstName: string;
|
|
219
231
|
lastName: string;
|
|
232
|
+
firstName: string;
|
|
233
|
+
email: string;
|
|
220
234
|
phoneNumbers: {
|
|
221
235
|
phoneNumber: string;
|
|
222
236
|
description?: string | null | undefined;
|
|
223
237
|
isPrimary?: boolean | undefined;
|
|
224
238
|
}[];
|
|
225
239
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
226
|
-
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;
|
|
227
240
|
password?: string | undefined;
|
|
241
|
+
officeId?: string | null | undefined;
|
|
228
242
|
}>;
|
|
229
243
|
export declare const UpdateUserSchema: z.ZodObject<{
|
|
230
244
|
firstName: z.ZodOptional<z.ZodString>;
|
|
@@ -268,35 +282,35 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
|
268
282
|
}[]>>;
|
|
269
283
|
password: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
270
284
|
roles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>>;
|
|
271
|
-
|
|
285
|
+
officeId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
272
286
|
canImpersonateUserIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
273
287
|
}, "strip", z.ZodTypeAny, {
|
|
274
|
-
email?: string | undefined;
|
|
275
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
276
|
-
firstName?: string | undefined;
|
|
277
288
|
lastName?: string | undefined;
|
|
289
|
+
firstName?: string | undefined;
|
|
290
|
+
email?: string | undefined;
|
|
278
291
|
phoneNumbers?: {
|
|
279
292
|
id?: string | undefined;
|
|
280
293
|
phoneNumber?: string | undefined;
|
|
281
294
|
description?: string | null | undefined;
|
|
282
295
|
isPrimary?: boolean | undefined;
|
|
283
296
|
}[] | undefined;
|
|
284
|
-
|
|
297
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
285
298
|
password?: string | undefined;
|
|
299
|
+
officeId?: string | null | undefined;
|
|
286
300
|
canImpersonateUserIds?: string[] | undefined;
|
|
287
301
|
}, {
|
|
288
|
-
email?: string | undefined;
|
|
289
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
290
|
-
firstName?: string | undefined;
|
|
291
302
|
lastName?: string | undefined;
|
|
303
|
+
firstName?: string | undefined;
|
|
304
|
+
email?: string | undefined;
|
|
292
305
|
phoneNumbers?: {
|
|
293
306
|
id?: string | undefined;
|
|
294
307
|
phoneNumber?: string | undefined;
|
|
295
308
|
description?: string | null | undefined;
|
|
296
309
|
isPrimary?: boolean | undefined;
|
|
297
310
|
}[] | undefined;
|
|
298
|
-
|
|
311
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
299
312
|
password?: string | undefined;
|
|
313
|
+
officeId?: string | null | undefined;
|
|
300
314
|
canImpersonateUserIds?: string[] | undefined;
|
|
301
315
|
}>;
|
|
302
316
|
export declare const FilterUserSchema: z.ZodObject<{
|
|
@@ -316,35 +330,35 @@ export declare const FilterUserSchema: z.ZodObject<{
|
|
|
316
330
|
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
317
331
|
requireAll?: unknown;
|
|
318
332
|
}>>;
|
|
319
|
-
|
|
320
|
-
sortBy: z.ZodOptional<z.ZodEnum<["lastName", "firstName", "email", "createdAt"]>>;
|
|
333
|
+
officeId: z.ZodOptional<z.ZodString>;
|
|
334
|
+
sortBy: z.ZodOptional<z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>>;
|
|
321
335
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
322
336
|
}, "strip", z.ZodTypeAny, {
|
|
323
|
-
page: number;
|
|
324
337
|
limit: number;
|
|
325
|
-
|
|
338
|
+
page: number;
|
|
326
339
|
email?: string | undefined;
|
|
327
|
-
phone?: string | undefined;
|
|
328
|
-
sortBy?: "email" | "createdAt" | "firstName" | "lastName" | undefined;
|
|
329
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
330
340
|
roles?: {
|
|
331
341
|
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
332
342
|
requireAll?: boolean | undefined;
|
|
333
343
|
} | undefined;
|
|
334
|
-
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" | undefined;
|
|
335
|
-
}, {
|
|
336
344
|
name?: string | undefined;
|
|
337
|
-
|
|
345
|
+
officeId?: string | undefined;
|
|
338
346
|
phone?: string | undefined;
|
|
339
|
-
sortBy?: "
|
|
347
|
+
sortBy?: "lastName" | "firstName" | "email" | "createdAt" | "office" | undefined;
|
|
340
348
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
341
|
-
|
|
342
|
-
|
|
349
|
+
}, {
|
|
350
|
+
email?: string | undefined;
|
|
343
351
|
roles?: {
|
|
344
352
|
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
345
353
|
requireAll?: unknown;
|
|
346
354
|
} | undefined;
|
|
347
|
-
|
|
355
|
+
name?: string | undefined;
|
|
356
|
+
officeId?: string | undefined;
|
|
357
|
+
limit?: number | undefined;
|
|
358
|
+
page?: number | undefined;
|
|
359
|
+
phone?: string | undefined;
|
|
360
|
+
sortBy?: "lastName" | "firstName" | "email" | "createdAt" | "office" | undefined;
|
|
361
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
348
362
|
}>;
|
|
349
363
|
export declare const ProfileSchema: z.ZodObject<{
|
|
350
364
|
id: z.ZodString;
|
|
@@ -378,22 +392,22 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
378
392
|
isPrimary: boolean;
|
|
379
393
|
description?: string | null | undefined;
|
|
380
394
|
}[];
|
|
381
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
382
|
-
firstName?: string | undefined;
|
|
383
395
|
lastName?: string | undefined;
|
|
396
|
+
firstName?: string | undefined;
|
|
397
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
384
398
|
impersonatedBy?: string | undefined;
|
|
385
399
|
}, {
|
|
386
400
|
email: string;
|
|
387
401
|
id: string;
|
|
388
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
389
|
-
firstName?: string | undefined;
|
|
390
402
|
lastName?: string | undefined;
|
|
403
|
+
firstName?: string | undefined;
|
|
391
404
|
phoneNumbers?: {
|
|
392
405
|
id: string;
|
|
393
406
|
phoneNumber: string;
|
|
394
407
|
description?: string | null | undefined;
|
|
395
408
|
isPrimary?: boolean | undefined;
|
|
396
409
|
}[] | undefined;
|
|
410
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
397
411
|
impersonatedBy?: string | undefined;
|
|
398
412
|
}>;
|
|
399
413
|
export declare const PaginatedUserResponseSchema: z.ZodObject<{
|
|
@@ -419,61 +433,76 @@ export declare const PaginatedUserResponseSchema: z.ZodObject<{
|
|
|
419
433
|
isPrimary?: boolean | undefined;
|
|
420
434
|
}>, "many">>>;
|
|
421
435
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
422
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
436
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
437
|
+
id: z.ZodString;
|
|
438
|
+
name: z.ZodString;
|
|
439
|
+
}, "strip", z.ZodTypeAny, {
|
|
440
|
+
id: string;
|
|
441
|
+
name: string;
|
|
442
|
+
}, {
|
|
443
|
+
id: string;
|
|
444
|
+
name: string;
|
|
445
|
+
}>>>;
|
|
423
446
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
424
447
|
id: z.ZodString;
|
|
425
448
|
firstName: z.ZodString;
|
|
426
449
|
lastName: z.ZodString;
|
|
427
450
|
}, "strip", z.ZodTypeAny, {
|
|
428
|
-
id: string;
|
|
429
|
-
firstName: string;
|
|
430
451
|
lastName: string;
|
|
431
|
-
}, {
|
|
432
|
-
id: string;
|
|
433
452
|
firstName: string;
|
|
453
|
+
id: string;
|
|
454
|
+
}, {
|
|
434
455
|
lastName: string;
|
|
456
|
+
firstName: string;
|
|
457
|
+
id: string;
|
|
435
458
|
}>, "many">>;
|
|
436
459
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
437
460
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
438
461
|
}, "strip", z.ZodTypeAny, {
|
|
462
|
+
lastName: string;
|
|
463
|
+
firstName: string;
|
|
439
464
|
email: string;
|
|
440
|
-
id: string;
|
|
441
465
|
createdAt: string;
|
|
442
|
-
|
|
443
|
-
firstName: string;
|
|
444
|
-
lastName: string;
|
|
466
|
+
id: string;
|
|
445
467
|
phoneNumbers: {
|
|
446
468
|
id: string;
|
|
447
469
|
phoneNumber: string;
|
|
448
470
|
isPrimary: boolean;
|
|
449
471
|
description?: string | null | undefined;
|
|
450
472
|
}[];
|
|
473
|
+
updatedAt: string;
|
|
474
|
+
office?: {
|
|
475
|
+
id: string;
|
|
476
|
+
name: string;
|
|
477
|
+
} | null | undefined;
|
|
451
478
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
452
|
-
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;
|
|
453
479
|
canImpersonateUsers?: {
|
|
454
|
-
id: string;
|
|
455
|
-
firstName: string;
|
|
456
480
|
lastName: string;
|
|
481
|
+
firstName: string;
|
|
482
|
+
id: string;
|
|
457
483
|
}[] | undefined;
|
|
458
484
|
}, {
|
|
485
|
+
lastName: string;
|
|
486
|
+
firstName: string;
|
|
459
487
|
email: string;
|
|
460
|
-
id: string;
|
|
461
488
|
createdAt: string | Date;
|
|
489
|
+
id: string;
|
|
462
490
|
updatedAt: string | Date;
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
491
|
+
office?: {
|
|
492
|
+
id: string;
|
|
493
|
+
name: string;
|
|
494
|
+
} | null | undefined;
|
|
466
495
|
phoneNumbers?: {
|
|
467
496
|
id: string;
|
|
468
497
|
phoneNumber: string;
|
|
469
498
|
description?: string | null | undefined;
|
|
470
499
|
isPrimary?: boolean | undefined;
|
|
471
500
|
}[] | undefined;
|
|
472
|
-
|
|
501
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
473
502
|
canImpersonateUsers?: {
|
|
474
|
-
id: string;
|
|
475
|
-
firstName: string;
|
|
476
503
|
lastName: string;
|
|
504
|
+
firstName: string;
|
|
505
|
+
id: string;
|
|
477
506
|
}[] | undefined;
|
|
478
507
|
}>, "many">;
|
|
479
508
|
totalCount: z.ZodNumber;
|
|
@@ -484,24 +513,27 @@ export declare const PaginatedUserResponseSchema: z.ZodObject<{
|
|
|
484
513
|
}, "strip", z.ZodTypeAny, {
|
|
485
514
|
limit: number;
|
|
486
515
|
items: {
|
|
516
|
+
lastName: string;
|
|
517
|
+
firstName: string;
|
|
487
518
|
email: string;
|
|
488
|
-
id: string;
|
|
489
519
|
createdAt: string;
|
|
490
|
-
|
|
491
|
-
firstName: string;
|
|
492
|
-
lastName: string;
|
|
520
|
+
id: string;
|
|
493
521
|
phoneNumbers: {
|
|
494
522
|
id: string;
|
|
495
523
|
phoneNumber: string;
|
|
496
524
|
isPrimary: boolean;
|
|
497
525
|
description?: string | null | undefined;
|
|
498
526
|
}[];
|
|
527
|
+
updatedAt: string;
|
|
528
|
+
office?: {
|
|
529
|
+
id: string;
|
|
530
|
+
name: string;
|
|
531
|
+
} | null | undefined;
|
|
499
532
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
500
|
-
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;
|
|
501
533
|
canImpersonateUsers?: {
|
|
502
|
-
id: string;
|
|
503
|
-
firstName: string;
|
|
504
534
|
lastName: string;
|
|
535
|
+
firstName: string;
|
|
536
|
+
id: string;
|
|
505
537
|
}[] | undefined;
|
|
506
538
|
}[];
|
|
507
539
|
totalCount: number;
|
|
@@ -511,24 +543,27 @@ export declare const PaginatedUserResponseSchema: z.ZodObject<{
|
|
|
511
543
|
}, {
|
|
512
544
|
limit: number;
|
|
513
545
|
items: {
|
|
546
|
+
lastName: string;
|
|
547
|
+
firstName: string;
|
|
514
548
|
email: string;
|
|
515
|
-
id: string;
|
|
516
549
|
createdAt: string | Date;
|
|
550
|
+
id: string;
|
|
517
551
|
updatedAt: string | Date;
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
552
|
+
office?: {
|
|
553
|
+
id: string;
|
|
554
|
+
name: string;
|
|
555
|
+
} | null | undefined;
|
|
521
556
|
phoneNumbers?: {
|
|
522
557
|
id: string;
|
|
523
558
|
phoneNumber: string;
|
|
524
559
|
description?: string | null | undefined;
|
|
525
560
|
isPrimary?: boolean | undefined;
|
|
526
561
|
}[] | undefined;
|
|
527
|
-
|
|
562
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
528
563
|
canImpersonateUsers?: {
|
|
529
|
-
id: string;
|
|
530
|
-
firstName: string;
|
|
531
564
|
lastName: string;
|
|
565
|
+
firstName: string;
|
|
566
|
+
id: string;
|
|
532
567
|
}[] | undefined;
|
|
533
568
|
}[];
|
|
534
569
|
totalCount: number;
|
|
@@ -538,7 +573,6 @@ export declare const PaginatedUserResponseSchema: z.ZodObject<{
|
|
|
538
573
|
}>;
|
|
539
574
|
export type User = z.infer<typeof UserSchema>;
|
|
540
575
|
export type UserRole = z.infer<typeof UserRoleSchema>;
|
|
541
|
-
export type UserOffice = z.infer<typeof UserOfficeSchema>;
|
|
542
576
|
export type UserSortableFields = z.infer<typeof UserSortableFieldsSchema>;
|
|
543
577
|
export type UserPhoneNumber = z.infer<typeof UserPhoneNumberSchema>;
|
|
544
578
|
export type CreateUserPhoneNumber = z.infer<typeof CreateUserPhoneNumberSchema>;
|
|
@@ -586,31 +620,31 @@ export declare const usersContract: {
|
|
|
586
620
|
}[]>;
|
|
587
621
|
password: z.ZodOptional<z.ZodString>;
|
|
588
622
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
589
|
-
|
|
623
|
+
officeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
590
624
|
}, "strip", z.ZodTypeAny, {
|
|
591
|
-
email: string;
|
|
592
|
-
firstName: string;
|
|
593
625
|
lastName: string;
|
|
626
|
+
firstName: string;
|
|
627
|
+
email: string;
|
|
594
628
|
phoneNumbers: {
|
|
595
629
|
phoneNumber: string;
|
|
596
630
|
isPrimary: boolean;
|
|
597
631
|
description?: string | null | undefined;
|
|
598
632
|
}[];
|
|
599
633
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
600
|
-
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;
|
|
601
634
|
password?: string | undefined;
|
|
635
|
+
officeId?: string | null | undefined;
|
|
602
636
|
}, {
|
|
603
|
-
email: string;
|
|
604
|
-
firstName: string;
|
|
605
637
|
lastName: string;
|
|
638
|
+
firstName: string;
|
|
639
|
+
email: string;
|
|
606
640
|
phoneNumbers: {
|
|
607
641
|
phoneNumber: string;
|
|
608
642
|
description?: string | null | undefined;
|
|
609
643
|
isPrimary?: boolean | undefined;
|
|
610
644
|
}[];
|
|
611
645
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
612
|
-
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;
|
|
613
646
|
password?: string | undefined;
|
|
647
|
+
officeId?: string | null | undefined;
|
|
614
648
|
}>;
|
|
615
649
|
path: "/v2/users";
|
|
616
650
|
responses: {
|
|
@@ -736,61 +770,76 @@ export declare const usersContract: {
|
|
|
736
770
|
isPrimary?: boolean | undefined;
|
|
737
771
|
}>, "many">>>;
|
|
738
772
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
739
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
773
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
774
|
+
id: z.ZodString;
|
|
775
|
+
name: z.ZodString;
|
|
776
|
+
}, "strip", z.ZodTypeAny, {
|
|
777
|
+
id: string;
|
|
778
|
+
name: string;
|
|
779
|
+
}, {
|
|
780
|
+
id: string;
|
|
781
|
+
name: string;
|
|
782
|
+
}>>>;
|
|
740
783
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
741
784
|
id: z.ZodString;
|
|
742
785
|
firstName: z.ZodString;
|
|
743
786
|
lastName: z.ZodString;
|
|
744
787
|
}, "strip", z.ZodTypeAny, {
|
|
745
|
-
id: string;
|
|
746
|
-
firstName: string;
|
|
747
788
|
lastName: string;
|
|
748
|
-
}, {
|
|
749
|
-
id: string;
|
|
750
789
|
firstName: string;
|
|
790
|
+
id: string;
|
|
791
|
+
}, {
|
|
751
792
|
lastName: string;
|
|
793
|
+
firstName: string;
|
|
794
|
+
id: string;
|
|
752
795
|
}>, "many">>;
|
|
753
796
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
754
797
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
755
798
|
}, "strip", z.ZodTypeAny, {
|
|
799
|
+
lastName: string;
|
|
800
|
+
firstName: string;
|
|
756
801
|
email: string;
|
|
757
|
-
id: string;
|
|
758
802
|
createdAt: string;
|
|
759
|
-
|
|
760
|
-
firstName: string;
|
|
761
|
-
lastName: string;
|
|
803
|
+
id: string;
|
|
762
804
|
phoneNumbers: {
|
|
763
805
|
id: string;
|
|
764
806
|
phoneNumber: string;
|
|
765
807
|
isPrimary: boolean;
|
|
766
808
|
description?: string | null | undefined;
|
|
767
809
|
}[];
|
|
810
|
+
updatedAt: string;
|
|
811
|
+
office?: {
|
|
812
|
+
id: string;
|
|
813
|
+
name: string;
|
|
814
|
+
} | null | undefined;
|
|
768
815
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
769
|
-
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;
|
|
770
816
|
canImpersonateUsers?: {
|
|
771
|
-
id: string;
|
|
772
|
-
firstName: string;
|
|
773
817
|
lastName: string;
|
|
818
|
+
firstName: string;
|
|
819
|
+
id: string;
|
|
774
820
|
}[] | undefined;
|
|
775
821
|
}, {
|
|
822
|
+
lastName: string;
|
|
823
|
+
firstName: string;
|
|
776
824
|
email: string;
|
|
777
|
-
id: string;
|
|
778
825
|
createdAt: string | Date;
|
|
826
|
+
id: string;
|
|
779
827
|
updatedAt: string | Date;
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
828
|
+
office?: {
|
|
829
|
+
id: string;
|
|
830
|
+
name: string;
|
|
831
|
+
} | null | undefined;
|
|
783
832
|
phoneNumbers?: {
|
|
784
833
|
id: string;
|
|
785
834
|
phoneNumber: string;
|
|
786
835
|
description?: string | null | undefined;
|
|
787
836
|
isPrimary?: boolean | undefined;
|
|
788
837
|
}[] | undefined;
|
|
789
|
-
|
|
838
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
790
839
|
canImpersonateUsers?: {
|
|
791
|
-
id: string;
|
|
792
|
-
firstName: string;
|
|
793
840
|
lastName: string;
|
|
841
|
+
firstName: string;
|
|
842
|
+
id: string;
|
|
794
843
|
}[] | undefined;
|
|
795
844
|
}>;
|
|
796
845
|
409: z.ZodObject<{
|
|
@@ -821,6 +870,9 @@ export declare const usersContract: {
|
|
|
821
870
|
};
|
|
822
871
|
};
|
|
823
872
|
findAll: {
|
|
873
|
+
metadata: {
|
|
874
|
+
tags: string[];
|
|
875
|
+
};
|
|
824
876
|
query: z.ZodObject<{
|
|
825
877
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
826
878
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -838,39 +890,36 @@ export declare const usersContract: {
|
|
|
838
890
|
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
839
891
|
requireAll?: unknown;
|
|
840
892
|
}>>;
|
|
841
|
-
|
|
842
|
-
sortBy: z.ZodOptional<z.ZodEnum<["lastName", "firstName", "email", "createdAt"]>>;
|
|
893
|
+
officeId: z.ZodOptional<z.ZodString>;
|
|
894
|
+
sortBy: z.ZodOptional<z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>>;
|
|
843
895
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
844
896
|
}, "strip", z.ZodTypeAny, {
|
|
845
|
-
page: number;
|
|
846
897
|
limit: number;
|
|
847
|
-
|
|
898
|
+
page: number;
|
|
848
899
|
email?: string | undefined;
|
|
849
|
-
phone?: string | undefined;
|
|
850
|
-
sortBy?: "email" | "createdAt" | "firstName" | "lastName" | undefined;
|
|
851
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
852
900
|
roles?: {
|
|
853
901
|
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
854
902
|
requireAll?: boolean | undefined;
|
|
855
903
|
} | undefined;
|
|
856
|
-
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" | undefined;
|
|
857
|
-
}, {
|
|
858
904
|
name?: string | undefined;
|
|
859
|
-
|
|
905
|
+
officeId?: string | undefined;
|
|
860
906
|
phone?: string | undefined;
|
|
861
|
-
sortBy?: "
|
|
907
|
+
sortBy?: "lastName" | "firstName" | "email" | "createdAt" | "office" | undefined;
|
|
862
908
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
863
|
-
|
|
864
|
-
|
|
909
|
+
}, {
|
|
910
|
+
email?: string | undefined;
|
|
865
911
|
roles?: {
|
|
866
912
|
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
867
913
|
requireAll?: unknown;
|
|
868
914
|
} | undefined;
|
|
869
|
-
|
|
915
|
+
name?: string | undefined;
|
|
916
|
+
officeId?: string | undefined;
|
|
917
|
+
limit?: number | undefined;
|
|
918
|
+
page?: number | undefined;
|
|
919
|
+
phone?: string | undefined;
|
|
920
|
+
sortBy?: "lastName" | "firstName" | "email" | "createdAt" | "office" | undefined;
|
|
921
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
870
922
|
}>;
|
|
871
|
-
metadata: {
|
|
872
|
-
tags: string[];
|
|
873
|
-
};
|
|
874
923
|
summary: "Get all users";
|
|
875
924
|
method: "GET";
|
|
876
925
|
path: "/v2/users";
|
|
@@ -998,61 +1047,76 @@ export declare const usersContract: {
|
|
|
998
1047
|
isPrimary?: boolean | undefined;
|
|
999
1048
|
}>, "many">>>;
|
|
1000
1049
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
1001
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
1050
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1051
|
+
id: z.ZodString;
|
|
1052
|
+
name: z.ZodString;
|
|
1053
|
+
}, "strip", z.ZodTypeAny, {
|
|
1054
|
+
id: string;
|
|
1055
|
+
name: string;
|
|
1056
|
+
}, {
|
|
1057
|
+
id: string;
|
|
1058
|
+
name: string;
|
|
1059
|
+
}>>>;
|
|
1002
1060
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1003
1061
|
id: z.ZodString;
|
|
1004
1062
|
firstName: z.ZodString;
|
|
1005
1063
|
lastName: z.ZodString;
|
|
1006
1064
|
}, "strip", z.ZodTypeAny, {
|
|
1007
|
-
id: string;
|
|
1008
|
-
firstName: string;
|
|
1009
1065
|
lastName: string;
|
|
1010
|
-
}, {
|
|
1011
|
-
id: string;
|
|
1012
1066
|
firstName: string;
|
|
1067
|
+
id: string;
|
|
1068
|
+
}, {
|
|
1013
1069
|
lastName: string;
|
|
1070
|
+
firstName: string;
|
|
1071
|
+
id: string;
|
|
1014
1072
|
}>, "many">>;
|
|
1015
1073
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1016
1074
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1017
1075
|
}, "strip", z.ZodTypeAny, {
|
|
1076
|
+
lastName: string;
|
|
1077
|
+
firstName: string;
|
|
1018
1078
|
email: string;
|
|
1019
|
-
id: string;
|
|
1020
1079
|
createdAt: string;
|
|
1021
|
-
|
|
1022
|
-
firstName: string;
|
|
1023
|
-
lastName: string;
|
|
1080
|
+
id: string;
|
|
1024
1081
|
phoneNumbers: {
|
|
1025
1082
|
id: string;
|
|
1026
1083
|
phoneNumber: string;
|
|
1027
1084
|
isPrimary: boolean;
|
|
1028
1085
|
description?: string | null | undefined;
|
|
1029
1086
|
}[];
|
|
1087
|
+
updatedAt: string;
|
|
1088
|
+
office?: {
|
|
1089
|
+
id: string;
|
|
1090
|
+
name: string;
|
|
1091
|
+
} | null | undefined;
|
|
1030
1092
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1031
|
-
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;
|
|
1032
1093
|
canImpersonateUsers?: {
|
|
1033
|
-
id: string;
|
|
1034
|
-
firstName: string;
|
|
1035
1094
|
lastName: string;
|
|
1095
|
+
firstName: string;
|
|
1096
|
+
id: string;
|
|
1036
1097
|
}[] | undefined;
|
|
1037
1098
|
}, {
|
|
1099
|
+
lastName: string;
|
|
1100
|
+
firstName: string;
|
|
1038
1101
|
email: string;
|
|
1039
|
-
id: string;
|
|
1040
1102
|
createdAt: string | Date;
|
|
1103
|
+
id: string;
|
|
1041
1104
|
updatedAt: string | Date;
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1105
|
+
office?: {
|
|
1106
|
+
id: string;
|
|
1107
|
+
name: string;
|
|
1108
|
+
} | null | undefined;
|
|
1045
1109
|
phoneNumbers?: {
|
|
1046
1110
|
id: string;
|
|
1047
1111
|
phoneNumber: string;
|
|
1048
1112
|
description?: string | null | undefined;
|
|
1049
1113
|
isPrimary?: boolean | undefined;
|
|
1050
1114
|
}[] | undefined;
|
|
1051
|
-
|
|
1115
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1052
1116
|
canImpersonateUsers?: {
|
|
1053
|
-
id: string;
|
|
1054
|
-
firstName: string;
|
|
1055
1117
|
lastName: string;
|
|
1118
|
+
firstName: string;
|
|
1119
|
+
id: string;
|
|
1056
1120
|
}[] | undefined;
|
|
1057
1121
|
}>, "many">;
|
|
1058
1122
|
totalCount: z.ZodNumber;
|
|
@@ -1063,24 +1127,27 @@ export declare const usersContract: {
|
|
|
1063
1127
|
}, "strip", z.ZodTypeAny, {
|
|
1064
1128
|
limit: number;
|
|
1065
1129
|
items: {
|
|
1130
|
+
lastName: string;
|
|
1131
|
+
firstName: string;
|
|
1066
1132
|
email: string;
|
|
1067
|
-
id: string;
|
|
1068
1133
|
createdAt: string;
|
|
1069
|
-
|
|
1070
|
-
firstName: string;
|
|
1071
|
-
lastName: string;
|
|
1134
|
+
id: string;
|
|
1072
1135
|
phoneNumbers: {
|
|
1073
1136
|
id: string;
|
|
1074
1137
|
phoneNumber: string;
|
|
1075
1138
|
isPrimary: boolean;
|
|
1076
1139
|
description?: string | null | undefined;
|
|
1077
1140
|
}[];
|
|
1141
|
+
updatedAt: string;
|
|
1142
|
+
office?: {
|
|
1143
|
+
id: string;
|
|
1144
|
+
name: string;
|
|
1145
|
+
} | null | undefined;
|
|
1078
1146
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1079
|
-
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;
|
|
1080
1147
|
canImpersonateUsers?: {
|
|
1081
|
-
id: string;
|
|
1082
|
-
firstName: string;
|
|
1083
1148
|
lastName: string;
|
|
1149
|
+
firstName: string;
|
|
1150
|
+
id: string;
|
|
1084
1151
|
}[] | undefined;
|
|
1085
1152
|
}[];
|
|
1086
1153
|
totalCount: number;
|
|
@@ -1090,24 +1157,27 @@ export declare const usersContract: {
|
|
|
1090
1157
|
}, {
|
|
1091
1158
|
limit: number;
|
|
1092
1159
|
items: {
|
|
1160
|
+
lastName: string;
|
|
1161
|
+
firstName: string;
|
|
1093
1162
|
email: string;
|
|
1094
|
-
id: string;
|
|
1095
1163
|
createdAt: string | Date;
|
|
1164
|
+
id: string;
|
|
1096
1165
|
updatedAt: string | Date;
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1166
|
+
office?: {
|
|
1167
|
+
id: string;
|
|
1168
|
+
name: string;
|
|
1169
|
+
} | null | undefined;
|
|
1100
1170
|
phoneNumbers?: {
|
|
1101
1171
|
id: string;
|
|
1102
1172
|
phoneNumber: string;
|
|
1103
1173
|
description?: string | null | undefined;
|
|
1104
1174
|
isPrimary?: boolean | undefined;
|
|
1105
1175
|
}[] | undefined;
|
|
1106
|
-
|
|
1176
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1107
1177
|
canImpersonateUsers?: {
|
|
1108
|
-
id: string;
|
|
1109
|
-
firstName: string;
|
|
1110
1178
|
lastName: string;
|
|
1179
|
+
firstName: string;
|
|
1180
|
+
id: string;
|
|
1111
1181
|
}[] | undefined;
|
|
1112
1182
|
}[];
|
|
1113
1183
|
totalCount: number;
|
|
@@ -1118,6 +1188,9 @@ export declare const usersContract: {
|
|
|
1118
1188
|
};
|
|
1119
1189
|
};
|
|
1120
1190
|
autocomplete: {
|
|
1191
|
+
metadata: {
|
|
1192
|
+
tags: string[];
|
|
1193
|
+
};
|
|
1121
1194
|
query: z.ZodObject<{
|
|
1122
1195
|
query: z.ZodOptional<z.ZodString>;
|
|
1123
1196
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1128,9 +1201,6 @@ export declare const usersContract: {
|
|
|
1128
1201
|
id?: string | undefined;
|
|
1129
1202
|
query?: string | undefined;
|
|
1130
1203
|
}>;
|
|
1131
|
-
metadata: {
|
|
1132
|
-
tags: string[];
|
|
1133
|
-
};
|
|
1134
1204
|
summary: "Get users for autocomplete";
|
|
1135
1205
|
method: "GET";
|
|
1136
1206
|
path: "/v2/users/autocomplete";
|
|
@@ -1240,17 +1310,20 @@ export declare const usersContract: {
|
|
|
1240
1310
|
firstName: z.ZodString;
|
|
1241
1311
|
lastName: z.ZodString;
|
|
1242
1312
|
}, "strip", z.ZodTypeAny, {
|
|
1243
|
-
id: string;
|
|
1244
|
-
firstName: string;
|
|
1245
1313
|
lastName: string;
|
|
1246
|
-
}, {
|
|
1247
|
-
id: string;
|
|
1248
1314
|
firstName: string;
|
|
1315
|
+
id: string;
|
|
1316
|
+
}, {
|
|
1249
1317
|
lastName: string;
|
|
1318
|
+
firstName: string;
|
|
1319
|
+
id: string;
|
|
1250
1320
|
}>, "many">;
|
|
1251
1321
|
};
|
|
1252
1322
|
};
|
|
1253
1323
|
autocompleteFirstAgent: {
|
|
1324
|
+
metadata: {
|
|
1325
|
+
tags: string[];
|
|
1326
|
+
};
|
|
1254
1327
|
query: z.ZodObject<{
|
|
1255
1328
|
query: z.ZodOptional<z.ZodString>;
|
|
1256
1329
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1261,9 +1334,6 @@ export declare const usersContract: {
|
|
|
1261
1334
|
id?: string | undefined;
|
|
1262
1335
|
query?: string | undefined;
|
|
1263
1336
|
}>;
|
|
1264
|
-
metadata: {
|
|
1265
|
-
tags: string[];
|
|
1266
|
-
};
|
|
1267
1337
|
summary: "Get users with FIRST_AGENT role for autocomplete";
|
|
1268
1338
|
method: "GET";
|
|
1269
1339
|
path: "/v2/users/autocomplete/first-agent";
|
|
@@ -1373,17 +1443,20 @@ export declare const usersContract: {
|
|
|
1373
1443
|
firstName: z.ZodString;
|
|
1374
1444
|
lastName: z.ZodString;
|
|
1375
1445
|
}, "strip", z.ZodTypeAny, {
|
|
1376
|
-
id: string;
|
|
1377
|
-
firstName: string;
|
|
1378
1446
|
lastName: string;
|
|
1379
|
-
}, {
|
|
1380
|
-
id: string;
|
|
1381
1447
|
firstName: string;
|
|
1448
|
+
id: string;
|
|
1449
|
+
}, {
|
|
1382
1450
|
lastName: string;
|
|
1451
|
+
firstName: string;
|
|
1452
|
+
id: string;
|
|
1383
1453
|
}>, "many">;
|
|
1384
1454
|
};
|
|
1385
1455
|
};
|
|
1386
1456
|
autocompleteSecondAgent: {
|
|
1457
|
+
metadata: {
|
|
1458
|
+
tags: string[];
|
|
1459
|
+
};
|
|
1387
1460
|
query: z.ZodObject<{
|
|
1388
1461
|
query: z.ZodOptional<z.ZodString>;
|
|
1389
1462
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1394,9 +1467,6 @@ export declare const usersContract: {
|
|
|
1394
1467
|
id?: string | undefined;
|
|
1395
1468
|
query?: string | undefined;
|
|
1396
1469
|
}>;
|
|
1397
|
-
metadata: {
|
|
1398
|
-
tags: string[];
|
|
1399
|
-
};
|
|
1400
1470
|
summary: "Get users with SECOND_AGENT role for autocomplete";
|
|
1401
1471
|
method: "GET";
|
|
1402
1472
|
path: "/v2/users/autocomplete/second-agent";
|
|
@@ -1506,13 +1576,13 @@ export declare const usersContract: {
|
|
|
1506
1576
|
firstName: z.ZodString;
|
|
1507
1577
|
lastName: z.ZodString;
|
|
1508
1578
|
}, "strip", z.ZodTypeAny, {
|
|
1509
|
-
id: string;
|
|
1510
|
-
firstName: string;
|
|
1511
1579
|
lastName: string;
|
|
1512
|
-
}, {
|
|
1513
|
-
id: string;
|
|
1514
1580
|
firstName: string;
|
|
1581
|
+
id: string;
|
|
1582
|
+
}, {
|
|
1515
1583
|
lastName: string;
|
|
1584
|
+
firstName: string;
|
|
1585
|
+
id: string;
|
|
1516
1586
|
}>, "many">;
|
|
1517
1587
|
};
|
|
1518
1588
|
};
|
|
@@ -1656,22 +1726,22 @@ export declare const usersContract: {
|
|
|
1656
1726
|
isPrimary: boolean;
|
|
1657
1727
|
description?: string | null | undefined;
|
|
1658
1728
|
}[];
|
|
1659
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1660
|
-
firstName?: string | undefined;
|
|
1661
1729
|
lastName?: string | undefined;
|
|
1730
|
+
firstName?: string | undefined;
|
|
1731
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1662
1732
|
impersonatedBy?: string | undefined;
|
|
1663
1733
|
}, {
|
|
1664
1734
|
email: string;
|
|
1665
1735
|
id: string;
|
|
1666
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1667
|
-
firstName?: string | undefined;
|
|
1668
1736
|
lastName?: string | undefined;
|
|
1737
|
+
firstName?: string | undefined;
|
|
1669
1738
|
phoneNumbers?: {
|
|
1670
1739
|
id: string;
|
|
1671
1740
|
phoneNumber: string;
|
|
1672
1741
|
description?: string | null | undefined;
|
|
1673
1742
|
isPrimary?: boolean | undefined;
|
|
1674
1743
|
}[] | undefined;
|
|
1744
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1675
1745
|
impersonatedBy?: string | undefined;
|
|
1676
1746
|
}>;
|
|
1677
1747
|
};
|
|
@@ -1813,61 +1883,76 @@ export declare const usersContract: {
|
|
|
1813
1883
|
isPrimary?: boolean | undefined;
|
|
1814
1884
|
}>, "many">>>;
|
|
1815
1885
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
1816
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
1886
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1887
|
+
id: z.ZodString;
|
|
1888
|
+
name: z.ZodString;
|
|
1889
|
+
}, "strip", z.ZodTypeAny, {
|
|
1890
|
+
id: string;
|
|
1891
|
+
name: string;
|
|
1892
|
+
}, {
|
|
1893
|
+
id: string;
|
|
1894
|
+
name: string;
|
|
1895
|
+
}>>>;
|
|
1817
1896
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1818
1897
|
id: z.ZodString;
|
|
1819
1898
|
firstName: z.ZodString;
|
|
1820
1899
|
lastName: z.ZodString;
|
|
1821
1900
|
}, "strip", z.ZodTypeAny, {
|
|
1822
|
-
id: string;
|
|
1823
|
-
firstName: string;
|
|
1824
1901
|
lastName: string;
|
|
1825
|
-
}, {
|
|
1826
|
-
id: string;
|
|
1827
1902
|
firstName: string;
|
|
1903
|
+
id: string;
|
|
1904
|
+
}, {
|
|
1828
1905
|
lastName: string;
|
|
1906
|
+
firstName: string;
|
|
1907
|
+
id: string;
|
|
1829
1908
|
}>, "many">>;
|
|
1830
1909
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1831
1910
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1832
1911
|
}, "strip", z.ZodTypeAny, {
|
|
1912
|
+
lastName: string;
|
|
1913
|
+
firstName: string;
|
|
1833
1914
|
email: string;
|
|
1834
|
-
id: string;
|
|
1835
1915
|
createdAt: string;
|
|
1836
|
-
|
|
1837
|
-
firstName: string;
|
|
1838
|
-
lastName: string;
|
|
1916
|
+
id: string;
|
|
1839
1917
|
phoneNumbers: {
|
|
1840
1918
|
id: string;
|
|
1841
1919
|
phoneNumber: string;
|
|
1842
1920
|
isPrimary: boolean;
|
|
1843
1921
|
description?: string | null | undefined;
|
|
1844
1922
|
}[];
|
|
1923
|
+
updatedAt: string;
|
|
1924
|
+
office?: {
|
|
1925
|
+
id: string;
|
|
1926
|
+
name: string;
|
|
1927
|
+
} | null | undefined;
|
|
1845
1928
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1846
|
-
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;
|
|
1847
1929
|
canImpersonateUsers?: {
|
|
1848
|
-
id: string;
|
|
1849
|
-
firstName: string;
|
|
1850
1930
|
lastName: string;
|
|
1931
|
+
firstName: string;
|
|
1932
|
+
id: string;
|
|
1851
1933
|
}[] | undefined;
|
|
1852
1934
|
}, {
|
|
1935
|
+
lastName: string;
|
|
1936
|
+
firstName: string;
|
|
1853
1937
|
email: string;
|
|
1854
|
-
id: string;
|
|
1855
1938
|
createdAt: string | Date;
|
|
1939
|
+
id: string;
|
|
1856
1940
|
updatedAt: string | Date;
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1941
|
+
office?: {
|
|
1942
|
+
id: string;
|
|
1943
|
+
name: string;
|
|
1944
|
+
} | null | undefined;
|
|
1860
1945
|
phoneNumbers?: {
|
|
1861
1946
|
id: string;
|
|
1862
1947
|
phoneNumber: string;
|
|
1863
1948
|
description?: string | null | undefined;
|
|
1864
1949
|
isPrimary?: boolean | undefined;
|
|
1865
1950
|
}[] | undefined;
|
|
1866
|
-
|
|
1951
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1867
1952
|
canImpersonateUsers?: {
|
|
1868
|
-
id: string;
|
|
1869
|
-
firstName: string;
|
|
1870
1953
|
lastName: string;
|
|
1954
|
+
firstName: string;
|
|
1955
|
+
id: string;
|
|
1871
1956
|
}[] | undefined;
|
|
1872
1957
|
}>;
|
|
1873
1958
|
404: z.ZodObject<{
|
|
@@ -1952,35 +2037,35 @@ export declare const usersContract: {
|
|
|
1952
2037
|
}[]>>;
|
|
1953
2038
|
password: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1954
2039
|
roles: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>>;
|
|
1955
|
-
|
|
2040
|
+
officeId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1956
2041
|
canImpersonateUserIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1957
2042
|
}, "strip", z.ZodTypeAny, {
|
|
1958
|
-
email?: string | undefined;
|
|
1959
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1960
|
-
firstName?: string | undefined;
|
|
1961
2043
|
lastName?: string | undefined;
|
|
2044
|
+
firstName?: string | undefined;
|
|
2045
|
+
email?: string | undefined;
|
|
1962
2046
|
phoneNumbers?: {
|
|
1963
2047
|
id?: string | undefined;
|
|
1964
2048
|
phoneNumber?: string | undefined;
|
|
1965
2049
|
description?: string | null | undefined;
|
|
1966
2050
|
isPrimary?: boolean | undefined;
|
|
1967
2051
|
}[] | undefined;
|
|
1968
|
-
|
|
2052
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1969
2053
|
password?: string | undefined;
|
|
2054
|
+
officeId?: string | null | undefined;
|
|
1970
2055
|
canImpersonateUserIds?: string[] | undefined;
|
|
1971
2056
|
}, {
|
|
1972
|
-
email?: string | undefined;
|
|
1973
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1974
|
-
firstName?: string | undefined;
|
|
1975
2057
|
lastName?: string | undefined;
|
|
2058
|
+
firstName?: string | undefined;
|
|
2059
|
+
email?: string | undefined;
|
|
1976
2060
|
phoneNumbers?: {
|
|
1977
2061
|
id?: string | undefined;
|
|
1978
2062
|
phoneNumber?: string | undefined;
|
|
1979
2063
|
description?: string | null | undefined;
|
|
1980
2064
|
isPrimary?: boolean | undefined;
|
|
1981
2065
|
}[] | undefined;
|
|
1982
|
-
|
|
2066
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1983
2067
|
password?: string | undefined;
|
|
2068
|
+
officeId?: string | null | undefined;
|
|
1984
2069
|
canImpersonateUserIds?: string[] | undefined;
|
|
1985
2070
|
}>;
|
|
1986
2071
|
path: "/v2/users/:id";
|
|
@@ -2107,61 +2192,76 @@ export declare const usersContract: {
|
|
|
2107
2192
|
isPrimary?: boolean | undefined;
|
|
2108
2193
|
}>, "many">>>;
|
|
2109
2194
|
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
2110
|
-
office: z.ZodOptional<z.ZodNullable<z.
|
|
2195
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2196
|
+
id: z.ZodString;
|
|
2197
|
+
name: z.ZodString;
|
|
2198
|
+
}, "strip", z.ZodTypeAny, {
|
|
2199
|
+
id: string;
|
|
2200
|
+
name: string;
|
|
2201
|
+
}, {
|
|
2202
|
+
id: string;
|
|
2203
|
+
name: string;
|
|
2204
|
+
}>>>;
|
|
2111
2205
|
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2112
2206
|
id: z.ZodString;
|
|
2113
2207
|
firstName: z.ZodString;
|
|
2114
2208
|
lastName: z.ZodString;
|
|
2115
2209
|
}, "strip", z.ZodTypeAny, {
|
|
2116
|
-
id: string;
|
|
2117
|
-
firstName: string;
|
|
2118
2210
|
lastName: string;
|
|
2119
|
-
}, {
|
|
2120
|
-
id: string;
|
|
2121
2211
|
firstName: string;
|
|
2212
|
+
id: string;
|
|
2213
|
+
}, {
|
|
2122
2214
|
lastName: string;
|
|
2215
|
+
firstName: string;
|
|
2216
|
+
id: string;
|
|
2123
2217
|
}>, "many">>;
|
|
2124
2218
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2125
2219
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2126
2220
|
}, "strip", z.ZodTypeAny, {
|
|
2221
|
+
lastName: string;
|
|
2222
|
+
firstName: string;
|
|
2127
2223
|
email: string;
|
|
2128
|
-
id: string;
|
|
2129
2224
|
createdAt: string;
|
|
2130
|
-
|
|
2131
|
-
firstName: string;
|
|
2132
|
-
lastName: string;
|
|
2225
|
+
id: string;
|
|
2133
2226
|
phoneNumbers: {
|
|
2134
2227
|
id: string;
|
|
2135
2228
|
phoneNumber: string;
|
|
2136
2229
|
isPrimary: boolean;
|
|
2137
2230
|
description?: string | null | undefined;
|
|
2138
2231
|
}[];
|
|
2232
|
+
updatedAt: string;
|
|
2233
|
+
office?: {
|
|
2234
|
+
id: string;
|
|
2235
|
+
name: string;
|
|
2236
|
+
} | null | undefined;
|
|
2139
2237
|
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2140
|
-
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;
|
|
2141
2238
|
canImpersonateUsers?: {
|
|
2142
|
-
id: string;
|
|
2143
|
-
firstName: string;
|
|
2144
2239
|
lastName: string;
|
|
2240
|
+
firstName: string;
|
|
2241
|
+
id: string;
|
|
2145
2242
|
}[] | undefined;
|
|
2146
2243
|
}, {
|
|
2244
|
+
lastName: string;
|
|
2245
|
+
firstName: string;
|
|
2147
2246
|
email: string;
|
|
2148
|
-
id: string;
|
|
2149
2247
|
createdAt: string | Date;
|
|
2248
|
+
id: string;
|
|
2150
2249
|
updatedAt: string | Date;
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2250
|
+
office?: {
|
|
2251
|
+
id: string;
|
|
2252
|
+
name: string;
|
|
2253
|
+
} | null | undefined;
|
|
2154
2254
|
phoneNumbers?: {
|
|
2155
2255
|
id: string;
|
|
2156
2256
|
phoneNumber: string;
|
|
2157
2257
|
description?: string | null | undefined;
|
|
2158
2258
|
isPrimary?: boolean | undefined;
|
|
2159
2259
|
}[] | undefined;
|
|
2160
|
-
|
|
2260
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2161
2261
|
canImpersonateUsers?: {
|
|
2162
|
-
id: string;
|
|
2163
|
-
firstName: string;
|
|
2164
2262
|
lastName: string;
|
|
2263
|
+
firstName: string;
|
|
2264
|
+
id: string;
|
|
2165
2265
|
}[] | undefined;
|
|
2166
2266
|
}>;
|
|
2167
2267
|
404: z.ZodObject<{
|