@graphcommerce/algolia-products 10.0.0-canary.61 → 10.0.0-canary.63

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,5 +1,13 @@
1
1
  # @graphcommerce/algolia-products
2
2
 
3
+ ## 10.0.0-canary.63
4
+
5
+ ### Major Changes
6
+
7
+ - [#2550](https://github.com/graphcommerce-org/graphcommerce/pull/2550) [`5d94c13`](https://github.com/graphcommerce-org/graphcommerce/commit/5d94c13c313546f00ee96c7b3db46e29bbe5185d) - Fix stock status mapping: use in_stock instead of is_stock in Algolia hit to Magento product conversion ([@davido-priority](https://github.com/davido-priority))
8
+
9
+ ## 10.0.0-canary.62
10
+
3
11
  ## 10.0.0-canary.61
4
12
 
5
13
  ## 10.0.0-canary.60
@@ -158,7 +158,7 @@ export function algoliaHitToMagentoProduct(
158
158
  sku,
159
159
  created_at,
160
160
  image_url,
161
- is_stock,
161
+ in_stock,
162
162
  price,
163
163
  thumbnail_url,
164
164
  type_id,
@@ -187,7 +187,7 @@ export function algoliaHitToMagentoProduct(
187
187
  sku: Array.isArray(sku) ? sku[0] : `${sku}`,
188
188
  price_range: mapPriceRange(price, storeConfig, customerGroup, currency),
189
189
  created_at: created_at ? new Date(created_at).toISOString() : null,
190
- stock_status: is_stock ? 'IN_STOCK' : 'OUT_OF_STOCK',
190
+ stock_status: in_stock ? 'IN_STOCK' : 'OUT_OF_STOCK',
191
191
  review_count: 0,
192
192
  rating_summary: Number(rating_summary),
193
193
  reviews: { items: [], page_info: {} },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/algolia-products",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "10.0.0-canary.61",
5
+ "version": "10.0.0-canary.63",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -15,14 +15,14 @@
15
15
  "generate": "tsx scripts/generate-spec.mts"
16
16
  },
17
17
  "peerDependencies": {
18
- "@graphcommerce/google-datalayer": "^10.0.0-canary.61",
19
- "@graphcommerce/graphql": "^10.0.0-canary.61",
20
- "@graphcommerce/graphql-mesh": "^10.0.0-canary.61",
21
- "@graphcommerce/magento-customer": "^10.0.0-canary.61",
22
- "@graphcommerce/magento-product": "^10.0.0-canary.61",
23
- "@graphcommerce/magento-search": "^10.0.0-canary.61",
24
- "@graphcommerce/next-config": "^10.0.0-canary.61",
25
- "@graphcommerce/next-ui": "^10.0.0-canary.61",
18
+ "@graphcommerce/google-datalayer": "^10.0.0-canary.63",
19
+ "@graphcommerce/graphql": "^10.0.0-canary.63",
20
+ "@graphcommerce/graphql-mesh": "^10.0.0-canary.63",
21
+ "@graphcommerce/magento-customer": "^10.0.0-canary.63",
22
+ "@graphcommerce/magento-product": "^10.0.0-canary.63",
23
+ "@graphcommerce/magento-search": "^10.0.0-canary.63",
24
+ "@graphcommerce/next-config": "^10.0.0-canary.63",
25
+ "@graphcommerce/next-ui": "^10.0.0-canary.63",
26
26
  "react": "^19.2.0"
27
27
  },
28
28
  "devDependencies": {
@@ -21,7 +21,7 @@ type AlgoliaProductHitAdditionalProperties {
21
21
  # categories
22
22
  # categories_without_path
23
23
  # categoryIds
24
- is_stock: Int
24
+ in_stock: Int
25
25
  ordered_qty: Int
26
26
  created_at: String
27
27
  url: String