commerce-sdk-isomorphic 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,22 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.5.1
4
+
5
+ #### Documentation
6
+
7
+ * Replaced links to the [Commerce Cloud Developer Center](https://developer.commercecloud.com/s/salesforce-developer-center) with links to the new [Salesforce Developer Portal](https://developer.salesforce.com/docs/commerce/commerce-api).
8
+
9
+ #### Bug Fixes
10
+
11
+ * SLAS Login Helper no longer requests `redirect_uri` when running server-side
12
+
3
13
  ## v1.5.0
4
14
 
5
15
  #### New Features
6
16
 
7
17
  * SLAS helper functions have been added.
18
+ * New client configuration setting `throwOnBadResponse`. When set to true, responses other than `2xx` and `304` will throw an error.
19
+
8
20
  #### New APIs
9
21
 
10
22
  * *Shopper Context* has been added to the SDK.
@@ -20,6 +32,10 @@
20
32
  | 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. |
21
33
  | getPasswordLessAccessToken | Evaluate the `pwdless_token` and issue the shopper token (JWT). |
22
34
 
35
+ #### Bug Fixes
36
+
37
+ * Added support for `application/x-www-form-urlencoded` request bodies.
38
+ - SLAS endpoints now work out of the box
23
39
  ## v1.4.0
24
40
 
25
41
  #### New Features
package/README.md CHANGED
@@ -31,7 +31,7 @@ npm install commerce-sdk-isomorphic
31
31
  /**
32
32
  * Configure required parameters
33
33
  *
34
- * To learn more about the parameters please refer to https://developer.commercecloud.com/s/article/CommerceAPI-Get-Started
34
+ * To learn more about the parameters please refer to https://developer.salesforce.com/docs/commerce/commerce-api/guide/get-started.html
35
35
  */
36
36
  import {helpers, ShopperLogin, ShopperSearch} from 'commerce-sdk-isomorphic';
37
37
 
@@ -108,7 +108,7 @@ _throwOnBadResponse:_ Default value is false. When set to true, the SDK throws a
108
108
 
109
109
  A collection of helper functions are available in this SDK to simplify [Public
110
110
  Client Shopper Login OAuth
111
- flows](https://developer.commercecloud.com/s/api-details/a003k00000VWfNDAA1/commerce-cloud-developer-centershopperloginandapiaccessservice#public-client-use-cases). See sample code above for guest login.
111
+ flows](https://developer.salesforce.com/docs/commerce/commerce-api/references#shopper-login-and-api-access:Summary). See sample code above for guest login.
112
112
 
113
113
  ## License Information
114
114
 
@@ -203,7 +203,7 @@ type ShopperLoginQueryParameters = {
203
203
  */
204
204
  type ShopperLoginParameters = ShopperLoginPathParameters & BaseUriParameters & ShopperLoginQueryParameters;
205
205
  /**
206
- * [Shopper Login and API Access Service](https://developer.commercecloud.com/s/api-details/a003k00000VWfNDAA1)
206
+ * [Shopper Login and API Access Service](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-login:Summary)
207
207
  * ==================================
208
208
  *
209
209
  * *Enable shoppers to log in more easily, stay logged in for longer, and get a more fluid and personalized shopping experience powered by Shopper APIs.*<br />
@@ -1369,7 +1369,7 @@ type ShopperBasketsQueryParameters = {
1369
1369
  */
1370
1370
  type ShopperBasketsParameters = ShopperBasketsPathParameters & BaseUriParameters & ShopperBasketsQueryParameters;
1371
1371
  /**
1372
- * [Shopper Baskets](https://developer.commercecloud.com/s/api-details/a003k00000UHvpEAAT)
1372
+ * [Shopper Baskets](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-baskets:Summary)
1373
1373
  * ==================================
1374
1374
  *
1375
1375
  * *Build a checkout experience.*<br />
@@ -3740,7 +3740,7 @@ type ShopperContextsQueryParameters = {};
3740
3740
  */
3741
3741
  type ShopperContextsParameters = ShopperContextsPathParameters & BaseUriParameters & ShopperContextsQueryParameters;
3742
3742
  /**
3743
- * [Shopper Context (Beta)](https://developer.commercecloud.com/s/api-details/a003k00000ZuXdRAAV)
3743
+ * [Shopper Context (Beta)](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-context:Summary)
3744
3744
  * ==================================
3745
3745
  *
3746
3746
  * *The Shopper Context API enables developers to build highly contextualized shopping experiences for shoppers.*<br />
@@ -4704,7 +4704,7 @@ type ShopperCustomersQueryParameters = {
4704
4704
  */
4705
4705
  type ShopperCustomersParameters = ShopperCustomersPathParameters & BaseUriParameters & ShopperCustomersQueryParameters;
4706
4706
  /**
4707
- * [Shopper Customers](https://developer.commercecloud.com/s/api-details/a003k00000UHvpJAAT)
4707
+ * [Shopper Customers](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-customers:Summary)
4708
4708
  * ==================================
4709
4709
  *
4710
4710
  * *Allow customers to manage their own profiles and product lists.*<br />
@@ -6749,7 +6749,7 @@ type ShopperDiscoverySearchQueryParameters = {
6749
6749
  */
6750
6750
  type ShopperDiscoverySearchParameters = ShopperDiscoverySearchPathParameters & BaseUriParameters & ShopperDiscoverySearchQueryParameters;
6751
6751
  /**
6752
- * [Shopper Discovery Search](https://developer.commercecloud.com/s/api-details/a003k00000W0WlBAAV)
6752
+ * [Shopper Discovery Search](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-discovery-search:Summary)
6753
6753
  * ==================================
6754
6754
  *
6755
6755
  * *Einstein-powered product search and search suggestions.*<br />
@@ -6952,7 +6952,7 @@ type ShopperGiftCertificatesQueryParameters = {
6952
6952
  */
6953
6953
  type ShopperGiftCertificatesParameters = ShopperGiftCertificatesPathParameters & BaseUriParameters & ShopperGiftCertificatesQueryParameters;
6954
6954
  /**
6955
- * [Shopper Gift Certificates](https://developer.commercecloud.com/s/api-details/a003k00000UHvogAAD)
6955
+ * [Shopper Gift Certificates](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-gift-certificates:Summary)
6956
6956
  * ==================================
6957
6957
  *
6958
6958
  * *Obtain details about a gift certificate.*<br />
@@ -7328,7 +7328,7 @@ type ShopperOrdersQueryParameters = {
7328
7328
  */
7329
7329
  type ShopperOrdersParameters = ShopperOrdersPathParameters & BaseUriParameters & ShopperOrdersQueryParameters;
7330
7330
  /**
7331
- * [Shopper Orders](https://developer.commercecloud.com/s/api-details/a003k00000UHvpFAAT)
7331
+ * [Shopper Orders](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-orders:Summary)
7332
7332
  * ==================================
7333
7333
  *
7334
7334
  * *Finish the shopper checkout experience resulting in an order.*<br />
@@ -8034,7 +8034,7 @@ type ShopperProductsQueryParameters = {
8034
8034
  */
8035
8035
  type ShopperProductsParameters = ShopperProductsPathParameters & BaseUriParameters & ShopperProductsQueryParameters;
8036
8036
  /**
8037
- * [Shopper Products](https://developer.commercecloud.com/s/api-details/a003k00000UHvp0AAD)
8037
+ * [Shopper Products](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-products:Summary)
8038
8038
  * ==================================
8039
8039
  *
8040
8040
  * *Display product details across your storefront.*<br />
@@ -8373,7 +8373,7 @@ type ShopperPromotionsQueryParameters = {
8373
8373
  */
8374
8374
  type ShopperPromotionsParameters = ShopperPromotionsPathParameters & BaseUriParameters & ShopperPromotionsQueryParameters;
8375
8375
  /**
8376
- * [Shopper Promotions](https://developer.commercecloud.com/s/api-details/a003k00000UHvp5AAD)
8376
+ * [Shopper Promotions](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-promotions:Summary)
8377
8377
  * ==================================
8378
8378
  *
8379
8379
  * *View details for active promotions.*<br />
@@ -8708,7 +8708,7 @@ type ShopperSearchQueryParameters = {
8708
8708
  */
8709
8709
  type ShopperSearchParameters = ShopperSearchPathParameters & BaseUriParameters & ShopperSearchQueryParameters;
8710
8710
  /**
8711
- * [Shopper Search](https://developer.commercecloud.com/s/api-details/a003k00000UHwuFAAT)
8711
+ * [Shopper Search](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-search:Summary)
8712
8712
  * ==================================
8713
8713
  *
8714
8714
  * *product search and helpful search suggestions.*<br />
@@ -9380,7 +9380,7 @@ declare namespace helpers {
9380
9380
  */
9381
9381
  type ShopperLoginParameters = ShopperLoginPathParameters & BaseUriParameters & ShopperLoginQueryParameters;
9382
9382
  /**
9383
- * [Shopper Login and API Access Service](https://developer.commercecloud.com/s/api-details/a003k00000VWfNDAA1)
9383
+ * [Shopper Login and API Access Service](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-login:Summary)
9384
9384
  * ==================================
9385
9385
  *
9386
9386
  * *Enable shoppers to log in more easily, stay logged in for longer, and get a more fluid and personalized shopping experience powered by Shopper APIs.*<br />
@@ -10096,7 +10096,7 @@ declare namespace helpers {
10096
10096
  usid: string;
10097
10097
  }>;
10098
10098
  /**
10099
- * A single function to execute the ShopperLogin Public Client Guest Login with proof key for code exchange flow as described in the [API documentation](https://developer.salesforce.com/docs/commerce/commerce-api/references#shopper-login-and-api-access:Summary).
10099
+ * A single function to execute the ShopperLogin Public Client Guest Login with proof key for code exchange flow as described in the [API documentation](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-login-and-api-access:Summary).
10100
10100
  * @param slasClient a configured instance of the ShopperLogin SDK client.
10101
10101
  * @param parameters - parameters to pass in the API calls.
10102
10102
  * @param parameters.redirectURI - Per OAuth standard, a valid app route. Must be listed in your SLAS configuration. On server, this will not be actually called. On browser, this will be called, but ignored.
@@ -10112,7 +10112,7 @@ declare namespace helpers {
10112
10112
  usid?: string;
10113
10113
  }): Promise<TokenResponse>;
10114
10114
  /**
10115
- * A single function to execute the ShopperLogin Public Client Registered User B2C Login with proof key for code exchange flow as described in the [API documentation](https://developer.salesforce.com/docs/commerce/commerce-api/references#shopper-login-and-api-access:Summary).
10115
+ * A single function to execute the ShopperLogin Public Client Registered User B2C Login with proof key for code exchange flow as described in the [API documentation](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-login-and-api-access:Summary).
10116
10116
  * @param slasClient a configured instance of the ShopperLogin SDK client.
10117
10117
  * @param credentials - the id and password to login with.
10118
10118
  * @param credentials.username - the id of the user to login with.