vr-commons 1.0.110 → 1.0.112
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/index.d.ts +1 -0
- package/dist/middlewares/index.js +4 -1
- package/dist/validations/admin.devicePayment.validations.d.ts +56 -51
- package/dist/validations/admin.devicePayment.validations.js +10 -3
- package/dist/validations/admin.devices.validations.d.ts +36 -36
- 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 +2 -2
- 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 +18 -18
- package/dist/validations/moderation.validations.d.ts +114 -114
- package/dist/validations/payinstallment.validations.d.ts +10 -10
- 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 +38 -38
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +40 -40
- package/package.json +2 -2
|
@@ -7,33 +7,33 @@ export declare const listUserPaymentPlansSchema: z.ZodObject<{
|
|
|
7
7
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "status"]>>;
|
|
8
8
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
limit: number;
|
|
11
10
|
page: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
limit: number;
|
|
12
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
13
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
14
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
15
15
|
}, {
|
|
16
|
-
|
|
17
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
16
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
18
17
|
page?: string | undefined;
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
limit?: string | undefined;
|
|
19
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
20
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
query: {
|
|
24
|
-
limit: number;
|
|
25
24
|
page: number;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
limit: number;
|
|
26
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
27
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
28
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
query: {
|
|
32
|
-
|
|
33
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
32
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
34
33
|
page?: string | undefined;
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
limit?: string | undefined;
|
|
35
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
36
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
37
37
|
};
|
|
38
38
|
}>;
|
|
39
39
|
export declare const getUserPaymentPlanSchema: z.ZodObject<{
|
|
@@ -18,33 +18,33 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
18
18
|
sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
19
19
|
hasDeviceSession: z.ZodEffects<z.ZodOptional<z.ZodString>, boolean, string | undefined>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
limit: number;
|
|
22
21
|
page: number;
|
|
22
|
+
limit: number;
|
|
23
23
|
sortBy: "createdAt" | "actorType" | "action" | "entity";
|
|
24
|
-
sortOrder: "
|
|
24
|
+
sortOrder: "ASC" | "DESC";
|
|
25
25
|
hasDeviceSession: boolean;
|
|
26
26
|
search?: string | undefined;
|
|
27
27
|
firstName?: string | undefined;
|
|
28
28
|
lastName?: string | undefined;
|
|
29
29
|
fromDate?: string | undefined;
|
|
30
30
|
toDate?: string | undefined;
|
|
31
|
-
actorType?: "
|
|
31
|
+
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
32
32
|
actorId?: string | undefined;
|
|
33
33
|
action?: string | undefined;
|
|
34
34
|
entity?: string | undefined;
|
|
35
35
|
entityId?: string | undefined;
|
|
36
36
|
actorName?: string | undefined;
|
|
37
37
|
}, {
|
|
38
|
-
|
|
38
|
+
page?: string | undefined;
|
|
39
39
|
limit?: string | undefined;
|
|
40
|
+
search?: string | undefined;
|
|
41
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
42
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
40
43
|
firstName?: string | undefined;
|
|
41
44
|
lastName?: string | undefined;
|
|
42
|
-
page?: string | undefined;
|
|
43
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
44
45
|
fromDate?: string | undefined;
|
|
45
46
|
toDate?: string | undefined;
|
|
46
|
-
|
|
47
|
-
actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
47
|
+
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
48
48
|
actorId?: string | undefined;
|
|
49
49
|
action?: string | undefined;
|
|
50
50
|
entity?: string | undefined;
|
|
@@ -52,16 +52,16 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
52
52
|
actorName?: string | undefined;
|
|
53
53
|
hasDeviceSession?: string | undefined;
|
|
54
54
|
}>, any, {
|
|
55
|
-
|
|
55
|
+
page?: string | undefined;
|
|
56
56
|
limit?: string | undefined;
|
|
57
|
+
search?: string | undefined;
|
|
58
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
59
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
57
60
|
firstName?: string | undefined;
|
|
58
61
|
lastName?: string | undefined;
|
|
59
|
-
page?: string | undefined;
|
|
60
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
61
62
|
fromDate?: string | undefined;
|
|
62
63
|
toDate?: string | undefined;
|
|
63
|
-
|
|
64
|
-
actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
64
|
+
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
65
65
|
actorId?: string | undefined;
|
|
66
66
|
action?: string | undefined;
|
|
67
67
|
entity?: string | undefined;
|
|
@@ -73,16 +73,16 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
73
73
|
query?: any;
|
|
74
74
|
}, {
|
|
75
75
|
query: {
|
|
76
|
-
|
|
76
|
+
page?: string | undefined;
|
|
77
77
|
limit?: string | undefined;
|
|
78
|
+
search?: string | undefined;
|
|
79
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
80
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
78
81
|
firstName?: string | undefined;
|
|
79
82
|
lastName?: string | undefined;
|
|
80
|
-
page?: string | undefined;
|
|
81
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
82
83
|
fromDate?: string | undefined;
|
|
83
84
|
toDate?: string | undefined;
|
|
84
|
-
|
|
85
|
-
actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
85
|
+
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
86
86
|
actorId?: string | undefined;
|
|
87
87
|
action?: string | undefined;
|
|
88
88
|
entity?: string | undefined;
|
|
@@ -49,19 +49,19 @@ export declare const getUserRestrictionsSchema: z.ZodObject<{
|
|
|
49
49
|
includeResolved?: "true" | "false" | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
query: {
|
|
53
|
-
includeResolved?: "true" | "false" | undefined;
|
|
54
|
-
};
|
|
55
52
|
params: {
|
|
56
53
|
userId: string;
|
|
57
54
|
};
|
|
58
|
-
}, {
|
|
59
55
|
query: {
|
|
60
56
|
includeResolved?: "true" | "false" | undefined;
|
|
61
57
|
};
|
|
58
|
+
}, {
|
|
62
59
|
params: {
|
|
63
60
|
userId: string;
|
|
64
61
|
};
|
|
62
|
+
query: {
|
|
63
|
+
includeResolved?: "true" | "false" | undefined;
|
|
64
|
+
};
|
|
65
65
|
}>;
|
|
66
66
|
export declare const getUserBansSchema: z.ZodObject<{
|
|
67
67
|
params: z.ZodObject<{
|
|
@@ -79,19 +79,19 @@ export declare const getUserBansSchema: z.ZodObject<{
|
|
|
79
79
|
includeResolved?: "true" | "false" | undefined;
|
|
80
80
|
}>;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
query: {
|
|
83
|
-
includeResolved?: "true" | "false" | undefined;
|
|
84
|
-
};
|
|
85
82
|
params: {
|
|
86
83
|
userId: string;
|
|
87
84
|
};
|
|
88
|
-
}, {
|
|
89
85
|
query: {
|
|
90
86
|
includeResolved?: "true" | "false" | undefined;
|
|
91
87
|
};
|
|
88
|
+
}, {
|
|
92
89
|
params: {
|
|
93
90
|
userId: string;
|
|
94
91
|
};
|
|
92
|
+
query: {
|
|
93
|
+
includeResolved?: "true" | "false" | undefined;
|
|
94
|
+
};
|
|
95
95
|
}>;
|
|
96
96
|
export declare const getUserSuspensionsSchema: z.ZodObject<{
|
|
97
97
|
params: z.ZodObject<{
|
|
@@ -112,21 +112,21 @@ export declare const getUserSuspensionsSchema: z.ZodObject<{
|
|
|
112
112
|
includeResolved?: "true" | "false" | undefined;
|
|
113
113
|
}>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
params: {
|
|
116
|
+
userId: string;
|
|
117
|
+
};
|
|
115
118
|
query: {
|
|
116
119
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
117
120
|
includeResolved?: "true" | "false" | undefined;
|
|
118
121
|
};
|
|
122
|
+
}, {
|
|
119
123
|
params: {
|
|
120
124
|
userId: string;
|
|
121
125
|
};
|
|
122
|
-
}, {
|
|
123
126
|
query: {
|
|
124
127
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
125
128
|
includeResolved?: "true" | "false" | undefined;
|
|
126
129
|
};
|
|
127
|
-
params: {
|
|
128
|
-
userId: string;
|
|
129
|
-
};
|
|
130
130
|
}>;
|
|
131
131
|
export declare const submitBanAppealSchema: z.ZodObject<{
|
|
132
132
|
params: z.ZodObject<{
|
|
@@ -144,19 +144,19 @@ export declare const submitBanAppealSchema: z.ZodObject<{
|
|
|
144
144
|
appealReason: string;
|
|
145
145
|
}>;
|
|
146
146
|
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
body: {
|
|
148
|
-
appealReason: string;
|
|
149
|
-
};
|
|
150
147
|
params: {
|
|
151
148
|
banId: string;
|
|
152
149
|
};
|
|
153
|
-
}, {
|
|
154
150
|
body: {
|
|
155
151
|
appealReason: string;
|
|
156
152
|
};
|
|
153
|
+
}, {
|
|
157
154
|
params: {
|
|
158
155
|
banId: string;
|
|
159
156
|
};
|
|
157
|
+
body: {
|
|
158
|
+
appealReason: string;
|
|
159
|
+
};
|
|
160
160
|
}>;
|
|
161
161
|
export declare const submitSuspensionAppealSchema: z.ZodObject<{
|
|
162
162
|
params: z.ZodObject<{
|
|
@@ -174,19 +174,19 @@ export declare const submitSuspensionAppealSchema: z.ZodObject<{
|
|
|
174
174
|
appealReason: string;
|
|
175
175
|
}>;
|
|
176
176
|
}, "strip", z.ZodTypeAny, {
|
|
177
|
-
body: {
|
|
178
|
-
appealReason: string;
|
|
179
|
-
};
|
|
180
177
|
params: {
|
|
181
178
|
suspensionId: string;
|
|
182
179
|
};
|
|
183
|
-
}, {
|
|
184
180
|
body: {
|
|
185
181
|
appealReason: string;
|
|
186
182
|
};
|
|
183
|
+
}, {
|
|
187
184
|
params: {
|
|
188
185
|
suspensionId: string;
|
|
189
186
|
};
|
|
187
|
+
body: {
|
|
188
|
+
appealReason: string;
|
|
189
|
+
};
|
|
190
190
|
}>;
|
|
191
191
|
export declare const createBanSchema: z.ZodObject<{
|
|
192
192
|
params: z.ZodObject<{
|
|
@@ -207,21 +207,21 @@ export declare const createBanSchema: z.ZodObject<{
|
|
|
207
207
|
isPermanent?: boolean | undefined;
|
|
208
208
|
}>;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
params: {
|
|
211
|
+
userId: string;
|
|
212
|
+
};
|
|
210
213
|
body: {
|
|
211
214
|
reason: string;
|
|
212
215
|
isPermanent: boolean;
|
|
213
216
|
};
|
|
217
|
+
}, {
|
|
214
218
|
params: {
|
|
215
219
|
userId: string;
|
|
216
220
|
};
|
|
217
|
-
}, {
|
|
218
221
|
body: {
|
|
219
222
|
reason: string;
|
|
220
223
|
isPermanent?: boolean | undefined;
|
|
221
224
|
};
|
|
222
|
-
params: {
|
|
223
|
-
userId: string;
|
|
224
|
-
};
|
|
225
225
|
}>;
|
|
226
226
|
export declare const createSuspensionSchema: z.ZodObject<{
|
|
227
227
|
params: z.ZodObject<{
|
|
@@ -242,21 +242,21 @@ export declare const createSuspensionSchema: z.ZodObject<{
|
|
|
242
242
|
endsAt: string;
|
|
243
243
|
}>;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
params: {
|
|
246
|
+
userId: string;
|
|
247
|
+
};
|
|
245
248
|
body: {
|
|
246
249
|
reason: string;
|
|
247
250
|
endsAt: string;
|
|
248
251
|
};
|
|
252
|
+
}, {
|
|
249
253
|
params: {
|
|
250
254
|
userId: string;
|
|
251
255
|
};
|
|
252
|
-
}, {
|
|
253
256
|
body: {
|
|
254
257
|
reason: string;
|
|
255
258
|
endsAt: string;
|
|
256
259
|
};
|
|
257
|
-
params: {
|
|
258
|
-
userId: string;
|
|
259
|
-
};
|
|
260
260
|
}>;
|
|
261
261
|
export declare const listBansSchema: z.ZodObject<{
|
|
262
262
|
query: z.ZodEffects<z.ZodObject<{
|
|
@@ -273,81 +273,81 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
273
273
|
sortBy: z.ZodOptional<z.ZodEnum<["bannedAt", "createdAt", "reason"]>>;
|
|
274
274
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
limit: number;
|
|
277
276
|
page: number;
|
|
278
|
-
|
|
277
|
+
limit: number;
|
|
278
|
+
status?: "active" | "revoked" | undefined;
|
|
279
279
|
userId?: string | undefined;
|
|
280
|
+
search?: string | undefined;
|
|
281
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
282
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
280
283
|
isPermanent?: "true" | "false" | undefined;
|
|
281
284
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
282
|
-
status?: "active" | "revoked" | undefined;
|
|
283
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
284
285
|
fromDate?: string | undefined;
|
|
285
286
|
toDate?: string | undefined;
|
|
286
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
287
287
|
}, {
|
|
288
|
-
search?: string | undefined;
|
|
289
|
-
limit?: string | undefined;
|
|
290
|
-
userId?: string | undefined;
|
|
291
|
-
isPermanent?: "true" | "false" | undefined;
|
|
292
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
293
288
|
status?: "active" | "revoked" | undefined;
|
|
289
|
+
userId?: string | undefined;
|
|
294
290
|
page?: string | undefined;
|
|
291
|
+
limit?: string | undefined;
|
|
292
|
+
search?: string | undefined;
|
|
295
293
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
294
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
295
|
+
isPermanent?: "true" | "false" | undefined;
|
|
296
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
296
297
|
fromDate?: string | undefined;
|
|
297
298
|
toDate?: string | undefined;
|
|
298
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
299
299
|
}>, {
|
|
300
|
-
limit: number;
|
|
301
300
|
page: number;
|
|
302
|
-
|
|
301
|
+
limit: number;
|
|
302
|
+
status?: "active" | "revoked" | undefined;
|
|
303
303
|
userId?: string | undefined;
|
|
304
|
+
search?: string | undefined;
|
|
305
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
306
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
304
307
|
isPermanent?: "true" | "false" | undefined;
|
|
305
308
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
306
|
-
status?: "active" | "revoked" | undefined;
|
|
307
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
308
309
|
fromDate?: string | undefined;
|
|
309
310
|
toDate?: string | undefined;
|
|
310
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
311
311
|
}, {
|
|
312
|
-
search?: string | undefined;
|
|
313
|
-
limit?: string | undefined;
|
|
314
|
-
userId?: string | undefined;
|
|
315
|
-
isPermanent?: "true" | "false" | undefined;
|
|
316
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
317
312
|
status?: "active" | "revoked" | undefined;
|
|
313
|
+
userId?: string | undefined;
|
|
318
314
|
page?: string | undefined;
|
|
315
|
+
limit?: string | undefined;
|
|
316
|
+
search?: string | undefined;
|
|
319
317
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
318
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
319
|
+
isPermanent?: "true" | "false" | undefined;
|
|
320
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
320
321
|
fromDate?: string | undefined;
|
|
321
322
|
toDate?: string | undefined;
|
|
322
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
323
323
|
}>;
|
|
324
324
|
}, "strip", z.ZodTypeAny, {
|
|
325
325
|
query: {
|
|
326
|
-
limit: number;
|
|
327
326
|
page: number;
|
|
328
|
-
|
|
327
|
+
limit: number;
|
|
328
|
+
status?: "active" | "revoked" | undefined;
|
|
329
329
|
userId?: string | undefined;
|
|
330
|
+
search?: string | undefined;
|
|
331
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
332
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
330
333
|
isPermanent?: "true" | "false" | undefined;
|
|
331
334
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
332
|
-
status?: "active" | "revoked" | undefined;
|
|
333
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
334
335
|
fromDate?: string | undefined;
|
|
335
336
|
toDate?: string | undefined;
|
|
336
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
337
337
|
};
|
|
338
338
|
}, {
|
|
339
339
|
query: {
|
|
340
|
-
search?: string | undefined;
|
|
341
|
-
limit?: string | undefined;
|
|
342
|
-
userId?: string | undefined;
|
|
343
|
-
isPermanent?: "true" | "false" | undefined;
|
|
344
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
345
340
|
status?: "active" | "revoked" | undefined;
|
|
341
|
+
userId?: string | undefined;
|
|
346
342
|
page?: string | undefined;
|
|
343
|
+
limit?: string | undefined;
|
|
344
|
+
search?: string | undefined;
|
|
347
345
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
346
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
347
|
+
isPermanent?: "true" | "false" | undefined;
|
|
348
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
348
349
|
fromDate?: string | undefined;
|
|
349
350
|
toDate?: string | undefined;
|
|
350
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
351
351
|
};
|
|
352
352
|
}>;
|
|
353
353
|
export declare const listSuspensionsSchema: z.ZodObject<{
|
|
@@ -364,75 +364,75 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
364
364
|
sortBy: z.ZodOptional<z.ZodEnum<["startedAt", "endsAt", "createdAt", "reason"]>>;
|
|
365
365
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
366
366
|
}, "strip", z.ZodTypeAny, {
|
|
367
|
-
limit: number;
|
|
368
367
|
page: number;
|
|
369
|
-
|
|
370
|
-
userId?: string | undefined;
|
|
371
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
368
|
+
limit: number;
|
|
372
369
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
370
|
+
userId?: string | undefined;
|
|
371
|
+
search?: string | undefined;
|
|
373
372
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
373
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
374
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
374
375
|
fromDate?: string | undefined;
|
|
375
376
|
toDate?: string | undefined;
|
|
376
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
377
377
|
}, {
|
|
378
|
-
search?: string | undefined;
|
|
379
|
-
limit?: string | undefined;
|
|
380
|
-
userId?: string | undefined;
|
|
381
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
382
378
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
379
|
+
userId?: string | undefined;
|
|
383
380
|
page?: string | undefined;
|
|
381
|
+
limit?: string | undefined;
|
|
382
|
+
search?: string | undefined;
|
|
384
383
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
384
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
385
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
385
386
|
fromDate?: string | undefined;
|
|
386
387
|
toDate?: string | undefined;
|
|
387
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
388
388
|
}>, {
|
|
389
|
-
limit: number;
|
|
390
389
|
page: number;
|
|
391
|
-
|
|
392
|
-
userId?: string | undefined;
|
|
393
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
390
|
+
limit: number;
|
|
394
391
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
392
|
+
userId?: string | undefined;
|
|
393
|
+
search?: string | undefined;
|
|
395
394
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
395
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
396
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
396
397
|
fromDate?: string | undefined;
|
|
397
398
|
toDate?: string | undefined;
|
|
398
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
399
399
|
}, {
|
|
400
|
-
search?: string | undefined;
|
|
401
|
-
limit?: string | undefined;
|
|
402
|
-
userId?: string | undefined;
|
|
403
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
404
400
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
401
|
+
userId?: string | undefined;
|
|
405
402
|
page?: string | undefined;
|
|
403
|
+
limit?: string | undefined;
|
|
404
|
+
search?: string | undefined;
|
|
406
405
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
406
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
407
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
407
408
|
fromDate?: string | undefined;
|
|
408
409
|
toDate?: string | undefined;
|
|
409
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
410
410
|
}>;
|
|
411
411
|
}, "strip", z.ZodTypeAny, {
|
|
412
412
|
query: {
|
|
413
|
-
limit: number;
|
|
414
413
|
page: number;
|
|
415
|
-
|
|
416
|
-
userId?: string | undefined;
|
|
417
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
414
|
+
limit: number;
|
|
418
415
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
416
|
+
userId?: string | undefined;
|
|
417
|
+
search?: string | undefined;
|
|
419
418
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
419
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
420
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
420
421
|
fromDate?: string | undefined;
|
|
421
422
|
toDate?: string | undefined;
|
|
422
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
423
423
|
};
|
|
424
424
|
}, {
|
|
425
425
|
query: {
|
|
426
|
-
search?: string | undefined;
|
|
427
|
-
limit?: string | undefined;
|
|
428
|
-
userId?: string | undefined;
|
|
429
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
430
426
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
427
|
+
userId?: string | undefined;
|
|
431
428
|
page?: string | undefined;
|
|
429
|
+
limit?: string | undefined;
|
|
430
|
+
search?: string | undefined;
|
|
432
431
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
432
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
433
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
433
434
|
fromDate?: string | undefined;
|
|
434
435
|
toDate?: string | undefined;
|
|
435
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
436
436
|
};
|
|
437
437
|
}>;
|
|
438
438
|
export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
@@ -444,34 +444,34 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
444
444
|
fromDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
445
445
|
toDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
446
446
|
}, "strip", z.ZodTypeAny, {
|
|
447
|
-
limit: number;
|
|
448
447
|
page: number;
|
|
448
|
+
limit: number;
|
|
449
449
|
type?: "ban" | "suspension" | undefined;
|
|
450
450
|
fromDate?: string | undefined;
|
|
451
451
|
toDate?: string | undefined;
|
|
452
452
|
}, {
|
|
453
453
|
type?: "ban" | "suspension" | undefined;
|
|
454
|
-
limit?: string | undefined;
|
|
455
454
|
page?: string | undefined;
|
|
455
|
+
limit?: string | undefined;
|
|
456
456
|
fromDate?: string | undefined;
|
|
457
457
|
toDate?: string | undefined;
|
|
458
458
|
}>, {
|
|
459
|
-
limit: number;
|
|
460
459
|
page: number;
|
|
460
|
+
limit: number;
|
|
461
461
|
type?: "ban" | "suspension" | undefined;
|
|
462
462
|
fromDate?: string | undefined;
|
|
463
463
|
toDate?: string | undefined;
|
|
464
464
|
}, {
|
|
465
465
|
type?: "ban" | "suspension" | undefined;
|
|
466
|
-
limit?: string | undefined;
|
|
467
466
|
page?: string | undefined;
|
|
467
|
+
limit?: string | undefined;
|
|
468
468
|
fromDate?: string | undefined;
|
|
469
469
|
toDate?: string | undefined;
|
|
470
470
|
}>;
|
|
471
471
|
}, "strip", z.ZodTypeAny, {
|
|
472
472
|
query: {
|
|
473
|
-
limit: number;
|
|
474
473
|
page: number;
|
|
474
|
+
limit: number;
|
|
475
475
|
type?: "ban" | "suspension" | undefined;
|
|
476
476
|
fromDate?: string | undefined;
|
|
477
477
|
toDate?: string | undefined;
|
|
@@ -479,8 +479,8 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
479
479
|
}, {
|
|
480
480
|
query: {
|
|
481
481
|
type?: "ban" | "suspension" | undefined;
|
|
482
|
-
limit?: string | undefined;
|
|
483
482
|
page?: string | undefined;
|
|
483
|
+
limit?: string | undefined;
|
|
484
484
|
fromDate?: string | undefined;
|
|
485
485
|
toDate?: string | undefined;
|
|
486
486
|
};
|
|
@@ -501,19 +501,19 @@ export declare const revokeBanSchema: z.ZodObject<{
|
|
|
501
501
|
revocationReason?: string | undefined;
|
|
502
502
|
}>;
|
|
503
503
|
}, "strip", z.ZodTypeAny, {
|
|
504
|
-
body: {
|
|
505
|
-
revocationReason?: string | undefined;
|
|
506
|
-
};
|
|
507
504
|
params: {
|
|
508
505
|
banId: string;
|
|
509
506
|
};
|
|
510
|
-
}, {
|
|
511
507
|
body: {
|
|
512
508
|
revocationReason?: string | undefined;
|
|
513
509
|
};
|
|
510
|
+
}, {
|
|
514
511
|
params: {
|
|
515
512
|
banId: string;
|
|
516
513
|
};
|
|
514
|
+
body: {
|
|
515
|
+
revocationReason?: string | undefined;
|
|
516
|
+
};
|
|
517
517
|
}>;
|
|
518
518
|
export declare const revokeSuspensionSchema: z.ZodObject<{
|
|
519
519
|
params: z.ZodObject<{
|
|
@@ -531,19 +531,19 @@ export declare const revokeSuspensionSchema: z.ZodObject<{
|
|
|
531
531
|
revocationReason?: string | undefined;
|
|
532
532
|
}>;
|
|
533
533
|
}, "strip", z.ZodTypeAny, {
|
|
534
|
-
body: {
|
|
535
|
-
revocationReason?: string | undefined;
|
|
536
|
-
};
|
|
537
534
|
params: {
|
|
538
535
|
suspensionId: string;
|
|
539
536
|
};
|
|
540
|
-
}, {
|
|
541
537
|
body: {
|
|
542
538
|
revocationReason?: string | undefined;
|
|
543
539
|
};
|
|
540
|
+
}, {
|
|
544
541
|
params: {
|
|
545
542
|
suspensionId: string;
|
|
546
543
|
};
|
|
544
|
+
body: {
|
|
545
|
+
revocationReason?: string | undefined;
|
|
546
|
+
};
|
|
547
547
|
}>;
|
|
548
548
|
export declare const extendSuspensionSchema: z.ZodObject<{
|
|
549
549
|
params: z.ZodObject<{
|
|
@@ -570,21 +570,21 @@ export declare const extendSuspensionSchema: z.ZodObject<{
|
|
|
570
570
|
extensionReason?: string | undefined;
|
|
571
571
|
}>;
|
|
572
572
|
}, "strip", z.ZodTypeAny, {
|
|
573
|
+
params: {
|
|
574
|
+
suspensionId: string;
|
|
575
|
+
};
|
|
573
576
|
body: {
|
|
574
577
|
newEndDate: string;
|
|
575
578
|
extensionReason?: string | undefined;
|
|
576
579
|
};
|
|
580
|
+
}, {
|
|
577
581
|
params: {
|
|
578
582
|
suspensionId: string;
|
|
579
583
|
};
|
|
580
|
-
}, {
|
|
581
584
|
body: {
|
|
582
585
|
newEndDate: string;
|
|
583
586
|
extensionReason?: string | undefined;
|
|
584
587
|
};
|
|
585
|
-
params: {
|
|
586
|
-
suspensionId: string;
|
|
587
|
-
};
|
|
588
588
|
}>;
|
|
589
589
|
export declare const reviewAppealSchema: z.ZodObject<{
|
|
590
590
|
params: z.ZodObject<{
|
|
@@ -608,23 +608,23 @@ export declare const reviewAppealSchema: z.ZodObject<{
|
|
|
608
608
|
adminNotes?: string | undefined;
|
|
609
609
|
}>;
|
|
610
610
|
}, "strip", z.ZodTypeAny, {
|
|
611
|
-
body: {
|
|
612
|
-
appealStatus: "approved" | "rejected";
|
|
613
|
-
adminNotes?: string | undefined;
|
|
614
|
-
};
|
|
615
611
|
params: {
|
|
616
612
|
banId?: string | undefined;
|
|
617
613
|
suspensionId?: string | undefined;
|
|
618
614
|
};
|
|
619
|
-
}, {
|
|
620
615
|
body: {
|
|
621
616
|
appealStatus: "approved" | "rejected";
|
|
622
617
|
adminNotes?: string | undefined;
|
|
623
618
|
};
|
|
619
|
+
}, {
|
|
624
620
|
params: {
|
|
625
621
|
banId?: string | undefined;
|
|
626
622
|
suspensionId?: string | undefined;
|
|
627
623
|
};
|
|
624
|
+
body: {
|
|
625
|
+
appealStatus: "approved" | "rejected";
|
|
626
|
+
adminNotes?: string | undefined;
|
|
627
|
+
};
|
|
628
628
|
}>;
|
|
629
629
|
export declare const exportBansSchema: z.ZodObject<{
|
|
630
630
|
query: z.ZodEffects<z.ZodObject<{
|