vr-commons 1.0.178 → 1.0.181
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/validations/admin/admin.bans.validations.d.ts +8 -8
- package/dist/validations/admin/admin.devicePayments.validations.d.ts +41 -6
- package/dist/validations/admin/admin.devicePayments.validations.js +13 -1
- package/dist/validations/admin/admin.devices.validations.d.ts +60 -53
- package/dist/validations/admin/admin.devices.validations.js +1 -0
- package/dist/validations/admin/admin.eventLogs.validations.d.ts +14 -14
- package/dist/validations/admin/admin.installments.validations.d.ts +16 -16
- package/dist/validations/admin/admin.pricings.validations.d.ts +50 -50
- package/dist/validations/admin/admin.products.validations.d.ts +32 -32
- package/dist/validations/admin/admin.suspensions.validations.d.ts +8 -8
- package/dist/validations/admin/admin.users.validations.d.ts +72 -72
- package/dist/validations/index.d.ts +1 -1
- package/dist/validations/index.js +2 -1
- package/dist/validations/shared/shared.account.validations.d.ts +16 -16
- package/dist/validations/shared/shared.account.validations.js +1 -1
- package/dist/validations/shared/shared.appSpecs.validations.d.ts +14 -14
- package/dist/validations/shared/shared.auth.validations.d.ts +34 -34
- package/dist/validations/shared/shared.auth.validations.js +2 -2
- package/dist/validations/shared/shared.moderation.validations.d.ts +111 -111
- package/dist/validations/shared/shared.profiles.validations.d.ts +36 -36
- package/dist/validations/users/users.devicePaymentPlans.validations.d.ts +16 -16
- package/package.json +1 -1
|
@@ -16,36 +16,36 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
16
16
|
birthMonth: z.ZodNumber;
|
|
17
17
|
birthYear: z.ZodNumber;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
|
|
19
|
+
contactValue: string;
|
|
20
20
|
gender: "male" | "female";
|
|
21
21
|
birthDate: number;
|
|
22
22
|
birthMonth: number;
|
|
23
23
|
birthYear: number;
|
|
24
|
-
|
|
24
|
+
jacketId: string;
|
|
25
25
|
plateNumber?: string | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
|
|
27
|
+
contactValue: string;
|
|
28
28
|
gender: "male" | "female";
|
|
29
29
|
birthDate: number;
|
|
30
30
|
birthMonth: number;
|
|
31
31
|
birthYear: number;
|
|
32
|
-
|
|
32
|
+
jacketId: string;
|
|
33
33
|
plateNumber?: string | undefined;
|
|
34
34
|
}>, {
|
|
35
|
-
|
|
35
|
+
contactValue: string;
|
|
36
36
|
gender: "male" | "female";
|
|
37
37
|
birthDate: number;
|
|
38
38
|
birthMonth: number;
|
|
39
39
|
birthYear: number;
|
|
40
|
-
|
|
40
|
+
jacketId: string;
|
|
41
41
|
plateNumber?: string | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
|
|
43
|
+
contactValue: string;
|
|
44
44
|
gender: "male" | "female";
|
|
45
45
|
birthDate: number;
|
|
46
46
|
birthMonth: number;
|
|
47
47
|
birthYear: number;
|
|
48
|
-
|
|
48
|
+
jacketId: string;
|
|
49
49
|
plateNumber?: string | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -53,12 +53,12 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
53
53
|
userId: string;
|
|
54
54
|
};
|
|
55
55
|
body: {
|
|
56
|
-
|
|
56
|
+
contactValue: string;
|
|
57
57
|
gender: "male" | "female";
|
|
58
58
|
birthDate: number;
|
|
59
59
|
birthMonth: number;
|
|
60
60
|
birthYear: number;
|
|
61
|
-
|
|
61
|
+
jacketId: string;
|
|
62
62
|
plateNumber?: string | undefined;
|
|
63
63
|
};
|
|
64
64
|
}, {
|
|
@@ -66,12 +66,12 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
66
66
|
userId: string;
|
|
67
67
|
};
|
|
68
68
|
body: {
|
|
69
|
-
|
|
69
|
+
contactValue: string;
|
|
70
70
|
gender: "male" | "female";
|
|
71
71
|
birthDate: number;
|
|
72
72
|
birthMonth: number;
|
|
73
73
|
birthYear: number;
|
|
74
|
-
|
|
74
|
+
jacketId: string;
|
|
75
75
|
plateNumber?: string | undefined;
|
|
76
76
|
};
|
|
77
77
|
}>;
|
|
@@ -94,75 +94,75 @@ 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;
|
|
97
98
|
firstName?: string | undefined;
|
|
98
99
|
lastName?: string | undefined;
|
|
99
|
-
jacketId?: string | undefined;
|
|
100
|
-
plateNumber?: string | undefined;
|
|
101
100
|
gender?: "male" | "female" | undefined;
|
|
102
101
|
birthDate?: number | undefined;
|
|
103
102
|
birthMonth?: number | undefined;
|
|
104
103
|
birthYear?: number | undefined;
|
|
105
|
-
|
|
104
|
+
jacketId?: string | undefined;
|
|
105
|
+
plateNumber?: string | undefined;
|
|
106
106
|
}, {
|
|
107
|
+
contactValue?: string | undefined;
|
|
107
108
|
firstName?: string | undefined;
|
|
108
109
|
lastName?: string | undefined;
|
|
109
|
-
jacketId?: string | undefined;
|
|
110
|
-
plateNumber?: string | undefined;
|
|
111
110
|
gender?: "male" | "female" | undefined;
|
|
112
111
|
birthDate?: number | undefined;
|
|
113
112
|
birthMonth?: number | undefined;
|
|
114
113
|
birthYear?: number | undefined;
|
|
115
|
-
|
|
114
|
+
jacketId?: string | undefined;
|
|
115
|
+
plateNumber?: string | undefined;
|
|
116
116
|
}>, {
|
|
117
|
+
contactValue?: string | undefined;
|
|
117
118
|
firstName?: string | undefined;
|
|
118
119
|
lastName?: string | undefined;
|
|
119
|
-
jacketId?: string | undefined;
|
|
120
|
-
plateNumber?: string | undefined;
|
|
121
120
|
gender?: "male" | "female" | undefined;
|
|
122
121
|
birthDate?: number | undefined;
|
|
123
122
|
birthMonth?: number | undefined;
|
|
124
123
|
birthYear?: number | undefined;
|
|
125
|
-
|
|
124
|
+
jacketId?: string | undefined;
|
|
125
|
+
plateNumber?: string | undefined;
|
|
126
126
|
}, {
|
|
127
|
+
contactValue?: string | undefined;
|
|
127
128
|
firstName?: string | undefined;
|
|
128
129
|
lastName?: string | undefined;
|
|
129
|
-
jacketId?: string | undefined;
|
|
130
|
-
plateNumber?: string | undefined;
|
|
131
130
|
gender?: "male" | "female" | undefined;
|
|
132
131
|
birthDate?: number | undefined;
|
|
133
132
|
birthMonth?: number | undefined;
|
|
134
133
|
birthYear?: number | undefined;
|
|
135
|
-
|
|
134
|
+
jacketId?: string | undefined;
|
|
135
|
+
plateNumber?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
params: {
|
|
139
139
|
userId: string;
|
|
140
140
|
};
|
|
141
141
|
body: {
|
|
142
|
+
contactValue?: string | undefined;
|
|
142
143
|
firstName?: string | undefined;
|
|
143
144
|
lastName?: string | undefined;
|
|
144
|
-
jacketId?: string | undefined;
|
|
145
|
-
plateNumber?: string | undefined;
|
|
146
145
|
gender?: "male" | "female" | undefined;
|
|
147
146
|
birthDate?: number | undefined;
|
|
148
147
|
birthMonth?: number | undefined;
|
|
149
148
|
birthYear?: number | undefined;
|
|
150
|
-
|
|
149
|
+
jacketId?: string | undefined;
|
|
150
|
+
plateNumber?: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
}, {
|
|
153
153
|
params: {
|
|
154
154
|
userId: string;
|
|
155
155
|
};
|
|
156
156
|
body: {
|
|
157
|
+
contactValue?: string | undefined;
|
|
157
158
|
firstName?: string | undefined;
|
|
158
159
|
lastName?: string | undefined;
|
|
159
|
-
jacketId?: string | undefined;
|
|
160
|
-
plateNumber?: string | undefined;
|
|
161
160
|
gender?: "male" | "female" | undefined;
|
|
162
161
|
birthDate?: number | undefined;
|
|
163
162
|
birthMonth?: number | undefined;
|
|
164
163
|
birthYear?: number | undefined;
|
|
165
|
-
|
|
164
|
+
jacketId?: string | undefined;
|
|
165
|
+
plateNumber?: string | undefined;
|
|
166
166
|
};
|
|
167
167
|
}>;
|
|
168
168
|
export declare const deleteUserSchema: z.ZodObject<{
|
|
@@ -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
|
+
gender?: "male" | "female" | undefined;
|
|
215
217
|
page?: number | undefined;
|
|
216
218
|
limit?: number | undefined;
|
|
217
219
|
search?: string | undefined;
|
|
218
|
-
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
219
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
220
|
-
gender?: "male" | "female" | undefined;
|
|
221
220
|
isActive?: "true" | "false" | undefined;
|
|
222
221
|
isDeactivated?: "true" | "false" | undefined;
|
|
223
|
-
role?: string | undefined;
|
|
224
222
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
223
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
224
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
225
225
|
}, {
|
|
226
|
+
role?: string | undefined;
|
|
227
|
+
gender?: "male" | "female" | undefined;
|
|
226
228
|
page?: string | undefined;
|
|
227
229
|
limit?: string | undefined;
|
|
228
230
|
search?: string | undefined;
|
|
229
|
-
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
230
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
231
|
-
gender?: "male" | "female" | undefined;
|
|
232
231
|
isActive?: "true" | "false" | undefined;
|
|
233
232
|
isDeactivated?: "true" | "false" | undefined;
|
|
234
|
-
role?: string | undefined;
|
|
235
233
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
234
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
235
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
query: {
|
|
239
|
+
role?: string | undefined;
|
|
240
|
+
gender?: "male" | "female" | undefined;
|
|
239
241
|
page?: number | undefined;
|
|
240
242
|
limit?: number | undefined;
|
|
241
243
|
search?: string | undefined;
|
|
242
|
-
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
243
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
244
|
-
gender?: "male" | "female" | undefined;
|
|
245
244
|
isActive?: "true" | "false" | undefined;
|
|
246
245
|
isDeactivated?: "true" | "false" | undefined;
|
|
247
|
-
role?: string | undefined;
|
|
248
246
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
247
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
248
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
query: {
|
|
252
|
+
role?: string | undefined;
|
|
253
|
+
gender?: "male" | "female" | undefined;
|
|
252
254
|
page?: string | undefined;
|
|
253
255
|
limit?: string | undefined;
|
|
254
256
|
search?: string | undefined;
|
|
255
|
-
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
256
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
257
|
-
gender?: "male" | "female" | undefined;
|
|
258
257
|
isActive?: "true" | "false" | undefined;
|
|
259
258
|
isDeactivated?: "true" | "false" | undefined;
|
|
260
|
-
role?: string | undefined;
|
|
261
259
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
260
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
261
|
+
sortOrder?: "ASC" | "DESC" | 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;
|
|
276
277
|
firstName: string;
|
|
277
278
|
lastName: string;
|
|
279
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
278
280
|
gender: "male" | "female";
|
|
279
281
|
birthDate: number;
|
|
280
282
|
birthMonth: number;
|
|
281
283
|
birthYear: number;
|
|
282
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
283
|
-
contactValue: string;
|
|
284
284
|
superAdminPassword?: string | undefined;
|
|
285
285
|
}, {
|
|
286
|
+
contactValue: string;
|
|
286
287
|
firstName: string;
|
|
287
288
|
lastName: string;
|
|
289
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
288
290
|
gender: "male" | "female";
|
|
289
291
|
birthDate: number;
|
|
290
292
|
birthMonth: number;
|
|
291
293
|
birthYear: number;
|
|
292
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
293
|
-
contactValue: string;
|
|
294
294
|
superAdminPassword?: string | undefined;
|
|
295
295
|
}>, {
|
|
296
|
+
contactValue: string;
|
|
296
297
|
firstName: string;
|
|
297
298
|
lastName: string;
|
|
299
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
298
300
|
gender: "male" | "female";
|
|
299
301
|
birthDate: number;
|
|
300
302
|
birthMonth: number;
|
|
301
303
|
birthYear: number;
|
|
302
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
303
|
-
contactValue: string;
|
|
304
304
|
superAdminPassword?: string | undefined;
|
|
305
305
|
}, {
|
|
306
|
+
contactValue: string;
|
|
306
307
|
firstName: string;
|
|
307
308
|
lastName: string;
|
|
309
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
308
310
|
gender: "male" | "female";
|
|
309
311
|
birthDate: number;
|
|
310
312
|
birthMonth: number;
|
|
311
313
|
birthYear: number;
|
|
312
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
313
|
-
contactValue: string;
|
|
314
314
|
superAdminPassword?: string | undefined;
|
|
315
315
|
}>, {
|
|
316
|
+
contactValue: string;
|
|
316
317
|
firstName: string;
|
|
317
318
|
lastName: string;
|
|
319
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
318
320
|
gender: "male" | "female";
|
|
319
321
|
birthDate: number;
|
|
320
322
|
birthMonth: number;
|
|
321
323
|
birthYear: number;
|
|
322
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
323
|
-
contactValue: string;
|
|
324
324
|
superAdminPassword?: string | undefined;
|
|
325
325
|
}, {
|
|
326
|
+
contactValue: string;
|
|
326
327
|
firstName: string;
|
|
327
328
|
lastName: string;
|
|
329
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
328
330
|
gender: "male" | "female";
|
|
329
331
|
birthDate: number;
|
|
330
332
|
birthMonth: number;
|
|
331
333
|
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;
|
|
338
339
|
firstName: string;
|
|
339
340
|
lastName: string;
|
|
341
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
340
342
|
gender: "male" | "female";
|
|
341
343
|
birthDate: number;
|
|
342
344
|
birthMonth: number;
|
|
343
345
|
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;
|
|
350
351
|
firstName: string;
|
|
351
352
|
lastName: string;
|
|
353
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
352
354
|
gender: "male" | "female";
|
|
353
355
|
birthDate: number;
|
|
354
356
|
birthMonth: number;
|
|
355
357
|
birthYear: number;
|
|
356
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
357
|
-
contactValue: string;
|
|
358
358
|
superAdminPassword?: string | undefined;
|
|
359
359
|
};
|
|
360
360
|
}>;
|
|
@@ -404,23 +404,23 @@ 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: "AGENT" | "ADMIN";
|
|
408
408
|
}, {
|
|
409
|
-
targetRole: "
|
|
409
|
+
targetRole: "AGENT" | "ADMIN";
|
|
410
410
|
}>;
|
|
411
411
|
}, "strip", z.ZodTypeAny, {
|
|
412
412
|
params: {
|
|
413
413
|
userId: string;
|
|
414
414
|
};
|
|
415
415
|
body: {
|
|
416
|
-
targetRole: "
|
|
416
|
+
targetRole: "AGENT" | "ADMIN";
|
|
417
417
|
};
|
|
418
418
|
}, {
|
|
419
419
|
params: {
|
|
420
420
|
userId: string;
|
|
421
421
|
};
|
|
422
422
|
body: {
|
|
423
|
-
targetRole: "
|
|
423
|
+
targetRole: "AGENT" | "ADMIN";
|
|
424
424
|
};
|
|
425
425
|
}>;
|
|
426
426
|
export declare const fireEmployeeSchema: z.ZodObject<{
|
|
@@ -470,63 +470,63 @@ 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;
|
|
473
474
|
firstName?: string | undefined;
|
|
474
475
|
lastName?: string | undefined;
|
|
475
476
|
gender?: "male" | "female" | undefined;
|
|
476
477
|
birthDate?: number | undefined;
|
|
477
478
|
birthMonth?: number | undefined;
|
|
478
479
|
birthYear?: number | undefined;
|
|
479
|
-
contactValue?: string | undefined;
|
|
480
480
|
}, {
|
|
481
|
+
contactValue?: string | undefined;
|
|
481
482
|
firstName?: string | undefined;
|
|
482
483
|
lastName?: string | undefined;
|
|
483
484
|
gender?: "male" | "female" | undefined;
|
|
484
485
|
birthDate?: number | undefined;
|
|
485
486
|
birthMonth?: number | undefined;
|
|
486
487
|
birthYear?: number | undefined;
|
|
487
|
-
contactValue?: string | undefined;
|
|
488
488
|
}>, {
|
|
489
|
+
contactValue?: string | undefined;
|
|
489
490
|
firstName?: string | undefined;
|
|
490
491
|
lastName?: string | undefined;
|
|
491
492
|
gender?: "male" | "female" | undefined;
|
|
492
493
|
birthDate?: number | undefined;
|
|
493
494
|
birthMonth?: number | undefined;
|
|
494
495
|
birthYear?: number | undefined;
|
|
495
|
-
contactValue?: string | undefined;
|
|
496
496
|
}, {
|
|
497
|
+
contactValue?: string | undefined;
|
|
497
498
|
firstName?: string | undefined;
|
|
498
499
|
lastName?: string | undefined;
|
|
499
500
|
gender?: "male" | "female" | undefined;
|
|
500
501
|
birthDate?: number | undefined;
|
|
501
502
|
birthMonth?: number | undefined;
|
|
502
503
|
birthYear?: number | undefined;
|
|
503
|
-
contactValue?: string | undefined;
|
|
504
504
|
}>;
|
|
505
505
|
}, "strip", z.ZodTypeAny, {
|
|
506
506
|
params: {
|
|
507
507
|
userId: string;
|
|
508
508
|
};
|
|
509
509
|
body: {
|
|
510
|
+
contactValue?: string | undefined;
|
|
510
511
|
firstName?: string | undefined;
|
|
511
512
|
lastName?: string | undefined;
|
|
512
513
|
gender?: "male" | "female" | undefined;
|
|
513
514
|
birthDate?: number | undefined;
|
|
514
515
|
birthMonth?: number | undefined;
|
|
515
516
|
birthYear?: number | undefined;
|
|
516
|
-
contactValue?: string | undefined;
|
|
517
517
|
};
|
|
518
518
|
}, {
|
|
519
519
|
params: {
|
|
520
520
|
userId: string;
|
|
521
521
|
};
|
|
522
522
|
body: {
|
|
523
|
+
contactValue?: string | undefined;
|
|
523
524
|
firstName?: string | undefined;
|
|
524
525
|
lastName?: string | undefined;
|
|
525
526
|
gender?: "male" | "female" | undefined;
|
|
526
527
|
birthDate?: number | undefined;
|
|
527
528
|
birthMonth?: number | undefined;
|
|
528
529
|
birthYear?: number | undefined;
|
|
529
|
-
contactValue?: string | undefined;
|
|
530
530
|
};
|
|
531
531
|
}>;
|
|
532
532
|
export declare const resetPasswordSchema: z.ZodObject<{
|
|
@@ -12,5 +12,5 @@ export { updateAdminSchema, updateRiderSchema, deleteUserSchema, getUserSchema,
|
|
|
12
12
|
export { createProductSchema, updateProductSchema, getProductSchema, getProductsSchema, deactivateProductSchema, activateProductSchema, deleteProductSchema, updateStockSchema, } from "./admin/admin.products.validations";
|
|
13
13
|
export { createPricingSchema, updatePricingSchema, getPricingSchema, getPricingsSchema, deletePricingSchema, } from "./admin/admin.pricings.validations";
|
|
14
14
|
export { checkAvailabilitySchema, createDevicePairsSchema, lockDevicesSchema, unlockDevicesSchema, deleteDevicesByPairsSchema, makeDevicesPermanentSchema, permanentDeleteDevicesByPairsSchema, disableDevicesSchema, enableDevicesSchema, getDeviceSchema, getDevicesSchema, triggerDeviceResetSchema, customDeviceResetSchema, } from "./admin/admin.devices.validations";
|
|
15
|
-
export { createPlanSchema, limitedUpdateSchema, getDevicePlanSchema, getPlanSchema, getUserPlansSchema, listPlansSchema, recordPaymentSchema, deletePlanSchema, } from "./admin/admin.devicePayments.validations";
|
|
15
|
+
export { createPlanSchema, limitedUpdateSchema, getDevicePlanSchema, getPlanSchema, getUserPlansSchema, listPlansSchema, recordPaymentSchema, deletePlanSchema, replacePlanDevicesSchema, } from "./admin/admin.devicePayments.validations";
|
|
16
16
|
export { listEventLogsSchema, getEventLogSchema, } from "./admin/admin.eventLogs.validations";
|
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
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
18
|
exports.enableDevicesSchema = 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.getInstallmentsSchema = exports.getInstallmentByIdSchema = exports.payInstallmentSchema = 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.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;
|
|
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;
|
|
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; } });
|
|
@@ -144,6 +144,7 @@ Object.defineProperty(exports, "getUserPlansSchema", { enumerable: true, get: fu
|
|
|
144
144
|
Object.defineProperty(exports, "listPlansSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.listPlansSchema; } });
|
|
145
145
|
Object.defineProperty(exports, "recordPaymentSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.recordPaymentSchema; } });
|
|
146
146
|
Object.defineProperty(exports, "deletePlanSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.deletePlanSchema; } });
|
|
147
|
+
Object.defineProperty(exports, "replacePlanDevicesSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.replacePlanDevicesSchema; } });
|
|
147
148
|
var admin_eventLogs_validations_1 = require("./admin/admin.eventLogs.validations");
|
|
148
149
|
Object.defineProperty(exports, "listEventLogsSchema", { enumerable: true, get: function () { return admin_eventLogs_validations_1.listEventLogsSchema; } });
|
|
149
150
|
Object.defineProperty(exports, "getEventLogSchema", { enumerable: true, get: function () { return admin_eventLogs_validations_1.getEventLogSchema; } });
|
|
@@ -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
|
-
password: string;
|
|
284
283
|
contactValue: string;
|
|
285
|
-
}, {
|
|
286
284
|
password: string;
|
|
285
|
+
}, {
|
|
287
286
|
contactValue: string;
|
|
287
|
+
password: string;
|
|
288
288
|
}>;
|
|
289
289
|
}, "strip", z.ZodTypeAny, {
|
|
290
290
|
body: {
|
|
291
|
-
password: string;
|
|
292
291
|
contactValue: string;
|
|
292
|
+
password: string;
|
|
293
293
|
};
|
|
294
294
|
}, {
|
|
295
295
|
body: {
|
|
296
|
-
password: string;
|
|
297
296
|
contactValue: string;
|
|
297
|
+
password: string;
|
|
298
298
|
};
|
|
299
299
|
}>;
|
|
300
300
|
export declare const forgotPasswordSchema: z.ZodObject<{
|
|
@@ -367,9 +367,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
367
367
|
birthMonth: number;
|
|
368
368
|
birthYear: number;
|
|
369
369
|
phoneNumber: string;
|
|
370
|
-
jacketId?: string | null | undefined;
|
|
371
|
-
password?: string | undefined;
|
|
372
370
|
plateNumber?: string | null | undefined;
|
|
371
|
+
password?: string | undefined;
|
|
372
|
+
jacketId?: string | null | undefined;
|
|
373
373
|
}, {
|
|
374
374
|
firstName: string;
|
|
375
375
|
lastName: string;
|
|
@@ -378,9 +378,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
378
378
|
birthMonth: number;
|
|
379
379
|
birthYear: number;
|
|
380
380
|
phoneNumber: string;
|
|
381
|
-
jacketId?: string | null | undefined;
|
|
382
|
-
password?: string | undefined;
|
|
383
381
|
plateNumber?: string | null | undefined;
|
|
382
|
+
password?: string | undefined;
|
|
383
|
+
jacketId?: string | null | undefined;
|
|
384
384
|
}>, {
|
|
385
385
|
firstName: string;
|
|
386
386
|
lastName: string;
|
|
@@ -389,9 +389,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
389
389
|
birthMonth: number;
|
|
390
390
|
birthYear: number;
|
|
391
391
|
phoneNumber: string;
|
|
392
|
-
jacketId?: string | null | undefined;
|
|
393
|
-
password?: string | undefined;
|
|
394
392
|
plateNumber?: string | null | undefined;
|
|
393
|
+
password?: string | undefined;
|
|
394
|
+
jacketId?: string | null | undefined;
|
|
395
395
|
}, {
|
|
396
396
|
firstName: string;
|
|
397
397
|
lastName: string;
|
|
@@ -400,9 +400,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
400
400
|
birthMonth: number;
|
|
401
401
|
birthYear: number;
|
|
402
402
|
phoneNumber: string;
|
|
403
|
-
jacketId?: string | null | undefined;
|
|
404
|
-
password?: string | undefined;
|
|
405
403
|
plateNumber?: string | null | undefined;
|
|
404
|
+
password?: string | undefined;
|
|
405
|
+
jacketId?: string | null | undefined;
|
|
406
406
|
}>;
|
|
407
407
|
}, "strip", z.ZodTypeAny, {
|
|
408
408
|
body: {
|
|
@@ -413,9 +413,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
413
413
|
birthMonth: number;
|
|
414
414
|
birthYear: number;
|
|
415
415
|
phoneNumber: string;
|
|
416
|
-
jacketId?: string | null | undefined;
|
|
417
|
-
password?: string | undefined;
|
|
418
416
|
plateNumber?: string | null | undefined;
|
|
417
|
+
password?: string | undefined;
|
|
418
|
+
jacketId?: string | null | undefined;
|
|
419
419
|
};
|
|
420
420
|
}, {
|
|
421
421
|
body: {
|
|
@@ -426,9 +426,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
426
426
|
birthMonth: number;
|
|
427
427
|
birthYear: number;
|
|
428
428
|
phoneNumber: string;
|
|
429
|
-
jacketId?: string | null | undefined;
|
|
430
|
-
password?: string | undefined;
|
|
431
429
|
plateNumber?: string | null | undefined;
|
|
430
|
+
password?: string | undefined;
|
|
431
|
+
jacketId?: string | null | undefined;
|
|
432
432
|
};
|
|
433
433
|
}>;
|
|
434
434
|
export type UpdateProfileSchema = z.infer<typeof updateProfileSchema>;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.registerRiderSchema = exports.riderPasswordSchema = exports.resetPasswordSchema = exports.forgotPasswordSchema = exports.loginSchema = exports.changePasswordSchema = exports.deleteAccountSchema = exports.confirmVerificationSchema = exports.verifyContactSchema = exports.setPrimaryContactSchema = exports.deleteContactSchema = exports.addContactSchema = exports.verifyEmailChangeSchema = exports.verifyPhoneChangeSchema = exports.requestPhoneChangeSchema = exports.changeEmailSchema = exports.updateContactSchema = exports.updateProfileSchema = exports.validateContactValue = exports.detectContactType = exports.strongPasswordRegex = exports.emailRegex = exports.phoneRegex = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const regex_constants_1 = require("../../constants/regex.constants");
|
|
6
|
-
// ==================== REGEX PATTERNS
|
|
6
|
+
// ==================== REGEX PATTERNS =================================
|
|
7
7
|
exports.phoneRegex = regex_constants_1.PHONE_NUMBER_REGEX;
|
|
8
8
|
exports.emailRegex = regex_constants_1.EMAIL_ADDRESS_REGEX;
|
|
9
9
|
const plateRegex = regex_constants_1.RWANDA_PLATE_NUMBER_REGEX;
|
|
@@ -845,9 +845,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
845
845
|
maintenanceEndAt?: string | null | undefined;
|
|
846
846
|
}>;
|
|
847
847
|
}, "strip", z.ZodTypeAny, {
|
|
848
|
-
params: {
|
|
849
|
-
id: string;
|
|
850
|
-
};
|
|
851
848
|
body: {
|
|
852
849
|
appShortName?: string | null | undefined;
|
|
853
850
|
appDescription?: string | null | undefined;
|
|
@@ -922,10 +919,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
922
919
|
maintenanceStartAt?: string | null | undefined;
|
|
923
920
|
maintenanceEndAt?: string | null | undefined;
|
|
924
921
|
};
|
|
925
|
-
}, {
|
|
926
922
|
params: {
|
|
927
923
|
id: string;
|
|
928
924
|
};
|
|
925
|
+
}, {
|
|
929
926
|
body: {
|
|
930
927
|
appShortName?: string | null | undefined;
|
|
931
928
|
appDescription?: string | null | undefined;
|
|
@@ -1000,6 +997,9 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1000
997
|
maintenanceStartAt?: string | null | undefined;
|
|
1001
998
|
maintenanceEndAt?: string | null | undefined;
|
|
1002
999
|
};
|
|
1000
|
+
params: {
|
|
1001
|
+
id: string;
|
|
1002
|
+
};
|
|
1003
1003
|
}>;
|
|
1004
1004
|
export declare const listAppSpecsSchema: z.ZodObject<{
|
|
1005
1005
|
query: z.ZodObject<{
|
|
@@ -1009,33 +1009,33 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
1009
1009
|
sortBy: z.ZodOptional<z.ZodEnum<["appName", "createdAt", "updatedAt"]>>;
|
|
1010
1010
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
1011
1011
|
}, "strip", z.ZodTypeAny, {
|
|
1012
|
-
page: number;
|
|
1013
1012
|
limit: number;
|
|
1013
|
+
page: number;
|
|
1014
1014
|
search?: string | undefined;
|
|
1015
1015
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
1016
|
-
sortOrder?: "
|
|
1016
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
1017
1017
|
}, {
|
|
1018
|
-
page?: string | undefined;
|
|
1019
|
-
limit?: string | undefined;
|
|
1020
1018
|
search?: string | undefined;
|
|
1019
|
+
limit?: string | undefined;
|
|
1020
|
+
page?: string | undefined;
|
|
1021
1021
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
1022
|
-
sortOrder?: "
|
|
1022
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
1023
1023
|
}>;
|
|
1024
1024
|
}, "strip", z.ZodTypeAny, {
|
|
1025
1025
|
query: {
|
|
1026
|
-
page: number;
|
|
1027
1026
|
limit: number;
|
|
1027
|
+
page: number;
|
|
1028
1028
|
search?: string | undefined;
|
|
1029
1029
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
1030
|
-
sortOrder?: "
|
|
1030
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
1031
1031
|
};
|
|
1032
1032
|
}, {
|
|
1033
1033
|
query: {
|
|
1034
|
-
page?: string | undefined;
|
|
1035
|
-
limit?: string | undefined;
|
|
1036
1034
|
search?: string | undefined;
|
|
1035
|
+
limit?: string | undefined;
|
|
1036
|
+
page?: string | undefined;
|
|
1037
1037
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
1038
|
-
sortOrder?: "
|
|
1038
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
1039
1039
|
};
|
|
1040
1040
|
}>;
|
|
1041
1041
|
export declare const getAppSpecsSchema: z.ZodObject<{
|