vr-commons 1.0.147 → 1.0.149
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/utils/admin.device.utils.d.ts +17 -1
- package/dist/utils/admin.device.utils.js +45 -0
- package/dist/validations/admin.devicePayment.validations.d.ts +20 -20
- package/dist/validations/admin.devices.validations.d.ts +108 -59
- package/dist/validations/admin.devices.validations.js +66 -36
- package/dist/validations/appSpecs.validations.d.ts +2 -2
- package/dist/validations/auth.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +4 -4
- package/dist/validations/eventlogs.admin.validations.d.ts +22 -22
- package/dist/validations/index.d.ts +1 -1
- package/dist/validations/index.js +8 -7
- package/dist/validations/moderation.validations.d.ts +21 -21
- package/dist/validations/pricings.validations.d.ts +22 -22
- package/dist/validations/product.validations.d.ts +16 -16
- package/dist/validations/profiles.validations.d.ts +30 -30
- package/dist/validations/users.admin.validations.d.ts +12 -12
- package/package.json +2 -2
|
@@ -26,7 +26,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
26
26
|
birthDate: number;
|
|
27
27
|
birthMonth: number;
|
|
28
28
|
birthYear: number;
|
|
29
|
-
role: "
|
|
29
|
+
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
30
30
|
contactValue: string;
|
|
31
31
|
jacketId?: string | null | undefined;
|
|
32
32
|
password?: string | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
38
38
|
birthDate: number;
|
|
39
39
|
birthMonth: number;
|
|
40
40
|
birthYear: number;
|
|
41
|
-
role: "
|
|
41
|
+
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
42
42
|
contactValue: string;
|
|
43
43
|
jacketId?: string | null | undefined;
|
|
44
44
|
password?: string | undefined;
|
|
@@ -50,7 +50,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
50
50
|
birthDate: number;
|
|
51
51
|
birthMonth: number;
|
|
52
52
|
birthYear: number;
|
|
53
|
-
role: "
|
|
53
|
+
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
54
54
|
contactValue: string;
|
|
55
55
|
jacketId?: string | null | undefined;
|
|
56
56
|
password?: string | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
62
62
|
birthDate: number;
|
|
63
63
|
birthMonth: number;
|
|
64
64
|
birthYear: number;
|
|
65
|
-
role: "
|
|
65
|
+
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
66
66
|
contactValue: string;
|
|
67
67
|
jacketId?: string | null | undefined;
|
|
68
68
|
password?: string | 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: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
87
87
|
contactValue: string;
|
|
88
88
|
jacketId?: string | null | undefined;
|
|
89
89
|
password?: string | undefined;
|
|
@@ -100,7 +100,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
100
100
|
birthDate: number;
|
|
101
101
|
birthMonth: number;
|
|
102
102
|
birthYear: number;
|
|
103
|
-
role: "
|
|
103
|
+
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
104
104
|
contactValue: string;
|
|
105
105
|
jacketId?: string | null | undefined;
|
|
106
106
|
password?: string | undefined;
|
|
@@ -161,6 +161,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
161
161
|
birthMonth: z.ZodOptional<z.ZodNumber>;
|
|
162
162
|
birthYear: z.ZodOptional<z.ZodNumber>;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
isActive?: boolean | undefined;
|
|
164
165
|
firstName?: string | undefined;
|
|
165
166
|
lastName?: string | undefined;
|
|
166
167
|
password?: string | undefined;
|
|
@@ -169,10 +170,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
169
170
|
birthDate?: number | undefined;
|
|
170
171
|
birthMonth?: number | undefined;
|
|
171
172
|
birthYear?: number | undefined;
|
|
172
|
-
isActive?: boolean | undefined;
|
|
173
173
|
isDeactivated?: boolean | undefined;
|
|
174
174
|
contactValue?: string | undefined;
|
|
175
175
|
}, {
|
|
176
|
+
isActive?: boolean | undefined;
|
|
176
177
|
firstName?: string | undefined;
|
|
177
178
|
lastName?: string | undefined;
|
|
178
179
|
password?: string | undefined;
|
|
@@ -181,10 +182,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
181
182
|
birthDate?: number | undefined;
|
|
182
183
|
birthMonth?: number | undefined;
|
|
183
184
|
birthYear?: number | undefined;
|
|
184
|
-
isActive?: boolean | undefined;
|
|
185
185
|
isDeactivated?: boolean | undefined;
|
|
186
186
|
contactValue?: string | undefined;
|
|
187
187
|
}>, {
|
|
188
|
+
isActive?: boolean | undefined;
|
|
188
189
|
firstName?: string | undefined;
|
|
189
190
|
lastName?: string | undefined;
|
|
190
191
|
password?: string | undefined;
|
|
@@ -193,10 +194,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
193
194
|
birthDate?: number | undefined;
|
|
194
195
|
birthMonth?: number | undefined;
|
|
195
196
|
birthYear?: number | undefined;
|
|
196
|
-
isActive?: boolean | undefined;
|
|
197
197
|
isDeactivated?: boolean | undefined;
|
|
198
198
|
contactValue?: string | undefined;
|
|
199
199
|
}, {
|
|
200
|
+
isActive?: boolean | undefined;
|
|
200
201
|
firstName?: string | undefined;
|
|
201
202
|
lastName?: string | undefined;
|
|
202
203
|
password?: string | undefined;
|
|
@@ -205,10 +206,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
205
206
|
birthDate?: number | undefined;
|
|
206
207
|
birthMonth?: number | undefined;
|
|
207
208
|
birthYear?: number | undefined;
|
|
208
|
-
isActive?: boolean | undefined;
|
|
209
209
|
isDeactivated?: boolean | undefined;
|
|
210
210
|
contactValue?: string | undefined;
|
|
211
211
|
}>, {
|
|
212
|
+
isActive?: boolean | undefined;
|
|
212
213
|
firstName?: string | undefined;
|
|
213
214
|
lastName?: string | undefined;
|
|
214
215
|
password?: string | undefined;
|
|
@@ -217,10 +218,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
217
218
|
birthDate?: number | undefined;
|
|
218
219
|
birthMonth?: number | undefined;
|
|
219
220
|
birthYear?: number | undefined;
|
|
220
|
-
isActive?: boolean | undefined;
|
|
221
221
|
isDeactivated?: boolean | undefined;
|
|
222
222
|
contactValue?: string | undefined;
|
|
223
223
|
}, {
|
|
224
|
+
isActive?: boolean | undefined;
|
|
224
225
|
firstName?: string | undefined;
|
|
225
226
|
lastName?: string | undefined;
|
|
226
227
|
password?: string | undefined;
|
|
@@ -229,7 +230,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
229
230
|
birthDate?: number | undefined;
|
|
230
231
|
birthMonth?: number | undefined;
|
|
231
232
|
birthYear?: number | undefined;
|
|
232
|
-
isActive?: boolean | undefined;
|
|
233
233
|
isDeactivated?: boolean | undefined;
|
|
234
234
|
contactValue?: string | undefined;
|
|
235
235
|
}>;
|
|
@@ -242,6 +242,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
242
242
|
}>;
|
|
243
243
|
}, "strip", z.ZodTypeAny, {
|
|
244
244
|
body: {
|
|
245
|
+
isActive?: boolean | undefined;
|
|
245
246
|
firstName?: string | undefined;
|
|
246
247
|
lastName?: string | undefined;
|
|
247
248
|
password?: string | undefined;
|
|
@@ -250,7 +251,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
250
251
|
birthDate?: number | undefined;
|
|
251
252
|
birthMonth?: number | undefined;
|
|
252
253
|
birthYear?: number | undefined;
|
|
253
|
-
isActive?: boolean | undefined;
|
|
254
254
|
isDeactivated?: boolean | undefined;
|
|
255
255
|
contactValue?: string | undefined;
|
|
256
256
|
};
|
|
@@ -262,6 +262,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
262
262
|
};
|
|
263
263
|
}, {
|
|
264
264
|
body: {
|
|
265
|
+
isActive?: boolean | undefined;
|
|
265
266
|
firstName?: string | undefined;
|
|
266
267
|
lastName?: string | undefined;
|
|
267
268
|
password?: string | undefined;
|
|
@@ -270,7 +271,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
270
271
|
birthDate?: number | undefined;
|
|
271
272
|
birthMonth?: number | undefined;
|
|
272
273
|
birthYear?: number | undefined;
|
|
273
|
-
isActive?: boolean | undefined;
|
|
274
274
|
isDeactivated?: boolean | undefined;
|
|
275
275
|
contactValue?: string | undefined;
|
|
276
276
|
};
|
|
@@ -297,30 +297,30 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
297
297
|
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
299
299
|
order: "asc" | "desc";
|
|
300
|
-
sortBy: "
|
|
301
|
-
search?: string | undefined;
|
|
300
|
+
sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
|
|
302
301
|
limit?: number | undefined;
|
|
303
|
-
|
|
302
|
+
search?: string | undefined;
|
|
304
303
|
isActive?: boolean | undefined;
|
|
304
|
+
gender?: "male" | "female" | undefined;
|
|
305
305
|
isDeactivated?: boolean | undefined;
|
|
306
|
-
role?: "
|
|
306
|
+
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
307
307
|
page?: number | undefined;
|
|
308
308
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
309
309
|
startDate?: string | undefined;
|
|
310
310
|
endDate?: string | undefined;
|
|
311
311
|
}, {
|
|
312
|
-
search?: string | undefined;
|
|
313
312
|
order?: "asc" | "desc" | undefined;
|
|
314
313
|
limit?: string | undefined;
|
|
315
|
-
|
|
314
|
+
search?: string | undefined;
|
|
316
315
|
isActive?: "true" | "false" | undefined;
|
|
316
|
+
gender?: "male" | "female" | undefined;
|
|
317
317
|
isDeactivated?: "true" | "false" | undefined;
|
|
318
|
-
role?: "
|
|
318
|
+
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
319
319
|
page?: string | undefined;
|
|
320
320
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
321
321
|
startDate?: string | undefined;
|
|
322
322
|
endDate?: string | undefined;
|
|
323
|
-
sortBy?: "
|
|
323
|
+
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
324
324
|
}>;
|
|
325
325
|
headers: z.ZodObject<{
|
|
326
326
|
authorization: z.ZodString;
|
|
@@ -332,13 +332,13 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
332
332
|
}, "strip", z.ZodTypeAny, {
|
|
333
333
|
query: {
|
|
334
334
|
order: "asc" | "desc";
|
|
335
|
-
sortBy: "
|
|
336
|
-
search?: string | undefined;
|
|
335
|
+
sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
|
|
337
336
|
limit?: number | undefined;
|
|
338
|
-
|
|
337
|
+
search?: string | undefined;
|
|
339
338
|
isActive?: boolean | undefined;
|
|
339
|
+
gender?: "male" | "female" | undefined;
|
|
340
340
|
isDeactivated?: boolean | undefined;
|
|
341
|
-
role?: "
|
|
341
|
+
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
342
342
|
page?: number | undefined;
|
|
343
343
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
344
344
|
startDate?: string | undefined;
|
|
@@ -349,18 +349,18 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
349
349
|
};
|
|
350
350
|
}, {
|
|
351
351
|
query: {
|
|
352
|
-
search?: string | undefined;
|
|
353
352
|
order?: "asc" | "desc" | undefined;
|
|
354
353
|
limit?: string | undefined;
|
|
355
|
-
|
|
354
|
+
search?: string | undefined;
|
|
356
355
|
isActive?: "true" | "false" | undefined;
|
|
356
|
+
gender?: "male" | "female" | undefined;
|
|
357
357
|
isDeactivated?: "true" | "false" | undefined;
|
|
358
|
-
role?: "
|
|
358
|
+
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
359
359
|
page?: string | undefined;
|
|
360
360
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
361
361
|
startDate?: string | undefined;
|
|
362
362
|
endDate?: string | undefined;
|
|
363
|
-
sortBy?: "
|
|
363
|
+
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
364
364
|
};
|
|
365
365
|
headers: {
|
|
366
366
|
authorization: string;
|
|
@@ -212,52 +212,52 @@ export declare const getUsersSchema: z.ZodObject<{
|
|
|
212
212
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "firstName", "lastName", "gender"]>>;
|
|
213
213
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
search?: string | undefined;
|
|
216
215
|
limit?: number | undefined;
|
|
217
|
-
|
|
216
|
+
search?: string | undefined;
|
|
218
217
|
isActive?: "true" | "false" | undefined;
|
|
218
|
+
gender?: "male" | "female" | undefined;
|
|
219
219
|
isDeactivated?: "true" | "false" | undefined;
|
|
220
220
|
role?: string | undefined;
|
|
221
221
|
page?: number | undefined;
|
|
222
222
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
223
|
-
sortBy?: "
|
|
223
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
224
224
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
search?: string | undefined;
|
|
227
226
|
limit?: string | undefined;
|
|
228
|
-
|
|
227
|
+
search?: string | undefined;
|
|
229
228
|
isActive?: "true" | "false" | undefined;
|
|
229
|
+
gender?: "male" | "female" | undefined;
|
|
230
230
|
isDeactivated?: "true" | "false" | undefined;
|
|
231
231
|
role?: string | undefined;
|
|
232
232
|
page?: string | undefined;
|
|
233
233
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
234
|
-
sortBy?: "
|
|
234
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
235
235
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
query: {
|
|
239
|
-
search?: string | undefined;
|
|
240
239
|
limit?: number | undefined;
|
|
241
|
-
|
|
240
|
+
search?: string | undefined;
|
|
242
241
|
isActive?: "true" | "false" | undefined;
|
|
242
|
+
gender?: "male" | "female" | undefined;
|
|
243
243
|
isDeactivated?: "true" | "false" | undefined;
|
|
244
244
|
role?: string | undefined;
|
|
245
245
|
page?: number | undefined;
|
|
246
246
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
247
|
-
sortBy?: "
|
|
247
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
248
248
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
query: {
|
|
252
|
-
search?: string | undefined;
|
|
253
252
|
limit?: string | undefined;
|
|
254
|
-
|
|
253
|
+
search?: string | undefined;
|
|
255
254
|
isActive?: "true" | "false" | undefined;
|
|
255
|
+
gender?: "male" | "female" | undefined;
|
|
256
256
|
isDeactivated?: "true" | "false" | undefined;
|
|
257
257
|
role?: string | undefined;
|
|
258
258
|
page?: string | undefined;
|
|
259
259
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
260
|
-
sortBy?: "
|
|
260
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
261
261
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
262
262
|
};
|
|
263
263
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vr-commons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.149",
|
|
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.75",
|
|
107
107
|
"zod": "^3.25.20"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|