@graphcommerce/algolia-products 9.0.0-canary.103 → 9.0.0-canary.105

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,9 @@
1
1
  # @graphcommerce/algolia-products
2
2
 
3
+ ## 9.0.0-canary.105
4
+
5
+ ## 9.0.0-canary.104
6
+
3
7
  ## 9.0.0-canary.103
4
8
 
5
9
  ## 9.0.0-canary.100
@@ -158,6 +158,7 @@ export function algoliaHitToMagentoProduct(
158
158
  redirect_code: 0,
159
159
  __typename: algoliaTypeToTypename[type_id as keyof typeof algoliaTypeToTypename],
160
160
  uid: btoa(objectID),
161
+ id: Number(objectID),
161
162
  sku: Array.isArray(sku) ? sku[0] : `${sku}`,
162
163
  price_range: mapPriceRange(price, storeConfig, customerGroup),
163
164
  created_at: created_at ? new Date(created_at).toISOString() : null,
@@ -1,4 +1,4 @@
1
- import type { MeshContext, Maybe, StoreConfig } from '@graphcommerce/graphql-mesh'
1
+ import type { Maybe, MeshContext, StoreConfig } from '@graphcommerce/graphql-mesh'
2
2
 
3
3
  export type GetStoreConfigReturn =
4
4
  | Maybe<
@@ -1,11 +1,11 @@
1
1
  import type {
2
- ProductAttributeFilterInput,
3
2
  AlgolianumericFilters_Input,
3
+ ProductAttributeFilterInput,
4
4
  } from '@graphcommerce/graphql-mesh'
5
5
  import {
6
6
  isFilterTypeEqual,
7
- isFilterTypeRange,
8
7
  isFilterTypeMatch,
8
+ isFilterTypeRange,
9
9
  } from '@graphcommerce/magento-product'
10
10
  import type { InputMaybe } from '@graphcommerce/next-config'
11
11
  import type { GetStoreConfigReturn } from './getStoreConfig'
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": "9.0.0-canary.103",
5
+ "version": "9.0.0-canary.105",
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": "^9.0.0-canary.103",
19
- "@graphcommerce/graphql": "^9.0.0-canary.103",
20
- "@graphcommerce/graphql-mesh": "^9.0.0-canary.103",
21
- "@graphcommerce/magento-customer": "^9.0.0-canary.103",
22
- "@graphcommerce/magento-product": "^9.0.0-canary.103",
23
- "@graphcommerce/magento-search": "^9.0.0-canary.103",
24
- "@graphcommerce/next-config": "^9.0.0-canary.103",
25
- "@graphcommerce/next-ui": "^9.0.0-canary.103",
18
+ "@graphcommerce/google-datalayer": "^9.0.0-canary.105",
19
+ "@graphcommerce/graphql": "^9.0.0-canary.105",
20
+ "@graphcommerce/graphql-mesh": "^9.0.0-canary.105",
21
+ "@graphcommerce/magento-customer": "^9.0.0-canary.105",
22
+ "@graphcommerce/magento-product": "^9.0.0-canary.105",
23
+ "@graphcommerce/magento-search": "^9.0.0-canary.105",
24
+ "@graphcommerce/next-config": "^9.0.0-canary.105",
25
+ "@graphcommerce/next-ui": "^9.0.0-canary.105",
26
26
  "react": "^18.2.0"
27
27
  },
28
28
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  import type {
2
- useProductListApplyCategoryDefaults as useProductListApplyDefaults,
3
- productListApplyCategoryDefaults as productListApplyDefaults,
4
2
  categoryDefaultsToProductListFilters as defaultsToProductListFilters,
3
+ productListApplyCategoryDefaults as productListApplyDefaults,
4
+ useProductListApplyCategoryDefaults as useProductListApplyDefaults,
5
5
  } from '@graphcommerce/magento-product'
6
6
  import type { FunctionPlugin, PluginConfig } from '@graphcommerce/next-config'
7
7
  import { applyEngineVariables } from '../utils/applyEngineVariable'
@@ -1,7 +1,7 @@
1
1
  import type {
2
- useProductListApplySearchDefaults as useProductListApplyDefaults,
3
- productListApplySearchDefaults as productListApplyDefaults,
4
2
  searchDefaultsToProductListFilters as defaultsToProductListFilters,
3
+ productListApplySearchDefaults as productListApplyDefaults,
4
+ useProductListApplySearchDefaults as useProductListApplyDefaults,
5
5
  } from '@graphcommerce/magento-search'
6
6
  import type { FunctionPlugin, PluginConfig } from '@graphcommerce/next-config'
7
7
  import { applyEngineVariables } from '../utils/applyEngineVariable'