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

@entur/create-offer-configurations-from-offer-to-buy

Package Overview
Dependencies
Maintainers
13
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@entur/create-offer-configurations-from-offer-to-buy - npm Package Versions

2

4.0.1-0

Diff

vages
published 4.0.0 •

Changelog

Source

4.0.0 (2023-05-15)

Breaking

  • Remove support for Offers v1: The function createOfferConfigurationsFromOfferToBuy now only supports Offers v2. If you are using Offers v1, you must upgrade to Offers v2 (or continue to use the old version of this package).
kentandersen
published 3.1.2 •

Changelog

Source

3.1.2 (2023-05-11)

Changed from Offers 2.0 beta to release swagger url

kentandersen
published 3.1.1 •

Changelog

Source

3.1.1 (2023-05-11)

Updated genereated types

vages
published 3.1.0 •

Changelog

Source

3.1.0 (2022-08-24)

  • Add full EcmaScript Module (ESM) support
vages
published 3.0.1 •

Changelog

Source

3.0.1 (2022-04-07)

  • Update types
vages
published 3.0.0 •

Changelog

Source

3.0.0 (2022-02-17)

Breaking

  • Throws errors if the second argument is necessary and not present when using Offers v1:
    • The function createOfferConfigurationsFromOfferToBuy will now throw an error if offerToBuy.withUpgradeProducts contains at least 1 item (i.e. some product that has to be mapped to a selectableId) and you have either supplied no offer or an offer whose ID does not match the ID of the offerToBuy.
    • Previously, the function would silently proceed with an empty selectableProductIds field in the configuration in such cases. Because these products are mandatory, you would probably receive an error when supplying the offer configuration to reserve-offers.

New features

  • You no longer have to supply the second argument when using an OfferToBuy from Offers v2:
    • The offerToBuy type in Offers v2 now supplies the field selectableProductIds itself. We therefore no longer have to map the IDs in withUpgradeProducts to the selectableIds.
    • The second argument is from now on simply ignored when using Offers v2. It does not matter whether you supply it or not.
vages
published 2.1.0 •

Changelog

Source

2.1.0 (2022-01-26)

Add CommonJS build.

vages
published 2.0.1 •

Changelog

Source

2.0.1 (2022-01-25)

Add "type": "module" to package.json.

vages
published 2.0.0 •

Changelog

Source

2.0.0 (2022-01-21)

Support withUpgradeProducts

The function createOfferConfigurationsFromOfferToBuy now adds the products specified by the withUpgradeProducts key in the offer configuration to the selectableProductIds array in the offer configurations it outputs. In order to map these product IDs from their Netex ID to their selectableProductId, the function now requires a second parameter. This must be either the referred Offer (if you are using Offers v1) or OptionalProduct (if you are using Offers v2).

2
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