@vyro-x/vehicle-order-types
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -11,2 +11,3 @@ export declare enum VehicleOrderStage { | ||
} | ||
export type VehicleOrderStageType = keyof typeof VehicleOrderStage; | ||
/** | ||
@@ -18,2 +19,6 @@ * Returns a human-friendly name for the given stage | ||
export declare const getStageName: (stage: VehicleOrderStage | string) => string; | ||
export declare const getStageLabelValuePairs: () => { | ||
label: string; | ||
value: VehicleOrderStage; | ||
}[]; | ||
/** | ||
@@ -20,0 +25,0 @@ * Vehicle order stages in their respective order with 0 = first and 1 being second |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IndexedVehicleOrderStages = exports.getStageName = exports.VehicleOrderStage = void 0; | ||
exports.IndexedVehicleOrderStages = exports.getStageLabelValuePairs = exports.getStageName = exports.VehicleOrderStage = void 0; | ||
var VehicleOrderStage; | ||
@@ -34,2 +34,11 @@ (function (VehicleOrderStage) { | ||
exports.getStageName = getStageName; | ||
const getStageLabelValuePairs = () => { | ||
return Object.keys(VehicleOrderStage) | ||
.filter((x) => VehicleOrderStage[x] !== VehicleOrderStage.PhoneOrder) | ||
.map((key) => ({ | ||
label: (0, exports.getStageName)(VehicleOrderStage[key]), | ||
value: VehicleOrderStage[key], | ||
})); | ||
}; | ||
exports.getStageLabelValuePairs = getStageLabelValuePairs; | ||
/** | ||
@@ -36,0 +45,0 @@ * Vehicle order stages in their respective order with 0 = first and 1 being second |
{ | ||
"name": "@vyro-x/vehicle-order-types", | ||
"description": "Type definitions for Vyro vehicle_orders that are outside of what Hasura provides", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "types": "lib/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10952
272
1