@frontastic/common 2.21.1 → 2.25.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,5 +1,38 @@
1
1
  # common Changelog
2
2
 
3
+ ## `2.25.0` (2022-01-24)
4
+
5
+ * fix(FP-838): improved error handling on parse locator for Shopware
6
+ * feat(FP-838): prevent update email, shipping address, or billing address on Shopware CartApi
7
+ * feat(FP-838): implemented set shipping and billing address on Shopware CartApi
8
+ * feat(FP-838): map discounts and shipping info on Shopware CartApi
9
+ * feat(FP-838): map shipping info from order on Shopware CartApi
10
+ * feat(FP-838): upgrade order, anonymous cart, and email on Shopware CartApi
11
+ * feat(FP-838): allow customer guest create and update emal on Shopware AccountApi
12
+ * feat(FP-838): upgraded discount actions on Shopware CartApi
13
+ * feat(FP-838): upgrade shipping methods actions on Shopware CartApi
14
+ * feat(FP-838): upgrade add, update, and remove item to cart on Shopware CartApi
15
+ * feat(FP-838): upgrade get anonymous cart and get cart by id on Shopware
16
+
17
+ ## `2.24.0` (2022-01-05)
18
+
19
+ * feat(FP-324): Include User-Agent Frontastic as part of API requests
20
+
21
+ ## `2.23.0` (2021-12-16)
22
+
23
+ * feat: Created method for CustomDataSourceValidation in the CustomDataSourceService
24
+ * feat: Store the stream type for stream fields
25
+ * feat: Introduced a special field configuration for stream fields
26
+
27
+ ## `2.22.0` (2021-12-02)
28
+
29
+ * feat(FP-1193): included rawApiImput on getProduct
30
+ * feat(FP-581): refresh account after update address on Shopify
31
+ * feat(FP-581): handle existing address error on Shopify
32
+ * feat(FP-1193): included rawApiInput fields for queries on Product and ProductSearch API
33
+ * fix(FP-1193): added url schema simbols
34
+ * feat!(FP-1193): upgrade and fix shopify version to 2021-10
35
+
3
36
  ## `2.21.1` (2021-11-30)
4
37
 
5
38
  * fix: make product price nullable in Algolia integration
package/composer.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frontastic/common",
3
3
  "license": "None",
4
- "version": "2.21.1",
4
+ "version": "2.25.0",
5
5
  "repositories": [
6
6
  {
7
7
  "type": "path",
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)
@@ -368,6 +369,7 @@ Here you find the API documentation for the relevant classes:
368
369
  * [FieldConfiguration](php/SpecificationBundle/Domain/Schema/FieldConfiguration.md)
369
370
  * [FieldVisitor](php/SpecificationBundle/Domain/Schema/FieldVisitor.md)
370
371
  * [GroupFieldConfiguration](php/SpecificationBundle/Domain/Schema/GroupFieldConfiguration.md)
372
+ * [StreamFieldConfiguration](php/SpecificationBundle/Domain/Schema/StreamFieldConfiguration.md)
371
373
  * [SpecParser](php/SpecificationBundle/Domain/SpecParser.md)
372
374
  * [TasticSpecParser](php/SpecificationBundle/Domain/TasticSpecParser.md)
373
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).
@@ -19,6 +19,7 @@ public function __construct(
19
19
  LocaleCreator $localeCreator,
20
20
  DataMapperResolver $mapperResolver,
21
21
  ShopwareProjectConfigApiFactory $projectConfigApiFactory,
22
+ AccountApi $accountApi,
22
23
  ?string $defaultLanguage
23
24
  ): mixed
24
25
  ```
@@ -29,6 +30,7 @@ Argument|Type|Default|Description
29
30
  `$localeCreator`|[`LocaleCreator`](../Locale/LocaleCreator.md)||
30
31
  `$mapperResolver`|[`DataMapperResolver`](../DataMapper/DataMapperResolver.md)||
31
32
  `$projectConfigApiFactory`|[`ShopwareProjectConfigApiFactory`](../ProjectConfigApi/ShopwareProjectConfigApiFactory.md)||
33
+ `$accountApi`|[`AccountApi`](../../../AccountApiBundle/Domain/AccountApi.md)||
32
34
  `$defaultLanguage`|`?string`||
33
35
 
34
36
  Return Value: `mixed`
@@ -179,7 +179,8 @@ Return Value: `\GuzzleHttp\Promise\PromiseInterface`
179
179
  ```php
180
180
  public function delete(
181
181
  string $uri,
182
- array $headers = []
182
+ array $headers = [],
183
+ mixed $body = null
183
184
  ): \GuzzleHttp\Promise\PromiseInterface
184
185
  ```
185
186
 
@@ -187,6 +188,7 @@ Argument|Type|Default|Description
187
188
  --------|----|-------|-----------
188
189
  `$uri`|`string`||
189
190
  `$headers`|`array`|`[]`|
191
+ `$body`|`mixed`|`null`|
190
192
 
191
193
  Return Value: `\GuzzleHttp\Promise\PromiseInterface`
192
194
 
@@ -150,7 +150,8 @@ Return Value: `\GuzzleHttp\Promise\PromiseInterface`
150
150
  ```php
151
151
  public function delete(
152
152
  string $uri,
153
- array $headers = []
153
+ array $headers = [],
154
+ mixed $body = null
154
155
  ): \GuzzleHttp\Promise\PromiseInterface
155
156
  ```
156
157
 
@@ -158,6 +159,7 @@ Argument|Type|Default|Description
158
159
  --------|----|-------|-----------
159
160
  `$uri`|`string`||
160
161
  `$headers`|`array`|`[]`|
162
+ `$body`|`mixed`|`null`|
161
163
 
162
164
  Return Value: `\GuzzleHttp\Promise\PromiseInterface`
163
165
 
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontastic/common",
3
- "version": "2.21.1",
3
+ "version": "2.25.0",
4
4
  "devDependencies": {
5
5
  "@babel/core": "7.5.4",
6
6
  "@babel/plugin-proposal-class-properties": "^7.5.0",
@@ -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/api/2021-01/graphql.json
12
+ hostUrl: https://frontastic-demo.myshopify.com
13
13
  storefrontAccessToken: 1aa5b043c2b47c26495be4cdf119b77c
14
14
  account:
15
15
  engine: shopify