Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vyro-x/vehicle-order-types

Package Overview
Dependencies
Maintainers
5
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vyro-x/vehicle-order-types - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

5

lib/VehicleOrderStages.d.ts

@@ -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

11

lib/VehicleOrderStages.js
"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

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc