diff --git a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls index 45e2239780..b06d743a89 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -3014,6 +3014,10 @@ type Extension implements Versioned & ReferenceExpandable { """ BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta """ + dependenciesRef: [Reference!]! + """ + BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta + """ additionalContext: ExtensionAdditionalContext """ 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 key: String ): CartDiscount cartDiscounts(where: String, sort: [String!], limit: Int, offset: Int): CartDiscountQueryResult! + discountCode( + """Queries with specified ID""" + id: String + """Queries with specified key""" + key: String + ): DiscountCode + discountCodes(where: String, sort: [String!], limit: Int, offset: Int): DiscountCodeQueryResult! product( projectExpandedProducts: Boolean = false localeProjection: [Locale!] @@ -4082,10 +4093,20 @@ type Mutation { """Queries with specified key""" key: String ): TaxCategory - createDiscountCode(draft: DiscountCodeDraft!): DiscountCode + createDiscountCode( + draft: DiscountCodeDraft! + """ + The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions. + """ + storeKey: KeyReferenceInput + ): DiscountCode updateDiscountCode( version: Long! actions: [DiscountCodeUpdateAction!]! + """ + The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions. + """ + storeKey: KeyReferenceInput """Queries with specified ID""" id: String """Queries with specified key""" @@ -4093,6 +4114,10 @@ type Mutation { ): DiscountCode deleteDiscountCode( version: Long! + """ + The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions. + """ + storeKey: KeyReferenceInput """Queries with specified ID""" id: String """Queries with specified key""" @@ -13233,6 +13258,10 @@ input ExtensionDraft { """ BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta """ + dependencies: [ResourceIdentifierInput!] + """ + BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta + """ additionalContext: ExtensionAdditionalContextInput """ 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 { BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta """ setExpansionPaths: SetExtensionExpansionPaths + """ + BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta + """ + setDependencies: SetExtensionDependencies setKey: SetExtensionKey setTimeoutInMs: SetExtensionTimeoutInMs } @@ -15924,6 +15957,13 @@ input SetExtensionAdditionalContext { additionalContext: ExtensionAdditionalContextInput! } +""" +BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta +""" +input SetExtensionDependencies { + dependencies: [ResourceIdentifierInput!]! +} + """ BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta """ diff --git a/references.txt b/references.txt index c5d3b691f6..85c3f03c87 100644 --- a/references.txt +++ b/references.txt @@ -551,3 +551,5 @@ b079eb79b31912abbf6e28be6f2348e54a440110 b30881a27961c27ec2b180c43ad1a10b4e089c15 f74e542a084962a1c94f38acb28259265d218d7e 303dab396d987c4f6ed7c9013e664cd40807e948 +b08eacf0757aabb265b9ff2b4a117e06d48e175c +f83d94426436ce8bcb69883a6c74e92b55f684b5