From fed2d24fe5f22712e0a9a7869b95e063725a08f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Mi=C5=9Bta?= Date: Fri, 5 Nov 2021 16:00:09 +0100 Subject: [PATCH] Change displayCode to last4CodeChars --- locale/defaultMessages.json | 2 +- schema.graphql | 2486 ++++++++++++++--- .../types/GiftCardResend.ts | 2 +- .../GiftCardUpdatePageHeader.tsx | 4 +- .../types/GiftCardActivate.ts | 2 +- .../types/GiftCardDeactivate.ts | 2 +- src/giftCards/GiftCardUpdate/queries.ts | 2 +- .../GiftCardUpdate/types/GiftCardData.ts | 2 +- .../GiftCardUpdate/types/GiftCardDetails.ts | 2 +- .../GiftCardUpdate/types/GiftCardUpdate.ts | 2 +- .../GiftCardsListTable/GiftCardsListTable.tsx | 4 +- src/giftCards/GiftCardsList/messages.ts | 2 +- src/giftCards/GiftCardsList/queries.ts | 2 +- .../GiftCardsList/types/GiftCardList.ts | 2 +- .../CustomerGiftCardsCardListItem.tsx | 5 +- .../GiftCardCustomerCard/queries.ts | 2 +- .../types/CustomerGiftCardList.ts | 2 +- .../components/GiftCardCustomerCard/utils.ts | 7 - .../types/ProductAttributeAssignmentUpdate.ts | 1 + 19 files changed, 2055 insertions(+), 478 deletions(-) delete mode 100644 src/giftCards/components/GiftCardCustomerCard/utils.ts diff --git a/locale/defaultMessages.json b/locale/defaultMessages.json index ecaf77e87b2..b7a0f4c9b66 100644 --- a/locale/defaultMessages.json +++ b/locale/defaultMessages.json @@ -3841,7 +3841,7 @@ }, "src_dot_giftCards_dot_GiftCardsList_dot_codeEndingWithLabel": { "context": "GiftCardsListTable code ending with label", - "string": "Code ending with {displayCode}" + "string": "Code ending with {last4CodeChars}" }, "src_dot_giftCards_dot_GiftCardsList_dot_createGiftCardProduct": { "context": "GiftCardsListHeader alert", diff --git a/schema.graphql b/schema.graphql index 67a4b7dc7e1..4989a406ee8 100644 --- a/schema.graphql +++ b/schema.graphql @@ -5,27 +5,39 @@ schema { type AccountAddressCreate { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! address: Address } type AccountAddressDelete { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! address: Address } type AccountAddressUpdate { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! address: Address } type AccountDelete { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! user: User } @@ -83,7 +95,10 @@ input AccountInput { type AccountRegister { requiresConfirmation: Boolean - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! user: User } @@ -100,18 +115,27 @@ input AccountRegisterInput { } type AccountRequestDeletion { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } type AccountSetDefaultAddress { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } type AccountUpdate { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! user: User } @@ -135,14 +159,20 @@ type Address implements Node { type AddressCreate { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! address: Address } type AddressDelete { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! address: Address } @@ -163,7 +193,10 @@ input AddressInput { type AddressSetDefault { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -174,7 +207,10 @@ enum AddressTypeEnum { type AddressUpdate { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! address: Address } @@ -229,7 +265,10 @@ type App implements Node & ObjectWithMetadata { } type AppActivate { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! app: App } @@ -247,25 +286,37 @@ type AppCountableEdge { type AppCreate { authToken: String - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! app: App } type AppDeactivate { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! app: App } type AppDelete { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! app: App } type AppDeleteFailedInstallation { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! appInstallation: AppInstallation } @@ -338,7 +389,10 @@ enum AppExtensionViewEnum { type AppFetchManifest { manifest: Manifest - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! } @@ -354,7 +408,10 @@ input AppInput { } type AppInstall { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! appInstallation: AppInstallation } @@ -386,7 +443,10 @@ type AppManifestExtension { } type AppRetryInstall { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! appInstallation: AppInstallation } @@ -409,13 +469,19 @@ type AppToken implements Node { type AppTokenCreate { authToken: String - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! appToken: AppToken } type AppTokenDelete { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! appToken: AppToken } @@ -427,7 +493,10 @@ input AppTokenInput { type AppTokenVerify { valid: Boolean! - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! } @@ -437,7 +506,10 @@ enum AppTypeEnum { } type AppUpdate { - appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + appErrors: [AppError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AppError!]! app: App } @@ -453,7 +525,10 @@ enum AreaUnitsEnum { type AssignNavigation { menu: Menu - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MenuError!]! } @@ -464,8 +539,18 @@ type AssignedVariantAttribute { type Attribute implements Node & ObjectWithMetadata { id: ID! - productTypes(before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection! - productVariantTypes(before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection! + productTypes( + before: String + after: String + first: Int + last: Int + ): ProductTypeCountableConnection! + productVariantTypes( + before: String + after: String + first: Int + last: Int + ): ProductTypeCountableConnection! privateMetadata: [MetadataItem]! metadata: [MetadataItem]! inputType: AttributeInputTypeEnum @@ -474,7 +559,14 @@ type Attribute implements Node & ObjectWithMetadata { slug: String type: AttributeTypeEnum unit: MeasurementUnitsEnum - choices(sortBy: AttributeChoicesSortingInput, filter: AttributeValueFilterInput, before: String, after: String, first: Int, last: Int): AttributeValueCountableConnection + choices( + sortBy: AttributeChoicesSortingInput + filter: AttributeValueFilterInput + before: String + after: String + first: Int + last: Int + ): AttributeValueCountableConnection valueRequired: Boolean! visibleInStorefront: Boolean! filterableInStorefront: Boolean! @@ -487,7 +579,10 @@ type Attribute implements Node & ObjectWithMetadata { type AttributeBulkDelete { count: Int! - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AttributeError!]! } @@ -514,7 +609,10 @@ type AttributeCountableEdge { type AttributeCreate { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AttributeError!]! } @@ -536,7 +634,10 @@ input AttributeCreateInput { } type AttributeDelete { - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AttributeError!]! attribute: Attribute } @@ -601,7 +702,10 @@ enum AttributeInputTypeEnum { type AttributeReorderValues { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AttributeError!]! } @@ -626,11 +730,17 @@ type AttributeTranslatableContent implements Node { id: ID! name: String! translation(languageCode: LanguageCodeEnum!): AttributeTranslation - attribute: Attribute @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") + attribute: Attribute + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type AttributeTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! attribute: Attribute } @@ -648,7 +758,10 @@ enum AttributeTypeEnum { type AttributeUpdate { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AttributeError!]! } @@ -684,7 +797,10 @@ type AttributeValue implements Node { type AttributeValueBulkDelete { count: Int! - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AttributeError!]! } @@ -701,7 +817,10 @@ type AttributeValueCountableEdge { type AttributeValueCreate { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AttributeError!]! attributeValue: AttributeValue } @@ -716,7 +835,10 @@ input AttributeValueCreateInput { type AttributeValueDelete { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AttributeError!]! attributeValue: AttributeValue } @@ -742,11 +864,17 @@ type AttributeValueTranslatableContent implements Node { name: String! richText: JSONString translation(languageCode: LanguageCodeEnum!): AttributeValueTranslation - attributeValue: AttributeValue @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") + attributeValue: AttributeValue + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type AttributeValueTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! attributeValue: AttributeValue } @@ -765,7 +893,10 @@ input AttributeValueTranslationInput { type AttributeValueUpdate { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + attributeErrors: [AttributeError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AttributeError!]! attributeValue: AttributeValue } @@ -822,17 +953,39 @@ type Category implements Node & ObjectWithMetadata { level: Int! privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") - ancestors(before: String, after: String, first: Int, last: Int): CategoryCountableConnection - products(channel: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection - children(before: String, after: String, first: Int, last: Int): CategoryCountableConnection + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) + ancestors( + before: String + after: String + first: Int + last: Int + ): CategoryCountableConnection + products( + channel: String + before: String + after: String + first: Int + last: Int + ): ProductCountableConnection + children( + before: String + after: String + first: Int + last: Int + ): CategoryCountableConnection backgroundImage(size: Int): Image translation(languageCode: LanguageCodeEnum!): CategoryTranslation } type CategoryBulkDelete { count: Int! - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -848,13 +1001,19 @@ type CategoryCountableEdge { } type CategoryCreate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! category: Category } type CategoryDelete { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! category: Category } @@ -892,13 +1051,22 @@ type CategoryTranslatableContent implements Node { seoDescription: String name: String! description: JSONString - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) translation(languageCode: LanguageCodeEnum!): CategoryTranslation - category: Category @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") + category: Category + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type CategoryTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! category: Category } @@ -910,11 +1078,17 @@ type CategoryTranslation implements Node { name: String description: JSONString language: LanguageDisplay! - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) } type CategoryUpdate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! category: Category } @@ -931,12 +1105,18 @@ type Channel implements Node { type ChannelActivate { channel: Channel - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + channelErrors: [ChannelError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ChannelError!]! } type ChannelCreate { - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + channelErrors: [ChannelError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ChannelError!]! channel: Channel } @@ -952,12 +1132,18 @@ input ChannelCreateInput { type ChannelDeactivate { channel: Channel - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + channelErrors: [ChannelError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ChannelError!]! } type ChannelDelete { - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + channelErrors: [ChannelError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ChannelError!]! channel: Channel } @@ -986,7 +1172,10 @@ enum ChannelErrorCode { } type ChannelUpdate { - channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + channelErrors: [ChannelError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ChannelError!]! channel: Channel } @@ -1025,7 +1214,10 @@ type Checkout implements Node & ObjectWithMetadata { stockReservationExpires: DateTime lines: [CheckoutLine] shippingPrice: TaxedMoney - shippingMethod: ShippingMethod @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.") + shippingMethod: ShippingMethod + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead." + ) deliveryMethod: DeliveryMethod subtotalPrice: TaxedMoney token: UUID! @@ -1035,13 +1227,19 @@ type Checkout implements Node & ObjectWithMetadata { type CheckoutAddPromoCode { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } type CheckoutBillingAddressUpdate { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } @@ -1049,7 +1247,10 @@ type CheckoutComplete { order: Order confirmationNeeded: Boolean! confirmationData: JSONString - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } @@ -1065,8 +1266,14 @@ type CheckoutCountableEdge { } type CheckoutCreate { - created: Boolean @deprecated(reason: "This field will be removed in Saleor 4.0. Always returns `True`.") - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + created: Boolean + @deprecated( + reason: "This field will be removed in Saleor 4.0. Always returns `True`." + ) + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! checkout: Checkout } @@ -1082,13 +1289,19 @@ input CheckoutCreateInput { type CheckoutCustomerAttach { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } type CheckoutCustomerDetach { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } @@ -1099,7 +1312,10 @@ type CheckoutDeliveryMethodUpdate { type CheckoutEmailUpdate { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } @@ -1141,7 +1357,10 @@ enum CheckoutErrorCode { type CheckoutLanguageCodeUpdate { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } @@ -1166,7 +1385,10 @@ type CheckoutLineCountableEdge { type CheckoutLineDelete { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } @@ -1177,38 +1399,56 @@ input CheckoutLineInput { type CheckoutLinesAdd { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } type CheckoutLinesUpdate { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } type CheckoutPaymentCreate { checkout: Checkout payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + paymentErrors: [PaymentError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PaymentError!]! } type CheckoutRemovePromoCode { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } type CheckoutShippingAddressUpdate { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } type CheckoutShippingMethodUpdate { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + checkoutErrors: [CheckoutError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CheckoutError!]! } @@ -1227,8 +1467,18 @@ type Collection implements Node & ObjectWithMetadata { privateMetadata: [MetadataItem]! metadata: [MetadataItem]! channel: String - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") - products(filter: ProductFilterInput, sortBy: ProductOrder, before: String, after: String, first: Int, last: Int): ProductCountableConnection + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) + products( + filter: ProductFilterInput + sortBy: ProductOrder + before: String + after: String + first: Int + last: Int + ): ProductCountableConnection backgroundImage(size: Int): Image translation(languageCode: LanguageCodeEnum!): CollectionTranslation channelListings: [CollectionChannelListing!] @@ -1236,13 +1486,19 @@ type Collection implements Node & ObjectWithMetadata { type CollectionAddProducts { collection: Collection - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + collectionErrors: [CollectionError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CollectionError!]! } type CollectionBulkDelete { count: Int! - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + collectionErrors: [CollectionError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CollectionError!]! } @@ -1264,7 +1520,10 @@ type CollectionChannelListingError { type CollectionChannelListingUpdate { collection: Collection - collectionChannelListingErrors: [CollectionChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + collectionChannelListingErrors: [CollectionChannelListingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CollectionChannelListingError!]! } @@ -1285,7 +1544,10 @@ type CollectionCountableEdge { } type CollectionCreate { - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + collectionErrors: [CollectionError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CollectionError!]! collection: Collection } @@ -1303,7 +1565,10 @@ input CollectionCreateInput { } type CollectionDelete { - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + collectionErrors: [CollectionError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CollectionError!]! collection: Collection } @@ -1351,13 +1616,19 @@ enum CollectionPublished { type CollectionRemoveProducts { collection: Collection - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + collectionErrors: [CollectionError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CollectionError!]! } type CollectionReorderProducts { collection: Collection - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + collectionErrors: [CollectionError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CollectionError!]! } @@ -1380,13 +1651,22 @@ type CollectionTranslatableContent implements Node { seoDescription: String name: String! description: JSONString - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) translation(languageCode: LanguageCodeEnum!): CollectionTranslation - collection: Collection @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") + collection: Collection + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type CollectionTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! collection: Collection } @@ -1398,11 +1678,17 @@ type CollectionTranslation implements Node { name: String description: JSONString language: LanguageDisplay! - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) } type CollectionUpdate { - collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + collectionErrors: [CollectionError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [CollectionError!]! collection: Collection } @@ -1432,13 +1718,19 @@ enum ConfigurationTypeFieldEnum { type ConfirmAccount { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } type ConfirmEmailChange { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -1706,7 +1998,10 @@ type CreateToken { refreshToken: String csrfToken: String user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -1720,18 +2015,27 @@ type CreditCard { type CustomerBulkDelete { count: Int! - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } type CustomerCreate { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! user: User } type CustomerDelete { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! user: User } @@ -1784,7 +2088,10 @@ input CustomerInput { } type CustomerUpdate { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! user: User } @@ -1804,18 +2111,27 @@ input DateTimeRangeInput { } type DeactivateAllUserTokens { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } type DeleteMetadata { - metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + metadataErrors: [MetadataError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MetadataError!]! item: ObjectWithMetadata } type DeletePrivateMetadata { - metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + metadataErrors: [MetadataError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MetadataError!]! item: ObjectWithMetadata } @@ -1849,13 +2165,19 @@ type DigitalContentCountableEdge { type DigitalContentCreate { variant: ProductVariant content: DigitalContent - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } type DigitalContentDelete { variant: ProductVariant - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -1869,7 +2191,10 @@ input DigitalContentInput { type DigitalContentUpdate { variant: ProductVariant content: DigitalContent - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -1891,7 +2216,10 @@ type DigitalContentUrl implements Node { } type DigitalContentUrlCreate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! digitalContentUrl: DigitalContentUrl } @@ -1947,18 +2275,27 @@ type Domain { type DraftOrderBulkDelete { count: Int! - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } type DraftOrderComplete { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } type DraftOrderCreate { - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! order: Order } @@ -1978,7 +2315,10 @@ input DraftOrderCreateInput { } type DraftOrderDelete { - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! order: Order } @@ -1998,12 +2338,18 @@ input DraftOrderInput { type DraftOrderLinesBulkDelete { count: Int! - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } type DraftOrderUpdate { - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! order: Order } @@ -2102,7 +2448,10 @@ input ExportInfoInput { type ExportProducts { exportFile: ExportFile - exportErrors: [ExportError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + exportErrors: [ExportError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ExportError!]! } @@ -2127,13 +2476,19 @@ type ExternalAuthentication { type ExternalAuthenticationUrl { authenticationData: JSONString - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } type ExternalLogout { logoutData: JSONString - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -2165,7 +2520,10 @@ type ExternalObtainAccessTokens { refreshToken: String csrfToken: String user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -2174,7 +2532,10 @@ type ExternalRefresh { refreshToken: String csrfToken: String user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -2182,7 +2543,10 @@ type ExternalVerify { user: User isValid: Boolean! verifyData: JSONString - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -2198,7 +2562,10 @@ enum FileTypesEnum { type FileUpload { uploadedFile: File - uploadErrors: [UploadError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + uploadErrors: [UploadError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [UploadError!]! } @@ -2218,14 +2585,20 @@ type Fulfillment implements Node & ObjectWithMetadata { type FulfillmentApprove { fulfillment: Fulfillment order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } type FulfillmentCancel { fulfillment: Fulfillment order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -2242,7 +2615,10 @@ type FulfillmentLine implements Node { type FulfillmentRefundProducts { fulfillment: Fulfillment order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -2251,7 +2627,10 @@ type FulfillmentReturnProducts { replaceFulfillment: Fulfillment order: Order replaceOrder: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -2268,7 +2647,10 @@ enum FulfillmentStatus { type FulfillmentUpdateTracking { fulfillment: Fulfillment order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -2296,7 +2678,7 @@ type GiftCard implements Node & ObjectWithMetadata { id: ID! privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - displayCode: String! + last4CodeChars: String! createdBy: User usedBy: User createdByEmail: String @@ -2305,14 +2687,24 @@ type GiftCard implements Node & ObjectWithMetadata { product: Product events: [GiftCardEvent!]! boughtInChannel: String - user: User @deprecated(reason: "This field will be removed in Saleor 4.0. Use `createdBy` field instead.") - endDate: DateTime @deprecated(reason: "This field will be removed in Saleor 4.0. Use `expiryDate` field instead.") - startDate: DateTime @deprecated(reason: "This field will be removed in Saleor 4.0.") + user: User + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `createdBy` field instead." + ) + endDate: DateTime + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `expiryDate` field instead." + ) + startDate: DateTime + @deprecated(reason: "This field will be removed in Saleor 4.0.") } type GiftCardActivate { giftCard: GiftCard - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + giftCardErrors: [GiftCardError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [GiftCardError!]! } @@ -2367,7 +2759,10 @@ type GiftCardCountableEdge { } type GiftCardCreate { - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + giftCardErrors: [GiftCardError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [GiftCardError!]! giftCard: GiftCard } @@ -2387,12 +2782,18 @@ input GiftCardCreateInput { type GiftCardDeactivate { giftCard: GiftCard - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + giftCardErrors: [GiftCardError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [GiftCardError!]! } type GiftCardDelete { - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + giftCardErrors: [GiftCardError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [GiftCardError!]! giftCard: GiftCard } @@ -2519,7 +2920,10 @@ input GiftCardSortingInput { } type GiftCardUpdate { - giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + giftCardErrors: [GiftCardError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [GiftCardError!]! giftCard: GiftCard } @@ -2575,7 +2979,10 @@ type Invoice implements ObjectWithMetadata & Job & Node { } type InvoiceCreate { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + invoiceErrors: [InvoiceError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [InvoiceError!]! invoice: Invoice } @@ -2586,7 +2993,10 @@ input InvoiceCreateInput { } type InvoiceDelete { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + invoiceErrors: [InvoiceError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [InvoiceError!]! invoice: Invoice } @@ -2609,25 +3019,37 @@ enum InvoiceErrorCode { type InvoiceRequest { order: Order - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + invoiceErrors: [InvoiceError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [InvoiceError!]! invoice: Invoice } type InvoiceRequestDelete { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + invoiceErrors: [InvoiceError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [InvoiceError!]! invoice: Invoice } type InvoiceSendNotification { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + invoiceErrors: [InvoiceError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [InvoiceError!]! invoice: Invoice } type InvoiceUpdate { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + invoiceErrors: [InvoiceError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [InvoiceError!]! invoice: Invoice } @@ -3513,7 +3935,10 @@ type Menu implements Node & ObjectWithMetadata { type MenuBulkDelete { count: Int! - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MenuError!]! } @@ -3529,7 +3954,10 @@ type MenuCountableEdge { } type MenuCreate { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MenuError!]! menu: Menu } @@ -3541,7 +3969,10 @@ input MenuCreateInput { } type MenuDelete { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MenuError!]! menu: Menu } @@ -3593,7 +4024,10 @@ type MenuItem implements Node & ObjectWithMetadata { type MenuItemBulkDelete { count: Int! - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MenuError!]! } @@ -3609,7 +4043,10 @@ type MenuItemCountableEdge { } type MenuItemCreate { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MenuError!]! menuItem: MenuItem } @@ -3625,7 +4062,10 @@ input MenuItemCreateInput { } type MenuItemDelete { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MenuError!]! menuItem: MenuItem } @@ -3645,7 +4085,10 @@ input MenuItemInput { type MenuItemMove { menu: Menu - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MenuError!]! } @@ -3664,11 +4107,17 @@ type MenuItemTranslatableContent implements Node { id: ID! name: String! translation(languageCode: LanguageCodeEnum!): MenuItemTranslation - menuItem: MenuItem @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") + menuItem: MenuItem + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type MenuItemTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! menuItem: MenuItem } @@ -3680,7 +4129,10 @@ type MenuItemTranslation implements Node { } type MenuItemUpdate { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MenuError!]! menuItem: MenuItem } @@ -3700,7 +4152,10 @@ input MenuSortingInput { } type MenuUpdate { - menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + menuErrors: [MenuError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MenuError!]! menu: Menu } @@ -3755,136 +4210,308 @@ type Mutation { createWarehouse(input: WarehouseCreateInput!): WarehouseCreate updateWarehouse(id: ID!, input: WarehouseUpdateInput!): WarehouseUpdate deleteWarehouse(id: ID!): WarehouseDelete - assignWarehouseShippingZone(id: ID!, shippingZoneIds: [ID!]!): WarehouseShippingZoneAssign - unassignWarehouseShippingZone(id: ID!, shippingZoneIds: [ID!]!): WarehouseShippingZoneUnassign - staffNotificationRecipientCreate(input: StaffNotificationRecipientInput!): StaffNotificationRecipientCreate - staffNotificationRecipientUpdate(id: ID!, input: StaffNotificationRecipientInput!): StaffNotificationRecipientUpdate + assignWarehouseShippingZone( + id: ID! + shippingZoneIds: [ID!]! + ): WarehouseShippingZoneAssign + unassignWarehouseShippingZone( + id: ID! + shippingZoneIds: [ID!]! + ): WarehouseShippingZoneUnassign + staffNotificationRecipientCreate( + input: StaffNotificationRecipientInput! + ): StaffNotificationRecipientCreate + staffNotificationRecipientUpdate( + id: ID! + input: StaffNotificationRecipientInput! + ): StaffNotificationRecipientUpdate staffNotificationRecipientDelete(id: ID!): StaffNotificationRecipientDelete shopDomainUpdate(input: SiteDomainInput): ShopDomainUpdate shopSettingsUpdate(input: ShopSettingsInput!): ShopSettingsUpdate shopFetchTaxRates: ShopFetchTaxRates - shopSettingsTranslate(input: ShopSettingsTranslationInput!, languageCode: LanguageCodeEnum!): ShopSettingsTranslate + shopSettingsTranslate( + input: ShopSettingsTranslationInput! + languageCode: LanguageCodeEnum! + ): ShopSettingsTranslate shopAddressUpdate(input: AddressInput): ShopAddressUpdate orderSettingsUpdate(input: OrderSettingsUpdateInput!): OrderSettingsUpdate - giftCardSettingsUpdate(input: GiftCardSettingsUpdateInput!): GiftCardSettingsUpdate - shippingMethodChannelListingUpdate(id: ID!, input: ShippingMethodChannelListingInput!): ShippingMethodChannelListingUpdate + giftCardSettingsUpdate( + input: GiftCardSettingsUpdateInput! + ): GiftCardSettingsUpdate + shippingMethodChannelListingUpdate( + id: ID! + input: ShippingMethodChannelListingInput! + ): ShippingMethodChannelListingUpdate shippingPriceCreate(input: ShippingPriceInput!): ShippingPriceCreate shippingPriceDelete(id: ID!): ShippingPriceDelete shippingPriceBulkDelete(ids: [ID]!): ShippingPriceBulkDelete shippingPriceUpdate(id: ID!, input: ShippingPriceInput!): ShippingPriceUpdate - shippingPriceTranslate(id: ID!, input: ShippingPriceTranslationInput!, languageCode: LanguageCodeEnum!): ShippingPriceTranslate - shippingPriceExcludeProducts(id: ID!, input: ShippingPriceExcludeProductsInput!): ShippingPriceExcludeProducts - shippingPriceRemoveProductFromExclude(id: ID!, products: [ID]!): ShippingPriceRemoveProductFromExclude + shippingPriceTranslate( + id: ID! + input: ShippingPriceTranslationInput! + languageCode: LanguageCodeEnum! + ): ShippingPriceTranslate + shippingPriceExcludeProducts( + id: ID! + input: ShippingPriceExcludeProductsInput! + ): ShippingPriceExcludeProducts + shippingPriceRemoveProductFromExclude( + id: ID! + products: [ID]! + ): ShippingPriceRemoveProductFromExclude shippingZoneCreate(input: ShippingZoneCreateInput!): ShippingZoneCreate shippingZoneDelete(id: ID!): ShippingZoneDelete shippingZoneBulkDelete(ids: [ID]!): ShippingZoneBulkDelete - shippingZoneUpdate(id: ID!, input: ShippingZoneUpdateInput!): ShippingZoneUpdate - productAttributeAssign(operations: [ProductAttributeAssignInput]!, productTypeId: ID!): ProductAttributeAssign - productAttributeAssignmentUpdate(operations: [ProductAttributeAssignmentUpdateInput]!, productTypeId: ID!): ProductAttributeAssignmentUpdate - productAttributeUnassign(attributeIds: [ID]!, productTypeId: ID!): ProductAttributeUnassign + shippingZoneUpdate( + id: ID! + input: ShippingZoneUpdateInput! + ): ShippingZoneUpdate + productAttributeAssign( + operations: [ProductAttributeAssignInput]! + productTypeId: ID! + ): ProductAttributeAssign + productAttributeAssignmentUpdate( + operations: [ProductAttributeAssignmentUpdateInput]! + productTypeId: ID! + ): ProductAttributeAssignmentUpdate + productAttributeUnassign( + attributeIds: [ID]! + productTypeId: ID! + ): ProductAttributeUnassign categoryCreate(input: CategoryInput!, parent: ID): CategoryCreate categoryDelete(id: ID!): CategoryDelete categoryBulkDelete(ids: [ID]!): CategoryBulkDelete categoryUpdate(id: ID!, input: CategoryInput!): CategoryUpdate - categoryTranslate(id: ID!, input: TranslationInput!, languageCode: LanguageCodeEnum!): CategoryTranslate - collectionAddProducts(collectionId: ID!, products: [ID]!): CollectionAddProducts + categoryTranslate( + id: ID! + input: TranslationInput! + languageCode: LanguageCodeEnum! + ): CategoryTranslate + collectionAddProducts( + collectionId: ID! + products: [ID]! + ): CollectionAddProducts collectionCreate(input: CollectionCreateInput!): CollectionCreate collectionDelete(id: ID!): CollectionDelete - collectionReorderProducts(collectionId: ID!, moves: [MoveProductInput]!): CollectionReorderProducts + collectionReorderProducts( + collectionId: ID! + moves: [MoveProductInput]! + ): CollectionReorderProducts collectionBulkDelete(ids: [ID]!): CollectionBulkDelete - collectionRemoveProducts(collectionId: ID!, products: [ID]!): CollectionRemoveProducts + collectionRemoveProducts( + collectionId: ID! + products: [ID]! + ): CollectionRemoveProducts collectionUpdate(id: ID!, input: CollectionInput!): CollectionUpdate - collectionTranslate(id: ID!, input: TranslationInput!, languageCode: LanguageCodeEnum!): CollectionTranslate - collectionChannelListingUpdate(id: ID!, input: CollectionChannelListingUpdateInput!): CollectionChannelListingUpdate + collectionTranslate( + id: ID! + input: TranslationInput! + languageCode: LanguageCodeEnum! + ): CollectionTranslate + collectionChannelListingUpdate( + id: ID! + input: CollectionChannelListingUpdateInput! + ): CollectionChannelListingUpdate productCreate(input: ProductCreateInput!): ProductCreate productDelete(id: ID!): ProductDelete productBulkDelete(ids: [ID]!): ProductBulkDelete productUpdate(id: ID!, input: ProductInput!): ProductUpdate - productTranslate(id: ID!, input: TranslationInput!, languageCode: LanguageCodeEnum!): ProductTranslate - productChannelListingUpdate(id: ID!, input: ProductChannelListingUpdateInput!): ProductChannelListingUpdate + productTranslate( + id: ID! + input: TranslationInput! + languageCode: LanguageCodeEnum! + ): ProductTranslate + productChannelListingUpdate( + id: ID! + input: ProductChannelListingUpdateInput! + ): ProductChannelListingUpdate productMediaCreate(input: ProductMediaCreateInput!): ProductMediaCreate - productVariantReorder(moves: [ReorderInput]!, productId: ID!): ProductVariantReorder + productVariantReorder( + moves: [ReorderInput]! + productId: ID! + ): ProductVariantReorder productMediaDelete(id: ID!): ProductMediaDelete productMediaBulkDelete(ids: [ID]!): ProductMediaBulkDelete productMediaReorder(mediaIds: [ID]!, productId: ID!): ProductMediaReorder - productMediaUpdate(id: ID!, input: ProductMediaUpdateInput!): ProductMediaUpdate + productMediaUpdate( + id: ID! + input: ProductMediaUpdateInput! + ): ProductMediaUpdate productTypeCreate(input: ProductTypeInput!): ProductTypeCreate productTypeDelete(id: ID!): ProductTypeDelete productTypeBulkDelete(ids: [ID]!): ProductTypeBulkDelete productTypeUpdate(id: ID!, input: ProductTypeInput!): ProductTypeUpdate - productTypeReorderAttributes(moves: [ReorderInput]!, productTypeId: ID!, type: ProductAttributeType!): ProductTypeReorderAttributes - productReorderAttributeValues(attributeId: ID!, moves: [ReorderInput]!, productId: ID!): ProductReorderAttributeValues - digitalContentCreate(input: DigitalContentUploadInput!, variantId: ID!): DigitalContentCreate + productTypeReorderAttributes( + moves: [ReorderInput]! + productTypeId: ID! + type: ProductAttributeType! + ): ProductTypeReorderAttributes + productReorderAttributeValues( + attributeId: ID! + moves: [ReorderInput]! + productId: ID! + ): ProductReorderAttributeValues + digitalContentCreate( + input: DigitalContentUploadInput! + variantId: ID! + ): DigitalContentCreate digitalContentDelete(variantId: ID!): DigitalContentDelete - digitalContentUpdate(input: DigitalContentInput!, variantId: ID!): DigitalContentUpdate - digitalContentUrlCreate(input: DigitalContentUrlCreateInput!): DigitalContentUrlCreate + digitalContentUpdate( + input: DigitalContentInput! + variantId: ID! + ): DigitalContentUpdate + digitalContentUrlCreate( + input: DigitalContentUrlCreateInput! + ): DigitalContentUrlCreate productVariantCreate(input: ProductVariantCreateInput!): ProductVariantCreate productVariantDelete(id: ID!): ProductVariantDelete - productVariantBulkCreate(product: ID!, variants: [ProductVariantBulkCreateInput]!): ProductVariantBulkCreate + productVariantBulkCreate( + product: ID! + variants: [ProductVariantBulkCreateInput]! + ): ProductVariantBulkCreate productVariantBulkDelete(ids: [ID]!): ProductVariantBulkDelete - productVariantStocksCreate(stocks: [StockInput!]!, variantId: ID!): ProductVariantStocksCreate - productVariantStocksDelete(variantId: ID!, warehouseIds: [ID!]): ProductVariantStocksDelete - productVariantStocksUpdate(stocks: [StockInput!]!, variantId: ID!): ProductVariantStocksUpdate - productVariantUpdate(id: ID!, input: ProductVariantInput!): ProductVariantUpdate - productVariantSetDefault(productId: ID!, variantId: ID!): ProductVariantSetDefault - productVariantTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): ProductVariantTranslate - productVariantChannelListingUpdate(id: ID!, input: [ProductVariantChannelListingAddInput!]!): ProductVariantChannelListingUpdate - productVariantReorderAttributeValues(attributeId: ID!, moves: [ReorderInput]!, variantId: ID!): ProductVariantReorderAttributeValues + productVariantStocksCreate( + stocks: [StockInput!]! + variantId: ID! + ): ProductVariantStocksCreate + productVariantStocksDelete( + variantId: ID! + warehouseIds: [ID!] + ): ProductVariantStocksDelete + productVariantStocksUpdate( + stocks: [StockInput!]! + variantId: ID! + ): ProductVariantStocksUpdate + productVariantUpdate( + id: ID! + input: ProductVariantInput! + ): ProductVariantUpdate + productVariantSetDefault( + productId: ID! + variantId: ID! + ): ProductVariantSetDefault + productVariantTranslate( + id: ID! + input: NameTranslationInput! + languageCode: LanguageCodeEnum! + ): ProductVariantTranslate + productVariantChannelListingUpdate( + id: ID! + input: [ProductVariantChannelListingAddInput!]! + ): ProductVariantChannelListingUpdate + productVariantReorderAttributeValues( + attributeId: ID! + moves: [ReorderInput]! + variantId: ID! + ): ProductVariantReorderAttributeValues productVariantPreorderDeactivate(id: ID!): ProductVariantPreorderDeactivate variantMediaAssign(mediaId: ID!, variantId: ID!): VariantMediaAssign variantMediaUnassign(mediaId: ID!, variantId: ID!): VariantMediaUnassign paymentCapture(amount: PositiveDecimal, paymentId: ID!): PaymentCapture paymentRefund(amount: PositiveDecimal, paymentId: ID!): PaymentRefund paymentVoid(paymentId: ID!): PaymentVoid - paymentInitialize(channel: String, gateway: String!, paymentData: JSONString): PaymentInitialize + paymentInitialize( + channel: String + gateway: String! + paymentData: JSONString + ): PaymentInitialize pageCreate(input: PageCreateInput!): PageCreate pageDelete(id: ID!): PageDelete pageBulkDelete(ids: [ID]!): PageBulkDelete pageBulkPublish(ids: [ID]!, isPublished: Boolean!): PageBulkPublish pageUpdate(id: ID!, input: PageInput!): PageUpdate - pageTranslate(id: ID!, input: PageTranslationInput!, languageCode: LanguageCodeEnum!): PageTranslate + pageTranslate( + id: ID! + input: PageTranslationInput! + languageCode: LanguageCodeEnum! + ): PageTranslate pageTypeCreate(input: PageTypeCreateInput!): PageTypeCreate pageTypeUpdate(id: ID, input: PageTypeUpdateInput!): PageTypeUpdate pageTypeDelete(id: ID!): PageTypeDelete pageTypeBulkDelete(ids: [ID!]!): PageTypeBulkDelete - pageAttributeAssign(attributeIds: [ID!]!, pageTypeId: ID!): PageAttributeAssign - pageAttributeUnassign(attributeIds: [ID!]!, pageTypeId: ID!): PageAttributeUnassign - pageTypeReorderAttributes(moves: [ReorderInput!]!, pageTypeId: ID!): PageTypeReorderAttributes - pageReorderAttributeValues(attributeId: ID!, moves: [ReorderInput]!, pageId: ID!): PageReorderAttributeValues + pageAttributeAssign( + attributeIds: [ID!]! + pageTypeId: ID! + ): PageAttributeAssign + pageAttributeUnassign( + attributeIds: [ID!]! + pageTypeId: ID! + ): PageAttributeUnassign + pageTypeReorderAttributes( + moves: [ReorderInput!]! + pageTypeId: ID! + ): PageTypeReorderAttributes + pageReorderAttributeValues( + attributeId: ID! + moves: [ReorderInput]! + pageId: ID! + ): PageReorderAttributeValues draftOrderComplete(id: ID!): DraftOrderComplete draftOrderCreate(input: DraftOrderCreateInput!): DraftOrderCreate draftOrderDelete(id: ID!): DraftOrderDelete draftOrderBulkDelete(ids: [ID]!): DraftOrderBulkDelete - draftOrderLinesBulkDelete(ids: [ID]!): DraftOrderLinesBulkDelete @deprecated(reason: "This field will be removed in Saleor 4.0.") + draftOrderLinesBulkDelete(ids: [ID]!): DraftOrderLinesBulkDelete + @deprecated(reason: "This field will be removed in Saleor 4.0.") draftOrderUpdate(id: ID!, input: DraftOrderInput!): DraftOrderUpdate orderAddNote(order: ID!, input: OrderAddNoteInput!): OrderAddNote orderCancel(id: ID!): OrderCancel orderCapture(amount: PositiveDecimal!, id: ID!): OrderCapture orderConfirm(id: ID!): OrderConfirm orderFulfill(input: OrderFulfillInput!, order: ID): OrderFulfill - orderFulfillmentCancel(id: ID!, input: FulfillmentCancelInput): FulfillmentCancel - orderFulfillmentApprove(allowStockToBeExceeded: Boolean = false, id: ID!, notifyCustomer: Boolean!): FulfillmentApprove - orderFulfillmentUpdateTracking(id: ID!, input: FulfillmentUpdateTrackingInput!): FulfillmentUpdateTracking - orderFulfillmentRefundProducts(input: OrderRefundProductsInput!, order: ID!): FulfillmentRefundProducts - orderFulfillmentReturnProducts(input: OrderReturnProductsInput!, order: ID!): FulfillmentReturnProducts + orderFulfillmentCancel( + id: ID! + input: FulfillmentCancelInput + ): FulfillmentCancel + orderFulfillmentApprove( + allowStockToBeExceeded: Boolean = false + id: ID! + notifyCustomer: Boolean! + ): FulfillmentApprove + orderFulfillmentUpdateTracking( + id: ID! + input: FulfillmentUpdateTrackingInput! + ): FulfillmentUpdateTracking + orderFulfillmentRefundProducts( + input: OrderRefundProductsInput! + order: ID! + ): FulfillmentRefundProducts + orderFulfillmentReturnProducts( + input: OrderReturnProductsInput! + order: ID! + ): FulfillmentReturnProducts orderLinesCreate(id: ID!, input: [OrderLineCreateInput]!): OrderLinesCreate orderLineDelete(id: ID!): OrderLineDelete orderLineUpdate(id: ID!, input: OrderLineInput!): OrderLineUpdate - orderDiscountAdd(input: OrderDiscountCommonInput!, orderId: ID!): OrderDiscountAdd - orderDiscountUpdate(discountId: ID!, input: OrderDiscountCommonInput!): OrderDiscountUpdate + orderDiscountAdd( + input: OrderDiscountCommonInput! + orderId: ID! + ): OrderDiscountAdd + orderDiscountUpdate( + discountId: ID! + input: OrderDiscountCommonInput! + ): OrderDiscountUpdate orderDiscountDelete(discountId: ID!): OrderDiscountDelete - orderLineDiscountUpdate(input: OrderDiscountCommonInput!, orderLineId: ID!): OrderLineDiscountUpdate + orderLineDiscountUpdate( + input: OrderDiscountCommonInput! + orderLineId: ID! + ): OrderLineDiscountUpdate orderLineDiscountRemove(orderLineId: ID!): OrderLineDiscountRemove orderMarkAsPaid(id: ID!, transactionReference: String): OrderMarkAsPaid orderRefund(amount: PositiveDecimal!, id: ID!): OrderRefund orderUpdate(id: ID!, input: OrderUpdateInput!): OrderUpdate - orderUpdateShipping(order: ID!, input: OrderUpdateShippingInput!): OrderUpdateShipping + orderUpdateShipping( + order: ID! + input: OrderUpdateShippingInput! + ): OrderUpdateShipping orderVoid(id: ID!): OrderVoid orderBulkCancel(ids: [ID]!): OrderBulkCancel deleteMetadata(id: ID!, keys: [String!]!): DeleteMetadata deletePrivateMetadata(id: ID!, keys: [String!]!): DeletePrivateMetadata updateMetadata(id: ID!, input: [MetadataInput!]!): UpdateMetadata - updatePrivateMetadata(id: ID!, input: [MetadataInput!]!): UpdatePrivateMetadata + updatePrivateMetadata( + id: ID! + input: [MetadataInput!]! + ): UpdatePrivateMetadata assignNavigation(menu: ID, navigationType: NavigationType!): AssignNavigation menuCreate(input: MenuCreateInput!): MenuCreate menuDelete(id: ID!): MenuDelete @@ -3894,7 +4521,11 @@ type Mutation { menuItemDelete(id: ID!): MenuItemDelete menuItemBulkDelete(ids: [ID]!): MenuItemBulkDelete menuItemUpdate(id: ID!, input: MenuItemInput!): MenuItemUpdate - menuItemTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): MenuItemTranslate + menuItemTranslate( + id: ID! + input: NameTranslationInput! + languageCode: LanguageCodeEnum! + ): MenuItemTranslate menuItemMove(menu: ID!, moves: [MenuItemMoveInput]!): MenuItemMove invoiceRequest(number: String, orderId: ID!): InvoiceRequest invoiceRequestDelete(id: ID!): InvoiceRequestDelete @@ -3914,42 +4545,123 @@ type Mutation { giftCardBulkActivate(ids: [ID]!): GiftCardBulkActivate giftCardBulkDeactivate(ids: [ID]!): GiftCardBulkDeactivate pluginUpdate(channelId: ID, id: ID!, input: PluginUpdateInput!): PluginUpdate - externalNotificationTrigger(channel: String!, input: ExternalNotificationTriggerInput!, pluginId: String): ExternalNotificationTrigger + externalNotificationTrigger( + channel: String! + input: ExternalNotificationTriggerInput! + pluginId: String + ): ExternalNotificationTrigger saleCreate(input: SaleInput!): SaleCreate saleDelete(id: ID!): SaleDelete saleBulkDelete(ids: [ID]!): SaleBulkDelete saleUpdate(id: ID!, input: SaleInput!): SaleUpdate saleCataloguesAdd(id: ID!, input: CatalogueInput!): SaleAddCatalogues saleCataloguesRemove(id: ID!, input: CatalogueInput!): SaleRemoveCatalogues - saleTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): SaleTranslate - saleChannelListingUpdate(id: ID!, input: SaleChannelListingInput!): SaleChannelListingUpdate + saleTranslate( + id: ID! + input: NameTranslationInput! + languageCode: LanguageCodeEnum! + ): SaleTranslate + saleChannelListingUpdate( + id: ID! + input: SaleChannelListingInput! + ): SaleChannelListingUpdate voucherCreate(input: VoucherInput!): VoucherCreate voucherDelete(id: ID!): VoucherDelete voucherBulkDelete(ids: [ID]!): VoucherBulkDelete voucherUpdate(id: ID!, input: VoucherInput!): VoucherUpdate voucherCataloguesAdd(id: ID!, input: CatalogueInput!): VoucherAddCatalogues - voucherCataloguesRemove(id: ID!, input: CatalogueInput!): VoucherRemoveCatalogues - voucherTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): VoucherTranslate - voucherChannelListingUpdate(id: ID!, input: VoucherChannelListingInput!): VoucherChannelListingUpdate + voucherCataloguesRemove( + id: ID! + input: CatalogueInput! + ): VoucherRemoveCatalogues + voucherTranslate( + id: ID! + input: NameTranslationInput! + languageCode: LanguageCodeEnum! + ): VoucherTranslate + voucherChannelListingUpdate( + id: ID! + input: VoucherChannelListingInput! + ): VoucherChannelListingUpdate exportProducts(input: ExportProductsInput!): ExportProducts exportGiftCards(input: ExportGiftCardsInput!): ExportGiftCards fileUpload(file: Upload!): FileUpload - checkoutAddPromoCode(checkoutId: ID, promoCode: String!, token: UUID): CheckoutAddPromoCode - checkoutBillingAddressUpdate(billingAddress: AddressInput!, checkoutId: ID, token: UUID): CheckoutBillingAddressUpdate - checkoutComplete(checkoutId: ID, paymentData: JSONString, redirectUrl: String, storeSource: Boolean = false, token: UUID): CheckoutComplete + checkoutAddPromoCode( + checkoutId: ID + promoCode: String! + token: UUID + ): CheckoutAddPromoCode + checkoutBillingAddressUpdate( + billingAddress: AddressInput! + checkoutId: ID + token: UUID + ): CheckoutBillingAddressUpdate + checkoutComplete( + checkoutId: ID + paymentData: JSONString + redirectUrl: String + storeSource: Boolean = false + token: UUID + ): CheckoutComplete checkoutCreate(input: CheckoutCreateInput!): CheckoutCreate - checkoutCustomerAttach(checkoutId: ID, customerId: ID, token: UUID): CheckoutCustomerAttach + checkoutCustomerAttach( + checkoutId: ID + customerId: ID + token: UUID + ): CheckoutCustomerAttach checkoutCustomerDetach(checkoutId: ID, token: UUID): CheckoutCustomerDetach - checkoutEmailUpdate(checkoutId: ID, email: String!, token: UUID): CheckoutEmailUpdate - checkoutLineDelete(checkoutId: ID, lineId: ID, token: UUID): CheckoutLineDelete - checkoutLinesAdd(checkoutId: ID, lines: [CheckoutLineInput]!, token: UUID): CheckoutLinesAdd - checkoutLinesUpdate(checkoutId: ID, lines: [CheckoutLineInput]!, token: UUID): CheckoutLinesUpdate - checkoutRemovePromoCode(checkoutId: ID, promoCode: String!, token: UUID): CheckoutRemovePromoCode - checkoutPaymentCreate(checkoutId: ID, input: PaymentInput!, token: UUID): CheckoutPaymentCreate - checkoutShippingAddressUpdate(checkoutId: ID, shippingAddress: AddressInput!, token: UUID): CheckoutShippingAddressUpdate - checkoutShippingMethodUpdate(checkoutId: ID, shippingMethodId: ID!, token: UUID): CheckoutShippingMethodUpdate @deprecated(reason: "This field will be removed in Saleor 4.0. Use `checkoutDeliveryMethodUpdate` instead.") - checkoutDeliveryMethodUpdate(deliveryMethodId: ID, token: UUID): CheckoutDeliveryMethodUpdate - checkoutLanguageCodeUpdate(checkoutId: ID, languageCode: LanguageCodeEnum!, token: UUID): CheckoutLanguageCodeUpdate + checkoutEmailUpdate( + checkoutId: ID + email: String! + token: UUID + ): CheckoutEmailUpdate + checkoutLineDelete( + checkoutId: ID + lineId: ID + token: UUID + ): CheckoutLineDelete + checkoutLinesAdd( + checkoutId: ID + lines: [CheckoutLineInput]! + token: UUID + ): CheckoutLinesAdd + checkoutLinesUpdate( + checkoutId: ID + lines: [CheckoutLineInput]! + token: UUID + ): CheckoutLinesUpdate + checkoutRemovePromoCode( + checkoutId: ID + promoCode: String! + token: UUID + ): CheckoutRemovePromoCode + checkoutPaymentCreate( + checkoutId: ID + input: PaymentInput! + token: UUID + ): CheckoutPaymentCreate + checkoutShippingAddressUpdate( + checkoutId: ID + shippingAddress: AddressInput! + token: UUID + ): CheckoutShippingAddressUpdate + checkoutShippingMethodUpdate( + checkoutId: ID + shippingMethodId: ID! + token: UUID + ): CheckoutShippingMethodUpdate + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `checkoutDeliveryMethodUpdate` instead." + ) + checkoutDeliveryMethodUpdate( + deliveryMethodId: ID + token: UUID + ): CheckoutDeliveryMethodUpdate + checkoutLanguageCodeUpdate( + checkoutId: ID + languageCode: LanguageCodeEnum! + token: UUID + ): CheckoutLanguageCodeUpdate channelCreate(input: ChannelCreateInput!): ChannelCreate channelUpdate(id: ID!, input: ChannelUpdateInput!): ChannelUpdate channelDelete(id: ID!, input: ChannelDeleteInput): ChannelDelete @@ -3958,14 +4670,31 @@ type Mutation { attributeCreate(input: AttributeCreateInput!): AttributeCreate attributeDelete(id: ID!): AttributeDelete attributeUpdate(id: ID!, input: AttributeUpdateInput!): AttributeUpdate - attributeTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): AttributeTranslate + attributeTranslate( + id: ID! + input: NameTranslationInput! + languageCode: LanguageCodeEnum! + ): AttributeTranslate attributeBulkDelete(ids: [ID]!): AttributeBulkDelete attributeValueBulkDelete(ids: [ID]!): AttributeValueBulkDelete - attributeValueCreate(attribute: ID!, input: AttributeValueCreateInput!): AttributeValueCreate + attributeValueCreate( + attribute: ID! + input: AttributeValueCreateInput! + ): AttributeValueCreate attributeValueDelete(id: ID!): AttributeValueDelete - attributeValueUpdate(id: ID!, input: AttributeValueUpdateInput!): AttributeValueUpdate - attributeValueTranslate(id: ID!, input: AttributeValueTranslationInput!, languageCode: LanguageCodeEnum!): AttributeValueTranslate - attributeReorderValues(attributeId: ID!, moves: [ReorderInput]!): AttributeReorderValues + attributeValueUpdate( + id: ID! + input: AttributeValueUpdateInput! + ): AttributeValueUpdate + attributeValueTranslate( + id: ID! + input: AttributeValueTranslationInput! + languageCode: LanguageCodeEnum! + ): AttributeValueTranslate + attributeReorderValues( + attributeId: ID! + moves: [ReorderInput]! + ): AttributeReorderValues appCreate(input: AppInput!): AppCreate appUpdate(id: ID!, input: AppInput!): AppUpdate appDelete(id: ID!): AppDelete @@ -3973,7 +4702,10 @@ type Mutation { appTokenDelete(id: ID!): AppTokenDelete appTokenVerify(token: String!): AppTokenVerify appInstall(input: AppInstallInput!): AppInstall - appRetryInstall(activateAfterInstallation: Boolean = true, id: ID!): AppRetryInstall + appRetryInstall( + activateAfterInstallation: Boolean = true + id: ID! + ): AppRetryInstall appDeleteFailedInstallation(id: ID!): AppDeleteFailedInstallation appFetchManifest(manifestUrl: String!): AppFetchManifest appActivate(id: ID!): AppActivate @@ -3982,29 +4714,57 @@ type Mutation { tokenRefresh(csrfToken: String, refreshToken: String): RefreshToken tokenVerify(token: String!): VerifyToken tokensDeactivateAll: DeactivateAllUserTokens - externalAuthenticationUrl(input: JSONString!, pluginId: String!): ExternalAuthenticationUrl - externalObtainAccessTokens(input: JSONString!, pluginId: String!): ExternalObtainAccessTokens + externalAuthenticationUrl( + input: JSONString! + pluginId: String! + ): ExternalAuthenticationUrl + externalObtainAccessTokens( + input: JSONString! + pluginId: String! + ): ExternalObtainAccessTokens externalRefresh(input: JSONString!, pluginId: String!): ExternalRefresh externalLogout(input: JSONString!, pluginId: String!): ExternalLogout externalVerify(input: JSONString!, pluginId: String!): ExternalVerify - requestPasswordReset(channel: String, email: String!, redirectUrl: String!): RequestPasswordReset + requestPasswordReset( + channel: String + email: String! + redirectUrl: String! + ): RequestPasswordReset confirmAccount(email: String!, token: String!): ConfirmAccount setPassword(email: String!, password: String!, token: String!): SetPassword passwordChange(newPassword: String!, oldPassword: String!): PasswordChange - requestEmailChange(channel: String, newEmail: String!, password: String!, redirectUrl: String!): RequestEmailChange + requestEmailChange( + channel: String + newEmail: String! + password: String! + redirectUrl: String! + ): RequestEmailChange confirmEmailChange(channel: String, token: String!): ConfirmEmailChange - accountAddressCreate(input: AddressInput!, type: AddressTypeEnum): AccountAddressCreate + accountAddressCreate( + input: AddressInput! + type: AddressTypeEnum + ): AccountAddressCreate accountAddressUpdate(id: ID!, input: AddressInput!): AccountAddressUpdate accountAddressDelete(id: ID!): AccountAddressDelete - accountSetDefaultAddress(id: ID!, type: AddressTypeEnum!): AccountSetDefaultAddress + accountSetDefaultAddress( + id: ID! + type: AddressTypeEnum! + ): AccountSetDefaultAddress accountRegister(input: AccountRegisterInput!): AccountRegister accountUpdate(input: AccountInput!): AccountUpdate - accountRequestDeletion(channel: String, redirectUrl: String!): AccountRequestDeletion + accountRequestDeletion( + channel: String + redirectUrl: String! + ): AccountRequestDeletion accountDelete(token: String!): AccountDelete addressCreate(input: AddressInput!, userId: ID!): AddressCreate addressUpdate(id: ID!, input: AddressInput!): AddressUpdate addressDelete(id: ID!): AddressDelete - addressSetDefault(addressId: ID!, type: AddressTypeEnum!, userId: ID!): AddressSetDefault + addressSetDefault( + addressId: ID! + type: AddressTypeEnum! + userId: ID! + ): AddressSetDefault customerCreate(input: UserCreateInput!): CustomerCreate customerUpdate(id: ID!, input: CustomerInput!): CustomerUpdate customerDelete(id: ID!): CustomerDelete @@ -4016,8 +4776,13 @@ type Mutation { userAvatarUpdate(image: Upload!): UserAvatarUpdate userAvatarDelete: UserAvatarDelete userBulkSetActive(ids: [ID]!, isActive: Boolean!): UserBulkSetActive - permissionGroupCreate(input: PermissionGroupCreateInput!): PermissionGroupCreate - permissionGroupUpdate(id: ID!, input: PermissionGroupUpdateInput!): PermissionGroupUpdate + permissionGroupCreate( + input: PermissionGroupCreateInput! + ): PermissionGroupCreate + permissionGroupUpdate( + id: ID! + input: PermissionGroupUpdateInput! + ): PermissionGroupUpdate permissionGroupDelete(id: ID!): PermissionGroupDelete } @@ -4076,7 +4841,10 @@ type Order implements Node & ObjectWithMetadata { payments: [Payment] total: TaxedMoney! undiscountedTotal: TaxedMoney! - shippingMethod: ShippingMethod @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.") + shippingMethod: ShippingMethod + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead." + ) subtotal: TaxedMoney! statusDisplay: String canFinalize: Boolean! @@ -4087,11 +4855,23 @@ type Order implements Node & ObjectWithMetadata { userEmail: String isShippingRequired: Boolean! deliveryMethod: DeliveryMethod - languageCode: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. ") + languageCode: String! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. " + ) languageCodeEnum: LanguageCodeEnum! - discount: Money @deprecated(reason: "This field will be removed in Saleor 4.0. Use discounts field.") - discountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use discounts field.") - translatedDiscountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use discounts field. ") + discount: Money + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use discounts field." + ) + discountName: String + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use discounts field." + ) + translatedDiscountName: String + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use discounts field. " + ) discounts: [OrderDiscount!] errors: [OrderError!]! } @@ -4106,7 +4886,10 @@ enum OrderAction { type OrderAddNote { order: Order event: OrderEvent - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -4116,25 +4899,37 @@ input OrderAddNoteInput { type OrderBulkCancel { count: Int! - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } type OrderCancel { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } type OrderCapture { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } type OrderConfirm { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -4167,7 +4962,10 @@ type OrderDiscount implements Node { type OrderDiscountAdd { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -4179,7 +4977,10 @@ input OrderDiscountCommonInput { type OrderDiscountDelete { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -4190,7 +4991,10 @@ enum OrderDiscountType { type OrderDiscountUpdate { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -4370,7 +5174,10 @@ input OrderFilterInput { type OrderFulfill { fulfillments: [Fulfillment] order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -4424,21 +5231,30 @@ input OrderLineCreateInput { type OrderLineDelete { order: Order orderLine: OrderLine - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } type OrderLineDiscountRemove { orderLine: OrderLine order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } type OrderLineDiscountUpdate { orderLine: OrderLine order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -4448,7 +5264,10 @@ input OrderLineInput { type OrderLineUpdate { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! orderLine: OrderLine } @@ -4456,13 +5275,19 @@ type OrderLineUpdate { type OrderLinesCreate { order: Order orderLines: [OrderLine!] - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } type OrderMarkAsPaid { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -4474,7 +5299,10 @@ enum OrderOriginEnum { type OrderRefund { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -4532,7 +5360,10 @@ enum OrderSettingsErrorCode { type OrderSettingsUpdate { orderSettings: OrderSettings - orderSettingsErrors: [OrderSettingsError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderSettingsErrors: [OrderSettingsError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderSettingsError!]! } @@ -4576,7 +5407,10 @@ enum OrderStatusFilter { } type OrderUpdate { - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! order: Order } @@ -4589,7 +5423,10 @@ input OrderUpdateInput { type OrderUpdateShipping { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -4599,7 +5436,10 @@ input OrderUpdateShippingInput { type OrderVoid { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + orderErrors: [OrderError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [OrderError!]! } @@ -4616,32 +5456,47 @@ type Page implements Node & ObjectWithMetadata { created: DateTime! privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - contentJson: JSONString! @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.") + contentJson: JSONString! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `content` field instead." + ) translation(languageCode: LanguageCodeEnum!): PageTranslation attributes: [SelectedAttribute!]! } type PageAttributeAssign { pageType: PageType - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! } type PageAttributeUnassign { pageType: PageType - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! } type PageBulkDelete { count: Int! - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! } type PageBulkPublish { count: Int! - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! } @@ -4657,7 +5512,10 @@ type PageCountableEdge { } type PageCreate { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! page: Page } @@ -4674,7 +5532,10 @@ input PageCreateInput { } type PageDelete { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! page: Page } @@ -4723,7 +5584,10 @@ input PageInput { type PageReorderAttributeValues { page: Page - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! } @@ -4746,14 +5610,23 @@ type PageTranslatableContent implements Node { seoDescription: String title: String! content: JSONString - contentJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.") + contentJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `content` field instead." + ) translation(languageCode: LanguageCodeEnum!): PageTranslation - page: Page @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") + page: Page + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) attributeValues: [AttributeValueTranslatableContent!]! } type PageTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! page: PageTranslatableContent } @@ -4765,7 +5638,10 @@ type PageTranslation implements Node { title: String content: JSONString language: LanguageDisplay! - contentJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.") + contentJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `content` field instead." + ) } input PageTranslationInput { @@ -4782,13 +5658,22 @@ type PageType implements Node & ObjectWithMetadata { privateMetadata: [MetadataItem]! metadata: [MetadataItem]! attributes: [Attribute] - availableAttributes(filter: AttributeFilterInput, before: String, after: String, first: Int, last: Int): AttributeCountableConnection + availableAttributes( + filter: AttributeFilterInput + before: String + after: String + first: Int + last: Int + ): AttributeCountableConnection hasPages: Boolean } type PageTypeBulkDelete { count: Int! - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! } @@ -4804,7 +5689,10 @@ type PageTypeCountableEdge { } type PageTypeCreate { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! pageType: PageType } @@ -4816,7 +5704,10 @@ input PageTypeCreateInput { } type PageTypeDelete { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! pageType: PageType } @@ -4827,7 +5718,10 @@ input PageTypeFilterInput { type PageTypeReorderAttributes { pageType: PageType - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! } @@ -4842,7 +5736,10 @@ input PageTypeSortingInput { } type PageTypeUpdate { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! pageType: PageType } @@ -4855,14 +5752,20 @@ input PageTypeUpdateInput { } type PageUpdate { - pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pageErrors: [PageError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PageError!]! page: Page } type PasswordChange { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -4891,7 +5794,10 @@ type Payment implements Node & ObjectWithMetadata { type PaymentCapture { payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + paymentErrors: [PaymentError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PaymentError!]! } @@ -4952,7 +5858,10 @@ type PaymentGateway { type PaymentInitialize { initializedPayment: PaymentInitialized - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + paymentErrors: [PaymentError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PaymentError!]! } @@ -4973,7 +5882,10 @@ input PaymentInput { type PaymentRefund { payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + paymentErrors: [PaymentError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PaymentError!]! } @@ -4986,7 +5898,10 @@ type PaymentSource { type PaymentVoid { payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + paymentErrors: [PaymentError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PaymentError!]! } @@ -5018,7 +5933,10 @@ enum PermissionEnum { } type PermissionGroupCreate { - permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + permissionGroupErrors: [PermissionGroupError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PermissionGroupError!]! group: Group } @@ -5030,7 +5948,10 @@ input PermissionGroupCreateInput { } type PermissionGroupDelete { - permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + permissionGroupErrors: [PermissionGroupError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PermissionGroupError!]! group: Group } @@ -5068,7 +5989,10 @@ input PermissionGroupSortingInput { } type PermissionGroupUpdate { - permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + permissionGroupErrors: [PermissionGroupError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PermissionGroupError!]! group: Group } @@ -5149,7 +6073,10 @@ input PluginStatusInChannelsInput { type PluginUpdate { plugin: Plugin - pluginsErrors: [PluginError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + pluginsErrors: [PluginError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [PluginError!]! } @@ -5208,7 +6135,10 @@ type Product implements Node & ObjectWithMetadata { privateMetadata: [MetadataItem]! metadata: [MetadataItem]! channel: String - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) thumbnail(size: Int): Image pricing(address: AddressInput): ProductPricingInfo isAvailable(address: AddressInput): Boolean @@ -5216,10 +6146,16 @@ type Product implements Node & ObjectWithMetadata { attributes: [SelectedAttribute!]! channelListings: [ProductChannelListing!] mediaById(id: ID): ProductMedia - imageById(id: ID): ProductImage @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `mediaById` field instead.") + imageById(id: ID): ProductImage + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `mediaById` field instead." + ) variants: [ProductVariant] media: [ProductMedia!] - images: [ProductImage] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.") + images: [ProductImage] + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `media` field instead." + ) collections: [Collection] translation(languageCode: LanguageCodeEnum!): ProductTranslation availableForPurchase: Date @@ -5228,7 +6164,10 @@ type Product implements Node & ObjectWithMetadata { type ProductAttributeAssign { productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -5240,7 +6179,10 @@ input ProductAttributeAssignInput { type ProductAttributeAssignmentUpdate { productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -5256,13 +6198,19 @@ enum ProductAttributeType { type ProductAttributeUnassign { productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } type ProductBulkDelete { count: Int! - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -5303,7 +6251,10 @@ type ProductChannelListingError { type ProductChannelListingUpdate { product: Product - productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productChannelListingErrors: [ProductChannelListingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductChannelListingError!]! } @@ -5324,7 +6275,10 @@ type ProductCountableEdge { } type ProductCreate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! product: Product } @@ -5345,7 +6299,10 @@ input ProductCreateInput { } type ProductDelete { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! product: Product } @@ -5445,14 +6402,20 @@ type ProductMedia implements Node { type ProductMediaBulkDelete { count: Int! - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } type ProductMediaCreate { product: Product media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -5466,14 +6429,20 @@ input ProductMediaCreateInput { type ProductMediaDelete { product: Product media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } type ProductMediaReorder { product: Product media: [ProductMedia!] - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -5485,7 +6454,10 @@ enum ProductMediaType { type ProductMediaUpdate { product: Product media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -5524,7 +6496,10 @@ type ProductPricingInfo { type ProductReorderAttributeValues { product: Product - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -5539,14 +6514,23 @@ type ProductTranslatableContent implements Node { seoDescription: String name: String! description: JSONString - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) translation(languageCode: LanguageCodeEnum!): ProductTranslation - product: Product @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") + product: Product + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) attributeValues: [AttributeValueTranslatableContent!]! } type ProductTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! product: Product } @@ -5558,7 +6542,10 @@ type ProductTranslation implements Node { name: String description: JSONString language: LanguageDisplay! - descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.") + descriptionJson: JSONString + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `description` field instead." + ) } type ProductType implements Node & ObjectWithMetadata { @@ -5572,17 +6559,40 @@ type ProductType implements Node & ObjectWithMetadata { privateMetadata: [MetadataItem]! metadata: [MetadataItem]! kind: ProductTypeKindEnum! - products(channel: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection @deprecated(reason: "This field will be removed in Saleor 4.0. Use the top-level `products` query with the `productTypes` filter.") + products( + channel: String + before: String + after: String + first: Int + last: Int + ): ProductCountableConnection + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the top-level `products` query with the `productTypes` filter." + ) taxType: TaxType - variantAttributes(variantSelection: VariantAttributeScope): [Attribute] @deprecated(reason: "This field will be removed in Saleor 4.0. use `assignedVariantAttributes` instead.") - assignedVariantAttributes(variantSelection: VariantAttributeScope): [AssignedVariantAttribute] + variantAttributes(variantSelection: VariantAttributeScope): [Attribute] + @deprecated( + reason: "This field will be removed in Saleor 4.0. use `assignedVariantAttributes` instead." + ) + assignedVariantAttributes( + variantSelection: VariantAttributeScope + ): [AssignedVariantAttribute] productAttributes: [Attribute] - availableAttributes(filter: AttributeFilterInput, before: String, after: String, first: Int, last: Int): AttributeCountableConnection + availableAttributes( + filter: AttributeFilterInput + before: String + after: String + first: Int + last: Int + ): AttributeCountableConnection } type ProductTypeBulkDelete { count: Int! - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -5603,13 +6613,19 @@ type ProductTypeCountableEdge { } type ProductTypeCreate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! productType: ProductType } type ProductTypeDelete { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! productType: ProductType } @@ -5648,7 +6664,10 @@ enum ProductTypeKindEnum { type ProductTypeReorderAttributes { productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -5664,13 +6683,19 @@ input ProductTypeSortingInput { } type ProductTypeUpdate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! productType: ProductType } type ProductUpdate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! product: Product } @@ -5691,7 +6716,10 @@ type ProductVariant implements Node & ObjectWithMetadata { margin: Int quantityOrdered: Int revenue(period: ReportingPeriod): TaxedMoney - images: [ProductImage] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.") + images: [ProductImage] + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `media` field instead." + ) media: [ProductMedia!] translation(languageCode: LanguageCodeEnum!): ProductVariantTranslation digitalContent: DigitalContent @@ -5703,7 +6731,10 @@ type ProductVariant implements Node & ObjectWithMetadata { type ProductVariantBulkCreate { count: Int! productVariants: [ProductVariant!]! - bulkProductErrors: [BulkProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + bulkProductErrors: [BulkProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [BulkProductError!]! } @@ -5719,7 +6750,10 @@ input ProductVariantBulkCreateInput { type ProductVariantBulkDelete { count: Int! - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -5741,7 +6775,10 @@ input ProductVariantChannelListingAddInput { type ProductVariantChannelListingUpdate { variant: ProductVariant - productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productChannelListingErrors: [ProductChannelListingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductChannelListingError!]! } @@ -5757,7 +6794,10 @@ type ProductVariantCountableEdge { } type ProductVariantCreate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! productVariant: ProductVariant } @@ -5773,7 +6813,10 @@ input ProductVariantCreateInput { } type ProductVariantDelete { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! productVariant: ProductVariant } @@ -5800,37 +6843,55 @@ type ProductVariantPreorderDeactivate { type ProductVariantReorder { product: Product - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } type ProductVariantReorderAttributeValues { productVariant: ProductVariant - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } type ProductVariantSetDefault { product: Product - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } type ProductVariantStocksCreate { productVariant: ProductVariant - bulkStockErrors: [BulkStockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + bulkStockErrors: [BulkStockError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [BulkStockError!]! } type ProductVariantStocksDelete { productVariant: ProductVariant - stockErrors: [StockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + stockErrors: [StockError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [StockError!]! } type ProductVariantStocksUpdate { productVariant: ProductVariant - bulkStockErrors: [BulkStockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + bulkStockErrors: [BulkStockError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [BulkStockError!]! } @@ -5838,12 +6899,18 @@ type ProductVariantTranslatableContent implements Node { id: ID! name: String! translation(languageCode: LanguageCodeEnum!): ProductVariantTranslation - productVariant: ProductVariant @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") + productVariant: ProductVariant + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) attributeValues: [AttributeValueTranslatableContent!]! } type ProductVariantTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! productVariant: ProductVariant } @@ -5855,7 +6922,10 @@ type ProductVariantTranslation implements Node { } type ProductVariantUpdate { - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! productVariant: ProductVariant } @@ -5871,76 +6941,306 @@ type Query { webhookEvents: [WebhookEvent] webhookSamplePayload(eventType: WebhookSampleEventTypeEnum!): JSONString warehouse(id: ID!): Warehouse - warehouses(filter: WarehouseFilterInput, sortBy: WarehouseSortingInput, before: String, after: String, first: Int, last: Int): WarehouseCountableConnection - translations(kind: TranslatableKinds!, before: String, after: String, first: Int, last: Int): TranslatableItemConnection + warehouses( + filter: WarehouseFilterInput + sortBy: WarehouseSortingInput + before: String + after: String + first: Int + last: Int + ): WarehouseCountableConnection + translations( + kind: TranslatableKinds! + before: String + after: String + first: Int + last: Int + ): TranslatableItemConnection translation(id: ID!, kind: TranslatableKinds!): TranslatableItem stock(id: ID!): Stock - stocks(filter: StockFilterInput, before: String, after: String, first: Int, last: Int): StockCountableConnection + stocks( + filter: StockFilterInput + before: String + after: String + first: Int + last: Int + ): StockCountableConnection shop: Shop! orderSettings: OrderSettings giftCardSettings: GiftCardSettings! shippingZone(id: ID!, channel: String): ShippingZone - shippingZones(filter: ShippingZoneFilterInput, channel: String, before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection + shippingZones( + filter: ShippingZoneFilterInput + channel: String + before: String + after: String + first: Int + last: Int + ): ShippingZoneCountableConnection digitalContent(id: ID!): DigitalContent - digitalContents(before: String, after: String, first: Int, last: Int): DigitalContentCountableConnection - categories(filter: CategoryFilterInput, sortBy: CategorySortingInput, level: Int, before: String, after: String, first: Int, last: Int): CategoryCountableConnection + digitalContents( + before: String + after: String + first: Int + last: Int + ): DigitalContentCountableConnection + categories( + filter: CategoryFilterInput + sortBy: CategorySortingInput + level: Int + before: String + after: String + first: Int + last: Int + ): CategoryCountableConnection category(id: ID, slug: String): Category collection(id: ID, slug: String, channel: String): Collection - collections(filter: CollectionFilterInput, sortBy: CollectionSortingInput, channel: String, before: String, after: String, first: Int, last: Int): CollectionCountableConnection + collections( + filter: CollectionFilterInput + sortBy: CollectionSortingInput + channel: String + before: String + after: String + first: Int + last: Int + ): CollectionCountableConnection product(id: ID, slug: String, channel: String): Product - products(filter: ProductFilterInput, sortBy: ProductOrder, channel: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection + products( + filter: ProductFilterInput + sortBy: ProductOrder + channel: String + before: String + after: String + first: Int + last: Int + ): ProductCountableConnection productType(id: ID!): ProductType - productTypes(filter: ProductTypeFilterInput, sortBy: ProductTypeSortingInput, before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection + productTypes( + filter: ProductTypeFilterInput + sortBy: ProductTypeSortingInput + before: String + after: String + first: Int + last: Int + ): ProductTypeCountableConnection productVariant(id: ID, sku: String, channel: String): ProductVariant - productVariants(ids: [ID], channel: String, filter: ProductVariantFilterInput, before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection - reportProductSales(period: ReportingPeriod!, channel: String!, before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection + productVariants( + ids: [ID] + channel: String + filter: ProductVariantFilterInput + before: String + after: String + first: Int + last: Int + ): ProductVariantCountableConnection + reportProductSales( + period: ReportingPeriod! + channel: String! + before: String + after: String + first: Int + last: Int + ): ProductVariantCountableConnection payment(id: ID!): Payment - payments(filter: PaymentFilterInput, before: String, after: String, first: Int, last: Int): PaymentCountableConnection + payments( + filter: PaymentFilterInput + before: String + after: String + first: Int + last: Int + ): PaymentCountableConnection page(id: ID, slug: String): Page - pages(sortBy: PageSortingInput, filter: PageFilterInput, before: String, after: String, first: Int, last: Int): PageCountableConnection + pages( + sortBy: PageSortingInput + filter: PageFilterInput + before: String + after: String + first: Int + last: Int + ): PageCountableConnection pageType(id: ID!): PageType - pageTypes(sortBy: PageTypeSortingInput, filter: PageTypeFilterInput, before: String, after: String, first: Int, last: Int): PageTypeCountableConnection - homepageEvents(before: String, after: String, first: Int, last: Int): OrderEventCountableConnection + pageTypes( + sortBy: PageTypeSortingInput + filter: PageTypeFilterInput + before: String + after: String + first: Int + last: Int + ): PageTypeCountableConnection + homepageEvents( + before: String + after: String + first: Int + last: Int + ): OrderEventCountableConnection order(id: ID!): Order - orders(sortBy: OrderSortingInput, filter: OrderFilterInput, channel: String, before: String, after: String, first: Int, last: Int): OrderCountableConnection - draftOrders(sortBy: OrderSortingInput, filter: OrderDraftFilterInput, before: String, after: String, first: Int, last: Int): OrderCountableConnection + orders( + sortBy: OrderSortingInput + filter: OrderFilterInput + channel: String + before: String + after: String + first: Int + last: Int + ): OrderCountableConnection + draftOrders( + sortBy: OrderSortingInput + filter: OrderDraftFilterInput + before: String + after: String + first: Int + last: Int + ): OrderCountableConnection ordersTotal(period: ReportingPeriod, channel: String): TaxedMoney orderByToken(token: UUID!): Order menu(channel: String, id: ID, name: String, slug: String): Menu - menus(channel: String, sortBy: MenuSortingInput, filter: MenuFilterInput, before: String, after: String, first: Int, last: Int): MenuCountableConnection + menus( + channel: String + sortBy: MenuSortingInput + filter: MenuFilterInput + before: String + after: String + first: Int + last: Int + ): MenuCountableConnection menuItem(id: ID!, channel: String): MenuItem - menuItems(channel: String, sortBy: MenuItemSortingInput, filter: MenuItemFilterInput, before: String, after: String, first: Int, last: Int): MenuItemCountableConnection + menuItems( + channel: String + sortBy: MenuItemSortingInput + filter: MenuItemFilterInput + before: String + after: String + first: Int + last: Int + ): MenuItemCountableConnection giftCard(id: ID!): GiftCard - giftCards(sortBy: GiftCardSortingInput, filter: GiftCardFilterInput, before: String, after: String, first: Int, last: Int): GiftCardCountableConnection + giftCards( + sortBy: GiftCardSortingInput + filter: GiftCardFilterInput + before: String + after: String + first: Int + last: Int + ): GiftCardCountableConnection giftCardCurrencies: [String!]! plugin(id: ID!): Plugin - plugins(filter: PluginFilterInput, sortBy: PluginSortingInput, before: String, after: String, first: Int, last: Int): PluginCountableConnection + plugins( + filter: PluginFilterInput + sortBy: PluginSortingInput + before: String + after: String + first: Int + last: Int + ): PluginCountableConnection sale(id: ID!, channel: String): Sale - sales(filter: SaleFilterInput, sortBy: SaleSortingInput, query: String, channel: String, before: String, after: String, first: Int, last: Int): SaleCountableConnection + sales( + filter: SaleFilterInput + sortBy: SaleSortingInput + query: String + channel: String + before: String + after: String + first: Int + last: Int + ): SaleCountableConnection voucher(id: ID!, channel: String): Voucher - vouchers(filter: VoucherFilterInput, sortBy: VoucherSortingInput, query: String, channel: String, before: String, after: String, first: Int, last: Int): VoucherCountableConnection + vouchers( + filter: VoucherFilterInput + sortBy: VoucherSortingInput + query: String + channel: String + before: String + after: String + first: Int + last: Int + ): VoucherCountableConnection exportFile(id: ID!): ExportFile - exportFiles(filter: ExportFileFilterInput, sortBy: ExportFileSortingInput, before: String, after: String, first: Int, last: Int): ExportFileCountableConnection + exportFiles( + filter: ExportFileFilterInput + sortBy: ExportFileSortingInput + before: String + after: String + first: Int + last: Int + ): ExportFileCountableConnection taxTypes: [TaxType] checkout(token: UUID): Checkout - checkouts(channel: String, before: String, after: String, first: Int, last: Int): CheckoutCountableConnection - checkoutLines(before: String, after: String, first: Int, last: Int): CheckoutLineCountableConnection + checkouts( + channel: String + before: String + after: String + first: Int + last: Int + ): CheckoutCountableConnection + checkoutLines( + before: String + after: String + first: Int + last: Int + ): CheckoutLineCountableConnection channel(id: ID): Channel channels: [Channel!] - attributes(filter: AttributeFilterInput, sortBy: AttributeSortingInput, channel: String, before: String, after: String, first: Int, last: Int): AttributeCountableConnection + attributes( + filter: AttributeFilterInput + sortBy: AttributeSortingInput + channel: String + before: String + after: String + first: Int + last: Int + ): AttributeCountableConnection attribute(id: ID, slug: String): Attribute appsInstallations: [AppInstallation!]! - apps(filter: AppFilterInput, sortBy: AppSortingInput, before: String, after: String, first: Int, last: Int): AppCountableConnection + apps( + filter: AppFilterInput + sortBy: AppSortingInput + before: String + after: String + first: Int + last: Int + ): AppCountableConnection app(id: ID): App - appExtensions(filter: AppExtensionFilterInput, before: String, after: String, first: Int, last: Int): AppExtensionCountableConnection + appExtensions( + filter: AppExtensionFilterInput + before: String + after: String + first: Int + last: Int + ): AppExtensionCountableConnection appExtension(id: ID!): AppExtension - addressValidationRules(countryCode: CountryCode!, countryArea: String, city: String, cityArea: String): AddressValidationData + addressValidationRules( + countryCode: CountryCode! + countryArea: String + city: String + cityArea: String + ): AddressValidationData address(id: ID!): Address - customers(filter: CustomerFilterInput, sortBy: UserSortingInput, before: String, after: String, first: Int, last: Int): UserCountableConnection - permissionGroups(filter: PermissionGroupFilterInput, sortBy: PermissionGroupSortingInput, before: String, after: String, first: Int, last: Int): GroupCountableConnection + customers( + filter: CustomerFilterInput + sortBy: UserSortingInput + before: String + after: String + first: Int + last: Int + ): UserCountableConnection + permissionGroups( + filter: PermissionGroupFilterInput + sortBy: PermissionGroupSortingInput + before: String + after: String + first: Int + last: Int + ): GroupCountableConnection permissionGroup(id: ID!): Group me: User - staffUsers(filter: StaffUserInput, sortBy: UserSortingInput, before: String, after: String, first: Int, last: Int): UserCountableConnection + staffUsers( + filter: StaffUserInput + sortBy: UserSortingInput + before: String + after: String + first: Int + last: Int + ): UserCountableConnection user(id: ID, email: String): User _entities(representations: [_Any]): [_Entity] _service: _Service @@ -5954,7 +7254,10 @@ type ReducedRate { type RefreshToken { token: String user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -5970,12 +7273,18 @@ enum ReportingPeriod { type RequestEmailChange { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } type RequestPasswordReset { - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -5987,10 +7296,30 @@ type Sale implements Node & ObjectWithMetadata { endDate: DateTime privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - categories(before: String, after: String, first: Int, last: Int): CategoryCountableConnection - collections(before: String, after: String, first: Int, last: Int): CollectionCountableConnection - products(before: String, after: String, first: Int, last: Int): ProductCountableConnection - variants(before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection + categories( + before: String + after: String + first: Int + last: Int + ): CategoryCountableConnection + collections( + before: String + after: String + first: Int + last: Int + ): CollectionCountableConnection + products( + before: String + after: String + first: Int + last: Int + ): ProductCountableConnection + variants( + before: String + after: String + first: Int + last: Int + ): ProductVariantCountableConnection translation(languageCode: LanguageCodeEnum!): SaleTranslation channelListings: [SaleChannelListing!] discountValue: Float @@ -5999,13 +7328,19 @@ type Sale implements Node & ObjectWithMetadata { type SaleAddCatalogues { sale: Sale - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! } type SaleBulkDelete { count: Int! - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! } @@ -6028,7 +7363,10 @@ input SaleChannelListingInput { type SaleChannelListingUpdate { sale: Sale - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! } @@ -6044,13 +7382,19 @@ type SaleCountableEdge { } type SaleCreate { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! sale: Sale } type SaleDelete { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! sale: Sale } @@ -6077,7 +7421,10 @@ input SaleInput { type SaleRemoveCatalogues { sale: Sale - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! } @@ -6099,11 +7446,17 @@ type SaleTranslatableContent implements Node { id: ID! name: String! translation(languageCode: LanguageCodeEnum!): SaleTranslation - sale: Sale @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") + sale: Sale + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type SaleTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! sale: Sale } @@ -6120,7 +7473,10 @@ enum SaleType { } type SaleUpdate { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! sale: Sale } @@ -6140,7 +7496,10 @@ type SetPassword { refreshToken: String csrfToken: String user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -6180,7 +7539,12 @@ type ShippingMethod implements Node & ObjectWithMetadata { maximumOrderPrice: Money minimumOrderPrice: Money postalCodeRules: [ShippingMethodPostalCodeRule] - excludedProducts(before: String, after: String, first: Int, last: Int): ProductCountableConnection + excludedProducts( + before: String + after: String + first: Int + last: Int + ): ProductCountableConnection } type ShippingMethodChannelListing implements Node { @@ -6205,7 +7569,10 @@ input ShippingMethodChannelListingInput { type ShippingMethodChannelListingUpdate { shippingMethod: ShippingMethod - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShippingError!]! } @@ -6221,7 +7588,10 @@ type ShippingMethodTranslatableContent implements Node { name: String! description: JSONString translation(languageCode: LanguageCodeEnum!): ShippingMethodTranslation - shippingMethod: ShippingMethod @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") + shippingMethod: ShippingMethod + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type ShippingMethodTranslation implements Node { @@ -6243,27 +7613,39 @@ input ShippingPostalCodeRulesCreateInputRange { type ShippingPriceBulkDelete { count: Int! - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShippingError!]! } type ShippingPriceCreate { shippingZone: ShippingZone shippingMethod: ShippingMethod - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShippingError!]! } type ShippingPriceDelete { shippingMethod: ShippingMethod shippingZone: ShippingZone - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShippingError!]! } type ShippingPriceExcludeProducts { shippingMethod: ShippingMethod - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShippingError!]! } @@ -6287,12 +7669,18 @@ input ShippingPriceInput { type ShippingPriceRemoveProductFromExclude { shippingMethod: ShippingMethod - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShippingError!]! } type ShippingPriceTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! shippingMethod: ShippingMethod } @@ -6305,7 +7693,10 @@ input ShippingPriceTranslationInput { type ShippingPriceUpdate { shippingZone: ShippingZone shippingMethod: ShippingMethod - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShippingError!]! } @@ -6325,7 +7716,10 @@ type ShippingZone implements Node & ObjectWithMetadata { type ShippingZoneBulkDelete { count: Int! - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShippingError!]! } @@ -6341,7 +7735,10 @@ type ShippingZoneCountableEdge { } type ShippingZoneCreate { - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShippingError!]! shippingZone: ShippingZone } @@ -6356,7 +7753,10 @@ input ShippingZoneCreateInput { } type ShippingZoneDelete { - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShippingError!]! shippingZone: ShippingZone } @@ -6367,7 +7767,10 @@ input ShippingZoneFilterInput { } type ShippingZoneUpdate { - shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shippingErrors: [ShippingError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShippingError!]! shippingZone: ShippingZone } @@ -6384,9 +7787,15 @@ input ShippingZoneUpdateInput { } type Shop { - availablePaymentGateways(currency: String, channel: String): [PaymentGateway!]! + availablePaymentGateways( + currency: String + channel: String + ): [PaymentGateway!]! availableExternalAuthentications: [ExternalAuthentication!]! - availableShippingMethods(channel: String!, address: AddressInput): [ShippingMethod] + availableShippingMethods( + channel: String! + address: AddressInput + ): [ShippingMethod] channelCurrencies: [String!]! countries(languageCode: LanguageCodeEnum): [CountryDisplay!]! defaultCountry: CountryDisplay @@ -6421,13 +7830,19 @@ type Shop { type ShopAddressUpdate { shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shopErrors: [ShopError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShopError!]! } type ShopDomainUpdate { shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shopErrors: [ShopError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShopError!]! } @@ -6449,7 +7864,10 @@ enum ShopErrorCode { type ShopFetchTaxRates { shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shopErrors: [ShopError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShopError!]! } @@ -6475,7 +7893,10 @@ input ShopSettingsInput { type ShopSettingsTranslate { shop: Shop - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! } @@ -6486,7 +7907,10 @@ input ShopSettingsTranslationInput { type ShopSettingsUpdate { shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shopErrors: [ShopError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShopError!]! } @@ -6504,12 +7928,18 @@ input SiteDomainInput { type StaffBulkDelete { count: Int! - staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + staffErrors: [StaffError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [StaffError!]! } type StaffCreate { - staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + staffErrors: [StaffError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [StaffError!]! user: User } @@ -6525,7 +7955,10 @@ input StaffCreateInput { } type StaffDelete { - staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + staffErrors: [StaffError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [StaffError!]! user: User } @@ -6553,13 +7986,19 @@ type StaffNotificationRecipient implements Node { } type StaffNotificationRecipientCreate { - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shopErrors: [ShopError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } type StaffNotificationRecipientDelete { - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shopErrors: [ShopError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } @@ -6571,13 +8010,19 @@ input StaffNotificationRecipientInput { } type StaffNotificationRecipientUpdate { - shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + shopErrors: [ShopError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } type StaffUpdate { - staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + staffErrors: [StaffError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [StaffError!]! user: User } @@ -6711,7 +8156,18 @@ enum TransactionKind { CANCEL } -union TranslatableItem = ProductTranslatableContent | CollectionTranslatableContent | CategoryTranslatableContent | AttributeTranslatableContent | AttributeValueTranslatableContent | ProductVariantTranslatableContent | PageTranslatableContent | ShippingMethodTranslatableContent | SaleTranslatableContent | VoucherTranslatableContent | MenuItemTranslatableContent +union TranslatableItem = + ProductTranslatableContent + | CollectionTranslatableContent + | CategoryTranslatableContent + | AttributeTranslatableContent + | AttributeValueTranslatableContent + | ProductVariantTranslatableContent + | PageTranslatableContent + | ShippingMethodTranslatableContent + | SaleTranslatableContent + | VoucherTranslatableContent + | MenuItemTranslatableContent type TranslatableItemConnection { pageInfo: PageInfo! @@ -6765,13 +8221,19 @@ input UpdateInvoiceInput { } type UpdateMetadata { - metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + metadataErrors: [MetadataError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MetadataError!]! item: ObjectWithMetadata } type UpdatePrivateMetadata { - metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + metadataErrors: [MetadataError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [MetadataError!]! item: ObjectWithMetadata } @@ -6803,10 +8265,23 @@ type User implements Node & ObjectWithMetadata { privateMetadata: [MetadataItem]! metadata: [MetadataItem]! addresses: [Address] - checkout: Checkout @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `checkout_tokens` field to fetch the user checkouts.") + checkout: Checkout + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use the `checkout_tokens` field to fetch the user checkouts." + ) checkoutTokens(channel: String): [UUID!] - giftCards(before: String, after: String, first: Int, last: Int): GiftCardCountableConnection - orders(before: String, after: String, first: Int, last: Int): OrderCountableConnection + giftCards( + before: String + after: String + first: Int + last: Int + ): GiftCardCountableConnection + orders( + before: String + after: String + first: Int + last: Int + ): OrderCountableConnection userPermissions: [UserPermission] permissionGroups: [Group] editableGroups: [Group] @@ -6818,19 +8293,28 @@ type User implements Node & ObjectWithMetadata { type UserAvatarDelete { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } type UserAvatarUpdate { user: User - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } type UserBulkSetActive { count: Int! - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -6891,14 +8375,20 @@ enum VariantAttributeScope { type VariantMediaAssign { productVariant: ProductVariant media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } type VariantMediaUnassign { productVariant: ProductVariant media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + productErrors: [ProductError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [ProductError!]! } @@ -6915,7 +8405,10 @@ type VerifyToken { user: User isValid: Boolean! payload: GenericScalar - accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + accountErrors: [AccountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [AccountError!]! } @@ -6951,10 +8444,30 @@ type Voucher implements Node & ObjectWithMetadata { minCheckoutItemsQuantity: Int privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - categories(before: String, after: String, first: Int, last: Int): CategoryCountableConnection - collections(before: String, after: String, first: Int, last: Int): CollectionCountableConnection - products(before: String, after: String, first: Int, last: Int): ProductCountableConnection - variants(before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection + categories( + before: String + after: String + first: Int + last: Int + ): CategoryCountableConnection + collections( + before: String + after: String + first: Int + last: Int + ): CollectionCountableConnection + products( + before: String + after: String + first: Int + last: Int + ): ProductCountableConnection + variants( + before: String + after: String + first: Int + last: Int + ): ProductVariantCountableConnection countries: [CountryDisplay] translation(languageCode: LanguageCodeEnum!): VoucherTranslation discountValue: Float @@ -6965,13 +8478,19 @@ type Voucher implements Node & ObjectWithMetadata { type VoucherAddCatalogues { voucher: Voucher - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! } type VoucherBulkDelete { count: Int! - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! } @@ -6996,7 +8515,10 @@ input VoucherChannelListingInput { type VoucherChannelListingUpdate { voucher: Voucher - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! } @@ -7012,13 +8534,19 @@ type VoucherCountableEdge { } type VoucherCreate { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! voucher: Voucher } type VoucherDelete { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! voucher: Voucher } @@ -7059,7 +8587,10 @@ input VoucherInput { type VoucherRemoveCatalogues { voucher: Voucher - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! } @@ -7083,11 +8614,17 @@ type VoucherTranslatableContent implements Node { id: ID! name: String translation(languageCode: LanguageCodeEnum!): VoucherTranslation - voucher: Voucher @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.") + voucher: Voucher + @deprecated( + reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries." + ) } type VoucherTranslate { - translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + translationErrors: [TranslationError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [TranslationError!]! voucher: Voucher } @@ -7105,7 +8642,10 @@ enum VoucherTypeEnum { } type VoucherUpdate { - discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + discountErrors: [DiscountError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [DiscountError!]! voucher: Voucher } @@ -7114,13 +8654,21 @@ type Warehouse implements Node & ObjectWithMetadata { id: ID! name: String! slug: String! - shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection! + shippingZones( + before: String + after: String + first: Int + last: Int + ): ShippingZoneCountableConnection! address: Address! email: String! isPrivate: Boolean! privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - companyName: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `Address.companyName` instead.") + companyName: String! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `Address.companyName` instead." + ) clickAndCollectOption: WarehouseClickAndCollectOptionEnum! } @@ -7142,7 +8690,10 @@ type WarehouseCountableEdge { } type WarehouseCreate { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + warehouseErrors: [WarehouseError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [WarehouseError!]! warehouse: Warehouse } @@ -7156,7 +8707,10 @@ input WarehouseCreateInput { } type WarehouseDelete { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + warehouseErrors: [WarehouseError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [WarehouseError!]! warehouse: Warehouse } @@ -7184,13 +8738,19 @@ input WarehouseFilterInput { } type WarehouseShippingZoneAssign { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + warehouseErrors: [WarehouseError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [WarehouseError!]! warehouse: Warehouse } type WarehouseShippingZoneUnassign { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + warehouseErrors: [WarehouseError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [WarehouseError!]! warehouse: Warehouse } @@ -7205,7 +8765,10 @@ input WarehouseSortingInput { } type WarehouseUpdate { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + warehouseErrors: [WarehouseError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [WarehouseError!]! warehouse: Warehouse } @@ -7230,7 +8793,10 @@ type Webhook implements Node { } type WebhookCreate { - webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + webhookErrors: [WebhookError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [WebhookError!]! webhook: Webhook } @@ -7245,7 +8811,10 @@ input WebhookCreateInput { } type WebhookDelete { - webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + webhookErrors: [WebhookError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [WebhookError!]! webhook: Webhook } @@ -7361,7 +8930,10 @@ enum WebhookSampleEventTypeEnum { } type WebhookUpdate { - webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") + webhookErrors: [WebhookError!]! + @deprecated( + reason: "This field will be removed in Saleor 4.0. Use `errors` field instead." + ) errors: [WebhookError!]! webhook: Webhook } @@ -7392,7 +8964,19 @@ enum WeightUnitsEnum { scalar _Any -union _Entity = App | Address | User | Group | ProductVariant | Product | ProductType | Collection | Category | ProductMedia | ProductImage | PageType +union _Entity = + App + | Address + | User + | Group + | ProductVariant + | Product + | ProductType + | Collection + | Category + | ProductMedia + | ProductImage + | PageType type _Service { sdl: String diff --git a/src/giftCards/GiftCardUpdate/GiftCardResendCodeDialog/types/GiftCardResend.ts b/src/giftCards/GiftCardUpdate/GiftCardResendCodeDialog/types/GiftCardResend.ts index cf96b782603..e8cf1a3760b 100644 --- a/src/giftCards/GiftCardUpdate/GiftCardResendCodeDialog/types/GiftCardResend.ts +++ b/src/giftCards/GiftCardUpdate/GiftCardResendCodeDialog/types/GiftCardResend.ts @@ -69,7 +69,7 @@ export interface GiftCardResend_giftCardResend_giftCard { __typename: "GiftCard"; metadata: (GiftCardResend_giftCardResend_giftCard_metadata | null)[]; privateMetadata: (GiftCardResend_giftCardResend_giftCard_privateMetadata | null)[]; - displayCode: string; + last4CodeChars: string; boughtInChannel: string | null; createdBy: GiftCardResend_giftCardResend_giftCard_createdBy | null; product: GiftCardResend_giftCardResend_giftCard_product | null; diff --git a/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/GiftCardUpdatePageHeader.tsx b/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/GiftCardUpdatePageHeader.tsx index ecefefd159d..63b2f67205d 100644 --- a/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/GiftCardUpdatePageHeader.tsx +++ b/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/GiftCardUpdatePageHeader.tsx @@ -25,10 +25,10 @@ const GiftCardUpdatePageHeader: React.FC = () => { const { openResendCodeDialog } = useGiftCardUpdateDialogs(); - const { displayCode, isExpired } = giftCard; + const { last4CodeChars, isExpired } = giftCard; const title = intl.formatMessage(tableMessages.codeEndingWithLabel, { - displayCode + last4CodeChars }); return ( diff --git a/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/types/GiftCardActivate.ts b/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/types/GiftCardActivate.ts index b2801ab0e47..f7a0d499f38 100644 --- a/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/types/GiftCardActivate.ts +++ b/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/types/GiftCardActivate.ts @@ -69,7 +69,7 @@ export interface GiftCardActivate_giftCardActivate_giftCard { __typename: "GiftCard"; metadata: (GiftCardActivate_giftCardActivate_giftCard_metadata | null)[]; privateMetadata: (GiftCardActivate_giftCardActivate_giftCard_privateMetadata | null)[]; - displayCode: string; + last4CodeChars: string; boughtInChannel: string | null; createdBy: GiftCardActivate_giftCardActivate_giftCard_createdBy | null; product: GiftCardActivate_giftCardActivate_giftCard_product | null; diff --git a/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/types/GiftCardDeactivate.ts b/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/types/GiftCardDeactivate.ts index c746d3cf662..abb22adc21a 100644 --- a/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/types/GiftCardDeactivate.ts +++ b/src/giftCards/GiftCardUpdate/GiftCardUpdatePageHeader/types/GiftCardDeactivate.ts @@ -69,7 +69,7 @@ export interface GiftCardDeactivate_giftCardDeactivate_giftCard { __typename: "GiftCard"; metadata: (GiftCardDeactivate_giftCardDeactivate_giftCard_metadata | null)[]; privateMetadata: (GiftCardDeactivate_giftCardDeactivate_giftCard_privateMetadata | null)[]; - displayCode: string; + last4CodeChars: string; boughtInChannel: string | null; createdBy: GiftCardDeactivate_giftCardDeactivate_giftCard_createdBy | null; product: GiftCardDeactivate_giftCardDeactivate_giftCard_product | null; diff --git a/src/giftCards/GiftCardUpdate/queries.ts b/src/giftCards/GiftCardUpdate/queries.ts index 588217fb565..4ac6b0536fe 100644 --- a/src/giftCards/GiftCardUpdate/queries.ts +++ b/src/giftCards/GiftCardUpdate/queries.ts @@ -15,7 +15,7 @@ export const giftCardDataFragment = gql` ${fragmentUserBase} fragment GiftCardData on GiftCard { ...MetadataFragment - displayCode + last4CodeChars boughtInChannel createdBy { ...UserBase diff --git a/src/giftCards/GiftCardUpdate/types/GiftCardData.ts b/src/giftCards/GiftCardUpdate/types/GiftCardData.ts index 643340171cb..daba1cecc16 100644 --- a/src/giftCards/GiftCardUpdate/types/GiftCardData.ts +++ b/src/giftCards/GiftCardUpdate/types/GiftCardData.ts @@ -61,7 +61,7 @@ export interface GiftCardData { __typename: "GiftCard"; metadata: (GiftCardData_metadata | null)[]; privateMetadata: (GiftCardData_privateMetadata | null)[]; - displayCode: string; + last4CodeChars: string; boughtInChannel: string | null; createdBy: GiftCardData_createdBy | null; product: GiftCardData_product | null; diff --git a/src/giftCards/GiftCardUpdate/types/GiftCardDetails.ts b/src/giftCards/GiftCardUpdate/types/GiftCardDetails.ts index fd56042125d..ed84dd2aa30 100644 --- a/src/giftCards/GiftCardUpdate/types/GiftCardDetails.ts +++ b/src/giftCards/GiftCardUpdate/types/GiftCardDetails.ts @@ -126,7 +126,7 @@ export interface GiftCardDetails_giftCard { __typename: "GiftCard"; metadata: (GiftCardDetails_giftCard_metadata | null)[]; privateMetadata: (GiftCardDetails_giftCard_privateMetadata | null)[]; - displayCode: string; + last4CodeChars: string; boughtInChannel: string | null; createdBy: GiftCardDetails_giftCard_createdBy | null; product: GiftCardDetails_giftCard_product | null; diff --git a/src/giftCards/GiftCardUpdate/types/GiftCardUpdate.ts b/src/giftCards/GiftCardUpdate/types/GiftCardUpdate.ts index 318b94b78d1..8654e634b05 100644 --- a/src/giftCards/GiftCardUpdate/types/GiftCardUpdate.ts +++ b/src/giftCards/GiftCardUpdate/types/GiftCardUpdate.ts @@ -69,7 +69,7 @@ export interface GiftCardUpdate_giftCardUpdate_giftCard { __typename: "GiftCard"; metadata: (GiftCardUpdate_giftCardUpdate_giftCard_metadata | null)[]; privateMetadata: (GiftCardUpdate_giftCardUpdate_giftCard_privateMetadata | null)[]; - displayCode: string; + last4CodeChars: string; boughtInChannel: string | null; createdBy: GiftCardUpdate_giftCardUpdate_giftCard_createdBy | null; product: GiftCardUpdate_giftCardUpdate_giftCard_product | null; diff --git a/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTable.tsx b/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTable.tsx index 6f796e4218e..7325eec55ac 100644 --- a/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTable.tsx +++ b/src/giftCards/GiftCardsList/GiftCardsListTable/GiftCardsListTable.tsx @@ -54,7 +54,7 @@ const GiftCardsListTable: React.FC = () => { giftCard => { const { id, - displayCode, + last4CodeChars, usedBy, usedByEmail, tag, @@ -79,7 +79,7 @@ const GiftCardsListTable: React.FC = () => {
{intl.formatMessage(messages.codeEndingWithLabel, { - displayCode + last4CodeChars })} <> diff --git a/src/giftCards/GiftCardsList/messages.ts b/src/giftCards/GiftCardsList/messages.ts index 4072ecdcb82..75250705d45 100644 --- a/src/giftCards/GiftCardsList/messages.ts +++ b/src/giftCards/GiftCardsList/messages.ts @@ -72,7 +72,7 @@ export const giftCardsListTableMessages = defineMessages({ description: "GiftCardsListTable column title balance" }, codeEndingWithLabel: { - defaultMessage: "Code ending with {displayCode}", + defaultMessage: "Code ending with {last4CodeChars}", description: "GiftCardsListTable code ending with label" }, noGiftCardsFound: { diff --git a/src/giftCards/GiftCardsList/queries.ts b/src/giftCards/GiftCardsList/queries.ts index 17d7ed8526e..8660250bd5a 100644 --- a/src/giftCards/GiftCardsList/queries.ts +++ b/src/giftCards/GiftCardsList/queries.ts @@ -28,7 +28,7 @@ export const giftCardList = gql` node { id usedByEmail - displayCode + last4CodeChars isActive expiryDate product { diff --git a/src/giftCards/GiftCardsList/types/GiftCardList.ts b/src/giftCards/GiftCardsList/types/GiftCardList.ts index b4c89cbf93f..87725a25064 100644 --- a/src/giftCards/GiftCardsList/types/GiftCardList.ts +++ b/src/giftCards/GiftCardsList/types/GiftCardList.ts @@ -32,7 +32,7 @@ export interface GiftCardList_giftCards_edges_node { __typename: "GiftCard"; id: string; usedByEmail: string | null; - displayCode: string; + last4CodeChars: string; isActive: boolean; expiryDate: any | null; product: GiftCardList_giftCards_edges_node_product | null; diff --git a/src/giftCards/components/GiftCardCustomerCard/CustomerGiftCardsCardListItem.tsx b/src/giftCards/components/GiftCardCustomerCard/CustomerGiftCardsCardListItem.tsx index f1d842877fd..1d3a0fafb1d 100644 --- a/src/giftCards/components/GiftCardCustomerCard/CustomerGiftCardsCardListItem.tsx +++ b/src/giftCards/components/GiftCardCustomerCard/CustomerGiftCardsCardListItem.tsx @@ -14,7 +14,6 @@ import GiftCardStatusChip from "../GiftCardStatusChip/GiftCardStatusChip"; import { CUSTOMER_GIFT_CARD_LIST_QUERY } from "./queries"; import { useListWrapperStyles } from "./styles"; import { CustomerGiftCardList_giftCards_edges_node } from "./types/CustomerGiftCardList"; -import { getGiftCardDisplayCode } from "./utils"; interface CustomerGiftCardsCardListItemProps { giftCard: ExtendedGiftCard; @@ -26,7 +25,7 @@ const CustomerGiftCardsCardListItem: React.FC setOpenDeleteGiftCard(false); @@ -103,7 +102,7 @@ const CustomerGiftCardsCardListItem: React.FC diff --git a/src/giftCards/components/GiftCardCustomerCard/queries.ts b/src/giftCards/components/GiftCardCustomerCard/queries.ts index bea382d2af8..43c36be3b40 100644 --- a/src/giftCards/components/GiftCardCustomerCard/queries.ts +++ b/src/giftCards/components/GiftCardCustomerCard/queries.ts @@ -14,7 +14,7 @@ const customerGiftCardListQuery = gql` edges { node { id - displayCode + last4CodeChars expiryDate isActive currentBalance { diff --git a/src/giftCards/components/GiftCardCustomerCard/types/CustomerGiftCardList.ts b/src/giftCards/components/GiftCardCustomerCard/types/CustomerGiftCardList.ts index 996d7e44b74..9d31f85f4b7 100644 --- a/src/giftCards/components/GiftCardCustomerCard/types/CustomerGiftCardList.ts +++ b/src/giftCards/components/GiftCardCustomerCard/types/CustomerGiftCardList.ts @@ -18,7 +18,7 @@ export interface CustomerGiftCardList_giftCards_edges_node_currentBalance { export interface CustomerGiftCardList_giftCards_edges_node { __typename: "GiftCard"; id: string; - displayCode: string; + last4CodeChars: string; expiryDate: any | null; isActive: boolean; currentBalance: CustomerGiftCardList_giftCards_edges_node_currentBalance | null; diff --git a/src/giftCards/components/GiftCardCustomerCard/utils.ts b/src/giftCards/components/GiftCardCustomerCard/utils.ts deleted file mode 100644 index 98f67729018..00000000000 --- a/src/giftCards/components/GiftCardCustomerCard/utils.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ExtendedGiftCard } from "@saleor/giftCards/GiftCardUpdate/providers/GiftCardDetailsProvider/types"; - -import { CustomerGiftCardList_giftCards_edges_node } from "./types/CustomerGiftCardList"; - -export const getGiftCardDisplayCode = ( - giftCard: ExtendedGiftCard -) => giftCard.displayCode.slice(4, giftCard.displayCode.length); diff --git a/src/productTypes/types/ProductAttributeAssignmentUpdate.ts b/src/productTypes/types/ProductAttributeAssignmentUpdate.ts index 56dd06ed4c1..0161ee98917 100644 --- a/src/productTypes/types/ProductAttributeAssignmentUpdate.ts +++ b/src/productTypes/types/ProductAttributeAssignmentUpdate.ts @@ -13,6 +13,7 @@ export interface ProductAttributeAssignmentUpdate_productAttributeAssignmentUpda __typename: "ProductError"; field: string | null; message: string | null; + attributes: string[] | null; } export interface ProductAttributeAssignmentUpdate_productAttributeAssignmentUpdate_productType_taxType {