vr-commons 1.0.97 → 1.0.99

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.
@@ -32,55 +32,55 @@ export declare const listPlansSchema: z.ZodObject<{
32
32
  limit: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>>;
33
33
  userId: z.ZodOptional<z.ZodString>;
34
34
  deviceId: z.ZodOptional<z.ZodString>;
35
- status: z.ZodOptional<z.ZodEnum<["PENDING", "SUCCESSFUL", "FAILED"]>>;
35
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
36
36
  isOverdue: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
37
37
  search: z.ZodOptional<z.ZodString>;
38
38
  sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "paidAmount", "outstandingAmount"]>>;
39
39
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
40
40
  }, "strip", z.ZodTypeAny, {
41
- limit: number;
42
41
  page: number;
43
- search?: string | undefined;
42
+ limit: number;
43
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
44
44
  userId?: string | undefined;
45
- status?: "PENDING" | "SUCCESSFUL" | "FAILED" | undefined;
46
- sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
47
- sortOrder?: "DESC" | "ASC" | undefined;
48
45
  deviceId?: string | undefined;
49
46
  isOverdue?: "true" | "false" | undefined;
50
- }, {
51
47
  search?: string | undefined;
52
- limit?: string | undefined;
48
+ sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
49
+ sortOrder?: "ASC" | "DESC" | undefined;
50
+ }, {
51
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
53
52
  userId?: string | undefined;
54
- status?: "PENDING" | "SUCCESSFUL" | "FAILED" | undefined;
55
53
  page?: string | undefined;
56
- sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
57
- sortOrder?: "DESC" | "ASC" | undefined;
54
+ limit?: string | undefined;
58
55
  deviceId?: string | undefined;
59
56
  isOverdue?: "true" | "false" | undefined;
57
+ search?: string | undefined;
58
+ sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
59
+ sortOrder?: "ASC" | "DESC" | undefined;
60
60
  }>;
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  query: {
63
- limit: number;
64
63
  page: number;
65
- search?: string | undefined;
64
+ limit: number;
65
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
66
66
  userId?: string | undefined;
67
- status?: "PENDING" | "SUCCESSFUL" | "FAILED" | undefined;
68
- sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
69
- sortOrder?: "DESC" | "ASC" | undefined;
70
67
  deviceId?: string | undefined;
71
68
  isOverdue?: "true" | "false" | undefined;
69
+ search?: string | undefined;
70
+ sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
71
+ sortOrder?: "ASC" | "DESC" | undefined;
72
72
  };
73
73
  }, {
74
74
  query: {
75
- search?: string | undefined;
76
- limit?: string | undefined;
75
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
77
76
  userId?: string | undefined;
78
- status?: "PENDING" | "SUCCESSFUL" | "FAILED" | undefined;
79
77
  page?: string | undefined;
80
- sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
81
- sortOrder?: "DESC" | "ASC" | undefined;
78
+ limit?: string | undefined;
82
79
  deviceId?: string | undefined;
83
80
  isOverdue?: "true" | "false" | undefined;
81
+ search?: string | undefined;
82
+ sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
83
+ sortOrder?: "ASC" | "DESC" | undefined;
84
84
  };
85
85
  }>;
86
86
  export declare const getPlanSchema: z.ZodObject<{
@@ -109,13 +109,13 @@ export declare const getUserPlansSchema: z.ZodObject<{
109
109
  userId: string;
110
110
  }>;
111
111
  query: z.ZodOptional<z.ZodObject<{
112
- status: z.ZodOptional<z.ZodEnum<["PENDING", "SUCCESSFUL", "FAILED"]>>;
112
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
113
113
  includeCompleted: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
114
114
  }, "strip", z.ZodTypeAny, {
115
- status?: "PENDING" | "SUCCESSFUL" | "FAILED" | undefined;
115
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
116
116
  includeCompleted?: "true" | "false" | undefined;
117
117
  }, {
118
- status?: "PENDING" | "SUCCESSFUL" | "FAILED" | undefined;
118
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
119
119
  includeCompleted?: "true" | "false" | undefined;
120
120
  }>>;
121
121
  }, "strip", z.ZodTypeAny, {
@@ -123,7 +123,7 @@ export declare const getUserPlansSchema: z.ZodObject<{
123
123
  userId: string;
124
124
  };
125
125
  query?: {
126
- status?: "PENDING" | "SUCCESSFUL" | "FAILED" | undefined;
126
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
127
127
  includeCompleted?: "true" | "false" | undefined;
128
128
  } | undefined;
129
129
  }, {
@@ -131,7 +131,7 @@ export declare const getUserPlansSchema: z.ZodObject<{
131
131
  userId: string;
132
132
  };
133
133
  query?: {
134
- status?: "PENDING" | "SUCCESSFUL" | "FAILED" | undefined;
134
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
135
135
  includeCompleted?: "true" | "false" | undefined;
136
136
  } | undefined;
137
137
  }>;
