New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atb-as/config-specs

Package Overview
Dependencies
Maintainers
11
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atb-as/config-specs - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

2

lib/common.d.ts
import { z } from 'zod';
export declare const TransportModeType: z.ZodUnion<[z.ZodLiteral<"air">, z.ZodLiteral<"bus">, z.ZodLiteral<"cableway">, z.ZodLiteral<"coach">, z.ZodLiteral<"funicular">, z.ZodLiteral<"lift">, z.ZodLiteral<"metro">, z.ZodLiteral<"monorail">, z.ZodLiteral<"rail">, z.ZodLiteral<"tram">, z.ZodLiteral<"trolleybus">, z.ZodLiteral<"unknown">, z.ZodLiteral<"water">]>;
export declare const TransportSubmodeType: z.ZodUnion<[z.ZodLiteral<"SchengenAreaFlight">, z.ZodLiteral<"airportBoatLink">, z.ZodLiteral<"airportLinkBus">, z.ZodLiteral<"airportLinkRail">, z.ZodLiteral<"airshipService">, z.ZodLiteral<"allFunicularServices">, z.ZodLiteral<"allHireVehicles">, z.ZodLiteral<"allTaxiServices">, z.ZodLiteral<"bikeTaxi">, z.ZodLiteral<"blackCab">, z.ZodLiteral<"cableCar">, z.ZodLiteral<"cableFerry">, z.ZodLiteral<"canalBarge">, z.ZodLiteral<"carTransportRailService">, z.ZodLiteral<"chairLift">, z.ZodLiteral<"charterTaxi">, z.ZodLiteral<"cityTram">, z.ZodLiteral<"communalTaxi">, z.ZodLiteral<"commuterCoach">, z.ZodLiteral<"crossCountryRail">, z.ZodLiteral<"dedicatedLaneBus">, z.ZodLiteral<"demandAndResponseBus">, z.ZodLiteral<"domesticCharterFlight">, z.ZodLiteral<"domesticFlight">, z.ZodLiteral<"domesticScheduledFlight">, z.ZodLiteral<"dragLift">, z.ZodLiteral<"expressBus">, z.ZodLiteral<"funicular">, z.ZodLiteral<"helicopterService">, z.ZodLiteral<"highFrequencyBus">, z.ZodLiteral<"highSpeedPassengerService">, z.ZodLiteral<"highSpeedRail">, z.ZodLiteral<"highSpeedVehicleService">, z.ZodLiteral<"hireCar">, z.ZodLiteral<"hireCycle">, z.ZodLiteral<"hireMotorbike">, z.ZodLiteral<"hireVan">, z.ZodLiteral<"intercontinentalCharterFlight">, z.ZodLiteral<"intercontinentalFlight">, z.ZodLiteral<"international">, z.ZodLiteral<"internationalCarFerry">, z.ZodLiteral<"internationalCharterFlight">, z.ZodLiteral<"internationalCoach">, z.ZodLiteral<"internationalFlight">, z.ZodLiteral<"internationalPassengerFerry">, z.ZodLiteral<"interregionalRail">, z.ZodLiteral<"lift">, z.ZodLiteral<"local">, z.ZodLiteral<"localBus">, z.ZodLiteral<"localCarFerry">, z.ZodLiteral<"localPassengerFerry">, z.ZodLiteral<"localTram">, z.ZodLiteral<"longDistance">, z.ZodLiteral<"metro">, z.ZodLiteral<"miniCab">, z.ZodLiteral<"mobilityBus">, z.ZodLiteral<"mobilityBusForRegisteredDisabled">, z.ZodLiteral<"nationalCarFerry">, z.ZodLiteral<"nationalCoach">, z.ZodLiteral<"nationalPassengerFerry">, z.ZodLiteral<"nightBus">, z.ZodLiteral<"nightRail">, z.ZodLiteral<"postBoat">, z.ZodLiteral<"postBus">, z.ZodLiteral<"rackAndPinionRailway">, z.ZodLiteral<"railReplacementBus">, z.ZodLiteral<"railShuttle">, z.ZodLiteral<"railTaxi">, z.ZodLiteral<"regionalBus">, z.ZodLiteral<"regionalCarFerry">, z.ZodLiteral<"regionalCoach">, z.ZodLiteral<"regionalPassengerFerry">, z.ZodLiteral<"regionalRail">, z.ZodLiteral<"regionalTram">, z.ZodLiteral<"replacementRailService">, z.ZodLiteral<"riverBus">, z.ZodLiteral<"roadFerryLink">, z.ZodLiteral<"roundTripCharterFlight">, z.ZodLiteral<"scheduledFerry">, z.ZodLiteral<"schoolAndPublicServiceBus">, z.ZodLiteral<"schoolBoat">, z.ZodLiteral<"schoolBus">, z.ZodLiteral<"schoolCoach">, z.ZodLiteral<"shortHaulInternationalFlight">, z.ZodLiteral<"shuttleBus">, z.ZodLiteral<"shuttleCoach">, z.ZodLiteral<"shuttleFerryService">, z.ZodLiteral<"shuttleFlight">, z.ZodLiteral<"shuttleTram">, z.ZodLiteral<"sightseeingBus">, z.ZodLiteral<"sightseeingCoach">, z.ZodLiteral<"sightseeingFlight">, z.ZodLiteral<"sightseeingService">, z.ZodLiteral<"sightseeingTram">, z.ZodLiteral<"sleeperRailService">, z.ZodLiteral<"specialCoach">, z.ZodLiteral<"specialNeedsBus">, z.ZodLiteral<"specialTrain">, z.ZodLiteral<"streetCableCar">, z.ZodLiteral<"suburbanRailway">, z.ZodLiteral<"telecabin">, z.ZodLiteral<"telecabinLink">, z.ZodLiteral<"touristCoach">, z.ZodLiteral<"touristRailway">, z.ZodLiteral<"trainFerry">, z.ZodLiteral<"trainTram">, z.ZodLiteral<"tube">, z.ZodLiteral<"undefined">, z.ZodLiteral<"undefinedFunicular">, z.ZodLiteral<"unknown">, z.ZodLiteral<"urbanRailway">, z.ZodLiteral<"waterTaxi">]>;
export declare const LabelType: z.ZodUnion<[z.ZodLiteral<"beta">, z.ZodLiteral<"new">]>;
export type TransportModeType = z.infer<typeof TransportModeType>;
export type TransportSubmodeType = z.infer<typeof TransportSubmodeType>;
export type LabelType = z.infer<typeof LabelType>;
export declare const LanguageAndTextType: z.ZodUnion<[z.ZodObject<{

@@ -7,0 +9,0 @@ lang: z.ZodString;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LanguageAndTextTypeArray = exports.LanguageAndTextType = exports.TransportSubmodeType = exports.TransportModeType = void 0;
exports.LanguageAndTextTypeArray = exports.LanguageAndTextType = exports.LabelType = exports.TransportSubmodeType = exports.TransportModeType = void 0;
const zod_1 = require("zod");

@@ -134,2 +134,6 @@ exports.TransportModeType = zod_1.z.union([

]);
exports.LabelType = zod_1.z.union([
zod_1.z.literal('beta'),
zod_1.z.literal('new'),
]);
exports.LanguageAndTextType = zod_1.z.union([

@@ -136,0 +140,0 @@ zod_1.z.object({

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TravelSearchFiltersType = exports.TransportModeFilterOptionType = exports.TravelSearchTransportModes = exports.TravelSearchTransportModeIcon = void 0;
exports.TravelSearchFiltersType = exports.FlexibleTransportOptionType = exports.TransportModeFilterOptionType = exports.TravelSearchTransportModes = exports.TravelSearchTransportModeIcon = void 0;
const zod_1 = require("zod");

@@ -21,4 +21,11 @@ const common_1 = require("./common");

});
exports.FlexibleTransportOptionType = zod_1.z.object({
id: zod_1.z.string(),
title: common_1.LanguageAndTextTypeArray.nonempty(),
label: common_1.LabelType.optional(),
description: common_1.LanguageAndTextTypeArray.nonempty(),
});
exports.TravelSearchFiltersType = zod_1.z.object({
transportModes: exports.TransportModeFilterOptionType.array().optional(),
flexibleTransport: exports.FlexibleTransportOptionType.optional(),
});

2

package.json
{
"name": "@atb-as/config-specs",
"version": "3.0.0",
"version": "3.1.0",
"description": "Shared types and validation for fare product type configs",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -246,2 +246,37 @@ {

}
},
"flexibleTransport": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "array",
"items": {
"$ref": "#/definitions/LanguageAndTextTypeArray/items"
},
"minItems": 1
},
"label": {
"type": "string",
"enum": [
"beta",
"new"
]
},
"description": {
"type": "array",
"items": {
"$ref": "#/definitions/LanguageAndTextTypeArray/items"
},
"minItems": 1
}
},
"required": [
"id",
"title",
"description"
],
"additionalProperties": false
}

@@ -248,0 +283,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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