@frontastic/common 2.20.1 → 2.23.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 +24 -0
- package/composer.json +1 -1
- package/docs/README.md +3 -0
- package/docs/php/AccountApiBundle/Domain/DuplicateAddressException.md +29 -0
- package/docs/php/CoreBundle/Domain/Tracing.md +17 -0
- package/docs/php/SpecificationBundle/Domain/ConfigurationSchema.md +9 -0
- package/docs/php/SpecificationBundle/Domain/Schema/StreamFieldConfiguration.md +19 -0
- package/package.json +1 -1
- package/test/api/AccountApi/AccountUpdateTest.php +1 -2
- package/test/api/config/customers/shopify.yml +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# common Changelog
|
|
2
2
|
|
|
3
|
+
## `2.23.0` (2021-12-16)
|
|
4
|
+
|
|
5
|
+
* feat: Created method for CustomDataSourceValidation in the CustomDataSourceService
|
|
6
|
+
* feat: Store the stream type for stream fields
|
|
7
|
+
* feat: Introduced a special field configuration for stream fields
|
|
8
|
+
|
|
9
|
+
## `2.22.0` (2021-12-02)
|
|
10
|
+
|
|
11
|
+
* feat(FP-1193): included rawApiImput on getProduct
|
|
12
|
+
* feat(FP-581): refresh account after update address on Shopify
|
|
13
|
+
* feat(FP-581): handle existing address error on Shopify
|
|
14
|
+
* feat(FP-1193): included rawApiInput fields for queries on Product and ProductSearch API
|
|
15
|
+
* fix(FP-1193): added url schema simbols
|
|
16
|
+
* feat!(FP-1193): upgrade and fix shopify version to 2021-10
|
|
17
|
+
|
|
18
|
+
## `2.21.1` (2021-11-30)
|
|
19
|
+
|
|
20
|
+
* fix: make product price nullable in Algolia integration
|
|
21
|
+
|
|
22
|
+
## `2.21.0` (2021-10-26)
|
|
23
|
+
|
|
24
|
+
* !feat(FP-646): implemented traceability strategy adding a correlation-id to all requests and responses
|
|
25
|
+
* fix: Nested groups were not visited correctly in ConfigurationSchema.
|
|
26
|
+
|
|
3
27
|
## `2.20.1` (2021-10-21)
|
|
4
28
|
|
|
5
29
|
* fix: return a 400 json response on type error of dynamic pages
|
package/composer.json
CHANGED
package/docs/README.md
CHANGED
|
@@ -30,6 +30,7 @@ Here you find the API documentation for the relevant classes:
|
|
|
30
30
|
* [AuthentificationInformation](php/AccountApiBundle/Domain/AuthentificationInformation.md)
|
|
31
31
|
* [DefaultAccountApiFactory](php/AccountApiBundle/Domain/DefaultAccountApiFactory.md)
|
|
32
32
|
* [DuplicateAccountException](php/AccountApiBundle/Domain/DuplicateAccountException.md)
|
|
33
|
+
* [DuplicateAddressException](php/AccountApiBundle/Domain/DuplicateAddressException.md)
|
|
33
34
|
* [Group](php/AccountApiBundle/Domain/Group.md)
|
|
34
35
|
* [MetaData](php/AccountApiBundle/Domain/MetaData.md)
|
|
35
36
|
* [PasswordResetToken](php/AccountApiBundle/Domain/PasswordResetToken.md)
|
|
@@ -129,6 +130,7 @@ Here you find the API documentation for the relevant classes:
|
|
|
129
130
|
* [SwiftMail](php/CoreBundle/Domain/Mailer/SwiftMail.md)
|
|
130
131
|
* [PaginationAdapter](php/CoreBundle/Domain/PaginationAdapter.md)
|
|
131
132
|
* [RequestProvider](php/CoreBundle/Domain/RequestProvider.md)
|
|
133
|
+
* [Tracing](php/CoreBundle/Domain/Tracing.md)
|
|
132
134
|
* [Versioner](php/CoreBundle/Domain/Versioner.md)
|
|
133
135
|
* EventListener
|
|
134
136
|
* [JsonExceptionListener](php/CoreBundle/EventListener/JsonExceptionListener.md)
|
|
@@ -367,6 +369,7 @@ Here you find the API documentation for the relevant classes:
|
|
|
367
369
|
* [FieldConfiguration](php/SpecificationBundle/Domain/Schema/FieldConfiguration.md)
|
|
368
370
|
* [FieldVisitor](php/SpecificationBundle/Domain/Schema/FieldVisitor.md)
|
|
369
371
|
* [GroupFieldConfiguration](php/SpecificationBundle/Domain/Schema/GroupFieldConfiguration.md)
|
|
372
|
+
* [StreamFieldConfiguration](php/SpecificationBundle/Domain/Schema/StreamFieldConfiguration.md)
|
|
370
373
|
* [SpecParser](php/SpecificationBundle/Domain/SpecParser.md)
|
|
371
374
|
* [TasticSpecParser](php/SpecificationBundle/Domain/TasticSpecParser.md)
|
|
372
375
|
* [ValidatingSpecParser](php/SpecificationBundle/Domain/ValidatingSpecParser.md)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# DuplicateAddressException
|
|
2
|
+
|
|
3
|
+
**Fully Qualified**: [`\Frontastic\Common\AccountApiBundle\Domain\DuplicateAddressException`](../../../../src/php/AccountApiBundle/Domain/DuplicateAddressException.php)
|
|
4
|
+
|
|
5
|
+
**Extends**: `\RuntimeException`
|
|
6
|
+
|
|
7
|
+
## Methods
|
|
8
|
+
|
|
9
|
+
* [__construct()](#__construct)
|
|
10
|
+
|
|
11
|
+
### __construct()
|
|
12
|
+
|
|
13
|
+
```php
|
|
14
|
+
public function __construct(
|
|
15
|
+
string $address,
|
|
16
|
+
int $code,
|
|
17
|
+
\Throwable $previous = null
|
|
18
|
+
): mixed
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Argument|Type|Default|Description
|
|
22
|
+
--------|----|-------|-----------
|
|
23
|
+
`$address`|`string`||
|
|
24
|
+
`$code`|`int`||
|
|
25
|
+
`$previous`|[`\Throwable`](https://www.php.net/manual/de/class.throwable.php)|`null`|
|
|
26
|
+
|
|
27
|
+
Return Value: `mixed`
|
|
28
|
+
|
|
29
|
+
Generated with [Frontastic API Docs](https://github.com/FrontasticGmbH/apidocs).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Tracing
|
|
2
|
+
|
|
3
|
+
**Fully Qualified**: [`\Frontastic\Common\CoreBundle\Domain\Tracing`](../../../../src/php/CoreBundle/Domain/Tracing.php)
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
* [getCurrentTraceId()](#getcurrenttraceid)
|
|
8
|
+
|
|
9
|
+
### getCurrentTraceId()
|
|
10
|
+
|
|
11
|
+
```php
|
|
12
|
+
static public function getCurrentTraceId(): mixed
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Return Value: `mixed`
|
|
16
|
+
|
|
17
|
+
Generated with [Frontastic API Docs](https://github.com/FrontasticGmbH/apidocs).
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* [hasField()](#hasfield)
|
|
9
9
|
* [getFieldValue()](#getfieldvalue)
|
|
10
10
|
* [getCompleteValues()](#getcompletevalues)
|
|
11
|
+
* [getFieldConfigurations()](#getfieldconfigurations)
|
|
11
12
|
|
|
12
13
|
### fromSchemaAndConfiguration()
|
|
13
14
|
|
|
@@ -69,4 +70,12 @@ Argument|Type|Default|Description
|
|
|
69
70
|
|
|
70
71
|
Return Value: `mixed`
|
|
71
72
|
|
|
73
|
+
### getFieldConfigurations()
|
|
74
|
+
|
|
75
|
+
```php
|
|
76
|
+
public function getFieldConfigurations(): mixed
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Return Value: `mixed`
|
|
80
|
+
|
|
72
81
|
Generated with [Frontastic API Docs](https://github.com/FrontasticGmbH/apidocs).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# StreamFieldConfiguration
|
|
2
|
+
|
|
3
|
+
**Fully Qualified**: [`\Frontastic\Common\SpecificationBundle\Domain\Schema\StreamFieldConfiguration`](../../../../../src/php/SpecificationBundle/Domain/Schema/StreamFieldConfiguration.php)
|
|
4
|
+
|
|
5
|
+
**Extends**: [`FieldConfiguration`](FieldConfiguration.md)
|
|
6
|
+
|
|
7
|
+
## Methods
|
|
8
|
+
|
|
9
|
+
* [getStreamType()](#getstreamtype)
|
|
10
|
+
|
|
11
|
+
### getStreamType()
|
|
12
|
+
|
|
13
|
+
```php
|
|
14
|
+
public function getStreamType(): mixed
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Return Value: `mixed`
|
|
18
|
+
|
|
19
|
+
Generated with [Frontastic API Docs](https://github.com/FrontasticGmbH/apidocs).
|
package/package.json
CHANGED
|
@@ -102,9 +102,8 @@ class AccountUpdateTest extends FrontasticApiTestCase
|
|
|
102
102
|
// Create an account
|
|
103
103
|
$account = $accountApi->create($accountData, null, $language);
|
|
104
104
|
|
|
105
|
-
|
|
106
105
|
//Prepare update data
|
|
107
|
-
$updatedAddress = $account->addresses[0];
|
|
106
|
+
$updatedAddress = clone $account->addresses[0];
|
|
108
107
|
$updatedAddress->firstName = 'Molly';
|
|
109
108
|
$updatedAddress->lastName = 'Chambers';
|
|
110
109
|
$updatedAddress->streetName = 'New str name';
|
|
@@ -9,7 +9,7 @@ configuration:
|
|
|
9
9
|
hasConsistentProductSearchData: true
|
|
10
10
|
supportSearchByIdentifierAndQueryParameters: true
|
|
11
11
|
shopify:
|
|
12
|
-
hostUrl: https://frontastic-demo.myshopify.com
|
|
12
|
+
hostUrl: https://frontastic-demo.myshopify.com
|
|
13
13
|
storefrontAccessToken: 1aa5b043c2b47c26495be4cdf119b77c
|
|
14
14
|
account:
|
|
15
15
|
engine: shopify
|