@nuskin/ns-product-lib 2.5.0-cx24-2179.2.7 → 2.5.0-cx24-2685.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,55 +1,18 @@
1
- # [2.5.0-cx24-2179.2.7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.6...v2.5.0-cx24-2179.2.7) (2022-12-05)
1
+ # [2.5.0-cx24-2685.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-CX24.3.1...v2.5.0-cx24-2685.1) (2022-12-09)
2
2
 
3
3
 
4
4
  ### New
5
5
 
6
- * added eq promoion bypass for setPriceAndPvFromType v5 (#CX24-2179) ([f5b62e5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/f5b62e5e82f1830d4105ffc965b64e9a7fc88d9b)), closes [#CX24-2179](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2179)
6
+ * Added equinoxProductId for eqproductMapper and eqProductVariantMapper ([30a4905](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/30a4905d3a64cba3fe54a8f0759ceb0860560914))
7
+ * Added equinoxProductId for eqproductMapper and eqProductVariantMapper ([7bc7f8b](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/7bc7f8be0ff48127bb3f7db3d38a161877fb2e6f))
7
8
 
8
- # [2.5.0-cx24-2179.2.6](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.5...v2.5.0-cx24-2179.2.6) (2022-12-05)
9
-
10
-
11
- ### New
12
-
13
- * added eq promoion bypass for setPriceAndPvFromType v4 (#CX24-2179) ([abcdd30](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/abcdd30223107786c0c2f9d1a8946053ef6dcef5)), closes [#CX24-2179](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2179)
14
-
15
- # [2.5.0-cx24-2179.2.5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.4...v2.5.0-cx24-2179.2.5) (2022-12-05)
16
-
17
-
18
- ### New
19
-
20
- * added eq promoion bypass for setPriceAndPvFromType v3 (#CX24-2179) ([79fe156](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/79fe1562d0cafc44f8945e57c316c8ba0b55a88b)), closes [#CX24-2179](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2179)
21
-
22
- # [2.5.0-cx24-2179.2.4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.3...v2.5.0-cx24-2179.2.4) (2022-12-05)
23
-
24
-
25
- ### New
26
-
27
- * added eq promoion bypass for setPriceAndPvFromType v2 (#CX24-2179) ([25bde9a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/25bde9a8e19b1e4e44e37457dfb087e0a6212ee1)), closes [#CX24-2179](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2179)
28
-
29
- # [2.5.0-cx24-2179.2.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.2...v2.5.0-cx24-2179.2.3) (2022-12-05)
30
-
31
-
32
- ### New
33
-
34
- * added eq promoion bypass for setPriceAndPvFromType (#CX24-2179) ([716cefc](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/716cefc2a2522287e017709a8b2cfef5a7ce5e07)), closes [#CX24-2179](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2179)
35
-
36
- # [2.5.0-cx24-2179.2.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.1...v2.5.0-cx24-2179.2.2) (2022-12-05)
37
-
38
-
39
- ### New
40
-
41
- * added eq promotion support- debug sales event (#CX24-2179) ([992a2cf](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/992a2cfb178b3e12a6b8a0229ae5f6f607fb41d3)), closes [#CX24-2179](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2179)
42
-
43
- # [2.5.0-cx24-2179.2.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.4.2-CX24.2.1...v2.5.0-cx24-2179.2.1) (2022-12-02)
9
+ # [2.5.0-CX24.3.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.4.2-CX24.2.1...v2.5.0-CX24.3.1) (2022-12-06)
44
10
 
45
11
 
46
12
  ### Fix
47
13
 
48
14
  * [Equinox market] Admin > Move up/down/top/bottom of featured products and edit bundle is not working ([a89af4a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/a89af4a5d00c6a68fcaeff22f128554270add21e))
49
-
50
- ### New
51
-
52
- * added eq promotion support (#CX24-2179) ([bc7782d](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/bc7782dcc2b6db84bd4203ea64e60d80b55e4bcd)), closes [#CX24-2179](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2179)
15
+ * eq market event pricing and name (#CX24-2179) ([213b59a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/213b59a33a208ffad0a6726521ce7f365d34d36e)), closes [#CX24-2179](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-2179)
53
16
 
54
17
  ### Release
55
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.5.0-cx24-2179.2.7",
3
+ "version": "2.5.0-cx24-2685.1",
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": {
package/src/product.js CHANGED
@@ -232,7 +232,6 @@ const Product = function(productData) {
232
232
  // : (_priceType ? _priceType : this.priceType),
233
233
  const priceType = _priceType ? _priceType : this.priceType;
234
234
  const eventPricing = getEventPricing(this, priceType, _activeEvents);
235
- console.log({context: 'NsProductLib.setPriceAndPvFromType', eventPricing: eventPricing});
236
235
 
237
236
  let changed = false;
238
237
  if ((
@@ -198,7 +198,8 @@ const ProductData = {
198
198
  "earn": true
199
199
  },
200
200
  "restrictedMarkets": [],
201
- "addOns": []
201
+ "addOns": [],
202
+ "equinoxProductId": eqVariant.identifier
202
203
  };
203
204
  },
204
205
 
@@ -356,14 +357,13 @@ const ProductData = {
356
357
  },
357
358
  "restrictedMarkets": [],
358
359
  "addOns": [],
359
- "inventory": data.sku[count].inventory || "" //inventory label
360
-
360
+ "inventory": data.sku[count].inventory || "", //inventory label
361
+ "equinoxProductId": data.identifier
361
362
  };
362
363
  let newProduct = new Product(prod);
363
364
  return newProduct
364
365
  });
365
366
 
366
- console.log({context: "NsProductLib.eqProductMapper", product: prodArr});
367
367
  let data = {
368
368
  products: this._sortProductsBySku(skus, prodArr),
369
369
  count: productDataResponse.length