vr-commons 1.0.46 → 1.0.48

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.
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ddMmYyyySchema = exports.yyyyMmDdSchema = exports.dateRangeSchema = exports.createDateSchema = exports.normalizeDate = exports.dateValidator = void 0;
4
+ const zod_1 = require("zod");
5
+ // Regular expressions for date formats
6
+ const YYYY_MM_DD_REGEX = /^\d{4}-\d{2}-\d{2}$/;
7
+ const DD_MM_YYYY_REGEX = /^\d{2}-\d{2}-\d{4}$/;
8
+ const YYYY_MM_DD_HYPHEN_REGEX = /^\d{4}-\d{2}-\d{2}$/;
9
+ const DD_MM_YYYY_SLASH_REGEX = /^\d{2}\/\d{2}\/\d{4}$/;
10
+ const YYYY_MM_DD_SLASH_REGEX = /^\d{4}\/\d{2}\/\d{2}$/;
11
+ /**
12
+ * Validates if a string is a valid date in any of the supported formats
13
+ * Supported formats:
14
+ * - YYYY-MM-DD (2024-03-18)
15
+ * - DD-MM-YYYY (18-03-2024)
16
+ * - YYYY/MM/DD (2024/03/18)
17
+ * - DD/MM/YYYY (18/03/2024)
18
+ */
19
+ exports.dateValidator = zod_1.z.string().refine((val) => {
20
+ // Check YYYY-MM-DD format
21
+ if (YYYY_MM_DD_REGEX.test(val)) {
22
+ const [year, month, day] = val.split("-").map(Number);
23
+ const date = new Date(year, month - 1, day);
24
+ return (date.getFullYear() === year &&
25
+ date.getMonth() === month - 1 &&
26
+ date.getDate() === day);
27
+ }
28
+ // Check DD-MM-YYYY format
29
+ if (DD_MM_YYYY_REGEX.test(val)) {
30
+ const [day, month, year] = val.split("-").map(Number);
31
+ const date = new Date(year, month - 1, day);
32
+ return (date.getFullYear() === year &&
33
+ date.getMonth() === month - 1 &&
34
+ date.getDate() === day);
35
+ }
36
+ // Check YYYY/MM/DD format
37
+ if (YYYY_MM_DD_SLASH_REGEX.test(val)) {
38
+ const [year, month, day] = val.split("/").map(Number);
39
+ const date = new Date(year, month - 1, day);
40
+ return (date.getFullYear() === year &&
41
+ date.getMonth() === month - 1 &&
42
+ date.getDate() === day);
43
+ }
44
+ // Check DD/MM/YYYY format
45
+ if (DD_MM_YYYY_SLASH_REGEX.test(val)) {
46
+ const [day, month, year] = val.split("/").map(Number);
47
+ const date = new Date(year, month - 1, day);
48
+ return (date.getFullYear() === year &&
49
+ date.getMonth() === month - 1 &&
50
+ date.getDate() === day);
51
+ }
52
+ return false;
53
+ }, {
54
+ message: "Date must be in one of these formats: YYYY-MM-DD, DD-MM-YYYY, YYYY/MM/DD, or DD/MM/YYYY",
55
+ });
56
+ /**
57
+ * Normalizes any supported date format to YYYY-MM-DD for database queries
58
+ */
59
+ const normalizeDate = (dateStr) => {
60
+ // Already YYYY-MM-DD
61
+ if (YYYY_MM_DD_REGEX.test(dateStr)) {
62
+ return dateStr;
63
+ }
64
+ // DD-MM-YYYY to YYYY-MM-DD
65
+ if (DD_MM_YYYY_REGEX.test(dateStr)) {
66
+ const [day, month, year] = dateStr.split("-");
67
+ return `${year}-${month}-${day}`;
68
+ }
69
+ // YYYY/MM/DD to YYYY-MM-DD
70
+ if (YYYY_MM_DD_SLASH_REGEX.test(dateStr)) {
71
+ const [year, month, day] = dateStr.split("/");
72
+ return `${year}-${month}-${day}`;
73
+ }
74
+ // DD/MM/YYYY to YYYY-MM-DD
75
+ if (DD_MM_YYYY_SLASH_REGEX.test(dateStr)) {
76
+ const [day, month, year] = dateStr.split("/");
77
+ return `${year}-${month}-${day}`;
78
+ }
79
+ return dateStr;
80
+ };
81
+ exports.normalizeDate = normalizeDate;
82
+ /**
83
+ * Creates a date schema that can be required or optional
84
+ */
85
+ const createDateSchema = (required = false) => {
86
+ if (required) {
87
+ return exports.dateValidator;
88
+ }
89
+ return exports.dateValidator.optional();
90
+ };
91
+ exports.createDateSchema = createDateSchema;
92
+ /**
93
+ * Date range schema for filtering between two dates
94
+ */
95
+ exports.dateRangeSchema = zod_1.z
96
+ .object({
97
+ fromDate: exports.dateValidator.optional(),
98
+ toDate: exports.dateValidator.optional(),
99
+ })
100
+ .transform((data) => {
101
+ if (data.fromDate) {
102
+ data.fromDate = (0, exports.normalizeDate)(data.fromDate);
103
+ }
104
+ if (data.toDate) {
105
+ data.toDate = (0, exports.normalizeDate)(data.toDate);
106
+ }
107
+ return data;
108
+ });
109
+ // Export individual format validators if needed
110
+ exports.yyyyMmDdSchema = zod_1.z
111
+ .string()
112
+ .regex(YYYY_MM_DD_REGEX, "Date must be in YYYY-MM-DD format");
113
+ exports.ddMmYyyySchema = zod_1.z
114
+ .string()
115
+ .regex(DD_MM_YYYY_REGEX, "Date must be in DD-MM-YYYY format");
@@ -1,3 +1,7 @@
1
1
  export { validate } from "./validate.validations";