@@ -177,21 +177,21 @@ export declare const limitedUpdateSchema: z.ZodObject<{
177
177
  pricingId?: string | undefined;
178
178
  }>;
179
179
  }, "strip", z.ZodTypeAny, {
180
+ params: {
181
+ id: string;
182
+ };
180
183
  body: {
181
184
  userId?: string | undefined;
182
185
  pricingId?: string | undefined;
183
186
  };
187
+ }, {
184
188
  params: {
185
189
  id: string;
186
190
  };
187
- }, {
188
191
  body: {
189
192
  userId?: string | undefined;
190
193
  pricingId?: string | undefined;
191
194
  };
192
- params: {
193
- id: string;
194
- };
195
195
  }>;
196
196
  export declare const recordPaymentSchema: z.ZodObject<{
197
197
  params: z.ZodObject<{
@@ -209,33 +209,33 @@ export declare const recordPaymentSchema: z.ZodObject<{
209
209
  }, "strip", z.ZodTypeAny, {
210
210
  amount: number;
211
211
  provider: "mtn_momo" | "airtel_money";
212
- metadata?: Record<string, any> | undefined;
213
212
  providerReference?: string | undefined;
213
+ metadata?: Record<string, any> | undefined;
214
214
  }, {
215
215
  amount: number;
216
216
  provider: "mtn_momo" | "airtel_money";
217
- metadata?: Record<string, any> | undefined;
218
217
  providerReference?: string | undefined;
218
+ metadata?: Record<string, any> | undefined;
219
219
  }>;
220
220
  }, "strip", z.ZodTypeAny, {
221
+ params: {
222
+ id: string;
223
+ };
221
224
  body: {
222
225
  amount: number;
223
226
  provider: "mtn_momo" | "airtel_money";
224
- metadata?: Record<string, any> | undefined;
225
227
  providerReference?: string | undefined;
228
+ metadata?: Record<string, any> | undefined;
226
229
  };
230
+ }, {
227
231
  params: {
228
232
  id: string;
229
233
  };
230
- }, {
231
234
  body: {
232
235
  amount: number;
233
236
  provider: "mtn_momo" | "airtel_money";
234
- metadata?: Record<string, any> | undefined;
235
237
  providerReference?: string | undefined;
236
- };
237
- params: {
238
- id: string;
238
+ metadata?: Record<string, any> | undefined;
239
239
  };
240
240
  }>;
241
241
  export declare const deletePlanSchema: z.ZodObject<{
@@ -21,7 +21,7 @@ exports.listPlansSchema = zod_1.z.object({
21
21
  limit: zod_1.z.string().regex(/^\d+$/).transform(Number).optional().default("20"),
22
22
  userId: zod_1.z.string().uuid().optional(),
23
23
  deviceId: zod_1.z.string().uuid().optional(),
24
- status: zod_1.z.enum(vr_models_1.PAYMENT_STATUS).optional(),
24
+ status: zod_1.z.enum(vr_models_1.PAYMENT_PLAN_STATUS).optional(),
25
25
  isOverdue: zod_1.z.enum(["true", "false"]).optional(),
26
26
  search: zod_1.z.string().optional(),
27
27
  sortBy: zod_1.z
@@ -47,7 +47,7 @@ exports.getUserPlansSchema = zod_1.z.object({
47
47
  }),
48
48
  query: zod_1.z
49
49
  .object({
50
- status: zod_1.z.enum(vr_models_1.PAYMENT_STATUS).optional(),
50
+ status: zod_1.z.enum(vr_models_1.PAYMENT_PLAN_STATUS).optional(),
51
51
  includeCompleted: zod_1.z.enum(["true", "false"]).optional(),
52
52
  })
53
53
  .optional(),
@@ -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
- limit?: string | undefined;
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
- // export const lockDeviceSchema = z.object({
85
- // params: z.object({
86
- // id: z.string().uuid("Invalid device ID"),
87
- // }),
88
- // body: z
89
- // .object({
90
- // reason: z.string().optional(), // Why locking? Maintenance, lost, etc.
91
- // })
92
- // .optional(),
93
- // });
94
- // export const unlockDeviceSchema = z.object({
95
- // params: z.object({
96
- // id: z.string().uuid("Invalid device ID"),
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; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",