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

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,24 @@
1
+ # [1.5.0-cx24-1810.16](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.5.0-cx24-1810.15...v1.5.0-cx24-1810.16) (2022-08-04)
2
+
3
+
4
+ ### New
5
+
6
+ * Get Product Data from Equinox (#CX24-1810) ([70fa10c](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/70fa10c66f7409adcc6ee92421904f1fd9cdc88e)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
7
+
8
+ # [1.5.0-cx24-1810.15](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.5.0-cx24-1810.14...v1.5.0-cx24-1810.15) (2022-08-04)
9
+
10
+
11
+ ### New
12
+
13
+ * Get Product Data from Equinox (#CX24-1810) ([a0979fe](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/a0979feb655a99991a3bc08c3e9251c1638bd072)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
14
+
15
+ # [1.5.0-cx24-1810.14](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.5.0-cx24-1810.13...v1.5.0-cx24-1810.14) (2022-08-01)
16
+
17
+
18
+ ### New
19
+
20
+ * Get Product Data from Equinox (#CX24-1810) ([dfbed74](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/dfbed7474b59aaf7f2b644fd32d7b9650f521487)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
21
+
1
22
  # [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
23
 
3
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "1.5.0-cx24-1810.13",
3
+ "version": "1.5.0-cx24-1810.16",
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": {
@@ -5,7 +5,7 @@ const ProductData = {
5
5
  getProductData: async function (skus, runConfig, marketConfig, isEqEnabled) {
6
6
  let productResponse = {};
7
7
  let locale = `${runConfig.language}_${runConfig.country}`;
8
- if (isEqEnabled) {
8
+ if (isEqEnabled == true) {
9
9
  let filter = '{"filters":[{"field":"index_key_skuId","operation":"IN","value":"' +
10
10
  skus.toString() +
11
11
  '"}]}'
@@ -44,8 +44,10 @@ const ProductData = {
44
44
  }, */
45
45
 
46
46
  eqProductMapper: function (productDataResponse) {
47
- let prodArr = []
47
+ let prodArr = [];
48
+ let count = 0;
48
49
  productDataResponse.forEach((data, index) => {
50
+ count++
49
51
  prodArr[index] = {
50
52
  "sku": data.sku[0].identifier,
51
53
  "globalProductID": data.identifier,
@@ -141,7 +143,8 @@ const ProductData = {
141
143
  "eventName": null,
142
144
  "sizeWeight": "120 capsules",
143
145
  "nettoWeight": "",
144
- "variants": {},
146
+ "variants": {
147
+ },
145
148
  "searchScore": 0,
146
149
  "isExclusive": false,
147
150
  "marketAttributes": {
@@ -155,12 +158,15 @@ const ProductData = {
155
158
  });
156
159
 
157
160
  let data = {
158
- products: prodArr
161
+ products: prodArr,
162
+ count: count
159
163
  };
160
164
  return {
161
- "status": 200,
162
- "messages": [],
163
- "data": data
165
+ data: {
166
+ "status": 200,
167
+ "messages": [],
168
+ "data": data
169
+ }
164
170
  }
165
171
 
166
172
  },