vr-commons 1.0.117 → 1.0.119
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.
|
@@ -9,39 +9,39 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
9
9
|
}>;
|
|
10
10
|
body: z.ZodEffects<z.ZodObject<{
|
|
11
11
|
jacketId: z.ZodString;
|
|
12
|
-
contactValue: z.
|
|
12
|
+
contactValue: z.ZodString;
|
|
13
13
|
plateNumber: z.ZodOptional<z.ZodString>;
|
|
14
14
|
gender: z.ZodEnum<["male", "female"]>;
|
|
15
15
|
birthDate: z.ZodNumber;
|
|
16
16
|
birthMonth: z.ZodNumber;
|
|
17
17
|
birthYear: z.ZodNumber;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
contactValue: string;
|
|
20
19
|
jacketId: string;
|
|
20
|
+
contactValue: string;
|
|
21
21
|
gender: "male" | "female";
|
|
22
22
|
birthDate: number;
|
|
23
23
|
birthMonth: number;
|
|
24
24
|
birthYear: number;
|
|
25
25
|
plateNumber?: string | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
contactValue: string;
|
|
28
27
|
jacketId: string;
|
|
28
|
+
contactValue: string;
|
|
29
29
|
gender: "male" | "female";
|
|
30
30
|
birthDate: number;
|
|
31
31
|
birthMonth: number;
|
|
32
32
|
birthYear: number;
|
|
33
33
|
plateNumber?: string | undefined;
|
|
34
34
|
}>, {
|
|
35
|
-
contactValue: string;
|
|
36
35
|
jacketId: string;
|
|
36
|
+
contactValue: string;
|
|
37
37
|
gender: "male" | "female";
|
|
38
38
|
birthDate: number;
|
|
39
39
|
birthMonth: number;
|
|
40
40
|
birthYear: number;
|
|
41
41
|
plateNumber?: string | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
contactValue: string;
|
|
44
43
|
jacketId: string;
|
|
44
|
+
contactValue: string;
|
|
45
45
|
gender: "male" | "female";
|
|
46
46
|
birthDate: number;
|
|
47
47
|
birthMonth: number;
|
|
@@ -53,8 +53,8 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
53
53
|
userId: string;
|
|
54
54
|
};
|
|
55
55
|
body: {
|
|
56
|
-
contactValue: string;
|
|
57
56
|
jacketId: string;
|
|
57
|
+
contactValue: string;
|
|
58
58
|
gender: "male" | "female";
|
|
59
59
|
birthDate: number;
|
|
60
60
|
birthMonth: number;
|
|
@@ -66,8 +66,8 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
66
66
|
userId: string;
|
|
67
67
|
};
|
|
68
68
|
body: {
|
|
69
|
-
contactValue: string;
|
|
70
69
|
jacketId: string;
|
|
70
|
+
contactValue: string;
|
|
71
71
|
gender: "male" | "female";
|
|
72
72
|
birthDate: number;
|
|
73
73
|
birthMonth: number;
|
|
@@ -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
|
-
|
|
98
|
-
lastName?: string | undefined;
|
|
97
|
+
jacketId?: string | undefined;
|
|
99
98
|
contactValue?: string | undefined;
|
|
100
99
|
plateNumber?: string | undefined;
|
|
101
|
-
jacketId?: string | undefined;
|
|
102
100
|
gender?: "male" | "female" | undefined;
|
|
103
101
|
birthDate?: number | undefined;
|
|
104
102
|
birthMonth?: number | undefined;
|
|
105
103
|
birthYear?: number | undefined;
|
|
106
|
-
}, {
|
|
107
104
|
firstName?: string | undefined;
|
|
108
105
|
lastName?: string | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
jacketId?: string | undefined;
|
|
109
108
|
contactValue?: string | undefined;
|
|
110
109
|
plateNumber?: string | undefined;
|
|
111
|
-
jacketId?: string | undefined;
|
|
112
110
|
gender?: "male" | "female" | undefined;
|
|
113
111
|
birthDate?: number | undefined;
|
|
114
112
|
birthMonth?: number | undefined;
|
|
115
113
|
birthYear?: number | undefined;
|
|
116
|
-
}>, {
|
|
117
114
|
firstName?: string | undefined;
|
|
118
115
|
lastName?: string | undefined;
|
|
116
|
+
}>, {
|
|
117
|
+
jacketId?: string | undefined;
|
|
119
118
|
contactValue?: string | undefined;
|
|
120
119
|
plateNumber?: string | undefined;
|
|
121
|
-
jacketId?: string | undefined;
|
|
122
120
|
gender?: "male" | "female" | undefined;
|
|
123
121
|
birthDate?: number | undefined;
|
|
124
122
|
birthMonth?: number | undefined;
|
|
125
123
|
birthYear?: number | undefined;
|
|
126
|
-
}, {
|
|
127
124
|
firstName?: string | undefined;
|
|
128
125
|
lastName?: string | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
jacketId?: string | undefined;
|
|
129
128
|
contactValue?: string | undefined;
|
|
130
129
|
plateNumber?: string | undefined;
|
|
131
|
-
jacketId?: string | undefined;
|
|
132
130
|
gender?: "male" | "female" | undefined;
|
|
133
131
|
birthDate?: number | undefined;
|
|
134
132
|
birthMonth?: number | undefined;
|
|
135
133
|
birthYear?: number | undefined;
|
|
134
|
+
firstName?: string | undefined;
|
|
135
|
+
lastName?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
params: {
|
|
139
139
|
userId: string;
|
|
140
140
|
};
|
|
141
141
|
body: {
|
|
142
|
-
|
|
143
|
-
lastName?: string | undefined;
|
|
142
|
+
jacketId?: string | undefined;
|
|
144
143
|
contactValue?: string | undefined;
|
|
145
144
|
plateNumber?: string | undefined;
|
|
146
|
-
jacketId?: string | undefined;
|
|
147
145
|
gender?: "male" | "female" | undefined;
|
|
148
146
|
birthDate?: number | undefined;
|
|
149
147
|
birthMonth?: number | undefined;
|
|
150
148
|
birthYear?: number | undefined;
|
|
149
|
+
firstName?: string | undefined;
|
|
150
|
+
lastName?: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
}, {
|
|
153
153
|
params: {
|
|
154
154
|
userId: string;
|
|
155
155
|
};
|
|
156
156
|
body: {
|
|
157
|
-
|
|
158
|
-
lastName?: string | undefined;
|
|
157
|
+
jacketId?: string | undefined;
|
|
159
158
|
contactValue?: string | undefined;
|
|
160
159
|
plateNumber?: string | undefined;
|
|
161
|
-
jacketId?: string | undefined;
|
|
162
160
|
gender?: "male" | "female" | undefined;
|
|
163
161
|
birthDate?: number | undefined;
|
|
164
162
|
birthMonth?: number | undefined;
|
|
165
163
|
birthYear?: number | undefined;
|
|
164
|
+
firstName?: string | undefined;
|
|
165
|
+
lastName?: string | undefined;
|
|
166
166
|
};
|
|
167
167
|
}>;
|
|
168
168
|
export declare const deleteUserSchema: z.ZodObject<{
|
|
@@ -212,52 +212,52 @@ 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
|
gender?: "male" | "female" | undefined;
|
|
217
|
-
isActive?: "true" | "false" | undefined;
|
|
218
|
-
isDeactivated?: "true" | "false" | undefined;
|
|
219
216
|
page?: number | undefined;
|
|
220
217
|
limit?: number | undefined;
|
|
221
|
-
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
222
218
|
search?: string | undefined;
|
|
223
|
-
|
|
219
|
+
isActive?: "true" | "false" | undefined;
|
|
220
|
+
isDeactivated?: "true" | "false" | undefined;
|
|
221
|
+
role?: string | undefined;
|
|
222
|
+
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
223
|
+
sortBy?: "gender" | "firstName" | "lastName" | "createdAt" | undefined;
|
|
224
224
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
role?: string | undefined;
|
|
227
226
|
gender?: "male" | "female" | undefined;
|
|
228
|
-
isActive?: "true" | "false" | undefined;
|
|
229
|
-
isDeactivated?: "true" | "false" | undefined;
|
|
230
227
|
page?: string | undefined;
|
|
231
228
|
limit?: string | undefined;
|
|
232
|
-
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
233
229
|
search?: string | undefined;
|
|
234
|
-
|
|
230
|
+
isActive?: "true" | "false" | undefined;
|
|
231
|
+
isDeactivated?: "true" | "false" | undefined;
|
|
232
|
+
role?: string | undefined;
|
|
233
|
+
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
234
|
+
sortBy?: "gender" | "firstName" | "lastName" | "createdAt" | undefined;
|
|
235
235
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
query: {
|
|
239
|
-
role?: string | undefined;
|
|
240
239
|
gender?: "male" | "female" | undefined;
|
|
241
|
-
isActive?: "true" | "false" | undefined;
|
|
242
|
-
isDeactivated?: "true" | "false" | undefined;
|
|
243
240
|
page?: number | undefined;
|
|
244
241
|
limit?: number | undefined;
|
|
245
|
-
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
246
242
|
search?: string | undefined;
|
|
247
|
-
|
|
243
|
+
isActive?: "true" | "false" | undefined;
|
|
244
|
+
isDeactivated?: "true" | "false" | undefined;
|
|
245
|
+
role?: string | undefined;
|
|
246
|
+
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
247
|
+
sortBy?: "gender" | "firstName" | "lastName" | "createdAt" | undefined;
|
|
248
248
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
query: {
|
|
252
|
-
role?: string | undefined;
|
|
253
252
|
gender?: "male" | "female" | undefined;
|
|
254
|
-
isActive?: "true" | "false" | undefined;
|
|
255
|
-
isDeactivated?: "true" | "false" | undefined;
|
|
256
253
|
page?: string | undefined;
|
|
257
254
|
limit?: string | undefined;
|
|
258
|
-
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
259
255
|
search?: string | undefined;
|
|
260
|
-
|
|
256
|
+
isActive?: "true" | "false" | undefined;
|
|
257
|
+
isDeactivated?: "true" | "false" | undefined;
|
|
258
|
+
role?: string | undefined;
|
|
259
|
+
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
260
|
+
sortBy?: "gender" | "firstName" | "lastName" | "createdAt" | undefined;
|
|
261
261
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
262
262
|
};
|
|
263
263
|
}>;
|
|
@@ -274,96 +274,96 @@ export declare const hireAdminSchema: z.ZodObject<{
|
|
|
274
274
|
birthMonth: z.ZodNumber;
|
|
275
275
|
birthYear: z.ZodNumber;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
|
-
firstName: string;
|
|
278
|
-
lastName: string;
|
|
279
277
|
contactValue: string;
|
|
280
|
-
password: string;
|
|
281
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
282
278
|
gender: "male" | "female";
|
|
283
279
|
birthDate: number;
|
|
284
280
|
birthMonth: number;
|
|
285
281
|
birthYear: number;
|
|
286
|
-
superAdminPassword?: string | undefined;
|
|
287
|
-
}, {
|
|
288
282
|
firstName: string;
|
|
289
283
|
lastName: string;
|
|
290
|
-
contactValue: string;
|
|
291
|
-
password: string;
|
|
292
284
|
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
285
|
+
password: string;
|
|
286
|
+
superAdminPassword?: string | undefined;
|
|
287
|
+
}, {
|
|
288
|
+
contactValue: string;
|
|
293
289
|
gender: "male" | "female";
|
|
294
290
|
birthDate: number;
|
|
295
291
|
birthMonth: number;
|
|
296
292
|
birthYear: number;
|
|
297
|
-
superAdminPassword?: string | undefined;
|
|
298
|
-
}>, {
|
|
299
293
|
firstName: string;
|
|
300
294
|
lastName: string;
|
|
301
|
-
contactValue: string;
|
|
302
|
-
password: string;
|
|
303
295
|
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
296
|
+
password: string;
|
|
297
|
+
superAdminPassword?: string | undefined;
|
|
298
|
+
}>, {
|
|
299
|
+
contactValue: string;
|
|
304
300
|
gender: "male" | "female";
|
|
305
301
|
birthDate: number;
|
|
306
302
|
birthMonth: number;
|
|
307
303
|
birthYear: number;
|
|
308
|
-
superAdminPassword?: string | undefined;
|
|
309
|
-
}, {
|
|
310
304
|
firstName: string;
|
|
311
305
|
lastName: string;
|
|
312
|
-
contactValue: string;
|
|
313
|
-
password: string;
|
|
314
306
|
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
307
|
+
password: string;
|
|
308
|
+
superAdminPassword?: string | undefined;
|
|
309
|
+
}, {
|
|
310
|
+
contactValue: string;
|
|
315
311
|
gender: "male" | "female";
|
|
316
312
|
birthDate: number;
|
|
317
313
|
birthMonth: number;
|
|
318
314
|
birthYear: number;
|
|
319
|
-
superAdminPassword?: string | undefined;
|
|
320
|
-
}>, {
|
|
321
315
|
firstName: string;
|
|
322
316
|
lastName: string;
|
|
323
|
-
contactValue: string;
|
|
324
|
-
password: string;
|
|
325
317
|
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
318
|
+
password: string;
|
|
319
|
+
superAdminPassword?: string | undefined;
|
|
320
|
+
}>, {
|
|
321
|
+
contactValue: string;
|
|
326
322
|
gender: "male" | "female";
|
|
327
323
|
birthDate: number;
|
|
328
324
|
birthMonth: number;
|
|
329
325
|
birthYear: number;
|
|
330
|
-
superAdminPassword?: string | undefined;
|
|
331
|
-
}, {
|
|
332
326
|
firstName: string;
|
|
333
327
|
lastName: string;
|
|
334
|
-
contactValue: string;
|
|
335
|
-
password: string;
|
|
336
328
|
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
329
|
+
password: string;
|
|
330
|
+
superAdminPassword?: string | undefined;
|
|
331
|
+
}, {
|
|
332
|
+
contactValue: string;
|
|
337
333
|
gender: "male" | "female";
|
|
338
334
|
birthDate: number;
|
|
339
335
|
birthMonth: number;
|
|
340
336
|
birthYear: number;
|
|
337
|
+
firstName: string;
|
|
338
|
+
lastName: string;
|
|
339
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
340
|
+
password: string;
|
|
341
341
|
superAdminPassword?: string | undefined;
|
|
342
342
|
}>;
|
|
343
343
|
}, "strip", z.ZodTypeAny, {
|
|
344
344
|
body: {
|
|
345
|
-
firstName: string;
|
|
346
|
-
lastName: string;
|
|
347
345
|
contactValue: string;
|
|
348
|
-
password: string;
|
|
349
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
350
346
|
gender: "male" | "female";
|
|
351
347
|
birthDate: number;
|
|
352
348
|
birthMonth: number;
|
|
353
349
|
birthYear: number;
|
|
350
|
+
firstName: string;
|
|
351
|
+
lastName: string;
|
|
352
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
353
|
+
password: string;
|
|
354
354
|
superAdminPassword?: string | undefined;
|
|
355
355
|
};
|
|
356
356
|
}, {
|
|
357
357
|
body: {
|
|
358
|
-
firstName: string;
|
|
359
|
-
lastName: string;
|
|
360
358
|
contactValue: string;
|
|
361
|
-
password: string;
|
|
362
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
363
359
|
gender: "male" | "female";
|
|
364
360
|
birthDate: number;
|
|
365
361
|
birthMonth: number;
|
|
366
362
|
birthYear: number;
|
|
363
|
+
firstName: string;
|
|
364
|
+
lastName: string;
|
|
365
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
366
|
+
password: string;
|
|
367
367
|
superAdminPassword?: string | undefined;
|
|
368
368
|
};
|
|
369
369
|
}>;
|
|
@@ -479,63 +479,63 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
479
479
|
birthMonth: z.ZodOptional<z.ZodNumber>;
|
|
480
480
|
birthYear: z.ZodOptional<z.ZodNumber>;
|
|
481
481
|
}, "strip", z.ZodTypeAny, {
|
|
482
|
-
firstName?: string | undefined;
|
|
483
|
-
lastName?: string | undefined;
|
|
484
482
|
contactValue?: string | undefined;
|
|
485
483
|
gender?: "male" | "female" | undefined;
|
|
486
484
|
birthDate?: number | undefined;
|
|
487
485
|
birthMonth?: number | undefined;
|
|
488
486
|
birthYear?: number | undefined;
|
|
489
|
-
}, {
|
|
490
487
|
firstName?: string | undefined;
|
|
491
488
|
lastName?: string | undefined;
|
|
489
|
+
}, {
|
|
492
490
|
contactValue?: string | undefined;
|
|
493
491
|
gender?: "male" | "female" | undefined;
|
|
494
492
|
birthDate?: number | undefined;
|
|
495
493
|
birthMonth?: number | undefined;
|
|
496
494
|
birthYear?: number | undefined;
|
|
497
|
-
}>, {
|
|
498
495
|
firstName?: string | undefined;
|
|
499
496
|
lastName?: string | undefined;
|
|
497
|
+
}>, {
|
|
500
498
|
contactValue?: string | undefined;
|
|
501
499
|
gender?: "male" | "female" | undefined;
|
|
502
500
|
birthDate?: number | undefined;
|
|
503
501
|
birthMonth?: number | undefined;
|
|
504
502
|
birthYear?: number | undefined;
|
|
505
|
-
}, {
|
|
506
503
|
firstName?: string | undefined;
|
|
507
504
|
lastName?: string | undefined;
|
|
505
|
+
}, {
|
|
508
506
|
contactValue?: string | undefined;
|
|
509
507
|
gender?: "male" | "female" | undefined;
|
|
510
508
|
birthDate?: number | undefined;
|
|
511
509
|
birthMonth?: number | undefined;
|
|
512
510
|
birthYear?: number | undefined;
|
|
511
|
+
firstName?: string | undefined;
|
|
512
|
+
lastName?: string | undefined;
|
|
513
513
|
}>;
|
|
514
514
|
}, "strip", z.ZodTypeAny, {
|
|
515
515
|
params: {
|
|
516
516
|
userId: string;
|
|
517
517
|
};
|
|
518
518
|
body: {
|
|
519
|
-
firstName?: string | undefined;
|
|
520
|
-
lastName?: string | undefined;
|
|
521
519
|
contactValue?: string | undefined;
|
|
522
520
|
gender?: "male" | "female" | undefined;
|
|
523
521
|
birthDate?: number | undefined;
|
|
524
522
|
birthMonth?: number | undefined;
|
|
525
523
|
birthYear?: number | undefined;
|
|
524
|
+
firstName?: string | undefined;
|
|
525
|
+
lastName?: string | undefined;
|
|
526
526
|
};
|
|
527
527
|
}, {
|
|
528
528
|
params: {
|
|
529
529
|
userId: string;
|
|
530
530
|
};
|
|
531
531
|
body: {
|
|
532
|
-
firstName?: string | undefined;
|
|
533
|
-
lastName?: string | undefined;
|
|
534
532
|
contactValue?: string | undefined;
|
|
535
533
|
gender?: "male" | "female" | undefined;
|
|
536
534
|
birthDate?: number | undefined;
|
|
537
535
|
birthMonth?: number | undefined;
|
|
538
536
|
birthYear?: number | undefined;
|
|
537
|
+
firstName?: string | undefined;
|
|
538
|
+
lastName?: string | undefined;
|
|
539
539
|
};
|
|
540
540
|
}>;
|
|
541
541
|
export declare const resetPasswordSchema: z.ZodObject<{
|
|
@@ -23,11 +23,9 @@ exports.upgradeToRiderSchema = zod_1.z.object({
|
|
|
23
23
|
jacketId: zod_1.z.string().regex(profiles_validations_1.jacketIdRegex, "Invalid jacket ID format"),
|
|
24
24
|
contactValue: zod_1.z
|
|
25
25
|
.string()
|
|
26
|
-
.min(1, "
|
|
27
|
-
.
|
|
28
|
-
|
|
29
|
-
}),
|
|
30
|
-
plateNumber: zod_1.z.string().min(3).max(10).optional(),
|
|
26
|
+
.min(1, "Phone number is required")
|
|
27
|
+
.regex(auth_validations_1.phoneRegex, "Invalid phone number format. Must be a valid Rwandan phone number (+250...) followed by 7 digits"),
|
|
28
|
+
plateNumber: zod_1.z.string().min(6).max(6).optional(),
|
|
31
29
|
gender: zod_1.z.enum(["male", "female"], {
|
|
32
30
|
errorMap: () => ({
|
|
33
31
|
message: "Gender must be either 'male' or 'female'",
|