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

commerce-sdk

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commerce-sdk - npm Package Versions

13
6

2.10.1

Diff

Changelog

Source

v2.10.1

Bug Fixes
  • Fixes nanoid dependency issue
monkey-jeff
published 2.10.0 •

Changelog

Source

v2.10.0

API Changes

CDN Zones API

  • New Endpoints

    | Endpoint Name | Description | | ------------- |-------------| | validateCustomHostname | Restart the validation checks for a given custom hostname for a particular zone |

Shopper Login

  • New Endpoints

    | Endpoint Name | Description | | ------------- |-------------| | getSessionBridgeAccessToken | Get a shopper JWT access token for a registered customer using session bridge | | getTrustedAgentAuthorizationToken | Obtains a new agent on behalf authorization token for a registered customer | | getTrustedAgentAccessToken | Get a shopper JWT access token for a registered customer using a trusted agent (Merchant) |

monkey-jeff
published 2.9.0 •

Changelog

Source

v2.9.0

API Changes

CDN Zones API

  • Removal of non operational endpoint workerUpdate

  • New Endpoints

    | Endpoint Name | Description | | ------------- |-------------| | createStorefrontZone | Create a new storefront zone | | cachePurge | Request to purge the cache for the host given in the request body | | toggleOcapiCachingPageRule | Request to enable or disable OCAPI Caching page rule | | addCertificateForZone | Add Certificates For Zone |

Orders API

  • New Endpoints

    | Endpoint Name | Description | | ------------- |-------------| | createOrders | Create an order in the Commerce Cloud platform by passing the order as json payload in the body of the POST request |

Shopper Login (SLAS) Admin

  • Removal of non-operational endpoints retrieveTenants and deleteTenant
Bug Fixes
  • Fixes SLAS endpoints getPasswordResetToken and resetPassword
monkey-jeff
published 2.8.0 •

Changelog

Source

v2.8.0

Enchancements
  • SLAS helper functions have been added
  • fetchOptions are able to be passed to modify the fetch call behavior
API Changes

Shopper Login

  • New Endpoints

    | Endpoint Name | Description | | ------------- |-------------| | getPasswordResetToken | Request a reset password token | | resetPassword | Creates a new password |

Documentation
  • Code examples have been added for the SLAS helpers and registering a shopper
  • README has been updated to reflect support for Node 16 LTS
monkey-jeff
published 2.7.1 •

Changelog

Source

v2.7.1

Documentation

Sample data has been updated to use inclusive language.

monkey-jeff
published 2.7.0 •

Changelog

Source

v2.7.0

New APIs
  • Shopper Context has been added to the SDK.
API Changes

Shopper Login

  • New Endpoints

    | Endpoint Name | Description | | ------------- |-------------| | authorizePasswordlessCustomer | Logs a customer in using Core with their customer profiles loaded in ECOM. Allows the user to authenticate when their identity provider (Core) is down. | | getPasswordLessAccessToken | Evaluate the pwdless_token and issue the shopper token (JWT). |

monkey-jeff
published 2.6.1 •

Changelog

Source

v2.6.1

Bug Fixes
  • The Content-Type header is now set for all requests with payloads, enabling the Shopper Login endpoints to work as expected.
monkey-jeff
published 2.6.0 •

Changelog

Source

v2.6.0

API Changes

CDN Zones

  • New endpoints

| Endpoint Name | Description | | ------------- |-------------| | workerUpdate | Updates the worker for the zone to the specified version |

Shopper Baskets

  • New endpoints

| Endpoint Name | Description | | ------------- |-------------| | transferBasket | Transfer the previous shopper's basket to the current shopper by updating the basket's owner. No other values change. You must obtain the shopper authorization token via SLAS, and it must contain both the previous and current shopper IDs. | | mergeBasket | Merge data from the previous shopper's basket into the current shopper's active basket and delete the previous shopper's basket. This endpoint doesn't merge Personally Identifiable Information (PII). You must obtain the shopper authorization token via SLAS, and it must contain both the previous and current shopper IDs. After the merge, all basket amounts are recalculated and totaled, including lookups for prices, taxes, shipping, and promotions. | | updatePaymentInstrumentInBasket | Success, the response body contains the basket with the updated payment instrument. |

Shopper Login

  • New endpoints

| Endpoint Name | Description | | ------------- |-------------| | retrieveCredQualityUserInfo | Retrieve credential quality statistics for a user. | | getTrustedSystemAccessToken | Get a shopper JWT/access token for registered customers whose credentials are stored using a third party system.</br></br>Mandatory fields for <b>Trusted On Behalf Of</b> to get an access token are grant_type, hint, login_id, login_origin, and channel_id.</br></br>Valid grant type for <b>Trusted On Behalf Of</b> is <i>client_credentials.</i></br></br>For<b>Trusted System External On Behalf Of</b> a basic auth authorization header of SLAS client id and SLAS client secret should be used in place of the bearer Token.</br></br>For <b>Trusted System Internal On Behalf Of </b>the authorization header bearer token should be a C2C JWT.</br> |

SLAS Admin

  • New endpoints

| Endpoint Name | Description | | ------------- |-------------| | retrieveCredQuailtyStats | Retrieve credential quality statistics for a user. | | retrieveCredQuailtyUserStats | Retrieve credential quality statistics for a tenant. |

monkey-jeff
published 2.5.2 •

Changelog

Source

v2.5.2

  • Added support for boolean query parameters.
monkey-jeff
published 2.5.1 •

Changelog

Source

v2.5.1

API Changes
  • The Discovery API has added a new optional parameter FacetRequest to the QueryInput type
  • The getTrustedSystemAccessToken endpoint has been removed from the Shopper Login API. It was introduced prematurely in v2.4.0 and will be reintroduced in a future release.
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