@nuskin/ns-product-lib 1.5.0-cx24-1810.11 → 1.5.0-cx24-1810.12

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,3 +1,12 @@
1
+ # [1.5.0-cx24-1810.12](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.5.0-cx24-1810.11...v1.5.0-cx24-1810.12) (2022-07-29)
2
+
3
+
4
+ ### New
5
+
6
+ * Get Product Data from Equinox (#CX24-1810) ([650d44a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/650d44a7419f4e28ac27cc15d6f713a5bcecfb72)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
7
+ * Get Product Data from Equinox (#CX24-1810) ([f5f9126](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/f5f91260746a05ccb6b0a4db06c5dafc2949a300)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
8
+ * Get Product Data from Equinox (#CX24-1810) ([cde96a3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/cde96a33031275b8582ae590d12e9004f89dd6e0)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
9
+
1
10
  # [1.5.0-cx24-1810.11](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.5.0-cx24-1810.10...v1.5.0-cx24-1810.11) (2022-07-28)
2
11
 
3
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "1.5.0-cx24-1810.11",
3
+ "version": "1.5.0-cx24-1810.12",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -9,16 +9,22 @@ const ProductData = {
9
9
  let filter = '{"filters":[{"field":"index_key_skuId","operation":"IN","value":"' +
10
10
  skus.toString() +
11
11
  '"}]}'
12
+ let cookie = 'x-sk-session-id=caf82f68da80f14310652fa2acc94c43'
12
13
  let productDataResponse = await axios.request({
13
14
  method: 'get',
14
15
  url: 'https://storefront.api.wts.nuskin.io/orchestrationservices/storefront/catalogs/search/',
15
16
  params: {
17
+ locale: locale,
16
18
  storeId: '406',
17
19
  filter: filter
20
+ },
21
+ headers: {
22
+ 'Cookie': cookie
18
23
  }
19
24
  });
20
25
  productResponse = this.eqProductMapper(productDataResponse.data.product)
21
-
26
+ console.log(productDataResponse.headers)
27
+ cookie = productDataResponse.headers.cookie
22
28
 
23
29
  } else {
24
30
  let lambdaUrl = `${marketConfig.awsUrl}/productData/v1`;