@frontastic/common 2.33.7 → 2.34.0

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,15 +1,40 @@
1
- ## Version 2.33.7 (2022-06-02)
1
+
2
+ ## Version 2.34.0 (2022-06-16)
3
+
4
+ ** New Features **
5
+
6
+ - New Algolia implementation. Include prices in cents and attributes listed by index.
7
+
8
+
9
+ ** Improvements **
10
+
11
+ - Improving performance on Apollo caching.
12
+
13
+ ## Version 2.33.9 (2022-06-09)
14
+
15
+ ** Improvements **
16
+
17
+ - Small refactorings from PR review
18
+
19
+ ## Version 2.33.8 (2022-06-07)
20
+
21
+ * Revert "Panos/nodes tree caching"
22
+
2
23
 
3
24
  * fix: Don’t overwrite explicitly set user agent. This fixes user agent detection during SSR.
25
+
4
26
  ## Version 2.33.6 (2022-05-24)
5
27
 
6
28
  * fix: correctly fetch cloudinary URLs again
29
+
7
30
  ## Version 2.33.5 (2022-05-19)
8
31
 
9
32
  * fix: don’t use ?? in libraries/common
33
+
10
34
  ## Version 2.33.4 (2022-05-17)
11
35
 
12
36
  * fix: used correct format on Changelog for catwalk and common
37
+
13
38
  ## Version 2.33.3 (2022-05-12)
14
39
 
15
40
  * Prevent enum fields without values field to exist
package/composer.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frontastic/common",
3
3
  "license": "None",
4
- "version": "2.33.7",
4
+ "version": "2.34.0",
5
5
  "repositories": [
6
6
  {
7
7
  "type": "path",
package/docs/README.md CHANGED
@@ -47,6 +47,7 @@ Here you find the API documentation for the relevant classes:
47
47
  * [AlgoliaClient](php/AlgoliaBundle/Domain/AlgoliaClient.md)
48
48
  * [AlgoliaClientFactory](php/AlgoliaBundle/Domain/AlgoliaClientFactory.md)
49
49
  * [AlgoliaIndexConfig](php/AlgoliaBundle/Domain/AlgoliaIndexConfig.md)
50
+ * [AlgoliaMapperFactory](php/AlgoliaBundle/Domain/AlgoliaMapperFactory.md)
50
51
  * ProductSearchApi
51
52
  * [AlgoliaProductSearchApi](php/AlgoliaBundle/Domain/ProductSearchApi/AlgoliaProductSearchApi.md)
52
53
  * [Mapper](php/AlgoliaBundle/Domain/ProductSearchApi/Mapper.md)
@@ -0,0 +1,25 @@
1
+ # AlgoliaMapperFactory
2
+
3
+ **Fully Qualified**: [`\Frontastic\Common\AlgoliaBundle\Domain\AlgoliaMapperFactory`](../../../../src/php/AlgoliaBundle/Domain/AlgoliaMapperFactory.php)
4
+
5
+ ## Methods
6
+
7
+ * [factorForConfigs()](#factorforconfigs)
8
+
9
+ ### factorForConfigs()
10
+
11
+ ```php
12
+ public function factorForConfigs(
13
+ object $typeSpecificConfig,
14
+ ?object $algoliaConfig = null
15
+ ): Mapper
16
+ ```
17
+
18
+ Argument|Type|Default|Description
19
+ --------|----|-------|-----------
20
+ `$typeSpecificConfig`|`object`||
21
+ `$algoliaConfig`|`?object`|`null`|
22
+
23
+ Return Value: [`Mapper`](ProductSearchApi/Mapper.md)
24
+
25
+ Generated with [Frontastic API Docs](https://github.com/FrontasticGmbH/apidocs).
@@ -4,10 +4,25 @@
4
4
 
5
5
  ## Methods
6
6
 
7
+ * [__construct()](#__construct)
7
8
  * [dataToProducts()](#datatoproducts)
8
9
  * [dataToFacets()](#datatofacets)
9
10
  * [dataToAttributes()](#datatoattributes)
10
11
 
12
+ ### __construct()
13
+
14
+ ```php
15
+ public function __construct(
16
+ string $apiVersion = null
17
+ ): mixed
18
+ ```
19
+
20
+ Argument|Type|Default|Description
21
+ --------|----|-------|-----------
22
+ `$apiVersion`|`string`|`null`|
23
+
24
+ Return Value: `mixed`
25
+
11
26
  ### dataToProducts()
12
27
 
13
28
  ```php
@@ -9,6 +9,7 @@ Property|Type|Default|Required|Description
9
9
  `command` | `string` | | *Yes* |
10
10
  `channel` | `string` | | *Yes* |
11
11
  `customer` | `string` | | *Yes* |
12
+ `allowCache` | `bool` | `true` | *Yes* |
12
13
  `payload` | `array` | `[]` | *Yes* |
13
14
 
14
15
  Generated with [Frontastic API Docs](https://github.com/FrontasticGmbH/apidocs).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontastic/common",
3
- "version": "2.33.7",
3
+ "version": "2.34.0",
4
4
  "devDependencies": {
5
5
  "@babel/core": "7.5.4",
6
6
  "@babel/plugin-proposal-class-properties": "^7.5.0",
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: "algoliaV2"
3
+ secret: "secret"
4
+ configuration:
5
+ test:
6
+ disabled: false
7
+ supportCursorBasedPagination: true
8
+ supportOffsetPagination: true
9
+ hasConsistentProductSearchData: false
10
+ supportSearchByIdentifierAndQueryParameters: false
11
+ algolia:
12
+ appId: DILBRXOZYC
13
+ appKey: 82da0c8ccb44ac757e991e28d6e33b4a
14
+ indexName: dev_frontastic_search
15
+ apiVersion: v2
16
+ languages:
17
+ en_GB@GBP:
18
+ indexName: dev_frontastic_search
19
+ de_DE@EUR:
20
+ indexName: dev_frontastic_search_de
21
+ productSearch:
22
+ engine: algolia
23
+ projects:
24
+ - projectId: test
25
+ name: Algolia Test
26
+ languages: ["en_GB@GBP", "de_DE@EUR"]
27
+ defaultLanguage: en_GB@GBP