vr-commons 1.0.36 → 1.0.37
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.
|
@@ -415,7 +415,6 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
415
415
|
nationalId: z.ZodString;
|
|
416
416
|
plateNumber: z.ZodString;
|
|
417
417
|
jacketId: z.ZodString;
|
|
418
|
-
securityClearanceId: z.ZodString;
|
|
419
418
|
}, "strip", z.ZodTypeAny, {
|
|
420
419
|
firstName: string;
|
|
421
420
|
lastName: string;
|
|
@@ -423,7 +422,6 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
423
422
|
nationalId: string;
|
|
424
423
|
plateNumber: string;
|
|
425
424
|
jacketId: string;
|
|
426
|
-
securityClearanceId: string;
|
|
427
425
|
}, {
|
|
428
426
|
firstName: string;
|
|
429
427
|
lastName: string;
|
|
@@ -431,7 +429,6 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
431
429
|
nationalId: string;
|
|
432
430
|
plateNumber: string;
|
|
433
431
|
jacketId: string;
|
|
434
|
-
securityClearanceId: string;
|
|
435
432
|
}>;
|
|
436
433
|
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
437
434
|
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
@@ -443,7 +440,6 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
443
440
|
nationalId: string;
|
|
444
441
|
plateNumber: string;
|
|
445
442
|
jacketId: string;
|
|
446
|
-
securityClearanceId: string;
|
|
447
443
|
};
|
|
448
444
|
params?: {} | undefined;
|
|
449
445
|
query?: {} | undefined;
|
|
@@ -455,7 +451,6 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
455
451
|
nationalId: string;
|
|
456
452
|
plateNumber: string;
|
|
457
453
|
jacketId: string;
|
|
458
|
-
securityClearanceId: string;
|
|
459
454
|
};
|
|
460
455
|
params?: {} | undefined;
|
|
461
456
|
query?: {} | undefined;
|
|
@@ -583,30 +578,40 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
583
578
|
riderId: string;
|
|
584
579
|
}>;
|
|
585
580
|
body: z.ZodEffects<z.ZodObject<{
|
|
586
|
-
firstName: z.
|
|
587
|
-
lastName: z.
|
|
588
|
-
|
|
589
|
-
|
|
581
|
+
firstName: z.ZodString;
|
|
582
|
+
lastName: z.ZodString;
|
|
583
|
+
phoneNumber: z.ZodString;
|
|
584
|
+
nationalId: z.ZodString;
|
|
585
|
+
plateNumber: z.ZodString;
|
|
586
|
+
jacketId: z.ZodString;
|
|
590
587
|
}, "strip", z.ZodTypeAny, {
|
|
591
|
-
firstName
|
|
592
|
-
lastName
|
|
593
|
-
|
|
594
|
-
|
|
588
|
+
firstName: string;
|
|
589
|
+
lastName: string;
|
|
590
|
+
phoneNumber: string;
|
|
591
|
+
nationalId: string;
|
|
592
|
+
plateNumber: string;
|
|
593
|
+
jacketId: string;
|
|
595
594
|
}, {
|
|
596
|
-
firstName
|
|
597
|
-
lastName
|
|
598
|
-
|
|
599
|
-
|
|
595
|
+
firstName: string;
|
|
596
|
+
lastName: string;
|
|
597
|
+
phoneNumber: string;
|
|
598
|
+
nationalId: string;
|
|
599
|
+
plateNumber: string;
|
|
600
|
+
jacketId: string;
|
|
600
601
|
}>, {
|
|
601
|
-
firstName
|
|
602
|
-
lastName
|
|
603
|
-
|
|
604
|
-
|
|
602
|
+
firstName: string;
|
|
603
|
+
lastName: string;
|
|
604
|
+
phoneNumber: string;
|
|
605
|
+
nationalId: string;
|
|
606
|
+
plateNumber: string;
|
|
607
|
+
jacketId: string;
|
|
605
608
|
}, {
|
|
606
|
-
firstName
|
|
607
|
-
lastName
|
|
608
|
-
|
|
609
|
-
|
|
609
|
+
firstName: string;
|
|
610
|
+
lastName: string;
|
|
611
|
+
phoneNumber: string;
|
|
612
|
+
nationalId: string;
|
|
613
|
+
plateNumber: string;
|
|
614
|
+
jacketId: string;
|
|
610
615
|
}>;
|
|
611
616
|
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
612
617
|
headers: z.ZodObject<{
|
|
@@ -621,10 +626,12 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
621
626
|
riderId: string;
|
|
622
627
|
};
|
|
623
628
|
body: {
|
|
624
|
-
firstName
|
|
625
|
-
lastName
|
|
626
|
-
|
|
627
|
-
|
|
629
|
+
firstName: string;
|
|
630
|
+
lastName: string;
|
|
631
|
+
phoneNumber: string;
|
|
632
|
+
nationalId: string;
|
|
633
|
+
plateNumber: string;
|
|
634
|
+
jacketId: string;
|
|
628
635
|
};
|
|
629
636
|
headers: {
|
|
630
637
|
authorization: string;
|
|
@@ -635,10 +642,12 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
635
642
|
riderId: string;
|
|
636
643
|
};
|
|
637
644
|
body: {
|
|
638
|
-
firstName
|
|
639
|
-
lastName
|
|
640
|
-
|
|
641
|
-
|
|
645
|
+
firstName: string;
|
|
646
|
+
lastName: string;
|
|
647
|
+
phoneNumber: string;
|
|
648
|
+
nationalId: string;
|
|
649
|
+
plateNumber: string;
|
|
650
|
+
jacketId: string;
|
|
642
651
|
};
|
|
643
652
|
headers: {
|
|
644
653
|
authorization: string;
|
|
@@ -259,7 +259,6 @@ exports.createRiderSchema = zod_1.z.object({
|
|
|
259
259
|
jacketId: zod_1.z
|
|
260
260
|
.string()
|
|
261
261
|
.regex(jacketIdRegex, "jacketId required and must be of format JKT-"),
|
|
262
|
-
securityClearanceId: zod_1.z.string().max(50, "SecurityClearanceId required"),
|
|
263
262
|
}),
|
|
264
263
|
params: zod_1.z.object({}).optional(),
|
|
265
264
|
query: zod_1.z.object({}).optional(),
|
|
@@ -329,24 +328,23 @@ exports.updateRiderProfileSchema = zod_1.z.object({
|
|
|
329
328
|
firstName: zod_1.z
|
|
330
329
|
.string()
|
|
331
330
|
.min(2, "First name must be at least 2 characters")
|
|
332
|
-
.max(100, "First name cannot exceed 100 characters")
|
|
333
|
-
.optional(),
|
|
331
|
+
.max(100, "First name cannot exceed 100 characters"),
|
|
334
332
|
lastName: zod_1.z
|
|
335
333
|
.string()
|
|
336
334
|
.min(2, "Last name must be at least 2 characters")
|
|
337
|
-
.max(100, "Last name cannot exceed 100 characters")
|
|
338
|
-
|
|
339
|
-
email: zod_1.z
|
|
335
|
+
.max(100, "Last name cannot exceed 100 characters"),
|
|
336
|
+
phoneNumber: zod_1.z
|
|
340
337
|
.string()
|
|
341
|
-
.
|
|
342
|
-
|
|
343
|
-
.
|
|
344
|
-
.
|
|
338
|
+
.regex(phoneNumberRegex, "Phone number must be a valid Rwandan number (078/079/072/073) followed by 7 digits"),
|
|
339
|
+
nationalId: zod_1.z
|
|
340
|
+
.string()
|
|
341
|
+
.regex(nationalIdRegex, "National ID must be 16 digits"),
|
|
345
342
|
plateNumber: zod_1.z
|
|
346
343
|
.string()
|
|
347
|
-
.max(20, "Plate number cannot exceed 20 characters")
|
|
348
|
-
|
|
349
|
-
.
|
|
344
|
+
.max(20, "Plate number cannot exceed 20 characters"),
|
|
345
|
+
jacketId: zod_1.z
|
|
346
|
+
.string()
|
|
347
|
+
.regex(jacketIdRegex, "jacketId required and must be of format JKT-"),
|
|
350
348
|
})
|
|
351
349
|
.refine((data) => Object.keys(data).length > 0, {
|
|
352
350
|
message: "At least one field must be provided for update",
|