vr-commons 1.0.34 → 1.0.36

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.
@@ -413,9 +413,8 @@ export declare const createRiderSchema: z.ZodObject<{
413
413
  lastName: z.ZodString;
414
414
  phoneNumber: z.ZodString;
415
415
  nationalId: z.ZodString;
416
- email: z.ZodUnion<[z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodLiteral<"">]>;
417
- password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
418
416
  plateNumber: z.ZodString;
417
+ jacketId: z.ZodString;
419
418
  securityClearanceId: z.ZodString;
420
419
  }, "strip", z.ZodTypeAny, {
421
420
  firstName: string;
@@ -423,18 +422,16 @@ export declare const createRiderSchema: z.ZodObject<{
423
422
  phoneNumber: string;
424
423
  nationalId: string;
425
424
  plateNumber: string;
425
+ jacketId: string;
426
426
  securityClearanceId: string;
427
- email?: string | null | undefined;
428
- password?: string | null | undefined;
429
427
  }, {
430
428
  firstName: string;
431
429
  lastName: string;
432
430
  phoneNumber: string;
433
431
  nationalId: string;
434
432
  plateNumber: string;
433
+ jacketId: string;
435
434
  securityClearanceId: string;
436
- email?: string | null | undefined;
437
- password?: string | null | undefined;
438
435
  }>;
439
436
  params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
440
437
  query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
@@ -445,9 +442,8 @@ export declare const createRiderSchema: z.ZodObject<{
445
442
  phoneNumber: string;
446
443
  nationalId: string;
447
444
  plateNumber: string;
445
+ jacketId: string;
448
446
  securityClearanceId: string;
449
- email?: string | null | undefined;
450
- password?: string | null | undefined;
451
447
  };
452
448
  params?: {} | undefined;
453
449
  query?: {} | undefined;
@@ -458,9 +454,8 @@ export declare const createRiderSchema: z.ZodObject<{
458
454
  phoneNumber: string;
459
455
  nationalId: string;
460
456
  plateNumber: string;
457
+ jacketId: string;
461
458
  securityClearanceId: string;
462
- email?: string | null | undefined;
463
- password?: string | null | undefined;
464
459
  };
465
460
  params?: {} | undefined;
466
461
  query?: {} | undefined;
@@ -255,19 +255,10 @@ exports.createRiderSchema = zod_1.z.object({
255
255
  nationalId: zod_1.z
256
256
  .string()
257
257
  .regex(nationalIdRegex, "National ID must be 16 digits"),
258
- email: zod_1.z
259
- .string()
260
- .email("Invalid email address")
261
- .optional()
262
- .nullable()
263
- .or(zod_1.z.literal("")),
264
- password: zod_1.z
265
- .string()
266
- .min(6, "Password must be at least 6 characters")
267
- .max(100, "Password cannot exceed 100 characters")
268
- .optional()
269
- .nullable(),
270
258
  plateNumber: zod_1.z.string().max(20, "Plate number cannot exceed 20 characters"),
259
+ jacketId: zod_1.z
260
+ .string()
261
+ .regex(jacketIdRegex, "jacketId required and must be of format JKT-"),
271
262
  securityClearanceId: zod_1.z.string().max(50, "SecurityClearanceId required"),
272
263
  }),
273
264
  params: zod_1.z.object({}).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",