@entur/create-offer-configurations-from-offer-to-buy
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -1,4 +0,4 @@ | ||
import { OfferToBuy as OfferToBuy2 } from './types/offers2Types'; | ||
import { FareProductConfiguration, Offer, OfferToBuy } from './types/offersTypes'; | ||
import { OfferConfiguration } from './types/reserveOfferTypes'; | ||
import { OfferToBuy as OfferToBuy2 } from './types/offers2Types.js'; | ||
import { FareProductConfiguration, Offer, OfferToBuy } from './types/offersTypes.js'; | ||
import { OfferConfiguration } from './types/reserveOfferTypes.js'; | ||
export declare type SetRequired<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>; | ||
@@ -12,3 +12,3 @@ /** | ||
declare type StrippedFareProductConfiguration = Pick<FareProductConfiguration, 'id' | 'selectableId'>; | ||
declare type StrippedOffer = Pick<Offer, 'id'> & { | ||
export declare type StrippedOffer = Pick<Offer, 'id'> & { | ||
salesPackageConfig: { | ||
@@ -15,0 +15,0 @@ fareProducts: StrippedFareProductConfiguration[]; |
@@ -1,4 +0,4 @@ | ||
import { OfferToBuy as OfferToBuy2 } from './types/offers2Types'; | ||
import { FareProductConfiguration, Offer, OfferToBuy } from './types/offersTypes'; | ||
import { OfferConfiguration } from './types/reserveOfferTypes'; | ||
import { OfferToBuy as OfferToBuy2 } from './types/offers2Types.js'; | ||
import { FareProductConfiguration, Offer, OfferToBuy } from './types/offersTypes.js'; | ||
import { OfferConfiguration } from './types/reserveOfferTypes.js'; | ||
export declare type SetRequired<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>; | ||
@@ -12,3 +12,3 @@ /** | ||
declare type StrippedFareProductConfiguration = Pick<FareProductConfiguration, 'id' | 'selectableId'>; | ||
declare type StrippedOffer = Pick<Offer, 'id'> & { | ||
export declare type StrippedOffer = Pick<Offer, 'id'> & { | ||
salesPackageConfig: { | ||
@@ -15,0 +15,0 @@ fareProducts: StrippedFareProductConfiguration[]; |
{ | ||
"name": "@entur/create-offer-configurations-from-offer-to-buy", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"type": "module", | ||
@@ -23,3 +23,3 @@ "description": "Create an array of offer configurations exactly as prescribed by the possibleTravellerIds field in an OfferToBuy", | ||
"update-types": "npx swagger-typescript-api --path https://api.staging.entur.io/sales/v1/offers/api-docs/swagger.json --output source/types -n offersTypes.ts --no-client && npx swagger-typescript-api --path https://api.staging.entur.io/offers/v2-beta/api-docs/swagger.json --output source/types -n offers2Types.ts --no-client && npx swagger-typescript-api --path https://api.staging.entur.io/api-docs/reserve-offer?group=public --output source/types -n reserveOfferTypes.ts --no-client", | ||
"test": "jest", | ||
"test": "mocha test/**/*.ts", | ||
"lint": "npx prettier --check *.{md,json} .*.cjs; xo", | ||
@@ -39,6 +39,5 @@ "lint:fix": "npx prettier --write *.{md,json} .*.cjs; xo --fix", | ||
"@types/eslint-plugin-prettier": "^3.1.0", | ||
"@types/jest": "^26.0.24", | ||
"@types/mocha": "^9.1.1", | ||
"@types/prettier": "^2.3.2", | ||
"@types/xo": "^0.39.1", | ||
"babel-jest": "^27.0.6", | ||
"eslint-plugin-jsdoc": "^36.1.0", | ||
@@ -48,6 +47,8 @@ "eslint-plugin-prettier": "^3.4.0", | ||
"eslint-plugin-sort-keys": "^2.3.5", | ||
"expect": "^28.1.3", | ||
"husky": "^7.0.1", | ||
"jest": "^27.0.6", | ||
"mocha": "^10.0.0", | ||
"np": "^7.6.0", | ||
"prettier": "^2.3.2", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.4.3", | ||
@@ -54,0 +55,0 @@ "xo": "^0.42.0" |
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
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
384395
22