2
2
  export { riderLoginSchema, forgotPasswordSchema, userLoginSchema, } from "./auth.validations";
3
3
  export { createUserSchema, getUserByIdSchema, updateUserProfileSchema, getAllUsersSchema, viewProfileSchema, passengerSignupSchema, updatePassengerProfileSchema, updateRiderProfileSchema, createRiderSchema, changePasswordSchema, deactivateAccountSchema, deleteAccountSchema, } from "./profiles.validations";
4
+ export { listBansSchema, listPendingAppealsSchema, listSuspensionsSchema, reviewAppealSchema, revokeBanSchema, revokeSuspensionSchema, extendSuspensionSchema, exportBansSchema, } from "./moderation.validations";
5
+ export { submitBanAppealSchema, submitSuspensionAppealSchema, } from "./appeals.validations";
6
+ export { getBanSchema, getUserRestrictionsSchema, createBanSchema, } from "./bans.validations";
7
+ export { getSuspensionSchema, getUserSuspensionsSchema, createSuspensionSchema, } from "./suspensions.validations";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteAccountSchema = exports.deactivateAccountSchema = exports.changePasswordSchema = exports.createRiderSchema = exports.updateRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
3
+ exports.createSuspensionSchema = exports.getUserSuspensionsSchema = exports.getSuspensionSchema = exports.createBanSchema = exports.getUserRestrictionsSchema = exports.getBanSchema = exports.submitSuspensionAppealSchema = exports.submitBanAppealSchema = exports.exportBansSchema = exports.extendSuspensionSchema = exports.revokeSuspensionSchema = exports.revokeBanSchema = exports.reviewAppealSchema = exports.listSuspensionsSchema = exports.listPendingAppealsSchema = exports.listBansSchema = exports.deleteAccountSchema = exports.deactivateAccountSchema = exports.changePasswordSchema = exports.createRiderSchema = exports.updateRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
4
4
  var validate_validations_1 = require("./validate.validations");
5
5
  Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_validations_1.validate; } });
6
6
  var auth_validations_1 = require("./auth.validations");
