@nuskin/ns-product-lib 2.13.0-cx24-5107.10 → 2.13.0-cx24-5107.11

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.13.0-cx24-5107.11](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.10...v2.13.0-cx24-5107.11) (2023-10-10)
2
+
3
+
4
+ ### Fix
5
+
6
+ * backorder status ([392018e](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/392018eebe7bf106efc1adc2c42d6fb3773a6d91))
7
+
1
8
  # [2.13.0-cx24-5107.10](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.9...v2.13.0-cx24-5107.10) (2023-10-10)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.13.0-cx24-5107.10",
3
+ "version": "2.13.0-cx24-5107.11",
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": {
@@ -159,6 +159,7 @@ function mapProduct(product, market, locale, config) {
159
159
  "searchScore": 0,
160
160
  "isExclusive": defaultVariant.isExclusive || false,
161
161
  "equinoxProductId": product.id,
162
+ "inventory": defaultVariant.status.isBackordered ? 'BACKORDER' : 'IN STOCK',
162
163
  "properties": {
163
164
  ...defaultVariant
164
165
  }
@@ -264,6 +265,7 @@ function mapVariants(product) {
264
265
  "searchScore": 0,
265
266
  "isExclusive": variant.isExclusive || false,
266
267
  "equinoxProductId": product.id,
268
+ "inventory": variant.status.isBackordered ? 'BACKORDER' : 'IN STOCK',
267
269
  "properties": {
268
270
  ...product
269
271
  }