vr-commons 1.0.177 → 1.0.178
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/admin.devicePayments.utils.d.ts +2 -1
- package/dist/utils/admin/admin.devicePayments.utils.js +13 -9
- package/dist/utils/users/users.verification.utils.js +2 -2
- package/dist/validations/admin/admin.bans.validations.d.ts +8 -8
- package/dist/validations/admin/admin.devicePayments.validations.d.ts +59 -59
- package/dist/validations/admin/admin.devicePayments.validations.js +1 -1
- package/dist/validations/admin/admin.devices.validations.d.ts +22 -22
- package/dist/validations/admin/admin.eventLogs.validations.d.ts +14 -14
- package/dist/validations/admin/admin.installments.validations.d.ts +16 -16
- package/dist/validations/admin/admin.installments.validations.js +1 -1
- package/dist/validations/admin/admin.pricings.validations.d.ts +60 -60
- package/dist/validations/admin/admin.products.validations.d.ts +32 -32
- package/dist/validations/admin/admin.suspensions.validations.d.ts +8 -8
- package/dist/validations/admin/admin.users.validations.d.ts +44 -44
- package/dist/validations/shared/shared.appSpecs.validations.d.ts +14 -14
- package/dist/validations/shared/shared.moderation.validations.d.ts +111 -111
- package/dist/validations/shared/shared.profiles.validations.d.ts +36 -36
- package/dist/validations/users/users.devicePaymentPlans.validations.d.ts +16 -16
- package/package.json +1 -1
|
@@ -241,6 +241,9 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
241
241
|
authorization: string;
|
|
242
242
|
}>;
|
|
243
243
|
}, "strip", z.ZodTypeAny, {
|
|
244
|
+
params: {
|
|
245
|
+
userId: string;
|
|
246
|
+
};
|
|
244
247
|
body: {
|
|
245
248
|
firstName?: string | undefined;
|
|
246
249
|
lastName?: string | undefined;
|
|
@@ -254,13 +257,13 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
254
257
|
isDeactivated?: boolean | undefined;
|
|
255
258
|
contactValue?: string | undefined;
|
|
256
259
|
};
|
|
257
|
-
params: {
|
|
258
|
-
userId: string;
|
|
259
|
-
};
|
|
260
260
|
headers: {
|
|
261
261
|
authorization: string;
|
|
262
262
|
};
|
|
263
263
|
}, {
|
|
264
|
+
params: {
|
|
265
|
+
userId: string;
|
|
266
|
+
};
|
|
264
267
|
body: {
|
|
265
268
|
firstName?: string | undefined;
|
|
266
269
|
lastName?: string | undefined;
|
|
@@ -274,9 +277,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
274
277
|
isDeactivated?: boolean | undefined;
|
|
275
278
|
contactValue?: string | undefined;
|
|
276
279
|
};
|
|
277
|
-
params: {
|
|
278
|
-
userId: string;
|
|
279
|
-
};
|
|
280
280
|
headers: {
|
|
281
281
|
authorization: string;
|
|
282
282
|
};
|
|
@@ -296,31 +296,31 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
296
296
|
sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt", "gender"]>>;
|
|
297
297
|
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
|
|
299
300
|
order: "asc" | "desc";
|
|
300
|
-
|
|
301
|
-
search?: string | undefined;
|
|
301
|
+
page?: number | undefined;
|
|
302
302
|
limit?: number | undefined;
|
|
303
|
+
search?: string | undefined;
|
|
303
304
|
gender?: "male" | "female" | undefined;
|
|
304
305
|
isActive?: boolean | undefined;
|
|
305
306
|
isDeactivated?: boolean | undefined;
|
|
306
307
|
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
307
|
-
page?: number | undefined;
|
|
308
308
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
309
309
|
startDate?: string | undefined;
|
|
310
310
|
endDate?: string | undefined;
|
|
311
311
|
}, {
|
|
312
|
+
page?: string | undefined;
|
|
313
|
+
limit?: string | undefined;
|
|
312
314
|
search?: string | undefined;
|
|
315
|
+
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
313
316
|
order?: "asc" | "desc" | undefined;
|
|
314
|
-
limit?: string | undefined;
|
|
315
317
|
gender?: "male" | "female" | undefined;
|
|
316
318
|
isActive?: "true" | "false" | undefined;
|
|
317
319
|
isDeactivated?: "true" | "false" | undefined;
|
|
318
320
|
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
319
|
-
page?: string | undefined;
|
|
320
321
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
321
322
|
startDate?: string | undefined;
|
|
322
323
|
endDate?: string | undefined;
|
|
323
|
-
sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
|
|
324
324
|
}>;
|
|
325
325
|
headers: z.ZodObject<{
|
|
326
326
|
authorization: z.ZodString;
|
|
@@ -331,15 +331,15 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
331
331
|
}>;
|
|
332
332
|
}, "strip", z.ZodTypeAny, {
|
|
333
333
|
query: {
|
|
334
|
+
sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
|
|
334
335
|
order: "asc" | "desc";
|
|
335
|
-
|
|
336
|
-
search?: string | undefined;
|
|
336
|
+
page?: number | undefined;
|
|
337
337
|
limit?: number | undefined;
|
|
338
|
+
search?: string | undefined;
|
|
338
339
|
gender?: "male" | "female" | undefined;
|
|
339
340
|
isActive?: boolean | undefined;
|
|
340
341
|
isDeactivated?: boolean | undefined;
|
|
341
342
|
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
342
|
-
page?: number | undefined;
|
|
343
343
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
344
344
|
startDate?: string | undefined;
|
|
345
345
|
endDate?: string | undefined;
|
|
@@ -349,18 +349,18 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
349
349
|
};
|
|
350
350
|
}, {
|
|
351
351
|
query: {
|
|
352
|
+
page?: string | undefined;
|
|
353
|
+
limit?: string | undefined;
|
|
352
354
|
search?: string | undefined;
|
|
355
|
+
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
353
356
|
order?: "asc" | "desc" | undefined;
|
|
354
|
-
limit?: string | undefined;
|
|
355
357
|
gender?: "male" | "female" | undefined;
|
|
356
358
|
isActive?: "true" | "false" | undefined;
|
|
357
359
|
isDeactivated?: "true" | "false" | undefined;
|
|
358
360
|
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
359
|
-
page?: string | undefined;
|
|
360
361
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
361
362
|
startDate?: string | undefined;
|
|
362
363
|
endDate?: string | undefined;
|
|
363
|
-
sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
|
|
364
364
|
};
|
|
365
365
|
headers: {
|
|
366
366
|
authorization: string;
|
|
@@ -381,16 +381,16 @@ export declare const viewProfileSchema: z.ZodObject<{
|
|
|
381
381
|
headers: {
|
|
382
382
|
authorization: string;
|
|
383
383
|
};
|
|
384
|
-
body?: {} | undefined;
|
|
385
|
-
query?: {} | undefined;
|
|
386
384
|
params?: {} | undefined;
|
|
385
|
+
query?: {} | undefined;
|
|
386
|
+
body?: {} | undefined;
|
|
387
387
|
}, {
|
|
388
388
|
headers: {
|
|
389
389
|
authorization: string;
|
|
390
390
|
};
|
|
391
|
-
body?: {} | undefined;
|
|
392
|
-
query?: {} | undefined;
|
|
393
391
|
params?: {} | undefined;
|
|
392
|
+
query?: {} | undefined;
|
|
393
|
+
body?: {} | undefined;
|
|
394
394
|
}>;
|
|
395
395
|
export declare const passengerSignupSchema: z.ZodObject<{
|
|
396
396
|
body: z.ZodEffects<z.ZodObject<{
|
|
@@ -640,8 +640,8 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
640
640
|
birthYear: number;
|
|
641
641
|
contactValue: string;
|
|
642
642
|
};
|
|
643
|
-
query?: {} | undefined;
|
|
644
643
|
params?: {} | undefined;
|
|
644
|
+
query?: {} | undefined;
|
|
645
645
|
}, {
|
|
646
646
|
body: {
|
|
647
647
|
firstName: string;
|
|
@@ -654,8 +654,8 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
654
654
|
birthYear: number;
|
|
655
655
|
contactValue: string;
|
|
656
656
|
};
|
|
657
|
-
query?: {} | undefined;
|
|
658
657
|
params?: {} | undefined;
|
|
658
|
+
query?: {} | undefined;
|
|
659
659
|
}>;
|
|
660
660
|
export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
661
661
|
params: z.ZodObject<{
|
|
@@ -745,6 +745,9 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
745
745
|
authorization: string;
|
|
746
746
|
}>;
|
|
747
747
|
}, "strip", z.ZodTypeAny, {
|
|
748
|
+
params: {
|
|
749
|
+
id: string;
|
|
750
|
+
};
|
|
748
751
|
body: {
|
|
749
752
|
firstName?: string | undefined;
|
|
750
753
|
lastName?: string | undefined;
|
|
@@ -756,14 +759,14 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
756
759
|
birthYear?: number | undefined;
|
|
757
760
|
contactValue?: string | undefined;
|
|
758
761
|
};
|
|
759
|
-
params: {
|
|
760
|
-
id: string;
|
|
761
|
-
};
|
|
762
762
|
headers: {
|
|
763
763
|
authorization: string;
|
|
764
764
|
};
|
|
765
765
|
query?: {} | undefined;
|
|
766
766
|
}, {
|
|
767
|
+
params: {
|
|
768
|
+
id: string;
|
|
769
|
+
};
|
|
767
770
|
body: {
|
|
768
771
|
firstName?: string | undefined;
|
|
769
772
|
lastName?: string | undefined;
|
|
@@ -775,9 +778,6 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
775
778
|
birthYear?: number | undefined;
|
|
776
779
|
contactValue?: string | undefined;
|
|
777
780
|
};
|
|
778
|
-
params: {
|
|
779
|
-
id: string;
|
|
780
|
-
};
|
|
781
781
|
headers: {
|
|
782
782
|
authorization: string;
|
|
783
783
|
};
|
|
@@ -1010,22 +1010,22 @@ export declare const confirmVerificationSchema: z.ZodObject<{
|
|
|
1010
1010
|
authorization: string;
|
|
1011
1011
|
}>;
|
|
1012
1012
|
}, "strip", z.ZodTypeAny, {
|
|
1013
|
-
body: {
|
|
1014
|
-
otp: string;
|
|
1015
|
-
};
|
|
1016
1013
|
params: {
|
|
1017
1014
|
contactId: string;
|
|
1018
1015
|
};
|
|
1016
|
+
body: {
|
|
1017
|
+
otp: string;
|
|
1018
|
+
};
|
|
1019
1019
|
headers: {
|
|
1020
1020
|
authorization: string;
|
|
1021
1021
|
};
|
|
1022
1022
|
}, {
|
|
1023
|
-
body: {
|
|
1024
|
-
otp: string;
|
|
1025
|
-
};
|
|
1026
1023
|
params: {
|
|
1027
1024
|
contactId: string;
|
|
1028
1025
|
};
|
|
1026
|
+
body: {
|
|
1027
|
+
otp: string;
|
|
1028
|
+
};
|
|
1029
1029
|
headers: {
|
|
1030
1030
|
authorization: string;
|
|
1031
1031
|
};
|
|
@@ -7,33 +7,33 @@ export declare const listUserPaymentPlansSchema: z.ZodObject<{
|
|
|
7
7
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "status"]>>;
|
|
8
8
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
limit: number;
|
|
11
10
|
page: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
limit: number;
|
|
12
|
+
status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
13
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
14
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
15
15
|
}, {
|
|
16
|
-
|
|
17
|
-
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
16
|
+
status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
18
17
|
page?: string | undefined;
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
limit?: string | undefined;
|
|
19
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
20
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
query: {
|
|
24
|
-
limit: number;
|
|
25
24
|
page: number;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
limit: number;
|
|
26
|
+
status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
27
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
28
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
query: {
|
|
32
|
-
|
|
33
|
-
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
32
|
+
status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
34
33
|
page?: string | undefined;
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
limit?: string | undefined;
|
|
35
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
36
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
37
37
|
};
|
|
38
38
|
}>;
|
|
39
39
|
export declare const getUserPaymentPlanSchema: z.ZodObject<{
|