vr-commons 1.0.184 → 1.0.186

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.
@@ -7,7 +7,9 @@ const optionalUrl = zod_1.z.preprocess((value) => typeof value === "string" && v
7
7
  const optionalEmail = zod_1.z.preprocess((value) => typeof value === "string" && value.trim() === "" ? null : value, zod_1.z.string().email().nullable().optional());
8
8
  const speedLimitSchema = zod_1.z.number().positive().max(300);
9
9
  const speedGovernorDayScheduleSchema = zod_1.z.object({
10
+ morningRushHourLimitKmh: speedLimitSchema.optional(),
10
11
  daytimeLimitKmh: speedLimitSchema,
12
+ eveningRushHourLimitKmh: speedLimitSchema.optional(),
11
13
  nighttimeLimitKmh: speedLimitSchema,
12
14
  });
13
15
  const speedGovernorWeeklyScheduleSchema = zod_1.z.object({
@@ -21,9 +23,9 @@ const speedGovernorWeeklyScheduleSchema = zod_1.z.object({
21
23
  });
22
24
  const speedGovernorSchema = zod_1.z.object({
23
25
  isActive: zod_1.z.boolean(),
24
- speedLimitKmh: speedLimitSchema,
25
26
  fallbackSpeedLimit: speedLimitSchema.optional(),
26
27
  weeklySchedule: speedGovernorWeeklyScheduleSchema.optional(),
28
+ exceptions: zod_1.z.array(zod_1.z.string().trim().min(1).max(100)).optional(),
27
29
  });
28
30
  const appSpecsBaseSchema = {
29
31
  // App Identity
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.184",
3
+ "version": "1.0.186",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",