@nuskin/ns-product-lib 2.11.0-cx24-5092.20 → 2.11.0-cx24-5092.22

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [2.11.0-cx24-5092.22](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.21...v2.11.0-cx24-5092.22) (2023-09-15)
2
+
3
+
4
+ ### New
5
+
6
+ * Moving from AEM to CS for EQ markets ([85f3d2d](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/85f3d2d724c80b9afefd5d4af6fc9fd4ab5abc32))
7
+
8
+ # [2.11.0-cx24-5092.21](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.20...v2.11.0-cx24-5092.21) (2023-09-14)
9
+
10
+
11
+ ### New
12
+
13
+ * Moving from AEM to CS for EQ markets ([ff40018](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/ff400181cdb045fcb904ce0c2aa22a03f5f1ab22))
14
+
1
15
  # [2.11.0-cx24-5092.20](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.19...v2.11.0-cx24-5092.20) (2023-09-14)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.11.0-cx24-5092.20",
3
+ "version": "2.11.0-cx24-5092.22",
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": {
@@ -46,7 +46,7 @@ const ProductGraphQL = {
46
46
  });
47
47
 
48
48
  let products = [];
49
- let mappedResponse = await this.mapResponseToProduct(response.productById, market, locale, config)
49
+ let mappedResponse = await this.mapResponseToProduct(response.data.data.productById, market, locale, config)
50
50
  products.push(mappedResponse)
51
51
 
52
52
 
@@ -108,10 +108,10 @@ const ProductGraphQL = {
108
108
  "language": locale,
109
109
  "shortDescr": response.variants[0].description,
110
110
  "longDescr": response.variants[0].productDetails.description,
111
- "fullImage": response.productImages[0].url,
112
- "imageAltText": response.productImages[0].alt,
111
+ "fullImage": response.variants[0].productImages[0].url,
112
+ "imageAltText": response.variants[0].productImages[0].alt,
113
113
 
114
- "thumbnail": response.productImages[0].thumbnail,
114
+ "thumbnail": response.variants[0].productImages[0].thumbnail,
115
115
  "ingredients": response.variants[0].ingredients,
116
116
  "benefits": response.variants[0].benefits,
117
117
  "usage": response.variants[0].usage,
@@ -151,9 +151,10 @@ const ProductGraphQL = {
151
151
  "size": response.variants[0].size,
152
152
  "status": this.switchStatusFromEquinox(response.variants[0].status.status),
153
153
  "variantType": "Other",
154
- "variantDropdownLabel": response.variantSelectLabel || response.variants[0].title,
154
+ "variantDropdownLabel": response.variantSelectLabel || '',
155
155
  "variantDropdownPlaceholder": "Select Type",
156
- "variantsLabel": response.variantSelectLabel || response.variants[0].title,
156
+ "variantsLabel": response.variants[0].variantLabel || '',
157
+ "variants": [],
157
158
  "groupOffer": false,
158
159
  "personalOffer": false,
159
160
  "savedEventName": '',