vr-commons 1.0.132 → 1.0.134
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/hierarchy.utils.d.ts +10 -0
- package/dist/utils/hierarchy.utils.js +27 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +2 -1
- package/dist/validations/account.validations.d.ts +89 -4
- package/dist/validations/account.validations.js +71 -1
- package/dist/validations/admin.devicePayment.validations.d.ts +65 -55
- package/dist/validations/admin.devicePayment.validations.js +4 -4
- 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/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/index.d.ts +1 -1
- package/dist/validations/index.js +4 -2
- package/dist/validations/moderation.validations.d.ts +114 -114
- package/dist/validations/payinstallment.validations.d.ts +43 -23
- package/dist/validations/payinstallment.validations.js +13 -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 +34 -34
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +48 -48
- package/package.json +2 -2
|
@@ -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
|
-
name: string;
|
|
20
19
|
productId: string;
|
|
20
|
+
name: 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
|
-
name: string;
|
|
34
33
|
productId: string;
|
|
34
|
+
name: 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
|
-
name: string;
|
|
48
47
|
productId: string;
|
|
48
|
+
name: 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
|
-
name: string;
|
|
62
61
|
productId: string;
|
|
62
|
+
name: 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
|
-
name: string;
|
|
78
77
|
productId: string;
|
|
78
|
+
name: 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
|
-
name: string;
|
|
94
93
|
productId: string;
|
|
94
|
+
name: string;
|
|
95
95
|
totalAmount: number;
|
|
96
96
|
isActive?: boolean | undefined;
|
|
97
97
|
downPayment?: number | undefined;
|
|
@@ -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,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;
|
|
249
248
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
250
|
-
|
|
251
|
-
isActive?: "true" | "false" | undefined;
|
|
249
|
+
productId?: string | undefined;
|
|
252
250
|
page?: number | undefined;
|
|
251
|
+
limit?: number | undefined;
|
|
252
|
+
search?: string | undefined;
|
|
253
253
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
254
|
-
sortOrder?: "
|
|
255
|
-
|
|
254
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
255
|
+
isActive?: "true" | "false" | undefined;
|
|
256
256
|
minAmount?: number | undefined;
|
|
257
257
|
maxAmount?: number | undefined;
|
|
258
258
|
}, {
|
|
259
|
-
search?: string | undefined;
|
|
260
259
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
261
|
-
|
|
262
|
-
isActive?: "true" | "false" | undefined;
|
|
260
|
+
productId?: string | undefined;
|
|
263
261
|
page?: string | undefined;
|
|
262
|
+
limit?: string | undefined;
|
|
263
|
+
search?: string | undefined;
|
|
264
264
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
265
|
-
sortOrder?: "
|
|
266
|
-
|
|
265
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
266
|
+
isActive?: "true" | "false" | 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;
|
|
273
272
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
274
|
-
|
|
275
|
-
isActive?: "true" | "false" | undefined;
|
|
273
|
+
productId?: string | undefined;
|
|
276
274
|
page?: number | undefined;
|
|
275
|
+
limit?: number | undefined;
|
|
276
|
+
search?: string | undefined;
|
|
277
277
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
278
|
-
sortOrder?: "
|
|
279
|
-
|
|
278
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
279
|
+
isActive?: "true" | "false" | undefined;
|
|
280
280
|
minAmount?: number | undefined;
|
|
281
281
|
maxAmount?: number | undefined;
|
|
282
282
|
};
|
|
283
283
|
}, {
|
|
284
284
|
query: {
|
|
285
|
-
search?: string | undefined;
|
|
286
285
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
287
|
-
|
|
288
|
-
isActive?: "true" | "false" | undefined;
|
|
286
|
+
productId?: string | undefined;
|
|
289
287
|
page?: string | undefined;
|
|
288
|
+
limit?: string | undefined;
|
|
289
|
+
search?: string | undefined;
|
|
290
290
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
291
|
-
sortOrder?: "
|
|
292
|
-
|
|
291
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
292
|
+
isActive?: "true" | "false" | 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
|
-
name: string;
|
|
20
19
|
productId: string;
|
|
20
|
+
name: 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
|
-
name: string;
|
|
34
33
|
productId: string;
|
|
34
|
+
name: 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
|
-
name: string;
|
|
48
47
|
productId: string;
|
|
48
|
+
name: 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
|
-
name: string;
|
|
62
61
|
productId: string;
|
|
62
|
+
name: 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
|
-
name: string;
|
|
78
77
|
productId: string;
|
|
78
|
+
name: 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
|
-
name: string;
|
|
94
93
|
productId: string;
|
|
94
|
+
name: string;
|
|
95
95
|
totalAmount: number;
|
|
96
96
|
isActive?: boolean | undefined;
|
|
97
97
|
downPayment?: number | undefined;
|
|
@@ -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,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;
|
|
249
248
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
250
|
-
|
|
251
|
-
isActive?: "true" | "false" | undefined;
|
|
249
|
+
productId?: string | undefined;
|
|
252
250
|
page?: number | undefined;
|
|
251
|
+
limit?: number | undefined;
|
|
252
|
+
search?: string | undefined;
|
|
253
253
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
254
|
-
sortOrder?: "
|
|
255
|
-
|
|
254
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
255
|
+
isActive?: "true" | "false" | undefined;
|
|
256
256
|
minAmount?: number | undefined;
|
|
257
257
|
maxAmount?: number | undefined;
|
|
258
258
|
}, {
|
|
259
|
-
search?: string | undefined;
|
|
260
259
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
261
|
-
|
|
262
|
-
isActive?: "true" | "false" | undefined;
|
|
260
|
+
productId?: string | undefined;
|
|
263
261
|
page?: string | undefined;
|
|
262
|
+
limit?: string | undefined;
|
|
263
|
+
search?: string | undefined;
|
|
264
264
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
265
|
-
sortOrder?: "
|
|
266
|
-
|
|
265
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
266
|
+
isActive?: "true" | "false" | 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;
|
|
273
272
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
274
|
-
|
|
275
|
-
isActive?: "true" | "false" | undefined;
|
|
273
|
+
productId?: string | undefined;
|
|
276
274
|
page?: number | undefined;
|
|
275
|
+
limit?: number | undefined;
|
|
276
|
+
search?: string | undefined;
|
|
277
277
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
278
|
-
sortOrder?: "
|
|
279
|
-
|
|
278
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
279
|
+
isActive?: "true" | "false" | undefined;
|
|
280
280
|
minAmount?: number | undefined;
|
|
281
281
|
maxAmount?: number | undefined;
|
|
282
282
|
};
|
|
283
283
|
}, {
|
|
284
284
|
query: {
|
|
285
|
-
search?: string | undefined;
|
|
286
285
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
287
|
-
|
|
288
|
-
isActive?: "true" | "false" | undefined;
|
|
286
|
+
productId?: string | undefined;
|
|
289
287
|
page?: string | undefined;
|
|
288
|
+
limit?: string | undefined;
|
|
289
|
+
search?: string | undefined;
|
|
290
290
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
291
|
-
sortOrder?: "
|
|
292
|
-
|
|
291
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
292
|
+
isActive?: "true" | "false" | 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
|
+
};
|
|
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<{
|
|
@@ -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
|
-
search?: string | undefined;
|
|
102
|
-
limit?: number | undefined;
|
|
103
|
-
isActive?: "true" | "false" | undefined;
|
|
104
101
|
page?: number | undefined;
|
|
102
|
+
limit?: number | undefined;
|
|
103
|
+
search?: string | undefined;
|
|
105
104
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
106
|
-
sortOrder?: "
|
|
105
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
106
|
+
isActive?: "true" | "false" | undefined;
|
|
107
107
|
minStock?: number | undefined;
|
|
108
108
|
}, {
|
|
109
|
-
search?: string | undefined;
|
|
110
|
-
limit?: string | undefined;
|
|
111
|
-
isActive?: "true" | "false" | undefined;
|
|
112
109
|
page?: string | undefined;
|
|
110
|
+
limit?: string | undefined;
|
|
111
|
+
search?: string | undefined;
|
|
113
112
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
114
|
-
sortOrder?: "
|
|
113
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
114
|
+
isActive?: "true" | "false" | undefined;
|
|
115
115
|
minStock?: string | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
query: {
|
|
119
|
-
search?: string | undefined;
|
|
120
|
-
limit?: number | undefined;
|
|
121
|
-
isActive?: "true" | "false" | undefined;
|
|
122
119
|
page?: number | undefined;
|
|
120
|
+
limit?: number | undefined;
|
|
121
|
+
search?: string | undefined;
|
|
123
122
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
124
|
-
sortOrder?: "
|
|
123
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
124
|
+
isActive?: "true" | "false" | undefined;
|
|
125
125
|
minStock?: number | undefined;
|
|
126
126
|
};
|
|
127
127
|
}, {
|
|
128
128
|
query: {
|
|
129
|
-
search?: string | undefined;
|
|
130
|
-
limit?: string | undefined;
|
|
131
|
-
isActive?: "true" | "false" | undefined;
|
|
132
129
|
page?: string | undefined;
|
|
130
|
+
limit?: string | undefined;
|
|
131
|
+
search?: string | undefined;
|
|
133
132
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
134
|
-
sortOrder?: "
|
|
133
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
134
|
+
isActive?: "true" | "false" | 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: "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
|
};
|
|
@@ -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
|
+
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
|
};
|