From d5a36e47fc92e282c4b9e41d3c767cc87ae993b5 Mon Sep 17 00:00:00 2001 From: Jakub Majorek Date: Fri, 3 Sep 2021 14:27:34 +0200 Subject: [PATCH] Add channel picker product details (#1355) * Add channel picker product details (#1353) * Enable channel picker on product details page * Add channel picker to product details * Simplify category details page * Update snapshots and translations * Update types * Update testId, bump macaw-ui * Update snapshots, types and schema --- locale/defaultMessages.json | 16 +- package-lock.json | 2 +- schema.graphql | 627 +++---- .../CategoryProductList.tsx | 83 +- .../CategoryProducts/CategoryProducts.tsx | 62 +- .../components/CategoryProducts/styles.ts | 10 + .../CategoryUpdatePage/CategoryUpdatePage.tsx | 15 +- src/categories/queries.ts | 9 - src/categories/types/CategoryDetails.ts | 59 - src/categories/views/CategoryDetails.tsx | 15 +- src/components/InternalLink/InternalLink.tsx | 13 + src/components/InternalLink/index.ts | 1 + src/components/InternalLink/styles.ts | 10 + src/orders/types/OrderFulfillData.ts | 1 + src/orders/types/OrderFulfillmentApprove.ts | 8 + .../views/ProductUpdate/ProductUpdate.tsx | 2 +- .../views/ShippingZoneDetails/index.tsx | 2 +- .../__snapshots__/Stories.test.ts.snap | 1552 +++++++---------- .../stories/categories/CategoryUpdatePage.tsx | 7 +- src/types/globalTypes.ts | 1 + 20 files changed, 1008 insertions(+), 1487 deletions(-) create mode 100644 src/categories/components/CategoryProducts/styles.ts create mode 100644 src/components/InternalLink/InternalLink.tsx create mode 100644 src/components/InternalLink/index.ts create mode 100644 src/components/InternalLink/styles.ts diff --git a/locale/defaultMessages.json b/locale/defaultMessages.json index 0eed05b3d..559bfc692 100644 --- a/locale/defaultMessages.json +++ b/locale/defaultMessages.json @@ -1370,21 +1370,9 @@ "context": "number of products", "string": "No. of Products" }, - "src_dot_categories_dot_components_dot_CategoryProductList_dot_1134347598": { - "context": "product price", - "string": "Price" - }, "src_dot_categories_dot_components_dot_CategoryProductList_dot_1657559629": { "string": "No products found" }, - "src_dot_categories_dot_components_dot_CategoryProductList_dot_1952810469": { - "context": "product type", - "string": "Type" - }, - "src_dot_categories_dot_components_dot_CategoryProductList_dot_3326160357": { - "context": "availability status", - "string": "Availability" - }, "src_dot_categories_dot_components_dot_CategoryProductList_dot_636461959": { "context": "product", "string": "Name" @@ -1393,6 +1381,10 @@ "context": "button", "string": "Add product" }, + "src_dot_categories_dot_components_dot_CategoryProducts_dot_4078580795": { + "context": "button", + "string": "View products" + }, "src_dot_categories_dot_components_dot_CategoryProducts_dot_4164156574": { "context": "header", "string": "Products in {categoryName}" diff --git a/package-lock.json b/package-lock.json index 874d5debd..4e1db65d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "saleor-dashboard", - "version": "3.0.0-b.5", + "version": "3.0.0-b.11", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/schema.graphql b/schema.graphql index da99e9833..9d22bffba 100644 --- a/schema.graphql +++ b/schema.graphql @@ -5,27 +5,27 @@ schema { type AccountAddressCreate { user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } @@ -82,7 +82,7 @@ input AccountInput { type AccountRegister { requiresConfirmation: Boolean - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } @@ -97,18 +97,18 @@ input AccountRegisterInput { } type AccountRequestDeletion { - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } @@ -132,14 +132,14 @@ type Address implements Node { type AddressCreate { user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! address: Address } @@ -160,7 +160,7 @@ input AddressInput { type AddressSetDefault { user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -171,7 +171,7 @@ enum AddressTypeEnum { type AddressUpdate { user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! address: Address } @@ -226,7 +226,7 @@ type App implements Node & ObjectWithMetadata { } type AppActivate { - appErrors: [AppError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! app: App } @@ -244,25 +244,25 @@ type AppCountableEdge { type AppCreate { authToken: String - appErrors: [AppError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! appInstallation: AppInstallation } @@ -335,7 +335,7 @@ enum AppExtensionViewEnum { type AppFetchManifest { manifest: Manifest - appErrors: [AppError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! } @@ -351,7 +351,7 @@ input AppInput { } type AppInstall { - appErrors: [AppError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! appInstallation: AppInstallation } @@ -383,7 +383,7 @@ type AppManifestExtension { } type AppRetryInstall { - appErrors: [AppError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! appInstallation: AppInstallation } @@ -406,13 +406,13 @@ type AppToken implements Node { type AppTokenCreate { authToken: String - appErrors: [AppError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! appToken: AppToken } @@ -424,7 +424,7 @@ input AppTokenInput { type AppTokenVerify { valid: Boolean! - appErrors: [AppError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! } @@ -434,7 +434,7 @@ enum AppTypeEnum { } type AppUpdate { - appErrors: [AppError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AppError!]! app: App } @@ -450,7 +450,7 @@ enum AreaUnitsEnum { type AssignNavigation { menu: Menu - menuErrors: [MenuError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! } @@ -479,7 +479,7 @@ type Attribute implements Node & ObjectWithMetadata { type AttributeBulkDelete { count: Int! - attributeErrors: [AttributeError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! } @@ -506,7 +506,7 @@ type AttributeCountableEdge { type AttributeCreate { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! } @@ -528,7 +528,7 @@ input AttributeCreateInput { } type AttributeDelete { - attributeErrors: [AttributeError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! attribute: Attribute } @@ -592,7 +592,7 @@ enum AttributeInputTypeEnum { type AttributeReorderValues { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! } @@ -617,11 +617,11 @@ type AttributeTranslatableContent implements Node { id: ID! name: String! translation(languageCode: LanguageCodeEnum!): AttributeTranslation - attribute: Attribute @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! attribute: Attribute } @@ -639,7 +639,7 @@ enum AttributeTypeEnum { type AttributeUpdate { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! } @@ -675,7 +675,7 @@ type AttributeValue implements Node { type AttributeValueBulkDelete { count: Int! - attributeErrors: [AttributeError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! } @@ -692,7 +692,7 @@ type AttributeValueCountableEdge { type AttributeValueCreate { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! attributeValue: AttributeValue } @@ -705,7 +705,7 @@ input AttributeValueCreateInput { type AttributeValueDelete { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! attributeValue: AttributeValue } @@ -731,11 +731,11 @@ type AttributeValueTranslatableContent implements Node { name: String! richText: JSONString translation(languageCode: LanguageCodeEnum!): AttributeValueTranslation - attributeValue: AttributeValue @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! attributeValue: AttributeValue } @@ -754,7 +754,7 @@ input AttributeValueTranslationInput { type AttributeValueUpdate { attribute: Attribute - attributeErrors: [AttributeError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AttributeError!]! attributeValue: AttributeValue } @@ -802,7 +802,7 @@ type Category implements Node & ObjectWithMetadata { level: Int! privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - descriptionJson: JSONString @deprecated(reason: "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.") 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 @@ -812,7 +812,7 @@ type Category implements Node & ObjectWithMetadata { type CategoryBulkDelete { count: Int! - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -828,13 +828,13 @@ type CategoryCountableEdge { } type CategoryCreate { - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! category: Category } @@ -872,13 +872,13 @@ type CategoryTranslatableContent implements Node { seoDescription: String name: String! description: JSONString - descriptionJson: JSONString @deprecated(reason: "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: "Will be removed in Saleor 4.0. Get model fields from the root level.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! category: Category } @@ -890,11 +890,11 @@ type CategoryTranslation implements Node { name: String description: JSONString language: LanguageDisplay! - descriptionJson: JSONString @deprecated(reason: "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: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! category: Category } @@ -911,12 +911,12 @@ type Channel implements Node { type ChannelActivate { channel: Channel - channelErrors: [ChannelError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ChannelError!]! channel: Channel } @@ -932,12 +932,12 @@ input ChannelCreateInput { type ChannelDeactivate { channel: Channel - channelErrors: [ChannelError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ChannelError!]! channel: Channel } @@ -966,7 +966,7 @@ enum ChannelErrorCode { } type ChannelUpdate { - channelErrors: [ChannelError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ChannelError!]! channel: Channel } @@ -1004,7 +1004,7 @@ type Checkout implements Node & ObjectWithMetadata { quantity: Int! lines: [CheckoutLine] shippingPrice: TaxedMoney - shippingMethod: ShippingMethod @deprecated(reason: "Use delivery method instead") + shippingMethod: ShippingMethod @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.") deliveryMethod: DeliveryMethod subtotalPrice: TaxedMoney token: UUID! @@ -1014,13 +1014,13 @@ type Checkout implements Node & ObjectWithMetadata { type CheckoutAddPromoCode { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } @@ -1028,7 +1028,7 @@ type CheckoutComplete { order: Order confirmationNeeded: Boolean! confirmationData: JSONString - checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } @@ -1044,8 +1044,8 @@ type CheckoutCountableEdge { } type CheckoutCreate { - created: Boolean - checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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 } @@ -1061,13 +1061,13 @@ input CheckoutCreateInput { type CheckoutCustomerAttach { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } @@ -1078,7 +1078,7 @@ type CheckoutDeliveryMethodUpdate { type CheckoutEmailUpdate { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } @@ -1119,7 +1119,7 @@ enum CheckoutErrorCode { type CheckoutLanguageCodeUpdate { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } @@ -1144,7 +1144,7 @@ type CheckoutLineCountableEdge { type CheckoutLineDelete { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } @@ -1155,38 +1155,38 @@ input CheckoutLineInput { type CheckoutLinesAdd { checkout: Checkout - checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CheckoutError!]! } @@ -1204,7 +1204,7 @@ type Collection implements Node & ObjectWithMetadata { slug: String! privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - descriptionJson: JSONString @deprecated(reason: "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.") products(filter: ProductFilterInput, sortBy: ProductOrder, before: String, after: String, first: Int, last: Int): ProductCountableConnection backgroundImage(size: Int): Image translation(languageCode: LanguageCodeEnum!): CollectionTranslation @@ -1213,13 +1213,13 @@ type Collection implements Node & ObjectWithMetadata { type CollectionAddProducts { collection: Collection - collectionErrors: [CollectionError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! } @@ -1241,7 +1241,7 @@ type CollectionChannelListingError { type CollectionChannelListingUpdate { collection: Collection - collectionChannelListingErrors: [CollectionChannelListingError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + collectionChannelListingErrors: [CollectionChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionChannelListingError!]! } @@ -1262,7 +1262,7 @@ type CollectionCountableEdge { } type CollectionCreate { - collectionErrors: [CollectionError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! collection: Collection } @@ -1280,7 +1280,7 @@ input CollectionCreateInput { } type CollectionDelete { - collectionErrors: [CollectionError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! collection: Collection } @@ -1328,13 +1328,13 @@ enum CollectionPublished { type CollectionRemoveProducts { collection: Collection - collectionErrors: [CollectionError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! } @@ -1357,13 +1357,13 @@ type CollectionTranslatableContent implements Node { seoDescription: String name: String! description: JSONString - descriptionJson: JSONString @deprecated(reason: "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: "Will be removed in Saleor 4.0. Get model fields from the root level.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! collection: Collection } @@ -1375,11 +1375,11 @@ type CollectionTranslation implements Node { name: String description: JSONString language: LanguageDisplay! - descriptionJson: JSONString @deprecated(reason: "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: "Use errors field instead. This field will be removed in Saleor 4.0.") + collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [CollectionError!]! collection: Collection } @@ -1409,13 +1409,13 @@ enum ConfigurationTypeFieldEnum { type ConfirmAccount { user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -1683,7 +1683,7 @@ type CreateToken { refreshToken: String csrfToken: String user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -1697,18 +1697,18 @@ type CreditCard { type CustomerBulkDelete { count: Int! - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } @@ -1761,7 +1761,7 @@ input CustomerInput { } type CustomerUpdate { - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! user: User } @@ -1781,18 +1781,18 @@ input DateTimeRangeInput { } type DeactivateAllUserTokens { - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MetadataError!]! item: ObjectWithMetadata } @@ -1826,13 +1826,13 @@ type DigitalContentCountableEdge { type DigitalContentCreate { variant: ProductVariant content: DigitalContent - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -1846,7 +1846,7 @@ input DigitalContentInput { type DigitalContentUpdate { variant: ProductVariant content: DigitalContent - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -1868,7 +1868,7 @@ type DigitalContentUrl implements Node { } type DigitalContentUrlCreate { - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! digitalContentUrl: DigitalContentUrl } @@ -1924,18 +1924,18 @@ type Domain { type DraftOrderBulkDelete { count: Int! - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! order: Order } @@ -1955,7 +1955,7 @@ input DraftOrderCreateInput { } type DraftOrderDelete { - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! order: Order } @@ -1975,12 +1975,12 @@ input DraftOrderInput { type DraftOrderLinesBulkDelete { count: Int! - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! order: Order } @@ -2067,7 +2067,7 @@ input ExportInfoInput { type ExportProducts { exportFile: ExportFile - exportErrors: [ExportError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + exportErrors: [ExportError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ExportError!]! } @@ -2092,22 +2092,45 @@ type ExternalAuthentication { type ExternalAuthenticationUrl { authenticationData: JSONString - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } +type ExternalNotificationError { + field: String + message: String + code: ExternalNotificationErrorCodes! +} + +enum ExternalNotificationErrorCodes { + REQUIRED + INVALID_MODEL_TYPE + NOT_FOUND + CHANNEL_INACTIVE +} + +type ExternalNotificationTrigger { + errors: [ExternalNotificationError!]! +} + +input ExternalNotificationTriggerInput { + ids: [ID]! + extraPayload: JSONString + externalEventType: String! +} + type ExternalObtainAccessTokens { token: String refreshToken: String csrfToken: String user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -2116,7 +2139,7 @@ type ExternalRefresh { refreshToken: String csrfToken: String user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -2124,7 +2147,7 @@ type ExternalVerify { user: User isValid: Boolean! verifyData: JSONString - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -2140,7 +2163,7 @@ enum FileTypesEnum { type FileUpload { uploadedFile: File - uploadErrors: [UploadError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + uploadErrors: [UploadError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [UploadError!]! } @@ -2160,14 +2183,14 @@ type Fulfillment implements Node & ObjectWithMetadata { type FulfillmentApprove { fulfillment: Fulfillment order: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -2184,7 +2207,7 @@ type FulfillmentLine implements Node { type FulfillmentRefundProducts { fulfillment: Fulfillment order: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -2193,7 +2216,7 @@ type FulfillmentReturnProducts { replaceFulfillment: Fulfillment order: Order replaceOrder: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -2210,7 +2233,7 @@ enum FulfillmentStatus { type FulfillmentUpdateTracking { fulfillment: Fulfillment order: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -2248,14 +2271,14 @@ type GiftCard implements Node & ObjectWithMetadata { expiryPeriod: TimePeriod product: Product events: [GiftCardEvent!]! - user: User @deprecated(reason: "Will be removed in Saleor 4.0. Use created_by field instead") - endDate: DateTime @deprecated(reason: "Will be removed in Saleor 4.0. Use expiry_date field instead.") - startDate: DateTime @deprecated(reason: "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: "Use errors field instead. This field will be removed in Saleor 4.0.") + giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! } @@ -2271,7 +2294,7 @@ type GiftCardCountableEdge { } type GiftCardCreate { - giftCardErrors: [GiftCardError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! giftCard: GiftCard } @@ -2289,12 +2312,12 @@ input GiftCardCreateInput { type GiftCardDeactivate { giftCard: GiftCard - giftCardErrors: [GiftCardError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! giftCard: GiftCard } @@ -2375,7 +2398,7 @@ input GiftCardFilterInput { } type GiftCardUpdate { - giftCardErrors: [GiftCardError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [GiftCardError!]! giftCard: GiftCard } @@ -2431,7 +2454,7 @@ type Invoice implements ObjectWithMetadata & Job & Node { } type InvoiceCreate { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } @@ -2442,7 +2465,7 @@ input InvoiceCreateInput { } type InvoiceDelete { - invoiceErrors: [InvoiceError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } @@ -2465,25 +2488,25 @@ enum InvoiceErrorCode { type InvoiceRequest { order: Order - invoiceErrors: [InvoiceError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [InvoiceError!]! invoice: Invoice } @@ -3369,7 +3392,7 @@ type Menu implements Node & ObjectWithMetadata { type MenuBulkDelete { count: Int! - menuErrors: [MenuError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! } @@ -3385,7 +3408,7 @@ type MenuCountableEdge { } type MenuCreate { - menuErrors: [MenuError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! menu: Menu } @@ -3397,7 +3420,7 @@ input MenuCreateInput { } type MenuDelete { - menuErrors: [MenuError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! menu: Menu } @@ -3449,7 +3472,7 @@ type MenuItem implements Node & ObjectWithMetadata { type MenuItemBulkDelete { count: Int! - menuErrors: [MenuError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! } @@ -3465,7 +3488,7 @@ type MenuItemCountableEdge { } type MenuItemCreate { - menuErrors: [MenuError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! menuItem: MenuItem } @@ -3481,7 +3504,7 @@ input MenuItemCreateInput { } type MenuItemDelete { - menuErrors: [MenuError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! menuItem: MenuItem } @@ -3501,7 +3524,7 @@ input MenuItemInput { type MenuItemMove { menu: Menu - menuErrors: [MenuError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! } @@ -3520,11 +3543,11 @@ type MenuItemTranslatableContent implements Node { id: ID! name: String! translation(languageCode: LanguageCodeEnum!): MenuItemTranslation - menuItem: MenuItem @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! menuItem: MenuItem } @@ -3536,7 +3559,7 @@ type MenuItemTranslation implements Node { } type MenuItemUpdate { - menuErrors: [MenuError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! menuItem: MenuItem } @@ -3556,7 +3579,7 @@ input MenuSortingInput { } type MenuUpdate { - menuErrors: [MenuError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MenuError!]! menu: Menu } @@ -3708,7 +3731,7 @@ type Mutation { draftOrderCreate(input: DraftOrderCreateInput!): DraftOrderCreate draftOrderDelete(id: ID!): DraftOrderDelete draftOrderBulkDelete(ids: [ID]!): DraftOrderBulkDelete - draftOrderLinesBulkDelete(ids: [ID]!): DraftOrderLinesBulkDelete @deprecated(reason: "DEPRECATED: 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 @@ -3761,6 +3784,7 @@ type Mutation { giftCardDeactivate(id: ID!): GiftCardDeactivate giftCardUpdate(id: ID!, input: GiftCardUpdateInput!): GiftCardUpdate pluginUpdate(channelId: ID, id: ID!, input: PluginUpdateInput!): PluginUpdate + externalNotificationTrigger(channel: String!, input: ExternalNotificationTriggerInput!, pluginId: String): ExternalNotificationTrigger saleCreate(input: SaleInput!): SaleCreate saleDelete(id: ID!): SaleDelete saleBulkDelete(ids: [ID]!): SaleBulkDelete @@ -3783,7 +3807,7 @@ type Mutation { 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, 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 @@ -3792,7 +3816,7 @@ type Mutation { 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: "Will be removed in Saleor 4.0. Use `checkoutDeliveryMethodUpdate` instead") + 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 @@ -3892,7 +3916,6 @@ type Order implements Node & ObjectWithMetadata { trackingClientId: String! billingAddress: Address shippingAddress: Address - shippingMethod: ShippingMethod shippingMethodName: String collectionPointName: String channel: Channel! @@ -3922,6 +3945,7 @@ 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.") subtotal: TaxedMoney! statusDisplay: String canFinalize: Boolean! @@ -3932,11 +3956,11 @@ type Order implements Node & ObjectWithMetadata { userEmail: String isShippingRequired: Boolean! deliveryMethod: DeliveryMethod - languageCode: String! @deprecated(reason: "Use the `languageCodeEnum` field to fetch the language code. This field will be removed in Saleor 4.0.") + 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: "Use discounts field. This field will be removed in Saleor 4.0.") - discountName: String @deprecated(reason: "Use discounts field. This field will be removed in Saleor 4.0.") - translatedDiscountName: String @deprecated(reason: "Use discounts field. This field will be removed in Saleor 4.0.") + 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!]! } @@ -3951,7 +3975,7 @@ enum OrderAction { type OrderAddNote { order: Order event: OrderEvent - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -3961,25 +3985,25 @@ input OrderAddNoteInput { type OrderBulkCancel { count: Int! - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -4012,7 +4036,7 @@ type OrderDiscount implements Node { type OrderDiscountAdd { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -4024,7 +4048,7 @@ input OrderDiscountCommonInput { type OrderDiscountDelete { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -4035,7 +4059,7 @@ enum OrderDiscountType { type OrderDiscountUpdate { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -4214,7 +4238,7 @@ input OrderFilterInput { type OrderFulfill { fulfillments: [Fulfillment] order: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -4266,21 +4290,21 @@ input OrderLineCreateInput { type OrderLineDelete { order: Order orderLine: OrderLine - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -4290,7 +4314,7 @@ input OrderLineInput { type OrderLineUpdate { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! orderLine: OrderLine } @@ -4298,13 +4322,13 @@ type OrderLineUpdate { type OrderLinesCreate { order: Order orderLines: [OrderLine!] - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -4316,7 +4340,7 @@ enum OrderOriginEnum { type OrderRefund { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -4373,7 +4397,7 @@ enum OrderSettingsErrorCode { type OrderSettingsUpdate { orderSettings: OrderSettings - orderSettingsErrors: [OrderSettingsError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderSettingsErrors: [OrderSettingsError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderSettingsError!]! } @@ -4416,7 +4440,7 @@ enum OrderStatusFilter { } type OrderUpdate { - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! order: Order } @@ -4429,7 +4453,7 @@ input OrderUpdateInput { type OrderUpdateShipping { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -4439,7 +4463,7 @@ input OrderUpdateShippingInput { type OrderVoid { order: Order - orderErrors: [OrderError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [OrderError!]! } @@ -4456,32 +4480,32 @@ type Page implements Node & ObjectWithMetadata { created: DateTime! privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - contentJson: JSONString! @deprecated(reason: "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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! } @@ -4497,7 +4521,7 @@ type PageCountableEdge { } type PageCreate { - pageErrors: [PageError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! page: Page } @@ -4514,7 +4538,7 @@ input PageCreateInput { } type PageDelete { - pageErrors: [PageError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! page: Page } @@ -4563,7 +4587,7 @@ input PageInput { type PageReorderAttributeValues { page: Page - pageErrors: [PageError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! } @@ -4586,14 +4610,14 @@ type PageTranslatableContent implements Node { seoDescription: String title: String! content: JSONString - contentJson: JSONString @deprecated(reason: "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: "Will be removed in Saleor 4.0. Get model fields from the root level.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! page: PageTranslatableContent } @@ -4605,7 +4629,7 @@ type PageTranslation implements Node { title: String content: JSONString language: LanguageDisplay! - contentJson: JSONString @deprecated(reason: "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 { @@ -4628,7 +4652,7 @@ type PageType implements Node & ObjectWithMetadata { type PageTypeBulkDelete { count: Int! - pageErrors: [PageError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! } @@ -4644,7 +4668,7 @@ type PageTypeCountableEdge { } type PageTypeCreate { - pageErrors: [PageError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! pageType: PageType } @@ -4656,7 +4680,7 @@ input PageTypeCreateInput { } type PageTypeDelete { - pageErrors: [PageError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! pageType: PageType } @@ -4667,7 +4691,7 @@ input PageTypeFilterInput { type PageTypeReorderAttributes { pageType: PageType - pageErrors: [PageError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! } @@ -4682,7 +4706,7 @@ input PageTypeSortingInput { } type PageTypeUpdate { - pageErrors: [PageError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PageError!]! pageType: PageType } @@ -4695,14 +4719,14 @@ input PageTypeUpdateInput { } type PageUpdate { - pageErrors: [PageError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -4729,7 +4753,7 @@ type Payment implements Node { type PaymentCapture { payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PaymentError!]! } @@ -4790,7 +4814,7 @@ type PaymentGateway { type PaymentInitialize { initializedPayment: PaymentInitialized - paymentErrors: [PaymentError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PaymentError!]! } @@ -4809,7 +4833,7 @@ input PaymentInput { type PaymentRefund { payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PaymentError!]! } @@ -4821,7 +4845,7 @@ type PaymentSource { type PaymentVoid { payment: Payment - paymentErrors: [PaymentError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PaymentError!]! } @@ -4833,6 +4857,7 @@ type Permission { enum PermissionEnum { MANAGE_USERS MANAGE_STAFF + IMPERSONATE_USER MANAGE_APPS MANAGE_CHANNELS MANAGE_DISCOUNTS @@ -4852,7 +4877,7 @@ enum PermissionEnum { } type PermissionGroupCreate { - permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PermissionGroupError!]! group: Group } @@ -4864,7 +4889,7 @@ input PermissionGroupCreateInput { } type PermissionGroupDelete { - permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PermissionGroupError!]! group: Group } @@ -4902,7 +4927,7 @@ input PermissionGroupSortingInput { } type PermissionGroupUpdate { - permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PermissionGroupError!]! group: Group } @@ -4983,7 +5008,7 @@ input PluginStatusInChannelsInput { type PluginUpdate { plugin: Plugin - pluginsErrors: [PluginError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + pluginsErrors: [PluginError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [PluginError!]! } @@ -5025,7 +5050,7 @@ type Product implements Node & ObjectWithMetadata { rating: Float privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - descriptionJson: JSONString @deprecated(reason: "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 @@ -5033,10 +5058,10 @@ type Product implements Node & ObjectWithMetadata { attributes: [SelectedAttribute!]! channelListings: [ProductChannelListing!] mediaById(id: ID): ProductMedia - imageById(id: ID): ProductImage @deprecated(reason: "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: "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 @@ -5045,7 +5070,7 @@ type Product implements Node & ObjectWithMetadata { type ProductAttributeAssign { productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -5061,13 +5086,13 @@ enum ProductAttributeType { type ProductAttributeUnassign { productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -5108,7 +5133,7 @@ type ProductChannelListingError { type ProductChannelListingUpdate { product: Product - productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductChannelListingError!]! } @@ -5129,7 +5154,7 @@ type ProductCountableEdge { } type ProductCreate { - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! product: Product } @@ -5150,7 +5175,7 @@ input ProductCreateInput { } type ProductDelete { - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! product: Product } @@ -5246,14 +5271,14 @@ type ProductMedia implements Node { type ProductMediaBulkDelete { count: Int! - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -5267,14 +5292,14 @@ input ProductMediaCreateInput { type ProductMediaDelete { product: Product media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -5286,7 +5311,7 @@ enum ProductMediaType { type ProductMediaUpdate { product: Product media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -5325,7 +5350,7 @@ type ProductPricingInfo { type ProductReorderAttributeValues { product: Product - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -5340,14 +5365,14 @@ type ProductTranslatableContent implements Node { seoDescription: String name: String! description: JSONString - descriptionJson: JSONString @deprecated(reason: "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: "Will be removed in Saleor 4.0. Get model fields from the root level.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! product: Product } @@ -5359,7 +5384,7 @@ type ProductTranslation implements Node { name: String description: JSONString language: LanguageDisplay! - descriptionJson: JSONString @deprecated(reason: "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 { @@ -5372,7 +5397,7 @@ type ProductType implements Node & ObjectWithMetadata { weight: Weight privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - products(channel: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection @deprecated(reason: "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] productAttributes: [Attribute] @@ -5381,7 +5406,7 @@ type ProductType implements Node & ObjectWithMetadata { type ProductTypeBulkDelete { count: Int! - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -5402,13 +5427,13 @@ type ProductTypeCountableEdge { } type ProductTypeCreate { - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productType: ProductType } @@ -5440,7 +5465,7 @@ input ProductTypeInput { type ProductTypeReorderAttributes { productType: ProductType - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -5456,13 +5481,13 @@ input ProductTypeSortingInput { } type ProductTypeUpdate { - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! product: Product } @@ -5482,7 +5507,7 @@ type ProductVariant implements Node & ObjectWithMetadata { margin: Int quantityOrdered: Int revenue(period: ReportingPeriod): TaxedMoney - images: [ProductImage] @deprecated(reason: "Will be removed in Saleor 4.0. Use the `media` 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 @@ -5493,7 +5518,7 @@ type ProductVariant implements Node & ObjectWithMetadata { type ProductVariantBulkCreate { count: Int! productVariants: [ProductVariant!]! - bulkProductErrors: [BulkProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + bulkProductErrors: [BulkProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [BulkProductError!]! } @@ -5508,7 +5533,7 @@ input ProductVariantBulkCreateInput { type ProductVariantBulkDelete { count: Int! - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -5528,7 +5553,7 @@ input ProductVariantChannelListingAddInput { type ProductVariantChannelListingUpdate { variant: ProductVariant - productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductChannelListingError!]! } @@ -5544,7 +5569,7 @@ type ProductVariantCountableEdge { } type ProductVariantCreate { - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productVariant: ProductVariant } @@ -5559,7 +5584,7 @@ input ProductVariantCreateInput { } type ProductVariantDelete { - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productVariant: ProductVariant } @@ -5579,37 +5604,37 @@ input ProductVariantInput { type ProductVariantReorder { product: Product - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + bulkStockErrors: [BulkStockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [BulkStockError!]! } @@ -5617,12 +5642,12 @@ type ProductVariantTranslatableContent implements Node { id: ID! name: String! translation(languageCode: LanguageCodeEnum!): ProductVariantTranslation - productVariant: ProductVariant @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! productVariant: ProductVariant } @@ -5634,7 +5659,7 @@ type ProductVariantTranslation implements Node { } type ProductVariantUpdate { - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! productVariant: ProductVariant } @@ -5731,7 +5756,7 @@ type ReducedRate { type RefreshToken { token: String user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -5747,12 +5772,12 @@ enum ReportingPeriod { type RequestEmailChange { user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -5775,13 +5800,13 @@ type Sale implements Node & ObjectWithMetadata { type SaleAddCatalogues { sale: Sale - discountErrors: [DiscountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } @@ -5804,7 +5829,7 @@ input SaleChannelListingInput { type SaleChannelListingUpdate { sale: Sale - discountErrors: [DiscountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } @@ -5820,13 +5845,13 @@ type SaleCountableEdge { } type SaleCreate { - discountErrors: [DiscountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! sale: Sale } @@ -5852,7 +5877,7 @@ input SaleInput { type SaleRemoveCatalogues { sale: Sale - discountErrors: [DiscountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } @@ -5874,11 +5899,11 @@ type SaleTranslatableContent implements Node { id: ID! name: String! translation(languageCode: LanguageCodeEnum!): SaleTranslation - sale: Sale @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! sale: Sale } @@ -5895,7 +5920,7 @@ enum SaleType { } type SaleUpdate { - discountErrors: [DiscountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! sale: Sale } @@ -5915,7 +5940,7 @@ type SetPassword { refreshToken: String csrfToken: String user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -5980,7 +6005,7 @@ input ShippingMethodChannelListingInput { type ShippingMethodChannelListingUpdate { shippingMethod: ShippingMethod - shippingErrors: [ShippingError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! } @@ -5996,7 +6021,7 @@ type ShippingMethodTranslatableContent implements Node { name: String! description: JSONString translation(languageCode: LanguageCodeEnum!): ShippingMethodTranslation - shippingMethod: ShippingMethod @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.") + 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 { @@ -6018,27 +6043,27 @@ input ShippingPostalCodeRulesCreateInputRange { type ShippingPriceBulkDelete { count: Int! - shippingErrors: [ShippingError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! } @@ -6062,12 +6087,12 @@ input ShippingPriceInput { type ShippingPriceRemoveProductFromExclude { shippingMethod: ShippingMethod - shippingErrors: [ShippingError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! shippingMethod: ShippingMethod } @@ -6080,7 +6105,7 @@ input ShippingPriceTranslationInput { type ShippingPriceUpdate { shippingZone: ShippingZone shippingMethod: ShippingMethod - shippingErrors: [ShippingError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! } @@ -6100,7 +6125,7 @@ type ShippingZone implements Node & ObjectWithMetadata { type ShippingZoneBulkDelete { count: Int! - shippingErrors: [ShippingError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! } @@ -6116,7 +6141,7 @@ type ShippingZoneCountableEdge { } type ShippingZoneCreate { - shippingErrors: [ShippingError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! shippingZone: ShippingZone } @@ -6131,7 +6156,7 @@ input ShippingZoneCreateInput { } type ShippingZoneDelete { - shippingErrors: [ShippingError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! shippingZone: ShippingZone } @@ -6142,7 +6167,7 @@ input ShippingZoneFilterInput { } type ShippingZoneUpdate { - shippingErrors: [ShippingError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShippingError!]! shippingZone: ShippingZone } @@ -6194,13 +6219,13 @@ type Shop { type ShopAddressUpdate { shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! } @@ -6222,7 +6247,7 @@ enum ShopErrorCode { type ShopFetchTaxRates { shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! } @@ -6246,7 +6271,7 @@ input ShopSettingsInput { type ShopSettingsTranslate { shop: Shop - translationErrors: [TranslationError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! } @@ -6257,7 +6282,7 @@ input ShopSettingsTranslationInput { type ShopSettingsUpdate { shop: Shop - shopErrors: [ShopError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! } @@ -6275,12 +6300,12 @@ input SiteDomainInput { type StaffBulkDelete { count: Int! - staffErrors: [StaffError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [StaffError!]! user: User } @@ -6296,7 +6321,7 @@ input StaffCreateInput { } type StaffDelete { - staffErrors: [StaffError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [StaffError!]! user: User } @@ -6324,13 +6349,13 @@ type StaffNotificationRecipient implements Node { } type StaffNotificationRecipientCreate { - shopErrors: [ShopError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } @@ -6342,13 +6367,13 @@ input StaffNotificationRecipientInput { } type StaffNotificationRecipientUpdate { - shopErrors: [ShopError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [StaffError!]! user: User } @@ -6529,13 +6554,13 @@ input UpdateInvoiceInput { } type UpdateMetadata { - metadataErrors: [MetadataError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [MetadataError!]! item: ObjectWithMetadata } @@ -6567,7 +6592,7 @@ type User implements Node & ObjectWithMetadata { privateMetadata: [MetadataItem]! metadata: [MetadataItem]! addresses: [Address] - checkout: Checkout @deprecated(reason: "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 @@ -6582,19 +6607,19 @@ type User implements Node & ObjectWithMetadata { type UserAvatarDelete { user: User - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -6655,14 +6680,14 @@ enum VariantAttributeScope { type VariantMediaAssign { productVariant: ProductVariant media: ProductMedia - productErrors: [ProductError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [ProductError!]! } @@ -6679,7 +6704,7 @@ type VerifyToken { user: User isValid: Boolean! payload: GenericScalar - accountErrors: [AccountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [AccountError!]! } @@ -6728,13 +6753,13 @@ type Voucher implements Node & ObjectWithMetadata { type VoucherAddCatalogues { voucher: Voucher - discountErrors: [DiscountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } @@ -6759,7 +6784,7 @@ input VoucherChannelListingInput { type VoucherChannelListingUpdate { voucher: Voucher - discountErrors: [DiscountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } @@ -6775,13 +6800,13 @@ type VoucherCountableEdge { } type VoucherCreate { - discountErrors: [DiscountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! voucher: Voucher } @@ -6821,7 +6846,7 @@ input VoucherInput { type VoucherRemoveCatalogues { voucher: Voucher - discountErrors: [DiscountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! } @@ -6845,11 +6870,11 @@ type VoucherTranslatableContent implements Node { id: ID! name: String translation(languageCode: LanguageCodeEnum!): VoucherTranslation - voucher: Voucher @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [TranslationError!]! voucher: Voucher } @@ -6867,7 +6892,7 @@ enum VoucherTypeEnum { } type VoucherUpdate { - discountErrors: [DiscountError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [DiscountError!]! voucher: Voucher } @@ -6882,7 +6907,7 @@ type Warehouse implements Node & ObjectWithMetadata { isPrivate: Boolean! privateMetadata: [MetadataItem]! metadata: [MetadataItem]! - companyName: String! @deprecated(reason: "Use address.CompanyName. This field will be removed in Saleor 4.0.") + companyName: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `Address.companyName` instead.") clickAndCollectOption: WarehouseClickAndCollectOptionEnum! } @@ -6904,7 +6929,7 @@ type WarehouseCountableEdge { } type WarehouseCreate { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse } @@ -6918,7 +6943,7 @@ input WarehouseCreateInput { } type WarehouseDelete { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse } @@ -6946,13 +6971,13 @@ input WarehouseFilterInput { } type WarehouseShippingZoneAssign { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + 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: "Use errors field instead. This field will be removed in Saleor 4.0.") + warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse } @@ -6967,7 +6992,7 @@ input WarehouseSortingInput { } type WarehouseUpdate { - warehouseErrors: [WarehouseError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WarehouseError!]! warehouse: Warehouse } @@ -6992,7 +7017,7 @@ type Webhook implements Node { } type WebhookCreate { - webhookErrors: [WebhookError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WebhookError!]! webhook: Webhook } @@ -7007,7 +7032,7 @@ input WebhookCreateInput { } type WebhookDelete { - webhookErrors: [WebhookError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WebhookError!]! webhook: Webhook } @@ -7111,7 +7136,7 @@ enum WebhookSampleEventTypeEnum { } type WebhookUpdate { - webhookErrors: [WebhookError!]! @deprecated(reason: "Use errors field instead. This field will be removed in Saleor 4.0.") + webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.") errors: [WebhookError!]! webhook: Webhook } @@ -7146,4 +7171,4 @@ union _Entity = App | Address | User | Group | ProductVariant | Product | Produc type _Service { sdl: String -} +} \ No newline at end of file diff --git a/src/categories/components/CategoryProductList/CategoryProductList.tsx b/src/categories/components/CategoryProductList/CategoryProductList.tsx index a9c2d2226..f848c6ab8 100644 --- a/src/categories/components/CategoryProductList/CategoryProductList.tsx +++ b/src/categories/components/CategoryProductList/CategoryProductList.tsx @@ -1,7 +1,5 @@ import { TableBody, TableCell, TableFooter, TableRow } from "@material-ui/core"; -import { ChannelsAvailabilityDropdown } from "@saleor/components/ChannelsAvailabilityDropdown"; import Checkbox from "@saleor/components/Checkbox"; -import MoneyRange from "@saleor/components/MoneyRange"; import ResponsiveTable from "@saleor/components/ResponsiveTable"; import Skeleton from "@saleor/components/Skeleton"; import TableCellAvatar from "@saleor/components/TableCellAvatar"; @@ -10,7 +8,7 @@ import TableHead from "@saleor/components/TableHead"; import TablePagination from "@saleor/components/TablePagination"; import { makeStyles } from "@saleor/macaw-ui"; import { maybe, renderCollection } from "@saleor/misc"; -import { ChannelProps, ListActions, ListProps } from "@saleor/types"; +import { ListActions, ListProps } from "@saleor/types"; import React from "react"; import { FormattedMessage } from "react-intl"; @@ -21,15 +19,6 @@ const useStyles = makeStyles( [theme.breakpoints.up("lg")]: { colName: { width: "auto" - }, - colPrice: { - width: 300 - }, - colPublished: { - width: 200 - }, - colType: { - width: 200 } }, colFill: { @@ -40,11 +29,6 @@ const useStyles = makeStyles( colNameHeader: { marginLeft: AVATAR_MARGIN }, - colPrice: { - textAlign: "right" - }, - colPublished: {}, - colType: {}, link: { cursor: "pointer" }, @@ -66,17 +50,12 @@ const useStyles = makeStyles( } ); -interface CategoryProductListProps - extends ListProps, - ListActions, - ChannelProps { - channelsCount: number; +interface CategoryProductListProps extends ListProps, ListActions { products: CategoryDetails_category_products_edges_node[]; } export const CategoryProductList: React.FC = props => { const { - channelsCount, disabled, isChecked, pageInfo, @@ -87,13 +66,12 @@ export const CategoryProductList: React.FC = props => toolbar, onNextPage, onPreviousPage, - onRowClick, - selectedChannelId + onRowClick } = props; const classes = useStyles(props); - const numberOfColumns = 5; + const numberOfColumns = 2; return (
@@ -101,9 +79,6 @@ export const CategoryProductList: React.FC = props => - - - = props => - - - - - - - - - @@ -155,9 +112,6 @@ export const CategoryProductList: React.FC = props => products, product => { const isSelected = product ? isChecked(product.id) : false; - const channel = product?.channelListings.find( - listing => listing.channel.id === selectedChannelId - ); return ( = props => > {product ? product.name : } - - {product && product.productType ? ( - product.productType.name - ) : ( - - )} - - - {product && !product?.channelListings?.length ? ( - "-" - ) : product?.channelListings !== undefined ? ( - - ) : ( - - )} - - - {product?.channelListings ? ( - - ) : ( - - )} - ); }, diff --git a/src/categories/components/CategoryProducts/CategoryProducts.tsx b/src/categories/components/CategoryProducts/CategoryProducts.tsx index 255468850..0cba493e1 100644 --- a/src/categories/components/CategoryProducts/CategoryProducts.tsx +++ b/src/categories/components/CategoryProducts/CategoryProducts.tsx @@ -1,25 +1,23 @@ import { Button, Card } from "@material-ui/core"; +import HorizontalSpacer from "@saleor/apps/components/HorizontalSpacer"; import CardTitle from "@saleor/components/CardTitle"; -import { SingleAutocompleteChoiceType } from "@saleor/components/SingleAutocompleteSelectField"; +import { InternalLink } from "@saleor/components/InternalLink"; +import { productListUrl } from "@saleor/products/urls"; import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; -import { ChannelProps, ListActions, PageListProps } from "../../../types"; +import { ListActions, PageListProps } from "../../../types"; import { CategoryDetails_category_products_edges_node } from "../../types/CategoryDetails"; import CategoryProductList from "../CategoryProductList"; +import { useStyles } from "./styles"; -interface CategoryProductsProps - extends PageListProps, - ListActions, - ChannelProps { +interface CategoryProductsProps extends PageListProps, ListActions { products: CategoryDetails_category_products_edges_node[]; - channelChoices: SingleAutocompleteChoiceType[]; - channelsCount: number; categoryName: string; + categoryId: string; } export const CategoryProducts: React.FC = ({ - channelsCount, products, disabled, pageInfo, @@ -27,15 +25,16 @@ export const CategoryProducts: React.FC = ({ onNextPage, onPreviousPage, onRowClick, + categoryId, categoryName, isChecked, selected, - selectedChannelId, toggle, toggleAll, toolbar }) => { const intl = useIntl(); + const classes = useStyles(); return ( @@ -48,22 +47,39 @@ export const CategoryProducts: React.FC = ({ { categoryName } )} toolbar={ - +
+ + + + + +
} /> ({ + toolbar: { + display: "flex" + } + }), + { name: "CategoryProducts" } +); diff --git a/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx b/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx index c43e2de16..3bff454a7 100644 --- a/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx +++ b/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx @@ -7,7 +7,6 @@ import Metadata from "@saleor/components/Metadata/Metadata"; import PageHeader from "@saleor/components/PageHeader"; import Savebar from "@saleor/components/Savebar"; import SeoForm from "@saleor/components/SeoForm"; -import { SingleAutocompleteChoiceType } from "@saleor/components/SingleAutocompleteSelectField"; import { Tab, TabContainer } from "@saleor/components/Tab"; import { ProductErrorFragment } from "@saleor/fragments/types/ProductErrorFragment"; import { SubmitPromise } from "@saleor/hooks/useForm"; @@ -17,7 +16,7 @@ import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; import { maybe } from "../../../misc"; -import { ChannelProps, TabListActions } from "../../../types"; +import { TabListActions } from "../../../types"; import CategoryDetailsForm from "../../components/CategoryDetailsForm"; import CategoryList from "../../components/CategoryList"; import { @@ -35,8 +34,7 @@ export enum CategoryPageTab { } export interface CategoryUpdatePageProps - extends TabListActions<"productListToolbar" | "subcategoryListToolbar">, - ChannelProps { + extends TabListActions<"productListToolbar" | "subcategoryListToolbar"> { changeTab: (index: CategoryPageTab) => void; currentTab: CategoryPageTab; errors: ProductErrorFragment[]; @@ -49,8 +47,6 @@ export interface CategoryUpdatePageProps hasPreviousPage: boolean; }; saveButtonBarState: ConfirmButtonTransitionState; - channelChoices: SingleAutocompleteChoiceType[]; - channelsCount: number; onImageDelete: () => void; onSubmit: (data: CategoryUpdateData) => SubmitPromise; onImageUpload(file: File); @@ -69,8 +65,6 @@ const ProductsTab = Tab(CategoryPageTab.products); export const CategoryUpdatePage: React.FC = ({ changeTab, - channelChoices, - channelsCount, currentTab, category, disabled, @@ -93,7 +87,6 @@ export const CategoryUpdatePage: React.FC = ({ isChecked, productListToolbar, selected, - selectedChannelId, subcategoryListToolbar, toggle, toggleAll @@ -206,8 +199,7 @@ export const CategoryUpdatePage: React.FC = ({ )} {currentTab === CategoryPageTab.products && ( = ({ toggle={toggle} toggleAll={toggleAll} selected={selected} - selectedChannelId={selectedChannelId} isChecked={isChecked} toolbar={productListToolbar} /> diff --git a/src/categories/queries.ts b/src/categories/queries.ts index 34b6c7dec..c1877d1b4 100644 --- a/src/categories/queries.ts +++ b/src/categories/queries.ts @@ -3,7 +3,6 @@ import { categoryFragment } from "@saleor/fragments/categories"; import { pageInfoFragment } from "@saleor/fragments/pageInfo"; -import { channelListingProductFragment } from "@saleor/fragments/products"; import makeQuery from "@saleor/hooks/makeQuery"; import gql from "graphql-tag"; @@ -49,7 +48,6 @@ export const useRootCategoriesQuery = makeQuery( ); export const categoryDetails = gql` - ${channelListingProductFragment} ${categoryFragment} ${categoryDetailsFragment} ${pageInfoFragment} @@ -84,13 +82,6 @@ export const categoryDetails = gql` thumbnail { url } - productType { - id - name - } - channelListings { - ...ChannelListingProductFragment - } } } } diff --git a/src/categories/types/CategoryDetails.ts b/src/categories/types/CategoryDetails.ts index 754339a8c..c66484dd3 100644 --- a/src/categories/types/CategoryDetails.ts +++ b/src/categories/types/CategoryDetails.ts @@ -80,70 +80,11 @@ export interface CategoryDetails_category_products_edges_node_thumbnail { url: string; } -export interface CategoryDetails_category_products_edges_node_productType { - __typename: "ProductType"; - id: string; - name: string; -} - -export interface CategoryDetails_category_products_edges_node_channelListings_channel { - __typename: "Channel"; - id: string; - name: string; - currencyCode: string; -} - -export interface CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_start_net { - __typename: "Money"; - amount: number; - currency: string; -} - -export interface CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_start { - __typename: "TaxedMoney"; - net: CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_start_net; -} - -export interface CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_stop_net { - __typename: "Money"; - amount: number; - currency: string; -} - -export interface CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_stop { - __typename: "TaxedMoney"; - net: CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_stop_net; -} - -export interface CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange { - __typename: "TaxedMoneyRange"; - start: CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_start | null; - stop: CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange_stop | null; -} - -export interface CategoryDetails_category_products_edges_node_channelListings_pricing { - __typename: "ProductPricingInfo"; - priceRange: CategoryDetails_category_products_edges_node_channelListings_pricing_priceRange | null; -} - -export interface CategoryDetails_category_products_edges_node_channelListings { - __typename: "ProductChannelListing"; - isPublished: boolean; - publicationDate: any | null; - isAvailableForPurchase: boolean | null; - availableForPurchase: any | null; - visibleInListings: boolean; - channel: CategoryDetails_category_products_edges_node_channelListings_channel; - pricing: CategoryDetails_category_products_edges_node_channelListings_pricing | null; -} - export interface CategoryDetails_category_products_edges_node { __typename: "Product"; id: string; name: string; thumbnail: CategoryDetails_category_products_edges_node_thumbnail | null; - productType: CategoryDetails_category_products_edges_node_productType; - channelListings: CategoryDetails_category_products_edges_node_channelListings[] | null; } export interface CategoryDetails_category_products_edges { diff --git a/src/categories/views/CategoryDetails.tsx b/src/categories/views/CategoryDetails.tsx index 8ae65d1d2..169c314f4 100644 --- a/src/categories/views/CategoryDetails.tsx +++ b/src/categories/views/CategoryDetails.tsx @@ -1,9 +1,7 @@ import { DialogContentText, IconButton } from "@material-ui/core"; import DeleteIcon from "@material-ui/icons/Delete"; import ActionDialog from "@saleor/components/ActionDialog"; -import useAppChannel from "@saleor/components/AppLayout/AppChannelContext"; import NotFoundPage from "@saleor/components/NotFoundPage"; -import Skeleton from "@saleor/components/Skeleton"; import { WindowTitle } from "@saleor/components/WindowTitle"; import useBulkActions from "@saleor/hooks/useBulkActions"; import useNavigator from "@saleor/hooks/useNavigator"; @@ -14,7 +12,7 @@ import usePaginator, { import { commonMessages, errorMessages } from "@saleor/intl"; import createDialogActionHandlers from "@saleor/utils/handlers/dialogActionHandlers"; import createMetadataUpdateHandler from "@saleor/utils/handlers/metadataUpdateHandler"; -import { mapEdgesToItems, mapNodeToChoice } from "@saleor/utils/maps"; +import { mapEdgesToItems } from "@saleor/utils/maps"; import { useMetadataUpdate, usePrivateMetadataUpdate @@ -81,10 +79,6 @@ export const CategoryDetails: React.FC = ({ variables: { ...paginationState, id } }); - const { availableChannels, channel } = useAppChannel(false); - - const channelChoices = mapNodeToChoice(availableChannels); - const category = data?.category; if (category === null) { @@ -209,16 +203,10 @@ export const CategoryDetails: React.FC = ({ variables => updatePrivateMetadata({ variables }) ); - if (typeof channel === "undefined") { - return ; - } - return ( <> data.category.name)} /> data.category)} @@ -260,7 +248,6 @@ export const CategoryDetails: React.FC = ({ onSubmit={handleSubmit} products={mapEdgesToItems(data?.category?.products)} saveButtonBarState={updateResult.status} - selectedChannelId={channel?.id} subcategories={mapEdgesToItems(data?.category?.children)} subcategoryListToolbar={ = ({ className, ...props }) => { + const classes = useStyles(); + + return ; +}; + +export default InternalLink; diff --git a/src/components/InternalLink/index.ts b/src/components/InternalLink/index.ts new file mode 100644 index 000000000..bfbea33e2 --- /dev/null +++ b/src/components/InternalLink/index.ts @@ -0,0 +1 @@ +export * from "./InternalLink"; diff --git a/src/components/InternalLink/styles.ts b/src/components/InternalLink/styles.ts new file mode 100644 index 000000000..9aa315bd7 --- /dev/null +++ b/src/components/InternalLink/styles.ts @@ -0,0 +1,10 @@ +import { makeStyles } from "@saleor/macaw-ui"; + +export const useStyles = makeStyles( + () => ({ + root: { + textDecoration: "none" + } + }), + { name: "InternalLink" } +); diff --git a/src/orders/types/OrderFulfillData.ts b/src/orders/types/OrderFulfillData.ts index d17547c67..ef9adb48b 100644 --- a/src/orders/types/OrderFulfillData.ts +++ b/src/orders/types/OrderFulfillData.ts @@ -11,6 +11,7 @@ import { WarehouseClickAndCollectOptionEnum } from "./../../types/globalTypes"; export interface OrderFulfillData_order_deliveryMethod_ShippingMethod { __typename: "ShippingMethod"; + id: string; } export interface OrderFulfillData_order_deliveryMethod_Warehouse { diff --git a/src/orders/types/OrderFulfillmentApprove.ts b/src/orders/types/OrderFulfillmentApprove.ts index c7d45a685..9a7ef5047 100644 --- a/src/orders/types/OrderFulfillmentApprove.ts +++ b/src/orders/types/OrderFulfillmentApprove.ts @@ -103,6 +103,13 @@ export interface OrderFulfillmentApprove_orderFulfillmentApprove_order_events_us lastName: string; } +export interface OrderFulfillmentApprove_orderFulfillmentApprove_order_events_app { + __typename: "App"; + id: string; + name: string | null; + appUrl: string | null; +} + export interface OrderFulfillmentApprove_orderFulfillmentApprove_order_events_lines_discount_amount { __typename: "Money"; amount: number; @@ -157,6 +164,7 @@ export interface OrderFulfillmentApprove_orderFulfillmentApprove_order_events { transactionReference: string | null; type: OrderEventsEnum | null; user: OrderFulfillmentApprove_orderFulfillmentApprove_order_events_user | null; + app: OrderFulfillmentApprove_orderFulfillmentApprove_order_events_app | null; lines: (OrderFulfillmentApprove_orderFulfillmentApprove_order_events_lines | null)[] | null; } diff --git a/src/products/views/ProductUpdate/ProductUpdate.tsx b/src/products/views/ProductUpdate/ProductUpdate.tsx index ae112d0a4..e0511fa01 100644 --- a/src/products/views/ProductUpdate/ProductUpdate.tsx +++ b/src/products/views/ProductUpdate/ProductUpdate.tsx @@ -165,7 +165,7 @@ export const ProductUpdate: React.FC = ({ id, params }) => { productVariantCreateOpts ] = useVariantCreateMutation({}); - const { availableChannels, channel } = useAppChannel(false); + const { availableChannels, channel } = useAppChannel(); const { data, loading, refetch } = useProductDetails({ displayLoader: true, variables: { diff --git a/src/shipping/views/ShippingZoneDetails/index.tsx b/src/shipping/views/ShippingZoneDetails/index.tsx index dddd58501..3712d236c 100644 --- a/src/shipping/views/ShippingZoneDetails/index.tsx +++ b/src/shipping/views/ShippingZoneDetails/index.tsx @@ -73,7 +73,7 @@ const ShippingZoneDetails: React.FC = ({ displayLoader: true, variables: { id, ...paginationState } }); - const { availableChannels, channel } = useAppChannel(false); + const { availableChannels, channel } = useAppChannel(); const [openModal, closeModal] = createDialogActionHandlers< ShippingZoneUrlDialog, diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index 071d0d1ef..b5ce2e89f 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -26316,6 +26316,42 @@ exports[`Storyshots Views / Apps / Webhooks / Create webhook default 1`] = `
+
+ +
-
- -
-
- -
+
+ +
+
+ +
-
- -
-
- -
+
+ +
+
+ +
-
- -
-
- -
+
+ +
+
+ +
-
- -
-
- -
+
+ +
+
+ +
-
- -
-
- -
+
+ +
+
+ +
-
- -
-
- -
+
+ +
+
+ +
-
- -
-
- -
+
+ +
- - - - - Type - - - Availability - - - Price -
No products found @@ -53087,18 +53084,42 @@ exports[`Storyshots Views / Categories / Update category products 1`] = `
- + + +
+ +
- - - - - Type - - - Availability - - - Price -
- - Coffee - - -
-
-
-
-
-
- 2/2 channels -
-
-
-
-
- - - $30.10 - $44.90 -
- - Coffee - - -
-
-
-
-
-
- 1/2 channels -
-
-
-
-
- - - - -
- - Coffee - - -
-
-
-
-
-
- 1/2 channels -
-
-
-
-
- - - - -
- - Coffee - - -
-
-
-
-
-
- 1/2 channels -
-
-
-
-
- - - - -
- - Coffee - - -
-
-
-
-
-
- 1/2 channels -
-
-
-
-
- - - - -
- - Coffee - - -
-
-
-
-
-
- 1/2 channels -
-
-
-
-
- - - - -
- - Coffee - - -
-
-
-
-
-
- 1/2 channels -
-
-
-
-
- - - - -
- - Coffee - - -
-
-
-
-
-
- 1/2 channels -
-
-
-
-
- - - - -
- - Coffee - - -
-
-
-
-
-
- 1/2 channels -
-
-
-
-
- - - - -
- - Coffee - - -
-
-
-
-
-
- 1/2 channels -
-
-
-
-
- - - - - diff --git a/src/storybook/stories/categories/CategoryUpdatePage.tsx b/src/storybook/stories/categories/CategoryUpdatePage.tsx index 416129ce8..1d6dd51db 100644 --- a/src/storybook/stories/categories/CategoryUpdatePage.tsx +++ b/src/storybook/stories/categories/CategoryUpdatePage.tsx @@ -1,6 +1,6 @@ import placeholderImage from "@assets/images/placeholder255x255.png"; import { ProductErrorCode } from "@saleor/types/globalTypes"; -import { mapEdgesToItems, mapNodeToChoice } from "@saleor/utils/maps"; +import { mapEdgesToItems } from "@saleor/utils/maps"; import { storiesOf } from "@storybook/react"; import React from "react"; @@ -14,13 +14,9 @@ import Decorator from "../../Decorator"; const category = categoryFixture(placeholderImage); -const channelChoices = mapNodeToChoice(mapEdgesToItems(category?.products)); - const updateProps: Omit = { category, changeTab: undefined, - channelChoices, - channelsCount: 2, currentTab: CategoryPageTab.categories, disabled: false, errors: [], @@ -42,7 +38,6 @@ const updateProps: Omit = { productListToolbar: null, products: mapEdgesToItems(category.products), saveButtonBarState: "default", - selectedChannelId: "123", subcategories: mapEdgesToItems(category.children), subcategoryListToolbar: null, ...listActionsProps diff --git a/src/types/globalTypes.ts b/src/types/globalTypes.ts index 543e78dc2..3f970fd59 100644 --- a/src/types/globalTypes.ts +++ b/src/types/globalTypes.ts @@ -1542,6 +1542,7 @@ export enum PaymentChargeStatusEnum { export enum PermissionEnum { HANDLE_PAYMENTS = "HANDLE_PAYMENTS", + IMPERSONATE_USER = "IMPERSONATE_USER", MANAGE_APPS = "MANAGE_APPS", MANAGE_CHANNELS = "MANAGE_CHANNELS", MANAGE_CHECKOUTS = "MANAGE_CHECKOUTS",