@nuskin/ns-product-lib 2.13.3-cx24-5694.6 → 2.14.1-cx24-5934.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.13.3-cx24-5694.6",
3
+ "version": "2.14.1-cx24-5934.1",
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": {
@@ -12,8 +12,7 @@ const {
12
12
  } = require('./mappers');
13
13
 
14
14
  const defaultPayload = {
15
- operationName: "getProduct",
16
- useContentSource: "CS"
15
+ operationName: "getProduct"
17
16
  };
18
17
 
19
18
  /**
@@ -92,8 +91,8 @@ function mapPrices(product, isKitBundle = false) {
92
91
  const originalWholeSalePrice = mapOriginalPrice(product, true, isKitBundle) || 0;
93
92
 
94
93
  //map subscription (ADR) prices
95
- const retailSubscriptionPrice = mapRetailSubscriptionPrice(product) || 0;
96
- const wholesaleSubscriptionPrice = mapWholesaleSubscriptionPrice(product) || 0;
94
+ const retailSubscriptionPrice = mapRetailSubscriptionPrice(product) || 0;
95
+ const wholesaleSubscriptionPrice = mapWholesaleSubscriptionPrice(product) || 0;
97
96
 
98
97
  return {
99
98
  originalPrice,
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  // eslint-disable-next-line max-len
4
- const getProductsByIdQuery = `query getProducts($id: String!, $market: String, $language: String, $useContentSource: String, $okta: String, quantity: Int) {
4
+ const getProductsByIdQuery = `query getProducts($id: String!, $market: String, $language: String, $okta: String, quantity: Int) {
5
5
  productsById(
6
6
  id: $id
7
7
  market: $market
8
8
  language: $language
9
- useContentSource: $useContentSource
10
9
  okta: $okta
11
10
  quantity: $quantity
12
11
  ) {