vr-commons 1.0.148 → 1.0.149
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.
|
@@ -59,164 +59,213 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
59
59
|
sortBy: z.ZodOptional<z.ZodEnum<["serialNumber", "status", "createdAt", "updatedAt"]>>;
|
|
60
60
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
limit?: number | undefined;
|
|
63
|
-
search?: string | undefined;
|
|
64
62
|
productId?: string | undefined;
|
|
65
63
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
64
|
+
page?: number | undefined;
|
|
65
|
+
limit?: number | undefined;
|
|
66
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
66
67
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
67
|
-
dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
|
|
68
68
|
isAssigned?: "true" | "false" | undefined;
|
|
69
|
-
page?: number | undefined;
|
|
70
|
-
sortBy?: "createdAt" | "updatedAt" | "serialNumber" | "status" | undefined;
|
|
71
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
72
|
-
}, {
|
|
73
|
-
limit?: string | undefined;
|
|
74
69
|
search?: string | undefined;
|
|
70
|
+
sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
|
|
71
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
72
|
+
}, {
|
|
75
73
|
productId?: string | undefined;
|
|
76
74
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
75
|
+
page?: string | undefined;
|
|
76
|
+
limit?: string | undefined;
|
|
77
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
77
78
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
78
|
-
dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
|
|
79
79
|
isAssigned?: "true" | "false" | undefined;
|
|
80
|
-
|
|
81
|
-
sortBy?: "
|
|
82
|
-
sortOrder?: "
|
|
80
|
+
search?: string | undefined;
|
|
81
|
+
sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
|
|
82
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
83
83
|
}>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
85
|
query: {
|
|
86
|
-
limit?: number | undefined;
|
|
87
|
-
search?: string | undefined;
|
|
88
86
|
productId?: string | undefined;
|
|
89
87
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
88
|
+
page?: number | undefined;
|
|
89
|
+
limit?: number | undefined;
|
|
90
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
90
91
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
91
|
-
dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
|
|
92
92
|
isAssigned?: "true" | "false" | undefined;
|
|
93
|
-
|
|
94
|
-
sortBy?: "
|
|
95
|
-
sortOrder?: "
|
|
93
|
+
search?: string | undefined;
|
|
94
|
+
sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
|
|
95
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
96
96
|
};
|
|
97
97
|
}, {
|
|
98
98
|
query: {
|
|
99
|
-
limit?: string | undefined;
|
|
100
|
-
search?: string | undefined;
|
|
101
99
|
productId?: string | undefined;
|
|
102
100
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
101
|
+
page?: string | undefined;
|
|
102
|
+
limit?: string | undefined;
|
|
103
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
103
104
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
104
|
-
dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
|
|
105
105
|
isAssigned?: "true" | "false" | undefined;
|
|
106
|
-
|
|
107
|
-
sortBy?: "
|
|
108
|
-
sortOrder?: "
|
|
106
|
+
search?: string | undefined;
|
|
107
|
+
sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
|
|
108
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
|
-
export declare const
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
export declare const deleteDevicesByPairsSchema: z.ZodObject<{
|
|
112
|
+
body: z.ZodObject<{
|
|
113
|
+
pairIds: z.ZodArray<z.ZodString, "many">;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
|
|
115
|
+
pairIds: string[];
|
|
116
116
|
}, {
|
|
117
|
-
|
|
117
|
+
pairIds: string[];
|
|
118
118
|
}>;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
body: {
|
|
121
|
+
pairIds: string[];
|
|
122
122
|
};
|
|
123
123
|
}, {
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
body: {
|
|
125
|
+
pairIds: string[];
|
|
126
126
|
};
|
|
127
127
|
}>;
|
|
128
|
-
export declare const
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
export declare const permanentDeleteDevicesByPairsSchema: z.ZodObject<{
|
|
129
|
+
body: z.ZodObject<{
|
|
130
|
+
pairIds: z.ZodArray<z.ZodString, "many">;
|
|
131
131
|
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
|
|
132
|
+
pairIds: string[];
|
|
133
133
|
}, {
|
|
134
|
-
|
|
134
|
+
pairIds: string[];
|
|
135
135
|
}>;
|
|
136
|
-
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
body: {
|
|
138
|
+
pairIds: string[];
|
|
139
|
+
};
|
|
140
|
+
}, {
|
|
141
|
+
body: {
|
|
142
|
+
pairIds: string[];
|
|
143
|
+
};
|
|
144
|
+
}>;
|
|
145
|
+
export declare const lockDevicesSchema: z.ZodObject<{
|
|
146
|
+
body: z.ZodEffects<z.ZodObject<{
|
|
137
147
|
reason: z.ZodOptional<z.ZodString>;
|
|
148
|
+
pairIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
149
|
+
serialNumbers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
138
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
pairIds?: string[] | undefined;
|
|
152
|
+
reason?: string | undefined;
|
|
153
|
+
serialNumbers?: string[] | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
pairIds?: string[] | undefined;
|
|
156
|
+
reason?: string | undefined;
|
|
157
|
+
serialNumbers?: string[] | undefined;
|
|
158
|
+
}>, {
|
|
159
|
+
pairIds?: string[] | undefined;
|
|
139
160
|
reason?: string | undefined;
|
|
161
|
+
serialNumbers?: string[] | undefined;
|
|
140
162
|
}, {
|
|
163
|
+
pairIds?: string[] | undefined;
|
|
141
164
|
reason?: string | undefined;
|
|
142
|
-
|
|
165
|
+
serialNumbers?: string[] | undefined;
|
|
166
|
+
}>;
|
|
143
167
|
}, "strip", z.ZodTypeAny, {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
};
|
|
147
|
-
body?: {
|
|
168
|
+
body: {
|
|
169
|
+
pairIds?: string[] | undefined;
|
|
148
170
|
reason?: string | undefined;
|
|
149
|
-
|
|
150
|
-
}, {
|
|
151
|
-
params: {
|
|
152
|
-
id: string;
|
|
171
|
+
serialNumbers?: string[] | undefined;
|
|
153
172
|
};
|
|
154
|
-
|
|
173
|
+
}, {
|
|
174
|
+
body: {
|
|
175
|
+
pairIds?: string[] | undefined;
|
|
155
176
|
reason?: string | undefined;
|
|
156
|
-
|
|
177
|
+
serialNumbers?: string[] | undefined;
|
|
178
|
+
};
|
|
157
179
|
}>;
|
|
158
|
-
export declare const
|
|
159
|
-
|
|
160
|
-
|
|
180
|
+
export declare const unlockDevicesSchema: z.ZodObject<{
|
|
181
|
+
body: z.ZodEffects<z.ZodObject<{
|
|
182
|
+
pairIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
183
|
+
serialNumbers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
161
184
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
|
|
185
|
+
pairIds?: string[] | undefined;
|
|
186
|
+
serialNumbers?: string[] | undefined;
|
|
163
187
|
}, {
|
|
164
|
-
|
|
188
|
+
pairIds?: string[] | undefined;
|
|
189
|
+
serialNumbers?: string[] | undefined;
|
|
190
|
+
}>, {
|
|
191
|
+
pairIds?: string[] | undefined;
|
|
192
|
+
serialNumbers?: string[] | undefined;
|
|
193
|
+
}, {
|
|
194
|
+
pairIds?: string[] | undefined;
|
|
195
|
+
serialNumbers?: string[] | undefined;
|
|
165
196
|
}>;
|
|
166
197
|
}, "strip", z.ZodTypeAny, {
|
|
167
|
-
|
|
168
|
-
|
|
198
|
+
body: {
|
|
199
|
+
pairIds?: string[] | undefined;
|
|
200
|
+
serialNumbers?: string[] | undefined;
|
|
169
201
|
};
|
|
170
202
|
}, {
|
|
171
|
-
|
|
172
|
-
|
|
203
|
+
body: {
|
|
204
|
+
pairIds?: string[] | undefined;
|
|
205
|
+
serialNumbers?: string[] | undefined;
|
|
173
206
|
};
|
|
174
207
|
}>;
|
|
175
|
-
export declare const
|
|
176
|
-
|
|
177
|
-
id: z.ZodString;
|
|
178
|
-
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
id: string;
|
|
180
|
-
}, {
|
|
181
|
-
id: string;
|
|
182
|
-
}>;
|
|
183
|
-
body: z.ZodObject<{
|
|
208
|
+
export declare const disableDevicesSchema: z.ZodObject<{
|
|
209
|
+
body: z.ZodEffects<z.ZodObject<{
|
|
184
210
|
reason: z.ZodString;
|
|
211
|
+
pairIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
212
|
+
serialNumbers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
185
213
|
}, "strip", z.ZodTypeAny, {
|
|
186
214
|
reason: string;
|
|
215
|
+
pairIds?: string[] | undefined;
|
|
216
|
+
serialNumbers?: string[] | undefined;
|
|
187
217
|
}, {
|
|
188
218
|
reason: string;
|
|
219
|
+
pairIds?: string[] | undefined;
|
|
220
|
+
serialNumbers?: string[] | undefined;
|
|
221
|
+
}>, {
|
|
222
|
+
reason: string;
|
|
223
|
+
pairIds?: string[] | undefined;
|
|
224
|
+
serialNumbers?: string[] | undefined;
|
|
225
|
+
}, {
|
|
226
|
+
reason: string;
|
|
227
|
+
pairIds?: string[] | undefined;
|
|
228
|
+
serialNumbers?: string[] | undefined;
|
|
189
229
|
}>;
|
|
190
230
|
}, "strip", z.ZodTypeAny, {
|
|
191
231
|
body: {
|
|
192
232
|
reason: string;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
id: string;
|
|
233
|
+
pairIds?: string[] | undefined;
|
|
234
|
+
serialNumbers?: string[] | undefined;
|
|
196
235
|
};
|
|
197
236
|
}, {
|
|
198
237
|
body: {
|
|
199
238
|
reason: string;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
id: string;
|
|
239
|
+
pairIds?: string[] | undefined;
|
|
240
|
+
serialNumbers?: string[] | undefined;
|
|
203
241
|
};
|
|
204
242
|
}>;
|
|
205
|
-
export declare const
|
|
206
|
-
|
|
207
|
-
|
|
243
|
+
export declare const makeDevicesPermanentSchema: z.ZodObject<{
|
|
244
|
+
body: z.ZodEffects<z.ZodObject<{
|
|
245
|
+
pairIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
246
|
+
serialNumbers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
208
247
|
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
|
|
248
|
+
pairIds?: string[] | undefined;
|
|
249
|
+
serialNumbers?: string[] | undefined;
|
|
210
250
|
}, {
|
|
211
|
-
|
|
251
|
+
pairIds?: string[] | undefined;
|
|
252
|
+
serialNumbers?: string[] | undefined;
|
|
253
|
+
}>, {
|
|
254
|
+
pairIds?: string[] | undefined;
|
|
255
|
+
serialNumbers?: string[] | undefined;
|
|
256
|
+
}, {
|
|
257
|
+
pairIds?: string[] | undefined;
|
|
258
|
+
serialNumbers?: string[] | undefined;
|
|
212
259
|
}>;
|
|
213
260
|
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
|
|
215
|
-
|
|
261
|
+
body: {
|
|
262
|
+
pairIds?: string[] | undefined;
|
|
263
|
+
serialNumbers?: string[] | undefined;
|
|
216
264
|
};
|
|
217
265
|
}, {
|
|
218
|
-
|
|
219
|
-
|
|
266
|
+
body: {
|
|
267
|
+
pairIds?: string[] | undefined;
|
|
268
|
+
serialNumbers?: string[] | undefined;
|
|
220
269
|
};
|
|
221
270
|
}>;
|
|
222
271
|
export declare const checkAvailabilitySchema: z.ZodObject<{
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkAvailabilitySchema = exports.
|
|
3
|
+
exports.checkAvailabilitySchema = exports.makeDevicesPermanentSchema = exports.disableDevicesSchema = exports.unlockDevicesSchema = exports.lockDevicesSchema = exports.permanentDeleteDevicesByPairsSchema = exports.deleteDevicesByPairsSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.createDevicePairsSchema = exports.deduplicatePairIds = exports.PAIR_ID_REGEX = void 0;
|
|
4
4
|
// src/validations/device.validations.ts
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const vr_models_1 = require("vr-models");
|
|
7
|
-
// Constants
|
|
8
|
-
// Base device schema
|
|
9
|
-
const deviceBaseSchema = {
|
|
10
|
-
serialNumber: zod_1.z
|
|
11
|
-
.string()
|
|
12
|
-
.min(5, "Serial number must be at least 5 characters")
|
|
13
|
-
.max(64, "Serial number too long")
|
|
14
|
-
.regex(/^[A-Z0-9-]+$/, "Serial number must contain only uppercase letters, numbers, and hyphens"),
|
|
15
|
-
productId: zod_1.z.string().uuid("Invalid product ID"),
|
|
16
|
-
status: zod_1.z.enum(vr_models_1.DEVICE_STATUS).optional(),
|
|
17
|
-
isPermanentlyUnlocked: zod_1.z.boolean().optional(),
|
|
18
|
-
dedicatedUser: zod_1.z.enum(vr_models_1.DEVICE_DEDICATION).nullable().optional(),
|
|
19
|
-
};
|
|
20
7
|
// ✅ Pair ID format: 2 letters + 3 numbers + 1 letter
|
|
21
8
|
// Example: AA001A, AB123B, XZ999Z
|
|
22
9
|
// No letter 'O' to avoid confusion with 0
|
|
@@ -71,39 +58,82 @@ exports.getDevicesSchema = zod_1.z.object({
|
|
|
71
58
|
sortOrder: zod_1.z.enum(["ASC", "DESC"]).optional(),
|
|
72
59
|
}),
|
|
73
60
|
});
|
|
74
|
-
//
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
61
|
+
// src/validations/device.validations.ts
|
|
62
|
+
// ==================== DELETE SCHEMAS (PAIR ONLY) ====================
|
|
63
|
+
// Soft delete by pair IDs
|
|
64
|
+
exports.deleteDevicesByPairsSchema = zod_1.z.object({
|
|
65
|
+
body: zod_1.z.object({
|
|
66
|
+
pairIds: zod_1.z
|
|
67
|
+
.array(zod_1.z.string().regex(exports.PAIR_ID_REGEX, PAIR_ID_ERROR))
|
|
68
|
+
.min(1, "At least one pair ID required"),
|
|
78
69
|
}),
|
|
79
70
|
});
|
|
80
|
-
//
|
|
81
|
-
exports.
|
|
82
|
-
|
|
83
|
-
|
|
71
|
+
// Permanent delete by pair IDs (SUPER_ADMIN only)
|
|
72
|
+
exports.permanentDeleteDevicesByPairsSchema = zod_1.z.object({
|
|
73
|
+
body: zod_1.z.object({
|
|
74
|
+
pairIds: zod_1.z
|
|
75
|
+
.array(zod_1.z.string().regex(exports.PAIR_ID_REGEX, PAIR_ID_ERROR))
|
|
76
|
+
.min(1, "At least one pair ID required"),
|
|
84
77
|
}),
|
|
78
|
+
});
|
|
79
|
+
// ==================== STATUS MANAGEMENT SCHEMAS (FLEXIBLE) ====================
|
|
80
|
+
// Base schema for flexible identifier (pairIds OR serialNumbers)
|
|
81
|
+
const flexibleIdentifiersSchema = {
|
|
82
|
+
pairIds: zod_1.z.array(zod_1.z.string().regex(exports.PAIR_ID_REGEX, PAIR_ID_ERROR)).optional(),
|
|
83
|
+
serialNumbers: zod_1.z.array(zod_1.z.string()).optional(),
|
|
84
|
+
};
|
|
85
|
+
// Lock devices schema
|
|
86
|
+
exports.lockDevicesSchema = zod_1.z.object({
|
|
85
87
|
body: zod_1.z
|
|
86
88
|
.object({
|
|
87
|
-
|
|
89
|
+
...flexibleIdentifiersSchema,
|
|
90
|
+
reason: zod_1.z.string().optional(),
|
|
88
91
|
})
|
|
89
|
-
.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
.refine((data) => {
|
|
93
|
+
const hasPairIds = data.pairIds && data.pairIds.length > 0;
|
|
94
|
+
const hasSerialNumbers = data.serialNumbers && data.serialNumbers.length > 0;
|
|
95
|
+
return ((hasPairIds || hasSerialNumbers) && !(hasPairIds && hasSerialNumbers));
|
|
96
|
+
}, {
|
|
97
|
+
message: "Either pairIds or serialNumbers must be provided, but not both",
|
|
98
|
+
path: ["pairIds"],
|
|
94
99
|
}),
|
|
95
100
|
});
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
101
|
+
// Unlock devices schema
|
|
102
|
+
exports.unlockDevicesSchema = zod_1.z.object({
|
|
103
|
+
body: zod_1.z.object(flexibleIdentifiersSchema).refine((data) => {
|
|
104
|
+
const hasPairIds = data.pairIds && data.pairIds.length > 0;
|
|
105
|
+
const hasSerialNumbers = data.serialNumbers && data.serialNumbers.length > 0;
|
|
106
|
+
return ((hasPairIds || hasSerialNumbers) && !(hasPairIds && hasSerialNumbers));
|
|
107
|
+
}, {
|
|
108
|
+
message: "Either pairIds or serialNumbers must be provided, but not both",
|
|
109
|
+
path: ["pairIds"],
|
|
99
110
|
}),
|
|
100
|
-
|
|
101
|
-
|
|
111
|
+
});
|
|
112
|
+
// Disable devices schema
|
|
113
|
+
exports.disableDevicesSchema = zod_1.z.object({
|
|
114
|
+
body: zod_1.z
|
|
115
|
+
.object({
|
|
116
|
+
...flexibleIdentifiersSchema,
|
|
117
|
+
reason: zod_1.z.string().min(1, "Reason is required"),
|
|
118
|
+
})
|
|
119
|
+
.refine((data) => {
|
|
120
|
+
const hasPairIds = data.pairIds && data.pairIds.length > 0;
|
|
121
|
+
const hasSerialNumbers = data.serialNumbers && data.serialNumbers.length > 0;
|
|
122
|
+
return ((hasPairIds || hasSerialNumbers) && !(hasPairIds && hasSerialNumbers));
|
|
123
|
+
}, {
|
|
124
|
+
message: "Either pairIds or serialNumbers must be provided, but not both",
|
|
125
|
+
path: ["pairIds"],
|
|
102
126
|
}),
|
|
103
127
|
});
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
128
|
+
// Make permanent schema
|
|
129
|
+
exports.makeDevicesPermanentSchema = zod_1.z.object({
|
|
130
|
+
body: zod_1.z.object(flexibleIdentifiersSchema).refine((data) => {
|
|
131
|
+
const hasPairIds = data.pairIds && data.pairIds.length > 0;
|
|
132
|
+
const hasSerialNumbers = data.serialNumbers && data.serialNumbers.length > 0;
|
|
133
|
+
return ((hasPairIds || hasSerialNumbers) && !(hasPairIds && hasSerialNumbers));
|
|
134
|
+
}, {
|
|
135
|
+
message: "Either pairIds or serialNumbers must be provided, but not both",
|
|
136
|
+
path: ["pairIds"],
|
|
107
137
|
}),
|
|
108
138
|
});
|
|
109
139
|
// Check availability schema (for assignment flow)
|
|
@@ -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,
|
|
13
|
+
export { checkAvailabilitySchema, createDevicePairsSchema, lockDevicesSchema, unlockDevicesSchema, deleteDevicesByPairsSchema, makeDevicesPermanentSchema, permanentDeleteDevicesByPairsSchema, disableDevicesSchema, getDeviceSchema, getDevicesSchema, } 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.
|
|
5
|
-
exports.getEventLogSchema = exports.listEventLogsSchema = exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema = void 0;
|
|
4
|
+
exports.getDevicesSchema = exports.getDeviceSchema = exports.disableDevicesSchema = exports.permanentDeleteDevicesByPairsSchema = exports.makeDevicesPermanentSchema = exports.deleteDevicesByPairsSchema = exports.unlockDevicesSchema = exports.lockDevicesSchema = 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 = exports.createPlanSchema = 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");
|
|
@@ -116,13 +116,14 @@ Object.defineProperty(exports, "deletePricingSchema", { enumerable: true, get: f
|
|
|
116
116
|
var admin_devices_validations_1 = require("./admin.devices.validations");
|
|
117
117
|
Object.defineProperty(exports, "checkAvailabilitySchema", { enumerable: true, get: function () { return admin_devices_validations_1.checkAvailabilitySchema; } });
|
|
118
118
|
Object.defineProperty(exports, "createDevicePairsSchema", { enumerable: true, get: function () { return admin_devices_validations_1.createDevicePairsSchema; } });
|
|
119
|
-
Object.defineProperty(exports, "
|
|
120
|
-
Object.defineProperty(exports, "
|
|
119
|
+
Object.defineProperty(exports, "lockDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.lockDevicesSchema; } });
|
|
120
|
+
Object.defineProperty(exports, "unlockDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.unlockDevicesSchema; } });
|
|
121
|
+
Object.defineProperty(exports, "deleteDevicesByPairsSchema", { enumerable: true, get: function () { return admin_devices_validations_1.deleteDevicesByPairsSchema; } });
|
|
122
|
+
Object.defineProperty(exports, "makeDevicesPermanentSchema", { enumerable: true, get: function () { return admin_devices_validations_1.makeDevicesPermanentSchema; } });
|
|
123
|
+
Object.defineProperty(exports, "permanentDeleteDevicesByPairsSchema", { enumerable: true, get: function () { return admin_devices_validations_1.permanentDeleteDevicesByPairsSchema; } });
|
|
124
|
+
Object.defineProperty(exports, "disableDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.disableDevicesSchema; } });
|
|
121
125
|
Object.defineProperty(exports, "getDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.getDeviceSchema; } });
|
|
122
126
|
Object.defineProperty(exports, "getDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.getDevicesSchema; } });
|
|
123
|
-
Object.defineProperty(exports, "deleteDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.deleteDeviceSchema; } });
|
|
124
|
-
Object.defineProperty(exports, "disableDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.disableDeviceSchema; } });
|
|
125
|
-
Object.defineProperty(exports, "makePermanentSchema", { enumerable: true, get: function () { return admin_devices_validations_1.makePermanentSchema; } });
|
|
126
127
|
var admin_devicePayment_validations_1 = require("./admin.devicePayment.validations");
|
|
127
128
|
Object.defineProperty(exports, "createPlanSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.createPlanSchema; } });
|
|
128
129
|
Object.defineProperty(exports, "limitedUpdateSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.limitedUpdateSchema; } });
|