vr-commons 1.0.188 → 1.0.190
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/middlewares/index.d.ts +1 -0
- package/dist/middlewares/index.js +4 -1
- package/dist/middlewares/shared/shared.appVersion.middleware.d.ts +9 -0
- package/dist/middlewares/shared/shared.appVersion.middleware.js +175 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +9 -1
- package/dist/utils/users/users.accountRecovery.utils.d.ts +13 -0
- package/dist/utils/users/users.accountRecovery.utils.js +52 -0
- package/dist/validations/admin/admin.devicePayments.validations.d.ts +6 -6
- package/dist/validations/admin/admin.devices.validations.d.ts +12 -12
- package/dist/validations/admin/admin.eventLogs.validations.d.ts +24 -24
- package/dist/validations/admin/admin.installments.validations.d.ts +4 -4
- package/dist/validations/admin/admin.pricings.validations.d.ts +8 -8
- package/dist/validations/admin/admin.products.validations.d.ts +12 -12
- package/dist/validations/admin/admin.users.validations.d.ts +50 -50
- package/dist/validations/index.d.ts +1 -0
- package/dist/validations/index.js +5 -2
- package/dist/validations/shared/shared.account.validations.d.ts +10 -10
- package/dist/validations/shared/shared.appSpecs.validations.d.ts +70 -48
- package/dist/validations/shared/shared.appSpecs.validations.js +7 -2
- package/dist/validations/shared/shared.auth.validations.d.ts +28 -28
- package/dist/validations/shared/shared.moderation.validations.d.ts +18 -18
- package/dist/validations/shared/shared.profiles.validations.d.ts +86 -86
- package/dist/validations/users/users.accountRecovery.validations.d.ts +98 -0
- package/dist/validations/users/users.accountRecovery.validations.js +41 -0
- package/dist/validations/users/users.devicePaymentPlans.validations.d.ts +6 -6
- package/package.json +2 -2
|
@@ -40,20 +40,20 @@ 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
|
-
description?: string | null | undefined;
|
|
44
43
|
isActive?: boolean | undefined;
|
|
44
|
+
description?: string | null | undefined;
|
|
45
45
|
name?: string | undefined;
|
|
46
46
|
stock?: number | undefined;
|
|
47
47
|
}, {
|
|
48
|
-
description?: unknown;
|
|
49
48
|
isActive?: unknown;
|
|
49
|
+
description?: unknown;
|
|
50
50
|
name?: unknown;
|
|
51
51
|
stock?: unknown;
|
|
52
52
|
}>;
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
54
|
body: {
|
|
55
|
-
description?: string | null | undefined;
|
|
56
55
|
isActive?: boolean | undefined;
|
|
56
|
+
description?: string | null | undefined;
|
|
57
57
|
name?: string | undefined;
|
|
58
58
|
stock?: number | undefined;
|
|
59
59
|
};
|
|
@@ -62,8 +62,8 @@ export declare const updateProductSchema: z.ZodObject<{
|
|
|
62
62
|
};
|
|
63
63
|
}, {
|
|
64
64
|
body: {
|
|
65
|
-
description?: unknown;
|
|
66
65
|
isActive?: unknown;
|
|
66
|
+
description?: unknown;
|
|
67
67
|
name?: unknown;
|
|
68
68
|
stock?: unknown;
|
|
69
69
|
};
|
|
@@ -103,7 +103,7 @@ export declare const getProductsSchema: z.ZodObject<{
|
|
|
103
103
|
isActive?: "true" | "false" | undefined;
|
|
104
104
|
page?: number | undefined;
|
|
105
105
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
106
|
-
sortOrder?: "
|
|
106
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
107
107
|
minStock?: number | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
search?: string | undefined;
|
|
@@ -111,7 +111,7 @@ export declare const getProductsSchema: z.ZodObject<{
|
|
|
111
111
|
isActive?: "true" | "false" | undefined;
|
|
112
112
|
page?: string | undefined;
|
|
113
113
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
114
|
-
sortOrder?: "
|
|
114
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
115
115
|
minStock?: string | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -121,7 +121,7 @@ export declare const getProductsSchema: z.ZodObject<{
|
|
|
121
121
|
isActive?: "true" | "false" | undefined;
|
|
122
122
|
page?: number | undefined;
|
|
123
123
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
124
|
-
sortOrder?: "
|
|
124
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
125
125
|
minStock?: number | undefined;
|
|
126
126
|
};
|
|
127
127
|
}, {
|
|
@@ -131,7 +131,7 @@ export declare const getProductsSchema: z.ZodObject<{
|
|
|
131
131
|
isActive?: "true" | "false" | undefined;
|
|
132
132
|
page?: string | undefined;
|
|
133
133
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
134
|
-
sortOrder?: "
|
|
134
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
135
135
|
minStock?: string | undefined;
|
|
136
136
|
};
|
|
137
137
|
}>;
|
|
@@ -199,15 +199,15 @@ export declare const updateStockSchema: z.ZodObject<{
|
|
|
199
199
|
amount: z.ZodNumber;
|
|
200
200
|
}, "strip", z.ZodTypeAny, {
|
|
201
201
|
amount: number;
|
|
202
|
-
operation: "
|
|
202
|
+
operation: "increment" | "decrement" | "set";
|
|
203
203
|
}, {
|
|
204
204
|
amount: number;
|
|
205
|
-
operation: "
|
|
205
|
+
operation: "increment" | "decrement" | "set";
|
|
206
206
|
}>;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
208
|
body: {
|
|
209
209
|
amount: number;
|
|
210
|
-
operation: "
|
|
210
|
+
operation: "increment" | "decrement" | "set";
|
|
211
211
|
};
|
|
212
212
|
params: {
|
|
213
213
|
id: string;
|
|
@@ -215,7 +215,7 @@ export declare const updateStockSchema: z.ZodObject<{
|
|
|
215
215
|
}, {
|
|
216
216
|
body: {
|
|
217
217
|
amount: number;
|
|
218
|
-
operation: "
|
|
218
|
+
operation: "increment" | "decrement" | "set";
|
|
219
219
|
};
|
|
220
220
|
params: {
|
|
221
221
|
id: string;
|
|
@@ -16,46 +16,46 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
16
16
|
birthMonth: z.ZodNumber;
|
|
17
17
|
birthYear: z.ZodNumber;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
contactValue: string;
|
|
20
19
|
jacketId: string;
|
|
21
20
|
gender: "male" | "female";
|
|
22
21
|
birthDate: number;
|
|
23
22
|
birthMonth: number;
|
|
24
23
|
birthYear: number;
|
|
24
|
+
contactValue: string;
|
|
25
25
|
plateNumber?: string | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
contactValue: string;
|
|
28
27
|
jacketId: string;
|
|
29
28
|
gender: "male" | "female";
|
|
30
29
|
birthDate: number;
|
|
31
30
|
birthMonth: number;
|
|
32
31
|
birthYear: number;
|
|
32
|
+
contactValue: string;
|
|
33
33
|
plateNumber?: string | undefined;
|
|
34
34
|
}>, {
|
|
35
|
-
contactValue: string;
|
|
36
35
|
jacketId: string;
|
|
37
36
|
gender: "male" | "female";
|
|
38
37
|
birthDate: number;
|
|
39
38
|
birthMonth: number;
|
|
40
39
|
birthYear: number;
|
|
40
|
+
contactValue: string;
|
|
41
41
|
plateNumber?: string | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
contactValue: string;
|
|
44
43
|
jacketId: string;
|
|
45
44
|
gender: "male" | "female";
|
|
46
45
|
birthDate: number;
|
|
47
46
|
birthMonth: number;
|
|
48
47
|
birthYear: number;
|
|
48
|
+
contactValue: string;
|
|
49
49
|
plateNumber?: string | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
body: {
|
|
53
|
-
contactValue: string;
|
|
54
53
|
jacketId: string;
|
|
55
54
|
gender: "male" | "female";
|
|
56
55
|
birthDate: number;
|
|
57
56
|
birthMonth: number;
|
|
58
57
|
birthYear: number;
|
|
58
|
+
contactValue: string;
|
|
59
59
|
plateNumber?: string | undefined;
|
|
60
60
|
};
|
|
61
61
|
params: {
|
|
@@ -63,12 +63,12 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
63
63
|
};
|
|
64
64
|
}, {
|
|
65
65
|
body: {
|
|
66
|
-
contactValue: string;
|
|
67
66
|
jacketId: string;
|
|
68
67
|
gender: "male" | "female";
|
|
69
68
|
birthDate: number;
|
|
70
69
|
birthMonth: number;
|
|
71
70
|
birthYear: number;
|
|
71
|
+
contactValue: string;
|
|
72
72
|
plateNumber?: string | undefined;
|
|
73
73
|
};
|
|
74
74
|
params: {
|
|
@@ -94,7 +94,6 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
94
94
|
birthMonth: z.ZodOptional<z.ZodNumber>;
|
|
95
95
|
birthYear: z.ZodOptional<z.ZodNumber>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
contactValue?: string | undefined;
|
|
98
97
|
firstName?: string | undefined;
|
|
99
98
|
lastName?: string | undefined;
|
|
100
99
|
jacketId?: string | undefined;
|
|
@@ -103,8 +102,8 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
103
102
|
birthDate?: number | undefined;
|
|
104
103
|
birthMonth?: number | undefined;
|
|
105
104
|
birthYear?: number | undefined;
|
|
106
|
-
}, {
|
|
107
105
|
contactValue?: string | undefined;
|
|
106
|
+
}, {
|
|
108
107
|
firstName?: string | undefined;
|
|
109
108
|
lastName?: string | undefined;
|
|
110
109
|
jacketId?: string | undefined;
|
|
@@ -113,8 +112,8 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
113
112
|
birthDate?: number | undefined;
|
|
114
113
|
birthMonth?: number | undefined;
|
|
115
114
|
birthYear?: number | undefined;
|
|
116
|
-
}>, {
|
|
117
115
|
contactValue?: string | undefined;
|
|
116
|
+
}>, {
|
|
118
117
|
firstName?: string | undefined;
|
|
119
118
|
lastName?: string | undefined;
|
|
120
119
|
jacketId?: string | undefined;
|
|
@@ -123,8 +122,8 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
123
122
|
birthDate?: number | undefined;
|
|
124
123
|
birthMonth?: number | undefined;
|
|
125
124
|
birthYear?: number | undefined;
|
|
126
|
-
}, {
|
|
127
125
|
contactValue?: string | undefined;
|
|
126
|
+
}, {
|
|
128
127
|
firstName?: string | undefined;
|
|
129
128
|
lastName?: string | undefined;
|
|
130
129
|
jacketId?: string | undefined;
|
|
@@ -133,10 +132,10 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
133
132
|
birthDate?: number | undefined;
|
|
134
133
|
birthMonth?: number | undefined;
|
|
135
134
|
birthYear?: number | undefined;
|
|
135
|
+
contactValue?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
body: {
|
|
139
|
-
contactValue?: string | undefined;
|
|
140
139
|
firstName?: string | undefined;
|
|
141
140
|
lastName?: string | undefined;
|
|
142
141
|
jacketId?: string | undefined;
|
|
@@ -145,13 +144,13 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
145
144
|
birthDate?: number | undefined;
|
|
146
145
|
birthMonth?: number | undefined;
|
|
147
146
|
birthYear?: number | undefined;
|
|
147
|
+
contactValue?: string | undefined;
|
|
148
148
|
};
|
|
149
149
|
params: {
|
|
150
150
|
userId: string;
|
|
151
151
|
};
|
|
152
152
|
}, {
|
|
153
153
|
body: {
|
|
154
|
-
contactValue?: string | undefined;
|
|
155
154
|
firstName?: string | undefined;
|
|
156
155
|
lastName?: string | undefined;
|
|
157
156
|
jacketId?: string | undefined;
|
|
@@ -160,6 +159,7 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
160
159
|
birthDate?: number | undefined;
|
|
161
160
|
birthMonth?: number | undefined;
|
|
162
161
|
birthYear?: number | undefined;
|
|
162
|
+
contactValue?: string | undefined;
|
|
163
163
|
};
|
|
164
164
|
params: {
|
|
165
165
|
userId: string;
|
|
@@ -212,53 +212,53 @@ export declare const getUsersSchema: z.ZodObject<{
|
|
|
212
212
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "firstName", "lastName", "gender"]>>;
|
|
213
213
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
role?: string | undefined;
|
|
216
215
|
search?: string | undefined;
|
|
217
216
|
limit?: number | undefined;
|
|
218
217
|
gender?: "male" | "female" | undefined;
|
|
219
218
|
isActive?: "true" | "false" | undefined;
|
|
220
219
|
isDeactivated?: "true" | "false" | undefined;
|
|
220
|
+
role?: string | undefined;
|
|
221
221
|
page?: number | undefined;
|
|
222
222
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
223
|
-
sortBy?: "
|
|
224
|
-
sortOrder?: "
|
|
223
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
224
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
role?: string | undefined;
|
|
227
226
|
search?: string | undefined;
|
|
228
227
|
limit?: string | undefined;
|
|
229
228
|
gender?: "male" | "female" | undefined;
|
|
230
229
|
isActive?: "true" | "false" | undefined;
|
|
231
230
|
isDeactivated?: "true" | "false" | undefined;
|
|
231
|
+
role?: string | undefined;
|
|
232
232
|
page?: string | undefined;
|
|
233
233
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
234
|
-
sortBy?: "
|
|
235
|
-
sortOrder?: "
|
|
234
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
235
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
query: {
|
|
239
|
-
role?: string | undefined;
|
|
240
239
|
search?: string | undefined;
|
|
241
240
|
limit?: number | undefined;
|
|
242
241
|
gender?: "male" | "female" | undefined;
|
|
243
242
|
isActive?: "true" | "false" | undefined;
|
|
244
243
|
isDeactivated?: "true" | "false" | undefined;
|
|
244
|
+
role?: string | undefined;
|
|
245
245
|
page?: number | undefined;
|
|
246
246
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
247
|
-
sortBy?: "
|
|
248
|
-
sortOrder?: "
|
|
247
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
248
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
query: {
|
|
252
|
-
role?: string | undefined;
|
|
253
252
|
search?: string | undefined;
|
|
254
253
|
limit?: string | undefined;
|
|
255
254
|
gender?: "male" | "female" | undefined;
|
|
256
255
|
isActive?: "true" | "false" | undefined;
|
|
257
256
|
isDeactivated?: "true" | "false" | undefined;
|
|
257
|
+
role?: string | undefined;
|
|
258
258
|
page?: string | undefined;
|
|
259
259
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
260
|
-
sortBy?: "
|
|
261
|
-
sortOrder?: "
|
|
260
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
261
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
262
262
|
};
|
|
263
263
|
}>;
|
|
264
264
|
export declare const hireAdminSchema: z.ZodObject<{
|
|
@@ -273,88 +273,88 @@ export declare const hireAdminSchema: z.ZodObject<{
|
|
|
273
273
|
birthMonth: z.ZodNumber;
|
|
274
274
|
birthYear: z.ZodNumber;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
contactValue: string;
|
|
277
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
278
276
|
firstName: string;
|
|
279
277
|
lastName: string;
|
|
280
278
|
gender: "male" | "female";
|
|
281
279
|
birthDate: number;
|
|
282
280
|
birthMonth: number;
|
|
283
281
|
birthYear: number;
|
|
282
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
283
|
+
contactValue: string;
|
|
284
284
|
superAdminPassword?: string | undefined;
|
|
285
285
|
}, {
|
|
286
|
-
contactValue: string;
|
|
287
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
288
286
|
firstName: string;
|
|
289
287
|
lastName: string;
|
|
290
288
|
gender: "male" | "female";
|
|
291
289
|
birthDate: number;
|
|
292
290
|
birthMonth: number;
|
|
293
291
|
birthYear: number;
|
|
292
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
293
|
+
contactValue: string;
|
|
294
294
|
superAdminPassword?: string | undefined;
|
|
295
295
|
}>, {
|
|
296
|
-
contactValue: string;
|
|
297
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
298
296
|
firstName: string;
|
|
299
297
|
lastName: string;
|
|
300
298
|
gender: "male" | "female";
|
|
301
299
|
birthDate: number;
|
|
302
300
|
birthMonth: number;
|
|
303
301
|
birthYear: number;
|
|
302
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
303
|
+
contactValue: string;
|
|
304
304
|
superAdminPassword?: string | undefined;
|
|
305
305
|
}, {
|
|
306
|
-
contactValue: string;
|
|
307
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
308
306
|
firstName: string;
|
|
309
307
|
lastName: string;
|
|
310
308
|
gender: "male" | "female";
|
|
311
309
|
birthDate: number;
|
|
312
310
|
birthMonth: number;
|
|
313
311
|
birthYear: number;
|
|
312
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
313
|
+
contactValue: string;
|
|
314
314
|
superAdminPassword?: string | undefined;
|
|
315
315
|
}>, {
|
|
316
|
-
contactValue: string;
|
|
317
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
318
316
|
firstName: string;
|
|
319
317
|
lastName: string;
|
|
320
318
|
gender: "male" | "female";
|
|
321
319
|
birthDate: number;
|
|
322
320
|
birthMonth: number;
|
|
323
321
|
birthYear: number;
|
|
322
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
323
|
+
contactValue: string;
|
|
324
324
|
superAdminPassword?: string | undefined;
|
|
325
325
|
}, {
|
|
326
|
-
contactValue: string;
|
|
327
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
328
326
|
firstName: string;
|
|
329
327
|
lastName: string;
|
|
330
328
|
gender: "male" | "female";
|
|
331
329
|
birthDate: number;
|
|
332
330
|
birthMonth: number;
|
|
333
331
|
birthYear: number;
|
|
332
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
333
|
+
contactValue: string;
|
|
334
334
|
superAdminPassword?: string | undefined;
|
|
335
335
|
}>;
|
|
336
336
|
}, "strip", z.ZodTypeAny, {
|
|
337
337
|
body: {
|
|
338
|
-
contactValue: string;
|
|
339
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
340
338
|
firstName: string;
|
|
341
339
|
lastName: string;
|
|
342
340
|
gender: "male" | "female";
|
|
343
341
|
birthDate: number;
|
|
344
342
|
birthMonth: number;
|
|
345
343
|
birthYear: number;
|
|
344
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
345
|
+
contactValue: string;
|
|
346
346
|
superAdminPassword?: string | undefined;
|
|
347
347
|
};
|
|
348
348
|
}, {
|
|
349
349
|
body: {
|
|
350
|
-
contactValue: string;
|
|
351
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
352
350
|
firstName: string;
|
|
353
351
|
lastName: string;
|
|
354
352
|
gender: "male" | "female";
|
|
355
353
|
birthDate: number;
|
|
356
354
|
birthMonth: number;
|
|
357
355
|
birthYear: number;
|
|
356
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
357
|
+
contactValue: string;
|
|
358
358
|
superAdminPassword?: string | undefined;
|
|
359
359
|
};
|
|
360
360
|
}>;
|
|
@@ -404,20 +404,20 @@ export declare const demoteAdminSchema: z.ZodObject<{
|
|
|
404
404
|
body: z.ZodObject<{
|
|
405
405
|
targetRole: z.ZodEnum<["AGENT", "ADMIN"]>;
|
|
406
406
|
}, "strip", z.ZodTypeAny, {
|
|
407
|
-
targetRole: "
|
|
407
|
+
targetRole: "ADMIN" | "AGENT";
|
|
408
408
|
}, {
|
|
409
|
-
targetRole: "
|
|
409
|
+
targetRole: "ADMIN" | "AGENT";
|
|
410
410
|
}>;
|
|
411
411
|
}, "strip", z.ZodTypeAny, {
|
|
412
412
|
body: {
|
|
413
|
-
targetRole: "
|
|
413
|
+
targetRole: "ADMIN" | "AGENT";
|
|
414
414
|
};
|
|
415
415
|
params: {
|
|
416
416
|
userId: string;
|
|
417
417
|
};
|
|
418
418
|
}, {
|
|
419
419
|
body: {
|
|
420
|
-
targetRole: "
|
|
420
|
+
targetRole: "ADMIN" | "AGENT";
|
|
421
421
|
};
|
|
422
422
|
params: {
|
|
423
423
|
userId: string;
|
|
@@ -470,60 +470,60 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
470
470
|
birthMonth: z.ZodOptional<z.ZodNumber>;
|
|
471
471
|
birthYear: z.ZodOptional<z.ZodNumber>;
|
|
472
472
|
}, "strip", z.ZodTypeAny, {
|
|
473
|
-
contactValue?: string | undefined;
|
|
474
473
|
firstName?: string | undefined;
|
|
475
474
|
lastName?: string | undefined;
|
|
476
475
|
gender?: "male" | "female" | undefined;
|
|
477
476
|
birthDate?: number | undefined;
|
|
478
477
|
birthMonth?: number | undefined;
|
|
479
478
|
birthYear?: number | undefined;
|
|
480
|
-
}, {
|
|
481
479
|
contactValue?: string | undefined;
|
|
480
|
+
}, {
|
|
482
481
|
firstName?: string | undefined;
|
|
483
482
|
lastName?: string | undefined;
|
|
484
483
|
gender?: "male" | "female" | undefined;
|
|
485
484
|
birthDate?: number | undefined;
|
|
486
485
|
birthMonth?: number | undefined;
|
|
487
486
|
birthYear?: number | undefined;
|
|
488
|
-
}>, {
|
|
489
487
|
contactValue?: string | undefined;
|
|
488
|
+
}>, {
|
|
490
489
|
firstName?: string | undefined;
|
|
491
490
|
lastName?: string | undefined;
|
|
492
491
|
gender?: "male" | "female" | undefined;
|
|
493
492
|
birthDate?: number | undefined;
|
|
494
493
|
birthMonth?: number | undefined;
|
|
495
494
|
birthYear?: number | undefined;
|
|
496
|
-
}, {
|
|
497
495
|
contactValue?: string | undefined;
|
|
496
|
+
}, {
|
|
498
497
|
firstName?: string | undefined;
|
|
499
498
|
lastName?: string | undefined;
|
|
500
499
|
gender?: "male" | "female" | undefined;
|
|
501
500
|
birthDate?: number | undefined;
|
|
502
501
|
birthMonth?: number | undefined;
|
|
503
502
|
birthYear?: number | undefined;
|
|
503
|
+
contactValue?: string | undefined;
|
|
504
504
|
}>;
|
|
505
505
|
}, "strip", z.ZodTypeAny, {
|
|
506
506
|
body: {
|
|
507
|
-
contactValue?: string | undefined;
|
|
508
507
|
firstName?: string | undefined;
|
|
509
508
|
lastName?: string | undefined;
|
|
510
509
|
gender?: "male" | "female" | undefined;
|
|
511
510
|
birthDate?: number | undefined;
|
|
512
511
|
birthMonth?: number | undefined;
|
|
513
512
|
birthYear?: number | undefined;
|
|
513
|
+
contactValue?: string | undefined;
|
|
514
514
|
};
|
|
515
515
|
params: {
|
|
516
516
|
userId: string;
|
|
517
517
|
};
|
|
518
518
|
}, {
|
|
519
519
|
body: {
|
|
520
|
-
contactValue?: string | undefined;
|
|
521
520
|
firstName?: string | undefined;
|
|
522
521
|
lastName?: string | undefined;
|
|
523
522
|
gender?: "male" | "female" | undefined;
|
|
524
523
|
birthDate?: number | undefined;
|
|
525
524
|
birthMonth?: number | undefined;
|
|
526
525
|
birthYear?: number | undefined;
|
|
526
|
+
contactValue?: string | undefined;
|
|
527
527
|
};
|
|
528
528
|
params: {
|
|
529
529
|
userId: string;
|
|
@@ -7,6 +7,7 @@ export { createAppSpecsSchema, updateAppSpecsSchema, listAppSpecsSchema, getActi
|
|
|
7
7
|
export { updateProfileSchema, requestPhoneChangeSchema, verifyPhoneChangeSchema, deleteAccountSchema, strongPasswordRegex, changePasswordSchema, riderPasswordSchema, registerRiderSchema, } from "./shared/shared.account.validations";
|
|
8
8
|
export { listUserPaymentPlansSchema, getUserPaymentPlanSchema, } from "./users/users.devicePaymentPlans.validations";
|
|
9
9
|
export { unlockDeviceSchema, extendSessionSchema, serialRegex, } from "./users/users.devices.validations";
|
|
10
|
+
export { requestRiderAccountRecoverySchema, completeRiderAccountRecoverySchema, RequestRiderAccountRecoverySchema, CompleteRiderAccountRecoverySchema, } from "./users/users.accountRecovery.validations";
|
|
10
11
|
export { payInstallmentSchema, getInstallmentByIdSchema, getInstallmentsSchema, } from "./admin/admin.installments.validations";
|
|
11
12
|
export { updateAdminSchema, updateRiderSchema, deleteUserSchema, getUserSchema, getUsersSchema, hireAdminSchema, promoteAdminSchema, demoteAdminSchema, fireEmployeeSchema, upgradeToRiderSchema, resetPasswordSchema, } from "./admin/admin.users.validations";
|
|
12
13
|
export { createProductSchema, updateProductSchema, getProductSchema, getProductsSchema, deactivateProductSchema, activateProductSchema, deleteProductSchema, updateStockSchema, } from "./admin/admin.products.validations";
|
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.activateAppSpecsSchema = exports.getAppSpecsByNameSchema = 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;
|
|
18
|
-
exports.
|
|
19
|
-
exports.getEventLogSchema = exports.listEventLogsSchema = exports.replacePlanDevicesSchema = exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema = exports.createPlanSchema = exports.customDeviceResetSchema = exports.triggerDeviceResetSchema = exports.getDevicesSchema = exports.getDeviceSchema = void 0;
|
|
18
|
+
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.getInstallmentsSchema = exports.getInstallmentByIdSchema = exports.payInstallmentSchema = exports.completeRiderAccountRecoverySchema = exports.requestRiderAccountRecoverySchema = exports.serialRegex = exports.extendSessionSchema = exports.unlockDeviceSchema = exports.getUserPaymentPlanSchema = exports.listUserPaymentPlansSchema = exports.registerRiderSchema = exports.riderPasswordSchema = exports.changePasswordSchema = exports.strongPasswordRegex = exports.deleteAccountSchema = exports.verifyPhoneChangeSchema = exports.requestPhoneChangeSchema = exports.updateProfileSchema = exports.getAppSpecsSchema = void 0;
|
|
19
|
+
exports.getEventLogSchema = exports.listEventLogsSchema = exports.replacePlanDevicesSchema = exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema = exports.createPlanSchema = exports.customDeviceResetSchema = exports.triggerDeviceResetSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.enableDevicesSchema = exports.disableDevicesSchema = void 0;
|
|
20
20
|
__exportStar(require("../constants/regex.constants"), exports);
|
|
21
21
|
var shared_validate_validations_1 = require("./shared/shared.validate.validations");
|
|
22
22
|
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return shared_validate_validations_1.validate; } });
|
|
@@ -90,6 +90,9 @@ var users_devices_validations_1 = require("./users/users.devices.validations");
|
|
|
90
90
|
Object.defineProperty(exports, "unlockDeviceSchema", { enumerable: true, get: function () { return users_devices_validations_1.unlockDeviceSchema; } });
|
|
91
91
|
Object.defineProperty(exports, "extendSessionSchema", { enumerable: true, get: function () { return users_devices_validations_1.extendSessionSchema; } });
|
|
92
92
|
Object.defineProperty(exports, "serialRegex", { enumerable: true, get: function () { return users_devices_validations_1.serialRegex; } });
|
|
93
|
+
var users_accountRecovery_validations_1 = require("./users/users.accountRecovery.validations");
|
|
94
|
+
Object.defineProperty(exports, "requestRiderAccountRecoverySchema", { enumerable: true, get: function () { return users_accountRecovery_validations_1.requestRiderAccountRecoverySchema; } });
|
|
95
|
+
Object.defineProperty(exports, "completeRiderAccountRecoverySchema", { enumerable: true, get: function () { return users_accountRecovery_validations_1.completeRiderAccountRecoverySchema; } });
|
|
93
96
|
var admin_installments_validations_1 = require("./admin/admin.installments.validations");
|
|
94
97
|
Object.defineProperty(exports, "payInstallmentSchema", { enumerable: true, get: function () { return admin_installments_validations_1.payInstallmentSchema; } });
|
|
95
98
|
Object.defineProperty(exports, "getInstallmentByIdSchema", { enumerable: true, get: function () { return admin_installments_validations_1.getInstallmentByIdSchema; } });
|
|
@@ -280,21 +280,21 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
280
280
|
contactValue: z.ZodEffects<z.ZodString, string, string>;
|
|
281
281
|
password: z.ZodString;
|
|
282
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
|
-
contactValue: string;
|
|
284
283
|
password: string;
|
|
285
|
-
}, {
|
|
286
284
|
contactValue: string;
|
|
285
|
+
}, {
|
|
287
286
|
password: string;
|
|
287
|
+
contactValue: string;
|
|
288
288
|
}>;
|
|
289
289
|
}, "strip", z.ZodTypeAny, {
|
|
290
290
|
body: {
|
|
291
|
-
contactValue: string;
|
|
292
291
|
password: string;
|
|
292
|
+
contactValue: string;
|
|
293
293
|
};
|
|
294
294
|
}, {
|
|
295
295
|
body: {
|
|
296
|
-
contactValue: string;
|
|
297
296
|
password: string;
|
|
297
|
+
contactValue: string;
|
|
298
298
|
};
|
|
299
299
|
}>;
|
|
300
300
|
export declare const forgotPasswordSchema: z.ZodObject<{
|
|
@@ -367,8 +367,8 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
367
367
|
birthMonth: number;
|
|
368
368
|
birthYear: number;
|
|
369
369
|
phoneNumber: string;
|
|
370
|
-
password?: string | undefined;
|
|
371
370
|
jacketId?: string | null | undefined;
|
|
371
|
+
password?: string | undefined;
|
|
372
372
|
plateNumber?: string | null | undefined;
|
|
373
373
|
}, {
|
|
374
374
|
firstName: string;
|
|
@@ -378,8 +378,8 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
378
378
|
birthMonth: number;
|
|
379
379
|
birthYear: number;
|
|
380
380
|
phoneNumber: string;
|
|
381
|
-
password?: string | undefined;
|
|
382
381
|
jacketId?: string | null | undefined;
|
|
382
|
+
password?: string | undefined;
|
|
383
383
|
plateNumber?: string | null | undefined;
|
|
384
384
|
}>, {
|
|
385
385
|
firstName: string;
|
|
@@ -389,8 +389,8 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
389
389
|
birthMonth: number;
|
|
390
390
|
birthYear: number;
|
|
391
391
|
phoneNumber: string;
|
|
392
|
-
password?: string | undefined;
|
|
393
392
|
jacketId?: string | null | undefined;
|
|
393
|
+
password?: string | undefined;
|
|
394
394
|
plateNumber?: string | null | undefined;
|
|
395
395
|
}, {
|
|
396
396
|
firstName: string;
|
|
@@ -400,8 +400,8 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
400
400
|
birthMonth: number;
|
|
401
401
|
birthYear: number;
|
|
402
402
|
phoneNumber: string;
|
|
403
|
-
password?: string | undefined;
|
|
404
403
|
jacketId?: string | null | undefined;
|
|
404
|
+
password?: string | undefined;
|
|
405
405
|
plateNumber?: string | null | undefined;
|
|
406
406
|
}>;
|
|
407
407
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -413,8 +413,8 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
413
413
|
birthMonth: number;
|
|
414
414
|
birthYear: number;
|
|
415
415
|
phoneNumber: string;
|
|
416
|
-
password?: string | undefined;
|
|
417
416
|
jacketId?: string | null | undefined;
|
|
417
|
+
password?: string | undefined;
|
|
418
418
|
plateNumber?: string | null | undefined;
|
|
419
419
|
};
|
|
420
420
|
}, {
|
|
@@ -426,8 +426,8 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
426
426
|
birthMonth: number;
|
|
427
427
|
birthYear: number;
|
|
428
428
|
phoneNumber: string;
|
|
429
|
-
password?: string | undefined;
|
|
430
429
|
jacketId?: string | null | undefined;
|
|
430
|
+
password?: string | undefined;
|
|
431
431
|
plateNumber?: string | null | undefined;
|
|
432
432
|
};
|
|
433
433
|
}>;
|