vr-commons 1.0.133 → 1.0.135
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/account.validations.d.ts +16 -16
- package/dist/validations/admin.devicePayment.validations.d.ts +37 -27
- package/dist/validations/admin.devicePayment.validations.js +4 -4
- package/dist/validations/admin.devices.validations.d.ts +16 -16
- package/dist/validations/appSpecs.validations.d.ts +4 -4
- package/dist/validations/appeals.validations.d.ts +8 -8
- package/dist/validations/bans.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +9 -9
- package/dist/validations/moderation.validations.d.ts +57 -57
- package/dist/validations/payinstallment.validations.d.ts +38 -23
- package/dist/validations/payinstallment.validations.js +10 -6
- package/dist/validations/pricing.validations.d.ts +30 -30
- package/dist/validations/pricings.validations.d.ts +8 -8
- package/dist/validations/product.validations.d.ts +12 -12
- package/dist/validations/profiles.validations.d.ts +22 -22
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +52 -52
- package/package.json +2 -2
|
@@ -179,6 +179,9 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
179
179
|
maxOrderQuantity?: number | undefined;
|
|
180
180
|
}>;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
params: {
|
|
183
|
+
id: string;
|
|
184
|
+
};
|
|
182
185
|
body: {
|
|
183
186
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
184
187
|
isActive?: boolean | undefined;
|
|
@@ -193,10 +196,10 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
193
196
|
minOrderQuantity?: number | undefined;
|
|
194
197
|
maxOrderQuantity?: number | undefined;
|
|
195
198
|
};
|
|
199
|
+
}, {
|
|
196
200
|
params: {
|
|
197
201
|
id: string;
|
|
198
202
|
};
|
|
199
|
-
}, {
|
|
200
203
|
body: {
|
|
201
204
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
202
205
|
isActive?: boolean | undefined;
|
|
@@ -211,9 +214,6 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
211
214
|
minOrderQuantity?: number | undefined;
|
|
212
215
|
maxOrderQuantity?: number | undefined;
|
|
213
216
|
};
|
|
214
|
-
params: {
|
|
215
|
-
id: string;
|
|
216
|
-
};
|
|
217
217
|
}>;
|
|
218
218
|
export declare const getPricingSchema: z.ZodObject<{
|
|
219
219
|
params: z.ZodObject<{
|
|
@@ -245,8 +245,8 @@ export declare const getPricingsSchema: z.ZodObject<{
|
|
|
245
245
|
sortBy: z.ZodOptional<z.ZodEnum<["name", "totalAmount", "createdAt", "updatedAt"]>>;
|
|
246
246
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
247
247
|
}, "strip", z.ZodTypeAny, {
|
|
248
|
-
search?: string | undefined;
|
|
249
248
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
249
|
+
search?: string | undefined;
|
|
250
250
|
limit?: number | undefined;
|
|
251
251
|
isActive?: "true" | "false" | undefined;
|
|
252
252
|
page?: number | undefined;
|
|
@@ -256,8 +256,8 @@ export declare const getPricingsSchema: z.ZodObject<{
|
|
|
256
256
|
minAmount?: number | undefined;
|
|
257
257
|
maxAmount?: number | undefined;
|
|
258
258
|
}, {
|
|
259
|
-
search?: string | undefined;
|
|
260
259
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
260
|
+
search?: string | undefined;
|
|
261
261
|
limit?: string | undefined;
|
|
262
262
|
isActive?: "true" | "false" | undefined;
|
|
263
263
|
page?: string | undefined;
|
|
@@ -269,8 +269,8 @@ export declare const getPricingsSchema: z.ZodObject<{
|
|
|
269
269
|
}>;
|
|
270
270
|
}, "strip", z.ZodTypeAny, {
|
|
271
271
|
query: {
|
|
272
|
-
search?: string | undefined;
|
|
273
272
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
273
|
+
search?: string | undefined;
|
|
274
274
|
limit?: number | undefined;
|
|
275
275
|
isActive?: "true" | "false" | undefined;
|
|
276
276
|
page?: number | undefined;
|
|
@@ -282,8 +282,8 @@ export declare const getPricingsSchema: z.ZodObject<{
|
|
|
282
282
|
};
|
|
283
283
|
}, {
|
|
284
284
|
query: {
|
|
285
|
-
search?: string | undefined;
|
|
286
285
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
286
|
+
search?: string | undefined;
|
|
287
287
|
limit?: string | undefined;
|
|
288
288
|
isActive?: "true" | "false" | undefined;
|
|
289
289
|
page?: string | undefined;
|
|
@@ -51,25 +51,25 @@ export declare const updateProductSchema: z.ZodObject<{
|
|
|
51
51
|
stock?: unknown;
|
|
52
52
|
}>;
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
params: {
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
54
57
|
body: {
|
|
55
58
|
isActive?: boolean | undefined;
|
|
56
59
|
description?: string | null | undefined;
|
|
57
60
|
name?: string | undefined;
|
|
58
61
|
stock?: number | undefined;
|
|
59
62
|
};
|
|
63
|
+
}, {
|
|
60
64
|
params: {
|
|
61
65
|
id: string;
|
|
62
66
|
};
|
|
63
|
-
}, {
|
|
64
67
|
body: {
|
|
65
68
|
isActive?: unknown;
|
|
66
69
|
description?: unknown;
|
|
67
70
|
name?: unknown;
|
|
68
71
|
stock?: unknown;
|
|
69
72
|
};
|
|
70
|
-
params: {
|
|
71
|
-
id: string;
|
|
72
|
-
};
|
|
73
73
|
}>;
|
|
74
74
|
export declare const getProductSchema: z.ZodObject<{
|
|
75
75
|
params: z.ZodObject<{
|
|
@@ -199,25 +199,25 @@ export declare const updateStockSchema: z.ZodObject<{
|
|
|
199
199
|
amount: z.ZodNumber;
|
|
200
200
|
}, "strip", z.ZodTypeAny, {
|
|
201
201
|
amount: number;
|
|
202
|
-
operation: "
|
|
202
|
+
operation: "set" | "increment" | "decrement";
|
|
203
203
|
}, {
|
|
204
204
|
amount: number;
|
|
205
|
-
operation: "
|
|
205
|
+
operation: "set" | "increment" | "decrement";
|
|
206
206
|
}>;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
|
-
body: {
|
|
209
|
-
amount: number;
|
|
210
|
-
operation: "increment" | "decrement" | "set";
|
|
211
|
-
};
|
|
212
208
|
params: {
|
|
213
209
|
id: string;
|
|
214
210
|
};
|
|
215
|
-
}, {
|
|
216
211
|
body: {
|
|
217
212
|
amount: number;
|
|
218
|
-
operation: "
|
|
213
|
+
operation: "set" | "increment" | "decrement";
|
|
219
214
|
};
|
|
215
|
+
}, {
|
|
220
216
|
params: {
|
|
221
217
|
id: string;
|
|
222
218
|
};
|
|
219
|
+
body: {
|
|
220
|
+
amount: number;
|
|
221
|
+
operation: "set" | "increment" | "decrement";
|
|
222
|
+
};
|
|
223
223
|
}>;
|
|
@@ -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
|
};
|
|
@@ -381,16 +381,16 @@ export declare const viewProfileSchema: z.ZodObject<{
|
|
|
381
381
|
headers: {
|
|
382
382
|
authorization: string;
|
|
383
383
|
};
|
|
384
|
+
params?: {} | undefined;
|
|
384
385
|
body?: {} | undefined;
|
|
385
386
|
query?: {} | undefined;
|
|
386
|
-
params?: {} | undefined;
|
|
387
387
|
}, {
|
|
388
388
|
headers: {
|
|
389
389
|
authorization: string;
|
|
390
390
|
};
|
|
391
|
+
params?: {} | undefined;
|
|
391
392
|
body?: {} | undefined;
|
|
392
393
|
query?: {} | undefined;
|
|
393
|
-
params?: {} | 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
|
};
|
|
@@ -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
|
}>;
|