Skip to content

Commit da08ceb

Browse files
Merge pull request #267 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 39a7aef + 0c6c53b commit da08ceb

20 files changed

+73
-77
lines changed

changes.md

Lines changed: 3 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,9 @@
11
**Api changes**
22

33
<details>
4-
<summary>Added Type(s)</summary>
4+
<summary>Changed Property(s)</summary>
55

6-
- added type `ApprovalRuleSetCustomFieldAction`
7-
- added type `ApprovalRuleSetCustomTypeAction`
8-
- added type `SearchNotReadyError`
9-
- added type `GraphQLSearchNotReadyError`
10-
- added type `ProductTailoringAttribute`
11-
- added type `ProductTailoringSetAttributeAction`
12-
- added type `ProductTailoringSetAttributeInAllVariantsAction`
13-
- added type `ImageProcessingOngoingWarning`
14-
- added type `WarningObject`
15-
</details>
16-
17-
18-
<details>
19-
<summary>Removed Type(s)</summary>
20-
21-
- :warning: removed type `ProductSearchStatus`
22-
</details>
23-
24-
25-
<details>
26-
<summary>Added Property(s)</summary>
27-
28-
- added property `custom` to type `ApprovalRule`
29-
- added property `staged` to type `ProductVariantDeletedMessage`
30-
- added property `staged` to type `ProductVariantDeletedMessagePayload`
31-
- added property `warnings` to type `ProductTailoring`
32-
- added property `attributes` to type `ProductVariantTailoring`
33-
- added property `attributes` to type `ProductVariantTailoringDraft`
34-
- added property `attributes` to type `ProductTailoringAddVariantAction`
35-
- added property `warnings` to type `Product`
36-
- added property `customers` to type `SearchIndexingConfiguration`
37-
- added property `source` to type `EventBridgeDestination`
38-
</details>
39-
40-
41-
<details>
42-
<summary>Added Enum(s)</summary>
43-
44-
- added enum `customer-group` to type `ExtensionResourceTypeId`
45-
- added enum `product-tailoring` to type `MessageSubscriptionResourceTypeId`
46-
- added enum `approval-rule` to type `CustomFieldReferenceValue`
47-
- added enum `approval-rule` to type `ResourceTypeId`
48-
- added enum `product-tailoring` to type `ResourceTypeId`
49-
</details>
50-
51-
52-
<details>
53-
<summary>Added Method(s)</summary>
54-
55-
- added method `$apiRoot->withProjectKey()->productTailoring()->head()`
56-
</details>
57-
58-
**Import changes**
59-
60-
<details>
61-
<summary>Added Type(s)</summary>
62-
63-
- added type `InvalidFieldsUpdateError`
64-
- added type `NewMasterVariantAdditionNotAllowedError`
65-
</details>
66-
67-
**History changes**
68-
69-
<details>
70-
<summary>Required Property(s)</summary>
71-
72-
- changed property `id` of type `ModifiedBy` to be optional
6+
- :warning: changed property `line` of type `GraphQLErrorLocation` from type `integer` to `number`
7+
- :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number`
738
</details>
749

lib/commercetools-api/docs/RequestBuilder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3260,7 +3260,7 @@ $request = $builder
32603260
```
32613261
## `withProjectKey("projectKey")->graphql()->post(null)`
32623262

3263-
Execute a GraphQL query
3263+
Execute a GraphQL request.
32643264

