Skip to content

Commit fe4682c

Browse files
Update generated SDKs (#1060)
* build(codegen): updating SDK * build(codegen): updating SDK * build(codegen): updating SDK --------- Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com> Co-authored-by: Jens Schulze <jens.schulze@commercetools.com>
1 parent a65647f commit fe4682c

2 files changed

Lines changed: 45 additions & 2 deletions

File tree

commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ BETA: This feature can be subject to change and should be used carefully in prod
8484
"""
8585
type ProductSearchResult {
8686
id: String!
87-
product: Product!
87+
product(localesProjection: [String!], storeProjection: String): Product!
8888
}
8989

9090
type Query {
@@ -3014,6 +3014,10 @@ type Extension implements Versioned & ReferenceExpandable {
30143014
"""
30153015
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
30163016
"""
3017+
dependenciesRef: [Reference!]!
3018+
"""
3019+
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
3020+
"""
30173021
additionalContext: ExtensionAdditionalContext
30183022
"""
30193023
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
@@ -3183,6 +3187,13 @@ type InStore implements CartDiscountQueryInterface & CartQueryInterface & Custom
31833187
key: String
31843188
): CartDiscount
31853189
cartDiscounts(where: String, sort: [String!], limit: Int, offset: Int): CartDiscountQueryResult!
3190+
discountCode(
3191+
"""Queries with specified ID"""
3192+
id: String
3193+
"""Queries with specified key"""
3194+
key: String
3195+
): DiscountCode
3196+
discountCodes(where: String, sort: [String!], limit: Int, offset: Int): DiscountCodeQueryResult!
31863197
product(
31873198
projectExpandedProducts: Boolean = false
31883199
localeProjection: [Locale!]
@@ -4082,17 +4093,31 @@ type Mutation {
40824093
"""Queries with specified key"""
40834094
key: String
40844095
): TaxCategory
4085-
createDiscountCode(draft: DiscountCodeDraft!): DiscountCode
4096+
createDiscountCode(
4097+
draft: DiscountCodeDraft!
4098+
"""
4099+
The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions.
4100+
"""
4101+
storeKey: KeyReferenceInput
4102+
): DiscountCode
40864103
updateDiscountCode(
40874104
version: Long!
40884105
actions: [DiscountCodeUpdateAction!]!
4106+
"""
4107+
The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions.
4108+
"""
4109+
storeKey: KeyReferenceInput
40894110
"""Queries with specified ID"""
40904111
id: String
40914112
"""Queries with specified key"""
40924113
key: String
40934114
): DiscountCode
40944115
deleteDiscountCode(
40954116
version: Long!
4117+
"""
4118+
The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions.
4119+
"""
4120+
storeKey: KeyReferenceInput
40964121
"""Queries with specified ID"""
40974122
id: String
40984123
"""Queries with specified key"""
@@ -13233,6 +13258,10 @@ input ExtensionDraft {
1323313258
"""
1323413259
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
1323513260
"""
13261+
dependencies: [ResourceIdentifierInput!]
13262+
"""
13263+
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
13264+
"""
1323613265
additionalContext: ExtensionAdditionalContextInput
1323713266
"""
1323813267
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
@@ -13251,6 +13280,10 @@ input ExtensionUpdateAction {
1325113280
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
1325213281
"""
1325313282
setExpansionPaths: SetExtensionExpansionPaths
13283+
"""
13284+
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
13285+
"""
13286+
setDependencies: SetExtensionDependencies
1325413287
setKey: SetExtensionKey
1325513288
setTimeoutInMs: SetExtensionTimeoutInMs
1325613289
}
@@ -15924,6 +15957,13 @@ input SetExtensionAdditionalContext {
1592415957
additionalContext: ExtensionAdditionalContextInput!
1592515958
}
1592615959

15960+
"""
15961+
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
15962+
"""
15963+
input SetExtensionDependencies {
15964+
dependencies: [ResourceIdentifierInput!]!
15965+
}
15966+
1592715967
"""
1592815968
BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta
1592915969
"""

references.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,3 +551,6 @@ b079eb79b31912abbf6e28be6f2348e54a440110
551551
b30881a27961c27ec2b180c43ad1a10b4e089c15
552552
f74e542a084962a1c94f38acb28259265d218d7e
553553
303dab396d987c4f6ed7c9013e664cd40807e948
554+
b08eacf0757aabb265b9ff2b4a117e06d48e175c
555+
f83d94426436ce8bcb69883a6c74e92b55f684b5
556+
0b1cc05e1e5fba20c2e9f66b1dc6f4c720c8e75a

0 commit comments

Comments
 (0)