@frontastic/common 2.33.9 → 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 +11 -0
- package/composer.json +1 -1
- package/docs/README.md +1 -0
- package/docs/php/AlgoliaBundle/Domain/AlgoliaMapperFactory.md +25 -0
- package/docs/php/AlgoliaBundle/Domain/ProductSearchApi/Mapper.md +15 -0
- package/package.json +1 -1
- package/test/api/config/customers/algoliaV2.yml +27 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
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
|
+
|
|
2
13
|
## Version 2.33.9 (2022-06-09)
|
|
3
14
|
|
|
4
15
|
** Improvements **
|
package/composer.json
CHANGED
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
|
package/package.json
CHANGED
|
@@ -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
|