@nuskin/ns-product-lib 2.5.0-cx24-2556.10.1 → 2.5.0-cx24-2179.2.19
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +18 -0
- package/package.json +1 -1
- package/src/index.js +3 -1
- package/src/productData.js +24 -23
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
# [2.5.0-cx24-2179.2.19](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.18...v2.5.0-cx24-2179.2.19) (2023-01-27)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* parent product customer types (#CX24-3175) ([411b2cc](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/411b2cc5a7cf687152dc346579766c8f923b795a)), closes [#CX24-3175](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3175)
|
7
|
+
|
8
|
+
### Update
|
9
|
+
|
10
|
+
* clean ups - expose customerTypes (#CX24-3175) ([3b7d9b1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/3b7d9b12a9cf815b11a8af61621ab9ebc76c37b5)), closes [#CX24-3175](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3175)
|
11
|
+
|
12
|
+
# [2.5.0-cx24-2179.2.18](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.17...v2.5.0-cx24-2179.2.18) (2023-01-26)
|
13
|
+
|
14
|
+
|
15
|
+
### Update
|
16
|
+
|
17
|
+
* dynamically select environment (CX24-2556) ([03af29f](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/03af29ffa8be3dca1b6df0b15094fe91bfd27d08))
|
18
|
+
|
1
19
|
# [2.5.0-cx24-2556.10.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.17...v2.5.0-cx24-2556.10.1) (2023-01-26)
|
2
20
|
|
3
21
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -14,6 +14,7 @@ const ProductStatus = require("./models/productStatus.js");
|
|
14
14
|
const ProductStatusMapper = require("./productStatusMapper.js");
|
15
15
|
const ProductUtils = require("./productUtils.js");
|
16
16
|
const ProductData = require("./productData.js");
|
17
|
+
const CustomerTypes = require('./models/customerTypes');
|
17
18
|
|
18
19
|
module.exports = {
|
19
20
|
Agelocme,
|
@@ -24,5 +25,6 @@ module.exports = {
|
|
24
25
|
ProductStatus,
|
25
26
|
ProductStatusMapper,
|
26
27
|
ProductUtils,
|
27
|
-
ProductData
|
28
|
+
ProductData,
|
29
|
+
CustomerTypes
|
28
30
|
};
|
package/src/productData.js
CHANGED
@@ -8,7 +8,7 @@ const CustomerTypes = require('./models/customerTypes');
|
|
8
8
|
const ProductStatus = require("./models/productStatus");
|
9
9
|
/** @type {*} */
|
10
10
|
const ProductData = {
|
11
|
-
/**
|
11
|
+
/**
|
12
12
|
* @param {string[]} skus
|
13
13
|
* @param {string} locale
|
14
14
|
* @param {string} market
|
@@ -153,18 +153,18 @@ const ProductData = {
|
|
153
153
|
<div class="sectionContent parsys">
|
154
154
|
<div class="text parbase section">\n
|
155
155
|
<p>
|
156
|
-
Green tea has been used in China for thousands of years for its health-preserving and
|
157
|
-
revitalizing power. Modern science has identified powerful antioxidants in green tea
|
158
|
-
called polyphenols. One group of polyphenols called catechins is particularly potent
|
159
|
-
and is highly effective at neutralizing free radicals at the cellular level. Catechins
|
160
|
-
support healthy cell function while providing antioxidant protection to critical cell
|
161
|
-
structures such as DNA. Clinical studies show catechins interfere with the production
|
162
|
-
of certain enzymes involved in cell damage. Additionally, catechins have been demonstrated
|
163
|
-
to cause a thermogenic effect that enhances the body s metabolic rate. Tegreen 97<sup>®</sup>
|
164
|
-
from Pharmanex is a proprietary, highly concentrated extract of the catechins found
|
165
|
-
in green tea. Tegreen 97<sup>®</sup> is one of the most potent antioxidant supplements
|
166
|
-
on the market with a 97 percent polyphenol content, 65% catechins. Each Tegreen 97<sup>®</sup>
|
167
|
-
capsule contains the catechin equivalent of approximately seven cups of green tea and is
|
156
|
+
Green tea has been used in China for thousands of years for its health-preserving and
|
157
|
+
revitalizing power. Modern science has identified powerful antioxidants in green tea
|
158
|
+
called polyphenols. One group of polyphenols called catechins is particularly potent
|
159
|
+
and is highly effective at neutralizing free radicals at the cellular level. Catechins
|
160
|
+
support healthy cell function while providing antioxidant protection to critical cell
|
161
|
+
structures such as DNA. Clinical studies show catechins interfere with the production
|
162
|
+
of certain enzymes involved in cell damage. Additionally, catechins have been demonstrated
|
163
|
+
to cause a thermogenic effect that enhances the body s metabolic rate. Tegreen 97<sup>®</sup>
|
164
|
+
from Pharmanex is a proprietary, highly concentrated extract of the catechins found
|
165
|
+
in green tea. Tegreen 97<sup>®</sup> is one of the most potent antioxidant supplements
|
166
|
+
on the market with a 97 percent polyphenol content, 65% catechins. Each Tegreen 97<sup>®</sup>
|
167
|
+
capsule contains the catechin equivalent of approximately seven cups of green tea and is
|
168
168
|
99.5 percent caffeine free.
|
169
169
|
</p>\r\n\n
|
170
170
|
</div>\n\n
|
@@ -177,7 +177,7 @@ const ProductData = {
|
|
177
177
|
<div>\n
|
178
178
|
<div class="sectionContent parsys">
|
179
179
|
<div class="text parbase section">\n
|
180
|
-
<p>As a dietary supplement, take one (1) to four (4) capsules daily; preferably one (1)
|
180
|
+
<p>As a dietary supplement, take one (1) to four (4) capsules daily; preferably one (1)
|
181
181
|
to two (2) each morning and evening with food. Store in a cool, dry place.</p>\r\n\n
|
182
182
|
</div>\n\n
|
183
183
|
</div>\n\n
|
@@ -205,7 +205,7 @@ const ProductData = {
|
|
205
205
|
<tr>\r\n<td width="55%" colspan="3">* Daily Value not established</td>\r\n</tr>\r\n
|
206
206
|
<tr>\r\n
|
207
207
|
<td width="55%" colspan="3">
|
208
|
-
<b>Other Ingredients: Gelatin, Silicon Dioxide,
|
208
|
+
<b>Other Ingredients: Gelatin, Silicon Dioxide,
|
209
209
|
Microcrystalline Cellulose, Magnesium Stearate.</b>
|
210
210
|
</td>\r\n</tr>\r\n
|
211
211
|
</tbody>\r\n
|
@@ -411,7 +411,7 @@ const ProductData = {
|
|
411
411
|
},
|
412
412
|
"orderTypes": this._setOrderType(data.sku[count].properties),
|
413
413
|
"childSkus": [],
|
414
|
-
"custTypes": this.switchCustType(data.properties.customerTypes),
|
414
|
+
"custTypes": this.switchCustType(data.sku[count].properties.customerTypes),
|
415
415
|
"division": data.properties.division,
|
416
416
|
"backOrderDate": null,
|
417
417
|
"locallyProduced": false,
|
@@ -462,6 +462,13 @@ const ProductData = {
|
|
462
462
|
};
|
463
463
|
},
|
464
464
|
|
465
|
+
/**
|
466
|
+
*
|
467
|
+
* Map status from equinox to legacy
|
468
|
+
*
|
469
|
+
* @param {*} status
|
470
|
+
* @returns {string} productStatus
|
471
|
+
*/
|
465
472
|
switchStatusFromEquinox: function (status) {
|
466
473
|
const { equinoxStatus } = ProductStatus;
|
467
474
|
let newStatus = '';
|
@@ -490,13 +497,7 @@ const ProductData = {
|
|
490
497
|
},
|
491
498
|
|
492
499
|
/**
|
493
|
-
*
|
494
|
-
* @param {*} custType
|
495
|
-
*
|
496
|
-
*/
|
497
|
-
|
498
|
-
/**
|
499
|
-
* map customer types from string to code
|
500
|
+
* map customer types from string to code<number>
|
500
501
|
* @param {*} eqCustomerTypes
|
501
502
|
* @returns
|
502
503
|
*/
|