32653265
### Example
32663266
```php

lib/commercetools-api/src/Models/Error/GraphQLErrorObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface GraphQLErrorObject extends JsonObject
1818
public const FIELD_PATTERN1 = '//';
1919

2020
/**
21-
* <p>Error identifier.</p>
21+
* <p>One of the error codes that is listed on the <a href="/errors">Errors</a> page.</p>
2222
*
2323
2424
* @return null|string

lib/commercetools-api/src/Models/Error/GraphQLErrorObjectModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function __construct(
120120
}
121121

122122
/**
123-
* <p>Error identifier.</p>
123+
* <p>One of the error codes that is listed on the <a href="/errors">Errors</a> page.</p>
124124
*
125125
*
126126
* @return null|string

lib/commercetools-api/src/Models/Error/GraphQLInsufficientScopeErrorModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
}
3838

3939
/**
40-
* <p>Error identifier.</p>
40+
* <p>One of the error codes that is listed on the <a href="/errors">Errors</a> page.</p>
4141
*
4242
*
4343
* @return null|string

lib/commercetools-api/src/Models/Error/GraphQLInvalidSubjectErrorModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
}
3838

3939
/**
40-
* <p>Error identifier.</p>
40+
* <p>One of the error codes that is listed on the <a href="/errors">Errors</a> page.</p>
4141
*
4242
*
4343
* @return null|string

lib/commercetools-api/src/Models/Error/GraphQLInvalidTokenErrorModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
}
3838

3939
/**
40-
* <p>Error identifier.</p>
40+
* <p>One of the error codes that is listed on the <a href="/errors">Errors</a> page.</p>
4141
*
4242
*
4343
* @return null|string

lib/commercetools-api/src/Models/GraphQl/GraphQLError.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,31 @@ interface GraphQLError extends JsonObject
2020
public const FIELD_EXTENSIONS = 'extensions';
2121

2222
/**
23+
* <p>Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.</p>
24+
*
2325
2426
* @return null|string
2527
*/
2628
public function getMessage();
2729

2830
/**
31+
* <p>Location within your query where the error occurred.</p>
32+
*
2933
3034
* @return null|GraphQLErrorLocationCollection
3135
*/
3236
public function getLocations();
3337

3438
/**
39+
* <p>Query fields listed in order from the root of the query response up to the field in which the error occurred. <code>path</code> is displayed in the response only if an error is associated with a particular field in the query result.</p>
40+
*
3541
3642
* @return null|array
3743
*/
3844
public function getPath();
3945

4046
/**
41-
* <p>Represents a single error.</p>
47+
* <p>Dictionary with additional information where applicable.</p>
4248
*
4349
4450
* @return null|GraphQLErrorObject

lib/commercetools-api/src/Models/GraphQl/GraphQLErrorBuilder.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ final class GraphQLErrorBuilder implements Builder
4747
private $extensions;
4848

4949
/**
50+
* <p>Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.</p>
51+
*
5052
5153
* @return null|string
5254
*/
@@ -56,6 +58,8 @@ public function getMessage()
5658
}
5759

5860
/**
61+
* <p>Location within your query where the error occurred.</p>
62+
*
5963
6064
* @return null|GraphQLErrorLocationCollection
6165
*/
@@ -65,6 +69,8 @@ public function getLocations()
6569
}
6670

6771
/**
72+
* <p>Query fields listed in order from the root of the query response up to the field in which the error occurred. <code>path</code> is displayed in the response only if an error is associated with a particular field in the query result.</p>
73+
*
6874
6975
* @return null|array
7076
*/
@@ -74,7 +80,7 @@ public function getPath()
7480
}
7581

7682
/**
77-
* <p>Represents a single error.</p>
83+
* <p>Dictionary with additional information where applicable.</p>
7884
*
7985
8086
* @return null|GraphQLErrorObject

lib/commercetools-api/src/Models/GraphQl/GraphQLErrorLocation.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ interface GraphQLErrorLocation extends JsonObject
1717
public const FIELD_COLUMN = 'column';
1818

1919
/**
20+
* <p>Line number of the query where the error occurred.</p>
21+
*
2022
2123
* @return null|int
2224
*/
2325
public function getLine();
2426

2527
/**
28+
* <p>Position in <code>line</code> where the error occurred.</p>
29+
*
2630
2731
* @return null|int
2832
*/

0 commit comments

Comments
 (0)