vr-commons 1.0.177 → 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/utils/admin/admin.devicePayments.utils.d.ts +2 -1
- package/dist/utils/admin/admin.devicePayments.utils.js +13 -9
- package/dist/utils/users/users.verification.utils.js +2 -2
- package/dist/validations/admin/admin.devicePayments.validations.d.ts +90 -55
- package/dist/validations/admin/admin.devicePayments.validations.js +14 -2
- package/dist/validations/admin/admin.devices.validations.d.ts +58 -51
- package/dist/validations/admin/admin.devices.validations.js +1 -0
- package/dist/validations/admin/admin.installments.validations.js +1 -1
- package/dist/validations/admin/admin.pricings.validations.d.ts +10 -10
- package/dist/validations/admin/admin.users.validations.d.ts +103 -103
- 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.auth.validations.d.ts +34 -34
- package/dist/validations/shared/shared.auth.validations.js +2 -2
- package/package.json +1 -1
|
@@ -16,64 +16,64 @@ 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, {
|
|
52
|
+
params: {
|
|
53
|
+
userId: string;
|
|
54
|
+
};
|
|
52
55
|
body: {
|
|
53
|
-
|
|
56
|
+
contactValue: string;
|
|
54
57
|
gender: "male" | "female";
|
|
55
58
|
birthDate: number;
|
|
56
59
|
birthMonth: number;
|
|
57
60
|
birthYear: number;
|
|
58
|
-
|
|
61
|
+
jacketId: string;
|
|
59
62
|
plateNumber?: string | undefined;
|
|
60
63
|
};
|
|
64
|
+
}, {
|
|
61
65
|
params: {
|
|
62
66
|
userId: string;
|
|
63
67
|
};
|
|
64
|
-
}, {
|
|
65
68
|
body: {
|
|
66
|
-
|
|
69
|
+
contactValue: string;
|
|
67
70
|
gender: "male" | "female";
|
|
68
71
|
birthDate: number;
|
|
69
72
|
birthMonth: number;
|
|
70
73
|
birthYear: number;
|
|
71
|
-
|
|
74
|
+
jacketId: string;
|
|
72
75
|
plateNumber?: string | undefined;
|
|
73
76
|
};
|
|
74
|
-
params: {
|
|
75
|
-
userId: string;
|
|
76
|
-
};
|
|
77
77
|
}>;
|
|
78
78
|
export declare const updateRiderSchema: z.ZodObject<{
|
|
79
79
|
params: z.ZodObject<{
|
|
@@ -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
|
+
params: {
|
|
139
|
+
userId: string;
|
|
140
|
+
};
|
|
138
141
|
body: {
|
|
142
|
+
contactValue?: string | undefined;
|
|
139
143
|
firstName?: string | undefined;
|
|
140
144
|
lastName?: string | undefined;
|
|
141
|
-
jacketId?: string | undefined;
|
|
142
|
-
plateNumber?: string | undefined;
|
|
143
145
|
gender?: "male" | "female" | undefined;
|
|
144
146
|
birthDate?: number | undefined;
|
|
145
147
|
birthMonth?: number | undefined;
|
|
146
148
|
birthYear?: number | undefined;
|
|
147
|
-
|
|
149
|
+
jacketId?: string | undefined;
|
|
150
|
+
plateNumber?: string | undefined;
|
|
148
151
|
};
|
|
152
|
+
}, {
|
|
149
153
|
params: {
|
|
150
154
|
userId: string;
|
|
151
155
|
};
|
|
152
|
-
}, {
|
|
153
156
|
body: {
|
|
157
|
+
contactValue?: string | undefined;
|
|
154
158
|
firstName?: string | undefined;
|
|
155
159
|
lastName?: string | undefined;
|
|
156
|
-
jacketId?: string | undefined;
|
|
157
|
-
plateNumber?: string | undefined;
|
|
158
160
|
gender?: "male" | "female" | undefined;
|
|
159
161
|
birthDate?: number | undefined;
|
|
160
162
|
birthMonth?: number | undefined;
|
|
161
163
|
birthYear?: number | undefined;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
params: {
|
|
165
|
-
userId: string;
|
|
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
|
-
|
|
216
|
-
limit?: number | undefined;
|
|
215
|
+
role?: string | undefined;
|
|
217
216
|
gender?: "male" | "female" | undefined;
|
|
217
|
+
page?: number | undefined;
|
|
218
|
+
limit?: number | undefined;
|
|
219
|
+
search?: string | undefined;
|
|
218
220
|
isActive?: "true" | "false" | undefined;
|
|
219
221
|
isDeactivated?: "true" | "false" | undefined;
|
|
220
|
-
role?: string | undefined;
|
|
221
|
-
page?: number | undefined;
|
|
222
222
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
223
223
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
224
|
-
sortOrder?: "
|
|
224
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
|
|
227
|
-
limit?: string | undefined;
|
|
226
|
+
role?: string | undefined;
|
|
228
227
|
gender?: "male" | "female" | undefined;
|
|
228
|
+
page?: string | undefined;
|
|
229
|
+
limit?: string | undefined;
|
|
230
|
+
search?: string | undefined;
|
|
229
231
|
isActive?: "true" | "false" | undefined;
|
|
230
232
|
isDeactivated?: "true" | "false" | undefined;
|
|
231
|
-
role?: string | undefined;
|
|
232
|
-
page?: string | undefined;
|
|
233
233
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
234
234
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
235
|
-
sortOrder?: "
|
|
235
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
query: {
|
|
239
|
-
|
|
240
|
-
limit?: number | undefined;
|
|
239
|
+
role?: string | undefined;
|
|
241
240
|
gender?: "male" | "female" | undefined;
|
|
241
|
+
page?: number | undefined;
|
|
242
|
+
limit?: number | undefined;
|
|
243
|
+
search?: string | undefined;
|
|
242
244
|
isActive?: "true" | "false" | undefined;
|
|
243
245
|
isDeactivated?: "true" | "false" | undefined;
|
|
244
|
-
role?: string | undefined;
|
|
245
|
-
page?: number | undefined;
|
|
246
246
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
247
247
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
248
|
-
sortOrder?: "
|
|
248
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
query: {
|
|
252
|
-
|
|
253
|
-
limit?: string | undefined;
|
|
252
|
+
role?: string | undefined;
|
|
254
253
|
gender?: "male" | "female" | undefined;
|
|
254
|
+
page?: string | undefined;
|
|
255
|
+
limit?: string | undefined;
|
|
256
|
+
search?: string | undefined;
|
|
255
257
|
isActive?: "true" | "false" | undefined;
|
|
256
258
|
isDeactivated?: "true" | "false" | undefined;
|
|
257
|
-
role?: string | undefined;
|
|
258
|
-
page?: string | undefined;
|
|
259
259
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
260
260
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
261
|
-
sortOrder?: "
|
|
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
|
}>;
|
|
@@ -377,21 +377,21 @@ export declare const promoteAdminSchema: z.ZodObject<{
|
|
|
377
377
|
password?: string | undefined;
|
|
378
378
|
}>;
|
|
379
379
|
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
params: {
|
|
381
|
+
userId: string;
|
|
382
|
+
};
|
|
380
383
|
body: {
|
|
381
384
|
targetRole: "ADMIN" | "SUPER_ADMIN";
|
|
382
385
|
password?: string | undefined;
|
|
383
386
|
};
|
|
387
|
+
}, {
|
|
384
388
|
params: {
|
|
385
389
|
userId: string;
|
|
386
390
|
};
|
|
387
|
-
}, {
|
|
388
391
|
body: {
|
|
389
392
|
targetRole: "ADMIN" | "SUPER_ADMIN";
|
|
390
393
|
password?: string | undefined;
|
|
391
394
|
};
|
|
392
|
-
params: {
|
|
393
|
-
userId: string;
|
|
394
|
-
};
|
|
395
395
|
}>;
|
|
396
396
|
export declare const demoteAdminSchema: z.ZodObject<{
|
|
397
397
|
params: z.ZodObject<{
|
|
@@ -404,24 +404,24 @@ 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
|
-
body: {
|
|
413
|
-
targetRole: "ADMIN" | "AGENT";
|
|
414
|
-
};
|
|
415
412
|
params: {
|
|
416
413
|
userId: string;
|
|
417
414
|
};
|
|
418
|
-
}, {
|
|
419
415
|
body: {
|
|
420
|
-
targetRole: "
|
|
416
|
+
targetRole: "AGENT" | "ADMIN";
|
|
421
417
|
};
|
|
418
|
+
}, {
|
|
422
419
|
params: {
|
|
423
420
|
userId: string;
|
|
424
421
|
};
|
|
422
|
+
body: {
|
|
423
|
+
targetRole: "AGENT" | "ADMIN";
|
|
424
|
+
};
|
|
425
425
|
}>;
|
|
426
426
|
export declare const fireEmployeeSchema: z.ZodObject<{
|
|
427
427
|
params: z.ZodObject<{
|
|
@@ -439,19 +439,19 @@ export declare const fireEmployeeSchema: z.ZodObject<{
|
|
|
439
439
|
reason?: string | undefined;
|
|
440
440
|
}>;
|
|
441
441
|
}, "strip", z.ZodTypeAny, {
|
|
442
|
-
body: {
|
|
443
|
-
reason?: string | undefined;
|
|
444
|
-
};
|
|
445
442
|
params: {
|
|
446
443
|
userId: string;
|
|
447
444
|
};
|
|
448
|
-
}, {
|
|
449
445
|
body: {
|
|
450
446
|
reason?: string | undefined;
|
|
451
447
|
};
|
|
448
|
+
}, {
|
|
452
449
|
params: {
|
|
453
450
|
userId: string;
|
|
454
451
|
};
|
|
452
|
+
body: {
|
|
453
|
+
reason?: string | undefined;
|
|
454
|
+
};
|
|
455
455
|
}>;
|
|
456
456
|
export declare const updateAdminSchema: z.ZodObject<{
|
|
457
457
|
params: 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
|
+
params: {
|
|
507
|
+
userId: string;
|
|
508
|
+
};
|
|
506
509
|
body: {
|
|
510
|
+
contactValue?: string | undefined;
|
|
507
511
|
firstName?: string | undefined;
|
|
508
512
|
lastName?: string | undefined;
|
|
509
513
|
gender?: "male" | "female" | undefined;
|
|
510
514
|
birthDate?: number | undefined;
|
|
511
515
|
birthMonth?: number | undefined;
|
|
512
516
|
birthYear?: number | undefined;
|
|
513
|
-
contactValue?: string | undefined;
|
|
514
517
|
};
|
|
518
|
+
}, {
|
|
515
519
|
params: {
|
|
516
520
|
userId: string;
|
|
517
521
|
};
|
|
518
|
-
}, {
|
|
519
522
|
body: {
|
|
523
|
+
contactValue?: string | undefined;
|
|
520
524
|
firstName?: string | undefined;
|
|
521
525
|
lastName?: string | undefined;
|
|
522
526
|
gender?: "male" | "female" | undefined;
|
|
523
527
|
birthDate?: number | undefined;
|
|
524
528
|
birthMonth?: number | undefined;
|
|
525
529
|
birthYear?: number | undefined;
|
|
526
|
-
contactValue?: string | undefined;
|
|
527
|
-
};
|
|
528
|
-
params: {
|
|
529
|
-
userId: string;
|
|
530
530
|
};
|
|
531
531
|
}>;
|
|
532
532
|
export declare const resetPasswordSchema: z.ZodObject<{
|
|
@@ -606,25 +606,25 @@ export declare const addUserContactSchema: z.ZodObject<{
|
|
|
606
606
|
isPrimary?: boolean | undefined;
|
|
607
607
|
}>;
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
|
+
params: {
|
|
610
|
+
userId: string;
|
|
611
|
+
};
|
|
609
612
|
body: {
|
|
610
613
|
contactValue: string;
|
|
611
614
|
type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
612
615
|
isVerified?: boolean | undefined;
|
|
613
616
|
isPrimary?: boolean | undefined;
|
|
614
617
|
};
|
|
618
|
+
}, {
|
|
615
619
|
params: {
|
|
616
620
|
userId: string;
|
|
617
621
|
};
|
|
618
|
-
}, {
|
|
619
622
|
body: {
|
|
620
623
|
contactValue: string;
|
|
621
624
|
type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
622
625
|
isVerified?: boolean | undefined;
|
|
623
626
|
isPrimary?: boolean | undefined;
|
|
624
627
|
};
|
|
625
|
-
params: {
|
|
626
|
-
userId: string;
|
|
627
|
-
};
|
|
628
628
|
}>;
|
|
629
629
|
export declare const verifyUserContactSchema: z.ZodObject<{
|
|
630
630
|
params: 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;
|