@nuskin/ns-product-lib 2.5.0-cx24-2931.1.12 → 2.5.0-cx24-2179.2.9
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +27 -65
- package/package.json +1 -1
- package/src/product.js +4 -0
- package/src/productData.js +4 -3
package/CHANGELOG.md
CHANGED
@@ -1,105 +1,67 @@
|
|
1
|
-
# [2.5.0-cx24-
|
1
|
+
# [2.5.0-cx24-2179.2.9](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.8...v2.5.0-cx24-2179.2.9) (2022-12-20)
|
2
2
|
|
3
3
|
|
4
|
-
###
|
5
|
-
|
6
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([407402f](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/407402fbcfb3a782dec95b5ff1038c1fb3fe31ca))
|
7
|
-
|
8
|
-
# [2.5.0-cx24-2931.1.11](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.10...v2.5.0-cx24-2931.1.11) (2022-12-14)
|
9
|
-
|
10
|
-
|
11
|
-
### Update
|
12
|
-
|
13
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([fc2010c](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/fc2010cdf7dfb7ecd53940d64e94f43c045135c5))
|
14
|
-
|
15
|
-
# [2.5.0-cx24-2931.1.10](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.9...v2.5.0-cx24-2931.1.10) (2022-12-14)
|
16
|
-
|
17
|
-
|
18
|
-
### Update
|
19
|
-
|
20
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([73cd345](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/73cd3459f0d3a4486a6b7798bdb1dab0231e7c5a))
|
21
|
-
|
22
|
-
# [2.5.0-cx24-2931.1.9](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.8...v2.5.0-cx24-2931.1.9) (2022-12-14)
|
23
|
-
|
24
|
-
|
25
|
-
### Update
|
26
|
-
|
27
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([24096f4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/24096f46bc77881ca7273b10d9fbef85757d2d92))
|
28
|
-
|
29
|
-
# [2.5.0-cx24-2931.1.8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.7...v2.5.0-cx24-2931.1.8) (2022-12-14)
|
30
|
-
|
31
|
-
|
32
|
-
### Update
|
4
|
+
### Fix
|
33
5
|
|
34
|
-
*
|
6
|
+
* 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)
|
7
|
+
* Slow response of add-to-cart button function for Equinox Cart ([14394b2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/14394b299afbd53254a3ec053ad41e68ed526dfe))
|
8
|
+
* Unit Tests ([ace52c6](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/ace52c6418991d0263a1e1f8d99901e724abf923))
|
35
9
|
|
36
|
-
|
10
|
+
### Release
|
37
11
|
|
12
|
+
* Automated changes by GitLab pipeline [skip ci] ([eb755fa](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/eb755fae1e1f1f221a34d92f5ff4e64787a4132d))
|
13
|
+
* Automated changes by GitLab pipeline [skip ci] ([6a75f7a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/6a75f7a5f8b2f3b17e4d7387af37cad4f367b45c))
|
38
14
|
|
39
15
|
### Update
|
40
16
|
|
41
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([
|
42
|
-
|
43
|
-
# [2.5.0-cx24-2931.1.6](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.5...v2.5.0-cx24-2931.1.6) (2022-12-14)
|
44
|
-
|
17
|
+
* use configuration-sdk to pull the configurations (CX24-2931) ([6934570](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/69345701e6b44754ffeb648ead56f0288aadeb16))
|
45
18
|
|
46
|
-
|
19
|
+
# [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)
|
47
20
|
|
48
|
-
*
|
21
|
+
* 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)
|
49
22
|
|
50
|
-
# [2.5.0-cx24-
|
23
|
+
# [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)
|
51
24
|
|
52
25
|
|
53
26
|
### New
|
54
27
|
|
55
|
-
*
|
56
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([34b6954](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/34b6954dcd751a390ee2395fe1a3ca42481affc8))
|
57
|
-
|
58
|
-
### Update
|
59
|
-
|
60
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([6cf3a1d](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/6cf3a1d38cc0af3affade68d441a30a4b9dc7789))
|
61
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([11655c4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/11655c46484aa6e6e359522c707c64f496755976))
|
28
|
+
* 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)
|
62
29
|
|
63
|
-
# [2.5.0-cx24-
|
30
|
+
# [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)
|
64
31
|
|
65
32
|
|
66
|
-
###
|
33
|
+
### New
|
67
34
|
|
68
|
-
*
|
35
|
+
* 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)
|
69
36
|
|
70
|
-
# [2.5.0-cx24-
|
37
|
+
# [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)
|
71
38
|
|
72
39
|
|
73
|
-
###
|
40
|
+
### New
|
74
41
|
|
75
|
-
*
|
42
|
+
* 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)
|
76
43
|
|
77
|
-
# [2.5.0-cx24-
|
44
|
+
# [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)
|
78
45
|
|
79
46
|
|
80
|
-
###
|
47
|
+
### New
|
81
48
|
|
82
|
-
*
|
83
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([65c81f5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/65c81f5486712690f9cda8faf4e2264238009e82))
|
49
|
+
* 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)
|
84
50
|
|
85
|
-
# [2.5.0-cx24-
|
51
|
+
# [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)
|
86
52
|
|
87
53
|
|
88
|
-
###
|
54
|
+
### New
|
89
55
|
|
90
|
-
*
|
91
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([4a1949a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/4a1949a20213478994ff51e4b035f52271b7a840))
|
92
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([9a0c9cb](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/9a0c9cb75a39cd1b77bd6272ac573d4f9b628975))
|
93
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([622c608](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/622c60867b07f0fccd316423cba1500a8470e9e2))
|
94
|
-
* use configuration-sdk to pull the configurations (CX24-2931) ([c276e62](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/c276e6223953cf72b791887274a5f11d218696e0))
|
56
|
+
* 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)
|
95
57
|
|
96
|
-
# [2.5.0-
|
58
|
+
# [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)
|
59
|
+
>>>>>>> CX24.2
|
97
60
|
|
98
61
|
|
99
62
|
### Fix
|
100
63
|
|
101
64
|
* [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))
|
102
|
-
* 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)
|
103
65
|
|
104
66
|
### Release
|
105
67
|
|
package/package.json
CHANGED
package/src/product.js
CHANGED
@@ -75,6 +75,7 @@ const Product = function(productData) {
|
|
75
75
|
//equinox inventory / stock label
|
76
76
|
//@example "IN STOCK"
|
77
77
|
this.inventory = "";
|
78
|
+
this.equinoxProductId = "";
|
78
79
|
|
79
80
|
this.setMarketAttributes = function(productStatus) {
|
80
81
|
if (productStatus.marketAttributes) {
|
@@ -532,6 +533,7 @@ const Product = function(productData) {
|
|
532
533
|
retData.restrictedMarkets = this.restrictedMarkets;
|
533
534
|
retData.addOns = this.addOns;
|
534
535
|
retData.inventory = this.inventory;
|
536
|
+
retData.equinoxProductId = this.equinoxProductId;
|
535
537
|
|
536
538
|
return retData;
|
537
539
|
};
|
@@ -671,6 +673,8 @@ const Product = function(productData) {
|
|
671
673
|
if (data.agelocme) {
|
672
674
|
this.agelocme = new Agelocme(data.agelocme);
|
673
675
|
}
|
676
|
+
|
677
|
+
this.equinoxProductId = data.equinoxProductId;
|
674
678
|
}
|
675
679
|
};
|
676
680
|
|
package/src/productData.js
CHANGED
@@ -202,7 +202,8 @@ const ProductData = {
|
|
202
202
|
"earn": true
|
203
203
|
},
|
204
204
|
"restrictedMarkets": [],
|
205
|
-
"addOns": []
|
205
|
+
"addOns": [],
|
206
|
+
"equinoxProductId": eqVariant.identifier
|
206
207
|
};
|
207
208
|
},
|
208
209
|
|
@@ -360,8 +361,8 @@ const ProductData = {
|
|
360
361
|
},
|
361
362
|
"restrictedMarkets": [],
|
362
363
|
"addOns": [],
|
363
|
-
"inventory": data.sku[count].inventory || "" //inventory label
|
364
|
-
|
364
|
+
"inventory": data.sku[count].inventory || "", //inventory label
|
365
|
+
"equinoxProductId": data.identifier
|
365
366
|
};
|
366
367
|
let newProduct = new Product(prod);
|
367
368
|
return newProduct
|