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
|
@@ -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
|
contactValue: 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
|
contactValue: 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<{
|
|
@@ -135,6 +135,9 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
135
135
|
contactValue?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
params: {
|
|
139
|
+
userId: string;
|
|
140
|
+
};
|
|
138
141
|
body: {
|
|
139
142
|
firstName?: string | undefined;
|
|
140
143
|
lastName?: string | undefined;
|
|
@@ -146,10 +149,10 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
146
149
|
birthYear?: number | undefined;
|
|
147
150
|
contactValue?: string | undefined;
|
|
148
151
|
};
|
|
152
|
+
}, {
|
|
149
153
|
params: {
|
|
150
154
|
userId: string;
|
|
151
155
|
};
|
|
152
|
-
}, {
|
|
153
156
|
body: {
|
|
154
157
|
firstName?: string | undefined;
|
|
155
158
|
lastName?: string | undefined;
|
|
@@ -161,9 +164,6 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
161
164
|
birthYear?: number | undefined;
|
|
162
165
|
contactValue?: string | undefined;
|
|
163
166
|
};
|
|
164
|
-
params: {
|
|
165
|
-
userId: string;
|
|
166
|
-
};
|
|
167
167
|
}>;
|
|
168
168
|
export declare const deleteUserSchema: z.ZodObject<{
|
|
169
169
|
params: z.ZodObject<{
|
|
@@ -212,53 +212,53 @@ 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
|
-
|
|
215
|
+
page?: number | undefined;
|
|
216
216
|
limit?: number | undefined;
|
|
217
|
+
search?: string | undefined;
|
|
218
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
219
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
217
220
|
gender?: "male" | "female" | undefined;
|
|
218
221
|
isActive?: "true" | "false" | undefined;
|
|
219
222
|
isDeactivated?: "true" | "false" | undefined;
|
|
220
223
|
role?: string | undefined;
|
|
221
|
-
page?: number | undefined;
|
|
222
224
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
223
|
-
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
224
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
|
|
226
|
+
page?: string | undefined;
|
|
227
227
|
limit?: string | undefined;
|
|
228
|
+
search?: string | undefined;
|
|
229
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
230
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
228
231
|
gender?: "male" | "female" | undefined;
|
|
229
232
|
isActive?: "true" | "false" | undefined;
|
|
230
233
|
isDeactivated?: "true" | "false" | undefined;
|
|
231
234
|
role?: string | undefined;
|
|
232
|
-
page?: string | undefined;
|
|
233
235
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
234
|
-
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
235
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
query: {
|
|
239
|
-
|
|
239
|
+
page?: number | undefined;
|
|
240
240
|
limit?: number | undefined;
|
|
241
|
+
search?: string | undefined;
|
|
242
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
243
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
241
244
|
gender?: "male" | "female" | undefined;
|
|
242
245
|
isActive?: "true" | "false" | undefined;
|
|
243
246
|
isDeactivated?: "true" | "false" | undefined;
|
|
244
247
|
role?: string | undefined;
|
|
245
|
-
page?: number | undefined;
|
|
246
248
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
247
|
-
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
248
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
query: {
|
|
252
|
-
|
|
252
|
+
page?: string | undefined;
|
|
253
253
|
limit?: string | undefined;
|
|
254
|
+
search?: string | undefined;
|
|
255
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
256
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
254
257
|
gender?: "male" | "female" | undefined;
|
|
255
258
|
isActive?: "true" | "false" | undefined;
|
|
256
259
|
isDeactivated?: "true" | "false" | undefined;
|
|
257
260
|
role?: string | undefined;
|
|
258
|
-
page?: string | undefined;
|
|
259
261
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
260
|
-
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
261
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
262
262
|
};
|
|
263
263
|
}>;
|
|
264
264
|
export declare const hireAdminSchema: z.ZodObject<{
|
|
@@ -377,21 +377,21 @@ export declare const promoteAdminSchema: z.ZodObject<{
|
|
|
377
377
|
password?: string | undefined;
|
|
378
378
|
}>;
|
|
379
379
|
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
params: {
|
|
381
|
+
userId: string;
|
|
382
|
+
};
|
|
380
383
|
body: {
|
|
381
384
|
targetRole: "ADMIN" | "SUPER_ADMIN";
|
|
382
385
|
password?: string | undefined;
|
|
383
386
|
};
|
|
387
|
+
}, {
|
|
384
388
|
params: {
|
|
385
389
|
userId: string;
|
|
386
390
|
};
|
|
387
|
-
}, {
|
|
388
391
|
body: {
|
|
389
392
|
targetRole: "ADMIN" | "SUPER_ADMIN";
|
|
390
393
|
password?: string | undefined;
|
|
391
394
|
};
|
|
392
|
-
params: {
|
|
393
|
-
userId: string;
|
|
394
|
-
};
|
|
395
395
|
}>;
|
|
396
396
|
export declare const demoteAdminSchema: z.ZodObject<{
|
|
397
397
|
params: z.ZodObject<{
|
|
@@ -409,19 +409,19 @@ export declare const demoteAdminSchema: z.ZodObject<{
|
|
|
409
409
|
targetRole: "ADMIN" | "AGENT";
|
|
410
410
|
}>;
|
|
411
411
|
}, "strip", z.ZodTypeAny, {
|
|
412
|
-
body: {
|
|
413
|
-
targetRole: "ADMIN" | "AGENT";
|
|
414
|
-
};
|
|
415
412
|
params: {
|
|
416
413
|
userId: string;
|
|
417
414
|
};
|
|
418
|
-
}, {
|
|
419
415
|
body: {
|
|
420
416
|
targetRole: "ADMIN" | "AGENT";
|
|
421
417
|
};
|
|
418
|
+
}, {
|
|
422
419
|
params: {
|
|
423
420
|
userId: string;
|
|
424
421
|
};
|
|
422
|
+
body: {
|
|
423
|
+
targetRole: "ADMIN" | "AGENT";
|
|
424
|
+
};
|
|
425
425
|
}>;
|
|
426
426
|
export declare const fireEmployeeSchema: z.ZodObject<{
|
|
427
427
|
params: z.ZodObject<{
|
|
@@ -439,19 +439,19 @@ export declare const fireEmployeeSchema: z.ZodObject<{
|
|
|
439
439
|
reason?: string | undefined;
|
|
440
440
|
}>;
|
|
441
441
|
}, "strip", z.ZodTypeAny, {
|
|
442
|
-
body: {
|
|
443
|
-
reason?: string | undefined;
|
|
444
|
-
};
|
|
445
442
|
params: {
|
|
446
443
|
userId: string;
|
|
447
444
|
};
|
|
448
|
-
}, {
|
|
449
445
|
body: {
|
|
450
446
|
reason?: string | undefined;
|
|
451
447
|
};
|
|
448
|
+
}, {
|
|
452
449
|
params: {
|
|
453
450
|
userId: string;
|
|
454
451
|
};
|
|
452
|
+
body: {
|
|
453
|
+
reason?: string | undefined;
|
|
454
|
+
};
|
|
455
455
|
}>;
|
|
456
456
|
export declare const updateAdminSchema: z.ZodObject<{
|
|
457
457
|
params: z.ZodObject<{
|
|
@@ -503,6 +503,9 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
503
503
|
contactValue?: string | undefined;
|
|
504
504
|
}>;
|
|
505
505
|
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
params: {
|
|
507
|
+
userId: string;
|
|
508
|
+
};
|
|
506
509
|
body: {
|
|
507
510
|
firstName?: string | undefined;
|
|
508
511
|
lastName?: string | undefined;
|
|
@@ -512,10 +515,10 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
512
515
|
birthYear?: number | undefined;
|
|
513
516
|
contactValue?: string | undefined;
|
|
514
517
|
};
|
|
518
|
+
}, {
|
|
515
519
|
params: {
|
|
516
520
|
userId: string;
|
|
517
521
|
};
|
|
518
|
-
}, {
|
|
519
522
|
body: {
|
|
520
523
|
firstName?: string | undefined;
|
|
521
524
|
lastName?: string | undefined;
|
|
@@ -525,9 +528,6 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
525
528
|
birthYear?: number | undefined;
|
|
526
529
|
contactValue?: string | undefined;
|
|
527
530
|
};
|
|
528
|
-
params: {
|
|
529
|
-
userId: string;
|
|
530
|
-
};
|
|
531
531
|
}>;
|
|
532
532
|
export declare const resetPasswordSchema: z.ZodObject<{
|
|
533
533
|
params: z.ZodObject<{
|
|
@@ -606,25 +606,25 @@ export declare const addUserContactSchema: z.ZodObject<{
|
|
|
606
606
|
isPrimary?: boolean | undefined;
|
|
607
607
|
}>;
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
|
+
params: {
|
|
610
|
+
userId: string;
|
|
611
|
+
};
|
|
609
612
|
body: {
|
|
610
613
|
contactValue: string;
|
|
611
614
|
type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
612
615
|
isVerified?: boolean | undefined;
|
|
613
616
|
isPrimary?: boolean | undefined;
|
|
614
617
|
};
|
|
618
|
+
}, {
|
|
615
619
|
params: {
|
|
616
620
|
userId: string;
|
|
617
621
|
};
|
|
618
|
-
}, {
|
|
619
622
|
body: {
|
|
620
623
|
contactValue: string;
|
|
621
624
|
type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
622
625
|
isVerified?: boolean | undefined;
|
|
623
626
|
isPrimary?: boolean | undefined;
|
|
624
627
|
};
|
|
625
|
-
params: {
|
|
626
|
-
userId: string;
|
|
627
|
-
};
|
|
628
628
|
}>;
|
|
629
629
|
export declare const verifyUserContactSchema: z.ZodObject<{
|
|
630
630
|
params: z.ZodObject<{
|
|
@@ -845,6 +845,9 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
845
845
|
maintenanceEndAt?: string | null | undefined;
|
|
846
846
|
}>;
|
|
847
847
|
}, "strip", z.ZodTypeAny, {
|
|
848
|
+
params: {
|
|
849
|
+
id: string;
|
|
850
|
+
};
|
|
848
851
|
body: {
|
|
849
852
|
appShortName?: string | null | undefined;
|
|
850
853
|
appDescription?: string | null | undefined;
|
|
@@ -919,10 +922,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
919
922
|
maintenanceStartAt?: string | null | undefined;
|
|
920
923
|
maintenanceEndAt?: string | null | undefined;
|
|
921
924
|
};
|
|
925
|
+
}, {
|
|
922
926
|
params: {
|
|
923
927
|
id: string;
|
|
924
928
|
};
|
|
925
|
-
}, {
|
|
926
929
|
body: {
|
|
927
930
|
appShortName?: string | null | undefined;
|
|
928
931
|
appDescription?: string | null | undefined;
|
|
@@ -997,9 +1000,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
997
1000
|
maintenanceStartAt?: string | null | undefined;
|
|
998
1001
|
maintenanceEndAt?: string | null | undefined;
|
|
999
1002
|
};
|
|
1000
|
-
params: {
|
|
1001
|
-
id: string;
|
|
1002
|
-
};
|
|
1003
1003
|
}>;
|
|
1004
1004
|
export declare const listAppSpecsSchema: z.ZodObject<{
|
|
1005
1005
|
query: z.ZodObject<{
|
|
@@ -1009,33 +1009,33 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
1009
1009
|
sortBy: z.ZodOptional<z.ZodEnum<["appName", "createdAt", "updatedAt"]>>;
|
|
1010
1010
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
1011
1011
|
}, "strip", z.ZodTypeAny, {
|
|
1012
|
-
limit: number;
|
|
1013
1012
|
page: number;
|
|
1013
|
+
limit: number;
|
|
1014
1014
|
search?: string | undefined;
|
|
1015
1015
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
1016
|
-
sortOrder?: "
|
|
1016
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1017
1017
|
}, {
|
|
1018
|
-
search?: string | undefined;
|
|
1019
|
-
limit?: string | undefined;
|
|
1020
1018
|
page?: string | undefined;
|
|
1019
|
+
limit?: string | undefined;
|
|
1020
|
+
search?: string | undefined;
|
|
1021
1021
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
1022
|
-
sortOrder?: "
|
|
1022
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1023
1023
|
}>;
|
|
1024
1024
|
}, "strip", z.ZodTypeAny, {
|
|
1025
1025
|
query: {
|
|
1026
|
-
limit: number;
|
|
1027
1026
|
page: number;
|
|
1027
|
+
limit: number;
|
|
1028
1028
|
search?: string | undefined;
|
|
1029
1029
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
1030
|
-
sortOrder?: "
|
|
1030
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1031
1031
|
};
|
|
1032
1032
|
}, {
|
|
1033
1033
|
query: {
|
|
1034
|
-
search?: string | undefined;
|
|
1035
|
-
limit?: string | undefined;
|
|
1036
1034
|
page?: string | undefined;
|
|
1035
|
+
limit?: string | undefined;
|
|
1036
|
+
search?: string | undefined;
|
|
1037
1037
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
1038
|
-
sortOrder?: "
|
|
1038
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
1039
1039
|
};
|
|
1040
1040
|
}>;
|
|
1041
1041
|
export declare const getAppSpecsSchema: z.ZodObject<{
|