@meterapp/vehicle-db 2.52.0 → 2.53.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.
package/dist/resolve.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type IdentityGraph, type IdentityKind, type ScopeContext } from "./identity";
1
+ import { type IdentityGraph, type IdentityKind, type ScopeContext, type VisualCompatibility } from "./identity";
2
2
  export type { IdentityGraph, VehicleIdentity } from "./identity";
3
3
  export interface ResolveVehicleOptions extends ScopeContext {
4
4
  makeId?: number;
@@ -56,3 +56,5 @@ interface Catalog {
56
56
  export declare function createVehicleResolver(catalog: Catalog, identities: IdentityGraph): (query: string, options?: ResolveVehicleOptions) => VehicleResolution;
57
57
  /** Exact identity resolution, separate from autocomplete and render availability. */
58
58
  export declare function resolveVehicle(query: string, options?: ResolveVehicleOptions): VehicleResolution;
59
+ /** The bundled allow/deny rules between visual identities, with rationale and scope: pass them to evaluateVisualCompatibility(). */
60
+ export declare function getVisualCompatibilityRules(): readonly VisualCompatibility[];
package/dist/resolve.js CHANGED
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createVehicleResolver = createVehicleResolver;
7
7
  exports.resolveVehicle = resolveVehicle;
8
+ exports.getVisualCompatibilityRules = getVisualCompatibilityRules;
8
9
  const data_1 = __importDefault(require("./data"));
9
10
  const identity_data_1 = __importDefault(require("./identity-data"));
10
11
  const identity_1 = require("./identity");
@@ -178,3 +179,7 @@ function resolveVehicle(query, options = {}) {
178
179
  resolver ?? (resolver = createVehicleResolver(data_1.default, identity_data_1.default));
179
180
  return resolver(query, options);
180
181
  }
182
+ /** The bundled allow/deny rules between visual identities, with rationale and scope: pass them to evaluateVisualCompatibility(). */
183
+ function getVisualCompatibilityRules() {
184
+ return identity_data_1.default.visualCompatibility;
185
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meterapp/vehicle-db",
3
- "version": "2.52.0",
3
+ "version": "2.53.0",
4
4
  "description": "Offline international database for cars, motorcycles, trucks, buses, MPVs, and more",
5
5
  "repository": {
6
6
  "type": "git",