vr-commons 1.0.93 → 1.0.95

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.
@@ -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
+ planId: string;
26
+ installmentId: string;
27
+ };
24
28
  body: {
25
29
  phoneNumber: string;
26
30
  provider: "mtn_momo" | "airtel_money";
27
31
  };
32
+ }, {
28
33
  params: {
29
34
  planId: string;
30
35
  installmentId: string;
31
36
  };
32
- }, {
33
37
  body: {
34
38
  phoneNumber: string;
35
39
  provider?: "mtn_momo" | "airtel_money" | undefined;
36
40
  };
37
- params: {
38
- planId: string;
39
- installmentId: string;
40
- };
41
41
  }>;
@@ -0,0 +1,228 @@
1
+ import { z } from "zod";
2
+ export declare const createProductSchema: z.ZodObject<{
3
+ body: z.ZodObject<{
4
+ name: z.ZodString;
5
+ stock: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
+ isActive: z.ZodOptional<z.ZodBoolean>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ name: string;
10
+ stock: number;
11
+ description?: string | null | undefined;
12
+ isActive?: boolean | undefined;
13
+ }, {
14
+ name: string;
15
+ stock?: number | undefined;
16
+ description?: string | null | undefined;
17
+ isActive?: boolean | undefined;
18
+ }>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ body: {
21
+ name: string;
22
+ stock: number;
23
+ description?: string | null | undefined;
24
+ isActive?: boolean | undefined;
25
+ };
26
+ }, {
27
+ body: {
28
+ name: string;
29
+ stock?: number | undefined;
30
+ description?: string | null | undefined;
31
+ isActive?: boolean | undefined;
32
+ };
33
+ }>;
34
+ export declare const updateProductSchema: z.ZodObject<{
35
+ params: z.ZodObject<{
36
+ id: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ id: string;
39
+ }, {
40
+ id: string;
41
+ }>;
42
+ body: z.ZodObject<{
43
+ name: z.ZodOptional<z.ZodString>;
44
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
+ stock: z.ZodOptional<z.ZodNumber>;
46
+ isActive: z.ZodOptional<z.ZodBoolean>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ name?: string | undefined;
49
+ stock?: number | undefined;
50
+ description?: string | null | undefined;
51
+ isActive?: boolean | undefined;
52
+ }, {
53
+ name?: string | undefined;
54
+ stock?: number | undefined;
55
+ description?: string | null | undefined;
56
+ isActive?: boolean | undefined;
57
+ }>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ params: {
60
+ id: string;
61
+ };
62
+ body: {
63
+ name?: string | undefined;
64
+ stock?: number | undefined;
65
+ description?: string | null | undefined;
66
+ isActive?: boolean | undefined;
67
+ };
68
+ }, {
69
+ params: {
70
+ id: string;
71
+ };
72
+ body: {
73
+ name?: string | undefined;
74
+ stock?: number | undefined;
75
+ description?: string | null | undefined;
76
+ isActive?: boolean | undefined;
77
+ };
78
+ }>;
79
+ export declare const getProductSchema: z.ZodObject<{
80
+ params: z.ZodObject<{
81
+ id: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ id: string;
84
+ }, {
85
+ id: string;
86
+ }>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ params: {
89
+ id: string;
90
+ };
91
+ }, {
92
+ params: {
93
+ id: string;
94
+ };
95
+ }>;
96
+ export declare const getProductsSchema: z.ZodObject<{
97
+ query: z.ZodObject<{
98
+ page: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
99
+ limit: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
100
+ search: z.ZodOptional<z.ZodString>;
101
+ isActive: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
102
+ minStock: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
103
+ sortBy: z.ZodOptional<z.ZodEnum<["name", "stock", "createdAt", "updatedAt"]>>;
104
+ sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ isActive?: "true" | "false" | undefined;
107
+ page?: number | undefined;
108
+ limit?: number | undefined;
109
+ search?: string | undefined;
110
+ minStock?: number | undefined;
111
+ sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
112
+ sortOrder?: "ASC" | "DESC" | undefined;
113
+ }, {
114
+ isActive?: "true" | "false" | undefined;
115
+ page?: string | undefined;
116
+ limit?: string | undefined;
117
+ search?: string | undefined;
118
+ minStock?: string | undefined;
119
+ sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
120
+ sortOrder?: "ASC" | "DESC" | undefined;
121
+ }>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ query: {
124
+ isActive?: "true" | "false" | undefined;
125
+ page?: number | undefined;
126
+ limit?: number | undefined;
127
+ search?: string | undefined;
128
+ minStock?: number | undefined;
129
+ sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
130
+ sortOrder?: "ASC" | "DESC" | undefined;
131
+ };
132
+ }, {
133
+ query: {
134
+ isActive?: "true" | "false" | undefined;
135
+ page?: string | undefined;
136
+ limit?: string | undefined;
137
+ search?: string | undefined;
138
+ minStock?: string | undefined;
139
+ sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
140
+ sortOrder?: "ASC" | "DESC" | undefined;
141
+ };
142
+ }>;
143
+ export declare const deleteProductSchema: z.ZodObject<{
144
+ params: z.ZodObject<{
145
+ id: z.ZodString;
146
+ }, "strip", z.ZodTypeAny, {
147
+ id: string;
148
+ }, {
149
+ id: string;
150
+ }>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ params: {
153
+ id: string;
154
+ };
155
+ }, {
156
+ params: {
157
+ id: string;
158
+ };
159
+ }>;
160
+ export declare const activateProductSchema: z.ZodObject<{
161
+ params: z.ZodObject<{
162
+ id: z.ZodString;
163
+ }, "strip", z.ZodTypeAny, {
164
+ id: string;
165
+ }, {
166
+ id: string;
167
+ }>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ params: {
170
+ id: string;
171
+ };
172
+ }, {
173
+ params: {
174
+ id: string;
175
+ };
176
+ }>;
177
+ export declare const deactivateProductSchema: z.ZodObject<{
178
+ params: z.ZodObject<{
179
+ id: z.ZodString;
180
+ }, "strip", z.ZodTypeAny, {
181
+ id: string;
182
+ }, {
183
+ id: string;
184
+ }>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ params: {
187
+ id: string;
188
+ };
189
+ }, {
190
+ params: {
191
+ id: string;
192
+ };
193
+ }>;
194
+ export declare const updateStockSchema: z.ZodObject<{
195
+ params: z.ZodObject<{
196
+ id: z.ZodString;
197
+ }, "strip", z.ZodTypeAny, {
198
+ id: string;
199
+ }, {
200
+ id: string;
201
+ }>;
202
+ body: z.ZodObject<{
203
+ operation: z.ZodEnum<["increment", "decrement", "set"]>;
204
+ amount: z.ZodNumber;
205
+ }, "strip", z.ZodTypeAny, {
206
+ operation: "set" | "increment" | "decrement";
207
+ amount: number;
208
+ }, {
209
+ operation: "set" | "increment" | "decrement";
210
+ amount: number;
211
+ }>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ params: {
214
+ id: string;
215
+ };
216
+ body: {
217
+ operation: "set" | "increment" | "decrement";
218
+ amount: number;
219
+ };
220
+ }, {
221
+ params: {
222
+ id: string;
223
+ };
224
+ body: {
225
+ operation: "set" | "increment" | "decrement";
226
+ amount: number;
227
+ };
228
+ }>;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateStockSchema = exports.deactivateProductSchema = exports.activateProductSchema = exports.deleteProductSchema = exports.getProductsSchema = exports.getProductSchema = exports.updateProductSchema = exports.createProductSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // Base product schema
6
+ const productBaseSchema = {
7
+ name: zod_1.z
8
+ .string()
9
+ .min(3, "Product name must be at least 3 characters")
10
+ .max(150),
11
+ description: zod_1.z.string().max(1000).optional().nullable(),
12
+ stock: zod_1.z.number().int().min(0, "Stock cannot be negative").optional(),
13
+ isActive: zod_1.z.boolean().optional(),
14
+ };
15
+ // Create product schema
16
+ exports.createProductSchema = zod_1.z.object({
17
+ body: zod_1.z.object({
18
+ ...productBaseSchema,
19
+ name: productBaseSchema.name, // Required for create
20
+ stock: productBaseSchema.stock.default(1),
21
+ }),
22
+ });
23
+ // Update product schema
24
+ exports.updateProductSchema = zod_1.z.object({
25
+ params: zod_1.z.object({
26
+ id: zod_1.z.string().uuid("Invalid product ID"),
27
+ }),
28
+ body: zod_1.z.object({
29
+ name: productBaseSchema.name.optional(),
30
+ description: productBaseSchema.description,
31
+ stock: productBaseSchema.stock,
32
+ isActive: productBaseSchema.isActive,
33
+ }),
34
+ });
35
+ // Get product by ID schema
36
+ exports.getProductSchema = zod_1.z.object({
37
+ params: zod_1.z.object({
38
+ id: zod_1.z.string().uuid("Invalid product ID"),
39
+ }),
40
+ });
41
+ // Get all products schema (with pagination and filters)
42
+ exports.getProductsSchema = zod_1.z.object({
43
+ query: zod_1.z.object({
44
+ page: zod_1.z.string().regex(/^\d+$/).transform(Number).optional(),
45
+ limit: zod_1.z.string().regex(/^\d+$/).transform(Number).optional(),
46
+ search: zod_1.z.string().optional(),
47
+ isActive: zod_1.z.enum(["true", "false"]).optional(),
48
+ minStock: zod_1.z.string().regex(/^\d+$/).transform(Number).optional(),
49
+ sortBy: zod_1.z.enum(["name", "stock", "createdAt", "updatedAt"]).optional(),
50
+ sortOrder: zod_1.z.enum(["ASC", "DESC"]).optional(),
51
+ }),
52
+ });
53
+ // Delete product schema
54
+ exports.deleteProductSchema = zod_1.z.object({
55
+ params: zod_1.z.object({
56
+ id: zod_1.z.string().uuid("Invalid product ID"),
57
+ }),
58
+ });
59
+ // Toggle product status schemas
60
+ exports.activateProductSchema = zod_1.z.object({
61
+ params: zod_1.z.object({
62
+ id: zod_1.z.string().uuid("Invalid product ID"),
63
+ }),
64
+ });
65
+ exports.deactivateProductSchema = zod_1.z.object({
66
+ params: zod_1.z.object({
67
+ id: zod_1.z.string().uuid("Invalid product ID"),
68
+ }),
69
+ });
70
+ // Update stock schema
71
+ exports.updateStockSchema = zod_1.z.object({
72
+ params: zod_1.z.object({
73
+ id: zod_1.z.string().uuid("Invalid product ID"),
74
+ }),
75
+ body: zod_1.z.object({
76
+ operation: zod_1.z.enum(["increment", "decrement", "set"]),
77
+ amount: zod_1.z.number().int().min(1, "Amount must be at least 1"),
78
+ }),
79
+ });
@@ -17,8 +17,8 @@ export declare const createUserSchema: z.ZodObject<{
17
17
  firstName: string;
18
18
  lastName: string;
19
19
  nationalId: string;
20
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
20
21
  phoneNumber: string;
21
- role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
22
22
  jacketId?: string | null | undefined;
23
23
  email?: string | null | undefined;
24
24
  password?: string | undefined;
@@ -27,8 +27,8 @@ export declare const createUserSchema: z.ZodObject<{
27
27
  firstName: string;
28
28
  lastName: string;
29
29
  nationalId: string;
30
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
30
31
  phoneNumber: string;
31
- role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
32
32
  jacketId?: string | null | undefined;
33
33
  email?: string | null | undefined;
34
34
  password?: string | undefined;
@@ -46,8 +46,8 @@ export declare const createUserSchema: z.ZodObject<{
46
46
  firstName: string;
47
47
  lastName: string;
48
48
  nationalId: string;
49
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
49
50
  phoneNumber: string;
50
- role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
51
51
  jacketId?: string | null | undefined;
52
52
  email?: string | null | undefined;
53
53
  password?: string | undefined;
@@ -61,8 +61,8 @@ export declare const createUserSchema: z.ZodObject<{
61
61
  firstName: string;
62
62
  lastName: string;
63
63
  nationalId: string;
64
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
64
65
  phoneNumber: string;
65
- role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
66
66
  jacketId?: string | null | undefined;
67
67
  email?: string | null | undefined;
68
68
  password?: string | undefined;
@@ -121,45 +121,45 @@ export declare const updateUserProfileSchema: z.ZodObject<{
121
121
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
122
122
  password: z.ZodOptional<z.ZodString>;
123
123
  }, "strip", z.ZodTypeAny, {
124
+ isActive?: boolean | undefined;
124
125
  firstName?: string | undefined;
125
126
  lastName?: string | undefined;
126
127
  email?: string | null | undefined;
127
128
  password?: string | undefined;
128
129
  plateNumber?: string | null | undefined;
129
- isActive?: boolean | undefined;
130
130
  isDeactivated?: boolean | undefined;
131
- isSuspended?: boolean | undefined;
132
131
  phoneNumber?: string | undefined;
132
+ isSuspended?: boolean | undefined;
133
133
  }, {
134
+ isActive?: boolean | undefined;
134
135
  firstName?: string | undefined;
135
136
  lastName?: string | undefined;
136
137
  email?: string | null | undefined;
137
138
  password?: string | undefined;
138
139
  plateNumber?: string | null | undefined;
139
- isActive?: boolean | undefined;
140
140
  isDeactivated?: boolean | undefined;
141
- isSuspended?: boolean | undefined;
142
141
  phoneNumber?: string | undefined;
142
+ isSuspended?: boolean | undefined;
143
143
  }>, {
144
+ isActive?: boolean | undefined;
144
145
  firstName?: string | undefined;
145
146
  lastName?: string | undefined;
146
147
  email?: string | null | undefined;
147
148
  password?: string | undefined;
148
149
  plateNumber?: string | null | undefined;
149
- isActive?: boolean | undefined;
150
150
  isDeactivated?: boolean | undefined;
151
- isSuspended?: boolean | undefined;
152
151
  phoneNumber?: string | undefined;
152
+ isSuspended?: boolean | undefined;
153
153
  }, {
154
+ isActive?: boolean | undefined;
154
155
  firstName?: string | undefined;
155
156
  lastName?: string | undefined;
156
157
  email?: string | null | undefined;
157
158
  password?: string | undefined;
158
159
  plateNumber?: string | null | undefined;
159
- isActive?: boolean | undefined;
160
160
  isDeactivated?: boolean | undefined;
161
- isSuspended?: boolean | undefined;
162
161
  phoneNumber?: string | undefined;
162
+ isSuspended?: boolean | undefined;
163
163
  }>;
164
164
  headers: z.ZodObject<{
165
165
  authorization: z.ZodString;
@@ -173,15 +173,15 @@ export declare const updateUserProfileSchema: z.ZodObject<{
173
173
  userId: string;
174
174
  };
175
175
  body: {
176
+ isActive?: boolean | undefined;
176
177
  firstName?: string | undefined;
177
178
  lastName?: string | undefined;
178
179
  email?: string | null | undefined;
179
180
  password?: string | undefined;
180
181
  plateNumber?: string | null | undefined;
181
- isActive?: boolean | undefined;
182
182
  isDeactivated?: boolean | undefined;
183
- isSuspended?: boolean | undefined;
184
183
  phoneNumber?: string | undefined;
184
+ isSuspended?: boolean | undefined;
185
185
  };
186
186
  headers: {
187
187
  authorization: string;
@@ -191,15 +191,15 @@ export declare const updateUserProfileSchema: z.ZodObject<{
191
191
  userId: string;
192
192
  };
193
193
  body: {
194
+ isActive?: boolean | undefined;
194
195
  firstName?: string | undefined;
195
196
  lastName?: string | undefined;
196
197
  email?: string | null | undefined;
197
198
  password?: string | undefined;
198
199
  plateNumber?: string | null | undefined;
199
- isActive?: boolean | undefined;
200
200
  isDeactivated?: boolean | undefined;
201
- isSuspended?: boolean | undefined;
202
201
  phoneNumber?: string | undefined;
202
+ isSuspended?: boolean | undefined;
203
203
  };
204
204
  headers: {
205
205
  authorization: string;
@@ -219,29 +219,29 @@ export declare const getAllUsersSchema: z.ZodObject<{
219
219
  sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt"]>>;
220
220
  order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
221
221
  }, "strip", z.ZodTypeAny, {
222
- order: "asc" | "desc";
223
222
  sortBy: "createdAt" | "firstName" | "lastLoginAt";
224
- search?: string | undefined;
225
- limit?: number | undefined;
223
+ order: "asc" | "desc";
226
224
  isActive?: boolean | undefined;
225
+ page?: number | undefined;
226
+ limit?: number | undefined;
227
+ search?: string | undefined;
228
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
227
229
  isBanned?: boolean | undefined;
228
230
  isSuspended?: boolean | undefined;
229
- role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
230
- page?: number | undefined;
231
231
  startDate?: string | undefined;
232
232
  endDate?: string | undefined;
233
233
  }, {
234
+ isActive?: "true" | "false" | undefined;
235
+ page?: string | undefined;
236
+ limit?: string | undefined;
234
237
  search?: string | undefined;
238
+ sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
235
239
  order?: "asc" | "desc" | undefined;
236
- limit?: string | undefined;
237
- isActive?: "true" | "false" | undefined;
240
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
238
241
  isBanned?: "true" | "false" | undefined;
239
242
  isSuspended?: "true" | "false" | undefined;
240
- role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
241
- page?: string | undefined;
242
243
  startDate?: string | undefined;
243
244
  endDate?: string | undefined;
244
- sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
245
245
  }>;
246
246
  headers: z.ZodObject<{
247
247
  authorization: z.ZodString;
@@ -251,38 +251,38 @@ export declare const getAllUsersSchema: z.ZodObject<{
251
251
  authorization: string;
252
252
  }>;
253
253
  }, "strip", z.ZodTypeAny, {
254
- headers: {
255
- authorization: string;
256
- };
257
254
  query: {
258
- order: "asc" | "desc";
259
255
  sortBy: "createdAt" | "firstName" | "lastLoginAt";
260
- search?: string | undefined;
261
- limit?: number | undefined;
256
+ order: "asc" | "desc";
262
257
  isActive?: boolean | undefined;
258
+ page?: number | undefined;
259
+ limit?: number | undefined;
260
+ search?: string | undefined;
261
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
263
262
  isBanned?: boolean | undefined;
264
263
  isSuspended?: boolean | undefined;
265
- role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
266
- page?: number | undefined;
267
264
  startDate?: string | undefined;
268
265
  endDate?: string | undefined;
269
266
  };
270
- }, {
271
267
  headers: {
272
268
  authorization: string;
273
269
  };
270
+ }, {
274
271
  query: {
272
+ isActive?: "true" | "false" | undefined;
273
+ page?: string | undefined;
274
+ limit?: string | undefined;
275
275
  search?: string | undefined;
276
+ sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
276
277
  order?: "asc" | "desc" | undefined;
277
- limit?: string | undefined;
278
- isActive?: "true" | "false" | undefined;
278
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
279
279
  isBanned?: "true" | "false" | undefined;
280
280
  isSuspended?: "true" | "false" | undefined;
281
- role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
282
- page?: string | undefined;
283
281
  startDate?: string | undefined;
284
282
  endDate?: string | undefined;
285
- sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
283
+ };
284
+ headers: {
285
+ authorization: string;
286
286
  };
287
287
  }>;
288
288
  export declare const viewProfileSchema: z.ZodObject<{
@@ -28,28 +28,28 @@ export declare const getUserSuspensionsSchema: z.ZodObject<{
28
28
  includeResolved: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
29
29
  status: z.ZodOptional<z.ZodEnum<["active", "expired", "revoked"]>>;
30
30
  }, "strip", z.ZodTypeAny, {
31
- status?: "active" | "revoked" | "expired" | undefined;
31
+ status?: "active" | "expired" | "revoked" | undefined;
32
32
  includeResolved?: "true" | "false" | undefined;
33
33
  }, {
34
- status?: "active" | "revoked" | "expired" | undefined;
34
+ status?: "active" | "expired" | "revoked" | undefined;
35
35
  includeResolved?: "true" | "false" | undefined;
36
36
  }>;
37
37
  }, "strip", z.ZodTypeAny, {
38
- query: {
39
- status?: "active" | "revoked" | "expired" | undefined;
40
- includeResolved?: "true" | "false" | undefined;
41
- };
42
38
  params: {
43
39
  userId: string;
44
40
  };
45
- }, {
46
41
  query: {
47
- status?: "active" | "revoked" | "expired" | undefined;
42
+ status?: "active" | "expired" | "revoked" | undefined;
48
43
  includeResolved?: "true" | "false" | undefined;
49
44
  };
45
+ }, {
50
46
  params: {
51
47
  userId: string;
52
48
  };
49
+ query: {
50
+ status?: "active" | "expired" | "revoked" | undefined;
51
+ includeResolved?: "true" | "false" | undefined;
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
  }>;