vr-commons 1.0.111 → 1.0.112
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/validations/admin.devicePayment.validations.d.ts +56 -51
- package/dist/validations/admin.devicePayment.validations.js +10 -3
- package/dist/validations/admin.devices.validations.d.ts +36 -36
- package/dist/validations/appSpecs.validations.d.ts +18 -18
- package/dist/validations/appeals.validations.d.ts +8 -8
- package/dist/validations/auth.validations.d.ts +2 -2
- package/dist/validations/bans.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +16 -16
- package/dist/validations/eventlogs.admin.validations.d.ts +18 -18
- package/dist/validations/moderation.validations.d.ts +114 -114
- package/dist/validations/payinstallment.validations.d.ts +10 -10
- package/dist/validations/pricing.validations.d.ts +30 -30
- package/dist/validations/pricings.validations.d.ts +30 -30
- package/dist/validations/product.validations.d.ts +28 -28
- package/dist/validations/profiles.validations.d.ts +38 -38
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +40 -40
- package/package.json +2 -2
|
@@ -22,7 +22,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
22
22
|
birthDate: number;
|
|
23
23
|
birthMonth: number;
|
|
24
24
|
birthYear: number;
|
|
25
|
-
role: "
|
|
25
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
26
26
|
phoneNumber: string;
|
|
27
27
|
jacketId?: string | null | undefined;
|
|
28
28
|
email?: string | null | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
35
35
|
birthDate: number;
|
|
36
36
|
birthMonth: number;
|
|
37
37
|
birthYear: number;
|
|
38
|
-
role: "
|
|
38
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
39
39
|
phoneNumber: string;
|
|
40
40
|
jacketId?: string | null | undefined;
|
|
41
41
|
email?: string | null | undefined;
|
|
@@ -48,7 +48,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
48
48
|
birthDate: number;
|
|
49
49
|
birthMonth: number;
|
|
50
50
|
birthYear: number;
|
|
51
|
-
role: "
|
|
51
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
52
52
|
phoneNumber: string;
|
|
53
53
|
jacketId?: string | null | undefined;
|
|
54
54
|
email?: string | null | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
61
61
|
birthDate: number;
|
|
62
62
|
birthMonth: number;
|
|
63
63
|
birthYear: number;
|
|
64
|
-
role: "
|
|
64
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
65
65
|
phoneNumber: string;
|
|
66
66
|
jacketId?: string | null | undefined;
|
|
67
67
|
email?: string | null | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
83
83
|
birthDate: number;
|
|
84
84
|
birthMonth: number;
|
|
85
85
|
birthYear: number;
|
|
86
|
-
role: "
|
|
86
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
87
87
|
phoneNumber: string;
|
|
88
88
|
jacketId?: string | null | undefined;
|
|
89
89
|
email?: string | null | undefined;
|
|
@@ -101,7 +101,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
101
101
|
birthDate: number;
|
|
102
102
|
birthMonth: number;
|
|
103
103
|
birthYear: number;
|
|
104
|
-
role: "
|
|
104
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
105
105
|
phoneNumber: string;
|
|
106
106
|
jacketId?: string | null | undefined;
|
|
107
107
|
email?: string | null | undefined;
|
|
@@ -257,6 +257,9 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
257
257
|
authorization: string;
|
|
258
258
|
}>;
|
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
params: {
|
|
261
|
+
userId: string;
|
|
262
|
+
};
|
|
260
263
|
body: {
|
|
261
264
|
firstName?: string | undefined;
|
|
262
265
|
lastName?: string | undefined;
|
|
@@ -272,13 +275,13 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
272
275
|
phoneNumber?: string | undefined;
|
|
273
276
|
isSuspended?: boolean | undefined;
|
|
274
277
|
};
|
|
275
|
-
params: {
|
|
276
|
-
userId: string;
|
|
277
|
-
};
|
|
278
278
|
headers: {
|
|
279
279
|
authorization: string;
|
|
280
280
|
};
|
|
281
281
|
}, {
|
|
282
|
+
params: {
|
|
283
|
+
userId: string;
|
|
284
|
+
};
|
|
282
285
|
body: {
|
|
283
286
|
firstName?: string | undefined;
|
|
284
287
|
lastName?: string | undefined;
|
|
@@ -294,9 +297,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
294
297
|
phoneNumber?: string | undefined;
|
|
295
298
|
isSuspended?: boolean | undefined;
|
|
296
299
|
};
|
|
297
|
-
params: {
|
|
298
|
-
userId: string;
|
|
299
|
-
};
|
|
300
300
|
headers: {
|
|
301
301
|
authorization: string;
|
|
302
302
|
};
|
|
@@ -316,31 +316,31 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
316
316
|
sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt", "gender"]>>;
|
|
317
317
|
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
318
318
|
}, "strip", z.ZodTypeAny, {
|
|
319
|
-
order: "asc" | "desc";
|
|
320
319
|
sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
|
|
321
|
-
|
|
320
|
+
order: "asc" | "desc";
|
|
321
|
+
page?: number | undefined;
|
|
322
322
|
limit?: number | undefined;
|
|
323
|
+
search?: string | undefined;
|
|
323
324
|
gender?: "male" | "female" | undefined;
|
|
324
325
|
isActive?: boolean | undefined;
|
|
325
|
-
role?: "
|
|
326
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
326
327
|
isBanned?: boolean | undefined;
|
|
327
328
|
isSuspended?: boolean | undefined;
|
|
328
|
-
page?: number | undefined;
|
|
329
329
|
startDate?: string | undefined;
|
|
330
330
|
endDate?: string | undefined;
|
|
331
331
|
}, {
|
|
332
|
+
page?: string | undefined;
|
|
333
|
+
limit?: string | undefined;
|
|
332
334
|
search?: string | undefined;
|
|
335
|
+
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
333
336
|
order?: "asc" | "desc" | undefined;
|
|
334
|
-
limit?: string | undefined;
|
|
335
337
|
gender?: "male" | "female" | undefined;
|
|
336
338
|
isActive?: "true" | "false" | undefined;
|
|
337
|
-
role?: "
|
|
339
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
338
340
|
isBanned?: "true" | "false" | undefined;
|
|
339
341
|
isSuspended?: "true" | "false" | undefined;
|
|
340
|
-
page?: string | undefined;
|
|
341
342
|
startDate?: string | undefined;
|
|
342
343
|
endDate?: string | undefined;
|
|
343
|
-
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
344
344
|
}>;
|
|
345
345
|
headers: z.ZodObject<{
|
|
346
346
|
authorization: z.ZodString;
|
|
@@ -351,16 +351,16 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
351
351
|
}>;
|
|
352
352
|
}, "strip", z.ZodTypeAny, {
|
|
353
353
|
query: {
|
|
354
|
-
order: "asc" | "desc";
|
|
355
354
|
sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
|
|
356
|
-
|
|
355
|
+
order: "asc" | "desc";
|
|
356
|
+
page?: number | undefined;
|
|
357
357
|
limit?: number | undefined;
|
|
358
|
+
search?: string | undefined;
|
|
358
359
|
gender?: "male" | "female" | undefined;
|
|
359
360
|
isActive?: boolean | undefined;
|
|
360
|
-
role?: "
|
|
361
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
361
362
|
isBanned?: boolean | undefined;
|
|
362
363
|
isSuspended?: boolean | undefined;
|
|
363
|
-
page?: number | undefined;
|
|
364
364
|
startDate?: string | undefined;
|
|
365
365
|
endDate?: string | undefined;
|
|
366
366
|
};
|
|
@@ -369,18 +369,18 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
369
369
|
};
|
|
370
370
|
}, {
|
|
371
371
|
query: {
|
|
372
|
+
page?: string | undefined;
|
|
373
|
+
limit?: string | undefined;
|
|
372
374
|
search?: string | undefined;
|
|
375
|
+
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
373
376
|
order?: "asc" | "desc" | undefined;
|
|
374
|
-
limit?: string | undefined;
|
|
375
377
|
gender?: "male" | "female" | undefined;
|
|
376
378
|
isActive?: "true" | "false" | undefined;
|
|
377
|
-
role?: "
|
|
379
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
378
380
|
isBanned?: "true" | "false" | undefined;
|
|
379
381
|
isSuspended?: "true" | "false" | undefined;
|
|
380
|
-
page?: string | undefined;
|
|
381
382
|
startDate?: string | undefined;
|
|
382
383
|
endDate?: string | undefined;
|
|
383
|
-
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
384
384
|
};
|
|
385
385
|
headers: {
|
|
386
386
|
authorization: string;
|
|
@@ -401,16 +401,16 @@ export declare const viewProfileSchema: z.ZodObject<{
|
|
|
401
401
|
headers: {
|
|
402
402
|
authorization: string;
|
|
403
403
|
};
|
|
404
|
+
params?: {} | undefined;
|
|
404
405
|
body?: {} | undefined;
|
|
405
406
|
query?: {} | undefined;
|
|
406
|
-
params?: {} | undefined;
|
|
407
407
|
}, {
|
|
408
408
|
headers: {
|
|
409
409
|
authorization: string;
|
|
410
410
|
};
|
|
411
|
+
params?: {} | undefined;
|
|
411
412
|
body?: {} | undefined;
|
|
412
413
|
query?: {} | undefined;
|
|
413
|
-
params?: {} | undefined;
|
|
414
414
|
}>;
|
|
415
415
|
export declare const passengerSignupSchema: z.ZodObject<{
|
|
416
416
|
body: z.ZodEffects<z.ZodObject<{
|
|
@@ -658,8 +658,8 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
658
658
|
birthYear: number;
|
|
659
659
|
phoneNumber: string;
|
|
660
660
|
};
|
|
661
|
-
query?: {} | undefined;
|
|
662
661
|
params?: {} | undefined;
|
|
662
|
+
query?: {} | undefined;
|
|
663
663
|
}, {
|
|
664
664
|
body: {
|
|
665
665
|
firstName: string;
|
|
@@ -672,8 +672,8 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
672
672
|
birthYear: number;
|
|
673
673
|
phoneNumber: string;
|
|
674
674
|
};
|
|
675
|
-
query?: {} | undefined;
|
|
676
675
|
params?: {} | undefined;
|
|
676
|
+
query?: {} | undefined;
|
|
677
677
|
}>;
|
|
678
678
|
export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
679
679
|
params: z.ZodObject<{
|
|
@@ -763,6 +763,9 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
763
763
|
authorization: string;
|
|
764
764
|
}>;
|
|
765
765
|
}, "strip", z.ZodTypeAny, {
|
|
766
|
+
params: {
|
|
767
|
+
id: string;
|
|
768
|
+
};
|
|
766
769
|
body: {
|
|
767
770
|
firstName?: string | undefined;
|
|
768
771
|
lastName?: string | undefined;
|
|
@@ -774,14 +777,14 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
774
777
|
birthYear?: number | undefined;
|
|
775
778
|
phoneNumber?: string | undefined;
|
|
776
779
|
};
|
|
777
|
-
params: {
|
|
778
|
-
id: string;
|
|
779
|
-
};
|
|
780
780
|
headers: {
|
|
781
781
|
authorization: string;
|
|
782
782
|
};
|
|
783
783
|
query?: {} | undefined;
|
|
784
784
|
}, {
|
|
785
|
+
params: {
|
|
786
|
+
id: string;
|
|
787
|
+
};
|
|
785
788
|
body: {
|
|
786
789
|
firstName?: string | undefined;
|
|
787
790
|
lastName?: string | undefined;
|
|
@@ -793,9 +796,6 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
793
796
|
birthYear?: number | undefined;
|
|
794
797
|
phoneNumber?: string | undefined;
|
|
795
798
|
};
|
|
796
|
-
params: {
|
|
797
|
-
id: string;
|
|
798
|
-
};
|
|
799
799
|
headers: {
|
|
800
800
|
authorization: string;
|
|
801
801
|
};
|
|
@@ -35,21 +35,21 @@ export declare const getUserSuspensionsSchema: z.ZodObject<{
|
|
|
35
35
|
includeResolved?: "true" | "false" | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
params: {
|
|
39
|
+
userId: string;
|
|
40
|
+
};
|
|
38
41
|
query: {
|
|
39
42
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
40
43
|
includeResolved?: "true" | "false" | undefined;
|
|
41
44
|
};
|
|
45
|
+
}, {
|
|
42
46
|
params: {
|
|
43
47
|
userId: string;
|
|
44
48
|
};
|
|
45
|
-
}, {
|
|
46
49
|
query: {
|
|
47
50
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
48
51
|
includeResolved?: "true" | "false" | undefined;
|
|
49
52
|
};
|
|
50
|
-
params: {
|
|
51
|
-
userId: string;
|
|
52
|
-
};
|
|
53
53
|
}>;
|
|
54
54
|
export declare const createSuspensionSchema: z.ZodObject<{
|
|
55
55
|
params: z.ZodObject<{
|
|
@@ -70,19 +70,19 @@ export declare const createSuspensionSchema: z.ZodObject<{
|
|
|
70
70
|
endsAt: string;
|
|
71
71
|
}>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
params: {
|
|
74
|
+
userId: string;
|
|
75
|
+
};
|
|
73
76
|
body: {
|
|
74
77
|
reason: string;
|
|
75
78
|
endsAt: string;
|
|
76
79
|
};
|
|
80
|
+
}, {
|
|
77
81
|
params: {
|
|
78
82
|
userId: string;
|
|
79
83
|
};
|
|
80
|
-
}, {
|
|
81
84
|
body: {
|
|
82
85
|
reason: string;
|
|
83
86
|
endsAt: string;
|
|
84
87
|
};
|
|
85
|
-
params: {
|
|
86
|
-
userId: string;
|
|
87
|
-
};
|
|
88
88
|
}>;
|
|
@@ -49,6 +49,9 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
49
49
|
plateNumber?: string | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
params: {
|
|
53
|
+
userId: string;
|
|
54
|
+
};
|
|
52
55
|
body: {
|
|
53
56
|
jacketId: string;
|
|
54
57
|
gender: "male" | "female";
|
|
@@ -58,10 +61,10 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
58
61
|
phoneNumber: string;
|
|
59
62
|
plateNumber?: string | undefined;
|
|
60
63
|
};
|
|
64
|
+
}, {
|
|
61
65
|
params: {
|
|
62
66
|
userId: string;
|
|
63
67
|
};
|
|
64
|
-
}, {
|
|
65
68
|
body: {
|
|
66
69
|
jacketId: string;
|
|
67
70
|
gender: "male" | "female";
|
|
@@ -71,9 +74,6 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
71
74
|
phoneNumber: string;
|
|
72
75
|
plateNumber?: string | undefined;
|
|
73
76
|
};
|
|
74
|
-
params: {
|
|
75
|
-
userId: string;
|
|
76
|
-
};
|
|
77
77
|
}>;
|
|
78
78
|
export declare const updateRiderSchema: z.ZodObject<{
|
|
79
79
|
params: z.ZodObject<{
|
|
@@ -140,6 +140,9 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
140
140
|
phoneNumber?: string | undefined;
|
|
141
141
|
}>;
|
|
142
142
|
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
params: {
|
|
144
|
+
userId: string;
|
|
145
|
+
};
|
|
143
146
|
body: {
|
|
144
147
|
firstName?: string | undefined;
|
|
145
148
|
lastName?: string | undefined;
|
|
@@ -152,10 +155,10 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
152
155
|
birthYear?: number | undefined;
|
|
153
156
|
phoneNumber?: string | undefined;
|
|
154
157
|
};
|
|
158
|
+
}, {
|
|
155
159
|
params: {
|
|
156
160
|
userId: string;
|
|
157
161
|
};
|
|
158
|
-
}, {
|
|
159
162
|
body: {
|
|
160
163
|
firstName?: string | undefined;
|
|
161
164
|
lastName?: string | undefined;
|
|
@@ -168,9 +171,6 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
168
171
|
birthYear?: number | undefined;
|
|
169
172
|
phoneNumber?: string | undefined;
|
|
170
173
|
};
|
|
171
|
-
params: {
|
|
172
|
-
userId: string;
|
|
173
|
-
};
|
|
174
174
|
}>;
|
|
175
175
|
export declare const deleteUserSchema: z.ZodObject<{
|
|
176
176
|
params: z.ZodObject<{
|
|
@@ -218,49 +218,49 @@ export declare const getUsersSchema: z.ZodObject<{
|
|
|
218
218
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "firstName", "lastName", "gender"]>>;
|
|
219
219
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
220
220
|
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
|
|
221
|
+
page?: number | undefined;
|
|
222
222
|
limit?: number | undefined;
|
|
223
|
+
search?: string | undefined;
|
|
224
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
225
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
223
226
|
gender?: "male" | "female" | undefined;
|
|
224
227
|
isActive?: "true" | "false" | undefined;
|
|
225
228
|
isDeactivated?: "true" | "false" | undefined;
|
|
226
229
|
role?: string | undefined;
|
|
227
|
-
page?: number | undefined;
|
|
228
|
-
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
229
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
230
230
|
}, {
|
|
231
|
-
|
|
231
|
+
page?: string | undefined;
|
|
232
232
|
limit?: string | undefined;
|
|
233
|
+
search?: string | undefined;
|
|
234
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
235
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
233
236
|
gender?: "male" | "female" | undefined;
|
|
234
237
|
isActive?: "true" | "false" | undefined;
|
|
235
238
|
isDeactivated?: "true" | "false" | undefined;
|
|
236
239
|
role?: string | undefined;
|
|
237
|
-
page?: string | undefined;
|
|
238
|
-
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
239
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
240
240
|
}>;
|
|
241
241
|
}, "strip", z.ZodTypeAny, {
|
|
242
242
|
query: {
|
|
243
|
-
|
|
243
|
+
page?: number | undefined;
|
|
244
244
|
limit?: number | undefined;
|
|
245
|
+
search?: string | undefined;
|
|
246
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
247
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
245
248
|
gender?: "male" | "female" | undefined;
|
|
246
249
|
isActive?: "true" | "false" | undefined;
|
|
247
250
|
isDeactivated?: "true" | "false" | undefined;
|
|
248
251
|
role?: string | undefined;
|
|
249
|
-
page?: number | undefined;
|
|
250
|
-
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
251
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
252
252
|
};
|
|
253
253
|
}, {
|
|
254
254
|
query: {
|
|
255
|
-
|
|
255
|
+
page?: string | undefined;
|
|
256
256
|
limit?: string | undefined;
|
|
257
|
+
search?: string | undefined;
|
|
258
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
259
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
257
260
|
gender?: "male" | "female" | undefined;
|
|
258
261
|
isActive?: "true" | "false" | undefined;
|
|
259
262
|
isDeactivated?: "true" | "false" | undefined;
|
|
260
263
|
role?: string | undefined;
|
|
261
|
-
page?: string | undefined;
|
|
262
|
-
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
263
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
264
264
|
};
|
|
265
265
|
}>;
|
|
266
266
|
export declare const hireAdminSchema: z.ZodObject<{
|
|
@@ -397,21 +397,21 @@ export declare const promoteAdminSchema: z.ZodObject<{
|
|
|
397
397
|
password?: string | undefined;
|
|
398
398
|
}>;
|
|
399
399
|
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
params: {
|
|
401
|
+
userId: string;
|
|
402
|
+
};
|
|
400
403
|
body: {
|
|
401
404
|
targetRole: "ADMIN" | "SUPER_ADMIN";
|
|
402
405
|
password?: string | undefined;
|
|
403
406
|
};
|
|
407
|
+
}, {
|
|
404
408
|
params: {
|
|
405
409
|
userId: string;
|
|
406
410
|
};
|
|
407
|
-
}, {
|
|
408
411
|
body: {
|
|
409
412
|
targetRole: "ADMIN" | "SUPER_ADMIN";
|
|
410
413
|
password?: string | undefined;
|
|
411
414
|
};
|
|
412
|
-
params: {
|
|
413
|
-
userId: string;
|
|
414
|
-
};
|
|
415
415
|
}>;
|
|
416
416
|
export declare const demoteAdminSchema: z.ZodObject<{
|
|
417
417
|
params: z.ZodObject<{
|
|
@@ -429,19 +429,19 @@ export declare const demoteAdminSchema: z.ZodObject<{
|
|
|
429
429
|
targetRole: "ADMIN" | "AGENT";
|
|
430
430
|
}>;
|
|
431
431
|
}, "strip", z.ZodTypeAny, {
|
|
432
|
-
body: {
|
|
433
|
-
targetRole: "ADMIN" | "AGENT";
|
|
434
|
-
};
|
|
435
432
|
params: {
|
|
436
433
|
userId: string;
|
|
437
434
|
};
|
|
438
|
-
}, {
|
|
439
435
|
body: {
|
|
440
436
|
targetRole: "ADMIN" | "AGENT";
|
|
441
437
|
};
|
|
438
|
+
}, {
|
|
442
439
|
params: {
|
|
443
440
|
userId: string;
|
|
444
441
|
};
|
|
442
|
+
body: {
|
|
443
|
+
targetRole: "ADMIN" | "AGENT";
|
|
444
|
+
};
|
|
445
445
|
}>;
|
|
446
446
|
export declare const fireEmployeeSchema: z.ZodObject<{
|
|
447
447
|
params: z.ZodObject<{
|
|
@@ -459,19 +459,19 @@ export declare const fireEmployeeSchema: z.ZodObject<{
|
|
|
459
459
|
reason?: string | undefined;
|
|
460
460
|
}>;
|
|
461
461
|
}, "strip", z.ZodTypeAny, {
|
|
462
|
-
body: {
|
|
463
|
-
reason?: string | undefined;
|
|
464
|
-
};
|
|
465
462
|
params: {
|
|
466
463
|
userId: string;
|
|
467
464
|
};
|
|
468
|
-
}, {
|
|
469
465
|
body: {
|
|
470
466
|
reason?: string | undefined;
|
|
471
467
|
};
|
|
468
|
+
}, {
|
|
472
469
|
params: {
|
|
473
470
|
userId: string;
|
|
474
471
|
};
|
|
472
|
+
body: {
|
|
473
|
+
reason?: string | undefined;
|
|
474
|
+
};
|
|
475
475
|
}>;
|
|
476
476
|
export declare const updateAdminSchema: z.ZodObject<{
|
|
477
477
|
params: z.ZodObject<{
|
|
@@ -523,6 +523,9 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
523
523
|
birthYear?: number | undefined;
|
|
524
524
|
}>;
|
|
525
525
|
}, "strip", z.ZodTypeAny, {
|
|
526
|
+
params: {
|
|
527
|
+
userId: string;
|
|
528
|
+
};
|
|
526
529
|
body: {
|
|
527
530
|
firstName?: string | undefined;
|
|
528
531
|
lastName?: string | undefined;
|
|
@@ -532,10 +535,10 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
532
535
|
birthMonth?: number | undefined;
|
|
533
536
|
birthYear?: number | undefined;
|
|
534
537
|
};
|
|
538
|
+
}, {
|
|
535
539
|
params: {
|
|
536
540
|
userId: string;
|
|
537
541
|
};
|
|
538
|
-
}, {
|
|
539
542
|
body: {
|
|
540
543
|
firstName?: string | undefined;
|
|
541
544
|
lastName?: string | undefined;
|
|
@@ -545,9 +548,6 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
545
548
|
birthMonth?: number | undefined;
|
|
546
549
|
birthYear?: number | undefined;
|
|
547
550
|
};
|
|
548
|
-
params: {
|
|
549
|
-
userId: string;
|
|
550
|
-
};
|
|
551
551
|
}>;
|
|
552
552
|
export declare const resetPasswordSchema: z.ZodObject<{
|
|
553
553
|
params: z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vr-commons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.112",
|
|
4
4
|
"description": "Shared functions package",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"rimraf": "^5.0.5",
|
|
104
104
|
"streamifier": "^0.1.1",
|
|
105
105
|
"typescript": "^5.3.3",
|
|
106
|
-
"vr-models": "^1.0.
|
|
106
|
+
"vr-models": "^1.0.57",
|
|
107
107
|
"zod": "^3.25.20"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|