@nuskin/ns-product-lib 2.11.0-cx24-5092.16 → 2.11.0-cx24-5092.17

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # [2.11.0-cx24-5092.17](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.16...v2.11.0-cx24-5092.17) (2023-09-14)
2
+
3
+
4
+ ### New
5
+
6
+ * Moving from AEM to CS for EQ markets ([a55c20f](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/a55c20fbd26268215a6d79bc43b818704730c1b3))
7
+ * Moving from AEM to CS for EQ markets ([b58bab6](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/b58bab6b7ef78e0444a3f918afc844772de832f8))
8
+
1
9
  # [2.11.0-cx24-5092.16](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.15...v2.11.0-cx24-5092.16) (2023-09-14)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.11.0-cx24-5092.16",
3
+ "version": "2.11.0-cx24-5092.17",
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": {
@@ -28,7 +28,7 @@ const ProductData = {
28
28
 
29
29
  const config = (await getConfiguration(['Equinox_Markets'])).Equinox_Markets;
30
30
  if (config.active) {
31
- graphQLResponse = await ProductGraphQL.getProductFromGraphQL(skus[0], market, locale, config)
31
+ graphQLResponse = await ProductGraphQL.getProductFromGraphQL(skus[0], market, locale)
32
32
  console.log(graphQLResponse)
33
33
  return graphQLResponse;
34
34
  }
@@ -27,7 +27,7 @@ const ProductGraphQL = {
27
27
  return "https://www.nuskin.com/product-api/graphql";
28
28
  }
29
29
  },
30
- getProductFromGraphQL: async function (id, market, locale, config) {
30
+ getProductFromGraphQL: async function (id, market, locale) {
31
31
 
32
32
 
33
33
  const url = this.getProductGraphqlUrl();
@@ -44,10 +44,7 @@ const ProductGraphQL = {
44
44
  data: payload,
45
45
  responseType: 'json'
46
46
  });
47
- const productId = response.data.data.productById.id
48
- const sku = response.data.data.productById.variants[0].sku
49
- const promotionResponse = await this.getProductPromotions(sku, productId, config, locale)
50
- console.log(JSON.stringify(promotionResponse))
47
+
51
48
  return {
52
49
  data: {
53
50
  "status": 200,