vr-commons 1.0.112 → 1.0.114
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/middlewares/auth.users.middlewares.js +2 -2
- package/dist/utils/profiles.utils.d.ts +1 -2
- package/dist/utils/profiles.utils.js +3 -4
- package/dist/validations/account.validations.d.ts +231 -0
- package/dist/validations/account.validations.js +136 -3
- package/dist/validations/admin.devicePayment.validations.d.ts +50 -50
- package/dist/validations/admin.devices.validations.d.ts +28 -28
- 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 +189 -47
- package/dist/validations/auth.validations.js +133 -18
- 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 +14 -14
- package/dist/validations/moderation.validations.d.ts +114 -114
- package/dist/validations/payinstallment.validations.d.ts +5 -5
- 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 +265 -117
- package/dist/validations/profiles.validations.js +135 -46
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +213 -62
- package/dist/validations/users.admin.validations.js +105 -13
- package/package.json +2 -2
|
@@ -21,21 +21,21 @@ export declare const payInstallmentSchema: z.ZodObject<{
|
|
|
21
21
|
provider?: "mtn_momo" | "airtel_money" | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
params: {
|
|
25
|
-
installmentId: string;
|
|
26
|
-
planId: string;
|
|
27
|
-
};
|
|
28
24
|
body: {
|
|
29
25
|
provider: "mtn_momo" | "airtel_money";
|
|
30
26
|
phoneNumber: string;
|
|
31
27
|
};
|
|
32
|
-
}, {
|
|
33
28
|
params: {
|
|
34
29
|
installmentId: string;
|
|
35
30
|
planId: string;
|
|
36
31
|
};
|
|
32
|
+
}, {
|
|
37
33
|
body: {
|
|
38
34
|
phoneNumber: string;
|
|
39
35
|
provider?: "mtn_momo" | "airtel_money" | undefined;
|
|
40
36
|
};
|
|
37
|
+
params: {
|
|
38
|
+
installmentId: string;
|
|
39
|
+
planId: string;
|
|
40
|
+
};
|
|
41
41
|
}>;
|
|
@@ -16,8 +16,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
16
16
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
19
|
-
productId: string;
|
|
20
19
|
name: string;
|
|
20
|
+
productId: string;
|
|
21
21
|
totalAmount: number;
|
|
22
22
|
isActive?: boolean | undefined;
|
|
23
23
|
downPayment?: number | undefined;
|
|
@@ -30,8 +30,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
30
30
|
maxOrderQuantity?: number | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
33
|
-
productId: string;
|
|
34
33
|
name: string;
|
|
34
|
+
productId: string;
|
|
35
35
|
totalAmount: number;
|
|
36
36
|
isActive?: boolean | undefined;
|
|
37
37
|
downPayment?: number | undefined;
|
|
@@ -44,8 +44,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
44
44
|
maxOrderQuantity?: number | undefined;
|
|
45
45
|
}>, {
|
|
46
46
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
47
|
-
productId: string;
|
|
48
47
|
name: string;
|
|
48
|
+
productId: string;
|
|
49
49
|
totalAmount: number;
|
|
50
50
|
isActive?: boolean | undefined;
|
|
51
51
|
downPayment?: number | undefined;
|
|
@@ -58,8 +58,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
58
58
|
maxOrderQuantity?: number | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
61
|
-
productId: string;
|
|
62
61
|
name: string;
|
|
62
|
+
productId: string;
|
|
63
63
|
totalAmount: number;
|
|
64
64
|
isActive?: boolean | undefined;
|
|
65
65
|
downPayment?: number | undefined;
|
|
@@ -74,8 +74,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
75
|
body: {
|
|
76
76
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
77
|
-
productId: string;
|
|
78
77
|
name: string;
|
|
78
|
+
productId: string;
|
|
79
79
|
totalAmount: number;
|
|
80
80
|
isActive?: boolean | undefined;
|
|
81
81
|
downPayment?: number | undefined;
|
|
@@ -90,8 +90,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
90
90
|
}, {
|
|
91
91
|
body: {
|
|
92
92
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
93
|
-
productId: string;
|
|
94
93
|
name: string;
|
|
94
|
+
productId: string;
|
|
95
95
|
totalAmount: number;
|
|
96
96
|
isActive?: boolean | undefined;
|
|
97
97
|
downPayment?: number | undefined;
|
|
@@ -179,9 +179,6 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
179
179
|
maxOrderQuantity?: number | undefined;
|
|
180
180
|
}>;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
params: {
|
|
183
|
-
id: string;
|
|
184
|
-
};
|
|
185
182
|
body: {
|
|
186
183
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
187
184
|
isActive?: boolean | undefined;
|
|
@@ -196,10 +193,10 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
196
193
|
minOrderQuantity?: number | undefined;
|
|
197
194
|
maxOrderQuantity?: number | undefined;
|
|
198
195
|
};
|
|
199
|
-
}, {
|
|
200
196
|
params: {
|
|
201
197
|
id: string;
|
|
202
198
|
};
|
|
199
|
+
}, {
|
|
203
200
|
body: {
|
|
204
201
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
205
202
|
isActive?: boolean | undefined;
|
|
@@ -214,6 +211,9 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
214
211
|
minOrderQuantity?: number | undefined;
|
|
215
212
|
maxOrderQuantity?: number | undefined;
|
|
216
213
|
};
|
|
214
|
+
params: {
|
|
215
|
+
id: string;
|
|
216
|
+
};
|
|
217
217
|
}>;
|
|
218
218
|
export declare const getPricingSchema: z.ZodObject<{
|
|
219
219
|
params: z.ZodObject<{
|
|
@@ -245,51 +245,51 @@ 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;
|
|
248
249
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
249
|
-
productId?: string | undefined;
|
|
250
|
-
page?: number | undefined;
|
|
251
250
|
limit?: number | undefined;
|
|
252
|
-
search?: string | undefined;
|
|
253
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
254
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
255
251
|
isActive?: "true" | "false" | undefined;
|
|
252
|
+
page?: number | undefined;
|
|
253
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
254
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
255
|
+
productId?: string | undefined;
|
|
256
256
|
minAmount?: number | undefined;
|
|
257
257
|
maxAmount?: number | undefined;
|
|
258
258
|
}, {
|
|
259
|
+
search?: string | undefined;
|
|
259
260
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
260
|
-
productId?: string | undefined;
|
|
261
|
-
page?: string | undefined;
|
|
262
261
|
limit?: string | undefined;
|
|
263
|
-
search?: string | undefined;
|
|
264
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
265
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
266
262
|
isActive?: "true" | "false" | undefined;
|
|
263
|
+
page?: string | undefined;
|
|
264
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
265
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
266
|
+
productId?: string | undefined;
|
|
267
267
|
minAmount?: string | undefined;
|
|
268
268
|
maxAmount?: string | undefined;
|
|
269
269
|
}>;
|
|
270
270
|
}, "strip", z.ZodTypeAny, {
|
|
271
271
|
query: {
|
|
272
|
+
search?: string | undefined;
|
|
272
273
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
273
|
-
productId?: string | undefined;
|
|
274
|
-
page?: number | undefined;
|
|
275
274
|
limit?: number | undefined;
|
|
276
|
-
search?: string | undefined;
|
|
277
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
278
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
279
275
|
isActive?: "true" | "false" | undefined;
|
|
276
|
+
page?: number | undefined;
|
|
277
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
278
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
279
|
+
productId?: string | undefined;
|
|
280
280
|
minAmount?: number | undefined;
|
|
281
281
|
maxAmount?: number | undefined;
|
|
282
282
|
};
|
|
283
283
|
}, {
|
|
284
284
|
query: {
|
|
285
|
+
search?: string | undefined;
|
|
285
286
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
286
|
-
productId?: string | undefined;
|
|
287
|
-
page?: string | undefined;
|
|
288
287
|
limit?: string | undefined;
|
|
289
|
-
search?: string | undefined;
|
|
290
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
291
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
292
288
|
isActive?: "true" | "false" | undefined;
|
|
289
|
+
page?: string | undefined;
|
|
290
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
291
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
292
|
+
productId?: string | undefined;
|
|
293
293
|
minAmount?: string | undefined;
|
|
294
294
|
maxAmount?: string | undefined;
|
|
295
295
|
};
|
|
@@ -16,8 +16,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
16
16
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
19
|
-
productId: string;
|
|
20
19
|
name: string;
|
|
20
|
+
productId: string;
|
|
21
21
|
totalAmount: number;
|
|
22
22
|
isActive?: boolean | undefined;
|
|
23
23
|
downPayment?: number | undefined;
|
|
@@ -30,8 +30,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
30
30
|
maxOrderQuantity?: number | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
33
|
-
productId: string;
|
|
34
33
|
name: string;
|
|
34
|
+
productId: string;
|
|
35
35
|
totalAmount: number;
|
|
36
36
|
isActive?: boolean | undefined;
|
|
37
37
|
downPayment?: number | undefined;
|
|
@@ -44,8 +44,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
44
44
|
maxOrderQuantity?: number | undefined;
|
|
45
45
|
}>, {
|
|
46
46
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
47
|
-
productId: string;
|
|
48
47
|
name: string;
|
|
48
|
+
productId: string;
|
|
49
49
|
totalAmount: number;
|
|
50
50
|
isActive?: boolean | undefined;
|
|
51
51
|
downPayment?: number | undefined;
|
|
@@ -58,8 +58,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
58
58
|
maxOrderQuantity?: number | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
61
|
-
productId: string;
|
|
62
61
|
name: string;
|
|
62
|
+
productId: string;
|
|
63
63
|
totalAmount: number;
|
|
64
64
|
isActive?: boolean | undefined;
|
|
65
65
|
downPayment?: number | undefined;
|
|
@@ -74,8 +74,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
75
|
body: {
|
|
76
76
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
77
|
-
productId: string;
|
|
78
77
|
name: string;
|
|
78
|
+
productId: string;
|
|
79
79
|
totalAmount: number;
|
|
80
80
|
isActive?: boolean | undefined;
|
|
81
81
|
downPayment?: number | undefined;
|
|
@@ -90,8 +90,8 @@ export declare const createPricingSchema: z.ZodObject<{
|
|
|
90
90
|
}, {
|
|
91
91
|
body: {
|
|
92
92
|
type: "HIRE_PURCHASE" | "FULL_PAYMENT";
|
|
93
|
-
productId: string;
|
|
94
93
|
name: string;
|
|
94
|
+
productId: string;
|
|
95
95
|
totalAmount: number;
|
|
96
96
|
isActive?: boolean | undefined;
|
|
97
97
|
downPayment?: number | undefined;
|
|
@@ -179,9 +179,6 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
179
179
|
maxOrderQuantity?: number | undefined;
|
|
180
180
|
}>;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
params: {
|
|
183
|
-
id: string;
|
|
184
|
-
};
|
|
185
182
|
body: {
|
|
186
183
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
187
184
|
isActive?: boolean | undefined;
|
|
@@ -196,10 +193,10 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
196
193
|
minOrderQuantity?: number | undefined;
|
|
197
194
|
maxOrderQuantity?: number | undefined;
|
|
198
195
|
};
|
|
199
|
-
}, {
|
|
200
196
|
params: {
|
|
201
197
|
id: string;
|
|
202
198
|
};
|
|
199
|
+
}, {
|
|
203
200
|
body: {
|
|
204
201
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
205
202
|
isActive?: boolean | undefined;
|
|
@@ -214,6 +211,9 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
214
211
|
minOrderQuantity?: number | undefined;
|
|
215
212
|
maxOrderQuantity?: number | undefined;
|
|
216
213
|
};
|
|
214
|
+
params: {
|
|
215
|
+
id: string;
|
|
216
|
+
};
|
|
217
217
|
}>;
|
|
218
218
|
export declare const getPricingSchema: z.ZodObject<{
|
|
219
219
|
params: z.ZodObject<{
|
|
@@ -245,51 +245,51 @@ 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;
|
|
248
249
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
249
|
-
productId?: string | undefined;
|
|
250
|
-
page?: number | undefined;
|
|
251
250
|
limit?: number | undefined;
|
|
252
|
-
search?: string | undefined;
|
|
253
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
254
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
255
251
|
isActive?: "true" | "false" | undefined;
|
|
252
|
+
page?: number | undefined;
|
|
253
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
254
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
255
|
+
productId?: string | undefined;
|
|
256
256
|
minAmount?: number | undefined;
|
|
257
257
|
maxAmount?: number | undefined;
|
|
258
258
|
}, {
|
|
259
|
+
search?: string | undefined;
|
|
259
260
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
260
|
-
productId?: string | undefined;
|
|
261
|
-
page?: string | undefined;
|
|
262
261
|
limit?: string | undefined;
|
|
263
|
-
search?: string | undefined;
|
|
264
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
265
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
266
262
|
isActive?: "true" | "false" | undefined;
|
|
263
|
+
page?: string | undefined;
|
|
264
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
265
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
266
|
+
productId?: string | undefined;
|
|
267
267
|
minAmount?: string | undefined;
|
|
268
268
|
maxAmount?: string | undefined;
|
|
269
269
|
}>;
|
|
270
270
|
}, "strip", z.ZodTypeAny, {
|
|
271
271
|
query: {
|
|
272
|
+
search?: string | undefined;
|
|
272
273
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
273
|
-
productId?: string | undefined;
|
|
274
|
-
page?: number | undefined;
|
|
275
274
|
limit?: number | undefined;
|
|
276
|
-
search?: string | undefined;
|
|
277
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
278
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
279
275
|
isActive?: "true" | "false" | undefined;
|
|
276
|
+
page?: number | undefined;
|
|
277
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
278
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
279
|
+
productId?: string | undefined;
|
|
280
280
|
minAmount?: number | undefined;
|
|
281
281
|
maxAmount?: number | undefined;
|
|
282
282
|
};
|
|
283
283
|
}, {
|
|
284
284
|
query: {
|
|
285
|
+
search?: string | undefined;
|
|
285
286
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
286
|
-
productId?: string | undefined;
|
|
287
|
-
page?: string | undefined;
|
|
288
287
|
limit?: string | undefined;
|
|
289
|
-
search?: string | undefined;
|
|
290
|
-
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
291
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
292
288
|
isActive?: "true" | "false" | undefined;
|
|
289
|
+
page?: string | undefined;
|
|
290
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
291
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
292
|
+
productId?: string | undefined;
|
|
293
293
|
minAmount?: string | undefined;
|
|
294
294
|
maxAmount?: string | undefined;
|
|
295
295
|
};
|
|
@@ -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
|
-
};
|
|
57
54
|
body: {
|
|
58
55
|
isActive?: boolean | undefined;
|
|
59
56
|
description?: string | null | undefined;
|
|
60
57
|
name?: string | undefined;
|
|
61
58
|
stock?: number | undefined;
|
|
62
59
|
};
|
|
63
|
-
}, {
|
|
64
60
|
params: {
|
|
65
61
|
id: string;
|
|
66
62
|
};
|
|
63
|
+
}, {
|
|
67
64
|
body: {
|
|
68
65
|
isActive?: unknown;
|
|
69
66
|
description?: unknown;
|
|
70
67
|
name?: unknown;
|
|
71
68
|
stock?: unknown;
|
|
72
69
|
};
|
|
70
|
+
params: {
|
|
71
|
+
id: string;
|
|
72
|
+
};
|
|
73
73
|
}>;
|
|
74
74
|
export declare const getProductSchema: z.ZodObject<{
|
|
75
75
|
params: z.ZodObject<{
|
|
@@ -98,40 +98,40 @@ export declare const getProductsSchema: z.ZodObject<{
|
|
|
98
98
|
sortBy: z.ZodOptional<z.ZodEnum<["name", "stock", "createdAt", "updatedAt"]>>;
|
|
99
99
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
page?: number | undefined;
|
|
102
|
-
limit?: number | undefined;
|
|
103
101
|
search?: string | undefined;
|
|
104
|
-
|
|
105
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
102
|
+
limit?: number | undefined;
|
|
106
103
|
isActive?: "true" | "false" | undefined;
|
|
104
|
+
page?: number | undefined;
|
|
105
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
106
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
107
107
|
minStock?: number | undefined;
|
|
108
108
|
}, {
|
|
109
|
-
page?: string | undefined;
|
|
110
|
-
limit?: string | undefined;
|
|
111
109
|
search?: string | undefined;
|
|
112
|
-
|
|
113
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
110
|
+
limit?: string | undefined;
|
|
114
111
|
isActive?: "true" | "false" | undefined;
|
|
112
|
+
page?: string | undefined;
|
|
113
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
114
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
115
115
|
minStock?: string | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
query: {
|
|
119
|
-
page?: number | undefined;
|
|
120
|
-
limit?: number | undefined;
|
|
121
119
|
search?: string | undefined;
|
|
122
|
-
|
|
123
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
120
|
+
limit?: number | undefined;
|
|
124
121
|
isActive?: "true" | "false" | undefined;
|
|
122
|
+
page?: number | undefined;
|
|
123
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
124
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
125
125
|
minStock?: number | undefined;
|
|
126
126
|
};
|
|
127
127
|
}, {
|
|
128
128
|
query: {
|
|
129
|
-
page?: string | undefined;
|
|
130
|
-
limit?: string | undefined;
|
|
131
129
|
search?: string | undefined;
|
|
132
|
-
|
|
133
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
130
|
+
limit?: string | undefined;
|
|
134
131
|
isActive?: "true" | "false" | undefined;
|
|
132
|
+
page?: string | undefined;
|
|
133
|
+
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
134
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
135
135
|
minStock?: string | undefined;
|
|
136
136
|
};
|
|
137
137
|
}>;
|
|
@@ -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: "increment" | "decrement" | "set";
|
|
203
203
|
}, {
|
|
204
204
|
amount: number;
|
|
205
|
-
operation: "
|
|
205
|
+
operation: "increment" | "decrement" | "set";
|
|
206
206
|
}>;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
|
-
params: {
|
|
209
|
-
id: string;
|
|
210
|
-
};
|
|
211
208
|
body: {
|
|
212
209
|
amount: number;
|
|
213
|
-
operation: "
|
|
210
|
+
operation: "increment" | "decrement" | "set";
|
|
214
211
|
};
|
|
215
|
-
}, {
|
|
216
212
|
params: {
|
|
217
213
|
id: string;
|
|
218
214
|
};
|
|
215
|
+
}, {
|
|
219
216
|
body: {
|
|
220
217
|
amount: number;
|
|
221
|
-
operation: "
|
|
218
|
+
operation: "increment" | "decrement" | "set";
|
|
219
|
+
};
|
|
220
|
+
params: {
|
|
221
|
+
id: string;
|
|
222
222
|
};
|
|
223
223
|
}>;
|