vr-commons 1.0.97 → 1.0.98
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.
|
@@ -4,21 +4,21 @@ export declare const createDeviceSchema: z.ZodObject<{
|
|
|
4
4
|
serialNumber: z.ZodString;
|
|
5
5
|
productId: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
productId: string;
|
|
8
7
|
serialNumber: string;
|
|
9
|
-
}, {
|
|
10
8
|
productId: string;
|
|
9
|
+
}, {
|
|
11
10
|
serialNumber: string;
|
|
11
|
+
productId: string;
|
|
12
12
|
}>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
body: {
|
|
15
|
-
productId: string;
|
|
16
15
|
serialNumber: string;
|
|
16
|
+
productId: string;
|
|
17
17
|
};
|
|
18
18
|
}, {
|
|
19
19
|
body: {
|
|
20
|
-
productId: string;
|
|
21
20
|
serialNumber: string;
|
|
21
|
+
productId: string;
|
|
22
22
|
};
|
|
23
23
|
}>;
|
|
24
24
|
export declare const bulkCreateDevicesSchema: z.ZodObject<{
|
|
@@ -65,23 +65,23 @@ export declare const updateDeviceSchema: z.ZodObject<{
|
|
|
65
65
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
params: {
|
|
69
|
+
id: string;
|
|
70
|
+
};
|
|
68
71
|
body: {
|
|
69
72
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
70
73
|
serialNumber?: string | undefined;
|
|
71
74
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
72
75
|
};
|
|
76
|
+
}, {
|
|
73
77
|
params: {
|
|
74
78
|
id: string;
|
|
75
79
|
};
|
|
76
|
-
}, {
|
|
77
80
|
body: {
|
|
78
81
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
79
82
|
serialNumber?: string | undefined;
|
|
80
83
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
81
84
|
};
|
|
82
|
-
params: {
|
|
83
|
-
id: string;
|
|
84
|
-
};
|
|
85
85
|
}>;
|
|
86
86
|
export declare const getDeviceSchema: z.ZodObject<{
|
|
87
87
|
params: z.ZodObject<{
|
|
@@ -113,53 +113,53 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
113
113
|
sortBy: z.ZodOptional<z.ZodEnum<["serialNumber", "status", "createdAt", "updatedAt"]>>;
|
|
114
114
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
search?: string | undefined;
|
|
117
|
-
limit?: number | undefined;
|
|
118
116
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
119
|
-
page?: number | undefined;
|
|
120
|
-
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
121
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
122
117
|
productId?: string | undefined;
|
|
123
118
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
119
|
+
page?: number | undefined;
|
|
120
|
+
limit?: number | undefined;
|
|
124
121
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
125
122
|
isAssigned?: "true" | "false" | undefined;
|
|
126
|
-
}, {
|
|
127
123
|
search?: string | undefined;
|
|
128
|
-
|
|
124
|
+
sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
|
|
125
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
126
|
+
}, {
|
|
129
127
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
130
|
-
page?: string | undefined;
|
|
131
|
-
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
132
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
133
128
|
productId?: string | undefined;
|
|
134
129
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
130
|
+
page?: string | undefined;
|
|
131
|
+
limit?: string | undefined;
|
|
135
132
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
136
133
|
isAssigned?: "true" | "false" | undefined;
|
|
134
|
+
search?: string | undefined;
|
|
135
|
+
sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
|
|
136
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
137
137
|
}>;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
139
|
query: {
|
|
140
|
-
search?: string | undefined;
|
|
141
|
-
limit?: number | undefined;
|
|
142
140
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
143
|
-
page?: number | undefined;
|
|
144
|
-
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
145
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
146
141
|
productId?: string | undefined;
|
|
147
142
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
143
|
+
page?: number | undefined;
|
|
144
|
+
limit?: number | undefined;
|
|
148
145
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
149
146
|
isAssigned?: "true" | "false" | undefined;
|
|
147
|
+
search?: string | undefined;
|
|
148
|
+
sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
|
|
149
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
150
150
|
};
|
|
151
151
|
}, {
|
|
152
152
|
query: {
|
|
153
|
-
search?: string | undefined;
|
|
154
|
-
limit?: string | undefined;
|
|
155
153
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
156
|
-
page?: string | undefined;
|
|
157
|
-
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
158
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
159
154
|
productId?: string | undefined;
|
|
160
155
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
156
|
+
page?: string | undefined;
|
|
157
|
+
limit?: string | undefined;
|
|
161
158
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
162
159
|
isAssigned?: "true" | "false" | undefined;
|
|
160
|
+
search?: string | undefined;
|
|
161
|
+
sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
|
|
162
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
163
163
|
};
|
|
164
164
|
}>;
|
|
165
165
|
export declare const deleteDeviceSchema: z.ZodObject<{
|
|
@@ -179,6 +179,53 @@ export declare const deleteDeviceSchema: z.ZodObject<{
|
|
|
179
179
|
id: string;
|
|
180
180
|
};
|
|
181
181
|
}>;
|
|
182
|
+
export declare const adminLockDeviceSchema: z.ZodObject<{
|
|
183
|
+
params: z.ZodObject<{
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
id: string;
|
|
187
|
+
}, {
|
|
188
|
+
id: string;
|
|
189
|
+
}>;
|
|
190
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
191
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
reason?: string | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
reason?: string | undefined;
|
|
196
|
+
}>>;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
params: {
|
|
199
|
+
id: string;
|
|
200
|
+
};
|
|
201
|
+
body?: {
|
|
202
|
+
reason?: string | undefined;
|
|
203
|
+
} | undefined;
|
|
204
|
+
}, {
|
|
205
|
+
params: {
|
|
206
|
+
id: string;
|
|
207
|
+
};
|
|
208
|
+
body?: {
|
|
209
|
+
reason?: string | undefined;
|
|
210
|
+
} | undefined;
|
|
211
|
+
}>;
|
|
212
|
+
export declare const adminUnlockDeviceSchema: z.ZodObject<{
|
|
213
|
+
params: z.ZodObject<{
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
id: string;
|
|
217
|
+
}, {
|
|
218
|
+
id: string;
|
|
219
|
+
}>;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
params: {
|
|
222
|
+
id: string;
|
|
223
|
+
};
|
|
224
|
+
}, {
|
|
225
|
+
params: {
|
|
226
|
+
id: string;
|
|
227
|
+
};
|
|
228
|
+
}>;
|
|
182
229
|
export declare const disableDeviceSchema: z.ZodObject<{
|
|
183
230
|
params: z.ZodObject<{
|
|
184
231
|
id: z.ZodString;
|
|
@@ -195,19 +242,19 @@ export declare const disableDeviceSchema: z.ZodObject<{
|
|
|
195
242
|
reason: string;
|
|
196
243
|
}>;
|
|
197
244
|
}, "strip", z.ZodTypeAny, {
|
|
198
|
-
body: {
|
|
199
|
-
reason: string;
|
|
200
|
-
};
|
|
201
245
|
params: {
|
|
202
246
|
id: string;
|
|
203
247
|
};
|
|
204
|
-
}, {
|
|
205
248
|
body: {
|
|
206
249
|
reason: string;
|
|
207
250
|
};
|
|
251
|
+
}, {
|
|
208
252
|
params: {
|
|
209
253
|
id: string;
|
|
210
254
|
};
|
|
255
|
+
body: {
|
|
256
|
+
reason: string;
|
|
257
|
+
};
|
|
211
258
|
}>;
|
|
212
259
|
export declare const makePermanentSchema: z.ZodObject<{
|
|
213
260
|
params: z.ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkAvailabilitySchema = exports.makePermanentSchema = exports.disableDeviceSchema = exports.deleteDeviceSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.updateDeviceSchema = exports.bulkCreateDevicesSchema = exports.createDeviceSchema = void 0;
|
|
3
|
+
exports.checkAvailabilitySchema = exports.makePermanentSchema = exports.disableDeviceSchema = exports.adminUnlockDeviceSchema = exports.adminLockDeviceSchema = exports.deleteDeviceSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.updateDeviceSchema = exports.bulkCreateDevicesSchema = exports.createDeviceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const vr_models_1 = require("vr-models");
|
|
6
6
|
// Constants
|
|
@@ -81,21 +81,21 @@ exports.deleteDeviceSchema = zod_1.z.object({
|
|
|
81
81
|
}),
|
|
82
82
|
});
|
|
83
83
|
// Device status management schemas
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
84
|
+
exports.adminLockDeviceSchema = zod_1.z.object({
|
|
85
|
+
params: zod_1.z.object({
|
|
86
|
+
id: zod_1.z.string().uuid("Invalid device ID"),
|
|
87
|
+
}),
|
|
88
|
+
body: zod_1.z
|
|
89
|
+
.object({
|
|
90
|
+
reason: zod_1.z.string().optional(), // Why locking? Maintenance, lost, etc.
|
|
91
|
+
})
|
|
92
|
+
.optional(),
|
|
93
|
+
});
|
|
94
|
+
exports.adminUnlockDeviceSchema = zod_1.z.object({
|
|
95
|
+
params: zod_1.z.object({
|
|
96
|
+
id: zod_1.z.string().uuid("Invalid device ID"),
|
|
97
|
+
}),
|
|
98
|
+
});
|
|
99
99
|
exports.disableDeviceSchema = zod_1.z.object({
|
|
100
100
|
params: zod_1.z.object({
|
|
101
101
|
id: zod_1.z.string().uuid("Invalid device ID"),
|
|
@@ -10,5 +10,5 @@ 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, bulkCreateDevicesSchema, updateDeviceSchema, getDeviceSchema, getDevicesSchema, deleteDeviceSchema, disableDeviceSchema, makePermanentSchema, createDeviceSchema, } from "./admin.devices.validations";
|
|
13
|
+
export { checkAvailabilitySchema, bulkCreateDevicesSchema, adminLockDeviceSchema, adminUnlockDeviceSchema, updateDeviceSchema, getDeviceSchema, getDevicesSchema, deleteDeviceSchema, disableDeviceSchema, makePermanentSchema, createDeviceSchema, } from "./admin.devices.validations";
|
|
14
14
|
export { createPlanSchema, limitedUpdateSchema, getDevicePlanSchema, getPlanSchema, getUserPlansSchema, listPlansSchema, recordPaymentSchema, deletePlanSchema, } from "./admin.devicePayment.validations";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.verifyPhoneChangeSchema = exports.requestPhoneChangeSchema = exports.updateProfileSchema = exports.payInstallmentSchema = exports.extendSessionSchema = exports.unlockDeviceSchema = exports.getUserPaymentPlanSchema = exports.listUserPaymentPlansSchema = 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.requestOtpSchema = exports.resendOtpSchema = exports.verifyOtpSchema = exports.registerSchema = exports.refreshTokenSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
|
|
4
|
-
exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema = exports.createPlanSchema = exports.createDeviceSchema = exports.makePermanentSchema = exports.disableDeviceSchema = exports.deleteDeviceSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.updateDeviceSchema = exports.bulkCreateDevicesSchema = 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.changePasswordSchema = exports.strongPasswordRegex = exports.deleteAccountSchema = void 0;
|
|
4
|
+
exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema = exports.createPlanSchema = exports.createDeviceSchema = exports.makePermanentSchema = exports.disableDeviceSchema = exports.deleteDeviceSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.updateDeviceSchema = exports.adminUnlockDeviceSchema = exports.adminLockDeviceSchema = exports.bulkCreateDevicesSchema = 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.changePasswordSchema = exports.strongPasswordRegex = exports.deleteAccountSchema = void 0;
|
|
5
5
|
var validate_validations_1 = require("./validate.validations");
|
|
6
6
|
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_validations_1.validate; } });
|
|
7
7
|
var auth_validations_1 = require("./auth.validations");
|
|
@@ -102,6 +102,8 @@ Object.defineProperty(exports, "deletePricingSchema", { enumerable: true, get: f
|
|
|
102
102
|
var admin_devices_validations_1 = require("./admin.devices.validations");
|
|
103
103
|
Object.defineProperty(exports, "checkAvailabilitySchema", { enumerable: true, get: function () { return admin_devices_validations_1.checkAvailabilitySchema; } });
|
|
104
104
|
Object.defineProperty(exports, "bulkCreateDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.bulkCreateDevicesSchema; } });
|
|
105
|
+
Object.defineProperty(exports, "adminLockDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.adminLockDeviceSchema; } });
|
|
106
|
+
Object.defineProperty(exports, "adminUnlockDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.adminUnlockDeviceSchema; } });
|
|
105
107
|
Object.defineProperty(exports, "updateDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.updateDeviceSchema; } });
|
|
106
108
|
Object.defineProperty(exports, "getDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.getDeviceSchema; } });
|
|
107
109
|
Object.defineProperty(exports, "getDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.getDevicesSchema; } });
|