@nuskin/ns-product-lib 1.5.0-cx24-1810.10 → 1.5.0-cx24-1810.13

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,29 @@
1
+ # [1.5.0-cx24-1810.13](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.5.0-cx24-1810.12...v1.5.0-cx24-1810.13) (2022-08-01)
2
+
3
+
4
+ ### New
5
+
6
+ * Get Product Data from Equinox (#CX24-1810) ([0458758](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/04587584f3236282c505fc736f4e05be3357ff84)), 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) ([2d3373a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2d3373a1eb3757b92b05c455e7456611a6b57c8e)), 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) ([260b1f8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/260b1f8f1cb38065767f08772617b621ccf40c0f)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
9
+
10
+ # [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)
11
+
12
+
13
+ ### New
14
+
15
+ * 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)
16
+ * 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)
17
+ * 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)
18
+
19
+ # [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)
20
+
21
+
22
+ ### New
23
+
24
+ * Get Product Data from Equinox (#CX24-1810) ([5fb16af](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/5fb16af25c8e903804f56955b249b62750d2b176)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
25
+ * Get Product Data from Equinox (#CX24-1810) ([fc28352](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/fc283527c23dbf4d1b8861646a0617ecdac258c7)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
26
+
1
27
  # [1.5.0-cx24-1810.10](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.5.0-cx24-1810.9...v1.5.0-cx24-1810.10) (2022-07-27)
2
28
 
3
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "1.5.0-cx24-1810.10",
3
+ "version": "1.5.0-cx24-1810.13",
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,17 +9,18 @@ const ProductData = {
9
9
  let filter = '{"filters":[{"field":"index_key_skuId","operation":"IN","value":"' +
10
10
  skus.toString() +
11
11
  '"}]}'
12
+ axios.defaults.withCredentials = true
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
18
20
  }
19
21
  });
20
22
  productResponse = this.eqProductMapper(productDataResponse.data.product)
21
23
 
22
-
23
24
  } else {
24
25
  let lambdaUrl = `${marketConfig.awsUrl}/productData/v1`;
25
26
  const payload = {
@@ -62,7 +63,7 @@ const ProductData = {
62
63
  "alt": ""
63
64
  }
64
65
  ],
65
- "thumbnail": "/content/products/24/00/35/24003529/jcr:content/fullImage.img.160.160.png/1598425309548-cache.png",
66
+ "thumbnail": "/content/products/24/11/08/24110845/jcr:content/fullImage.img.160.160.png/1490766406581-cache.png",
66
67
  "ingredients": "",
67
68
  "benefits": "",
68
69
  "usage": "",
@@ -80,18 +81,18 @@ const ProductData = {
80
81
  "availableQuantity": 999,
81
82
  "maxQuantity": 999,
82
83
  "points": "",
83
- "cv": 99,
84
- "pv": 99,
84
+ "cv": 99.1,
85
+ "pv": 99.01,
85
86
  "priceType": "WRTL",
86
- "price": 9999,
87
+ "price": 9999.11,
87
88
  "priceMap": {
88
- "WRTL": 9999,
89
- "WADW-WRTL": 9999,
90
- "WADR": 9999,
91
- "RTL": 9999,
92
- "WWHL": 9998,
93
- "WADW": 9998,
94
- "WHL": 9998
89
+ "WRTL": 9999.11,
90
+ "WADW-WRTL": 9999.11,
91
+ "WADR": 9999.01,
92
+ "RTL": 9999.11,
93
+ "WWHL": 9998.01,
94
+ "WADW": 9998.01,
95
+ "WHL": 9998.01
95
96
  },
96
97
  "cvMap": {
97
98
  "WWHL": 8888,
@@ -152,11 +153,9 @@ const ProductData = {
152
153
  "addOns": []
153
154
  };
154
155
  });
155
- let products = [];
156
156
 
157
- products.push(prodArr);
158
157
  let data = {
159
- products: products
158
+ products: prodArr
160
159
  };
161
160
  return {
162
161
  "status": 200,