@graphcommerce/algolia-categories 9.0.0-canary.115 → 9.0.0-canary.116

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,7 @@
1
1
  # @graphcommerce/algolia-categories
2
2
 
3
+ ## 9.0.0-canary.116
4
+
3
5
  ## 9.0.0-canary.115
4
6
 
5
7
  ## 9.0.0-canary.114
@@ -20,7 +20,7 @@ export type AlgoliaCategoryHitAddiotonalProperties = AlgoliaProductHitAdditional
20
20
  level: number
21
21
  }
22
22
 
23
- export function assertAdditional(
23
+ function assertAdditional(
24
24
  additional: unknown,
25
25
  ): additional is AlgoliaCategoryHitAddiotonalProperties {
26
26
  return true
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/algolia-categories",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.115",
5
+ "version": "9.0.0-canary.116",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -15,15 +15,15 @@
15
15
  "generate": "tsx scripts/generate-spec.mts"
16
16
  },
17
17
  "peerDependencies": {
18
- "@graphcommerce/algolia-products": "^9.0.0-canary.115",
19
- "@graphcommerce/google-datalayer": "^9.0.0-canary.115",
20
- "@graphcommerce/graphql": "^9.0.0-canary.115",
21
- "@graphcommerce/graphql-mesh": "^9.0.0-canary.115",
22
- "@graphcommerce/magento-customer": "^9.0.0-canary.115",
23
- "@graphcommerce/magento-product": "^9.0.0-canary.115",
24
- "@graphcommerce/magento-search": "^9.0.0-canary.115",
25
- "@graphcommerce/next-config": "^9.0.0-canary.115",
26
- "@graphcommerce/next-ui": "^9.0.0-canary.115",
18
+ "@graphcommerce/algolia-products": "^9.0.0-canary.116",
19
+ "@graphcommerce/google-datalayer": "^9.0.0-canary.116",
20
+ "@graphcommerce/graphql": "^9.0.0-canary.116",
21
+ "@graphcommerce/graphql-mesh": "^9.0.0-canary.116",
22
+ "@graphcommerce/magento-customer": "^9.0.0-canary.116",
23
+ "@graphcommerce/magento-product": "^9.0.0-canary.116",
24
+ "@graphcommerce/magento-search": "^9.0.0-canary.116",
25
+ "@graphcommerce/next-config": "^9.0.0-canary.116",
26
+ "@graphcommerce/next-ui": "^9.0.0-canary.116",
27
27
  "react": "^18.2.0"
28
28
  },
29
29
  "devDependencies": {
@@ -0,0 +1,11 @@
1
+ import type { ProductListQueryVariables } from '@graphcommerce/magento-product'
2
+
3
+ export function applyEngineVariables(variables: ProductListQueryVariables | undefined) {
4
+ return {
5
+ ...variables,
6
+ filters: {
7
+ ...variables?.filters,
8
+ engine: { eq: 'algolia' },
9
+ },
10
+ }
11
+ }