@graphcommerce/algolia-recommend 9.0.0-canary.84

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 ADDED
@@ -0,0 +1,7 @@
1
+ # @graphcommerce/algolia-recommend
2
+
3
+ ## 9.0.0-canary.84
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2377](https://github.com/graphcommerce-org/graphcommerce/pull/2377) [`56fcc45`](https://github.com/graphcommerce-org/graphcommerce/commit/56fcc45b60e43574c64fcdd7b02f8062d677e250) - Integrated algolia recommend queries into graphql mesh. Provide accurate upsells and related products on pdp pages ([@Renzovh](https://github.com/Renzovh))
@@ -0,0 +1,44 @@
1
+ """
2
+ Location where the recommendation model should be shown. This replaces the related_products, upsell_products and crosssell_products fields on products.
3
+ """
4
+ enum GraphCommerceAlgoliaRecommendationLocation {
5
+ DISABLED
6
+ RELATED_PRODUCTS
7
+ UPSELL_PRODUCTS
8
+ CROSSSELL_PRODUCTS
9
+ }
10
+
11
+ extend input GraphCommerceAlgoliaConfig {
12
+ """
13
+ https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content
14
+
15
+ Set the location where the related products model should be shown.
16
+ Good default is RELATED_PRODUCTS, which is shown on the Product page by default.
17
+
18
+ Before enabling, make sure the model is trained in Algolia.
19
+ Do not assign multiple recommendation models to the same location.
20
+ """
21
+ relatedProducts: GraphCommerceAlgoliaRecommendationLocation
22
+
23
+ """
24
+ https://www.algolia.com/doc/guides/algolia-recommend/overview/#looking-similar
25
+
26
+ Set the location where the looking similar model should be shown.
27
+ Good default is UPSELL_PRODUCTS, which is shown on the Product page by default.
28
+
29
+ Before enabling, make sure the model is trained in Algolia.
30
+ Do not assign multiple recommendation models to the same location.
31
+ """
32
+ lookingSimilar: GraphCommerceAlgoliaRecommendationLocation
33
+
34
+ """
35
+ https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together
36
+
37
+ Set the location where the frequently bought together model should be shown.
38
+ Good default is CROSSSELL_PRODUCTS, which is shown on the Cart page.
39
+
40
+ Before enabling, make sure the model is trained in Algolia.
41
+ Do not assign multiple recommendation models to the same location.
42
+ """
43
+ frequentlyBoughtTogether: GraphCommerceAlgoliaRecommendationLocation
44
+ }
package/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # Algolia Recommend
2
+
3
+ This package contains the Algolia Recommend API client and mesh resolvers.
4
+
5
+ See [Config.graphqls](./Config.graphqls) for details and see the
6
+ [AlgoliaRecommendations.graphqls](./schema/AlgoliaRecommendations.graphqls) for
7
+ the extensions made on the schema.
8
+
9
+ When configuring and using the recommendations, make sure the recommendations
10
+ are build first.