@nuskin/ns-product-lib 2.11.0-cx24-5092.23 → 2.11.0-cx24-5092.24

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,10 @@
1
+ # [2.11.0-cx24-5092.24](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.23...v2.11.0-cx24-5092.24) (2023-09-15)
2
+
3
+
4
+ ### New
5
+
6
+ * Moving from AEM to CS for EQ markets ([aa54de4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/aa54de461ca03dbf2a67161b1ce352216425b6e8))
7
+
1
8
  # [2.11.0-cx24-5092.23](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.22...v2.11.0-cx24-5092.23) (2023-09-15)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.11.0-cx24-5092.23",
3
+ "version": "2.11.0-cx24-5092.24",
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": {
@@ -140,13 +140,13 @@ const ProductGraphQL = {
140
140
  "priceType": "WRTL",
141
141
  "price": 0,
142
142
  "priceMap": {
143
- "WRTL": response.variants[0].totalPrice.retail,
144
- "WADW-WRTL": response.variants[0].totalPrice.retailSubscription,
145
- "WADR": response.variants[0].totalPrice.retailSubscription, //retail ADR (subscription) price
146
- "RTL": response.variants[0].totalPrice.retail,
147
- "WWHL": response.variants[0].totalPrice.wholesale,
148
- "WADW": response.variants[0].totalPrice.wholesaleSubscription,//wholesale ADR (subscription price)
149
- "WHL": response.variants[0].totalPrice.wholesale
143
+ "WRTL": (response.variants[0].totalPrice) ? response.variants[0].totalPrice.retail : response.variants[0].price.retail,
144
+ "WADW-WRTL": (response.variants[0].totalPrice) ? response.variants[0].totalPrice.retailSubscription : response.variants[0].price.retail,
145
+ "WADR": (response.variants[0].totalPrice) ? response.variants[0].totalPrice.retailSubscription : response.variants[0].price.retailSubscription, //retail ADR (subscription) price
146
+ "RTL": (response.variants[0].totalPrice) ? response.variants[0].totalPrice.retail : response.variants[0].price.retail,
147
+ "WWHL": (response.variants[0].totalPrice) ? response.variants[0].totalPrice.wholesale : response.variants[0].price.wholesale,
148
+ "WADW": (response.variants[0].totalPrice) ? response.variants[0].totalPrice.wholesaleSubscription : response.variants[0].price.wholesaleSubscription,//wholesale ADR (subscription price)
149
+ "WHL": (response.variants[0].totalPrice) ? response.variants[0].totalPrice.wholesale : response.variants[0].price.wholesale
150
150
  },
151
151
  "cvMap": {
152
152
  "WWHL": response.variants[0].points.wholesale.cv,