vr-commons 1.0.149 → 1.0.151
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/admin.device.utils.d.ts +17 -0
- package/dist/utils/admin.device.utils.js +56 -0
- package/dist/validations/admin.devicePayment.validations.d.ts +24 -24
- package/dist/validations/admin.devices.validations.d.ts +5 -0
- package/dist/validations/admin.devices.validations.js +1 -0
- package/dist/validations/admin.installment.validations.d.ts +8 -8
- package/dist/validations/appSpecs.validations.d.ts +16 -16
- package/dist/validations/appeals.validations.d.ts +8 -8
- package/dist/validations/auth.validations.d.ts +8 -8
- package/dist/validations/bans.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +12 -12
- package/dist/validations/eventlogs.admin.validations.d.ts +15 -15
- package/dist/validations/moderation.validations.d.ts +99 -99
- package/dist/validations/pricings.validations.d.ts +30 -30
- package/dist/validations/product.validations.d.ts +24 -24
- package/dist/validations/profiles.validations.d.ts +42 -42
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +40 -40
- package/package.json +2 -2
|
@@ -18,14 +18,14 @@ 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
|
actorId?: string | undefined;
|
|
28
|
-
actorType?: "
|
|
28
|
+
actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
29
29
|
action?: string | undefined;
|
|
30
30
|
entity?: string | undefined;
|
|
31
31
|
entityId?: string | undefined;
|
|
@@ -35,37 +35,37 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
35
35
|
toDate?: string | undefined;
|
|
36
36
|
actorName?: string | undefined;
|
|
37
37
|
}, {
|
|
38
|
+
page?: string | undefined;
|
|
38
39
|
limit?: string | undefined;
|
|
39
40
|
search?: string | undefined;
|
|
41
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
42
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
40
43
|
actorId?: string | undefined;
|
|
41
|
-
actorType?: "
|
|
44
|
+
actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
42
45
|
action?: string | undefined;
|
|
43
46
|
entity?: string | undefined;
|
|
44
47
|
entityId?: string | undefined;
|
|
45
48
|
firstName?: string | undefined;
|
|
46
49
|
lastName?: string | undefined;
|
|
47
|
-
page?: string | undefined;
|
|
48
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
49
50
|
fromDate?: string | undefined;
|
|
50
51
|
toDate?: string | undefined;
|
|
51
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
52
52
|
actorName?: string | undefined;
|
|
53
53
|
hasDeviceSession?: string | undefined;
|
|
54
54
|
}>, any, {
|
|
55
|
+
page?: string | undefined;
|
|
55
56
|
limit?: string | undefined;
|
|
56
57
|
search?: string | undefined;
|
|
58
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
59
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
57
60
|
actorId?: string | undefined;
|
|
58
|
-
actorType?: "
|
|
61
|
+
actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
59
62
|
action?: string | undefined;
|
|
60
63
|
entity?: string | undefined;
|
|
61
64
|
entityId?: string | undefined;
|
|
62
65
|
firstName?: string | undefined;
|
|
63
66
|
lastName?: string | undefined;
|
|
64
|
-
page?: string | undefined;
|
|
65
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
66
67
|
fromDate?: string | undefined;
|
|
67
68
|
toDate?: string | undefined;
|
|
68
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
69
69
|
actorName?: string | undefined;
|
|
70
70
|
hasDeviceSession?: string | undefined;
|
|
71
71
|
}>;
|
|
@@ -73,20 +73,20 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
73
73
|
query?: any;
|
|
74
74
|
}, {
|
|
75
75
|
query: {
|
|
76
|
+
page?: string | undefined;
|
|
76
77
|
limit?: string | undefined;
|
|
77
78
|
search?: string | undefined;
|
|
79
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
80
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
78
81
|
actorId?: string | undefined;
|
|
79
|
-
actorType?: "
|
|
82
|
+
actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
80
83
|
action?: string | undefined;
|
|
81
84
|
entity?: string | undefined;
|
|
82
85
|
entityId?: string | undefined;
|
|
83
86
|
firstName?: string | undefined;
|
|
84
87
|
lastName?: string | undefined;
|
|
85
|
-
page?: string | undefined;
|
|
86
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
87
88
|
fromDate?: string | undefined;
|
|
88
89
|
toDate?: string | undefined;
|
|
89
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
90
90
|
actorName?: string | undefined;
|
|
91
91
|
hasDeviceSession?: string | undefined;
|
|
92
92
|
};
|
|
@@ -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;
|
|
279
278
|
status?: "active" | "revoked" | undefined;
|
|
279
|
+
search?: string | undefined;
|
|
280
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
281
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
280
282
|
userId?: string | undefined;
|
|
281
283
|
isPermanent?: "true" | "false" | undefined;
|
|
282
284
|
appealStatus?: "pending" | "approved" | "rejected" | 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
|
+
status?: "active" | "revoked" | undefined;
|
|
289
|
+
page?: string | undefined;
|
|
288
290
|
limit?: string | undefined;
|
|
289
291
|
search?: string | undefined;
|
|
290
|
-
|
|
292
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
293
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
291
294
|
userId?: string | undefined;
|
|
292
295
|
isPermanent?: "true" | "false" | undefined;
|
|
293
296
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
294
|
-
page?: string | undefined;
|
|
295
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | 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;
|
|
303
302
|
status?: "active" | "revoked" | undefined;
|
|
303
|
+
search?: string | undefined;
|
|
304
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
305
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
304
306
|
userId?: string | undefined;
|
|
305
307
|
isPermanent?: "true" | "false" | undefined;
|
|
306
308
|
appealStatus?: "pending" | "approved" | "rejected" | 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
|
+
status?: "active" | "revoked" | undefined;
|
|
313
|
+
page?: string | undefined;
|
|
312
314
|
limit?: string | undefined;
|
|
313
315
|
search?: string | undefined;
|
|
314
|
-
|
|
316
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
317
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
315
318
|
userId?: string | undefined;
|
|
316
319
|
isPermanent?: "true" | "false" | undefined;
|
|
317
320
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
318
|
-
page?: string | undefined;
|
|
319
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | 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;
|
|
329
328
|
status?: "active" | "revoked" | undefined;
|
|
329
|
+
search?: string | undefined;
|
|
330
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
331
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
330
332
|
userId?: string | undefined;
|
|
331
333
|
isPermanent?: "true" | "false" | undefined;
|
|
332
334
|
appealStatus?: "pending" | "approved" | "rejected" | 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
|
+
status?: "active" | "revoked" | undefined;
|
|
341
|
+
page?: string | undefined;
|
|
340
342
|
limit?: string | undefined;
|
|
341
343
|
search?: string | undefined;
|
|
342
|
-
|
|
344
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
345
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
343
346
|
userId?: string | undefined;
|
|
344
347
|
isPermanent?: "true" | "false" | undefined;
|
|
345
348
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
346
|
-
page?: string | undefined;
|
|
347
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | 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
|
-
|
|
368
|
+
limit: number;
|
|
370
369
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
370
|
+
search?: string | undefined;
|
|
371
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
372
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
371
373
|
userId?: string | undefined;
|
|
372
374
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
373
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
374
375
|
fromDate?: string | undefined;
|
|
375
376
|
toDate?: string | undefined;
|
|
376
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
377
377
|
}, {
|
|
378
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
379
|
+
page?: string | undefined;
|
|
378
380
|
limit?: string | undefined;
|
|
379
381
|
search?: string | undefined;
|
|
380
|
-
|
|
382
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
383
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
381
384
|
userId?: string | undefined;
|
|
382
385
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
383
|
-
page?: string | undefined;
|
|
384
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | 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
|
-
|
|
390
|
+
limit: number;
|
|
392
391
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
392
|
+
search?: string | undefined;
|
|
393
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
394
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
393
395
|
userId?: string | undefined;
|
|
394
396
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
395
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
396
397
|
fromDate?: string | undefined;
|
|
397
398
|
toDate?: string | undefined;
|
|
398
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
399
399
|
}, {
|
|
400
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
401
|
+
page?: string | undefined;
|
|
400
402
|
limit?: string | undefined;
|
|
401
403
|
search?: string | undefined;
|
|
402
|
-
|
|
404
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
405
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
403
406
|
userId?: string | undefined;
|
|
404
407
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
405
|
-
page?: string | undefined;
|
|
406
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | 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
|
-
|
|
414
|
+
limit: number;
|
|
416
415
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
416
|
+
search?: string | undefined;
|
|
417
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
418
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
417
419
|
userId?: string | undefined;
|
|
418
420
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
419
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
420
421
|
fromDate?: string | undefined;
|
|
421
422
|
toDate?: string | undefined;
|
|
422
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
423
423
|
};
|
|
424
424
|
}, {
|
|
425
425
|
query: {
|
|
426
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
427
|
+
page?: string | undefined;
|
|
426
428
|
limit?: string | undefined;
|
|
427
429
|
search?: string | undefined;
|
|
428
|
-
|
|
430
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
431
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
429
432
|
userId?: string | undefined;
|
|
430
433
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
431
|
-
page?: string | undefined;
|
|
432
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | 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,43 +444,43 @@ 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
|
-
limit?: string | undefined;
|
|
454
453
|
type?: "ban" | "suspension" | 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
|
-
limit?: string | undefined;
|
|
466
465
|
type?: "ban" | "suspension" | 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;
|
|
478
478
|
};
|
|
479
479
|
}, {
|
|
480
480
|
query: {
|
|
481
|
-
limit?: string | undefined;
|
|
482
481
|
type?: "ban" | "suspension" | 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<{
|