vr-commons 1.0.146 → 1.0.148
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 -1
- package/dist/utils/admin.device.utils.js +45 -0
- package/dist/validations/admin.devicePayment.validations.d.ts +20 -20
- package/dist/validations/admin.devices.validations.d.ts +28 -95
- package/dist/validations/admin.devices.validations.js +2 -23
- package/dist/validations/appSpecs.validations.d.ts +2 -2
- package/dist/validations/auth.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +4 -4
- package/dist/validations/eventlogs.admin.validations.d.ts +22 -22
- package/dist/validations/index.d.ts +1 -1
- package/dist/validations/index.js +2 -3
- package/dist/validations/moderation.validations.d.ts +21 -21
- package/dist/validations/pricings.validations.d.ts +22 -22
- package/dist/validations/product.validations.d.ts +16 -16
- package/dist/validations/profiles.validations.d.ts +30 -30
- package/dist/validations/users.admin.validations.d.ts +12 -12
- package/package.json +2 -2
|
@@ -24,19 +24,24 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
24
24
|
sortOrder: "DESC" | "ASC";
|
|
25
25
|
hasDeviceSession: boolean;
|
|
26
26
|
search?: string | undefined;
|
|
27
|
+
actorId?: string | undefined;
|
|
28
|
+
actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
29
|
+
action?: string | undefined;
|
|
30
|
+
entity?: string | undefined;
|
|
31
|
+
entityId?: string | undefined;
|
|
27
32
|
firstName?: string | undefined;
|
|
28
33
|
lastName?: string | undefined;
|
|
29
34
|
fromDate?: string | undefined;
|
|
30
35
|
toDate?: string | undefined;
|
|
31
|
-
|
|
36
|
+
actorName?: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
limit?: string | undefined;
|
|
39
|
+
search?: string | undefined;
|
|
32
40
|
actorId?: string | undefined;
|
|
41
|
+
actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
33
42
|
action?: string | undefined;
|
|
34
43
|
entity?: string | undefined;
|
|
35
44
|
entityId?: string | undefined;
|
|
36
|
-
actorName?: string | undefined;
|
|
37
|
-
}, {
|
|
38
|
-
search?: string | undefined;
|
|
39
|
-
limit?: string | undefined;
|
|
40
45
|
firstName?: string | undefined;
|
|
41
46
|
lastName?: string | undefined;
|
|
42
47
|
page?: string | undefined;
|
|
@@ -44,16 +49,16 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
44
49
|
fromDate?: string | undefined;
|
|
45
50
|
toDate?: string | undefined;
|
|
46
51
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
47
|
-
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
48
|
-
actorId?: string | undefined;
|
|
49
|
-
action?: string | undefined;
|
|
50
|
-
entity?: string | undefined;
|
|
51
|
-
entityId?: string | undefined;
|
|
52
52
|
actorName?: string | undefined;
|
|
53
53
|
hasDeviceSession?: string | undefined;
|
|
54
54
|
}>, any, {
|
|
55
|
-
search?: string | undefined;
|
|
56
55
|
limit?: string | undefined;
|
|
56
|
+
search?: string | undefined;
|
|
57
|
+
actorId?: string | undefined;
|
|
58
|
+
actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
59
|
+
action?: string | undefined;
|
|
60
|
+
entity?: string | undefined;
|
|
61
|
+
entityId?: string | undefined;
|
|
57
62
|
firstName?: string | undefined;
|
|
58
63
|
lastName?: string | undefined;
|
|
59
64
|
page?: string | undefined;
|
|
@@ -61,11 +66,6 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
61
66
|
fromDate?: string | undefined;
|
|
62
67
|
toDate?: string | undefined;
|
|
63
68
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
64
|
-
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
65
|
-
actorId?: string | undefined;
|
|
66
|
-
action?: string | undefined;
|
|
67
|
-
entity?: string | undefined;
|
|
68
|
-
entityId?: string | undefined;
|
|
69
69
|
actorName?: string | undefined;
|
|
70
70
|
hasDeviceSession?: string | undefined;
|
|
71
71
|
}>;
|
|
@@ -73,8 +73,13 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
73
73
|
query?: any;
|
|
74
74
|
}, {
|
|
75
75
|
query: {
|
|
76
|
-
search?: string | undefined;
|
|
77
76
|
limit?: string | undefined;
|
|
77
|
+
search?: string | undefined;
|
|
78
|
+
actorId?: string | undefined;
|
|
79
|
+
actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
80
|
+
action?: string | undefined;
|
|
81
|
+
entity?: string | undefined;
|
|
82
|
+
entityId?: string | undefined;
|
|
78
83
|
firstName?: string | undefined;
|
|
79
84
|
lastName?: string | undefined;
|
|
80
85
|
page?: string | undefined;
|
|
@@ -82,11 +87,6 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
82
87
|
fromDate?: string | undefined;
|
|
83
88
|
toDate?: string | undefined;
|
|
84
89
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
85
|
-
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
86
|
-
actorId?: string | undefined;
|
|
87
|
-
action?: string | undefined;
|
|
88
|
-
entity?: string | undefined;
|
|
89
|
-
entityId?: string | undefined;
|
|
90
90
|
actorName?: string | undefined;
|
|
91
91
|
hasDeviceSession?: string | undefined;
|
|
92
92
|
};
|
|
@@ -10,6 +10,6 @@ export { updateProfileSchema, requestPhoneChangeSchema, verifyPhoneChangeSchema,
|
|
|
10
10
|
export { updateAdminSchema, updateRiderSchema, deleteUserSchema, getUserSchema, getUsersSchema, hireAdminSchema, promoteAdminSchema, demoteAdminSchema, fireEmployeeSchema, upgradeToRiderSchema, resetPasswordSchema, } from "./users.admin.validations";
|
|
11
11
|
export { createProductSchema, updateProductSchema, getProductSchema, getProductsSchema, deactivateProductSchema, activateProductSchema, deleteProductSchema, updateStockSchema, } from "./product.validations";
|
|
12
12
|
export { createPricingSchema, updatePricingSchema, getPricingSchema, getPricingsSchema, deletePricingSchema, } from "./pricings.validations";
|
|
13
|
-
export { checkAvailabilitySchema, createDevicePairsSchema, adminLockDeviceSchema, adminUnlockDeviceSchema,
|
|
13
|
+
export { checkAvailabilitySchema, createDevicePairsSchema, adminLockDeviceSchema, adminUnlockDeviceSchema, getDeviceSchema, getDevicesSchema, deleteDeviceSchema, disableDeviceSchema, makePermanentSchema, } from "./admin.devices.validations";
|
|
14
14
|
export { createPlanSchema, limitedUpdateSchema, getDevicePlanSchema, getPlanSchema, getUserPlansSchema, listPlansSchema, recordPaymentSchema, deletePlanSchema, } from "./admin.devicePayment.validations";
|
|
15
15
|
export { listEventLogsSchema, getEventLogSchema, } from "./eventlogs.admin.validations";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAppSpecsSchema = exports.activateAppSpecsSchema = exports.getActiveAppSpecsSchema = exports.listAppSpecsSchema = exports.updateAppSpecsSchema = exports.createAppSpecsSchema = exports.exportBansSchema = exports.createSuspensionSchema = exports.createBanSchema = exports.extendSuspensionSchema = exports.revokeSuspensionSchema = exports.revokeBanSchema = exports.reviewAppealSchema = exports.listSuspensionsSchema = exports.listPendingAppealsSchema = exports.listBansSchema = exports.getUserBansSchema = exports.getUserSuspensionsSchema = exports.getSuspensionSchema = exports.getUserRestrictionsSchema = exports.getBanSchema = exports.submitSuspensionAppealSchema = exports.submitBanAppealSchema = exports.deactivateAccountSchema = exports.createRiderSchema = exports.updateRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.googleLoginSchema = exports.completePassengerProfileSchema = exports.checkRiderAccountSchema = exports.setRiderPasswordSchema = exports.riderPasswordRegex = exports.passwordRegex = exports.emailRegex = exports.phoneRegex = exports.requestOtpSchema = exports.resendOtpSchema = exports.verifyOtpSchema = exports.registerSchema = exports.refreshTokenSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
|
|
4
|
-
exports.makePermanentSchema = exports.disableDeviceSchema = exports.deleteDeviceSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.
|
|
5
|
-
exports.getEventLogSchema = exports.listEventLogsSchema = exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema =
|
|
4
|
+
exports.createPlanSchema = exports.makePermanentSchema = exports.disableDeviceSchema = exports.deleteDeviceSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.adminUnlockDeviceSchema = exports.adminLockDeviceSchema = exports.createDevicePairsSchema = exports.checkAvailabilitySchema = exports.deletePricingSchema = exports.getPricingsSchema = exports.getPricingSchema = exports.updatePricingSchema = exports.createPricingSchema = exports.updateStockSchema = exports.deleteProductSchema = exports.activateProductSchema = exports.deactivateProductSchema = exports.getProductsSchema = exports.getProductSchema = exports.updateProductSchema = exports.createProductSchema = exports.resetPasswordSchema = exports.upgradeToRiderSchema = exports.fireEmployeeSchema = exports.demoteAdminSchema = exports.promoteAdminSchema = exports.hireAdminSchema = exports.getUsersSchema = exports.getUserSchema = exports.deleteUserSchema = exports.updateRiderSchema = exports.updateAdminSchema = exports.registerRiderSchema = exports.riderPasswordSchema = exports.changePasswordSchema = exports.strongPasswordRegex = exports.deleteAccountSchema = exports.verifyPhoneChangeSchema = exports.requestPhoneChangeSchema = exports.updateProfileSchema = exports.getInstallmentsSchema = exports.getInstallmentByIdSchema = exports.payInstallmentSchema = exports.serialRegex = exports.extendSessionSchema = exports.unlockDeviceSchema = exports.getUserPaymentPlanSchema = exports.listUserPaymentPlansSchema = void 0;
|
|
5
|
+
exports.getEventLogSchema = exports.listEventLogsSchema = exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema = void 0;
|
|
6
6
|
var validate_validations_1 = require("./validate.validations");
|
|
7
7
|
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_validations_1.validate; } });
|
|
8
8
|
var auth_validations_1 = require("./auth.validations");
|
|
@@ -118,7 +118,6 @@ Object.defineProperty(exports, "checkAvailabilitySchema", { enumerable: true, ge
|
|
|
118
118
|
Object.defineProperty(exports, "createDevicePairsSchema", { enumerable: true, get: function () { return admin_devices_validations_1.createDevicePairsSchema; } });
|
|
119
119
|
Object.defineProperty(exports, "adminLockDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.adminLockDeviceSchema; } });
|
|
120
120
|
Object.defineProperty(exports, "adminUnlockDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.adminUnlockDeviceSchema; } });
|
|
121
|
-
Object.defineProperty(exports, "updateDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.updateDeviceSchema; } });
|
|
122
121
|
Object.defineProperty(exports, "getDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.getDeviceSchema; } });
|
|
123
122
|
Object.defineProperty(exports, "getDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.getDevicesSchema; } });
|
|
124
123
|
Object.defineProperty(exports, "deleteDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.deleteDeviceSchema; } });
|
|
@@ -276,21 +276,21 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
276
276
|
limit: number;
|
|
277
277
|
page: number;
|
|
278
278
|
search?: string | undefined;
|
|
279
|
+
status?: "active" | "revoked" | undefined;
|
|
279
280
|
userId?: string | undefined;
|
|
280
281
|
isPermanent?: "true" | "false" | undefined;
|
|
281
282
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
282
|
-
status?: "active" | "revoked" | undefined;
|
|
283
283
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
284
284
|
fromDate?: string | undefined;
|
|
285
285
|
toDate?: string | undefined;
|
|
286
286
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
287
287
|
}, {
|
|
288
|
-
search?: string | undefined;
|
|
289
288
|
limit?: string | undefined;
|
|
289
|
+
search?: string | undefined;
|
|
290
|
+
status?: "active" | "revoked" | undefined;
|
|
290
291
|
userId?: string | undefined;
|
|
291
292
|
isPermanent?: "true" | "false" | undefined;
|
|
292
293
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
293
|
-
status?: "active" | "revoked" | undefined;
|
|
294
294
|
page?: string | undefined;
|
|
295
295
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
296
296
|
fromDate?: string | undefined;
|
|
@@ -300,21 +300,21 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
300
300
|
limit: number;
|
|
301
301
|
page: number;
|
|
302
302
|
search?: string | undefined;
|
|
303
|
+
status?: "active" | "revoked" | undefined;
|
|
303
304
|
userId?: string | undefined;
|
|
304
305
|
isPermanent?: "true" | "false" | undefined;
|
|
305
306
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
306
|
-
status?: "active" | "revoked" | undefined;
|
|
307
307
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
308
308
|
fromDate?: string | undefined;
|
|
309
309
|
toDate?: string | undefined;
|
|
310
310
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
311
311
|
}, {
|
|
312
|
-
search?: string | undefined;
|
|
313
312
|
limit?: string | undefined;
|
|
313
|
+
search?: string | undefined;
|
|
314
|
+
status?: "active" | "revoked" | undefined;
|
|
314
315
|
userId?: string | undefined;
|
|
315
316
|
isPermanent?: "true" | "false" | undefined;
|
|
316
317
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
317
|
-
status?: "active" | "revoked" | undefined;
|
|
318
318
|
page?: string | undefined;
|
|
319
319
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
320
320
|
fromDate?: string | undefined;
|
|
@@ -326,10 +326,10 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
326
326
|
limit: number;
|
|
327
327
|
page: number;
|
|
328
328
|
search?: string | undefined;
|
|
329
|
+
status?: "active" | "revoked" | undefined;
|
|
329
330
|
userId?: string | undefined;
|
|
330
331
|
isPermanent?: "true" | "false" | undefined;
|
|
331
332
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
332
|
-
status?: "active" | "revoked" | undefined;
|
|
333
333
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
334
334
|
fromDate?: string | undefined;
|
|
335
335
|
toDate?: string | undefined;
|
|
@@ -337,12 +337,12 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
337
337
|
};
|
|
338
338
|
}, {
|
|
339
339
|
query: {
|
|
340
|
-
search?: string | undefined;
|
|
341
340
|
limit?: string | undefined;
|
|
341
|
+
search?: string | undefined;
|
|
342
|
+
status?: "active" | "revoked" | undefined;
|
|
342
343
|
userId?: string | undefined;
|
|
343
344
|
isPermanent?: "true" | "false" | undefined;
|
|
344
345
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
345
|
-
status?: "active" | "revoked" | undefined;
|
|
346
346
|
page?: string | undefined;
|
|
347
347
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
348
348
|
fromDate?: string | undefined;
|
|
@@ -367,19 +367,19 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
367
367
|
limit: number;
|
|
368
368
|
page: number;
|
|
369
369
|
search?: string | undefined;
|
|
370
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
370
371
|
userId?: string | undefined;
|
|
371
372
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
372
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
373
373
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
374
374
|
fromDate?: string | undefined;
|
|
375
375
|
toDate?: string | undefined;
|
|
376
376
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
377
377
|
}, {
|
|
378
|
-
search?: string | undefined;
|
|
379
378
|
limit?: string | undefined;
|
|
379
|
+
search?: string | undefined;
|
|
380
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
380
381
|
userId?: string | undefined;
|
|
381
382
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
382
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
383
383
|
page?: string | undefined;
|
|
384
384
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
385
385
|
fromDate?: string | undefined;
|
|
@@ -389,19 +389,19 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
389
389
|
limit: number;
|
|
390
390
|
page: number;
|
|
391
391
|
search?: string | undefined;
|
|
392
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
392
393
|
userId?: string | undefined;
|
|
393
394
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
394
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
395
395
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
396
396
|
fromDate?: string | undefined;
|
|
397
397
|
toDate?: string | undefined;
|
|
398
398
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
399
399
|
}, {
|
|
400
|
-
search?: string | undefined;
|
|
401
400
|
limit?: string | undefined;
|
|
401
|
+
search?: string | undefined;
|
|
402
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
402
403
|
userId?: string | undefined;
|
|
403
404
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
404
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
405
405
|
page?: string | undefined;
|
|
406
406
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
407
407
|
fromDate?: string | undefined;
|
|
@@ -413,9 +413,9 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
413
413
|
limit: number;
|
|
414
414
|
page: number;
|
|
415
415
|
search?: string | undefined;
|
|
416
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
416
417
|
userId?: string | undefined;
|
|
417
418
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
418
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
419
419
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
420
420
|
fromDate?: string | undefined;
|
|
421
421
|
toDate?: string | undefined;
|
|
@@ -423,11 +423,11 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
423
423
|
};
|
|
424
424
|
}, {
|
|
425
425
|
query: {
|
|
426
|
-
search?: string | undefined;
|
|
427
426
|
limit?: string | undefined;
|
|
427
|
+
search?: string | undefined;
|
|
428
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
428
429
|
userId?: string | undefined;
|
|
429
430
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
430
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
431
431
|
page?: string | undefined;
|
|
432
432
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
433
433
|
fromDate?: string | undefined;
|
|
@@ -450,8 +450,8 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
450
450
|
fromDate?: string | undefined;
|
|
451
451
|
toDate?: string | undefined;
|
|
452
452
|
}, {
|
|
453
|
-
type?: "ban" | "suspension" | undefined;
|
|
454
453
|
limit?: string | undefined;
|
|
454
|
+
type?: "ban" | "suspension" | undefined;
|
|
455
455
|
page?: string | undefined;
|
|
456
456
|
fromDate?: string | undefined;
|
|
457
457
|
toDate?: string | undefined;
|
|
@@ -462,8 +462,8 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
462
462
|
fromDate?: string | undefined;
|
|
463
463
|
toDate?: string | undefined;
|
|
464
464
|
}, {
|
|
465
|
-
type?: "ban" | "suspension" | undefined;
|
|
466
465
|
limit?: string | undefined;
|
|
466
|
+
type?: "ban" | "suspension" | undefined;
|
|
467
467
|
page?: string | undefined;
|
|
468
468
|
fromDate?: string | undefined;
|
|
469
469
|
toDate?: string | undefined;
|
|
@@ -478,8 +478,8 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
478
478
|
};
|
|
479
479
|
}, {
|
|
480
480
|
query: {
|
|
481
|
-
type?: "ban" | "suspension" | undefined;
|
|
482
481
|
limit?: string | undefined;
|
|
482
|
+
type?: "ban" | "suspension" | undefined;
|
|
483
483
|
page?: string | undefined;
|
|
484
484
|
fromDate?: string | undefined;
|
|
485
485
|
toDate?: string | undefined;
|
|
@@ -127,8 +127,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
127
127
|
isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
129
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
130
|
-
isActive?: boolean | undefined;
|
|
131
130
|
name?: string | undefined;
|
|
131
|
+
isActive?: boolean | undefined;
|
|
132
132
|
unitPrice?: number | undefined;
|
|
133
133
|
downPayment?: number | undefined;
|
|
134
134
|
installmentAmount?: number | null | undefined;
|
|
@@ -140,8 +140,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
140
140
|
maxOrderQuantity?: number | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
143
|
-
isActive?: boolean | undefined;
|
|
144
143
|
name?: string | undefined;
|
|
144
|
+
isActive?: boolean | undefined;
|
|
145
145
|
unitPrice?: number | undefined;
|
|
146
146
|
downPayment?: number | undefined;
|
|
147
147
|
installmentAmount?: number | null | undefined;
|
|
@@ -153,8 +153,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
153
153
|
maxOrderQuantity?: number | undefined;
|
|
154
154
|
}>, {
|
|
155
155
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
156
|
-
isActive?: boolean | undefined;
|
|
157
156
|
name?: string | undefined;
|
|
157
|
+
isActive?: boolean | undefined;
|
|
158
158
|
unitPrice?: number | undefined;
|
|
159
159
|
downPayment?: number | undefined;
|
|
160
160
|
installmentAmount?: number | null | undefined;
|
|
@@ -166,8 +166,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
166
166
|
maxOrderQuantity?: number | undefined;
|
|
167
167
|
}, {
|
|
168
168
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
169
|
-
isActive?: boolean | undefined;
|
|
170
169
|
name?: string | undefined;
|
|
170
|
+
isActive?: boolean | undefined;
|
|
171
171
|
unitPrice?: number | undefined;
|
|
172
172
|
downPayment?: number | undefined;
|
|
173
173
|
installmentAmount?: number | null | undefined;
|
|
@@ -181,8 +181,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
182
|
body: {
|
|
183
183
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
184
|
-
isActive?: boolean | undefined;
|
|
185
184
|
name?: string | undefined;
|
|
185
|
+
isActive?: boolean | undefined;
|
|
186
186
|
unitPrice?: number | undefined;
|
|
187
187
|
downPayment?: number | undefined;
|
|
188
188
|
installmentAmount?: number | null | undefined;
|
|
@@ -199,8 +199,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
199
199
|
}, {
|
|
200
200
|
body: {
|
|
201
201
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
202
|
-
isActive?: boolean | undefined;
|
|
203
202
|
name?: string | undefined;
|
|
203
|
+
isActive?: boolean | undefined;
|
|
204
204
|
unitPrice?: number | undefined;
|
|
205
205
|
downPayment?: number | undefined;
|
|
206
206
|
installmentAmount?: number | null | undefined;
|
|
@@ -245,51 +245,51 @@ export declare const getPricingsSchema: z.ZodObject<{
|
|
|
245
245
|
sortBy: z.ZodOptional<z.ZodEnum<["name", "unitPrice", "createdAt", "updatedAt"]>>;
|
|
246
246
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
247
247
|
}, "strip", z.ZodTypeAny, {
|
|
248
|
-
search?: string | undefined;
|
|
249
|
-
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
250
248
|
limit?: number | undefined;
|
|
249
|
+
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
250
|
+
search?: string | undefined;
|
|
251
251
|
isActive?: "true" | "false" | undefined;
|
|
252
|
+
productId?: string | undefined;
|
|
252
253
|
page?: number | undefined;
|
|
253
|
-
sortBy?: "
|
|
254
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "unitPrice" | undefined;
|
|
254
255
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
255
|
-
productId?: string | undefined;
|
|
256
256
|
minAmount?: number | undefined;
|
|
257
257
|
maxAmount?: number | undefined;
|
|
258
258
|
}, {
|
|
259
|
-
search?: string | undefined;
|
|
260
|
-
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
261
259
|
limit?: string | undefined;
|
|
260
|
+
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
261
|
+
search?: string | undefined;
|
|
262
262
|
isActive?: "true" | "false" | undefined;
|
|
263
|
+
productId?: string | undefined;
|
|
263
264
|
page?: string | undefined;
|
|
264
|
-
sortBy?: "
|
|
265
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "unitPrice" | undefined;
|
|
265
266
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
266
|
-
productId?: string | undefined;
|
|
267
267
|
minAmount?: string | undefined;
|
|
268
268
|
maxAmount?: string | undefined;
|
|
269
269
|
}>;
|
|
270
270
|
}, "strip", z.ZodTypeAny, {
|
|
271
271
|
query: {
|
|
272
|
-
search?: string | undefined;
|
|
273
|
-
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
274
272
|
limit?: number | undefined;
|
|
273
|
+
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
274
|
+
search?: string | undefined;
|
|
275
275
|
isActive?: "true" | "false" | undefined;
|
|
276
|
+
productId?: string | undefined;
|
|
276
277
|
page?: number | undefined;
|
|
277
|
-
sortBy?: "
|
|
278
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "unitPrice" | undefined;
|
|
278
279
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
279
|
-
productId?: string | undefined;
|
|
280
280
|
minAmount?: number | undefined;
|
|
281
281
|
maxAmount?: number | undefined;
|
|
282
282
|
};
|
|
283
283
|
}, {
|
|
284
284
|
query: {
|
|
285
|
-
search?: string | undefined;
|
|
286
|
-
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
287
285
|
limit?: string | undefined;
|
|
286
|
+
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
287
|
+
search?: string | undefined;
|
|
288
288
|
isActive?: "true" | "false" | undefined;
|
|
289
|
+
productId?: string | undefined;
|
|
289
290
|
page?: string | undefined;
|
|
290
|
-
sortBy?: "
|
|
291
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "unitPrice" | undefined;
|
|
291
292
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
292
|
-
productId?: string | undefined;
|
|
293
293
|
minAmount?: string | undefined;
|
|
294
294
|
maxAmount?: string | undefined;
|
|
295
295
|
};
|
|
@@ -40,32 +40,32 @@ export declare const updateProductSchema: z.ZodObject<{
|
|
|
40
40
|
stock: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
41
41
|
isActive: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
isActive?: boolean | undefined;
|
|
44
|
-
description?: string | null | undefined;
|
|
45
43
|
name?: string | undefined;
|
|
44
|
+
description?: string | null | undefined;
|
|
46
45
|
stock?: number | undefined;
|
|
46
|
+
isActive?: boolean | undefined;
|
|
47
47
|
}, {
|
|
48
|
-
isActive?: unknown;
|
|
49
|
-
description?: unknown;
|
|
50
48
|
name?: unknown;
|
|
49
|
+
description?: unknown;
|
|
51
50
|
stock?: unknown;
|
|
51
|
+
isActive?: unknown;
|
|
52
52
|
}>;
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
54
|
body: {
|
|
55
|
-
isActive?: boolean | undefined;
|
|
56
|
-
description?: string | null | undefined;
|
|
57
55
|
name?: string | undefined;
|
|
56
|
+
description?: string | null | undefined;
|
|
58
57
|
stock?: number | undefined;
|
|
58
|
+
isActive?: boolean | undefined;
|
|
59
59
|
};
|
|
60
60
|
params: {
|
|
61
61
|
id: string;
|
|
62
62
|
};
|
|
63
63
|
}, {
|
|
64
64
|
body: {
|
|
65
|
-
isActive?: unknown;
|
|
66
|
-
description?: unknown;
|
|
67
65
|
name?: unknown;
|
|
66
|
+
description?: unknown;
|
|
68
67
|
stock?: unknown;
|
|
68
|
+
isActive?: unknown;
|
|
69
69
|
};
|
|
70
70
|
params: {
|
|
71
71
|
id: string;
|
|
@@ -98,39 +98,39 @@ export declare const getProductsSchema: z.ZodObject<{
|
|
|
98
98
|
sortBy: z.ZodOptional<z.ZodEnum<["name", "stock", "createdAt", "updatedAt"]>>;
|
|
99
99
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
search?: string | undefined;
|
|
102
101
|
limit?: number | undefined;
|
|
102
|
+
search?: string | undefined;
|
|
103
103
|
isActive?: "true" | "false" | undefined;
|
|
104
104
|
page?: number | undefined;
|
|
105
|
-
sortBy?: "
|
|
105
|
+
sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
|
|
106
106
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
107
107
|
minStock?: number | undefined;
|
|
108
108
|
}, {
|
|
109
|
-
search?: string | undefined;
|
|
110
109
|
limit?: string | undefined;
|
|
110
|
+
search?: string | undefined;
|
|
111
111
|
isActive?: "true" | "false" | undefined;
|
|
112
112
|
page?: string | undefined;
|
|
113
|
-
sortBy?: "
|
|
113
|
+
sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
|
|
114
114
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
115
115
|
minStock?: string | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
query: {
|
|
119
|
-
search?: string | undefined;
|
|
120
119
|
limit?: number | undefined;
|
|
120
|
+
search?: string | undefined;
|
|
121
121
|
isActive?: "true" | "false" | undefined;
|
|
122
122
|
page?: number | undefined;
|
|
123
|
-
sortBy?: "
|
|
123
|
+
sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
|
|
124
124
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
125
125
|
minStock?: number | undefined;
|
|
126
126
|
};
|
|
127
127
|
}, {
|
|
128
128
|
query: {
|
|
129
|
-
search?: string | undefined;
|
|
130
129
|
limit?: string | undefined;
|
|
130
|
+
search?: string | undefined;
|
|
131
131
|
isActive?: "true" | "false" | undefined;
|
|
132
132
|
page?: string | undefined;
|
|
133
|
-
sortBy?: "
|
|
133
|
+
sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
|
|
134
134
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
135
135
|
minStock?: string | undefined;
|
|
136
136
|
};
|