vr-commons 1.0.96 → 1.0.97
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 +59 -0
- package/dist/utils/admin.device.utils.js +231 -0
- package/dist/utils/admin.devicePayment.utils.d.ts +46 -0
- package/dist/utils/admin.devicePayment.utils.js +206 -0
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.js +5 -1
- package/dist/utils/types.d.ts +7 -0
- package/dist/validations/admin.devicePayment.validations.d.ts +270 -0
- package/dist/validations/admin.devicePayment.validations.js +98 -0
- package/dist/validations/admin.devices.validations.d.ts +250 -0
- package/dist/validations/admin.devices.validations.js +118 -0
- 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 +2 -2
- package/dist/validations/bans.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +12 -12
- package/dist/validations/index.d.ts +2 -0
- package/dist/validations/index.js +20 -1
- package/dist/validations/moderation.validations.d.ts +105 -105
- package/dist/validations/payinstallment.validations.d.ts +5 -5
- package/dist/validations/pricing.validations.d.ts +313 -0
- package/dist/validations/pricing.validations.js +376 -0
- package/dist/validations/pricings.validations.d.ts +54 -54
- package/dist/validations/product.validations.d.ts +42 -42
- package/dist/validations/profiles.validations.d.ts +46 -46
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +44 -44
- package/package.json +1 -1
|
@@ -49,19 +49,19 @@ export declare const getUserRestrictionsSchema: z.ZodObject<{
|
|
|
49
49
|
includeResolved?: "true" | "false" | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
params: {
|
|
53
|
-
userId: string;
|
|
54
|
-
};
|
|
55
52
|
query: {
|
|
56
53
|
includeResolved?: "true" | "false" | undefined;
|
|
57
54
|
};
|
|
58
|
-
}, {
|
|
59
55
|
params: {
|
|
60
56
|
userId: string;
|
|
61
57
|
};
|
|
58
|
+
}, {
|
|
62
59
|
query: {
|
|
63
60
|
includeResolved?: "true" | "false" | undefined;
|
|
64
61
|
};
|
|
62
|
+
params: {
|
|
63
|
+
userId: string;
|
|
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
|
-
params: {
|
|
83
|
-
userId: string;
|
|
84
|
-
};
|
|
85
82
|
query: {
|
|
86
83
|
includeResolved?: "true" | "false" | undefined;
|
|
87
84
|
};
|
|
88
|
-
}, {
|
|
89
85
|
params: {
|
|
90
86
|
userId: string;
|
|
91
87
|
};
|
|
88
|
+
}, {
|
|
92
89
|
query: {
|
|
93
90
|
includeResolved?: "true" | "false" | undefined;
|
|
94
91
|
};
|
|
92
|
+
params: {
|
|
93
|
+
userId: string;
|
|
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
|
-
};
|
|
118
115
|
query: {
|
|
119
116
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
120
117
|
includeResolved?: "true" | "false" | undefined;
|
|
121
118
|
};
|
|
122
|
-
}, {
|
|
123
119
|
params: {
|
|
124
120
|
userId: string;
|
|
125
121
|
};
|
|
122
|
+
}, {
|
|
126
123
|
query: {
|
|
127
124
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
128
125
|
includeResolved?: "true" | "false" | undefined;
|
|
129
126
|
};
|
|
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
|
-
params: {
|
|
148
|
-
banId: string;
|
|
149
|
-
};
|
|
150
147
|
body: {
|
|
151
148
|
appealReason: string;
|
|
152
149
|
};
|
|
153
|
-
}, {
|
|
154
150
|
params: {
|
|
155
151
|
banId: string;
|
|
156
152
|
};
|
|
153
|
+
}, {
|
|
157
154
|
body: {
|
|
158
155
|
appealReason: string;
|
|
159
156
|
};
|
|
157
|
+
params: {
|
|
158
|
+
banId: 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
|
-
params: {
|
|
178
|
-
suspensionId: string;
|
|
179
|
-
};
|
|
180
177
|
body: {
|
|
181
178
|
appealReason: string;
|
|
182
179
|
};
|
|
183
|
-
}, {
|
|
184
180
|
params: {
|
|
185
181
|
suspensionId: string;
|
|
186
182
|
};
|
|
183
|
+
}, {
|
|
187
184
|
body: {
|
|
188
185
|
appealReason: string;
|
|
189
186
|
};
|
|
187
|
+
params: {
|
|
188
|
+
suspensionId: 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
|
-
};
|
|
213
210
|
body: {
|
|
214
211
|
reason: string;
|
|
215
212
|
isPermanent: boolean;
|
|
216
213
|
};
|
|
217
|
-
}, {
|
|
218
214
|
params: {
|
|
219
215
|
userId: string;
|
|
220
216
|
};
|
|
217
|
+
}, {
|
|
221
218
|
body: {
|
|
222
219
|
reason: string;
|
|
223
220
|
isPermanent?: boolean | undefined;
|
|
224
221
|
};
|
|
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
|
-
};
|
|
248
245
|
body: {
|
|
249
246
|
reason: string;
|
|
250
247
|
endsAt: string;
|
|
251
248
|
};
|
|
252
|
-
}, {
|
|
253
249
|
params: {
|
|
254
250
|
userId: string;
|
|
255
251
|
};
|
|
252
|
+
}, {
|
|
256
253
|
body: {
|
|
257
254
|
reason: string;
|
|
258
255
|
endsAt: string;
|
|
259
256
|
};
|
|
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
|
-
page: number;
|
|
277
276
|
limit: number;
|
|
278
|
-
|
|
277
|
+
page: number;
|
|
279
278
|
search?: string | undefined;
|
|
280
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
281
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
282
279
|
userId?: string | undefined;
|
|
283
280
|
isPermanent?: "true" | "false" | undefined;
|
|
284
281
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
282
|
+
status?: "active" | "revoked" | undefined;
|
|
283
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
285
284
|
fromDate?: string | undefined;
|
|
286
285
|
toDate?: string | undefined;
|
|
286
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
287
287
|
}, {
|
|
288
|
-
status?: "active" | "revoked" | undefined;
|
|
289
|
-
page?: string | undefined;
|
|
290
|
-
limit?: string | undefined;
|
|
291
288
|
search?: string | undefined;
|
|
292
|
-
|
|
293
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
289
|
+
limit?: string | undefined;
|
|
294
290
|
userId?: string | undefined;
|
|
295
291
|
isPermanent?: "true" | "false" | undefined;
|
|
296
292
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
293
|
+
status?: "active" | "revoked" | undefined;
|
|
294
|
+
page?: string | undefined;
|
|
295
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
297
296
|
fromDate?: string | undefined;
|
|
298
297
|
toDate?: string | undefined;
|
|
298
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
299
299
|
}>, {
|
|
300
|
-
page: number;
|
|
301
300
|
limit: number;
|
|
302
|
-
|
|
301
|
+
page: number;
|
|
303
302
|
search?: string | undefined;
|
|
304
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
305
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
306
303
|
userId?: string | undefined;
|
|
307
304
|
isPermanent?: "true" | "false" | undefined;
|
|
308
305
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
306
|
+
status?: "active" | "revoked" | undefined;
|
|
307
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
309
308
|
fromDate?: string | undefined;
|
|
310
309
|
toDate?: string | undefined;
|
|
310
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
311
311
|
}, {
|
|
312
|
-
status?: "active" | "revoked" | undefined;
|
|
313
|
-
page?: string | undefined;
|
|
314
|
-
limit?: string | undefined;
|
|
315
312
|
search?: string | undefined;
|
|
316
|
-
|
|
317
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
313
|
+
limit?: string | undefined;
|
|
318
314
|
userId?: string | undefined;
|
|
319
315
|
isPermanent?: "true" | "false" | undefined;
|
|
320
316
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
317
|
+
status?: "active" | "revoked" | undefined;
|
|
318
|
+
page?: string | undefined;
|
|
319
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
321
320
|
fromDate?: string | undefined;
|
|
322
321
|
toDate?: string | undefined;
|
|
322
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
323
323
|
}>;
|
|
324
324
|
}, "strip", z.ZodTypeAny, {
|
|
325
325
|
query: {
|
|
326
|
-
page: number;
|
|
327
326
|
limit: number;
|
|
328
|
-
|
|
327
|
+
page: number;
|
|
329
328
|
search?: string | undefined;
|
|
330
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
331
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
332
329
|
userId?: string | undefined;
|
|
333
330
|
isPermanent?: "true" | "false" | undefined;
|
|
334
331
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
332
|
+
status?: "active" | "revoked" | undefined;
|
|
333
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
335
334
|
fromDate?: string | undefined;
|
|
336
335
|
toDate?: string | undefined;
|
|
336
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
337
337
|
};
|
|
338
338
|
}, {
|
|
339
339
|
query: {
|
|
340
|
-
status?: "active" | "revoked" | undefined;
|
|
341
|
-
page?: string | undefined;
|
|
342
|
-
limit?: string | undefined;
|
|
343
340
|
search?: string | undefined;
|
|
344
|
-
|
|
345
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
341
|
+
limit?: string | undefined;
|
|
346
342
|
userId?: string | undefined;
|
|
347
343
|
isPermanent?: "true" | "false" | undefined;
|
|
348
344
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
345
|
+
status?: "active" | "revoked" | undefined;
|
|
346
|
+
page?: string | undefined;
|
|
347
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
349
348
|
fromDate?: string | undefined;
|
|
350
349
|
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
|
-
page: number;
|
|
368
367
|
limit: number;
|
|
369
|
-
|
|
368
|
+
page: number;
|
|
370
369
|
search?: string | undefined;
|
|
371
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
372
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
373
370
|
userId?: string | undefined;
|
|
374
371
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
372
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
373
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
375
374
|
fromDate?: string | undefined;
|
|
376
375
|
toDate?: string | undefined;
|
|
376
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
377
377
|
}, {
|
|
378
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
379
|
-
page?: string | undefined;
|
|
380
|
-
limit?: string | undefined;
|
|
381
378
|
search?: string | undefined;
|
|
382
|
-
|
|
383
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
379
|
+
limit?: string | undefined;
|
|
384
380
|
userId?: string | undefined;
|
|
385
381
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
382
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
383
|
+
page?: string | undefined;
|
|
384
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
386
385
|
fromDate?: string | undefined;
|
|
387
386
|
toDate?: string | undefined;
|
|
387
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
388
388
|
}>, {
|
|
389
|
-
page: number;
|
|
390
389
|
limit: number;
|
|
391
|
-
|
|
390
|
+
page: number;
|
|
392
391
|
search?: string | undefined;
|
|
393
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
394
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
395
392
|
userId?: string | undefined;
|
|
396
393
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
394
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
395
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
397
396
|
fromDate?: string | undefined;
|
|
398
397
|
toDate?: string | undefined;
|
|
398
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
399
399
|
}, {
|
|
400
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
401
|
-
page?: string | undefined;
|
|
402
|
-
limit?: string | undefined;
|
|
403
400
|
search?: string | undefined;
|
|
404
|
-
|
|
405
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
401
|
+
limit?: string | undefined;
|
|
406
402
|
userId?: string | undefined;
|
|
407
403
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
404
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
405
|
+
page?: string | undefined;
|
|
406
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
408
407
|
fromDate?: string | undefined;
|
|
409
408
|
toDate?: string | undefined;
|
|
409
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
410
410
|
}>;
|
|
411
411
|
}, "strip", z.ZodTypeAny, {
|
|
412
412
|
query: {
|
|
413
|
-
page: number;
|
|
414
413
|
limit: number;
|
|
415
|
-
|
|
414
|
+
page: number;
|
|
416
415
|
search?: string | undefined;
|
|
417
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
418
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
419
416
|
userId?: string | undefined;
|
|
420
417
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
418
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
419
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
421
420
|
fromDate?: string | undefined;
|
|
422
421
|
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;
|
|
428
|
-
limit?: string | undefined;
|
|
429
426
|
search?: string | undefined;
|
|
430
|
-
|
|
431
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
427
|
+
limit?: string | undefined;
|
|
432
428
|
userId?: string | undefined;
|
|
433
429
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
430
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
431
|
+
page?: string | undefined;
|
|
432
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
434
433
|
fromDate?: string | undefined;
|
|
435
434
|
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
|
-
page: number;
|
|
448
447
|
limit: number;
|
|
448
|
+
page: 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
|
-
page?: string | undefined;
|
|
455
454
|
limit?: string | undefined;
|
|
455
|
+
page?: string | undefined;
|
|
456
456
|
fromDate?: string | undefined;
|
|
457
457
|
toDate?: string | undefined;
|
|
458
458
|
}>, {
|
|
459
|
-
page: number;
|
|
460
459
|
limit: number;
|
|
460
|
+
page: 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
|
-
page?: string | undefined;
|
|
467
466
|
limit?: string | undefined;
|
|
467
|
+
page?: string | undefined;
|
|
468
468
|
fromDate?: string | undefined;
|
|
469
469
|
toDate?: string | undefined;
|
|
470
470
|
}>;
|
|
471
471
|
}, "strip", z.ZodTypeAny, {
|
|
472
472
|
query: {
|
|
473
|
-
page: number;
|
|
474
473
|
limit: number;
|
|
474
|
+
page: 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
|
-
page?: string | undefined;
|
|
483
482
|
limit?: string | undefined;
|
|
483
|
+
page?: 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
|
-
params: {
|
|
505
|
-
banId: string;
|
|
506
|
-
};
|
|
507
504
|
body: {
|
|
508
505
|
revocationReason?: string | undefined;
|
|
509
506
|
};
|
|
510
|
-
}, {
|
|
511
507
|
params: {
|
|
512
508
|
banId: string;
|
|
513
509
|
};
|
|
510
|
+
}, {
|
|
514
511
|
body: {
|
|
515
512
|
revocationReason?: string | undefined;
|
|
516
513
|
};
|
|
514
|
+
params: {
|
|
515
|
+
banId: string;
|
|
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
|
-
params: {
|
|
535
|
-
suspensionId: string;
|
|
536
|
-
};
|
|
537
534
|
body: {
|
|
538
535
|
revocationReason?: string | undefined;
|
|
539
536
|
};
|
|
540
|
-
}, {
|
|
541
537
|
params: {
|
|
542
538
|
suspensionId: string;
|
|
543
539
|
};
|
|
540
|
+
}, {
|
|
544
541
|
body: {
|
|
545
542
|
revocationReason?: string | undefined;
|
|
546
543
|
};
|
|
544
|
+
params: {
|
|
545
|
+
suspensionId: string;
|
|
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
|
-
};
|
|
576
573
|
body: {
|
|
577
574
|
newEndDate: string;
|
|
578
575
|
extensionReason?: string | undefined;
|
|
579
576
|
};
|
|
580
|
-
}, {
|
|
581
577
|
params: {
|
|
582
578
|
suspensionId: string;
|
|
583
579
|
};
|
|
580
|
+
}, {
|
|
584
581
|
body: {
|
|
585
582
|
newEndDate: string;
|
|
586
583
|
extensionReason?: string | undefined;
|
|
587
584
|
};
|
|
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
|
-
params: {
|
|
612
|
-
banId?: string | undefined;
|
|
613
|
-
suspensionId?: string | undefined;
|
|
614
|
-
};
|
|
615
611
|
body: {
|
|
616
612
|
appealStatus: "approved" | "rejected";
|
|
617
613
|
adminNotes?: string | undefined;
|
|
618
614
|
};
|
|
619
|
-
}, {
|
|
620
615
|
params: {
|
|
621
616
|
banId?: string | undefined;
|
|
622
617
|
suspensionId?: string | undefined;
|
|
623
618
|
};
|
|
619
|
+
}, {
|
|
624
620
|
body: {
|
|
625
621
|
appealStatus: "approved" | "rejected";
|
|
626
622
|
adminNotes?: string | undefined;
|
|
627
623
|
};
|
|
624
|
+
params: {
|
|
625
|
+
banId?: string | undefined;
|
|
626
|
+
suspensionId?: string | undefined;
|
|
627
|
+
};
|
|
628
628
|
}>;
|
|
629
629
|
export declare const exportBansSchema: z.ZodObject<{
|
|
630
630
|
query: z.ZodEffects<z.ZodObject<{
|
|
@@ -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
|
-
};
|
|
28
24
|
body: {
|
|
29
25
|
phoneNumber: string;
|
|
30
26
|
provider: "mtn_momo" | "airtel_money";
|
|
31
27
|
};
|
|
32
|
-
}, {
|
|
33
28
|
params: {
|
|
34
29
|
planId: string;
|
|
35
30
|
installmentId: string;
|
|
36
31
|
};
|
|
32
|
+
}, {
|
|
37
33
|
body: {
|
|
38
34
|
phoneNumber: string;
|
|
39
35
|
provider?: "mtn_momo" | "airtel_money" | undefined;
|
|
40
36
|
};
|
|
37
|
+
params: {
|
|
38
|
+
planId: string;
|
|
39
|
+
installmentId: string;
|
|
40
|
+
};
|
|
41
41
|
}>;
|