onroute-policy-engine 2.7.0 → 2.8.0

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.
@@ -339,7 +339,8 @@ function selectCorrectWeightDimensionHelper(policy, weightDimensions, configurat
339
339
  const { legal, permittable } = twd;
340
340
  matchingDimension = { legal, permittable };
341
341
  }
342
- console.log('Using default weight dimension, no modifiers specified');
342
+ // Temporarily disabled, doesn't seem this is required.
343
+ // console.log('Using default weight dimension, no modifiers specified');
343
344
  }
344
345
  else {
345
346
  let isMatch = false;
@@ -4,7 +4,7 @@
4
4
  * These types define the structure for axle calculation results and policy check outcomes.
5
5
  * Used for validating vehicle configurations against weight and axle requirements.
6
6
  */
7
- import { PolicyCheckResultType } from 'onroute-policy-engine/enum';
7
+ import { PolicyCheckId, PolicyCheckResultType } from 'onroute-policy-engine/enum';
8
8
  /**
9
9
  * Complete results from axle calculations including all policy checks and total overload
10
10
  */
@@ -23,7 +23,7 @@ export type PolicyCheckResult = {
23
23
  /** Maximum allowed weight threshold in kilograms */
24
24
  thresholdWeight?: number;
25
25
  /** Unique identifier for the policy check */
26
- id: string;
26
+ id: PolicyCheckId;
27
27
  /** Result of the policy check (pass/fail) */
28
28
  result: PolicyCheckResultType;
29
29
  /** Human-readable message describing the check result */
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "v2.7.0";
1
+ export declare const version = "v2.8.0";
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // Generated by genversion.
5
- exports.version = 'v2.7.0';
5
+ exports.version = 'v2.8.0';
package/package.json CHANGED
@@ -91,5 +91,5 @@
91
91
  ],
92
92
  "testEnvironment": "node"
93
93
  },
94
- "version": "v2.7.0"
94
+ "version": "v2.8.0"
95
95
  }