@@ -25,3 +25,23 @@ Object.defineProperty(exports, "createRiderSchema", { enumerable: true, get: fun
25
25
  Object.defineProperty(exports, "changePasswordSchema", { enumerable: true, get: function () { return profiles_validations_1.changePasswordSchema; } });
26
26
  Object.defineProperty(exports, "deactivateAccountSchema", { enumerable: true, get: function () { return profiles_validations_1.deactivateAccountSchema; } });
27
27
  Object.defineProperty(exports, "deleteAccountSchema", { enumerable: true, get: function () { return profiles_validations_1.deleteAccountSchema; } });
28
+ var moderation_validations_1 = require("./moderation.validations");
29
+ Object.defineProperty(exports, "listBansSchema", { enumerable: true, get: function () { return moderation_validations_1.listBansSchema; } });
30
+ Object.defineProperty(exports, "listPendingAppealsSchema", { enumerable: true, get: function () { return moderation_validations_1.listPendingAppealsSchema; } });
31
+ Object.defineProperty(exports, "listSuspensionsSchema", { enumerable: true, get: function () { return moderation_validations_1.listSuspensionsSchema; } });
32
+ Object.defineProperty(exports, "reviewAppealSchema", { enumerable: true, get: function () { return moderation_validations_1.reviewAppealSchema; } });
33
+ Object.defineProperty(exports, "revokeBanSchema", { enumerable: true, get: function () { return moderation_validations_1.revokeBanSchema; } });
34
+ Object.defineProperty(exports, "revokeSuspensionSchema", { enumerable: true, get: function () { return moderation_validations_1.revokeSuspensionSchema; } });
35
+ Object.defineProperty(exports, "extendSuspensionSchema", { enumerable: true, get: function () { return moderation_validations_1.extendSuspensionSchema; } });
36
+ Object.defineProperty(exports, "exportBansSchema", { enumerable: true, get: function () { return moderation_validations_1.exportBansSchema; } });
37
+ var appeals_validations_1 = require("./appeals.validations");
38
+ Object.defineProperty(exports, "submitBanAppealSchema", { enumerable: true, get: function () { return appeals_validations_1.submitBanAppealSchema; } });
39
+ Object.defineProperty(exports, "submitSuspensionAppealSchema", { enumerable: true, get: function () { return appeals_validations_1.submitSuspensionAppealSchema; } });
40
+ var bans_validations_1 = require("./bans.validations");
41
+ Object.defineProperty(exports, "getBanSchema", { enumerable: true, get: function () { return bans_validations_1.getBanSchema; } });
42
+ Object.defineProperty(exports, "getUserRestrictionsSchema", { enumerable: true, get: function () { return bans_validations_1.getUserRestrictionsSchema; } });
43
+ Object.defineProperty(exports, "createBanSchema", { enumerable: true, get: function () { return bans_validations_1.createBanSchema; } });
44
+ var suspensions_validations_1 = require("./suspensions.validations");
45
+ Object.defineProperty(exports, "getSuspensionSchema", { enumerable: true, get: function () { return suspensions_validations_1.getSuspensionSchema; } });
46
+ Object.defineProperty(exports, "getUserSuspensionsSchema", { enumerable: true, get: function () { return suspensions_validations_1.getUserSuspensionsSchema; } });
47
+ Object.defineProperty(exports, "createSuspensionSchema", { enumerable: true, get: function () { return suspensions_validations_1.createSuspensionSchema; } });
@@ -0,0 +1,404 @@
1
+ import { z } from "zod";
2
+ export declare const listBansSchema: z.ZodObject<{
3
+ query: z.ZodEffects<z.ZodObject<{
4
+ page: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
5
+ limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
6
+ } & {
7
+ userId: z.ZodOptional<z.ZodString>;
8
+ status: z.ZodOptional<z.ZodEnum<["active", "revoked"]>>;
9
+ appealStatus: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected"]>>;
10
+ isPermanent: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
11
+ fromDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
12
+ toDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
13
+ search: z.ZodOptional<z.ZodString>;
14
+ sortBy: z.ZodOptional<z.ZodEnum<["bannedAt", "createdAt", "reason"]>>;
15
+ sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ page: number;
18
+ limit: number;
19
+ fromDate?: string | undefined;
20
+ toDate?: string | undefined;
21
+ status?: "active" | "revoked" | undefined;
22
+ userId?: string | undefined;
23
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
24
+ isPermanent?: "true" | "false" | undefined;
25
+ search?: string | undefined;
26
+ sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
27
+ sortOrder?: "ASC" | "DESC" | undefined;
28
+ }, {
29
+ fromDate?: string | undefined;
30
+ toDate?: string | undefined;
31
+ status?: "active" | "revoked" | undefined;
32
+ page?: string | undefined;
33
+ limit?: string | undefined;
34
+ userId?: string | undefined;
35
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
36
+ isPermanent?: "true" | "false" | undefined;
37
+ search?: string | undefined;
38
+ sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
39
+ sortOrder?: "ASC" | "DESC" | undefined;
40
+ }>, {
41
+ page: number;
42
+ limit: number;
43
+ fromDate?: string | undefined;
44
+ toDate?: string | undefined;
45
+ status?: "active" | "revoked" | undefined;
46
+ userId?: string | undefined;
47
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
48
+ isPermanent?: "true" | "false" | undefined;
49
+ search?: string | undefined;
50
+ sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
51
+ sortOrder?: "ASC" | "DESC" | undefined;
52
+ }, {
53
+ fromDate?: string | undefined;
54
+ toDate?: string | undefined;
55
+ status?: "active" | "revoked" | undefined;
56
+ page?: string | undefined;
57
+ limit?: string | undefined;
58
+ userId?: string | undefined;
59
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
60
+ isPermanent?: "true" | "false" | undefined;
61
+ search?: string | undefined;
62
+ sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
63
+ sortOrder?: "ASC" | "DESC" | undefined;
64
+ }>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ query: {
67
+ page: number;
68
+ limit: number;
69
+ fromDate?: string | undefined;
70
+ toDate?: string | undefined;
71
+ status?: "active" | "revoked" | undefined;
72
+ userId?: string | undefined;
73
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
74
+ isPermanent?: "true" | "false" | undefined;
75
+ search?: string | undefined;
76
+ sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
77
+ sortOrder?: "ASC" | "DESC" | undefined;
78
+ };
79
+ }, {
80
+ query: {
81
+ fromDate?: string | undefined;
82
+ toDate?: string | undefined;
83
+ status?: "active" | "revoked" | undefined;
84
+ page?: string | undefined;
85
+ limit?: string | undefined;
86
+ userId?: string | undefined;
87
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
88
+ isPermanent?: "true" | "false" | undefined;
89
+ search?: string | undefined;
90
+ sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
91
+ sortOrder?: "ASC" | "DESC" | undefined;
92
+ };
93
+ }>;
94
+ export declare const listSuspensionsSchema: z.ZodObject<{
95
+ query: z.ZodEffects<z.ZodObject<{
96
+ page: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
97
+ limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
98
+ } & {
99
+ userId: z.ZodOptional<z.ZodString>;
100
+ status: z.ZodOptional<z.ZodEnum<["active", "expired", "revoked"]>>;
101
+ appealStatus: z.ZodOptional<z.ZodEnum<["pending", "approved", "rejected"]>>;
102
+ fromDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
103
+ toDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
104
+ search: z.ZodOptional<z.ZodString>;
105
+ sortBy: z.ZodOptional<z.ZodEnum<["startedAt", "endsAt", "createdAt", "reason"]>>;
106
+ sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ page: number;
109
+ limit: number;
110
+ fromDate?: string | undefined;
111
+ toDate?: string | undefined;
112
+ status?: "active" | "revoked" | "expired" | undefined;
113
+ userId?: string | undefined;
114
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
115
+ search?: string | undefined;
116
+ sortBy?: "createdAt" | "reason" | "startedAt" | "endsAt" | undefined;
117
+ sortOrder?: "ASC" | "DESC" | undefined;
118
+ }, {
119
+ fromDate?: string | undefined;
120
+ toDate?: string | undefined;
121
+ status?: "active" | "revoked" | "expired" | undefined;
122
+ page?: string | undefined;
123
+ limit?: string | undefined;
124
+ userId?: string | undefined;
125
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
126
+ search?: string | undefined;
127
+ sortBy?: "createdAt" | "reason" | "startedAt" | "endsAt" | undefined;
128
+ sortOrder?: "ASC" | "DESC" | undefined;
129
+ }>, {
130
+ page: number;
131
+ limit: number;
132
+ fromDate?: string | undefined;
133
+ toDate?: string | undefined;
134
+ status?: "active" | "revoked" | "expired" | undefined;
135
+ userId?: string | undefined;
136
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
137
+ search?: string | undefined;
138
+ sortBy?: "createdAt" | "reason" | "startedAt" | "endsAt" | undefined;
139
+ sortOrder?: "ASC" | "DESC" | undefined;
140
+ }, {
141
+ fromDate?: string | undefined;
142
+ toDate?: string | undefined;
143
+ status?: "active" | "revoked" | "expired" | undefined;
144
+ page?: string | undefined;
145
+ limit?: string | undefined;
146
+ userId?: string | undefined;
147
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
148
+ search?: string | undefined;
149
+ sortBy?: "createdAt" | "reason" | "startedAt" | "endsAt" | undefined;
150
+ sortOrder?: "ASC" | "DESC" | undefined;
151
+ }>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ query: {
154
+ page: number;
155
+ limit: number;
156
+ fromDate?: string | undefined;
157
+ toDate?: string | undefined;
158
+ status?: "active" | "revoked" | "expired" | undefined;
159
+ userId?: string | undefined;
160
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
161
+ search?: string | undefined;
162
+ sortBy?: "createdAt" | "reason" | "startedAt" | "endsAt" | undefined;
163
+ sortOrder?: "ASC" | "DESC" | undefined;
164
+ };
165
+ }, {
166
+ query: {
167
+ fromDate?: string | undefined;
168
+ toDate?: string | undefined;
169
+ status?: "active" | "revoked" | "expired" | undefined;
170
+ page?: string | undefined;
171
+ limit?: string | undefined;
172
+ userId?: string | undefined;
173
+ appealStatus?: "pending" | "approved" | "rejected" | undefined;
174
+ search?: string | undefined;
175
+ sortBy?: "createdAt" | "reason" | "startedAt" | "endsAt" | undefined;
176
+ sortOrder?: "ASC" | "DESC" | undefined;
177
+ };
178
+ }>;
179
+ export declare const revokeBanSchema: z.ZodObject<{
180
+ params: z.ZodObject<{
181
+ banId: z.ZodString;
182
+ }, "strip", z.ZodTypeAny, {
183
+ banId: string;
184
+ }, {
185
+ banId: string;
186
+ }>;
187
+ body: z.ZodObject<{
188
+ revocationReason: z.ZodOptional<z.ZodString>;
189
+ }, "strict", z.ZodTypeAny, {
190
+ revocationReason?: string | undefined;
191
+ }, {
192
+ revocationReason?: string | undefined;
193
+ }>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ params: {
196
+ banId: string;
197
+ };
198
+ body: {
199
+ revocationReason?: string | undefined;
200
+ };
201
+ }, {
202
+ params: {
203
+ banId: string;
204
+ };
205
+ body: {
206
+ revocationReason?: string | undefined;
207
+ };
208
+ }>;
209
+ export declare const revokeSuspensionSchema: z.ZodObject<{
210
+ params: z.ZodObject<{
211
+ suspensionId: z.ZodString;
212
+ }, "strip", z.ZodTypeAny, {
213
+ suspensionId: string;
214
+ }, {
215
+ suspensionId: string;
216
+ }>;
217
+ body: z.ZodObject<{
218
+ revocationReason: z.ZodOptional<z.ZodString>;
219
+ }, "strict", z.ZodTypeAny, {
220
+ revocationReason?: string | undefined;
221
+ }, {
222
+ revocationReason?: string | undefined;
223
+ }>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ params: {
226
+ suspensionId: string;
227
+ };
228
+ body: {
229
+ revocationReason?: string | undefined;
230
+ };
231
+ }, {
232
+ params: {
233
+ suspensionId: string;
234
+ };
235
+ body: {
236
+ revocationReason?: string | undefined;
237
+ };
238
+ }>;
239
+ export declare const extendSuspensionSchema: z.ZodObject<{
240
+ params: z.ZodObject<{
241
+ suspensionId: z.ZodString;
242
+ }, "strip", z.ZodTypeAny, {
243
+ suspensionId: string;
244
+ }, {
245
+ suspensionId: string;
246
+ }>;
247
+ body: z.ZodEffects<z.ZodObject<{
248
+ newEndDate: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
249
+ extensionReason: z.ZodOptional<z.ZodString>;
250
+ }, "strict", z.ZodTypeAny, {
251
+ newEndDate: string;
252
+ extensionReason?: string | undefined;
253
+ }, {
254
+ newEndDate: string;
255
+ extensionReason?: string | undefined;
256
+ }>, {
257
+ newEndDate: string;
258
+ extensionReason?: string | undefined;
259
+ }, {
260
+ newEndDate: string;
261
+ extensionReason?: string | undefined;
262
+ }>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ params: {
265
+ suspensionId: string;
266
+ };
267
+ body: {
268
+ newEndDate: string;
269
+ extensionReason?: string | undefined;
270
+ };
271
+ }, {
272
+ params: {
273
+ suspensionId: string;
274
+ };
275
+ body: {
276
+ newEndDate: string;
277
+ extensionReason?: string | undefined;
278
+ };
279
+ }>;
280
+ export declare const listPendingAppealsSchema: z.ZodObject<{
281
+ query: z.ZodEffects<z.ZodObject<{
282
+ page: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
283
+ limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
284
+ } & {
285
+ type: z.ZodOptional<z.ZodEnum<["ban", "suspension"]>>;
286
+ fromDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
287
+ toDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
288
+ }, "strip", z.ZodTypeAny, {
289
+ page: number;
290
+ limit: number;
291
+ type?: "ban" | "suspension" | undefined;
292
+ fromDate?: string | undefined;
293
+ toDate?: string | undefined;
294
+ }, {
295
+ type?: "ban" | "suspension" | undefined;
296
+ fromDate?: string | undefined;
297
+ toDate?: string | undefined;
298
+ page?: string | undefined;
299
+ limit?: string | undefined;
300
+ }>, {
301
+ page: number;
302
+ limit: number;
303
+ type?: "ban" | "suspension" | undefined;
304
+ fromDate?: string | undefined;
305
+ toDate?: string | undefined;
306
+ }, {
307
+ type?: "ban" | "suspension" | undefined;
308
+ fromDate?: string | undefined;
309
+ toDate?: string | undefined;
310
+ page?: string | undefined;
311
+ limit?: string | undefined;
312
+ }>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ query: {
315
+ page: number;
316
+ limit: number;
317
+ type?: "ban" | "suspension" | undefined;
318
+ fromDate?: string | undefined;
319
+ toDate?: string | undefined;
320
+ };
321
+ }, {
322
+ query: {
323
+ type?: "ban" | "suspension" | undefined;
324
+ fromDate?: string | undefined;
325
+ toDate?: string | undefined;
326
+ page?: string | undefined;
327
+ limit?: string | undefined;
328
+ };
329
+ }>;
330
+ export declare const reviewAppealSchema: z.ZodObject<{
331
+ params: z.ZodObject<{
332
+ banId: z.ZodOptional<z.ZodString>;
333
+ suspensionId: z.ZodOptional<z.ZodString>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ banId?: string | undefined;
336
+ suspensionId?: string | undefined;
337
+ }, {
338
+ banId?: string | undefined;
339
+ suspensionId?: string | undefined;
340
+ }>;
341
+ body: z.ZodObject<{
342
+ appealStatus: z.ZodEnum<["approved", "rejected"]>;
343
+ adminNotes: z.ZodOptional<z.ZodString>;
344
+ }, "strict", z.ZodTypeAny, {
345
+ appealStatus: "approved" | "rejected";
346
+ adminNotes?: string | undefined;
347
+ }, {
348
+ appealStatus: "approved" | "rejected";
349
+ adminNotes?: string | undefined;
350
+ }>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ params: {
353
+ banId?: string | undefined;
354
+ suspensionId?: string | undefined;
355
+ };
356
+ body: {
357
+ appealStatus: "approved" | "rejected";
358
+ adminNotes?: string | undefined;
359
+ };
360
+ }, {
361
+ params: {
362
+ banId?: string | undefined;
363
+ suspensionId?: string | undefined;
364
+ };
365
+ body: {
366
+ appealStatus: "approved" | "rejected";
367
+ adminNotes?: string | undefined;
368
+ };
369
+ }>;
370
+ export declare const exportBansSchema: z.ZodObject<{
371
+ query: z.ZodEffects<z.ZodObject<{
372
+ fromDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
373
+ toDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
374
+ format: z.ZodDefault<z.ZodEnum<["csv"]>>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ format: "csv";
377
+ fromDate?: string | undefined;
378
+ toDate?: string | undefined;
379
+ }, {
380
+ fromDate?: string | undefined;
381
+ toDate?: string | undefined;
382
+ format?: "csv" | undefined;
383
+ }>, {
384
+ format: "csv";
385
+ fromDate?: string | undefined;
386
+ toDate?: string | undefined;
387
+ }, {
388
+ fromDate?: string | undefined;
389
+ toDate?: string | undefined;
390
+ format?: "csv" | undefined;
391
+ }>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ query: {
394
+ format: "csv";
395
+ fromDate?: string | undefined;
396
+ toDate?: string | undefined;
397
+ };
398
+ }, {
399
+ query: {
400
+ fromDate?: string | undefined;
401
+ toDate?: string | undefined;
402
+ format?: "csv" | undefined;
403
+ };
404
+ }>;