@dakkitor/api-contracts 1.1.136 → 1.1.137
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/first-agent.abilities.json +17 -2
- package/dist/abilities/second-agent.abilities.json +9 -1
- package/dist/actives/actives.contract.d.ts +6938 -6248
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +2151 -702
- 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/bookings/bookings.contract.d.ts +26042 -22476
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +161 -37
- package/dist/client-contacts/client-contacts.contract.d.ts +460 -460
- package/dist/clients/clients.contract.d.ts +263 -197
- 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 +1620 -1620
- package/dist/collaborations/collaborations.contract.d.ts +1456 -1456
- package/dist/collaborations/collaborations.contract.js +2 -2
- 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 +388 -282
- 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 +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/jobs/jobs.contract.d.ts +2885 -2885
- 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-distribution/agent-lead-distribution.contract.d.ts +535 -139
- 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/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const LinkTypeSchema: z.ZodEnum<["CREATION", "EDIT_SUGGESTION"]>;
|
|
3
|
+
export declare const AgentClientLinkStatusSchema: z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>;
|
|
4
|
+
export type AgentClientLinkStatusType = z.infer<typeof AgentClientLinkStatusSchema>;
|
|
3
5
|
export declare const AgentClientLinkSortableFieldsSchema: z.ZodEnum<["createdAt"]>;
|
|
4
6
|
export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
5
7
|
id: z.ZodString;
|
|
@@ -8,7 +10,7 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
8
10
|
id: z.ZodString;
|
|
9
11
|
name: z.ZodString;
|
|
10
12
|
crn: z.ZodNullable<z.ZodString>;
|
|
11
|
-
govLink: z.ZodString
|
|
13
|
+
govLink: z.ZodNullable<z.ZodString>;
|
|
12
14
|
soleTrader: z.ZodBoolean;
|
|
13
15
|
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
14
16
|
director: z.ZodString;
|
|
@@ -19,15 +21,15 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
19
21
|
lastName: z.ZodString;
|
|
20
22
|
email: z.ZodString;
|
|
21
23
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
email: string;
|
|
23
24
|
id: string;
|
|
24
25
|
firstName: string;
|
|
25
26
|
lastName: string;
|
|
26
|
-
}, {
|
|
27
27
|
email: string;
|
|
28
|
+
}, {
|
|
28
29
|
id: string;
|
|
29
30
|
firstName: string;
|
|
30
31
|
lastName: string;
|
|
32
|
+
email: string;
|
|
31
33
|
}>>>;
|
|
32
34
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
33
35
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -39,41 +41,41 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
39
41
|
agentId: string;
|
|
40
42
|
}>>>;
|
|
41
43
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
name: string;
|
|
43
44
|
id: string;
|
|
44
|
-
status: "
|
|
45
|
-
|
|
46
|
-
updatedAt: string;
|
|
45
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
46
|
+
name: string;
|
|
47
47
|
crn: string | null;
|
|
48
|
-
govLink: string;
|
|
48
|
+
govLink: string | null;
|
|
49
49
|
soleTrader: boolean;
|
|
50
50
|
director: string;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
51
53
|
blacklistReason?: string | null | undefined;
|
|
52
54
|
lastUpdatedBy?: {
|
|
53
|
-
email: string;
|
|
54
55
|
id: string;
|
|
55
56
|
firstName: string;
|
|
56
57
|
lastName: string;
|
|
58
|
+
email: string;
|
|
57
59
|
} | null | undefined;
|
|
58
60
|
agentClientLinks?: {
|
|
59
61
|
agentId: string;
|
|
60
62
|
} | null | undefined;
|
|
61
63
|
}, {
|
|
62
|
-
name: string;
|
|
63
64
|
id: string;
|
|
64
|
-
status: "
|
|
65
|
-
|
|
66
|
-
updatedAt: string | Date;
|
|
65
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
66
|
+
name: string;
|
|
67
67
|
crn: string | null;
|
|
68
|
-
govLink: string;
|
|
68
|
+
govLink: string | null;
|
|
69
69
|
soleTrader: boolean;
|
|
70
70
|
director: string;
|
|
71
|
+
createdAt: string | Date;
|
|
72
|
+
updatedAt: string | Date;
|
|
71
73
|
blacklistReason?: string | null | undefined;
|
|
72
74
|
lastUpdatedBy?: {
|
|
73
|
-
email: string;
|
|
74
75
|
id: string;
|
|
75
76
|
firstName: string;
|
|
76
77
|
lastName: string;
|
|
78
|
+
email: string;
|
|
77
79
|
} | null | undefined;
|
|
78
80
|
agentClientLinks?: {
|
|
79
81
|
agentId: string;
|
|
@@ -119,12 +121,12 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
119
121
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
120
122
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
121
123
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
email: string;
|
|
123
124
|
id: string;
|
|
124
|
-
createdAt: string;
|
|
125
|
-
updatedAt: string;
|
|
126
125
|
firstName: string;
|
|
127
126
|
lastName: string;
|
|
127
|
+
email: string;
|
|
128
|
+
createdAt: string;
|
|
129
|
+
updatedAt: string;
|
|
128
130
|
phoneNumbers: {
|
|
129
131
|
id: string;
|
|
130
132
|
phoneNumber: string;
|
|
@@ -139,19 +141,19 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
139
141
|
lastName: string;
|
|
140
142
|
}[] | undefined;
|
|
141
143
|
}, {
|
|
142
|
-
email: string;
|
|
143
144
|
id: string;
|
|
144
|
-
createdAt: string | Date;
|
|
145
|
-
updatedAt: string | Date;
|
|
146
145
|
firstName: string;
|
|
147
146
|
lastName: string;
|
|
148
|
-
|
|
147
|
+
email: string;
|
|
148
|
+
createdAt: string | Date;
|
|
149
|
+
updatedAt: string | Date;
|
|
149
150
|
phoneNumbers?: {
|
|
150
151
|
id: string;
|
|
151
152
|
phoneNumber: string;
|
|
152
153
|
description?: string | null | undefined;
|
|
153
154
|
isPrimary?: boolean | undefined;
|
|
154
155
|
}[] | undefined;
|
|
156
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
155
157
|
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;
|
|
156
158
|
canImpersonateUsers?: {
|
|
157
159
|
id: string;
|
|
@@ -162,8 +164,9 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
162
164
|
linkType: z.ZodEnum<["CREATION", "EDIT_SUGGESTION"]>;
|
|
163
165
|
suggestedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
164
166
|
appliedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
+
status: z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>;
|
|
168
|
+
reviewedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
169
|
+
reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
167
170
|
id: z.ZodString;
|
|
168
171
|
firstName: z.ZodString;
|
|
169
172
|
lastName: z.ZodString;
|
|
@@ -202,12 +205,12 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
202
205
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
203
206
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
204
207
|
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
email: string;
|
|
206
208
|
id: string;
|
|
207
|
-
createdAt: string;
|
|
208
|
-
updatedAt: string;
|
|
209
209
|
firstName: string;
|
|
210
210
|
lastName: string;
|
|
211
|
+
email: string;
|
|
212
|
+
createdAt: string;
|
|
213
|
+
updatedAt: string;
|
|
211
214
|
phoneNumbers: {
|
|
212
215
|
id: string;
|
|
213
216
|
phoneNumber: string;
|
|
@@ -222,41 +225,73 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
222
225
|
lastName: string;
|
|
223
226
|
}[] | undefined;
|
|
224
227
|
}, {
|
|
225
|
-
email: string;
|
|
226
228
|
id: string;
|
|
227
|
-
createdAt: string | Date;
|
|
228
|
-
updatedAt: string | Date;
|
|
229
229
|
firstName: string;
|
|
230
230
|
lastName: string;
|
|
231
|
-
|
|
231
|
+
email: string;
|
|
232
|
+
createdAt: string | Date;
|
|
233
|
+
updatedAt: string | Date;
|
|
232
234
|
phoneNumbers?: {
|
|
233
235
|
id: string;
|
|
234
236
|
phoneNumber: string;
|
|
235
237
|
description?: string | null | undefined;
|
|
236
238
|
isPrimary?: boolean | undefined;
|
|
237
239
|
}[] | undefined;
|
|
240
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
238
241
|
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;
|
|
239
242
|
canImpersonateUsers?: {
|
|
240
243
|
id: string;
|
|
241
244
|
firstName: string;
|
|
242
245
|
lastName: string;
|
|
243
246
|
}[] | undefined;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
247
|
+
}>>>;
|
|
248
|
+
reviewedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
249
|
+
createdBy: z.ZodString;
|
|
250
|
+
creator: z.ZodObject<{
|
|
251
|
+
id: z.ZodString;
|
|
252
|
+
firstName: z.ZodString;
|
|
253
|
+
lastName: z.ZodString;
|
|
254
|
+
email: z.ZodString;
|
|
255
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
256
|
+
id: z.ZodString;
|
|
257
|
+
phoneNumber: z.ZodString;
|
|
258
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
259
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
id: string;
|
|
262
|
+
phoneNumber: string;
|
|
263
|
+
isPrimary: boolean;
|
|
264
|
+
description?: string | null | undefined;
|
|
265
|
+
}, {
|
|
266
|
+
id: string;
|
|
267
|
+
phoneNumber: string;
|
|
268
|
+
description?: string | null | undefined;
|
|
269
|
+
isPrimary?: boolean | undefined;
|
|
270
|
+
}>, "many">>>;
|
|
271
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
272
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
|
|
273
|
+
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
274
|
+
id: z.ZodString;
|
|
275
|
+
firstName: z.ZodString;
|
|
276
|
+
lastName: z.ZodString;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
id: string;
|
|
279
|
+
firstName: string;
|
|
280
|
+
lastName: string;
|
|
281
|
+
}, {
|
|
282
|
+
id: string;
|
|
283
|
+
firstName: string;
|
|
284
|
+
lastName: string;
|
|
285
|
+
}>, "many">>;
|
|
286
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
287
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
288
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
289
|
id: string;
|
|
256
|
-
createdAt: string;
|
|
257
|
-
updatedAt: string;
|
|
258
290
|
firstName: string;
|
|
259
291
|
lastName: string;
|
|
292
|
+
email: string;
|
|
293
|
+
createdAt: string;
|
|
294
|
+
updatedAt: string;
|
|
260
295
|
phoneNumbers: {
|
|
261
296
|
id: string;
|
|
262
297
|
phoneNumber: string;
|
|
@@ -270,37 +305,87 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
270
305
|
firstName: string;
|
|
271
306
|
lastName: string;
|
|
272
307
|
}[] | undefined;
|
|
273
|
-
}
|
|
308
|
+
}, {
|
|
309
|
+
id: string;
|
|
310
|
+
firstName: string;
|
|
311
|
+
lastName: string;
|
|
312
|
+
email: string;
|
|
313
|
+
createdAt: string | Date;
|
|
314
|
+
updatedAt: string | Date;
|
|
315
|
+
phoneNumbers?: {
|
|
316
|
+
id: string;
|
|
317
|
+
phoneNumber: string;
|
|
318
|
+
description?: string | null | undefined;
|
|
319
|
+
isPrimary?: boolean | undefined;
|
|
320
|
+
}[] | undefined;
|
|
321
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
322
|
+
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;
|
|
323
|
+
canImpersonateUsers?: {
|
|
324
|
+
id: string;
|
|
325
|
+
firstName: string;
|
|
326
|
+
lastName: string;
|
|
327
|
+
}[] | undefined;
|
|
328
|
+
}>;
|
|
329
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
330
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
331
|
+
}, "strip", z.ZodTypeAny, {
|
|
332
|
+
id: string;
|
|
333
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
334
|
+
createdAt: string;
|
|
335
|
+
updatedAt: string;
|
|
336
|
+
agentId: string;
|
|
337
|
+
clientId: string;
|
|
274
338
|
client: {
|
|
275
|
-
name: string;
|
|
276
339
|
id: string;
|
|
277
|
-
status: "
|
|
278
|
-
|
|
279
|
-
updatedAt: string;
|
|
340
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
341
|
+
name: string;
|
|
280
342
|
crn: string | null;
|
|
281
|
-
govLink: string;
|
|
343
|
+
govLink: string | null;
|
|
282
344
|
soleTrader: boolean;
|
|
283
345
|
director: string;
|
|
346
|
+
createdAt: string;
|
|
347
|
+
updatedAt: string;
|
|
284
348
|
blacklistReason?: string | null | undefined;
|
|
285
349
|
lastUpdatedBy?: {
|
|
286
|
-
email: string;
|
|
287
350
|
id: string;
|
|
288
351
|
firstName: string;
|
|
289
352
|
lastName: string;
|
|
353
|
+
email: string;
|
|
290
354
|
} | null | undefined;
|
|
291
355
|
agentClientLinks?: {
|
|
292
356
|
agentId: string;
|
|
293
357
|
} | null | undefined;
|
|
294
358
|
};
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
creator: {
|
|
298
|
-
email: string;
|
|
359
|
+
createdBy: string;
|
|
360
|
+
agent: {
|
|
299
361
|
id: string;
|
|
362
|
+
firstName: string;
|
|
363
|
+
lastName: string;
|
|
364
|
+
email: string;
|
|
300
365
|
createdAt: string;
|
|
301
366
|
updatedAt: string;
|
|
367
|
+
phoneNumbers: {
|
|
368
|
+
id: string;
|
|
369
|
+
phoneNumber: string;
|
|
370
|
+
isPrimary: boolean;
|
|
371
|
+
description?: string | null | undefined;
|
|
372
|
+
}[];
|
|
373
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
374
|
+
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;
|
|
375
|
+
canImpersonateUsers?: {
|
|
376
|
+
id: string;
|
|
377
|
+
firstName: string;
|
|
378
|
+
lastName: string;
|
|
379
|
+
}[] | undefined;
|
|
380
|
+
};
|
|
381
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
382
|
+
creator: {
|
|
383
|
+
id: string;
|
|
302
384
|
firstName: string;
|
|
303
385
|
lastName: string;
|
|
386
|
+
email: string;
|
|
387
|
+
createdAt: string;
|
|
388
|
+
updatedAt: string;
|
|
304
389
|
phoneNumbers: {
|
|
305
390
|
id: string;
|
|
306
391
|
phoneNumber: string;
|
|
@@ -317,70 +402,94 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
317
402
|
};
|
|
318
403
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
319
404
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
id: string;
|
|
323
|
-
agentId: string;
|
|
324
|
-
createdAt: string | Date;
|
|
325
|
-
updatedAt: string | Date;
|
|
326
|
-
agent: {
|
|
327
|
-
email: string;
|
|
405
|
+
reviewedBy?: string | null | undefined;
|
|
406
|
+
reviewer?: {
|
|
328
407
|
id: string;
|
|
329
|
-
createdAt: string | Date;
|
|
330
|
-
updatedAt: string | Date;
|
|
331
408
|
firstName: string;
|
|
332
409
|
lastName: string;
|
|
333
|
-
|
|
334
|
-
|
|
410
|
+
email: string;
|
|
411
|
+
createdAt: string;
|
|
412
|
+
updatedAt: string;
|
|
413
|
+
phoneNumbers: {
|
|
335
414
|
id: string;
|
|
336
415
|
phoneNumber: string;
|
|
416
|
+
isPrimary: boolean;
|
|
337
417
|
description?: string | null | undefined;
|
|
338
|
-
|
|
339
|
-
|
|
418
|
+
}[];
|
|
419
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
340
420
|
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;
|
|
341
421
|
canImpersonateUsers?: {
|
|
342
422
|
id: string;
|
|
343
423
|
firstName: string;
|
|
344
424
|
lastName: string;
|
|
345
425
|
}[] | undefined;
|
|
346
|
-
};
|
|
426
|
+
} | null | undefined;
|
|
427
|
+
reviewedAt?: string | null | undefined;
|
|
428
|
+
}, {
|
|
429
|
+
id: string;
|
|
430
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
431
|
+
createdAt: string | Date;
|
|
432
|
+
updatedAt: string | Date;
|
|
433
|
+
agentId: string;
|
|
434
|
+
clientId: string;
|
|
347
435
|
client: {
|
|
348
|
-
name: string;
|
|
349
436
|
id: string;
|
|
350
|
-
status: "
|
|
351
|
-
|
|
352
|
-
updatedAt: string | Date;
|
|
437
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
438
|
+
name: string;
|
|
353
439
|
crn: string | null;
|
|
354
|
-
govLink: string;
|
|
440
|
+
govLink: string | null;
|
|
355
441
|
soleTrader: boolean;
|
|
356
442
|
director: string;
|
|
443
|
+
createdAt: string | Date;
|
|
444
|
+
updatedAt: string | Date;
|
|
357
445
|
blacklistReason?: string | null | undefined;
|
|
358
446
|
lastUpdatedBy?: {
|
|
359
|
-
email: string;
|
|
360
447
|
id: string;
|
|
361
448
|
firstName: string;
|
|
362
449
|
lastName: string;
|
|
450
|
+
email: string;
|
|
363
451
|
} | null | undefined;
|
|
364
452
|
agentClientLinks?: {
|
|
365
453
|
agentId: string;
|
|
366
454
|
} | null | undefined;
|
|
367
455
|
};
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
creator: {
|
|
371
|
-
email: string;
|
|
456
|
+
createdBy: string;
|
|
457
|
+
agent: {
|
|
372
458
|
id: string;
|
|
459
|
+
firstName: string;
|
|
460
|
+
lastName: string;
|
|
461
|
+
email: string;
|
|
373
462
|
createdAt: string | Date;
|
|
374
463
|
updatedAt: string | Date;
|
|
464
|
+
phoneNumbers?: {
|
|
465
|
+
id: string;
|
|
466
|
+
phoneNumber: string;
|
|
467
|
+
description?: string | null | undefined;
|
|
468
|
+
isPrimary?: boolean | undefined;
|
|
469
|
+
}[] | undefined;
|
|
470
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
471
|
+
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;
|
|
472
|
+
canImpersonateUsers?: {
|
|
473
|
+
id: string;
|
|
474
|
+
firstName: string;
|
|
475
|
+
lastName: string;
|
|
476
|
+
}[] | undefined;
|
|
477
|
+
};
|
|
478
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
479
|
+
creator: {
|
|
480
|
+
id: string;
|
|
375
481
|
firstName: string;
|
|
376
482
|
lastName: string;
|
|
377
|
-
|
|
483
|
+
email: string;
|
|
484
|
+
createdAt: string | Date;
|
|
485
|
+
updatedAt: string | Date;
|
|
378
486
|
phoneNumbers?: {
|
|
379
487
|
id: string;
|
|
380
488
|
phoneNumber: string;
|
|
381
489
|
description?: string | null | undefined;
|
|
382
490
|
isPrimary?: boolean | undefined;
|
|
383
491
|
}[] | undefined;
|
|
492
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
384
493
|
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;
|
|
385
494
|
canImpersonateUsers?: {
|
|
386
495
|
id: string;
|
|
@@ -390,30 +499,56 @@ export declare const AgentClientLinkSchema: z.ZodObject<{
|
|
|
390
499
|
};
|
|
391
500
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
392
501
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
502
|
+
reviewedBy?: string | null | undefined;
|
|
503
|
+
reviewer?: {
|
|
504
|
+
id: string;
|
|
505
|
+
firstName: string;
|
|
506
|
+
lastName: string;
|
|
507
|
+
email: string;
|
|
508
|
+
createdAt: string | Date;
|
|
509
|
+
updatedAt: string | Date;
|
|
510
|
+
phoneNumbers?: {
|
|
511
|
+
id: string;
|
|
512
|
+
phoneNumber: string;
|
|
513
|
+
description?: string | null | undefined;
|
|
514
|
+
isPrimary?: boolean | undefined;
|
|
515
|
+
}[] | undefined;
|
|
516
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
517
|
+
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;
|
|
518
|
+
canImpersonateUsers?: {
|
|
519
|
+
id: string;
|
|
520
|
+
firstName: string;
|
|
521
|
+
lastName: string;
|
|
522
|
+
}[] | undefined;
|
|
523
|
+
} | null | undefined;
|
|
524
|
+
reviewedAt?: string | Date | null | undefined;
|
|
525
|
+
}>;
|
|
526
|
+
export declare const FilterAgentClientLinkSchema: z.ZodObject<{
|
|
527
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
528
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
529
|
+
} & {
|
|
530
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
531
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
532
|
+
linkType: z.ZodOptional<z.ZodEnum<["CREATION", "EDIT_SUGGESTION"]>>;
|
|
533
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>>;
|
|
534
|
+
sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["createdAt"]>>>;
|
|
535
|
+
sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
536
|
+
}, "strip", z.ZodTypeAny, {
|
|
537
|
+
limit: number;
|
|
538
|
+
page: number;
|
|
539
|
+
sortBy: "createdAt";
|
|
540
|
+
sortOrder: "ASC" | "DESC";
|
|
541
|
+
status?: "APPROVED" | "REJECTED" | "PENDING_REVIEW" | undefined;
|
|
542
|
+
agentId?: string | undefined;
|
|
409
543
|
clientId?: string | undefined;
|
|
410
544
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
411
545
|
}, {
|
|
546
|
+
status?: "APPROVED" | "REJECTED" | "PENDING_REVIEW" | undefined;
|
|
547
|
+
agentId?: string | undefined;
|
|
548
|
+
limit?: number | undefined;
|
|
549
|
+
page?: number | undefined;
|
|
412
550
|
sortBy?: "createdAt" | undefined;
|
|
413
551
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
414
|
-
page?: number | undefined;
|
|
415
|
-
limit?: number | undefined;
|
|
416
|
-
agentId?: string | undefined;
|
|
417
552
|
clientId?: string | undefined;
|
|
418
553
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
419
554
|
}>;
|
|
@@ -424,6 +559,23 @@ export declare const ApplyChangesSchema: z.ZodObject<{
|
|
|
424
559
|
}, {
|
|
425
560
|
fields?: string[] | undefined;
|
|
426
561
|
}>;
|
|
562
|
+
export declare const UpdateAgentClientLinkSchema: z.ZodObject<{
|
|
563
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
564
|
+
linkType: z.ZodOptional<z.ZodEnum<["CREATION", "EDIT_SUGGESTION"]>>;
|
|
565
|
+
suggestedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
566
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>>;
|
|
567
|
+
}, "strip", z.ZodTypeAny, {
|
|
568
|
+
status?: "APPROVED" | "REJECTED" | "PENDING_REVIEW" | undefined;
|
|
569
|
+
clientId?: string | undefined;
|
|
570
|
+
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
571
|
+
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
572
|
+
}, {
|
|
573
|
+
status?: "APPROVED" | "REJECTED" | "PENDING_REVIEW" | undefined;
|
|
574
|
+
clientId?: string | undefined;
|
|
575
|
+
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
576
|
+
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
577
|
+
}>;
|
|
578
|
+
export type UpdateAgentClientLink = z.infer<typeof UpdateAgentClientLinkSchema>;
|
|
427
579
|
export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
428
580
|
items: z.ZodArray<z.ZodObject<{
|
|
429
581
|
id: z.ZodString;
|
|
@@ -432,7 +584,7 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
432
584
|
id: z.ZodString;
|
|
433
585
|
name: z.ZodString;
|
|
434
586
|
crn: z.ZodNullable<z.ZodString>;
|
|
435
|
-
govLink: z.ZodString
|
|
587
|
+
govLink: z.ZodNullable<z.ZodString>;
|
|
436
588
|
soleTrader: z.ZodBoolean;
|
|
437
589
|
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
438
590
|
director: z.ZodString;
|
|
@@ -443,15 +595,15 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
443
595
|
lastName: z.ZodString;
|
|
444
596
|
email: z.ZodString;
|
|
445
597
|
}, "strip", z.ZodTypeAny, {
|
|
446
|
-
email: string;
|
|
447
598
|
id: string;
|
|
448
599
|
firstName: string;
|
|
449
600
|
lastName: string;
|
|
450
|
-
}, {
|
|
451
601
|
email: string;
|
|
602
|
+
}, {
|
|
452
603
|
id: string;
|
|
453
604
|
firstName: string;
|
|
454
605
|
lastName: string;
|
|
606
|
+
email: string;
|
|
455
607
|
}>>>;
|
|
456
608
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
457
609
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -463,41 +615,41 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
463
615
|
agentId: string;
|
|
464
616
|
}>>>;
|
|
465
617
|
}, "strip", z.ZodTypeAny, {
|
|
466
|
-
name: string;
|
|
467
618
|
id: string;
|
|
468
|
-
status: "
|
|
469
|
-
|
|
470
|
-
updatedAt: string;
|
|
619
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
620
|
+
name: string;
|
|
471
621
|
crn: string | null;
|
|
472
|
-
govLink: string;
|
|
622
|
+
govLink: string | null;
|
|
473
623
|
soleTrader: boolean;
|
|
474
624
|
director: string;
|
|
625
|
+
createdAt: string;
|
|
626
|
+
updatedAt: string;
|
|
475
627
|
blacklistReason?: string | null | undefined;
|
|
476
628
|
lastUpdatedBy?: {
|
|
477
|
-
email: string;
|
|
478
629
|
id: string;
|
|
479
630
|
firstName: string;
|
|
480
631
|
lastName: string;
|
|
632
|
+
email: string;
|
|
481
633
|
} | null | undefined;
|
|
482
634
|
agentClientLinks?: {
|
|
483
635
|
agentId: string;
|
|
484
636
|
} | null | undefined;
|
|
485
637
|
}, {
|
|
486
|
-
name: string;
|
|
487
638
|
id: string;
|
|
488
|
-
status: "
|
|
489
|
-
|
|
490
|
-
updatedAt: string | Date;
|
|
639
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
640
|
+
name: string;
|
|
491
641
|
crn: string | null;
|
|
492
|
-
govLink: string;
|
|
642
|
+
govLink: string | null;
|
|
493
643
|
soleTrader: boolean;
|
|
494
644
|
director: string;
|
|
645
|
+
createdAt: string | Date;
|
|
646
|
+
updatedAt: string | Date;
|
|
495
647
|
blacklistReason?: string | null | undefined;
|
|
496
648
|
lastUpdatedBy?: {
|
|
497
|
-
email: string;
|
|
498
649
|
id: string;
|
|
499
650
|
firstName: string;
|
|
500
651
|
lastName: string;
|
|
652
|
+
email: string;
|
|
501
653
|
} | null | undefined;
|
|
502
654
|
agentClientLinks?: {
|
|
503
655
|
agentId: string;
|
|
@@ -543,12 +695,12 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
543
695
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
544
696
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
545
697
|
}, "strip", z.ZodTypeAny, {
|
|
546
|
-
email: string;
|
|
547
698
|
id: string;
|
|
548
|
-
createdAt: string;
|
|
549
|
-
updatedAt: string;
|
|
550
699
|
firstName: string;
|
|
551
700
|
lastName: string;
|
|
701
|
+
email: string;
|
|
702
|
+
createdAt: string;
|
|
703
|
+
updatedAt: string;
|
|
552
704
|
phoneNumbers: {
|
|
553
705
|
id: string;
|
|
554
706
|
phoneNumber: string;
|
|
@@ -563,19 +715,19 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
563
715
|
lastName: string;
|
|
564
716
|
}[] | undefined;
|
|
565
717
|
}, {
|
|
566
|
-
email: string;
|
|
567
718
|
id: string;
|
|
568
|
-
createdAt: string | Date;
|
|
569
|
-
updatedAt: string | Date;
|
|
570
719
|
firstName: string;
|
|
571
720
|
lastName: string;
|
|
572
|
-
|
|
721
|
+
email: string;
|
|
722
|
+
createdAt: string | Date;
|
|
723
|
+
updatedAt: string | Date;
|
|
573
724
|
phoneNumbers?: {
|
|
574
725
|
id: string;
|
|
575
726
|
phoneNumber: string;
|
|
576
727
|
description?: string | null | undefined;
|
|
577
728
|
isPrimary?: boolean | undefined;
|
|
578
729
|
}[] | undefined;
|
|
730
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
579
731
|
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;
|
|
580
732
|
canImpersonateUsers?: {
|
|
581
733
|
id: string;
|
|
@@ -586,8 +738,9 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
586
738
|
linkType: z.ZodEnum<["CREATION", "EDIT_SUGGESTION"]>;
|
|
587
739
|
suggestedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
588
740
|
appliedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
589
|
-
|
|
590
|
-
|
|
741
|
+
status: z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>;
|
|
742
|
+
reviewedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
743
|
+
reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
591
744
|
id: z.ZodString;
|
|
592
745
|
firstName: z.ZodString;
|
|
593
746
|
lastName: z.ZodString;
|
|
@@ -626,12 +779,12 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
626
779
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
627
780
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
628
781
|
}, "strip", z.ZodTypeAny, {
|
|
629
|
-
email: string;
|
|
630
782
|
id: string;
|
|
631
|
-
createdAt: string;
|
|
632
|
-
updatedAt: string;
|
|
633
783
|
firstName: string;
|
|
634
784
|
lastName: string;
|
|
785
|
+
email: string;
|
|
786
|
+
createdAt: string;
|
|
787
|
+
updatedAt: string;
|
|
635
788
|
phoneNumbers: {
|
|
636
789
|
id: string;
|
|
637
790
|
phoneNumber: string;
|
|
@@ -646,85 +799,73 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
646
799
|
lastName: string;
|
|
647
800
|
}[] | undefined;
|
|
648
801
|
}, {
|
|
649
|
-
email: string;
|
|
650
802
|
id: string;
|
|
651
|
-
createdAt: string | Date;
|
|
652
|
-
updatedAt: string | Date;
|
|
653
803
|
firstName: string;
|
|
654
804
|
lastName: string;
|
|
655
|
-
|
|
805
|
+
email: string;
|
|
806
|
+
createdAt: string | Date;
|
|
807
|
+
updatedAt: string | Date;
|
|
656
808
|
phoneNumbers?: {
|
|
657
809
|
id: string;
|
|
658
810
|
phoneNumber: string;
|
|
659
811
|
description?: string | null | undefined;
|
|
660
812
|
isPrimary?: boolean | undefined;
|
|
661
813
|
}[] | undefined;
|
|
814
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
662
815
|
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;
|
|
663
816
|
canImpersonateUsers?: {
|
|
664
817
|
id: string;
|
|
665
818
|
firstName: string;
|
|
666
819
|
lastName: string;
|
|
667
820
|
}[] | undefined;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
firstName: string;
|
|
683
|
-
lastName: string;
|
|
684
|
-
phoneNumbers: {
|
|
821
|
+
}>>>;
|
|
822
|
+
reviewedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
823
|
+
createdBy: z.ZodString;
|
|
824
|
+
creator: z.ZodObject<{
|
|
825
|
+
id: z.ZodString;
|
|
826
|
+
firstName: z.ZodString;
|
|
827
|
+
lastName: z.ZodString;
|
|
828
|
+
email: z.ZodString;
|
|
829
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
830
|
+
id: z.ZodString;
|
|
831
|
+
phoneNumber: z.ZodString;
|
|
832
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
833
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
834
|
+
}, "strip", z.ZodTypeAny, {
|
|
685
835
|
id: string;
|
|
686
836
|
phoneNumber: string;
|
|
687
837
|
isPrimary: boolean;
|
|
688
838
|
description?: string | null | undefined;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
839
|
+
}, {
|
|
840
|
+
id: string;
|
|
841
|
+
phoneNumber: string;
|
|
842
|
+
description?: string | null | undefined;
|
|
843
|
+
isPrimary?: boolean | undefined;
|
|
844
|
+
}>, "many">>>;
|
|
845
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
846
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
|
|
847
|
+
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
848
|
+
id: z.ZodString;
|
|
849
|
+
firstName: z.ZodString;
|
|
850
|
+
lastName: z.ZodString;
|
|
851
|
+
}, "strip", z.ZodTypeAny, {
|
|
693
852
|
id: string;
|
|
694
853
|
firstName: string;
|
|
695
854
|
lastName: string;
|
|
696
|
-
}
|
|
697
|
-
};
|
|
698
|
-
client: {
|
|
699
|
-
name: string;
|
|
700
|
-
id: string;
|
|
701
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
702
|
-
createdAt: string;
|
|
703
|
-
updatedAt: string;
|
|
704
|
-
crn: string | null;
|
|
705
|
-
govLink: string;
|
|
706
|
-
soleTrader: boolean;
|
|
707
|
-
director: string;
|
|
708
|
-
blacklistReason?: string | null | undefined;
|
|
709
|
-
lastUpdatedBy?: {
|
|
710
|
-
email: string;
|
|
855
|
+
}, {
|
|
711
856
|
id: string;
|
|
712
857
|
firstName: string;
|
|
713
858
|
lastName: string;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
};
|
|
719
|
-
clientId: string;
|
|
720
|
-
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
721
|
-
creator: {
|
|
722
|
-
email: string;
|
|
859
|
+
}>, "many">>;
|
|
860
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
861
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
862
|
+
}, "strip", z.ZodTypeAny, {
|
|
723
863
|
id: string;
|
|
724
|
-
createdAt: string;
|
|
725
|
-
updatedAt: string;
|
|
726
864
|
firstName: string;
|
|
727
865
|
lastName: string;
|
|
866
|
+
email: string;
|
|
867
|
+
createdAt: string;
|
|
868
|
+
updatedAt: string;
|
|
728
869
|
phoneNumbers: {
|
|
729
870
|
id: string;
|
|
730
871
|
phoneNumber: string;
|
|
@@ -738,73 +879,94 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
738
879
|
firstName: string;
|
|
739
880
|
lastName: string;
|
|
740
881
|
}[] | undefined;
|
|
741
|
-
}
|
|
742
|
-
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
743
|
-
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
744
|
-
}, {
|
|
745
|
-
createdBy: string;
|
|
746
|
-
id: string;
|
|
747
|
-
agentId: string;
|
|
748
|
-
createdAt: string | Date;
|
|
749
|
-
updatedAt: string | Date;
|
|
750
|
-
agent: {
|
|
751
|
-
email: string;
|
|
882
|
+
}, {
|
|
752
883
|
id: string;
|
|
753
|
-
createdAt: string | Date;
|
|
754
|
-
updatedAt: string | Date;
|
|
755
884
|
firstName: string;
|
|
756
885
|
lastName: string;
|
|
757
|
-
|
|
886
|
+
email: string;
|
|
887
|
+
createdAt: string | Date;
|
|
888
|
+
updatedAt: string | Date;
|
|
758
889
|
phoneNumbers?: {
|
|
759
890
|
id: string;
|
|
760
891
|
phoneNumber: string;
|
|
761
892
|
description?: string | null | undefined;
|
|
762
893
|
isPrimary?: boolean | undefined;
|
|
763
894
|
}[] | undefined;
|
|
895
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
764
896
|
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;
|
|
765
897
|
canImpersonateUsers?: {
|
|
766
898
|
id: string;
|
|
767
899
|
firstName: string;
|
|
768
900
|
lastName: string;
|
|
769
901
|
}[] | undefined;
|
|
770
|
-
}
|
|
902
|
+
}>;
|
|
903
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
904
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
905
|
+
}, "strip", z.ZodTypeAny, {
|
|
906
|
+
id: string;
|
|
907
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
908
|
+
createdAt: string;
|
|
909
|
+
updatedAt: string;
|
|
910
|
+
agentId: string;
|
|
911
|
+
clientId: string;
|
|
771
912
|
client: {
|
|
772
|
-
name: string;
|
|
773
913
|
id: string;
|
|
774
|
-
status: "
|
|
775
|
-
|
|
776
|
-
updatedAt: string | Date;
|
|
914
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
915
|
+
name: string;
|
|
777
916
|
crn: string | null;
|
|
778
|
-
govLink: string;
|
|
917
|
+
govLink: string | null;
|
|
779
918
|
soleTrader: boolean;
|
|
780
919
|
director: string;
|
|
920
|
+
createdAt: string;
|
|
921
|
+
updatedAt: string;
|
|
781
922
|
blacklistReason?: string | null | undefined;
|
|
782
923
|
lastUpdatedBy?: {
|
|
783
|
-
email: string;
|
|
784
924
|
id: string;
|
|
785
925
|
firstName: string;
|
|
786
926
|
lastName: string;
|
|
927
|
+
email: string;
|
|
787
928
|
} | null | undefined;
|
|
788
929
|
agentClientLinks?: {
|
|
789
930
|
agentId: string;
|
|
790
931
|
} | null | undefined;
|
|
791
932
|
};
|
|
792
|
-
|
|
933
|
+
createdBy: string;
|
|
934
|
+
agent: {
|
|
935
|
+
id: string;
|
|
936
|
+
firstName: string;
|
|
937
|
+
lastName: string;
|
|
938
|
+
email: string;
|
|
939
|
+
createdAt: string;
|
|
940
|
+
updatedAt: string;
|
|
941
|
+
phoneNumbers: {
|
|
942
|
+
id: string;
|
|
943
|
+
phoneNumber: string;
|
|
944
|
+
isPrimary: boolean;
|
|
945
|
+
description?: string | null | undefined;
|
|
946
|
+
}[];
|
|
947
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
948
|
+
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;
|
|
949
|
+
canImpersonateUsers?: {
|
|
950
|
+
id: string;
|
|
951
|
+
firstName: string;
|
|
952
|
+
lastName: string;
|
|
953
|
+
}[] | undefined;
|
|
954
|
+
};
|
|
793
955
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
794
956
|
creator: {
|
|
795
|
-
email: string;
|
|
796
957
|
id: string;
|
|
797
|
-
createdAt: string | Date;
|
|
798
|
-
updatedAt: string | Date;
|
|
799
958
|
firstName: string;
|
|
800
959
|
lastName: string;
|
|
801
|
-
|
|
802
|
-
|
|
960
|
+
email: string;
|
|
961
|
+
createdAt: string;
|
|
962
|
+
updatedAt: string;
|
|
963
|
+
phoneNumbers: {
|
|
803
964
|
id: string;
|
|
804
965
|
phoneNumber: string;
|
|
966
|
+
isPrimary: boolean;
|
|
805
967
|
description?: string | null | undefined;
|
|
806
|
-
|
|
807
|
-
|
|
968
|
+
}[];
|
|
969
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
808
970
|
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;
|
|
809
971
|
canImpersonateUsers?: {
|
|
810
972
|
id: string;
|
|
@@ -814,27 +976,14 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
814
976
|
};
|
|
815
977
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
816
978
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
limit: z.ZodNumber;
|
|
820
|
-
skip: z.ZodNumber;
|
|
821
|
-
currentPage: z.ZodNumber;
|
|
822
|
-
totalPages: z.ZodNumber;
|
|
823
|
-
}, "strip", z.ZodTypeAny, {
|
|
824
|
-
limit: number;
|
|
825
|
-
items: {
|
|
826
|
-
createdBy: string;
|
|
827
|
-
id: string;
|
|
828
|
-
agentId: string;
|
|
829
|
-
createdAt: string;
|
|
830
|
-
updatedAt: string;
|
|
831
|
-
agent: {
|
|
832
|
-
email: string;
|
|
979
|
+
reviewedBy?: string | null | undefined;
|
|
980
|
+
reviewer?: {
|
|
833
981
|
id: string;
|
|
834
|
-
createdAt: string;
|
|
835
|
-
updatedAt: string;
|
|
836
982
|
firstName: string;
|
|
837
983
|
lastName: string;
|
|
984
|
+
email: string;
|
|
985
|
+
createdAt: string;
|
|
986
|
+
updatedAt: string;
|
|
838
987
|
phoneNumbers: {
|
|
839
988
|
id: string;
|
|
840
989
|
phoneNumber: string;
|
|
@@ -848,37 +997,171 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
848
997
|
firstName: string;
|
|
849
998
|
lastName: string;
|
|
850
999
|
}[] | undefined;
|
|
851
|
-
};
|
|
1000
|
+
} | null | undefined;
|
|
1001
|
+
reviewedAt?: string | null | undefined;
|
|
1002
|
+
}, {
|
|
1003
|
+
id: string;
|
|
1004
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
1005
|
+
createdAt: string | Date;
|
|
1006
|
+
updatedAt: string | Date;
|
|
1007
|
+
agentId: string;
|
|
1008
|
+
clientId: string;
|
|
852
1009
|
client: {
|
|
853
|
-
name: string;
|
|
854
1010
|
id: string;
|
|
855
|
-
status: "
|
|
856
|
-
|
|
857
|
-
updatedAt: string;
|
|
1011
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1012
|
+
name: string;
|
|
858
1013
|
crn: string | null;
|
|
859
|
-
govLink: string;
|
|
1014
|
+
govLink: string | null;
|
|
860
1015
|
soleTrader: boolean;
|
|
861
1016
|
director: string;
|
|
1017
|
+
createdAt: string | Date;
|
|
1018
|
+
updatedAt: string | Date;
|
|
862
1019
|
blacklistReason?: string | null | undefined;
|
|
863
1020
|
lastUpdatedBy?: {
|
|
864
|
-
email: string;
|
|
865
1021
|
id: string;
|
|
866
1022
|
firstName: string;
|
|
867
1023
|
lastName: string;
|
|
1024
|
+
email: string;
|
|
868
1025
|
} | null | undefined;
|
|
869
1026
|
agentClientLinks?: {
|
|
870
1027
|
agentId: string;
|
|
871
1028
|
} | null | undefined;
|
|
872
1029
|
};
|
|
873
|
-
|
|
1030
|
+
createdBy: string;
|
|
1031
|
+
agent: {
|
|
1032
|
+
id: string;
|
|
1033
|
+
firstName: string;
|
|
1034
|
+
lastName: string;
|
|
1035
|
+
email: string;
|
|
1036
|
+
createdAt: string | Date;
|
|
1037
|
+
updatedAt: string | Date;
|
|
1038
|
+
phoneNumbers?: {
|
|
1039
|
+
id: string;
|
|
1040
|
+
phoneNumber: string;
|
|
1041
|
+
description?: string | null | undefined;
|
|
1042
|
+
isPrimary?: boolean | undefined;
|
|
1043
|
+
}[] | undefined;
|
|
1044
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1045
|
+
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;
|
|
1046
|
+
canImpersonateUsers?: {
|
|
1047
|
+
id: string;
|
|
1048
|
+
firstName: string;
|
|
1049
|
+
lastName: string;
|
|
1050
|
+
}[] | undefined;
|
|
1051
|
+
};
|
|
874
1052
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
875
1053
|
creator: {
|
|
1054
|
+
id: string;
|
|
1055
|
+
firstName: string;
|
|
1056
|
+
lastName: string;
|
|
1057
|
+
email: string;
|
|
1058
|
+
createdAt: string | Date;
|
|
1059
|
+
updatedAt: string | Date;
|
|
1060
|
+
phoneNumbers?: {
|
|
1061
|
+
id: string;
|
|
1062
|
+
phoneNumber: string;
|
|
1063
|
+
description?: string | null | undefined;
|
|
1064
|
+
isPrimary?: boolean | undefined;
|
|
1065
|
+
}[] | undefined;
|
|
1066
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1067
|
+
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;
|
|
1068
|
+
canImpersonateUsers?: {
|
|
1069
|
+
id: string;
|
|
1070
|
+
firstName: string;
|
|
1071
|
+
lastName: string;
|
|
1072
|
+
}[] | undefined;
|
|
1073
|
+
};
|
|
1074
|
+
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
1075
|
+
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1076
|
+
reviewedBy?: string | null | undefined;
|
|
1077
|
+
reviewer?: {
|
|
1078
|
+
id: string;
|
|
1079
|
+
firstName: string;
|
|
1080
|
+
lastName: string;
|
|
876
1081
|
email: string;
|
|
1082
|
+
createdAt: string | Date;
|
|
1083
|
+
updatedAt: string | Date;
|
|
1084
|
+
phoneNumbers?: {
|
|
1085
|
+
id: string;
|
|
1086
|
+
phoneNumber: string;
|
|
1087
|
+
description?: string | null | undefined;
|
|
1088
|
+
isPrimary?: boolean | undefined;
|
|
1089
|
+
}[] | undefined;
|
|
1090
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1091
|
+
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;
|
|
1092
|
+
canImpersonateUsers?: {
|
|
1093
|
+
id: string;
|
|
1094
|
+
firstName: string;
|
|
1095
|
+
lastName: string;
|
|
1096
|
+
}[] | undefined;
|
|
1097
|
+
} | null | undefined;
|
|
1098
|
+
reviewedAt?: string | Date | null | undefined;
|
|
1099
|
+
}>, "many">;
|
|
1100
|
+
totalCount: z.ZodNumber;
|
|
1101
|
+
limit: z.ZodNumber;
|
|
1102
|
+
skip: z.ZodNumber;
|
|
1103
|
+
currentPage: z.ZodNumber;
|
|
1104
|
+
totalPages: z.ZodNumber;
|
|
1105
|
+
}, "strip", z.ZodTypeAny, {
|
|
1106
|
+
limit: number;
|
|
1107
|
+
items: {
|
|
1108
|
+
id: string;
|
|
1109
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
1110
|
+
createdAt: string;
|
|
1111
|
+
updatedAt: string;
|
|
1112
|
+
agentId: string;
|
|
1113
|
+
clientId: string;
|
|
1114
|
+
client: {
|
|
1115
|
+
id: string;
|
|
1116
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1117
|
+
name: string;
|
|
1118
|
+
crn: string | null;
|
|
1119
|
+
govLink: string | null;
|
|
1120
|
+
soleTrader: boolean;
|
|
1121
|
+
director: string;
|
|
1122
|
+
createdAt: string;
|
|
1123
|
+
updatedAt: string;
|
|
1124
|
+
blacklistReason?: string | null | undefined;
|
|
1125
|
+
lastUpdatedBy?: {
|
|
1126
|
+
id: string;
|
|
1127
|
+
firstName: string;
|
|
1128
|
+
lastName: string;
|
|
1129
|
+
email: string;
|
|
1130
|
+
} | null | undefined;
|
|
1131
|
+
agentClientLinks?: {
|
|
1132
|
+
agentId: string;
|
|
1133
|
+
} | null | undefined;
|
|
1134
|
+
};
|
|
1135
|
+
createdBy: string;
|
|
1136
|
+
agent: {
|
|
877
1137
|
id: string;
|
|
1138
|
+
firstName: string;
|
|
1139
|
+
lastName: string;
|
|
1140
|
+
email: string;
|
|
878
1141
|
createdAt: string;
|
|
879
1142
|
updatedAt: string;
|
|
1143
|
+
phoneNumbers: {
|
|
1144
|
+
id: string;
|
|
1145
|
+
phoneNumber: string;
|
|
1146
|
+
isPrimary: boolean;
|
|
1147
|
+
description?: string | null | undefined;
|
|
1148
|
+
}[];
|
|
1149
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1150
|
+
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;
|
|
1151
|
+
canImpersonateUsers?: {
|
|
1152
|
+
id: string;
|
|
1153
|
+
firstName: string;
|
|
1154
|
+
lastName: string;
|
|
1155
|
+
}[] | undefined;
|
|
1156
|
+
};
|
|
1157
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
1158
|
+
creator: {
|
|
1159
|
+
id: string;
|
|
880
1160
|
firstName: string;
|
|
881
1161
|
lastName: string;
|
|
1162
|
+
email: string;
|
|
1163
|
+
createdAt: string;
|
|
1164
|
+
updatedAt: string;
|
|
882
1165
|
phoneNumbers: {
|
|
883
1166
|
id: string;
|
|
884
1167
|
phoneNumber: string;
|
|
@@ -895,6 +1178,29 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
895
1178
|
};
|
|
896
1179
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
897
1180
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1181
|
+
reviewedBy?: string | null | undefined;
|
|
1182
|
+
reviewer?: {
|
|
1183
|
+
id: string;
|
|
1184
|
+
firstName: string;
|
|
1185
|
+
lastName: string;
|
|
1186
|
+
email: string;
|
|
1187
|
+
createdAt: string;
|
|
1188
|
+
updatedAt: string;
|
|
1189
|
+
phoneNumbers: {
|
|
1190
|
+
id: string;
|
|
1191
|
+
phoneNumber: string;
|
|
1192
|
+
isPrimary: boolean;
|
|
1193
|
+
description?: string | null | undefined;
|
|
1194
|
+
}[];
|
|
1195
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1196
|
+
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;
|
|
1197
|
+
canImpersonateUsers?: {
|
|
1198
|
+
id: string;
|
|
1199
|
+
firstName: string;
|
|
1200
|
+
lastName: string;
|
|
1201
|
+
}[] | undefined;
|
|
1202
|
+
} | null | undefined;
|
|
1203
|
+
reviewedAt?: string | null | undefined;
|
|
898
1204
|
}[];
|
|
899
1205
|
totalCount: number;
|
|
900
1206
|
skip: number;
|
|
@@ -903,25 +1209,48 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
903
1209
|
}, {
|
|
904
1210
|
limit: number;
|
|
905
1211
|
items: {
|
|
906
|
-
createdBy: string;
|
|
907
1212
|
id: string;
|
|
908
|
-
|
|
1213
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
909
1214
|
createdAt: string | Date;
|
|
910
1215
|
updatedAt: string | Date;
|
|
911
|
-
|
|
912
|
-
|
|
1216
|
+
agentId: string;
|
|
1217
|
+
clientId: string;
|
|
1218
|
+
client: {
|
|
913
1219
|
id: string;
|
|
1220
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1221
|
+
name: string;
|
|
1222
|
+
crn: string | null;
|
|
1223
|
+
govLink: string | null;
|
|
1224
|
+
soleTrader: boolean;
|
|
1225
|
+
director: string;
|
|
914
1226
|
createdAt: string | Date;
|
|
915
1227
|
updatedAt: string | Date;
|
|
1228
|
+
blacklistReason?: string | null | undefined;
|
|
1229
|
+
lastUpdatedBy?: {
|
|
1230
|
+
id: string;
|
|
1231
|
+
firstName: string;
|
|
1232
|
+
lastName: string;
|
|
1233
|
+
email: string;
|
|
1234
|
+
} | null | undefined;
|
|
1235
|
+
agentClientLinks?: {
|
|
1236
|
+
agentId: string;
|
|
1237
|
+
} | null | undefined;
|
|
1238
|
+
};
|
|
1239
|
+
createdBy: string;
|
|
1240
|
+
agent: {
|
|
1241
|
+
id: string;
|
|
916
1242
|
firstName: string;
|
|
917
1243
|
lastName: string;
|
|
918
|
-
|
|
1244
|
+
email: string;
|
|
1245
|
+
createdAt: string | Date;
|
|
1246
|
+
updatedAt: string | Date;
|
|
919
1247
|
phoneNumbers?: {
|
|
920
1248
|
id: string;
|
|
921
1249
|
phoneNumber: string;
|
|
922
1250
|
description?: string | null | undefined;
|
|
923
1251
|
isPrimary?: boolean | undefined;
|
|
924
1252
|
}[] | undefined;
|
|
1253
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
925
1254
|
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;
|
|
926
1255
|
canImpersonateUsers?: {
|
|
927
1256
|
id: string;
|
|
@@ -929,52 +1258,53 @@ export declare const PaginatedAgentClientLinkResponseSchema: z.ZodObject<{
|
|
|
929
1258
|
lastName: string;
|
|
930
1259
|
}[] | undefined;
|
|
931
1260
|
};
|
|
932
|
-
|
|
933
|
-
|
|
1261
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
1262
|
+
creator: {
|
|
934
1263
|
id: string;
|
|
935
|
-
|
|
1264
|
+
firstName: string;
|
|
1265
|
+
lastName: string;
|
|
1266
|
+
email: string;
|
|
936
1267
|
createdAt: string | Date;
|
|
937
1268
|
updatedAt: string | Date;
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
1269
|
+
phoneNumbers?: {
|
|
1270
|
+
id: string;
|
|
1271
|
+
phoneNumber: string;
|
|
1272
|
+
description?: string | null | undefined;
|
|
1273
|
+
isPrimary?: boolean | undefined;
|
|
1274
|
+
}[] | undefined;
|
|
1275
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1276
|
+
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;
|
|
1277
|
+
canImpersonateUsers?: {
|
|
945
1278
|
id: string;
|
|
946
1279
|
firstName: string;
|
|
947
1280
|
lastName: string;
|
|
948
|
-
} |
|
|
949
|
-
agentClientLinks?: {
|
|
950
|
-
agentId: string;
|
|
951
|
-
} | null | undefined;
|
|
1281
|
+
}[] | undefined;
|
|
952
1282
|
};
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
1283
|
+
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
1284
|
+
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1285
|
+
reviewedBy?: string | null | undefined;
|
|
1286
|
+
reviewer?: {
|
|
957
1287
|
id: string;
|
|
958
|
-
createdAt: string | Date;
|
|
959
|
-
updatedAt: string | Date;
|
|
960
1288
|
firstName: string;
|
|
961
1289
|
lastName: string;
|
|
962
|
-
|
|
1290
|
+
email: string;
|
|
1291
|
+
createdAt: string | Date;
|
|
1292
|
+
updatedAt: string | Date;
|
|
963
1293
|
phoneNumbers?: {
|
|
964
1294
|
id: string;
|
|
965
1295
|
phoneNumber: string;
|
|
966
1296
|
description?: string | null | undefined;
|
|
967
1297
|
isPrimary?: boolean | undefined;
|
|
968
1298
|
}[] | undefined;
|
|
1299
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
969
1300
|
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;
|
|
970
1301
|
canImpersonateUsers?: {
|
|
971
1302
|
id: string;
|
|
972
1303
|
firstName: string;
|
|
973
1304
|
lastName: string;
|
|
974
1305
|
}[] | undefined;
|
|
975
|
-
};
|
|
976
|
-
|
|
977
|
-
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1306
|
+
} | null | undefined;
|
|
1307
|
+
reviewedAt?: string | Date | null | undefined;
|
|
978
1308
|
}[];
|
|
979
1309
|
totalCount: number;
|
|
980
1310
|
skip: number;
|
|
@@ -989,6 +1319,9 @@ export type ApplyChanges = z.infer<typeof ApplyChangesSchema>;
|
|
|
989
1319
|
export type PaginatedAgentClientLinkResponse = z.infer<typeof PaginatedAgentClientLinkResponseSchema>;
|
|
990
1320
|
export declare const agentClientLinksContract: {
|
|
991
1321
|
findAll: {
|
|
1322
|
+
metadata: {
|
|
1323
|
+
tags: string[];
|
|
1324
|
+
};
|
|
992
1325
|
query: z.ZodObject<{
|
|
993
1326
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
994
1327
|
page: z.ZodDefault<z.ZodNumber>;
|
|
@@ -996,28 +1329,28 @@ export declare const agentClientLinksContract: {
|
|
|
996
1329
|
clientId: z.ZodOptional<z.ZodString>;
|
|
997
1330
|
agentId: z.ZodOptional<z.ZodString>;
|
|
998
1331
|
linkType: z.ZodOptional<z.ZodEnum<["CREATION", "EDIT_SUGGESTION"]>>;
|
|
1332
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>>;
|
|
999
1333
|
sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["createdAt"]>>>;
|
|
1000
1334
|
sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
1001
1335
|
}, "strip", z.ZodTypeAny, {
|
|
1336
|
+
limit: number;
|
|
1337
|
+
page: number;
|
|
1002
1338
|
sortBy: "createdAt";
|
|
1003
1339
|
sortOrder: "ASC" | "DESC";
|
|
1004
|
-
|
|
1005
|
-
limit: number;
|
|
1340
|
+
status?: "APPROVED" | "REJECTED" | "PENDING_REVIEW" | undefined;
|
|
1006
1341
|
agentId?: string | undefined;
|
|
1007
1342
|
clientId?: string | undefined;
|
|
1008
1343
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
1009
1344
|
}, {
|
|
1345
|
+
status?: "APPROVED" | "REJECTED" | "PENDING_REVIEW" | undefined;
|
|
1346
|
+
agentId?: string | undefined;
|
|
1347
|
+
limit?: number | undefined;
|
|
1348
|
+
page?: number | undefined;
|
|
1010
1349
|
sortBy?: "createdAt" | undefined;
|
|
1011
1350
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1012
|
-
page?: number | undefined;
|
|
1013
|
-
limit?: number | undefined;
|
|
1014
|
-
agentId?: string | undefined;
|
|
1015
1351
|
clientId?: string | undefined;
|
|
1016
1352
|
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
1017
1353
|
}>;
|
|
1018
|
-
metadata: {
|
|
1019
|
-
tags: string[];
|
|
1020
|
-
};
|
|
1021
1354
|
summary: "Get all agent-client links";
|
|
1022
1355
|
method: "GET";
|
|
1023
1356
|
path: "/v2/agent-client-links";
|
|
@@ -1130,7 +1463,7 @@ export declare const agentClientLinksContract: {
|
|
|
1130
1463
|
id: z.ZodString;
|
|
1131
1464
|
name: z.ZodString;
|
|
1132
1465
|
crn: z.ZodNullable<z.ZodString>;
|
|
1133
|
-
govLink: z.ZodString
|
|
1466
|
+
govLink: z.ZodNullable<z.ZodString>;
|
|
1134
1467
|
soleTrader: z.ZodBoolean;
|
|
1135
1468
|
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
1136
1469
|
director: z.ZodString;
|
|
@@ -1141,15 +1474,15 @@ export declare const agentClientLinksContract: {
|
|
|
1141
1474
|
lastName: z.ZodString;
|
|
1142
1475
|
email: z.ZodString;
|
|
1143
1476
|
}, "strip", z.ZodTypeAny, {
|
|
1144
|
-
email: string;
|
|
1145
1477
|
id: string;
|
|
1146
1478
|
firstName: string;
|
|
1147
1479
|
lastName: string;
|
|
1148
|
-
}, {
|
|
1149
1480
|
email: string;
|
|
1481
|
+
}, {
|
|
1150
1482
|
id: string;
|
|
1151
1483
|
firstName: string;
|
|
1152
1484
|
lastName: string;
|
|
1485
|
+
email: string;
|
|
1153
1486
|
}>>>;
|
|
1154
1487
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1155
1488
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -1161,41 +1494,41 @@ export declare const agentClientLinksContract: {
|
|
|
1161
1494
|
agentId: string;
|
|
1162
1495
|
}>>>;
|
|
1163
1496
|
}, "strip", z.ZodTypeAny, {
|
|
1164
|
-
name: string;
|
|
1165
1497
|
id: string;
|
|
1166
|
-
status: "
|
|
1167
|
-
|
|
1168
|
-
updatedAt: string;
|
|
1498
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1499
|
+
name: string;
|
|
1169
1500
|
crn: string | null;
|
|
1170
|
-
govLink: string;
|
|
1501
|
+
govLink: string | null;
|
|
1171
1502
|
soleTrader: boolean;
|
|
1172
1503
|
director: string;
|
|
1504
|
+
createdAt: string;
|
|
1505
|
+
updatedAt: string;
|
|
1173
1506
|
blacklistReason?: string | null | undefined;
|
|
1174
1507
|
lastUpdatedBy?: {
|
|
1175
|
-
email: string;
|
|
1176
1508
|
id: string;
|
|
1177
1509
|
firstName: string;
|
|
1178
1510
|
lastName: string;
|
|
1511
|
+
email: string;
|
|
1179
1512
|
} | null | undefined;
|
|
1180
1513
|
agentClientLinks?: {
|
|
1181
1514
|
agentId: string;
|
|
1182
1515
|
} | null | undefined;
|
|
1183
1516
|
}, {
|
|
1184
|
-
name: string;
|
|
1185
1517
|
id: string;
|
|
1186
|
-
status: "
|
|
1187
|
-
|
|
1188
|
-
updatedAt: string | Date;
|
|
1518
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1519
|
+
name: string;
|
|
1189
1520
|
crn: string | null;
|
|
1190
|
-
govLink: string;
|
|
1521
|
+
govLink: string | null;
|
|
1191
1522
|
soleTrader: boolean;
|
|
1192
1523
|
director: string;
|
|
1524
|
+
createdAt: string | Date;
|
|
1525
|
+
updatedAt: string | Date;
|
|
1193
1526
|
blacklistReason?: string | null | undefined;
|
|
1194
1527
|
lastUpdatedBy?: {
|
|
1195
|
-
email: string;
|
|
1196
1528
|
id: string;
|
|
1197
1529
|
firstName: string;
|
|
1198
1530
|
lastName: string;
|
|
1531
|
+
email: string;
|
|
1199
1532
|
} | null | undefined;
|
|
1200
1533
|
agentClientLinks?: {
|
|
1201
1534
|
agentId: string;
|
|
@@ -1241,12 +1574,12 @@ export declare const agentClientLinksContract: {
|
|
|
1241
1574
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1242
1575
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1243
1576
|
}, "strip", z.ZodTypeAny, {
|
|
1244
|
-
email: string;
|
|
1245
1577
|
id: string;
|
|
1246
|
-
createdAt: string;
|
|
1247
|
-
updatedAt: string;
|
|
1248
1578
|
firstName: string;
|
|
1249
1579
|
lastName: string;
|
|
1580
|
+
email: string;
|
|
1581
|
+
createdAt: string;
|
|
1582
|
+
updatedAt: string;
|
|
1250
1583
|
phoneNumbers: {
|
|
1251
1584
|
id: string;
|
|
1252
1585
|
phoneNumber: string;
|
|
@@ -1261,19 +1594,19 @@ export declare const agentClientLinksContract: {
|
|
|
1261
1594
|
lastName: string;
|
|
1262
1595
|
}[] | undefined;
|
|
1263
1596
|
}, {
|
|
1264
|
-
email: string;
|
|
1265
1597
|
id: string;
|
|
1266
|
-
createdAt: string | Date;
|
|
1267
|
-
updatedAt: string | Date;
|
|
1268
1598
|
firstName: string;
|
|
1269
1599
|
lastName: string;
|
|
1270
|
-
|
|
1600
|
+
email: string;
|
|
1601
|
+
createdAt: string | Date;
|
|
1602
|
+
updatedAt: string | Date;
|
|
1271
1603
|
phoneNumbers?: {
|
|
1272
1604
|
id: string;
|
|
1273
1605
|
phoneNumber: string;
|
|
1274
1606
|
description?: string | null | undefined;
|
|
1275
1607
|
isPrimary?: boolean | undefined;
|
|
1276
1608
|
}[] | undefined;
|
|
1609
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1277
1610
|
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;
|
|
1278
1611
|
canImpersonateUsers?: {
|
|
1279
1612
|
id: string;
|
|
@@ -1284,8 +1617,9 @@ export declare const agentClientLinksContract: {
|
|
|
1284
1617
|
linkType: z.ZodEnum<["CREATION", "EDIT_SUGGESTION"]>;
|
|
1285
1618
|
suggestedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1286
1619
|
appliedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1287
|
-
|
|
1288
|
-
|
|
1620
|
+
status: z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>;
|
|
1621
|
+
reviewedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1622
|
+
reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1289
1623
|
id: z.ZodString;
|
|
1290
1624
|
firstName: z.ZodString;
|
|
1291
1625
|
lastName: z.ZodString;
|
|
@@ -1324,12 +1658,12 @@ export declare const agentClientLinksContract: {
|
|
|
1324
1658
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1325
1659
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1326
1660
|
}, "strip", z.ZodTypeAny, {
|
|
1327
|
-
email: string;
|
|
1328
1661
|
id: string;
|
|
1329
|
-
createdAt: string;
|
|
1330
|
-
updatedAt: string;
|
|
1331
1662
|
firstName: string;
|
|
1332
1663
|
lastName: string;
|
|
1664
|
+
email: string;
|
|
1665
|
+
createdAt: string;
|
|
1666
|
+
updatedAt: string;
|
|
1333
1667
|
phoneNumbers: {
|
|
1334
1668
|
id: string;
|
|
1335
1669
|
phoneNumber: string;
|
|
@@ -1344,85 +1678,73 @@ export declare const agentClientLinksContract: {
|
|
|
1344
1678
|
lastName: string;
|
|
1345
1679
|
}[] | undefined;
|
|
1346
1680
|
}, {
|
|
1347
|
-
email: string;
|
|
1348
1681
|
id: string;
|
|
1349
|
-
createdAt: string | Date;
|
|
1350
|
-
updatedAt: string | Date;
|
|
1351
1682
|
firstName: string;
|
|
1352
1683
|
lastName: string;
|
|
1353
|
-
|
|
1684
|
+
email: string;
|
|
1685
|
+
createdAt: string | Date;
|
|
1686
|
+
updatedAt: string | Date;
|
|
1354
1687
|
phoneNumbers?: {
|
|
1355
1688
|
id: string;
|
|
1356
1689
|
phoneNumber: string;
|
|
1357
1690
|
description?: string | null | undefined;
|
|
1358
1691
|
isPrimary?: boolean | undefined;
|
|
1359
1692
|
}[] | undefined;
|
|
1693
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1360
1694
|
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;
|
|
1361
1695
|
canImpersonateUsers?: {
|
|
1362
1696
|
id: string;
|
|
1363
1697
|
firstName: string;
|
|
1364
1698
|
lastName: string;
|
|
1365
1699
|
}[] | undefined;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
firstName: string;
|
|
1381
|
-
lastName: string;
|
|
1382
|
-
phoneNumbers: {
|
|
1700
|
+
}>>>;
|
|
1701
|
+
reviewedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
1702
|
+
createdBy: z.ZodString;
|
|
1703
|
+
creator: z.ZodObject<{
|
|
1704
|
+
id: z.ZodString;
|
|
1705
|
+
firstName: z.ZodString;
|
|
1706
|
+
lastName: z.ZodString;
|
|
1707
|
+
email: z.ZodString;
|
|
1708
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1709
|
+
id: z.ZodString;
|
|
1710
|
+
phoneNumber: z.ZodString;
|
|
1711
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1712
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
1713
|
+
}, "strip", z.ZodTypeAny, {
|
|
1383
1714
|
id: string;
|
|
1384
1715
|
phoneNumber: string;
|
|
1385
1716
|
isPrimary: boolean;
|
|
1386
1717
|
description?: string | null | undefined;
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1718
|
+
}, {
|
|
1719
|
+
id: string;
|
|
1720
|
+
phoneNumber: string;
|
|
1721
|
+
description?: string | null | undefined;
|
|
1722
|
+
isPrimary?: boolean | undefined;
|
|
1723
|
+
}>, "many">>>;
|
|
1724
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
1725
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
|
|
1726
|
+
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1727
|
+
id: z.ZodString;
|
|
1728
|
+
firstName: z.ZodString;
|
|
1729
|
+
lastName: z.ZodString;
|
|
1730
|
+
}, "strip", z.ZodTypeAny, {
|
|
1391
1731
|
id: string;
|
|
1392
1732
|
firstName: string;
|
|
1393
1733
|
lastName: string;
|
|
1394
|
-
}
|
|
1395
|
-
};
|
|
1396
|
-
client: {
|
|
1397
|
-
name: string;
|
|
1398
|
-
id: string;
|
|
1399
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
1400
|
-
createdAt: string;
|
|
1401
|
-
updatedAt: string;
|
|
1402
|
-
crn: string | null;
|
|
1403
|
-
govLink: string;
|
|
1404
|
-
soleTrader: boolean;
|
|
1405
|
-
director: string;
|
|
1406
|
-
blacklistReason?: string | null | undefined;
|
|
1407
|
-
lastUpdatedBy?: {
|
|
1408
|
-
email: string;
|
|
1734
|
+
}, {
|
|
1409
1735
|
id: string;
|
|
1410
1736
|
firstName: string;
|
|
1411
1737
|
lastName: string;
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
};
|
|
1417
|
-
clientId: string;
|
|
1418
|
-
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
1419
|
-
creator: {
|
|
1420
|
-
email: string;
|
|
1738
|
+
}>, "many">>;
|
|
1739
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1740
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1741
|
+
}, "strip", z.ZodTypeAny, {
|
|
1421
1742
|
id: string;
|
|
1422
|
-
createdAt: string;
|
|
1423
|
-
updatedAt: string;
|
|
1424
1743
|
firstName: string;
|
|
1425
1744
|
lastName: string;
|
|
1745
|
+
email: string;
|
|
1746
|
+
createdAt: string;
|
|
1747
|
+
updatedAt: string;
|
|
1426
1748
|
phoneNumbers: {
|
|
1427
1749
|
id: string;
|
|
1428
1750
|
phoneNumber: string;
|
|
@@ -1436,73 +1758,94 @@ export declare const agentClientLinksContract: {
|
|
|
1436
1758
|
firstName: string;
|
|
1437
1759
|
lastName: string;
|
|
1438
1760
|
}[] | undefined;
|
|
1439
|
-
}
|
|
1440
|
-
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
1441
|
-
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1442
|
-
}, {
|
|
1443
|
-
createdBy: string;
|
|
1444
|
-
id: string;
|
|
1445
|
-
agentId: string;
|
|
1446
|
-
createdAt: string | Date;
|
|
1447
|
-
updatedAt: string | Date;
|
|
1448
|
-
agent: {
|
|
1449
|
-
email: string;
|
|
1761
|
+
}, {
|
|
1450
1762
|
id: string;
|
|
1451
|
-
createdAt: string | Date;
|
|
1452
|
-
updatedAt: string | Date;
|
|
1453
1763
|
firstName: string;
|
|
1454
1764
|
lastName: string;
|
|
1455
|
-
|
|
1765
|
+
email: string;
|
|
1766
|
+
createdAt: string | Date;
|
|
1767
|
+
updatedAt: string | Date;
|
|
1456
1768
|
phoneNumbers?: {
|
|
1457
1769
|
id: string;
|
|
1458
1770
|
phoneNumber: string;
|
|
1459
1771
|
description?: string | null | undefined;
|
|
1460
1772
|
isPrimary?: boolean | undefined;
|
|
1461
1773
|
}[] | undefined;
|
|
1774
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1462
1775
|
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;
|
|
1463
1776
|
canImpersonateUsers?: {
|
|
1464
1777
|
id: string;
|
|
1465
1778
|
firstName: string;
|
|
1466
1779
|
lastName: string;
|
|
1467
1780
|
}[] | undefined;
|
|
1468
|
-
}
|
|
1781
|
+
}>;
|
|
1782
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1783
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1784
|
+
}, "strip", z.ZodTypeAny, {
|
|
1785
|
+
id: string;
|
|
1786
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
1787
|
+
createdAt: string;
|
|
1788
|
+
updatedAt: string;
|
|
1789
|
+
agentId: string;
|
|
1790
|
+
clientId: string;
|
|
1469
1791
|
client: {
|
|
1470
|
-
name: string;
|
|
1471
1792
|
id: string;
|
|
1472
|
-
status: "
|
|
1473
|
-
|
|
1474
|
-
updatedAt: string | Date;
|
|
1793
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1794
|
+
name: string;
|
|
1475
1795
|
crn: string | null;
|
|
1476
|
-
govLink: string;
|
|
1796
|
+
govLink: string | null;
|
|
1477
1797
|
soleTrader: boolean;
|
|
1478
1798
|
director: string;
|
|
1799
|
+
createdAt: string;
|
|
1800
|
+
updatedAt: string;
|
|
1479
1801
|
blacklistReason?: string | null | undefined;
|
|
1480
1802
|
lastUpdatedBy?: {
|
|
1481
|
-
email: string;
|
|
1482
1803
|
id: string;
|
|
1483
1804
|
firstName: string;
|
|
1484
1805
|
lastName: string;
|
|
1806
|
+
email: string;
|
|
1485
1807
|
} | null | undefined;
|
|
1486
1808
|
agentClientLinks?: {
|
|
1487
1809
|
agentId: string;
|
|
1488
1810
|
} | null | undefined;
|
|
1489
1811
|
};
|
|
1490
|
-
|
|
1812
|
+
createdBy: string;
|
|
1813
|
+
agent: {
|
|
1814
|
+
id: string;
|
|
1815
|
+
firstName: string;
|
|
1816
|
+
lastName: string;
|
|
1817
|
+
email: string;
|
|
1818
|
+
createdAt: string;
|
|
1819
|
+
updatedAt: string;
|
|
1820
|
+
phoneNumbers: {
|
|
1821
|
+
id: string;
|
|
1822
|
+
phoneNumber: string;
|
|
1823
|
+
isPrimary: boolean;
|
|
1824
|
+
description?: string | null | undefined;
|
|
1825
|
+
}[];
|
|
1826
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1827
|
+
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;
|
|
1828
|
+
canImpersonateUsers?: {
|
|
1829
|
+
id: string;
|
|
1830
|
+
firstName: string;
|
|
1831
|
+
lastName: string;
|
|
1832
|
+
}[] | undefined;
|
|
1833
|
+
};
|
|
1491
1834
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
1492
1835
|
creator: {
|
|
1493
|
-
email: string;
|
|
1494
1836
|
id: string;
|
|
1495
|
-
createdAt: string | Date;
|
|
1496
|
-
updatedAt: string | Date;
|
|
1497
1837
|
firstName: string;
|
|
1498
1838
|
lastName: string;
|
|
1499
|
-
|
|
1500
|
-
|
|
1839
|
+
email: string;
|
|
1840
|
+
createdAt: string;
|
|
1841
|
+
updatedAt: string;
|
|
1842
|
+
phoneNumbers: {
|
|
1501
1843
|
id: string;
|
|
1502
1844
|
phoneNumber: string;
|
|
1845
|
+
isPrimary: boolean;
|
|
1503
1846
|
description?: string | null | undefined;
|
|
1504
|
-
|
|
1505
|
-
|
|
1847
|
+
}[];
|
|
1848
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1506
1849
|
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;
|
|
1507
1850
|
canImpersonateUsers?: {
|
|
1508
1851
|
id: string;
|
|
@@ -1512,27 +1855,14 @@ export declare const agentClientLinksContract: {
|
|
|
1512
1855
|
};
|
|
1513
1856
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
1514
1857
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
limit: z.ZodNumber;
|
|
1518
|
-
skip: z.ZodNumber;
|
|
1519
|
-
currentPage: z.ZodNumber;
|
|
1520
|
-
totalPages: z.ZodNumber;
|
|
1521
|
-
}, "strip", z.ZodTypeAny, {
|
|
1522
|
-
limit: number;
|
|
1523
|
-
items: {
|
|
1524
|
-
createdBy: string;
|
|
1525
|
-
id: string;
|
|
1526
|
-
agentId: string;
|
|
1527
|
-
createdAt: string;
|
|
1528
|
-
updatedAt: string;
|
|
1529
|
-
agent: {
|
|
1530
|
-
email: string;
|
|
1858
|
+
reviewedBy?: string | null | undefined;
|
|
1859
|
+
reviewer?: {
|
|
1531
1860
|
id: string;
|
|
1532
|
-
createdAt: string;
|
|
1533
|
-
updatedAt: string;
|
|
1534
1861
|
firstName: string;
|
|
1535
1862
|
lastName: string;
|
|
1863
|
+
email: string;
|
|
1864
|
+
createdAt: string;
|
|
1865
|
+
updatedAt: string;
|
|
1536
1866
|
phoneNumbers: {
|
|
1537
1867
|
id: string;
|
|
1538
1868
|
phoneNumber: string;
|
|
@@ -1546,142 +1876,985 @@ export declare const agentClientLinksContract: {
|
|
|
1546
1876
|
firstName: string;
|
|
1547
1877
|
lastName: string;
|
|
1548
1878
|
}[] | undefined;
|
|
1549
|
-
};
|
|
1879
|
+
} | null | undefined;
|
|
1880
|
+
reviewedAt?: string | null | undefined;
|
|
1881
|
+
}, {
|
|
1882
|
+
id: string;
|
|
1883
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
1884
|
+
createdAt: string | Date;
|
|
1885
|
+
updatedAt: string | Date;
|
|
1886
|
+
agentId: string;
|
|
1887
|
+
clientId: string;
|
|
1550
1888
|
client: {
|
|
1551
|
-
name: string;
|
|
1552
1889
|
id: string;
|
|
1553
|
-
status: "
|
|
1554
|
-
|
|
1555
|
-
updatedAt: string;
|
|
1890
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1891
|
+
name: string;
|
|
1556
1892
|
crn: string | null;
|
|
1557
|
-
govLink: string;
|
|
1893
|
+
govLink: string | null;
|
|
1558
1894
|
soleTrader: boolean;
|
|
1559
1895
|
director: string;
|
|
1896
|
+
createdAt: string | Date;
|
|
1897
|
+
updatedAt: string | Date;
|
|
1560
1898
|
blacklistReason?: string | null | undefined;
|
|
1561
1899
|
lastUpdatedBy?: {
|
|
1562
|
-
email: string;
|
|
1563
1900
|
id: string;
|
|
1564
1901
|
firstName: string;
|
|
1565
1902
|
lastName: string;
|
|
1903
|
+
email: string;
|
|
1566
1904
|
} | null | undefined;
|
|
1567
1905
|
agentClientLinks?: {
|
|
1568
1906
|
agentId: string;
|
|
1569
1907
|
} | null | undefined;
|
|
1570
1908
|
};
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1909
|
+
createdBy: string;
|
|
1910
|
+
agent: {
|
|
1911
|
+
id: string;
|
|
1912
|
+
firstName: string;
|
|
1913
|
+
lastName: string;
|
|
1914
|
+
email: string;
|
|
1915
|
+
createdAt: string | Date;
|
|
1916
|
+
updatedAt: string | Date;
|
|
1917
|
+
phoneNumbers?: {
|
|
1918
|
+
id: string;
|
|
1919
|
+
phoneNumber: string;
|
|
1920
|
+
description?: string | null | undefined;
|
|
1921
|
+
isPrimary?: boolean | undefined;
|
|
1922
|
+
}[] | undefined;
|
|
1923
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1924
|
+
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;
|
|
1925
|
+
canImpersonateUsers?: {
|
|
1926
|
+
id: string;
|
|
1927
|
+
firstName: string;
|
|
1928
|
+
lastName: string;
|
|
1929
|
+
}[] | undefined;
|
|
1930
|
+
};
|
|
1931
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
1932
|
+
creator: {
|
|
1933
|
+
id: string;
|
|
1934
|
+
firstName: string;
|
|
1935
|
+
lastName: string;
|
|
1936
|
+
email: string;
|
|
1937
|
+
createdAt: string | Date;
|
|
1938
|
+
updatedAt: string | Date;
|
|
1939
|
+
phoneNumbers?: {
|
|
1940
|
+
id: string;
|
|
1941
|
+
phoneNumber: string;
|
|
1942
|
+
description?: string | null | undefined;
|
|
1943
|
+
isPrimary?: boolean | undefined;
|
|
1944
|
+
}[] | undefined;
|
|
1945
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1946
|
+
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;
|
|
1947
|
+
canImpersonateUsers?: {
|
|
1948
|
+
id: string;
|
|
1949
|
+
firstName: string;
|
|
1950
|
+
lastName: string;
|
|
1951
|
+
}[] | undefined;
|
|
1952
|
+
};
|
|
1953
|
+
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
1954
|
+
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1955
|
+
reviewedBy?: string | null | undefined;
|
|
1956
|
+
reviewer?: {
|
|
1957
|
+
id: string;
|
|
1958
|
+
firstName: string;
|
|
1959
|
+
lastName: string;
|
|
1960
|
+
email: string;
|
|
1961
|
+
createdAt: string | Date;
|
|
1962
|
+
updatedAt: string | Date;
|
|
1963
|
+
phoneNumbers?: {
|
|
1964
|
+
id: string;
|
|
1965
|
+
phoneNumber: string;
|
|
1966
|
+
description?: string | null | undefined;
|
|
1967
|
+
isPrimary?: boolean | undefined;
|
|
1968
|
+
}[] | undefined;
|
|
1969
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1970
|
+
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;
|
|
1971
|
+
canImpersonateUsers?: {
|
|
1972
|
+
id: string;
|
|
1973
|
+
firstName: string;
|
|
1974
|
+
lastName: string;
|
|
1975
|
+
}[] | undefined;
|
|
1976
|
+
} | null | undefined;
|
|
1977
|
+
reviewedAt?: string | Date | null | undefined;
|
|
1978
|
+
}>, "many">;
|
|
1979
|
+
totalCount: z.ZodNumber;
|
|
1980
|
+
limit: z.ZodNumber;
|
|
1981
|
+
skip: z.ZodNumber;
|
|
1982
|
+
currentPage: z.ZodNumber;
|
|
1983
|
+
totalPages: z.ZodNumber;
|
|
1984
|
+
}, "strip", z.ZodTypeAny, {
|
|
1985
|
+
limit: number;
|
|
1986
|
+
items: {
|
|
1987
|
+
id: string;
|
|
1988
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
1989
|
+
createdAt: string;
|
|
1990
|
+
updatedAt: string;
|
|
1991
|
+
agentId: string;
|
|
1992
|
+
clientId: string;
|
|
1993
|
+
client: {
|
|
1994
|
+
id: string;
|
|
1995
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1996
|
+
name: string;
|
|
1997
|
+
crn: string | null;
|
|
1998
|
+
govLink: string | null;
|
|
1999
|
+
soleTrader: boolean;
|
|
2000
|
+
director: string;
|
|
2001
|
+
createdAt: string;
|
|
2002
|
+
updatedAt: string;
|
|
2003
|
+
blacklistReason?: string | null | undefined;
|
|
2004
|
+
lastUpdatedBy?: {
|
|
2005
|
+
id: string;
|
|
2006
|
+
firstName: string;
|
|
2007
|
+
lastName: string;
|
|
2008
|
+
email: string;
|
|
2009
|
+
} | null | undefined;
|
|
2010
|
+
agentClientLinks?: {
|
|
2011
|
+
agentId: string;
|
|
2012
|
+
} | null | undefined;
|
|
2013
|
+
};
|
|
2014
|
+
createdBy: string;
|
|
2015
|
+
agent: {
|
|
2016
|
+
id: string;
|
|
2017
|
+
firstName: string;
|
|
2018
|
+
lastName: string;
|
|
2019
|
+
email: string;
|
|
2020
|
+
createdAt: string;
|
|
2021
|
+
updatedAt: string;
|
|
2022
|
+
phoneNumbers: {
|
|
2023
|
+
id: string;
|
|
2024
|
+
phoneNumber: string;
|
|
2025
|
+
isPrimary: boolean;
|
|
2026
|
+
description?: string | null | undefined;
|
|
2027
|
+
}[];
|
|
2028
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2029
|
+
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;
|
|
2030
|
+
canImpersonateUsers?: {
|
|
2031
|
+
id: string;
|
|
2032
|
+
firstName: string;
|
|
2033
|
+
lastName: string;
|
|
2034
|
+
}[] | undefined;
|
|
2035
|
+
};
|
|
2036
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
2037
|
+
creator: {
|
|
2038
|
+
id: string;
|
|
2039
|
+
firstName: string;
|
|
2040
|
+
lastName: string;
|
|
2041
|
+
email: string;
|
|
2042
|
+
createdAt: string;
|
|
2043
|
+
updatedAt: string;
|
|
2044
|
+
phoneNumbers: {
|
|
2045
|
+
id: string;
|
|
2046
|
+
phoneNumber: string;
|
|
2047
|
+
isPrimary: boolean;
|
|
2048
|
+
description?: string | null | undefined;
|
|
2049
|
+
}[];
|
|
2050
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2051
|
+
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;
|
|
2052
|
+
canImpersonateUsers?: {
|
|
2053
|
+
id: string;
|
|
2054
|
+
firstName: string;
|
|
2055
|
+
lastName: string;
|
|
2056
|
+
}[] | undefined;
|
|
2057
|
+
};
|
|
2058
|
+
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
2059
|
+
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
2060
|
+
reviewedBy?: string | null | undefined;
|
|
2061
|
+
reviewer?: {
|
|
2062
|
+
id: string;
|
|
2063
|
+
firstName: string;
|
|
2064
|
+
lastName: string;
|
|
2065
|
+
email: string;
|
|
2066
|
+
createdAt: string;
|
|
2067
|
+
updatedAt: string;
|
|
2068
|
+
phoneNumbers: {
|
|
2069
|
+
id: string;
|
|
2070
|
+
phoneNumber: string;
|
|
2071
|
+
isPrimary: boolean;
|
|
2072
|
+
description?: string | null | undefined;
|
|
2073
|
+
}[];
|
|
2074
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2075
|
+
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;
|
|
2076
|
+
canImpersonateUsers?: {
|
|
2077
|
+
id: string;
|
|
2078
|
+
firstName: string;
|
|
2079
|
+
lastName: string;
|
|
2080
|
+
}[] | undefined;
|
|
2081
|
+
} | null | undefined;
|
|
2082
|
+
reviewedAt?: string | null | undefined;
|
|
2083
|
+
}[];
|
|
2084
|
+
totalCount: number;
|
|
2085
|
+
skip: number;
|
|
2086
|
+
currentPage: number;
|
|
2087
|
+
totalPages: number;
|
|
2088
|
+
}, {
|
|
2089
|
+
limit: number;
|
|
2090
|
+
items: {
|
|
2091
|
+
id: string;
|
|
2092
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
2093
|
+
createdAt: string | Date;
|
|
2094
|
+
updatedAt: string | Date;
|
|
2095
|
+
agentId: string;
|
|
2096
|
+
clientId: string;
|
|
2097
|
+
client: {
|
|
2098
|
+
id: string;
|
|
2099
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
2100
|
+
name: string;
|
|
2101
|
+
crn: string | null;
|
|
2102
|
+
govLink: string | null;
|
|
2103
|
+
soleTrader: boolean;
|
|
2104
|
+
director: string;
|
|
2105
|
+
createdAt: string | Date;
|
|
2106
|
+
updatedAt: string | Date;
|
|
2107
|
+
blacklistReason?: string | null | undefined;
|
|
2108
|
+
lastUpdatedBy?: {
|
|
2109
|
+
id: string;
|
|
2110
|
+
firstName: string;
|
|
2111
|
+
lastName: string;
|
|
2112
|
+
email: string;
|
|
2113
|
+
} | null | undefined;
|
|
2114
|
+
agentClientLinks?: {
|
|
2115
|
+
agentId: string;
|
|
2116
|
+
} | null | undefined;
|
|
2117
|
+
};
|
|
2118
|
+
createdBy: string;
|
|
2119
|
+
agent: {
|
|
2120
|
+
id: string;
|
|
2121
|
+
firstName: string;
|
|
2122
|
+
lastName: string;
|
|
2123
|
+
email: string;
|
|
2124
|
+
createdAt: string | Date;
|
|
2125
|
+
updatedAt: string | Date;
|
|
2126
|
+
phoneNumbers?: {
|
|
2127
|
+
id: string;
|
|
2128
|
+
phoneNumber: string;
|
|
2129
|
+
description?: string | null | undefined;
|
|
2130
|
+
isPrimary?: boolean | undefined;
|
|
2131
|
+
}[] | undefined;
|
|
2132
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2133
|
+
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;
|
|
2134
|
+
canImpersonateUsers?: {
|
|
2135
|
+
id: string;
|
|
2136
|
+
firstName: string;
|
|
2137
|
+
lastName: string;
|
|
2138
|
+
}[] | undefined;
|
|
2139
|
+
};
|
|
2140
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
2141
|
+
creator: {
|
|
2142
|
+
id: string;
|
|
2143
|
+
firstName: string;
|
|
2144
|
+
lastName: string;
|
|
2145
|
+
email: string;
|
|
2146
|
+
createdAt: string | Date;
|
|
2147
|
+
updatedAt: string | Date;
|
|
2148
|
+
phoneNumbers?: {
|
|
2149
|
+
id: string;
|
|
2150
|
+
phoneNumber: string;
|
|
2151
|
+
description?: string | null | undefined;
|
|
2152
|
+
isPrimary?: boolean | undefined;
|
|
2153
|
+
}[] | undefined;
|
|
2154
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2155
|
+
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;
|
|
2156
|
+
canImpersonateUsers?: {
|
|
2157
|
+
id: string;
|
|
2158
|
+
firstName: string;
|
|
2159
|
+
lastName: string;
|
|
2160
|
+
}[] | undefined;
|
|
2161
|
+
};
|
|
2162
|
+
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
2163
|
+
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
2164
|
+
reviewedBy?: string | null | undefined;
|
|
2165
|
+
reviewer?: {
|
|
2166
|
+
id: string;
|
|
2167
|
+
firstName: string;
|
|
2168
|
+
lastName: string;
|
|
2169
|
+
email: string;
|
|
2170
|
+
createdAt: string | Date;
|
|
2171
|
+
updatedAt: string | Date;
|
|
2172
|
+
phoneNumbers?: {
|
|
2173
|
+
id: string;
|
|
2174
|
+
phoneNumber: string;
|
|
2175
|
+
description?: string | null | undefined;
|
|
2176
|
+
isPrimary?: boolean | undefined;
|
|
2177
|
+
}[] | undefined;
|
|
2178
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2179
|
+
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;
|
|
2180
|
+
canImpersonateUsers?: {
|
|
2181
|
+
id: string;
|
|
2182
|
+
firstName: string;
|
|
2183
|
+
lastName: string;
|
|
2184
|
+
}[] | undefined;
|
|
2185
|
+
} | null | undefined;
|
|
2186
|
+
reviewedAt?: string | Date | null | undefined;
|
|
2187
|
+
}[];
|
|
2188
|
+
totalCount: number;
|
|
2189
|
+
skip: number;
|
|
2190
|
+
currentPage: number;
|
|
2191
|
+
totalPages: number;
|
|
2192
|
+
}>;
|
|
2193
|
+
};
|
|
2194
|
+
};
|
|
2195
|
+
findOne: {
|
|
2196
|
+
metadata: {
|
|
2197
|
+
tags: string[];
|
|
2198
|
+
};
|
|
2199
|
+
pathParams: z.ZodObject<{
|
|
2200
|
+
id: z.ZodString;
|
|
2201
|
+
}, "strip", z.ZodTypeAny, {
|
|
2202
|
+
id: string;
|
|
2203
|
+
}, {
|
|
2204
|
+
id: string;
|
|
2205
|
+
}>;
|
|
2206
|
+
summary: "Get an agent-client link by ID";
|
|
2207
|
+
method: "GET";
|
|
2208
|
+
path: "/v2/agent-client-links/:id";
|
|
2209
|
+
responses: {
|
|
2210
|
+
400: z.ZodObject<{
|
|
2211
|
+
statusCode: z.ZodNumber;
|
|
2212
|
+
message: z.ZodString;
|
|
2213
|
+
code: z.ZodString;
|
|
2214
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
2215
|
+
timestamp: z.ZodString;
|
|
2216
|
+
path: z.ZodString;
|
|
2217
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2218
|
+
}, "strip", z.ZodTypeAny, {
|
|
2219
|
+
code: string;
|
|
2220
|
+
path: string;
|
|
2221
|
+
message: string;
|
|
2222
|
+
statusCode: number;
|
|
2223
|
+
timestamp: string;
|
|
2224
|
+
details?: unknown;
|
|
2225
|
+
correlationId?: string | undefined;
|
|
2226
|
+
}, {
|
|
2227
|
+
code: string;
|
|
2228
|
+
path: string;
|
|
2229
|
+
message: string;
|
|
2230
|
+
statusCode: number;
|
|
2231
|
+
timestamp: string;
|
|
2232
|
+
details?: unknown;
|
|
2233
|
+
correlationId?: string | undefined;
|
|
2234
|
+
}>;
|
|
2235
|
+
401: z.ZodObject<{
|
|
2236
|
+
statusCode: z.ZodNumber;
|
|
2237
|
+
message: z.ZodString;
|
|
2238
|
+
code: z.ZodString;
|
|
2239
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
2240
|
+
timestamp: z.ZodString;
|
|
2241
|
+
path: z.ZodString;
|
|
2242
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2243
|
+
}, "strip", z.ZodTypeAny, {
|
|
2244
|
+
code: string;
|
|
2245
|
+
path: string;
|
|
2246
|
+
message: string;
|
|
2247
|
+
statusCode: number;
|
|
2248
|
+
timestamp: string;
|
|
2249
|
+
details?: unknown;
|
|
2250
|
+
correlationId?: string | undefined;
|
|
2251
|
+
}, {
|
|
2252
|
+
code: string;
|
|
2253
|
+
path: string;
|
|
2254
|
+
message: string;
|
|
2255
|
+
statusCode: number;
|
|
2256
|
+
timestamp: string;
|
|
2257
|
+
details?: unknown;
|
|
2258
|
+
correlationId?: string | undefined;
|
|
2259
|
+
}>;
|
|
2260
|
+
403: z.ZodObject<{
|
|
2261
|
+
statusCode: z.ZodNumber;
|
|
2262
|
+
message: z.ZodString;
|
|
2263
|
+
code: z.ZodString;
|
|
2264
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
2265
|
+
timestamp: z.ZodString;
|
|
2266
|
+
path: z.ZodString;
|
|
2267
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2268
|
+
}, "strip", z.ZodTypeAny, {
|
|
2269
|
+
code: string;
|
|
2270
|
+
path: string;
|
|
2271
|
+
message: string;
|
|
2272
|
+
statusCode: number;
|
|
2273
|
+
timestamp: string;
|
|
2274
|
+
details?: unknown;
|
|
2275
|
+
correlationId?: string | undefined;
|
|
2276
|
+
}, {
|
|
2277
|
+
code: string;
|
|
2278
|
+
path: string;
|
|
2279
|
+
message: string;
|
|
2280
|
+
statusCode: number;
|
|
2281
|
+
timestamp: string;
|
|
2282
|
+
details?: unknown;
|
|
2283
|
+
correlationId?: string | undefined;
|
|
2284
|
+
}>;
|
|
2285
|
+
500: z.ZodObject<{
|
|
2286
|
+
statusCode: z.ZodNumber;
|
|
2287
|
+
message: z.ZodString;
|
|
2288
|
+
code: z.ZodString;
|
|
2289
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
2290
|
+
timestamp: z.ZodString;
|
|
2291
|
+
path: z.ZodString;
|
|
2292
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
}, "strip", z.ZodTypeAny, {
|
|
2294
|
+
code: string;
|
|
2295
|
+
path: string;
|
|
2296
|
+
message: string;
|
|
2297
|
+
statusCode: number;
|
|
2298
|
+
timestamp: string;
|
|
2299
|
+
details?: unknown;
|
|
2300
|
+
correlationId?: string | undefined;
|
|
2301
|
+
}, {
|
|
2302
|
+
code: string;
|
|
2303
|
+
path: string;
|
|
2304
|
+
message: string;
|
|
2305
|
+
statusCode: number;
|
|
2306
|
+
timestamp: string;
|
|
2307
|
+
details?: unknown;
|
|
2308
|
+
correlationId?: string | undefined;
|
|
2309
|
+
}>;
|
|
2310
|
+
200: z.ZodObject<{
|
|
2311
|
+
id: z.ZodString;
|
|
2312
|
+
clientId: z.ZodString;
|
|
2313
|
+
client: z.ZodObject<{
|
|
2314
|
+
id: z.ZodString;
|
|
2315
|
+
name: z.ZodString;
|
|
2316
|
+
crn: z.ZodNullable<z.ZodString>;
|
|
2317
|
+
govLink: z.ZodNullable<z.ZodString>;
|
|
2318
|
+
soleTrader: z.ZodBoolean;
|
|
2319
|
+
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
2320
|
+
director: z.ZodString;
|
|
2321
|
+
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2322
|
+
lastUpdatedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2323
|
+
id: z.ZodString;
|
|
2324
|
+
firstName: z.ZodString;
|
|
2325
|
+
lastName: z.ZodString;
|
|
2326
|
+
email: z.ZodString;
|
|
2327
|
+
}, "strip", z.ZodTypeAny, {
|
|
2328
|
+
id: string;
|
|
2329
|
+
firstName: string;
|
|
2330
|
+
lastName: string;
|
|
2331
|
+
email: string;
|
|
2332
|
+
}, {
|
|
2333
|
+
id: string;
|
|
2334
|
+
firstName: string;
|
|
2335
|
+
lastName: string;
|
|
2336
|
+
email: string;
|
|
2337
|
+
}>>>;
|
|
2338
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2339
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2340
|
+
agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2341
|
+
agentId: z.ZodString;
|
|
2342
|
+
}, "strip", z.ZodTypeAny, {
|
|
2343
|
+
agentId: string;
|
|
2344
|
+
}, {
|
|
2345
|
+
agentId: string;
|
|
2346
|
+
}>>>;
|
|
2347
|
+
}, "strip", z.ZodTypeAny, {
|
|
2348
|
+
id: string;
|
|
2349
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
2350
|
+
name: string;
|
|
2351
|
+
crn: string | null;
|
|
2352
|
+
govLink: string | null;
|
|
2353
|
+
soleTrader: boolean;
|
|
2354
|
+
director: string;
|
|
2355
|
+
createdAt: string;
|
|
2356
|
+
updatedAt: string;
|
|
2357
|
+
blacklistReason?: string | null | undefined;
|
|
2358
|
+
lastUpdatedBy?: {
|
|
2359
|
+
id: string;
|
|
2360
|
+
firstName: string;
|
|
2361
|
+
lastName: string;
|
|
2362
|
+
email: string;
|
|
2363
|
+
} | null | undefined;
|
|
2364
|
+
agentClientLinks?: {
|
|
2365
|
+
agentId: string;
|
|
2366
|
+
} | null | undefined;
|
|
2367
|
+
}, {
|
|
2368
|
+
id: string;
|
|
2369
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
2370
|
+
name: string;
|
|
2371
|
+
crn: string | null;
|
|
2372
|
+
govLink: string | null;
|
|
2373
|
+
soleTrader: boolean;
|
|
2374
|
+
director: string;
|
|
2375
|
+
createdAt: string | Date;
|
|
2376
|
+
updatedAt: string | Date;
|
|
2377
|
+
blacklistReason?: string | null | undefined;
|
|
2378
|
+
lastUpdatedBy?: {
|
|
2379
|
+
id: string;
|
|
2380
|
+
firstName: string;
|
|
2381
|
+
lastName: string;
|
|
2382
|
+
email: string;
|
|
2383
|
+
} | null | undefined;
|
|
2384
|
+
agentClientLinks?: {
|
|
2385
|
+
agentId: string;
|
|
2386
|
+
} | null | undefined;
|
|
2387
|
+
}>;
|
|
2388
|
+
agentId: z.ZodString;
|
|
2389
|
+
agent: z.ZodObject<{
|
|
2390
|
+
id: z.ZodString;
|
|
2391
|
+
firstName: z.ZodString;
|
|
2392
|
+
lastName: z.ZodString;
|
|
2393
|
+
email: z.ZodString;
|
|
2394
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2395
|
+
id: z.ZodString;
|
|
2396
|
+
phoneNumber: z.ZodString;
|
|
2397
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2398
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
2399
|
+
}, "strip", z.ZodTypeAny, {
|
|
2400
|
+
id: string;
|
|
2401
|
+
phoneNumber: string;
|
|
2402
|
+
isPrimary: boolean;
|
|
2403
|
+
description?: string | null | undefined;
|
|
2404
|
+
}, {
|
|
2405
|
+
id: string;
|
|
2406
|
+
phoneNumber: string;
|
|
2407
|
+
description?: string | null | undefined;
|
|
2408
|
+
isPrimary?: boolean | undefined;
|
|
2409
|
+
}>, "many">>>;
|
|
2410
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
2411
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
|
|
2412
|
+
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2413
|
+
id: z.ZodString;
|
|
2414
|
+
firstName: z.ZodString;
|
|
2415
|
+
lastName: z.ZodString;
|
|
2416
|
+
}, "strip", z.ZodTypeAny, {
|
|
2417
|
+
id: string;
|
|
2418
|
+
firstName: string;
|
|
2419
|
+
lastName: string;
|
|
2420
|
+
}, {
|
|
2421
|
+
id: string;
|
|
2422
|
+
firstName: string;
|
|
2423
|
+
lastName: string;
|
|
2424
|
+
}>, "many">>;
|
|
2425
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2426
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2427
|
+
}, "strip", z.ZodTypeAny, {
|
|
2428
|
+
id: string;
|
|
2429
|
+
firstName: string;
|
|
2430
|
+
lastName: string;
|
|
2431
|
+
email: string;
|
|
2432
|
+
createdAt: string;
|
|
2433
|
+
updatedAt: string;
|
|
2434
|
+
phoneNumbers: {
|
|
2435
|
+
id: string;
|
|
2436
|
+
phoneNumber: string;
|
|
2437
|
+
isPrimary: boolean;
|
|
2438
|
+
description?: string | null | undefined;
|
|
2439
|
+
}[];
|
|
2440
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2441
|
+
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;
|
|
2442
|
+
canImpersonateUsers?: {
|
|
2443
|
+
id: string;
|
|
2444
|
+
firstName: string;
|
|
2445
|
+
lastName: string;
|
|
2446
|
+
}[] | undefined;
|
|
2447
|
+
}, {
|
|
2448
|
+
id: string;
|
|
2449
|
+
firstName: string;
|
|
2450
|
+
lastName: string;
|
|
2451
|
+
email: string;
|
|
2452
|
+
createdAt: string | Date;
|
|
2453
|
+
updatedAt: string | Date;
|
|
2454
|
+
phoneNumbers?: {
|
|
2455
|
+
id: string;
|
|
2456
|
+
phoneNumber: string;
|
|
2457
|
+
description?: string | null | undefined;
|
|
2458
|
+
isPrimary?: boolean | undefined;
|
|
2459
|
+
}[] | undefined;
|
|
2460
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2461
|
+
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;
|
|
2462
|
+
canImpersonateUsers?: {
|
|
2463
|
+
id: string;
|
|
2464
|
+
firstName: string;
|
|
2465
|
+
lastName: string;
|
|
2466
|
+
}[] | undefined;
|
|
2467
|
+
}>;
|
|
2468
|
+
linkType: z.ZodEnum<["CREATION", "EDIT_SUGGESTION"]>;
|
|
2469
|
+
suggestedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2470
|
+
appliedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2471
|
+
status: z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>;
|
|
2472
|
+
reviewedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2473
|
+
reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2474
|
+
id: z.ZodString;
|
|
2475
|
+
firstName: z.ZodString;
|
|
2476
|
+
lastName: z.ZodString;
|
|
2477
|
+
email: z.ZodString;
|
|
2478
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2479
|
+
id: z.ZodString;
|
|
2480
|
+
phoneNumber: z.ZodString;
|
|
2481
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2482
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
2483
|
+
}, "strip", z.ZodTypeAny, {
|
|
2484
|
+
id: string;
|
|
2485
|
+
phoneNumber: string;
|
|
2486
|
+
isPrimary: boolean;
|
|
2487
|
+
description?: string | null | undefined;
|
|
2488
|
+
}, {
|
|
2489
|
+
id: string;
|
|
2490
|
+
phoneNumber: string;
|
|
2491
|
+
description?: string | null | undefined;
|
|
2492
|
+
isPrimary?: boolean | undefined;
|
|
2493
|
+
}>, "many">>>;
|
|
2494
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
2495
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
|
|
2496
|
+
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2497
|
+
id: z.ZodString;
|
|
2498
|
+
firstName: z.ZodString;
|
|
2499
|
+
lastName: z.ZodString;
|
|
2500
|
+
}, "strip", z.ZodTypeAny, {
|
|
2501
|
+
id: string;
|
|
2502
|
+
firstName: string;
|
|
2503
|
+
lastName: string;
|
|
2504
|
+
}, {
|
|
2505
|
+
id: string;
|
|
2506
|
+
firstName: string;
|
|
2507
|
+
lastName: string;
|
|
2508
|
+
}>, "many">>;
|
|
2509
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2510
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2511
|
+
}, "strip", z.ZodTypeAny, {
|
|
2512
|
+
id: string;
|
|
2513
|
+
firstName: string;
|
|
2514
|
+
lastName: string;
|
|
2515
|
+
email: string;
|
|
2516
|
+
createdAt: string;
|
|
2517
|
+
updatedAt: string;
|
|
2518
|
+
phoneNumbers: {
|
|
2519
|
+
id: string;
|
|
2520
|
+
phoneNumber: string;
|
|
2521
|
+
isPrimary: boolean;
|
|
2522
|
+
description?: string | null | undefined;
|
|
2523
|
+
}[];
|
|
2524
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2525
|
+
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;
|
|
2526
|
+
canImpersonateUsers?: {
|
|
2527
|
+
id: string;
|
|
2528
|
+
firstName: string;
|
|
2529
|
+
lastName: string;
|
|
2530
|
+
}[] | undefined;
|
|
2531
|
+
}, {
|
|
2532
|
+
id: string;
|
|
2533
|
+
firstName: string;
|
|
2534
|
+
lastName: string;
|
|
2535
|
+
email: string;
|
|
2536
|
+
createdAt: string | Date;
|
|
2537
|
+
updatedAt: string | Date;
|
|
2538
|
+
phoneNumbers?: {
|
|
2539
|
+
id: string;
|
|
2540
|
+
phoneNumber: string;
|
|
2541
|
+
description?: string | null | undefined;
|
|
2542
|
+
isPrimary?: boolean | undefined;
|
|
2543
|
+
}[] | undefined;
|
|
2544
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2545
|
+
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;
|
|
2546
|
+
canImpersonateUsers?: {
|
|
2547
|
+
id: string;
|
|
2548
|
+
firstName: string;
|
|
2549
|
+
lastName: string;
|
|
2550
|
+
}[] | undefined;
|
|
2551
|
+
}>>>;
|
|
2552
|
+
reviewedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
2553
|
+
createdBy: z.ZodString;
|
|
2554
|
+
creator: z.ZodObject<{
|
|
2555
|
+
id: z.ZodString;
|
|
2556
|
+
firstName: z.ZodString;
|
|
2557
|
+
lastName: z.ZodString;
|
|
2558
|
+
email: z.ZodString;
|
|
2559
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2560
|
+
id: z.ZodString;
|
|
2561
|
+
phoneNumber: z.ZodString;
|
|
2562
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2563
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
2564
|
+
}, "strip", z.ZodTypeAny, {
|
|
2565
|
+
id: string;
|
|
2566
|
+
phoneNumber: string;
|
|
2567
|
+
isPrimary: boolean;
|
|
2568
|
+
description?: string | null | undefined;
|
|
2569
|
+
}, {
|
|
2570
|
+
id: string;
|
|
2571
|
+
phoneNumber: string;
|
|
2572
|
+
description?: string | null | undefined;
|
|
2573
|
+
isPrimary?: boolean | undefined;
|
|
2574
|
+
}>, "many">>>;
|
|
2575
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
2576
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
|
|
2577
|
+
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2578
|
+
id: z.ZodString;
|
|
2579
|
+
firstName: z.ZodString;
|
|
2580
|
+
lastName: z.ZodString;
|
|
2581
|
+
}, "strip", z.ZodTypeAny, {
|
|
2582
|
+
id: string;
|
|
2583
|
+
firstName: string;
|
|
2584
|
+
lastName: string;
|
|
2585
|
+
}, {
|
|
2586
|
+
id: string;
|
|
2587
|
+
firstName: string;
|
|
2588
|
+
lastName: string;
|
|
2589
|
+
}>, "many">>;
|
|
2590
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2591
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2592
|
+
}, "strip", z.ZodTypeAny, {
|
|
2593
|
+
id: string;
|
|
2594
|
+
firstName: string;
|
|
2595
|
+
lastName: string;
|
|
2596
|
+
email: string;
|
|
2597
|
+
createdAt: string;
|
|
2598
|
+
updatedAt: string;
|
|
2599
|
+
phoneNumbers: {
|
|
2600
|
+
id: string;
|
|
2601
|
+
phoneNumber: string;
|
|
2602
|
+
isPrimary: boolean;
|
|
2603
|
+
description?: string | null | undefined;
|
|
2604
|
+
}[];
|
|
2605
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2606
|
+
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;
|
|
2607
|
+
canImpersonateUsers?: {
|
|
2608
|
+
id: string;
|
|
2609
|
+
firstName: string;
|
|
2610
|
+
lastName: string;
|
|
2611
|
+
}[] | undefined;
|
|
2612
|
+
}, {
|
|
2613
|
+
id: string;
|
|
2614
|
+
firstName: string;
|
|
2615
|
+
lastName: string;
|
|
2616
|
+
email: string;
|
|
2617
|
+
createdAt: string | Date;
|
|
2618
|
+
updatedAt: string | Date;
|
|
2619
|
+
phoneNumbers?: {
|
|
2620
|
+
id: string;
|
|
2621
|
+
phoneNumber: string;
|
|
2622
|
+
description?: string | null | undefined;
|
|
2623
|
+
isPrimary?: boolean | undefined;
|
|
2624
|
+
}[] | undefined;
|
|
2625
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2626
|
+
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;
|
|
2627
|
+
canImpersonateUsers?: {
|
|
2628
|
+
id: string;
|
|
2629
|
+
firstName: string;
|
|
2630
|
+
lastName: string;
|
|
2631
|
+
}[] | undefined;
|
|
2632
|
+
}>;
|
|
2633
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2634
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2635
|
+
}, "strip", z.ZodTypeAny, {
|
|
2636
|
+
id: string;
|
|
2637
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
2638
|
+
createdAt: string;
|
|
2639
|
+
updatedAt: string;
|
|
2640
|
+
agentId: string;
|
|
2641
|
+
clientId: string;
|
|
2642
|
+
client: {
|
|
2643
|
+
id: string;
|
|
2644
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
2645
|
+
name: string;
|
|
2646
|
+
crn: string | null;
|
|
2647
|
+
govLink: string | null;
|
|
2648
|
+
soleTrader: boolean;
|
|
2649
|
+
director: string;
|
|
2650
|
+
createdAt: string;
|
|
2651
|
+
updatedAt: string;
|
|
2652
|
+
blacklistReason?: string | null | undefined;
|
|
2653
|
+
lastUpdatedBy?: {
|
|
2654
|
+
id: string;
|
|
2655
|
+
firstName: string;
|
|
2656
|
+
lastName: string;
|
|
2657
|
+
email: string;
|
|
2658
|
+
} | null | undefined;
|
|
2659
|
+
agentClientLinks?: {
|
|
2660
|
+
agentId: string;
|
|
2661
|
+
} | null | undefined;
|
|
2662
|
+
};
|
|
2663
|
+
createdBy: string;
|
|
2664
|
+
agent: {
|
|
2665
|
+
id: string;
|
|
2666
|
+
firstName: string;
|
|
2667
|
+
lastName: string;
|
|
2668
|
+
email: string;
|
|
2669
|
+
createdAt: string;
|
|
2670
|
+
updatedAt: string;
|
|
2671
|
+
phoneNumbers: {
|
|
2672
|
+
id: string;
|
|
2673
|
+
phoneNumber: string;
|
|
2674
|
+
isPrimary: boolean;
|
|
2675
|
+
description?: string | null | undefined;
|
|
2676
|
+
}[];
|
|
2677
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2678
|
+
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;
|
|
2679
|
+
canImpersonateUsers?: {
|
|
2680
|
+
id: string;
|
|
2681
|
+
firstName: string;
|
|
2682
|
+
lastName: string;
|
|
2683
|
+
}[] | undefined;
|
|
2684
|
+
};
|
|
2685
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
2686
|
+
creator: {
|
|
2687
|
+
id: string;
|
|
2688
|
+
firstName: string;
|
|
2689
|
+
lastName: string;
|
|
2690
|
+
email: string;
|
|
2691
|
+
createdAt: string;
|
|
2692
|
+
updatedAt: string;
|
|
2693
|
+
phoneNumbers: {
|
|
2694
|
+
id: string;
|
|
2695
|
+
phoneNumber: string;
|
|
2696
|
+
isPrimary: boolean;
|
|
2697
|
+
description?: string | null | undefined;
|
|
2698
|
+
}[];
|
|
2699
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2700
|
+
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;
|
|
2701
|
+
canImpersonateUsers?: {
|
|
2702
|
+
id: string;
|
|
2703
|
+
firstName: string;
|
|
2704
|
+
lastName: string;
|
|
2705
|
+
}[] | undefined;
|
|
2706
|
+
};
|
|
2707
|
+
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
2708
|
+
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
2709
|
+
reviewedBy?: string | null | undefined;
|
|
2710
|
+
reviewer?: {
|
|
2711
|
+
id: string;
|
|
2712
|
+
firstName: string;
|
|
2713
|
+
lastName: string;
|
|
2714
|
+
email: string;
|
|
2715
|
+
createdAt: string;
|
|
2716
|
+
updatedAt: string;
|
|
2717
|
+
phoneNumbers: {
|
|
2718
|
+
id: string;
|
|
2719
|
+
phoneNumber: string;
|
|
2720
|
+
isPrimary: boolean;
|
|
2721
|
+
description?: string | null | undefined;
|
|
2722
|
+
}[];
|
|
2723
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2724
|
+
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;
|
|
2725
|
+
canImpersonateUsers?: {
|
|
2726
|
+
id: string;
|
|
2727
|
+
firstName: string;
|
|
2728
|
+
lastName: string;
|
|
2729
|
+
}[] | undefined;
|
|
2730
|
+
} | null | undefined;
|
|
2731
|
+
reviewedAt?: string | null | undefined;
|
|
2732
|
+
}, {
|
|
2733
|
+
id: string;
|
|
2734
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
2735
|
+
createdAt: string | Date;
|
|
2736
|
+
updatedAt: string | Date;
|
|
2737
|
+
agentId: string;
|
|
2738
|
+
clientId: string;
|
|
2739
|
+
client: {
|
|
2740
|
+
id: string;
|
|
2741
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
2742
|
+
name: string;
|
|
2743
|
+
crn: string | null;
|
|
2744
|
+
govLink: string | null;
|
|
2745
|
+
soleTrader: boolean;
|
|
2746
|
+
director: string;
|
|
2747
|
+
createdAt: string | Date;
|
|
2748
|
+
updatedAt: string | Date;
|
|
2749
|
+
blacklistReason?: string | null | undefined;
|
|
2750
|
+
lastUpdatedBy?: {
|
|
2751
|
+
id: string;
|
|
2752
|
+
firstName: string;
|
|
2753
|
+
lastName: string;
|
|
1574
2754
|
email: string;
|
|
2755
|
+
} | null | undefined;
|
|
2756
|
+
agentClientLinks?: {
|
|
2757
|
+
agentId: string;
|
|
2758
|
+
} | null | undefined;
|
|
2759
|
+
};
|
|
2760
|
+
createdBy: string;
|
|
2761
|
+
agent: {
|
|
2762
|
+
id: string;
|
|
2763
|
+
firstName: string;
|
|
2764
|
+
lastName: string;
|
|
2765
|
+
email: string;
|
|
2766
|
+
createdAt: string | Date;
|
|
2767
|
+
updatedAt: string | Date;
|
|
2768
|
+
phoneNumbers?: {
|
|
2769
|
+
id: string;
|
|
2770
|
+
phoneNumber: string;
|
|
2771
|
+
description?: string | null | undefined;
|
|
2772
|
+
isPrimary?: boolean | undefined;
|
|
2773
|
+
}[] | undefined;
|
|
2774
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2775
|
+
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;
|
|
2776
|
+
canImpersonateUsers?: {
|
|
1575
2777
|
id: string;
|
|
1576
|
-
createdAt: string;
|
|
1577
|
-
updatedAt: string;
|
|
1578
2778
|
firstName: string;
|
|
1579
2779
|
lastName: string;
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
description?: string | null | undefined;
|
|
1585
|
-
}[];
|
|
1586
|
-
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1587
|
-
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;
|
|
1588
|
-
canImpersonateUsers?: {
|
|
1589
|
-
id: string;
|
|
1590
|
-
firstName: string;
|
|
1591
|
-
lastName: string;
|
|
1592
|
-
}[] | undefined;
|
|
1593
|
-
};
|
|
1594
|
-
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
1595
|
-
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
1596
|
-
}[];
|
|
1597
|
-
totalCount: number;
|
|
1598
|
-
skip: number;
|
|
1599
|
-
currentPage: number;
|
|
1600
|
-
totalPages: number;
|
|
1601
|
-
}, {
|
|
1602
|
-
limit: number;
|
|
1603
|
-
items: {
|
|
1604
|
-
createdBy: string;
|
|
2780
|
+
}[] | undefined;
|
|
2781
|
+
};
|
|
2782
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
2783
|
+
creator: {
|
|
1605
2784
|
id: string;
|
|
1606
|
-
|
|
2785
|
+
firstName: string;
|
|
2786
|
+
lastName: string;
|
|
2787
|
+
email: string;
|
|
1607
2788
|
createdAt: string | Date;
|
|
1608
2789
|
updatedAt: string | Date;
|
|
1609
|
-
|
|
1610
|
-
|
|
2790
|
+
phoneNumbers?: {
|
|
2791
|
+
id: string;
|
|
2792
|
+
phoneNumber: string;
|
|
2793
|
+
description?: string | null | undefined;
|
|
2794
|
+
isPrimary?: boolean | undefined;
|
|
2795
|
+
}[] | undefined;
|
|
2796
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2797
|
+
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;
|
|
2798
|
+
canImpersonateUsers?: {
|
|
1611
2799
|
id: string;
|
|
1612
|
-
createdAt: string | Date;
|
|
1613
|
-
updatedAt: string | Date;
|
|
1614
2800
|
firstName: string;
|
|
1615
2801
|
lastName: string;
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
};
|
|
1630
|
-
client: {
|
|
1631
|
-
name: string;
|
|
2802
|
+
}[] | undefined;
|
|
2803
|
+
};
|
|
2804
|
+
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
2805
|
+
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
2806
|
+
reviewedBy?: string | null | undefined;
|
|
2807
|
+
reviewer?: {
|
|
2808
|
+
id: string;
|
|
2809
|
+
firstName: string;
|
|
2810
|
+
lastName: string;
|
|
2811
|
+
email: string;
|
|
2812
|
+
createdAt: string | Date;
|
|
2813
|
+
updatedAt: string | Date;
|
|
2814
|
+
phoneNumbers?: {
|
|
1632
2815
|
id: string;
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
blacklistReason?: string | null | undefined;
|
|
1641
|
-
lastUpdatedBy?: {
|
|
1642
|
-
email: string;
|
|
1643
|
-
id: string;
|
|
1644
|
-
firstName: string;
|
|
1645
|
-
lastName: string;
|
|
1646
|
-
} | null | undefined;
|
|
1647
|
-
agentClientLinks?: {
|
|
1648
|
-
agentId: string;
|
|
1649
|
-
} | null | undefined;
|
|
1650
|
-
};
|
|
1651
|
-
clientId: string;
|
|
1652
|
-
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
1653
|
-
creator: {
|
|
1654
|
-
email: string;
|
|
2816
|
+
phoneNumber: string;
|
|
2817
|
+
description?: string | null | undefined;
|
|
2818
|
+
isPrimary?: boolean | undefined;
|
|
2819
|
+
}[] | undefined;
|
|
2820
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2821
|
+
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;
|
|
2822
|
+
canImpersonateUsers?: {
|
|
1655
2823
|
id: string;
|
|
1656
|
-
createdAt: string | Date;
|
|
1657
|
-
updatedAt: string | Date;
|
|
1658
2824
|
firstName: string;
|
|
1659
2825
|
lastName: string;
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
2826
|
+
}[] | undefined;
|
|
2827
|
+
} | null | undefined;
|
|
2828
|
+
reviewedAt?: string | Date | null | undefined;
|
|
2829
|
+
}>;
|
|
2830
|
+
404: z.ZodObject<{
|
|
2831
|
+
statusCode: z.ZodNumber;
|
|
2832
|
+
message: z.ZodString;
|
|
2833
|
+
code: z.ZodString;
|
|
2834
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
2835
|
+
timestamp: z.ZodString;
|
|
2836
|
+
path: z.ZodString;
|
|
2837
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
2838
|
+
}, "strip", z.ZodTypeAny, {
|
|
2839
|
+
code: string;
|
|
2840
|
+
path: string;
|
|
2841
|
+
message: string;
|
|
2842
|
+
statusCode: number;
|
|
2843
|
+
timestamp: string;
|
|
2844
|
+
details?: unknown;
|
|
2845
|
+
correlationId?: string | undefined;
|
|
2846
|
+
}, {
|
|
2847
|
+
code: string;
|
|
2848
|
+
path: string;
|
|
2849
|
+
message: string;
|
|
2850
|
+
statusCode: number;
|
|
2851
|
+
timestamp: string;
|
|
2852
|
+
details?: unknown;
|
|
2853
|
+
correlationId?: string | undefined;
|
|
1681
2854
|
}>;
|
|
1682
2855
|
};
|
|
1683
2856
|
};
|
|
1684
|
-
|
|
2857
|
+
applyChanges: {
|
|
1685
2858
|
metadata: {
|
|
1686
2859
|
tags: string[];
|
|
1687
2860
|
};
|
|
@@ -1692,9 +2865,16 @@ export declare const agentClientLinksContract: {
|
|
|
1692
2865
|
}, {
|
|
1693
2866
|
id: string;
|
|
1694
2867
|
}>;
|
|
1695
|
-
summary: "
|
|
1696
|
-
method: "
|
|
1697
|
-
|
|
2868
|
+
summary: "Apply changes to an agent-client link";
|
|
2869
|
+
method: "PATCH";
|
|
2870
|
+
body: z.ZodObject<{
|
|
2871
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2872
|
+
}, "strip", z.ZodTypeAny, {
|
|
2873
|
+
fields?: string[] | undefined;
|
|
2874
|
+
}, {
|
|
2875
|
+
fields?: string[] | undefined;
|
|
2876
|
+
}>;
|
|
2877
|
+
path: "/v2/agent-client-links/:id/apply";
|
|
1698
2878
|
responses: {
|
|
1699
2879
|
400: z.ZodObject<{
|
|
1700
2880
|
statusCode: z.ZodNumber;
|
|
@@ -1803,7 +2983,7 @@ export declare const agentClientLinksContract: {
|
|
|
1803
2983
|
id: z.ZodString;
|
|
1804
2984
|
name: z.ZodString;
|
|
1805
2985
|
crn: z.ZodNullable<z.ZodString>;
|
|
1806
|
-
govLink: z.ZodString
|
|
2986
|
+
govLink: z.ZodNullable<z.ZodString>;
|
|
1807
2987
|
soleTrader: z.ZodBoolean;
|
|
1808
2988
|
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
1809
2989
|
director: z.ZodString;
|
|
@@ -1812,70 +2992,154 @@ export declare const agentClientLinksContract: {
|
|
|
1812
2992
|
id: z.ZodString;
|
|
1813
2993
|
firstName: z.ZodString;
|
|
1814
2994
|
lastName: z.ZodString;
|
|
1815
|
-
email: z.ZodString;
|
|
2995
|
+
email: z.ZodString;
|
|
2996
|
+
}, "strip", z.ZodTypeAny, {
|
|
2997
|
+
id: string;
|
|
2998
|
+
firstName: string;
|
|
2999
|
+
lastName: string;
|
|
3000
|
+
email: string;
|
|
3001
|
+
}, {
|
|
3002
|
+
id: string;
|
|
3003
|
+
firstName: string;
|
|
3004
|
+
lastName: string;
|
|
3005
|
+
email: string;
|
|
3006
|
+
}>>>;
|
|
3007
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3008
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3009
|
+
agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3010
|
+
agentId: z.ZodString;
|
|
3011
|
+
}, "strip", z.ZodTypeAny, {
|
|
3012
|
+
agentId: string;
|
|
3013
|
+
}, {
|
|
3014
|
+
agentId: string;
|
|
3015
|
+
}>>>;
|
|
3016
|
+
}, "strip", z.ZodTypeAny, {
|
|
3017
|
+
id: string;
|
|
3018
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
3019
|
+
name: string;
|
|
3020
|
+
crn: string | null;
|
|
3021
|
+
govLink: string | null;
|
|
3022
|
+
soleTrader: boolean;
|
|
3023
|
+
director: string;
|
|
3024
|
+
createdAt: string;
|
|
3025
|
+
updatedAt: string;
|
|
3026
|
+
blacklistReason?: string | null | undefined;
|
|
3027
|
+
lastUpdatedBy?: {
|
|
3028
|
+
id: string;
|
|
3029
|
+
firstName: string;
|
|
3030
|
+
lastName: string;
|
|
3031
|
+
email: string;
|
|
3032
|
+
} | null | undefined;
|
|
3033
|
+
agentClientLinks?: {
|
|
3034
|
+
agentId: string;
|
|
3035
|
+
} | null | undefined;
|
|
3036
|
+
}, {
|
|
3037
|
+
id: string;
|
|
3038
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
3039
|
+
name: string;
|
|
3040
|
+
crn: string | null;
|
|
3041
|
+
govLink: string | null;
|
|
3042
|
+
soleTrader: boolean;
|
|
3043
|
+
director: string;
|
|
3044
|
+
createdAt: string | Date;
|
|
3045
|
+
updatedAt: string | Date;
|
|
3046
|
+
blacklistReason?: string | null | undefined;
|
|
3047
|
+
lastUpdatedBy?: {
|
|
3048
|
+
id: string;
|
|
3049
|
+
firstName: string;
|
|
3050
|
+
lastName: string;
|
|
3051
|
+
email: string;
|
|
3052
|
+
} | null | undefined;
|
|
3053
|
+
agentClientLinks?: {
|
|
3054
|
+
agentId: string;
|
|
3055
|
+
} | null | undefined;
|
|
3056
|
+
}>;
|
|
3057
|
+
agentId: z.ZodString;
|
|
3058
|
+
agent: z.ZodObject<{
|
|
3059
|
+
id: z.ZodString;
|
|
3060
|
+
firstName: z.ZodString;
|
|
3061
|
+
lastName: z.ZodString;
|
|
3062
|
+
email: z.ZodString;
|
|
3063
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3064
|
+
id: z.ZodString;
|
|
3065
|
+
phoneNumber: z.ZodString;
|
|
3066
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3067
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
3068
|
+
}, "strip", z.ZodTypeAny, {
|
|
3069
|
+
id: string;
|
|
3070
|
+
phoneNumber: string;
|
|
3071
|
+
isPrimary: boolean;
|
|
3072
|
+
description?: string | null | undefined;
|
|
3073
|
+
}, {
|
|
3074
|
+
id: string;
|
|
3075
|
+
phoneNumber: string;
|
|
3076
|
+
description?: string | null | undefined;
|
|
3077
|
+
isPrimary?: boolean | undefined;
|
|
3078
|
+
}>, "many">>>;
|
|
3079
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
3080
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
|
|
3081
|
+
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3082
|
+
id: z.ZodString;
|
|
3083
|
+
firstName: z.ZodString;
|
|
3084
|
+
lastName: z.ZodString;
|
|
1816
3085
|
}, "strip", z.ZodTypeAny, {
|
|
1817
|
-
email: string;
|
|
1818
3086
|
id: string;
|
|
1819
3087
|
firstName: string;
|
|
1820
3088
|
lastName: string;
|
|
1821
3089
|
}, {
|
|
1822
|
-
email: string;
|
|
1823
3090
|
id: string;
|
|
1824
3091
|
firstName: string;
|
|
1825
3092
|
lastName: string;
|
|
1826
|
-
}
|
|
3093
|
+
}>, "many">>;
|
|
1827
3094
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1828
3095
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1829
|
-
agentClientLinks: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1830
|
-
agentId: z.ZodString;
|
|
1831
|
-
}, "strip", z.ZodTypeAny, {
|
|
1832
|
-
agentId: string;
|
|
1833
|
-
}, {
|
|
1834
|
-
agentId: string;
|
|
1835
|
-
}>>>;
|
|
1836
3096
|
}, "strip", z.ZodTypeAny, {
|
|
1837
|
-
name: string;
|
|
1838
3097
|
id: string;
|
|
1839
|
-
|
|
3098
|
+
firstName: string;
|
|
3099
|
+
lastName: string;
|
|
3100
|
+
email: string;
|
|
1840
3101
|
createdAt: string;
|
|
1841
3102
|
updatedAt: string;
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
3103
|
+
phoneNumbers: {
|
|
3104
|
+
id: string;
|
|
3105
|
+
phoneNumber: string;
|
|
3106
|
+
isPrimary: boolean;
|
|
3107
|
+
description?: string | null | undefined;
|
|
3108
|
+
}[];
|
|
3109
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3110
|
+
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;
|
|
3111
|
+
canImpersonateUsers?: {
|
|
1849
3112
|
id: string;
|
|
1850
3113
|
firstName: string;
|
|
1851
3114
|
lastName: string;
|
|
1852
|
-
} |
|
|
1853
|
-
agentClientLinks?: {
|
|
1854
|
-
agentId: string;
|
|
1855
|
-
} | null | undefined;
|
|
3115
|
+
}[] | undefined;
|
|
1856
3116
|
}, {
|
|
1857
|
-
name: string;
|
|
1858
3117
|
id: string;
|
|
1859
|
-
|
|
3118
|
+
firstName: string;
|
|
3119
|
+
lastName: string;
|
|
3120
|
+
email: string;
|
|
1860
3121
|
createdAt: string | Date;
|
|
1861
3122
|
updatedAt: string | Date;
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
3123
|
+
phoneNumbers?: {
|
|
3124
|
+
id: string;
|
|
3125
|
+
phoneNumber: string;
|
|
3126
|
+
description?: string | null | undefined;
|
|
3127
|
+
isPrimary?: boolean | undefined;
|
|
3128
|
+
}[] | undefined;
|
|
3129
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3130
|
+
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;
|
|
3131
|
+
canImpersonateUsers?: {
|
|
1869
3132
|
id: string;
|
|
1870
3133
|
firstName: string;
|
|
1871
3134
|
lastName: string;
|
|
1872
|
-
} |
|
|
1873
|
-
agentClientLinks?: {
|
|
1874
|
-
agentId: string;
|
|
1875
|
-
} | null | undefined;
|
|
3135
|
+
}[] | undefined;
|
|
1876
3136
|
}>;
|
|
1877
|
-
|
|
1878
|
-
|
|
3137
|
+
linkType: z.ZodEnum<["CREATION", "EDIT_SUGGESTION"]>;
|
|
3138
|
+
suggestedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3139
|
+
appliedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3140
|
+
status: z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>;
|
|
3141
|
+
reviewedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3142
|
+
reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1879
3143
|
id: z.ZodString;
|
|
1880
3144
|
firstName: z.ZodString;
|
|
1881
3145
|
lastName: z.ZodString;
|
|
@@ -1914,12 +3178,12 @@ export declare const agentClientLinksContract: {
|
|
|
1914
3178
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1915
3179
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1916
3180
|
}, "strip", z.ZodTypeAny, {
|
|
1917
|
-
email: string;
|
|
1918
3181
|
id: string;
|
|
1919
|
-
createdAt: string;
|
|
1920
|
-
updatedAt: string;
|
|
1921
3182
|
firstName: string;
|
|
1922
3183
|
lastName: string;
|
|
3184
|
+
email: string;
|
|
3185
|
+
createdAt: string;
|
|
3186
|
+
updatedAt: string;
|
|
1923
3187
|
phoneNumbers: {
|
|
1924
3188
|
id: string;
|
|
1925
3189
|
phoneNumber: string;
|
|
@@ -1934,29 +3198,27 @@ export declare const agentClientLinksContract: {
|
|
|
1934
3198
|
lastName: string;
|
|
1935
3199
|
}[] | undefined;
|
|
1936
3200
|
}, {
|
|
1937
|
-
email: string;
|
|
1938
3201
|
id: string;
|
|
1939
|
-
createdAt: string | Date;
|
|
1940
|
-
updatedAt: string | Date;
|
|
1941
3202
|
firstName: string;
|
|
1942
3203
|
lastName: string;
|
|
1943
|
-
|
|
3204
|
+
email: string;
|
|
3205
|
+
createdAt: string | Date;
|
|
3206
|
+
updatedAt: string | Date;
|
|
1944
3207
|
phoneNumbers?: {
|
|
1945
3208
|
id: string;
|
|
1946
3209
|
phoneNumber: string;
|
|
1947
3210
|
description?: string | null | undefined;
|
|
1948
3211
|
isPrimary?: boolean | undefined;
|
|
1949
3212
|
}[] | undefined;
|
|
3213
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
1950
3214
|
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;
|
|
1951
3215
|
canImpersonateUsers?: {
|
|
1952
3216
|
id: string;
|
|
1953
3217
|
firstName: string;
|
|
1954
3218
|
lastName: string;
|
|
1955
3219
|
}[] | undefined;
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
suggestedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1959
|
-
appliedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3220
|
+
}>>>;
|
|
3221
|
+
reviewedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
1960
3222
|
createdBy: z.ZodString;
|
|
1961
3223
|
creator: z.ZodObject<{
|
|
1962
3224
|
id: z.ZodString;
|
|
@@ -1997,12 +3259,12 @@ export declare const agentClientLinksContract: {
|
|
|
1997
3259
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1998
3260
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1999
3261
|
}, "strip", z.ZodTypeAny, {
|
|
2000
|
-
email: string;
|
|
2001
3262
|
id: string;
|
|
2002
|
-
createdAt: string;
|
|
2003
|
-
updatedAt: string;
|
|
2004
3263
|
firstName: string;
|
|
2005
3264
|
lastName: string;
|
|
3265
|
+
email: string;
|
|
3266
|
+
createdAt: string;
|
|
3267
|
+
updatedAt: string;
|
|
2006
3268
|
phoneNumbers: {
|
|
2007
3269
|
id: string;
|
|
2008
3270
|
phoneNumber: string;
|
|
@@ -2017,19 +3279,19 @@ export declare const agentClientLinksContract: {
|
|
|
2017
3279
|
lastName: string;
|
|
2018
3280
|
}[] | undefined;
|
|
2019
3281
|
}, {
|
|
2020
|
-
email: string;
|
|
2021
3282
|
id: string;
|
|
2022
|
-
createdAt: string | Date;
|
|
2023
|
-
updatedAt: string | Date;
|
|
2024
3283
|
firstName: string;
|
|
2025
3284
|
lastName: string;
|
|
2026
|
-
|
|
3285
|
+
email: string;
|
|
3286
|
+
createdAt: string | Date;
|
|
3287
|
+
updatedAt: string | Date;
|
|
2027
3288
|
phoneNumbers?: {
|
|
2028
3289
|
id: string;
|
|
2029
3290
|
phoneNumber: string;
|
|
2030
3291
|
description?: string | null | undefined;
|
|
2031
3292
|
isPrimary?: boolean | undefined;
|
|
2032
3293
|
}[] | undefined;
|
|
3294
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2033
3295
|
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;
|
|
2034
3296
|
canImpersonateUsers?: {
|
|
2035
3297
|
id: string;
|
|
@@ -2040,18 +3302,41 @@ export declare const agentClientLinksContract: {
|
|
|
2040
3302
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2041
3303
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2042
3304
|
}, "strip", z.ZodTypeAny, {
|
|
2043
|
-
createdBy: string;
|
|
2044
3305
|
id: string;
|
|
2045
|
-
|
|
3306
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
2046
3307
|
createdAt: string;
|
|
2047
3308
|
updatedAt: string;
|
|
2048
|
-
|
|
2049
|
-
|
|
3309
|
+
agentId: string;
|
|
3310
|
+
clientId: string;
|
|
3311
|
+
client: {
|
|
2050
3312
|
id: string;
|
|
3313
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
3314
|
+
name: string;
|
|
3315
|
+
crn: string | null;
|
|
3316
|
+
govLink: string | null;
|
|
3317
|
+
soleTrader: boolean;
|
|
3318
|
+
director: string;
|
|
2051
3319
|
createdAt: string;
|
|
2052
3320
|
updatedAt: string;
|
|
3321
|
+
blacklistReason?: string | null | undefined;
|
|
3322
|
+
lastUpdatedBy?: {
|
|
3323
|
+
id: string;
|
|
3324
|
+
firstName: string;
|
|
3325
|
+
lastName: string;
|
|
3326
|
+
email: string;
|
|
3327
|
+
} | null | undefined;
|
|
3328
|
+
agentClientLinks?: {
|
|
3329
|
+
agentId: string;
|
|
3330
|
+
} | null | undefined;
|
|
3331
|
+
};
|
|
3332
|
+
createdBy: string;
|
|
3333
|
+
agent: {
|
|
3334
|
+
id: string;
|
|
2053
3335
|
firstName: string;
|
|
2054
3336
|
lastName: string;
|
|
3337
|
+
email: string;
|
|
3338
|
+
createdAt: string;
|
|
3339
|
+
updatedAt: string;
|
|
2055
3340
|
phoneNumbers: {
|
|
2056
3341
|
id: string;
|
|
2057
3342
|
phoneNumber: string;
|
|
@@ -2066,36 +3351,14 @@ export declare const agentClientLinksContract: {
|
|
|
2066
3351
|
lastName: string;
|
|
2067
3352
|
}[] | undefined;
|
|
2068
3353
|
};
|
|
2069
|
-
client: {
|
|
2070
|
-
name: string;
|
|
2071
|
-
id: string;
|
|
2072
|
-
status: "BLACKLISTED" | "APPROVED" | "PENDING_VERIFICATION";
|
|
2073
|
-
createdAt: string;
|
|
2074
|
-
updatedAt: string;
|
|
2075
|
-
crn: string | null;
|
|
2076
|
-
govLink: string;
|
|
2077
|
-
soleTrader: boolean;
|
|
2078
|
-
director: string;
|
|
2079
|
-
blacklistReason?: string | null | undefined;
|
|
2080
|
-
lastUpdatedBy?: {
|
|
2081
|
-
email: string;
|
|
2082
|
-
id: string;
|
|
2083
|
-
firstName: string;
|
|
2084
|
-
lastName: string;
|
|
2085
|
-
} | null | undefined;
|
|
2086
|
-
agentClientLinks?: {
|
|
2087
|
-
agentId: string;
|
|
2088
|
-
} | null | undefined;
|
|
2089
|
-
};
|
|
2090
|
-
clientId: string;
|
|
2091
3354
|
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
2092
3355
|
creator: {
|
|
2093
|
-
email: string;
|
|
2094
3356
|
id: string;
|
|
2095
|
-
createdAt: string;
|
|
2096
|
-
updatedAt: string;
|
|
2097
3357
|
firstName: string;
|
|
2098
3358
|
lastName: string;
|
|
3359
|
+
email: string;
|
|
3360
|
+
createdAt: string;
|
|
3361
|
+
updatedAt: string;
|
|
2099
3362
|
phoneNumbers: {
|
|
2100
3363
|
id: string;
|
|
2101
3364
|
phoneNumber: string;
|
|
@@ -2112,70 +3375,94 @@ export declare const agentClientLinksContract: {
|
|
|
2112
3375
|
};
|
|
2113
3376
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
2114
3377
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
id: string;
|
|
2118
|
-
agentId: string;
|
|
2119
|
-
createdAt: string | Date;
|
|
2120
|
-
updatedAt: string | Date;
|
|
2121
|
-
agent: {
|
|
2122
|
-
email: string;
|
|
3378
|
+
reviewedBy?: string | null | undefined;
|
|
3379
|
+
reviewer?: {
|
|
2123
3380
|
id: string;
|
|
2124
|
-
createdAt: string | Date;
|
|
2125
|
-
updatedAt: string | Date;
|
|
2126
3381
|
firstName: string;
|
|
2127
3382
|
lastName: string;
|
|
2128
|
-
|
|
2129
|
-
|
|
3383
|
+
email: string;
|
|
3384
|
+
createdAt: string;
|
|
3385
|
+
updatedAt: string;
|
|
3386
|
+
phoneNumbers: {
|
|
2130
3387
|
id: string;
|
|
2131
3388
|
phoneNumber: string;
|
|
3389
|
+
isPrimary: boolean;
|
|
2132
3390
|
description?: string | null | undefined;
|
|
2133
|
-
|
|
2134
|
-
|
|
3391
|
+
}[];
|
|
3392
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2135
3393
|
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;
|
|
2136
3394
|
canImpersonateUsers?: {
|
|
2137
3395
|
id: string;
|
|
2138
3396
|
firstName: string;
|
|
2139
3397
|
lastName: string;
|
|
2140
3398
|
}[] | undefined;
|
|
2141
|
-
};
|
|
3399
|
+
} | null | undefined;
|
|
3400
|
+
reviewedAt?: string | null | undefined;
|
|
3401
|
+
}, {
|
|
3402
|
+
id: string;
|
|
3403
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
3404
|
+
createdAt: string | Date;
|
|
3405
|
+
updatedAt: string | Date;
|
|
3406
|
+
agentId: string;
|
|
3407
|
+
clientId: string;
|
|
2142
3408
|
client: {
|
|
2143
|
-
name: string;
|
|
2144
3409
|
id: string;
|
|
2145
|
-
status: "
|
|
2146
|
-
|
|
2147
|
-
updatedAt: string | Date;
|
|
3410
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
3411
|
+
name: string;
|
|
2148
3412
|
crn: string | null;
|
|
2149
|
-
govLink: string;
|
|
3413
|
+
govLink: string | null;
|
|
2150
3414
|
soleTrader: boolean;
|
|
2151
3415
|
director: string;
|
|
3416
|
+
createdAt: string | Date;
|
|
3417
|
+
updatedAt: string | Date;
|
|
2152
3418
|
blacklistReason?: string | null | undefined;
|
|
2153
3419
|
lastUpdatedBy?: {
|
|
2154
|
-
email: string;
|
|
2155
3420
|
id: string;
|
|
2156
3421
|
firstName: string;
|
|
2157
3422
|
lastName: string;
|
|
3423
|
+
email: string;
|
|
2158
3424
|
} | null | undefined;
|
|
2159
3425
|
agentClientLinks?: {
|
|
2160
3426
|
agentId: string;
|
|
2161
3427
|
} | null | undefined;
|
|
2162
3428
|
};
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
creator: {
|
|
2166
|
-
email: string;
|
|
3429
|
+
createdBy: string;
|
|
3430
|
+
agent: {
|
|
2167
3431
|
id: string;
|
|
3432
|
+
firstName: string;
|
|
3433
|
+
lastName: string;
|
|
3434
|
+
email: string;
|
|
2168
3435
|
createdAt: string | Date;
|
|
2169
3436
|
updatedAt: string | Date;
|
|
3437
|
+
phoneNumbers?: {
|
|
3438
|
+
id: string;
|
|
3439
|
+
phoneNumber: string;
|
|
3440
|
+
description?: string | null | undefined;
|
|
3441
|
+
isPrimary?: boolean | undefined;
|
|
3442
|
+
}[] | undefined;
|
|
3443
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3444
|
+
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;
|
|
3445
|
+
canImpersonateUsers?: {
|
|
3446
|
+
id: string;
|
|
3447
|
+
firstName: string;
|
|
3448
|
+
lastName: string;
|
|
3449
|
+
}[] | undefined;
|
|
3450
|
+
};
|
|
3451
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
3452
|
+
creator: {
|
|
3453
|
+
id: string;
|
|
2170
3454
|
firstName: string;
|
|
2171
3455
|
lastName: string;
|
|
2172
|
-
|
|
3456
|
+
email: string;
|
|
3457
|
+
createdAt: string | Date;
|
|
3458
|
+
updatedAt: string | Date;
|
|
2173
3459
|
phoneNumbers?: {
|
|
2174
3460
|
id: string;
|
|
2175
3461
|
phoneNumber: string;
|
|
2176
3462
|
description?: string | null | undefined;
|
|
2177
3463
|
isPrimary?: boolean | undefined;
|
|
2178
3464
|
}[] | undefined;
|
|
3465
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2179
3466
|
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;
|
|
2180
3467
|
canImpersonateUsers?: {
|
|
2181
3468
|
id: string;
|
|
@@ -2185,6 +3472,29 @@ export declare const agentClientLinksContract: {
|
|
|
2185
3472
|
};
|
|
2186
3473
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
2187
3474
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
3475
|
+
reviewedBy?: string | null | undefined;
|
|
3476
|
+
reviewer?: {
|
|
3477
|
+
id: string;
|
|
3478
|
+
firstName: string;
|
|
3479
|
+
lastName: string;
|
|
3480
|
+
email: string;
|
|
3481
|
+
createdAt: string | Date;
|
|
3482
|
+
updatedAt: string | Date;
|
|
3483
|
+
phoneNumbers?: {
|
|
3484
|
+
id: string;
|
|
3485
|
+
phoneNumber: string;
|
|
3486
|
+
description?: string | null | undefined;
|
|
3487
|
+
isPrimary?: boolean | undefined;
|
|
3488
|
+
}[] | undefined;
|
|
3489
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3490
|
+
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;
|
|
3491
|
+
canImpersonateUsers?: {
|
|
3492
|
+
id: string;
|
|
3493
|
+
firstName: string;
|
|
3494
|
+
lastName: string;
|
|
3495
|
+
}[] | undefined;
|
|
3496
|
+
} | null | undefined;
|
|
3497
|
+
reviewedAt?: string | Date | null | undefined;
|
|
2188
3498
|
}>;
|
|
2189
3499
|
404: z.ZodObject<{
|
|
2190
3500
|
statusCode: z.ZodNumber;
|
|
@@ -2213,7 +3523,7 @@ export declare const agentClientLinksContract: {
|
|
|
2213
3523
|
}>;
|
|
2214
3524
|
};
|
|
2215
3525
|
};
|
|
2216
|
-
|
|
3526
|
+
update: {
|
|
2217
3527
|
metadata: {
|
|
2218
3528
|
tags: string[];
|
|
2219
3529
|
};
|
|
@@ -2224,16 +3534,25 @@ export declare const agentClientLinksContract: {
|
|
|
2224
3534
|
}, {
|
|
2225
3535
|
id: string;
|
|
2226
3536
|
}>;
|
|
2227
|
-
summary: "
|
|
3537
|
+
summary: "Update an agent-client link";
|
|
2228
3538
|
method: "PATCH";
|
|
2229
3539
|
body: z.ZodObject<{
|
|
2230
|
-
|
|
3540
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
3541
|
+
linkType: z.ZodOptional<z.ZodEnum<["CREATION", "EDIT_SUGGESTION"]>>;
|
|
3542
|
+
suggestedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3543
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>>;
|
|
2231
3544
|
}, "strip", z.ZodTypeAny, {
|
|
2232
|
-
|
|
3545
|
+
status?: "APPROVED" | "REJECTED" | "PENDING_REVIEW" | undefined;
|
|
3546
|
+
clientId?: string | undefined;
|
|
3547
|
+
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
3548
|
+
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
2233
3549
|
}, {
|
|
2234
|
-
|
|
3550
|
+
status?: "APPROVED" | "REJECTED" | "PENDING_REVIEW" | undefined;
|
|
3551
|
+
clientId?: string | undefined;
|
|
3552
|
+
linkType?: "CREATION" | "EDIT_SUGGESTION" | undefined;
|
|
3553
|
+
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
2235
3554
|
}>;
|
|
2236
|
-
path: "/v2/agent-client-links/:id
|
|
3555
|
+
path: "/v2/agent-client-links/:id";
|
|
2237
3556
|
responses: {
|
|
2238
3557
|
400: z.ZodObject<{
|
|
2239
3558
|
statusCode: z.ZodNumber;
|
|
@@ -2342,7 +3661,7 @@ export declare const agentClientLinksContract: {
|
|
|
2342
3661
|
id: z.ZodString;
|
|
2343
3662
|
name: z.ZodString;
|
|
2344
3663
|
crn: z.ZodNullable<z.ZodString>;
|
|
2345
|
-
govLink: z.ZodString
|
|
3664
|
+
govLink: z.ZodNullable<z.ZodString>;
|
|
2346
3665
|
soleTrader: z.ZodBoolean;
|
|
2347
3666
|
status: z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>;
|
|
2348
3667
|
director: z.ZodString;
|
|
@@ -2353,15 +3672,15 @@ export declare const agentClientLinksContract: {
|
|
|
2353
3672
|
lastName: z.ZodString;
|
|
2354
3673
|
email: z.ZodString;
|
|
2355
3674
|
}, "strip", z.ZodTypeAny, {
|
|
2356
|
-
email: string;
|
|
2357
3675
|
id: string;
|
|
2358
3676
|
firstName: string;
|
|
2359
3677
|
lastName: string;
|
|
2360
|
-
}, {
|
|
2361
3678
|
email: string;
|
|
3679
|
+
}, {
|
|
2362
3680
|
id: string;
|
|
2363
3681
|
firstName: string;
|
|
2364
3682
|
lastName: string;
|
|
3683
|
+
email: string;
|
|
2365
3684
|
}>>>;
|
|
2366
3685
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2367
3686
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
@@ -2373,41 +3692,41 @@ export declare const agentClientLinksContract: {
|
|
|
2373
3692
|
agentId: string;
|
|
2374
3693
|
}>>>;
|
|
2375
3694
|
}, "strip", z.ZodTypeAny, {
|
|
2376
|
-
name: string;
|
|
2377
3695
|
id: string;
|
|
2378
|
-
status: "
|
|
2379
|
-
|
|
2380
|
-
updatedAt: string;
|
|
3696
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
3697
|
+
name: string;
|
|
2381
3698
|
crn: string | null;
|
|
2382
|
-
govLink: string;
|
|
3699
|
+
govLink: string | null;
|
|
2383
3700
|
soleTrader: boolean;
|
|
2384
3701
|
director: string;
|
|
3702
|
+
createdAt: string;
|
|
3703
|
+
updatedAt: string;
|
|
2385
3704
|
blacklistReason?: string | null | undefined;
|
|
2386
3705
|
lastUpdatedBy?: {
|
|
2387
|
-
email: string;
|
|
2388
3706
|
id: string;
|
|
2389
3707
|
firstName: string;
|
|
2390
3708
|
lastName: string;
|
|
3709
|
+
email: string;
|
|
2391
3710
|
} | null | undefined;
|
|
2392
3711
|
agentClientLinks?: {
|
|
2393
3712
|
agentId: string;
|
|
2394
3713
|
} | null | undefined;
|
|
2395
3714
|
}, {
|
|
2396
|
-
name: string;
|
|
2397
3715
|
id: string;
|
|
2398
|
-
status: "
|
|
2399
|
-
|
|
2400
|
-
updatedAt: string | Date;
|
|
3716
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
3717
|
+
name: string;
|
|
2401
3718
|
crn: string | null;
|
|
2402
|
-
govLink: string;
|
|
3719
|
+
govLink: string | null;
|
|
2403
3720
|
soleTrader: boolean;
|
|
2404
3721
|
director: string;
|
|
3722
|
+
createdAt: string | Date;
|
|
3723
|
+
updatedAt: string | Date;
|
|
2405
3724
|
blacklistReason?: string | null | undefined;
|
|
2406
3725
|
lastUpdatedBy?: {
|
|
2407
|
-
email: string;
|
|
2408
3726
|
id: string;
|
|
2409
3727
|
firstName: string;
|
|
2410
3728
|
lastName: string;
|
|
3729
|
+
email: string;
|
|
2411
3730
|
} | null | undefined;
|
|
2412
3731
|
agentClientLinks?: {
|
|
2413
3732
|
agentId: string;
|
|
@@ -2453,12 +3772,12 @@ export declare const agentClientLinksContract: {
|
|
|
2453
3772
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2454
3773
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2455
3774
|
}, "strip", z.ZodTypeAny, {
|
|
2456
|
-
email: string;
|
|
2457
3775
|
id: string;
|
|
2458
|
-
createdAt: string;
|
|
2459
|
-
updatedAt: string;
|
|
2460
3776
|
firstName: string;
|
|
2461
3777
|
lastName: string;
|
|
3778
|
+
email: string;
|
|
3779
|
+
createdAt: string;
|
|
3780
|
+
updatedAt: string;
|
|
2462
3781
|
phoneNumbers: {
|
|
2463
3782
|
id: string;
|
|
2464
3783
|
phoneNumber: string;
|
|
@@ -2473,19 +3792,19 @@ export declare const agentClientLinksContract: {
|
|
|
2473
3792
|
lastName: string;
|
|
2474
3793
|
}[] | undefined;
|
|
2475
3794
|
}, {
|
|
2476
|
-
email: string;
|
|
2477
3795
|
id: string;
|
|
2478
|
-
createdAt: string | Date;
|
|
2479
|
-
updatedAt: string | Date;
|
|
2480
3796
|
firstName: string;
|
|
2481
3797
|
lastName: string;
|
|
2482
|
-
|
|
3798
|
+
email: string;
|
|
3799
|
+
createdAt: string | Date;
|
|
3800
|
+
updatedAt: string | Date;
|
|
2483
3801
|
phoneNumbers?: {
|
|
2484
3802
|
id: string;
|
|
2485
3803
|
phoneNumber: string;
|
|
2486
3804
|
description?: string | null | undefined;
|
|
2487
3805
|
isPrimary?: boolean | undefined;
|
|
2488
3806
|
}[] | undefined;
|
|
3807
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2489
3808
|
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;
|
|
2490
3809
|
canImpersonateUsers?: {
|
|
2491
3810
|
id: string;
|
|
@@ -2496,8 +3815,9 @@ export declare const agentClientLinksContract: {
|
|
|
2496
3815
|
linkType: z.ZodEnum<["CREATION", "EDIT_SUGGESTION"]>;
|
|
2497
3816
|
suggestedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2498
3817
|
appliedChanges: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2499
|
-
|
|
2500
|
-
|
|
3818
|
+
status: z.ZodEnum<["PENDING_REVIEW", "APPROVED", "REJECTED"]>;
|
|
3819
|
+
reviewedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3820
|
+
reviewer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2501
3821
|
id: z.ZodString;
|
|
2502
3822
|
firstName: z.ZodString;
|
|
2503
3823
|
lastName: z.ZodString;
|
|
@@ -2536,12 +3856,12 @@ export declare const agentClientLinksContract: {
|
|
|
2536
3856
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2537
3857
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
2538
3858
|
}, "strip", z.ZodTypeAny, {
|
|
2539
|
-
email: string;
|
|
2540
3859
|
id: string;
|
|
2541
|
-
createdAt: string;
|
|
2542
|
-
updatedAt: string;
|
|
2543
3860
|
firstName: string;
|
|
2544
3861
|
lastName: string;
|
|
3862
|
+
email: string;
|
|
3863
|
+
createdAt: string;
|
|
3864
|
+
updatedAt: string;
|
|
2545
3865
|
phoneNumbers: {
|
|
2546
3866
|
id: string;
|
|
2547
3867
|
phoneNumber: string;
|
|
@@ -2556,41 +3876,73 @@ export declare const agentClientLinksContract: {
|
|
|
2556
3876
|
lastName: string;
|
|
2557
3877
|
}[] | undefined;
|
|
2558
3878
|
}, {
|
|
2559
|
-
email: string;
|
|
2560
3879
|
id: string;
|
|
2561
|
-
createdAt: string | Date;
|
|
2562
|
-
updatedAt: string | Date;
|
|
2563
3880
|
firstName: string;
|
|
2564
3881
|
lastName: string;
|
|
2565
|
-
|
|
3882
|
+
email: string;
|
|
3883
|
+
createdAt: string | Date;
|
|
3884
|
+
updatedAt: string | Date;
|
|
2566
3885
|
phoneNumbers?: {
|
|
2567
3886
|
id: string;
|
|
2568
3887
|
phoneNumber: string;
|
|
2569
3888
|
description?: string | null | undefined;
|
|
2570
3889
|
isPrimary?: boolean | undefined;
|
|
2571
3890
|
}[] | undefined;
|
|
3891
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2572
3892
|
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;
|
|
2573
3893
|
canImpersonateUsers?: {
|
|
2574
3894
|
id: string;
|
|
2575
3895
|
firstName: string;
|
|
2576
3896
|
lastName: string;
|
|
2577
3897
|
}[] | undefined;
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
3898
|
+
}>>>;
|
|
3899
|
+
reviewedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>>>;
|
|
3900
|
+
createdBy: z.ZodString;
|
|
3901
|
+
creator: z.ZodObject<{
|
|
3902
|
+
id: z.ZodString;
|
|
3903
|
+
firstName: z.ZodString;
|
|
3904
|
+
lastName: z.ZodString;
|
|
3905
|
+
email: z.ZodString;
|
|
3906
|
+
phoneNumbers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3907
|
+
id: z.ZodString;
|
|
3908
|
+
phoneNumber: z.ZodString;
|
|
3909
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3910
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
3911
|
+
}, "strip", z.ZodTypeAny, {
|
|
3912
|
+
id: string;
|
|
3913
|
+
phoneNumber: string;
|
|
3914
|
+
isPrimary: boolean;
|
|
3915
|
+
description?: string | null | undefined;
|
|
3916
|
+
}, {
|
|
3917
|
+
id: string;
|
|
3918
|
+
phoneNumber: string;
|
|
3919
|
+
description?: string | null | undefined;
|
|
3920
|
+
isPrimary?: boolean | undefined;
|
|
3921
|
+
}>, "many">>>;
|
|
3922
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS"]>, "many">>;
|
|
3923
|
+
office: z.ZodOptional<z.ZodNullable<z.ZodEnum<["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"]>>>;
|
|
3924
|
+
canImpersonateUsers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3925
|
+
id: z.ZodString;
|
|
3926
|
+
firstName: z.ZodString;
|
|
3927
|
+
lastName: z.ZodString;
|
|
3928
|
+
}, "strip", z.ZodTypeAny, {
|
|
3929
|
+
id: string;
|
|
3930
|
+
firstName: string;
|
|
3931
|
+
lastName: string;
|
|
3932
|
+
}, {
|
|
3933
|
+
id: string;
|
|
3934
|
+
firstName: string;
|
|
3935
|
+
lastName: string;
|
|
3936
|
+
}>, "many">>;
|
|
3937
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3938
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3939
|
+
}, "strip", z.ZodTypeAny, {
|
|
2589
3940
|
id: string;
|
|
2590
|
-
createdAt: string;
|
|
2591
|
-
updatedAt: string;
|
|
2592
3941
|
firstName: string;
|
|
2593
3942
|
lastName: string;
|
|
3943
|
+
email: string;
|
|
3944
|
+
createdAt: string;
|
|
3945
|
+
updatedAt: string;
|
|
2594
3946
|
phoneNumbers: {
|
|
2595
3947
|
id: string;
|
|
2596
3948
|
phoneNumber: string;
|
|
@@ -2604,37 +3956,87 @@ export declare const agentClientLinksContract: {
|
|
|
2604
3956
|
firstName: string;
|
|
2605
3957
|
lastName: string;
|
|
2606
3958
|
}[] | undefined;
|
|
2607
|
-
}
|
|
3959
|
+
}, {
|
|
3960
|
+
id: string;
|
|
3961
|
+
firstName: string;
|
|
3962
|
+
lastName: string;
|
|
3963
|
+
email: string;
|
|
3964
|
+
createdAt: string | Date;
|
|
3965
|
+
updatedAt: string | Date;
|
|
3966
|
+
phoneNumbers?: {
|
|
3967
|
+
id: string;
|
|
3968
|
+
phoneNumber: string;
|
|
3969
|
+
description?: string | null | undefined;
|
|
3970
|
+
isPrimary?: boolean | undefined;
|
|
3971
|
+
}[] | undefined;
|
|
3972
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
3973
|
+
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;
|
|
3974
|
+
canImpersonateUsers?: {
|
|
3975
|
+
id: string;
|
|
3976
|
+
firstName: string;
|
|
3977
|
+
lastName: string;
|
|
3978
|
+
}[] | undefined;
|
|
3979
|
+
}>;
|
|
3980
|
+
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3981
|
+
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
3982
|
+
}, "strip", z.ZodTypeAny, {
|
|
3983
|
+
id: string;
|
|
3984
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
3985
|
+
createdAt: string;
|
|
3986
|
+
updatedAt: string;
|
|
3987
|
+
agentId: string;
|
|
3988
|
+
clientId: string;
|
|
2608
3989
|
client: {
|
|
2609
|
-
name: string;
|
|
2610
3990
|
id: string;
|
|
2611
|
-
status: "
|
|
2612
|
-
|
|
2613
|
-
updatedAt: string;
|
|
3991
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
3992
|
+
name: string;
|
|
2614
3993
|
crn: string | null;
|
|
2615
|
-
govLink: string;
|
|
3994
|
+
govLink: string | null;
|
|
2616
3995
|
soleTrader: boolean;
|
|
2617
3996
|
director: string;
|
|
3997
|
+
createdAt: string;
|
|
3998
|
+
updatedAt: string;
|
|
2618
3999
|
blacklistReason?: string | null | undefined;
|
|
2619
4000
|
lastUpdatedBy?: {
|
|
2620
|
-
email: string;
|
|
2621
4001
|
id: string;
|
|
2622
4002
|
firstName: string;
|
|
2623
4003
|
lastName: string;
|
|
4004
|
+
email: string;
|
|
2624
4005
|
} | null | undefined;
|
|
2625
4006
|
agentClientLinks?: {
|
|
2626
4007
|
agentId: string;
|
|
2627
4008
|
} | null | undefined;
|
|
2628
4009
|
};
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
creator: {
|
|
2632
|
-
email: string;
|
|
4010
|
+
createdBy: string;
|
|
4011
|
+
agent: {
|
|
2633
4012
|
id: string;
|
|
4013
|
+
firstName: string;
|
|
4014
|
+
lastName: string;
|
|
4015
|
+
email: string;
|
|
2634
4016
|
createdAt: string;
|
|
2635
4017
|
updatedAt: string;
|
|
4018
|
+
phoneNumbers: {
|
|
4019
|
+
id: string;
|
|
4020
|
+
phoneNumber: string;
|
|
4021
|
+
isPrimary: boolean;
|
|
4022
|
+
description?: string | null | undefined;
|
|
4023
|
+
}[];
|
|
4024
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
4025
|
+
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;
|
|
4026
|
+
canImpersonateUsers?: {
|
|
4027
|
+
id: string;
|
|
4028
|
+
firstName: string;
|
|
4029
|
+
lastName: string;
|
|
4030
|
+
}[] | undefined;
|
|
4031
|
+
};
|
|
4032
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
4033
|
+
creator: {
|
|
4034
|
+
id: string;
|
|
2636
4035
|
firstName: string;
|
|
2637
4036
|
lastName: string;
|
|
4037
|
+
email: string;
|
|
4038
|
+
createdAt: string;
|
|
4039
|
+
updatedAt: string;
|
|
2638
4040
|
phoneNumbers: {
|
|
2639
4041
|
id: string;
|
|
2640
4042
|
phoneNumber: string;
|
|
@@ -2651,70 +4053,94 @@ export declare const agentClientLinksContract: {
|
|
|
2651
4053
|
};
|
|
2652
4054
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
2653
4055
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
id: string;
|
|
2657
|
-
agentId: string;
|
|
2658
|
-
createdAt: string | Date;
|
|
2659
|
-
updatedAt: string | Date;
|
|
2660
|
-
agent: {
|
|
2661
|
-
email: string;
|
|
4056
|
+
reviewedBy?: string | null | undefined;
|
|
4057
|
+
reviewer?: {
|
|
2662
4058
|
id: string;
|
|
2663
|
-
createdAt: string | Date;
|
|
2664
|
-
updatedAt: string | Date;
|
|
2665
4059
|
firstName: string;
|
|
2666
4060
|
lastName: string;
|
|
2667
|
-
|
|
2668
|
-
|
|
4061
|
+
email: string;
|
|
4062
|
+
createdAt: string;
|
|
4063
|
+
updatedAt: string;
|
|
4064
|
+
phoneNumbers: {
|
|
2669
4065
|
id: string;
|
|
2670
4066
|
phoneNumber: string;
|
|
4067
|
+
isPrimary: boolean;
|
|
2671
4068
|
description?: string | null | undefined;
|
|
2672
|
-
|
|
2673
|
-
|
|
4069
|
+
}[];
|
|
4070
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2674
4071
|
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;
|
|
2675
4072
|
canImpersonateUsers?: {
|
|
2676
4073
|
id: string;
|
|
2677
4074
|
firstName: string;
|
|
2678
4075
|
lastName: string;
|
|
2679
4076
|
}[] | undefined;
|
|
2680
|
-
};
|
|
4077
|
+
} | null | undefined;
|
|
4078
|
+
reviewedAt?: string | null | undefined;
|
|
4079
|
+
}, {
|
|
4080
|
+
id: string;
|
|
4081
|
+
status: "APPROVED" | "REJECTED" | "PENDING_REVIEW";
|
|
4082
|
+
createdAt: string | Date;
|
|
4083
|
+
updatedAt: string | Date;
|
|
4084
|
+
agentId: string;
|
|
4085
|
+
clientId: string;
|
|
2681
4086
|
client: {
|
|
2682
|
-
name: string;
|
|
2683
4087
|
id: string;
|
|
2684
|
-
status: "
|
|
2685
|
-
|
|
2686
|
-
updatedAt: string | Date;
|
|
4088
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
4089
|
+
name: string;
|
|
2687
4090
|
crn: string | null;
|
|
2688
|
-
govLink: string;
|
|
4091
|
+
govLink: string | null;
|
|
2689
4092
|
soleTrader: boolean;
|
|
2690
4093
|
director: string;
|
|
4094
|
+
createdAt: string | Date;
|
|
4095
|
+
updatedAt: string | Date;
|
|
2691
4096
|
blacklistReason?: string | null | undefined;
|
|
2692
4097
|
lastUpdatedBy?: {
|
|
2693
|
-
email: string;
|
|
2694
4098
|
id: string;
|
|
2695
4099
|
firstName: string;
|
|
2696
4100
|
lastName: string;
|
|
4101
|
+
email: string;
|
|
2697
4102
|
} | null | undefined;
|
|
2698
4103
|
agentClientLinks?: {
|
|
2699
4104
|
agentId: string;
|
|
2700
4105
|
} | null | undefined;
|
|
2701
4106
|
};
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
creator: {
|
|
2705
|
-
email: string;
|
|
4107
|
+
createdBy: string;
|
|
4108
|
+
agent: {
|
|
2706
4109
|
id: string;
|
|
4110
|
+
firstName: string;
|
|
4111
|
+
lastName: string;
|
|
4112
|
+
email: string;
|
|
2707
4113
|
createdAt: string | Date;
|
|
2708
4114
|
updatedAt: string | Date;
|
|
4115
|
+
phoneNumbers?: {
|
|
4116
|
+
id: string;
|
|
4117
|
+
phoneNumber: string;
|
|
4118
|
+
description?: string | null | undefined;
|
|
4119
|
+
isPrimary?: boolean | undefined;
|
|
4120
|
+
}[] | undefined;
|
|
4121
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
4122
|
+
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;
|
|
4123
|
+
canImpersonateUsers?: {
|
|
4124
|
+
id: string;
|
|
4125
|
+
firstName: string;
|
|
4126
|
+
lastName: string;
|
|
4127
|
+
}[] | undefined;
|
|
4128
|
+
};
|
|
4129
|
+
linkType: "CREATION" | "EDIT_SUGGESTION";
|
|
4130
|
+
creator: {
|
|
4131
|
+
id: string;
|
|
2709
4132
|
firstName: string;
|
|
2710
4133
|
lastName: string;
|
|
2711
|
-
|
|
4134
|
+
email: string;
|
|
4135
|
+
createdAt: string | Date;
|
|
4136
|
+
updatedAt: string | Date;
|
|
2712
4137
|
phoneNumbers?: {
|
|
2713
4138
|
id: string;
|
|
2714
4139
|
phoneNumber: string;
|
|
2715
4140
|
description?: string | null | undefined;
|
|
2716
4141
|
isPrimary?: boolean | undefined;
|
|
2717
4142
|
}[] | undefined;
|
|
4143
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
2718
4144
|
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;
|
|
2719
4145
|
canImpersonateUsers?: {
|
|
2720
4146
|
id: string;
|
|
@@ -2724,6 +4150,29 @@ export declare const agentClientLinksContract: {
|
|
|
2724
4150
|
};
|
|
2725
4151
|
suggestedChanges?: Record<string, unknown> | null | undefined;
|
|
2726
4152
|
appliedChanges?: Record<string, unknown> | null | undefined;
|
|
4153
|
+
reviewedBy?: string | null | undefined;
|
|
4154
|
+
reviewer?: {
|
|
4155
|
+
id: string;
|
|
4156
|
+
firstName: string;
|
|
4157
|
+
lastName: string;
|
|
4158
|
+
email: string;
|
|
4159
|
+
createdAt: string | Date;
|
|
4160
|
+
updatedAt: string | Date;
|
|
4161
|
+
phoneNumbers?: {
|
|
4162
|
+
id: string;
|
|
4163
|
+
phoneNumber: string;
|
|
4164
|
+
description?: string | null | undefined;
|
|
4165
|
+
isPrimary?: boolean | undefined;
|
|
4166
|
+
}[] | undefined;
|
|
4167
|
+
roles?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
|
|
4168
|
+
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;
|
|
4169
|
+
canImpersonateUsers?: {
|
|
4170
|
+
id: string;
|
|
4171
|
+
firstName: string;
|
|
4172
|
+
lastName: string;
|
|
4173
|
+
}[] | undefined;
|
|
4174
|
+
} | null | undefined;
|
|
4175
|
+
reviewedAt?: string | Date | null | undefined;
|
|
2727
4176
|
}>;
|
|
2728
4177
|
404: z.ZodObject<{
|
|
2729
4178
|
statusCode: z.ZodNumber;
|