From 4c27d69229ea1c558c7e861c615a4a1b23b57151 Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Tue, 3 Mar 2020 12:20:39 +0100 Subject: [PATCH] Fix form errors --- schema.graphql | 1330 ++++++++++------- src/attributes/types/AttributeBulkDelete.ts | 2 +- src/attributes/types/AttributeCreate.ts | 2 +- src/attributes/types/AttributeDelete.ts | 2 +- src/attributes/types/AttributeUpdate.ts | 2 +- src/attributes/types/AttributeValueCreate.ts | 2 +- src/attributes/types/AttributeValueDelete.ts | 2 +- src/attributes/types/AttributeValueReorder.ts | 2 +- src/attributes/types/AttributeValueUpdate.ts | 2 +- src/auth/types/RequestPasswordReset.ts | 2 +- src/categories/types/CategoryBulkDelete.ts | 2 +- src/categories/types/CategoryCreate.ts | 2 +- src/categories/types/CategoryDelete.ts | 2 +- src/categories/types/CategoryUpdate.ts | 2 +- src/categories/views/CategoryDetails.tsx | 2 +- .../types/CollectionAssignProduct.ts | 2 +- src/collections/types/CollectionBulkDelete.ts | 2 +- .../types/CollectionBulkPublish.ts | 2 +- src/collections/types/CollectionDetails.ts | 2 +- src/collections/types/CollectionUpdate.ts | 2 +- .../types/CollectionUpdateWithHomepage.ts | 4 +- src/collections/types/CreateCollection.ts | 2 +- src/collections/types/RemoveCollection.ts | 2 +- .../types/UnassignCollectionProduct.ts | 2 +- src/components/Shop/types/ShopInfo.ts | 2 +- src/customers/types/BulkRemoveCustomers.ts | 2 +- src/customers/types/CreateCustomer.ts | 2 +- src/customers/types/CreateCustomerAddress.ts | 2 +- src/customers/types/CustomerCreateData.ts | 2 +- src/customers/types/RemoveCustomer.ts | 2 +- src/customers/types/RemoveCustomerAddress.ts | 2 +- .../types/SetCustomerDefaultAddress.ts | 2 +- src/customers/types/UpdateCustomer.ts | 2 +- src/customers/types/UpdateCustomerAddress.ts | 2 +- src/customers/views/CustomerDetails.tsx | 6 +- src/discounts/types/SaleBulkDelete.ts | 2 +- src/discounts/types/SaleCataloguesAdd.ts | 2 +- src/discounts/types/SaleCataloguesRemove.ts | 2 +- src/discounts/types/SaleCreate.ts | 2 +- src/discounts/types/SaleDelete.ts | 2 +- src/discounts/types/SaleUpdate.ts | 2 +- src/discounts/types/VoucherBulkDelete.ts | 2 +- src/discounts/types/VoucherCataloguesAdd.ts | 2 +- .../types/VoucherCataloguesRemove.ts | 2 +- src/discounts/types/VoucherCreate.ts | 2 +- src/discounts/types/VoucherDelete.ts | 2 +- src/discounts/types/VoucherUpdate.ts | 2 +- src/discounts/views/SaleCreate.tsx | 2 +- src/discounts/views/SaleDetails.tsx | 6 +- src/discounts/views/VoucherCreate.tsx | 2 +- src/discounts/views/VoucherDetails.tsx | 8 +- src/navigation/types/MenuBulkDelete.ts | 2 +- src/navigation/types/MenuCreate.ts | 2 +- src/navigation/types/MenuDelete.ts | 2 +- src/navigation/types/MenuItemCreate.ts | 2 +- src/navigation/types/MenuItemUpdate.ts | 2 +- src/navigation/types/MenuUpdate.ts | 6 +- src/orders/types/OrderAddNote.ts | 2 +- src/orders/types/OrderBulkCancel.ts | 2 +- src/orders/types/OrderCancel.ts | 2 +- src/orders/types/OrderCapture.ts | 2 +- src/orders/types/OrderCreateFulfillment.ts | 2 +- src/orders/types/OrderDetails.ts | 2 +- src/orders/types/OrderDraftBulkCancel.ts | 2 +- src/orders/types/OrderDraftCancel.ts | 2 +- src/orders/types/OrderDraftCreate.ts | 2 +- src/orders/types/OrderDraftFinalize.ts | 2 +- src/orders/types/OrderDraftUpdate.ts | 2 +- src/orders/types/OrderFulfillmentCancel.ts | 2 +- .../types/OrderFulfillmentUpdateTracking.ts | 2 +- src/orders/types/OrderLineDelete.ts | 2 +- src/orders/types/OrderLineUpdate.ts | 2 +- src/orders/types/OrderLinesAdd.ts | 2 +- src/orders/types/OrderMarkAsPaid.ts | 2 +- src/orders/types/OrderRefund.ts | 2 +- src/orders/types/OrderShippingMethodUpdate.ts | 2 +- src/orders/types/OrderUpdate.ts | 2 +- src/orders/types/OrderVoid.ts | 2 +- src/orders/views/OrderDetails/index.tsx | 10 +- src/pages/types/PageBulkPublish.ts | 2 +- src/pages/types/PageBulkRemove.ts | 2 +- src/pages/types/PageCreate.ts | 2 +- src/pages/types/PageRemove.ts | 2 +- src/pages/types/PageUpdate.ts | 2 +- src/plugins/types/PluginUpdate.ts | 2 +- src/productTypes/types/AssignAttribute.ts | 2 +- .../types/ProductTypeAttributeReorder.ts | 2 +- .../types/ProductTypeBulkDelete.ts | 2 +- src/productTypes/types/ProductTypeCreate.ts | 2 +- .../types/ProductTypeCreateData.ts | 2 +- src/productTypes/types/ProductTypeDelete.ts | 2 +- src/productTypes/types/ProductTypeDetails.ts | 2 +- src/productTypes/types/ProductTypeUpdate.ts | 2 +- src/productTypes/types/UnassignAttribute.ts | 2 +- src/products/types/ProductCreate.ts | 2 +- src/products/types/ProductDelete.ts | 2 +- src/products/types/ProductImageCreate.ts | 2 +- src/products/types/ProductImageReorder.ts | 2 +- src/products/types/ProductImageUpdate.ts | 2 +- src/products/types/ProductUpdate.ts | 2 +- .../types/ProductVariantBulkCreate.ts | 6 +- .../types/ProductVariantBulkDelete.ts | 2 +- src/products/types/SimpleProductUpdate.ts | 4 +- src/products/types/VariantCreate.ts | 4 +- src/products/types/VariantDelete.ts | 2 +- src/products/types/VariantImageAssign.ts | 2 +- src/products/types/VariantImageUnassign.ts | 2 +- src/products/types/VariantUpdate.ts | 4 +- src/products/types/productBulkDelete.ts | 2 +- src/products/types/productBulkPublish.ts | 2 +- src/services/types/ServiceCreate.ts | 2 +- src/services/types/ServiceDelete.ts | 2 +- src/services/types/ServiceTokenCreate.ts | 2 +- src/services/types/ServiceTokenDelete.ts | 2 +- src/services/types/ServiceUpdate.ts | 2 +- src/shipping/types/BulkDeleteShippingRate.ts | 2 +- src/shipping/types/BulkDeleteShippingZone.ts | 2 +- src/shipping/types/CreateShippingRate.ts | 2 +- src/shipping/types/CreateShippingZone.ts | 2 +- src/shipping/types/DeleteShippingRate.ts | 2 +- src/shipping/types/DeleteShippingZone.ts | 2 +- src/shipping/types/UpdateDefaultWeightUnit.ts | 2 +- src/shipping/types/UpdateShippingRate.ts | 2 +- src/shipping/types/UpdateShippingZone.ts | 2 +- src/shipping/views/ShippingZoneCreate.tsx | 4 +- .../views/ShippingZoneDetails/index.tsx | 8 +- src/siteSettings/types/AuthorizationKeyAdd.ts | 2 +- .../types/AuthorizationKeyDelete.ts | 2 +- src/siteSettings/types/ShopSettingsUpdate.ts | 6 +- src/siteSettings/types/SiteSettings.ts | 2 +- src/staff/types/ChangeStaffPassword.ts | 2 +- src/staff/types/StaffAvatarDelete.ts | 2 +- src/staff/types/StaffAvatarUpdate.ts | 2 +- src/staff/types/StaffMemberAdd.ts | 2 +- src/staff/types/StaffMemberDelete.ts | 2 +- src/staff/types/StaffMemberUpdate.ts | 2 +- src/taxes/types/CountryList.ts | 2 +- src/taxes/types/FetchTaxes.ts | 2 +- src/taxes/types/UpdateTaxSettings.ts | 2 +- .../types/UpdateAttributeTranslations.ts | 2 +- .../types/UpdateAttributeValueTranslations.ts | 2 +- .../types/UpdateCategoryTranslations.ts | 2 +- .../types/UpdateCollectionTranslations.ts | 2 +- .../types/UpdatePageTranslations.ts | 2 +- .../types/UpdateProductTranslations.ts | 2 +- .../types/UpdateSaleTranslations.ts | 2 +- .../types/UpdateVoucherTranslations.ts | 2 +- src/types/globalTypes.ts | 2 + src/webhooks/types/WebhookCreate.ts | 8 +- src/webhooks/types/WebhookDelete.ts | 2 +- src/webhooks/types/WebhookDetails.ts | 6 +- src/webhooks/types/WebhookFragment.ts | 2 +- src/webhooks/types/WebhookUpdate.ts | 8 +- src/webhooks/types/Webhooks.ts | 2 +- src/webhooks/types/WebhooksDetailsFragment.ts | 2 +- 155 files changed, 961 insertions(+), 743 deletions(-) diff --git a/schema.graphql b/schema.graphql index 55858921b..0a4ab2fe4 100644 --- a/schema.graphql +++ b/schema.graphql @@ -4,41 +4,42 @@ schema { } type AccountAddressCreate { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! address: Address } type AccountAddressDelete { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! address: Address } type AccountAddressUpdate { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! address: Address } type AccountDelete { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } type AccountError { field: String message: String - code: AccountErrorCode + code: AccountErrorCode! } enum AccountErrorCode { ACTIVATE_OWN_ACCOUNT ACTIVATE_SUPERUSER_ACCOUNT + ASSIGN_NON_STAFF_MEMBER DEACTIVATE_OWN_ACCOUNT DEACTIVATE_SUPERUSER_ACCOUNT DELETE_NON_STAFF_USER @@ -65,38 +66,38 @@ input AccountInput { } type AccountRegister { - errors: [Error!] + errors: [Error!]! requiresConfirmation: Boolean - accountErrors: [AccountError!] + accountErrors: [AccountError!]! user: User } input AccountRegisterInput { email: String! password: String! - redirectUrl: String! + redirectUrl: String } type AccountRequestDeletion { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! } type AccountSetDefaultAddress { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! } type AccountUpdate { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } type AccountUpdateMeta { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } @@ -118,16 +119,16 @@ type Address implements Node { } type AddressCreate { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! address: Address } type AddressDelete { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! address: Address } @@ -146,9 +147,9 @@ input AddressInput { } type AddressSetDefault { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! } enum AddressTypeEnum { @@ -157,9 +158,9 @@ enum AddressTypeEnum { } type AddressUpdate { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! address: Address } @@ -184,17 +185,19 @@ type AddressValidationData { } type AssignNavigation { - errors: [Error!] + errors: [Error!]! menu: Menu - menuErrors: [MenuError!] + menuErrors: [MenuError!]! } -type Attribute implements Node { +type Attribute implements Node & ObjectWithMetadata { id: ID! productTypes(before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection! productVariantTypes(before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection! - privateMeta: [MetaStore]! - meta: [MetaStore]! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") inputType: AttributeInputTypeEnum name: String slug: String @@ -209,9 +212,9 @@ type Attribute implements Node { } type AttributeAssign { - errors: [Error!] + errors: [Error!]! productType: ProductType - productErrors: [ProductError!] + productErrors: [ProductError!]! } input AttributeAssignInput { @@ -220,20 +223,20 @@ input AttributeAssignInput { } type AttributeBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - productErrors: [ProductError!] + productErrors: [ProductError!]! } type AttributeClearMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! attribute: Attribute } type AttributeClearPrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! attribute: Attribute } @@ -249,9 +252,9 @@ type AttributeCountableEdge { } type AttributeCreate { - errors: [Error!] + errors: [Error!]! attribute: Attribute - productErrors: [ProductError!] + productErrors: [ProductError!]! } input AttributeCreateInput { @@ -269,8 +272,8 @@ input AttributeCreateInput { } type AttributeDelete { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! attribute: Attribute } @@ -299,9 +302,9 @@ enum AttributeInputTypeEnum { } type AttributeReorderValues { - errors: [Error!] + errors: [Error!]! attribute: Attribute - productErrors: [ProductError!] + productErrors: [ProductError!]! } enum AttributeSortField { @@ -331,7 +334,7 @@ type AttributeTranslatableContent implements Node { } type AttributeTranslate { - errors: [Error!] + errors: [Error!]! attribute: Attribute } @@ -347,15 +350,15 @@ enum AttributeTypeEnum { } type AttributeUnassign { - errors: [Error!] + errors: [Error!]! productType: ProductType - productErrors: [ProductError!] + productErrors: [ProductError!]! } type AttributeUpdate { - errors: [Error!] + errors: [Error!]! attribute: Attribute - productErrors: [ProductError!] + productErrors: [ProductError!]! } input AttributeUpdateInput { @@ -373,14 +376,14 @@ input AttributeUpdateInput { } type AttributeUpdateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! attribute: Attribute } type AttributeUpdatePrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! attribute: Attribute } @@ -394,15 +397,15 @@ type AttributeValue implements Node { } type AttributeValueBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - productErrors: [ProductError!] + productErrors: [ProductError!]! } type AttributeValueCreate { - errors: [Error!] + errors: [Error!]! attribute: Attribute - productErrors: [ProductError!] + productErrors: [ProductError!]! attributeValue: AttributeValue } @@ -411,9 +414,9 @@ input AttributeValueCreateInput { } type AttributeValueDelete { - errors: [Error!] + errors: [Error!]! attribute: Attribute - productErrors: [ProductError!] + productErrors: [ProductError!]! attributeValue: AttributeValue } @@ -430,7 +433,7 @@ type AttributeValueTranslatableContent implements Node { } type AttributeValueTranslate { - errors: [Error!] + errors: [Error!]! attributeValue: AttributeValue } @@ -448,9 +451,9 @@ enum AttributeValueType { } type AttributeValueUpdate { - errors: [Error!] + errors: [Error!]! attribute: Attribute - productErrors: [ProductError!] + productErrors: [ProductError!]! attributeValue: AttributeValue } @@ -460,17 +463,17 @@ type AuthorizationKey { } type AuthorizationKeyAdd { - errors: [Error!] + errors: [Error!]! authorizationKey: AuthorizationKey shop: Shop - shopErrors: [ShopError!] + shopErrors: [ShopError!]! } type AuthorizationKeyDelete { - errors: [Error!] + errors: [Error!]! authorizationKey: AuthorizationKey shop: Shop - shopErrors: [ShopError!] + shopErrors: [ShopError!]! } input AuthorizationKeyInput { @@ -486,7 +489,7 @@ enum AuthorizationKeyType { type BulkProductError { field: String message: String - code: ProductErrorCode + code: ProductErrorCode! index: Int } @@ -496,7 +499,7 @@ input CatalogueInput { collections: [ID] } -type Category implements Node { +type Category implements Node & ObjectWithMetadata { seoTitle: String seoDescription: String id: ID! @@ -506,31 +509,33 @@ type Category implements Node { slug: String! parent: Category level: Int! - privateMeta: [MetaStore]! - meta: [MetaStore]! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") ancestors(before: String, after: String, first: Int, last: Int): CategoryCountableConnection products(before: String, after: String, first: Int, last: Int): ProductCountableConnection - url: String + url: String @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11.") children(before: String, after: String, first: Int, last: Int): CategoryCountableConnection backgroundImage(size: Int): Image translation(languageCode: LanguageCodeEnum!): CategoryTranslation } type CategoryBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - productErrors: [ProductError!] + productErrors: [ProductError!]! } type CategoryClearMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! category: Category } type CategoryClearPrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! category: Category } @@ -546,14 +551,14 @@ type CategoryCountableEdge { } type CategoryCreate { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! category: Category } type CategoryDelete { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! category: Category } @@ -595,7 +600,7 @@ type CategoryTranslatableContent implements Node { } type CategoryTranslate { - errors: [Error!] + errors: [Error!]! category: Category } @@ -610,24 +615,24 @@ type CategoryTranslation implements Node { } type CategoryUpdate { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! category: Category } type CategoryUpdateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! category: Category } type CategoryUpdatePrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! category: Category } -type Checkout implements Node { +type Checkout implements Node & ObjectWithMetadata { created: DateTime! lastChange: DateTime! user: User @@ -643,8 +648,10 @@ type Checkout implements Node { voucherCode: String giftCards: [GiftCard] id: ID! - privateMeta: [MetaStore]! - meta: [MetaStore]! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") availableShippingMethods: [ShippingMethod]! availablePaymentGateways: [PaymentGateway]! email: String! @@ -656,33 +663,34 @@ type Checkout implements Node { } type CheckoutAddPromoCode { - errors: [Error!] + errors: [Error!]! checkout: Checkout - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! } type CheckoutBillingAddressUpdate { - errors: [Error!] + errors: [Error!]! checkout: Checkout - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! } type CheckoutClearMeta { - errors: [Error!] - checkoutErrors: [CheckoutError!] + errors: [Error!]! + checkoutErrors: [CheckoutError!]! checkout: Checkout } type CheckoutClearPrivateMeta { - errors: [Error!] - checkoutErrors: [CheckoutError!] + errors: [Error!]! + checkoutErrors: [CheckoutError!]! checkout: Checkout } type CheckoutComplete { - errors: [Error!] + errors: [Error!]! order: Order - checkoutErrors: [CheckoutError!] + confirmationNeeded: Boolean! + checkoutErrors: [CheckoutError!]! } type CheckoutCountableConnection { @@ -697,9 +705,9 @@ type CheckoutCountableEdge { } type CheckoutCreate { - errors: [Error!] + errors: [Error!]! created: Boolean - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! checkout: Checkout } @@ -711,27 +719,27 @@ input CheckoutCreateInput { } type CheckoutCustomerAttach { - errors: [Error!] + errors: [Error!]! checkout: Checkout - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! } type CheckoutCustomerDetach { - errors: [Error!] + errors: [Error!]! checkout: Checkout - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! } type CheckoutEmailUpdate { - errors: [Error!] + errors: [Error!]! checkout: Checkout - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! } type CheckoutError { field: String message: String - code: CheckoutErrorCode + code: CheckoutErrorCode! } enum CheckoutErrorCode { @@ -775,9 +783,9 @@ type CheckoutLineCountableEdge { } type CheckoutLineDelete { - errors: [Error!] + errors: [Error!]! checkout: Checkout - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! } input CheckoutLineInput { @@ -786,51 +794,51 @@ input CheckoutLineInput { } type CheckoutLinesAdd { - errors: [Error!] + errors: [Error!]! checkout: Checkout - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! } type CheckoutLinesUpdate { - errors: [Error!] + errors: [Error!]! checkout: Checkout - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! } type CheckoutPaymentCreate { - errors: [Error!] + errors: [Error!]! checkout: Checkout payment: Payment - paymentErrors: [PaymentError!] + paymentErrors: [PaymentError!]! } type CheckoutRemovePromoCode { - errors: [Error!] + errors: [Error!]! checkout: Checkout - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! } type CheckoutShippingAddressUpdate { - errors: [Error!] + errors: [Error!]! checkout: Checkout - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! } type CheckoutShippingMethodUpdate { - errors: [Error!] + errors: [Error!]! checkout: Checkout - checkoutErrors: [CheckoutError!] + checkoutErrors: [CheckoutError!]! } type CheckoutUpdateMeta { - errors: [Error!] - checkoutErrors: [CheckoutError!] + errors: [Error!]! + checkoutErrors: [CheckoutError!]! checkout: Checkout } type CheckoutUpdatePrivateMeta { - errors: [Error!] - checkoutErrors: [CheckoutError!] + errors: [Error!]! + checkoutErrors: [CheckoutError!]! checkout: Checkout } @@ -839,7 +847,7 @@ type ChoiceValue { verbose: String } -type Collection implements Node { +type Collection implements Node & ObjectWithMetadata { seoTitle: String seoDescription: String id: ID! @@ -849,40 +857,42 @@ type Collection implements Node { publicationDate: Date isPublished: Boolean! slug: String! - privateMeta: [MetaStore]! - meta: [MetaStore]! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") products(before: String, after: String, first: Int, last: Int): ProductCountableConnection backgroundImage(size: Int): Image translation(languageCode: LanguageCodeEnum!): CollectionTranslation } type CollectionAddProducts { - errors: [Error!] + errors: [Error!]! collection: Collection - productErrors: [ProductError!] + productErrors: [ProductError!]! } type CollectionBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - productErrors: [ProductError!] + productErrors: [ProductError!]! } type CollectionBulkPublish { - errors: [Error!] + errors: [Error!]! count: Int! - productErrors: [ProductError!] + productErrors: [ProductError!]! } type CollectionClearMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! collection: Collection } type CollectionClearPrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! collection: Collection } @@ -898,8 +908,8 @@ type CollectionCountableEdge { } type CollectionCreate { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! collection: Collection } @@ -917,8 +927,8 @@ input CollectionCreateInput { } type CollectionDelete { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! collection: Collection } @@ -946,15 +956,15 @@ enum CollectionPublished { } type CollectionRemoveProducts { - errors: [Error!] + errors: [Error!]! collection: Collection - productErrors: [ProductError!] + productErrors: [ProductError!]! } type CollectionReorderProducts { - errors: [Error!] + errors: [Error!]! collection: Collection - productErrors: [ProductError!] + productErrors: [ProductError!]! } enum CollectionSortField { @@ -980,7 +990,7 @@ type CollectionTranslatableContent implements Node { } type CollectionTranslate { - errors: [Error!] + errors: [Error!]! collection: Collection } @@ -995,20 +1005,20 @@ type CollectionTranslation implements Node { } type CollectionUpdate { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! collection: Collection } type CollectionUpdateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! collection: Collection } type CollectionUpdatePrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! collection: Collection } @@ -1033,13 +1043,13 @@ enum ConfigurationTypeFieldEnum { } type ConfirmAccount { - errors: [Error!] + errors: [Error!]! } type ConfirmEmailChange { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! } enum CountryCode { @@ -1316,20 +1326,20 @@ type CreditCard { } type CustomerBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - accountErrors: [AccountError!] + accountErrors: [AccountError!]! } type CustomerCreate { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } type CustomerDelete { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } @@ -1337,7 +1347,7 @@ type CustomerEvent implements Node { id: ID! date: DateTime type: CustomerEventsEnum - user(id: ID): User + user: User message: String count: Int order: Order @@ -1379,8 +1389,8 @@ input CustomerInput { } type CustomerUpdate { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } @@ -1400,7 +1410,19 @@ input DateTimeRangeInput { scalar Decimal -type DigitalContent implements Node { +type DeleteMetadata { + errors: [Error!]! + metadataErrors: [MetadataError!]! + item: ObjectWithMetadata +} + +type DeletePrivateMetadata { + errors: [Error!]! + metadataErrors: [MetadataError!]! + item: ObjectWithMetadata +} + +type DigitalContent implements Node & ObjectWithMetadata { useDefaultSettings: Boolean! automaticFulfillment: Boolean! productVariant: ProductVariant! @@ -1409,8 +1431,10 @@ type DigitalContent implements Node { urlValidDays: Int urls: [DigitalContentUrl] id: ID! - privateMeta: [MetaStore]! - meta: [MetaStore]! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") } type DigitalContentCountableConnection { @@ -1425,16 +1449,16 @@ type DigitalContentCountableEdge { } type DigitalContentCreate { - errors: [Error!] + errors: [Error!]! variant: ProductVariant content: DigitalContent - productErrors: [ProductError!] + productErrors: [ProductError!]! } type DigitalContentDelete { - errors: [Error!] + errors: [Error!]! variant: ProductVariant - productErrors: [ProductError!] + productErrors: [ProductError!]! } input DigitalContentInput { @@ -1445,10 +1469,10 @@ input DigitalContentInput { } type DigitalContentUpdate { - errors: [Error!] + errors: [Error!]! variant: ProductVariant content: DigitalContent - productErrors: [ProductError!] + productErrors: [ProductError!]! } input DigitalContentUploadInput { @@ -1469,8 +1493,8 @@ type DigitalContentUrl implements Node { } type DigitalContentUrlCreate { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! digitalContentUrl: DigitalContentUrl } @@ -1496,20 +1520,20 @@ type Domain { } type DraftOrderBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } type DraftOrderComplete { - errors: [Error!] + errors: [Error!]! order: Order - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } type DraftOrderCreate { - errors: [Error!] - orderErrors: [OrderError!] + errors: [Error!]! + orderErrors: [OrderError!]! order: Order } @@ -1526,8 +1550,8 @@ input DraftOrderCreateInput { } type DraftOrderDelete { - errors: [Error!] - orderErrors: [OrderError!] + errors: [Error!]! + orderErrors: [OrderError!]! order: Order } @@ -1543,35 +1567,35 @@ input DraftOrderInput { } type DraftOrderLineDelete { - errors: [Error!] + errors: [Error!]! order: Order orderLine: OrderLine - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } type DraftOrderLineUpdate { - errors: [Error!] + errors: [Error!]! order: Order - orderErrors: [OrderError!] + orderErrors: [OrderError!]! orderLine: OrderLine } type DraftOrderLinesBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } type DraftOrderLinesCreate { - errors: [Error!] + errors: [Error!]! order: Order orderLines: [OrderLine!] - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } type DraftOrderUpdate { - errors: [Error!] - orderErrors: [OrderError!] + errors: [Error!]! + orderErrors: [OrderError!]! order: Order } @@ -1583,7 +1607,7 @@ type Error { type ExtensionsError { field: String message: String - code: ExtensionsErrorCode + code: ExtensionsErrorCode! } enum ExtensionsErrorCode { @@ -1595,23 +1619,25 @@ enum ExtensionsErrorCode { UNIQUE } -type Fulfillment implements Node { +type Fulfillment implements Node & ObjectWithMetadata { id: ID! fulfillmentOrder: Int! status: FulfillmentStatus! trackingNumber: String! created: DateTime! - privateMeta: [MetaStore]! - meta: [MetaStore]! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") lines: [FulfillmentLine] statusDisplay: String } type FulfillmentCancel { - errors: [Error!] + errors: [Error!]! fulfillment: Fulfillment order: Order - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } input FulfillmentCancelInput { @@ -1619,20 +1645,20 @@ input FulfillmentCancelInput { } type FulfillmentClearMeta { - errors: [Error!] + errors: [Error!]! fulfillment: Fulfillment } type FulfillmentClearPrivateMeta { - errors: [Error!] + errors: [Error!]! fulfillment: Fulfillment } type FulfillmentCreate { - errors: [Error!] + errors: [Error!]! fulfillment: Fulfillment order: Order - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } input FulfillmentCreateInput { @@ -1658,20 +1684,20 @@ enum FulfillmentStatus { } type FulfillmentUpdateMeta { - errors: [Error!] + errors: [Error!]! fulfillment: Fulfillment } type FulfillmentUpdatePrivateMeta { - errors: [Error!] + errors: [Error!]! fulfillment: Fulfillment } type FulfillmentUpdateTracking { - errors: [Error!] + errors: [Error!]! fulfillment: Fulfillment order: Order - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } input FulfillmentUpdateTrackingInput { @@ -1705,9 +1731,9 @@ type GiftCard implements Node { } type GiftCardActivate { - errors: [Error!] + errors: [Error!]! giftCard: GiftCard - giftCardErrors: [GiftCardError!] + giftCardErrors: [GiftCardError!]! } type GiftCardCountableConnection { @@ -1722,8 +1748,8 @@ type GiftCardCountableEdge { } type GiftCardCreate { - errors: [Error!] - giftCardErrors: [GiftCardError!] + errors: [Error!]! + giftCardErrors: [GiftCardError!]! giftCard: GiftCard } @@ -1736,15 +1762,15 @@ input GiftCardCreateInput { } type GiftCardDeactivate { - errors: [Error!] + errors: [Error!]! giftCard: GiftCard - giftCardErrors: [GiftCardError!] + giftCardErrors: [GiftCardError!]! } type GiftCardError { field: String message: String - code: GiftCardErrorCode + code: GiftCardErrorCode! } enum GiftCardErrorCode { @@ -1757,8 +1783,8 @@ enum GiftCardErrorCode { } type GiftCardUpdate { - errors: [Error!] - giftCardErrors: [GiftCardError!] + errors: [Error!]! + giftCardErrors: [GiftCardError!]! giftCard: GiftCard } @@ -1769,10 +1795,28 @@ input GiftCardUpdateInput { userEmail: String } +type Group implements Node { + id: ID! + name: String! + permissions: [PermissionDisplay] + users: [User] +} + +type GroupCountableConnection { + pageInfo: PageInfo! + edges: [GroupCountableEdge!]! + totalCount: Int +} + +type GroupCountableEdge { + node: Group! + cursor: String! +} + type HomepageCollectionUpdate { - errors: [Error!] + errors: [Error!]! shop: Shop - shopErrors: [ShopError!] + shopErrors: [ShopError!]! } type Image { @@ -1850,9 +1894,9 @@ type Menu implements Node { } type MenuBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - menuErrors: [MenuError!] + menuErrors: [MenuError!]! } type MenuCountableConnection { @@ -1867,8 +1911,8 @@ type MenuCountableEdge { } type MenuCreate { - errors: [Error!] - menuErrors: [MenuError!] + errors: [Error!]! + menuErrors: [MenuError!]! menu: Menu } @@ -1878,15 +1922,15 @@ input MenuCreateInput { } type MenuDelete { - errors: [Error!] - menuErrors: [MenuError!] + errors: [Error!]! + menuErrors: [MenuError!]! menu: Menu } type MenuError { field: String message: String - code: MenuErrorCode + code: MenuErrorCode! } enum MenuErrorCode { @@ -1924,9 +1968,9 @@ type MenuItem implements Node { } type MenuItemBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - menuErrors: [MenuError!] + menuErrors: [MenuError!]! } type MenuItemCountableConnection { @@ -1941,8 +1985,8 @@ type MenuItemCountableEdge { } type MenuItemCreate { - errors: [Error!] - menuErrors: [MenuError!] + errors: [Error!]! + menuErrors: [MenuError!]! menuItem: MenuItem } @@ -1957,8 +2001,8 @@ input MenuItemCreateInput { } type MenuItemDelete { - errors: [Error!] - menuErrors: [MenuError!] + errors: [Error!]! + menuErrors: [MenuError!]! menuItem: MenuItem } @@ -1975,9 +2019,9 @@ input MenuItemInput { } type MenuItemMove { - errors: [Error!] + errors: [Error!]! menu: Menu - menuErrors: [MenuError!] + menuErrors: [MenuError!]! } input MenuItemMoveInput { @@ -1999,7 +2043,7 @@ type MenuItemTranslatableContent implements Node { } type MenuItemTranslate { - errors: [Error!] + errors: [Error!]! menuItem: MenuItem } @@ -2010,8 +2054,8 @@ type MenuItemTranslation implements Node { } type MenuItemUpdate { - errors: [Error!] - menuErrors: [MenuError!] + errors: [Error!]! + menuErrors: [MenuError!]! menuItem: MenuItem } @@ -2030,8 +2074,8 @@ input MenuSortingInput { } type MenuUpdate { - errors: [Error!] - menuErrors: [MenuError!] + errors: [Error!]! + menuErrors: [MenuError!]! menu: Menu } @@ -2063,6 +2107,28 @@ type MetaStore { clients: [MetaClientStore]! } +type MetadataError { + field: String + message: String + code: MetadataErrorCode! +} + +enum MetadataErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND +} + +input MetadataInput { + key: String! + value: String! +} + +type MetadataItem { + key: String! + value: String! +} + type Money { currency: String! amount: Float! @@ -2090,6 +2156,8 @@ type Mutation { createWarehouse(input: WarehouseCreateInput!): WarehouseCreate updateWarehouse(id: ID!, input: WarehouseUpdateInput!): WarehouseUpdate deleteWarehouse(id: ID!): WarehouseDelete + assignWarehouseShippingZone(id: ID!, shippingZoneIds: [ID!]!): WarehouseShippingZoneAssign + unassignWarehouseShippingZone(id: ID!, shippingZoneIds: [ID!]!): WarehouseShippingZoneUnassign createStock(input: StockInput!): StockCreate updateStock(id: ID!, input: StockInput!): StockUpdate deleteStock(id: ID!): StockDelete @@ -2121,10 +2189,10 @@ type Mutation { attributeUnassign(attributeIds: [ID]!, productTypeId: ID!): AttributeUnassign attributeUpdate(id: ID!, input: AttributeUpdateInput!): AttributeUpdate attributeTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): AttributeTranslate - attributeUpdateMetadata(id: ID!, input: MetaInput!): AttributeUpdateMeta - attributeClearMetadata(id: ID!, input: MetaPath!): AttributeClearMeta - attributeUpdatePrivateMetadata(id: ID!, input: MetaInput!): AttributeUpdatePrivateMeta - attributeClearPrivateMetadata(id: ID!, input: MetaPath!): AttributeClearPrivateMeta + attributeUpdateMetadata(id: ID!, input: MetaInput!): AttributeUpdateMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `UpdateMetadata` mutation instead.") + attributeClearMetadata(id: ID!, input: MetaPath!): AttributeClearMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `DeleteMetadata` mutation instead.") + attributeUpdatePrivateMetadata(id: ID!, input: MetaInput!): AttributeUpdatePrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `UpdatePrivateMetadata` mutation instead.") + attributeClearPrivateMetadata(id: ID!, input: MetaPath!): AttributeClearPrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `DeletePrivateMetadata` mutation instead.") attributeValueCreate(attribute: ID!, input: AttributeValueCreateInput!): AttributeValueCreate attributeValueDelete(id: ID!): AttributeValueDelete attributeValueBulkDelete(ids: [ID]!): AttributeValueBulkDelete @@ -2136,10 +2204,10 @@ type Mutation { categoryBulkDelete(ids: [ID]!): CategoryBulkDelete categoryUpdate(id: ID!, input: CategoryInput!): CategoryUpdate categoryTranslate(id: ID!, input: TranslationInput!, languageCode: LanguageCodeEnum!): CategoryTranslate - categoryUpdateMetadata(id: ID!, input: MetaInput!): CategoryUpdateMeta - categoryClearMetadata(id: ID!, input: MetaPath!): CategoryClearMeta - categoryUpdatePrivateMetadata(id: ID!, input: MetaInput!): CategoryUpdatePrivateMeta - categoryClearPrivateMetadata(id: ID!, input: MetaPath!): CategoryClearPrivateMeta + categoryUpdateMetadata(id: ID!, input: MetaInput!): CategoryUpdateMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `UpdateMetadata` mutation instead.") + categoryClearMetadata(id: ID!, input: MetaPath!): CategoryClearMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `DeleteMetadata` mutation instead.") + categoryUpdatePrivateMetadata(id: ID!, input: MetaInput!): CategoryUpdatePrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `UpdatePrivateMetadata` mutation instead.") + categoryClearPrivateMetadata(id: ID!, input: MetaPath!): CategoryClearPrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `DeletePrivateMetadata` mutation instead.") collectionAddProducts(collectionId: ID!, products: [ID]!): CollectionAddProducts collectionCreate(input: CollectionCreateInput!): CollectionCreate collectionDelete(id: ID!): CollectionDelete @@ -2149,20 +2217,20 @@ type Mutation { collectionRemoveProducts(collectionId: ID!, products: [ID]!): CollectionRemoveProducts collectionUpdate(id: ID!, input: CollectionInput!): CollectionUpdate collectionTranslate(id: ID!, input: TranslationInput!, languageCode: LanguageCodeEnum!): CollectionTranslate - collectionUpdateMetadata(id: ID!, input: MetaInput!): CollectionUpdateMeta - collectionClearMetadata(id: ID!, input: MetaPath!): CollectionClearMeta - collectionUpdatePrivateMetadata(id: ID!, input: MetaInput!): CollectionUpdatePrivateMeta - collectionClearPrivateMetadata(id: ID!, input: MetaPath!): CollectionClearPrivateMeta + collectionUpdateMetadata(id: ID!, input: MetaInput!): CollectionUpdateMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `UpdateMetadata` mutation instead.") + collectionClearMetadata(id: ID!, input: MetaPath!): CollectionClearMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `DeleteMetadata` mutation instead.") + collectionUpdatePrivateMetadata(id: ID!, input: MetaInput!): CollectionUpdatePrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `UpdatePrivateMetadata` mutation instead.") + collectionClearPrivateMetadata(id: ID!, input: MetaPath!): CollectionClearPrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `DeletePrivateMetadata` mutation instead.") productCreate(input: ProductCreateInput!): ProductCreate productDelete(id: ID!): ProductDelete productBulkDelete(ids: [ID]!): ProductBulkDelete productBulkPublish(ids: [ID]!, isPublished: Boolean!): ProductBulkPublish productUpdate(id: ID!, input: ProductInput!): ProductUpdate productTranslate(id: ID!, input: TranslationInput!, languageCode: LanguageCodeEnum!): ProductTranslate - productUpdateMetadata(id: ID!, input: MetaInput!): ProductUpdateMeta - productClearMetadata(id: ID!, input: MetaPath!): ProductClearMeta - productUpdatePrivateMetadata(id: ID!, input: MetaInput!): ProductUpdatePrivateMeta - productClearPrivateMetadata(id: ID!, input: MetaPath!): ProductClearPrivateMeta + productUpdateMetadata(id: ID!, input: MetaInput!): ProductUpdateMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `UpdateMetadata` mutation instead.") + productClearMetadata(id: ID!, input: MetaPath!): ProductClearMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `DeleteMetadata` mutation instead.") + productUpdatePrivateMetadata(id: ID!, input: MetaInput!): ProductUpdatePrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `UpdatePrivateMetadata` mutation instead.") + productClearPrivateMetadata(id: ID!, input: MetaPath!): ProductClearPrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `DeletePrivateMetadata` mutation instead.") productImageCreate(input: ProductImageCreateInput!): ProductImageCreate productImageDelete(id: ID!): ProductImageDelete productImageBulkDelete(ids: [ID]!): ProductImageBulkDelete @@ -2173,10 +2241,10 @@ type Mutation { productTypeBulkDelete(ids: [ID]!): ProductTypeBulkDelete productTypeUpdate(id: ID!, input: ProductTypeInput!): ProductTypeUpdate productTypeReorderAttributes(moves: [ReorderInput]!, productTypeId: ID!, type: AttributeTypeEnum!): ProductTypeReorderAttributes - productTypeUpdateMetadata(id: ID!, input: MetaInput!): ProductTypeUpdateMeta - productTypeClearMetadata(id: ID!, input: MetaPath!): ProductTypeClearMeta - productTypeUpdatePrivateMetadata(id: ID!, input: MetaInput!): ProductTypeUpdatePrivateMeta - productTypeClearPrivateMetadata(id: ID!, input: MetaPath!): ProductTypeClearPrivateMeta + productTypeUpdateMetadata(id: ID!, input: MetaInput!): ProductTypeUpdateMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `UpdateMetadata` mutation instead.") + productTypeClearMetadata(id: ID!, input: MetaPath!): ProductTypeClearMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `DeleteMetadata` mutation instead.") + productTypeUpdatePrivateMetadata(id: ID!, input: MetaInput!): ProductTypeUpdatePrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `UpdatePrivateMetadata` mutation instead.") + productTypeClearPrivateMetadata(id: ID!, input: MetaPath!): ProductTypeClearPrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `DeletePrivateMetadata` mutation instead.") digitalContentCreate(input: DigitalContentUploadInput!, variantId: ID!): DigitalContentCreate digitalContentDelete(variantId: ID!): DigitalContentDelete digitalContentUpdate(input: DigitalContentInput!, variantId: ID!): DigitalContentUpdate @@ -2187,10 +2255,10 @@ type Mutation { productVariantBulkDelete(ids: [ID]!): ProductVariantBulkDelete productVariantUpdate(id: ID!, input: ProductVariantInput!): ProductVariantUpdate productVariantTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): ProductVariantTranslate - productVariantUpdateMetadata(id: ID!, input: MetaInput!): ProductVariantUpdateMeta - productVariantClearMetadata(id: ID!, input: MetaPath!): ProductVariantClearMeta - productVariantUpdatePrivateMetadata(id: ID!, input: MetaInput!): ProductVariantUpdatePrivateMeta - productVariantClearPrivateMetadata(id: ID!, input: MetaPath!): ProductVariantClearPrivateMeta + productVariantUpdateMetadata(id: ID!, input: MetaInput!): ProductVariantUpdateMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `UpdateMetadata` mutation instead.") + productVariantClearMetadata(id: ID!, input: MetaPath!): ProductVariantClearMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `DeleteMetadata` mutation instead.") + productVariantUpdatePrivateMetadata(id: ID!, input: MetaInput!): ProductVariantUpdatePrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `UpdatePrivateMetadata` mutation instead.") + productVariantClearPrivateMetadata(id: ID!, input: MetaPath!): ProductVariantClearPrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `DeletePrivateMetadata` mutation instead.") variantImageAssign(imageId: ID!, variantId: ID!): VariantImageAssign variantImageUnassign(imageId: ID!, variantId: ID!): VariantImageUnassign paymentCapture(amount: Decimal, paymentId: ID!): PaymentCapture @@ -2215,23 +2283,27 @@ type Mutation { orderAddNote(order: ID!, input: OrderAddNoteInput!): OrderAddNote orderCancel(id: ID!, restock: Boolean!): OrderCancel orderCapture(amount: Decimal!, id: ID!): OrderCapture - orderClearPrivateMeta(id: ID!, input: MetaPath!): OrderClearPrivateMeta - orderClearMeta(input: MetaPath!, token: UUID!): OrderClearMeta + orderClearPrivateMeta(id: ID!, input: MetaPath!): OrderClearPrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `DeletePrivateMetadata` mutation instead.") + orderClearMeta(input: MetaPath!, token: UUID!): OrderClearMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `DeleteMetadata` mutation instead.") orderFulfillmentCancel(id: ID!, input: FulfillmentCancelInput!): FulfillmentCancel orderFulfillmentCreate(input: FulfillmentCreateInput!, order: ID): FulfillmentCreate orderFulfillmentUpdateTracking(id: ID!, input: FulfillmentUpdateTrackingInput!): FulfillmentUpdateTracking - orderFulfillmentClearMeta(id: ID!, input: MetaPath!): FulfillmentClearMeta - orderFulfillmentClearPrivateMeta(id: ID!, input: MetaPath!): FulfillmentClearPrivateMeta - orderFulfillmentUpdateMeta(id: ID!, input: MetaInput!): FulfillmentUpdateMeta - orderFulfillmentUpdatePrivateMeta(id: ID!, input: MetaInput!): FulfillmentUpdatePrivateMeta + orderFulfillmentClearMeta(id: ID!, input: MetaPath!): FulfillmentClearMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `DeleteMetadata` mutation instead.") + orderFulfillmentClearPrivateMeta(id: ID!, input: MetaPath!): FulfillmentClearPrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `DeletePrivateMetadata` mutation instead.") + orderFulfillmentUpdateMeta(id: ID!, input: MetaInput!): FulfillmentUpdateMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `UpdateMetadata` mutation instead.") + orderFulfillmentUpdatePrivateMeta(id: ID!, input: MetaInput!): FulfillmentUpdatePrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `UpdatePrivateMetadata` mutation instead.") orderMarkAsPaid(id: ID!): OrderMarkAsPaid orderRefund(amount: Decimal!, id: ID!): OrderRefund orderUpdate(id: ID!, input: OrderUpdateInput!): OrderUpdate - orderUpdateMeta(input: MetaInput!, token: UUID!): OrderUpdateMeta - orderUpdatePrivateMeta(id: ID!, input: MetaInput!): OrderUpdatePrivateMeta + orderUpdateMeta(input: MetaInput!, token: UUID!): OrderUpdateMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `UpdateMetadata` mutation instead.") + orderUpdatePrivateMeta(id: ID!, input: MetaInput!): OrderUpdatePrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `UpdatePrivateMetadata` mutation instead.") orderUpdateShipping(order: ID!, input: OrderUpdateShippingInput): OrderUpdateShipping orderVoid(id: ID!): OrderVoid orderBulkCancel(ids: [ID]!, restock: Boolean!): OrderBulkCancel + deleteMetadata(id: ID!, key: String!): DeleteMetadata + deletePrivateMetadata(id: ID!, key: String!): DeletePrivateMetadata + updateMetadata(id: ID!, input: MetadataInput!): UpdateMetadata + updatePrivateMetadata(id: ID!, input: MetadataInput!): UpdatePrivateMetadata assignNavigation(menu: ID, navigationType: NavigationType!): AssignNavigation menuCreate(input: MenuCreateInput!): MenuCreate menuDelete(id: ID!): MenuDelete @@ -2269,7 +2341,7 @@ type Mutation { checkoutBillingAddressUpdate(billingAddress: AddressInput!, checkoutId: ID!): CheckoutBillingAddressUpdate checkoutComplete(checkoutId: ID!, redirectUrl: String, storeSource: Boolean = false): CheckoutComplete checkoutCreate(input: CheckoutCreateInput!): CheckoutCreate - checkoutCustomerAttach(checkoutId: ID!, customerId: ID!): CheckoutCustomerAttach + checkoutCustomerAttach(checkoutId: ID!, customerId: ID): CheckoutCustomerAttach checkoutCustomerDetach(checkoutId: ID!): CheckoutCustomerDetach checkoutEmailUpdate(checkoutId: ID, email: String!): CheckoutEmailUpdate checkoutLineDelete(checkoutId: ID!, lineId: ID): CheckoutLineDelete @@ -2279,10 +2351,10 @@ type Mutation { checkoutPaymentCreate(checkoutId: ID!, input: PaymentInput!): CheckoutPaymentCreate checkoutShippingAddressUpdate(checkoutId: ID!, shippingAddress: AddressInput!): CheckoutShippingAddressUpdate checkoutShippingMethodUpdate(checkoutId: ID, shippingMethodId: ID!): CheckoutShippingMethodUpdate - checkoutUpdateMetadata(id: ID!, input: MetaInput!): CheckoutUpdateMeta - checkoutClearMetadata(id: ID!, input: MetaPath!): CheckoutClearMeta - checkoutUpdatePrivateMetadata(id: ID!, input: MetaInput!): CheckoutUpdatePrivateMeta - checkoutClearPrivateMetadata(id: ID!, input: MetaPath!): CheckoutClearPrivateMeta + checkoutUpdateMetadata(id: ID!, input: MetaInput!): CheckoutUpdateMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `UpdateMetadata` mutation instead.") + checkoutClearMetadata(id: ID!, input: MetaPath!): CheckoutClearMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `DeleteMetadata` mutation instead.") + checkoutUpdatePrivateMetadata(id: ID!, input: MetaInput!): CheckoutUpdatePrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `UpdatePrivateMetadata` mutation instead.") + checkoutClearPrivateMetadata(id: ID!, input: MetaPath!): CheckoutClearPrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `DeletePrivateMetadata` mutation instead.") requestPasswordReset(email: String!, redirectUrl: String!): RequestPasswordReset confirmAccount(email: String!, token: String!): ConfirmAccount setPassword(token: String!, email: String!, password: String!): SetPassword @@ -2297,7 +2369,7 @@ type Mutation { accountUpdate(input: AccountInput!): AccountUpdate accountRequestDeletion(redirectUrl: String!): AccountRequestDeletion accountDelete(token: String!): AccountDelete - accountUpdateMeta(input: MetaInput!): AccountUpdateMeta + accountUpdateMeta(input: MetaInput!): AccountUpdateMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `UpdateMetadata` mutation instead.") addressCreate(input: AddressInput!, userId: ID!): AddressCreate addressUpdate(id: ID!, input: AddressInput!): AddressUpdate addressDelete(id: ID!): AddressDelete @@ -2313,17 +2385,22 @@ type Mutation { userAvatarUpdate(image: Upload!): UserAvatarUpdate userAvatarDelete: UserAvatarDelete userBulkSetActive(ids: [ID]!, isActive: Boolean!): UserBulkSetActive - userUpdateMetadata(id: ID!, input: MetaInput!): UserUpdateMeta - userClearMetadata(id: ID!, input: MetaPath!): UserClearMeta - userUpdatePrivateMetadata(id: ID!, input: MetaInput!): UserUpdatePrivateMeta - userClearPrivateMetadata(id: ID!, input: MetaPath!): UserClearPrivateMeta + userUpdateMetadata(id: ID!, input: MetaInput!): UserUpdateMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `UpdateMetadata` mutation instead.") + userClearMetadata(id: ID!, input: MetaPath!): UserClearMeta @deprecated(reason: "Will be removed in Saleor 2.11. Use the `DeleteMetadata` mutation instead.") + userUpdatePrivateMetadata(id: ID!, input: MetaInput!): UserUpdatePrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `UpdatePrivateMetadata` mutation instead.") + userClearPrivateMetadata(id: ID!, input: MetaPath!): UserClearPrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `DeletePrivateMetadata` mutation instead.") serviceAccountCreate(input: ServiceAccountInput!): ServiceAccountCreate serviceAccountUpdate(id: ID!, input: ServiceAccountInput!): ServiceAccountUpdate serviceAccountDelete(id: ID!): ServiceAccountDelete - serviceAccountUpdatePrivateMetadata(id: ID!, input: MetaInput!): ServiceAccountUpdatePrivateMeta - serviceAccountClearPrivateMetadata(id: ID!, input: MetaPath!): ServiceAccountClearPrivateMeta + serviceAccountUpdatePrivateMetadata(id: ID!, input: MetaInput!): ServiceAccountUpdatePrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `UpdatePrivateMetadata` mutation instead.") + serviceAccountClearPrivateMetadata(id: ID!, input: MetaPath!): ServiceAccountClearPrivateMeta @deprecated(reason: "Will be removed in Saleor 2.11.Use the `DeletePrivateMetadata` mutation instead.") serviceAccountTokenCreate(input: ServiceAccountTokenInput!): ServiceAccountTokenCreate serviceAccountTokenDelete(id: ID!): ServiceAccountTokenDelete + permissionGroupCreate(input: PermissionGroupCreateInput!): PermissionGroupCreate + permissionGroupUpdate(id: ID!, input: PermissionGroupInput!): PermissionGroupUpdate + permissionGroupDelete(id: ID!): PermissionGroupDelete + permissionGroupAssignUsers(id: ID!, users: [ID!]!): PermissionGroupAssignUsers + permissionGroupUnassignUsers(id: ID!, users: [ID!]!): PermissionGroupUnassignUsers } input NameTranslationInput { @@ -2344,7 +2421,14 @@ interface Node { id: ID! } -type Order implements Node { +interface ObjectWithMetadata { + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") +} + +type Order implements Node & ObjectWithMetadata { id: ID! created: DateTime! status: OrderStatus! @@ -2365,8 +2449,10 @@ type Order implements Node { displayGrossPrices: Boolean! customerNote: String! weight: Weight - privateMeta: [MetaStore]! - meta: [MetaStore]! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") fulfillments: [Fulfillment]! lines: [OrderLine]! actions: [OrderAction]! @@ -2396,10 +2482,10 @@ enum OrderAction { } type OrderAddNote { - errors: [Error!] + errors: [Error!]! order: Order event: OrderEvent - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } input OrderAddNoteInput { @@ -2407,30 +2493,30 @@ input OrderAddNoteInput { } type OrderBulkCancel { - errors: [Error!] + errors: [Error!]! count: Int! - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } type OrderCancel { - errors: [Error!] + errors: [Error!]! order: Order - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } type OrderCapture { - errors: [Error!] + errors: [Error!]! order: Order - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } type OrderClearMeta { - errors: [Error!] + errors: [Error!]! order: Order } type OrderClearPrivateMeta { - errors: [Error!] + errors: [Error!]! order: Order } @@ -2459,10 +2545,11 @@ input OrderDraftFilterInput { type OrderError { field: String message: String - code: OrderErrorCode + code: OrderErrorCode! } enum OrderErrorCode { + BILLING_ADDRESS_NOT_SET CANNOT_CANCEL_FULFILLMENT CANNOT_CANCEL_ORDER CANNOT_DELETE @@ -2488,7 +2575,7 @@ type OrderEvent implements Node { id: ID! date: DateTime type: OrderEventsEnum - user(id: ID): User + user: User message: String email: String emailType: OrderEventsEmailsEnum @@ -2588,15 +2675,15 @@ input OrderLineInput { } type OrderMarkAsPaid { - errors: [Error!] + errors: [Error!]! order: Order - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } type OrderRefund { - errors: [Error!] + errors: [Error!]! order: Order - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } enum OrderSortField { @@ -2631,8 +2718,8 @@ enum OrderStatusFilter { } type OrderUpdate { - errors: [Error!] - orderErrors: [OrderError!] + errors: [Error!]! + orderErrors: [OrderError!]! order: Order } @@ -2643,19 +2730,19 @@ input OrderUpdateInput { } type OrderUpdateMeta { - errors: [Error!] + errors: [Error!]! order: Order } type OrderUpdatePrivateMeta { - errors: [Error!] + errors: [Error!]! order: Order } type OrderUpdateShipping { - errors: [Error!] + errors: [Error!]! order: Order - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } input OrderUpdateShippingInput { @@ -2663,9 +2750,9 @@ input OrderUpdateShippingInput { } type OrderVoid { - errors: [Error!] + errors: [Error!]! order: Order - orderErrors: [OrderError!] + orderErrors: [OrderError!]! } type Page implements Node { @@ -2683,12 +2770,12 @@ type Page implements Node { } type PageBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! } type PageBulkPublish { - errors: [Error!] + errors: [Error!]! count: Int! } @@ -2704,15 +2791,31 @@ type PageCountableEdge { } type PageCreate { - errors: [Error!] + errors: [Error!]! + pageErrors: [PageError!]! page: Page } type PageDelete { - errors: [Error!] + errors: [Error!]! + pageErrors: [PageError!]! page: Page } +type PageError { + field: String + message: String + code: PageErrorCode! +} + +enum PageErrorCode { + GRAPHQL_ERROR + INVALID + NOT_FOUND + REQUIRED + UNIQUE +} + input PageFilterInput { search: String } @@ -2759,7 +2862,7 @@ type PageTranslatableContent implements Node { } type PageTranslate { - errors: [Error!] + errors: [Error!]! page: PageTranslatableContent } @@ -2782,14 +2885,15 @@ input PageTranslationInput { } type PageUpdate { - errors: [Error!] + errors: [Error!]! + pageErrors: [PageError!]! page: Page } type PasswordChange { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! } type Payment implements Node { @@ -2816,9 +2920,9 @@ type Payment implements Node { } type PaymentCapture { - errors: [Error!] + errors: [Error!]! payment: Payment - paymentErrors: [PaymentError!] + paymentErrors: [PaymentError!]! } enum PaymentChargeStatusEnum { @@ -2843,7 +2947,7 @@ type PaymentCountableEdge { type PaymentError { field: String message: String - code: PaymentErrorCode + code: PaymentErrorCode! } enum PaymentErrorCode { @@ -2870,15 +2974,15 @@ input PaymentInput { } type PaymentRefund { - errors: [Error!] + errors: [Error!]! payment: Payment - paymentErrors: [PaymentError!] + paymentErrors: [PaymentError!]! } type PaymentSecureConfirm { - errors: [Error!] + errors: [Error!]! payment: Payment - paymentErrors: [PaymentError!] + paymentErrors: [PaymentError!]! } type PaymentSource { @@ -2887,9 +2991,9 @@ type PaymentSource { } type PaymentVoid { - errors: [Error!] + errors: [Error!]! payment: Payment - paymentErrors: [PaymentError!] + paymentErrors: [PaymentError!]! } type PermissionDisplay { @@ -2915,6 +3019,59 @@ enum PermissionEnum { MANAGE_CHECKOUTS } +type PermissionGroupAssignUsers { + errors: [Error!]! + group: Group + accountErrors: [AccountError!]! +} + +type PermissionGroupCreate { + errors: [Error!]! + group: Group + accountErrors: [AccountError!]! +} + +input PermissionGroupCreateInput { + name: String! + permissions: [PermissionEnum!] +} + +type PermissionGroupDelete { + errors: [Error!]! + accountErrors: [AccountError!]! + group: Group +} + +input PermissionGroupFilterInput { + search: String +} + +input PermissionGroupInput { + name: String + permissions: [PermissionEnum!] +} + +enum PermissionGroupSortField { + NAME +} + +input PermissionGroupSortingInput { + direction: OrderDirection! + field: PermissionGroupSortField! +} + +type PermissionGroupUnassignUsers { + errors: [Error!]! + group: Group + accountErrors: [AccountError!]! +} + +type PermissionGroupUpdate { + errors: [Error!]! + group: Group + accountErrors: [AccountError!]! +} + type Plugin implements Node { name: String! description: String! @@ -2950,9 +3107,9 @@ input PluginSortingInput { } type PluginUpdate { - errors: [Error!] + errors: [Error!]! plugin: Plugin - extensionsErrors: [ExtensionsError!] + extensionsErrors: [ExtensionsError!]! } input PluginUpdateInput { @@ -2965,7 +3122,7 @@ input PriceRangeInput { lte: Float } -type Product implements Node { +type Product implements Node & ObjectWithMetadata { id: ID! seoTitle: String seoDescription: String @@ -2975,13 +3132,16 @@ type Product implements Node { publicationDate: Date isPublished: Boolean! productType: ProductType! + slug: String! category: Category updatedAt: DateTime chargeTaxes: Boolean! weight: Weight - privateMeta: [MetaStore]! - meta: [MetaStore]! - url: String! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") + url: String! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11.") thumbnail(size: Int): Image pricing: ProductPricingInfo isAvailable: Boolean @@ -2996,30 +3156,29 @@ type Product implements Node { images: [ProductImage] collections: [Collection] translation(languageCode: LanguageCodeEnum!): ProductTranslation - slug: String! } type ProductBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - productErrors: [ProductError!] + productErrors: [ProductError!]! } type ProductBulkPublish { - errors: [Error!] + errors: [Error!]! count: Int! - productErrors: [ProductError!] + productErrors: [ProductError!]! } type ProductClearMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! product: Product } type ProductClearPrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! product: Product } @@ -3035,8 +3194,8 @@ type ProductCountableEdge { } type ProductCreate { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! product: Product } @@ -3050,6 +3209,7 @@ input ProductCreateInput { descriptionJson: JSONString isPublished: Boolean name: String + slug: String basePrice: Decimal taxCode: String seo: SeoInput @@ -3061,15 +3221,15 @@ input ProductCreateInput { } type ProductDelete { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! product: Product } type ProductError { field: String message: String - code: ProductErrorCode + code: ProductErrorCode! } enum ProductErrorCode { @@ -3108,16 +3268,16 @@ type ProductImage implements Node { } type ProductImageBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - productErrors: [ProductError!] + productErrors: [ProductError!]! } type ProductImageCreate { - errors: [Error!] + errors: [Error!]! product: Product image: ProductImage - productErrors: [ProductError!] + productErrors: [ProductError!]! } input ProductImageCreateInput { @@ -3127,24 +3287,24 @@ input ProductImageCreateInput { } type ProductImageDelete { - errors: [Error!] + errors: [Error!]! product: Product image: ProductImage - productErrors: [ProductError!] + productErrors: [ProductError!]! } type ProductImageReorder { - errors: [Error!] + errors: [Error!]! product: Product images: [ProductImage] - productErrors: [ProductError!] + productErrors: [ProductError!]! } type ProductImageUpdate { - errors: [Error!] + errors: [Error!]! product: Product image: ProductImage - productErrors: [ProductError!] + productErrors: [ProductError!]! } input ProductImageUpdateInput { @@ -3161,6 +3321,7 @@ input ProductInput { descriptionJson: JSONString isPublished: Boolean name: String + slug: String basePrice: Decimal taxCode: String seo: SeoInput @@ -3206,7 +3367,7 @@ type ProductTranslatableContent implements Node { } type ProductTranslate { - errors: [Error!] + errors: [Error!]! product: Product } @@ -3220,15 +3381,18 @@ type ProductTranslation implements Node { language: LanguageDisplay! } -type ProductType implements Node { +type ProductType implements Node & ObjectWithMetadata { id: ID! name: String! + slug: String! hasVariants: Boolean! isShippingRequired: Boolean! isDigital: Boolean! weight: Weight - privateMeta: [MetaStore]! - meta: [MetaStore]! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") products(before: String, after: String, first: Int, last: Int): ProductCountableConnection taxRate: TaxRateType taxType: TaxType @@ -3238,20 +3402,20 @@ type ProductType implements Node { } type ProductTypeBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - productErrors: [ProductError!] + productErrors: [ProductError!]! } type ProductTypeClearMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productType: ProductType } type ProductTypeClearPrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productType: ProductType } @@ -3272,14 +3436,14 @@ type ProductTypeCountableEdge { } type ProductTypeCreate { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productType: ProductType } type ProductTypeDelete { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productType: ProductType } @@ -3297,6 +3461,7 @@ input ProductTypeFilterInput { input ProductTypeInput { name: String + slug: String hasVariants: Boolean productAttributes: [ID] variantAttributes: [ID] @@ -3307,9 +3472,9 @@ input ProductTypeInput { } type ProductTypeReorderAttributes { - errors: [Error!] + errors: [Error!]! productType: ProductType - productErrors: [ProductError!] + productErrors: [ProductError!]! } enum ProductTypeSortField { @@ -3324,50 +3489,52 @@ input ProductTypeSortingInput { } type ProductTypeUpdate { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productType: ProductType } type ProductTypeUpdateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productType: ProductType } type ProductTypeUpdatePrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productType: ProductType } type ProductUpdate { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! product: Product } type ProductUpdateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! product: Product } type ProductUpdatePrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! product: Product } -type ProductVariant implements Node { +type ProductVariant implements Node & ObjectWithMetadata { id: ID! name: String! sku: String! product: Product! trackInventory: Boolean! weight: Weight - privateMeta: [MetaStore]! - meta: [MetaStore]! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") quantity: Int! @deprecated(reason: "This field will be removed in Saleor 2.11. Use the stock field instead.") quantityAllocated: Int @deprecated(reason: "This field will be removed in Saleor 2.11. Use the stock field instead.") stockQuantity: Int! @deprecated(reason: "This field will be removed in Saleor 2.11. Use the stock field instead.") @@ -3386,10 +3553,10 @@ type ProductVariant implements Node { } type ProductVariantBulkCreate { - errors: [Error!] + errors: [Error!]! count: Int! productVariants: [ProductVariant!]! - bulkProductErrors: [BulkProductError!] + bulkProductErrors: [BulkProductError!]! } input ProductVariantBulkCreateInput { @@ -3403,20 +3570,20 @@ input ProductVariantBulkCreateInput { } type ProductVariantBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - productErrors: [ProductError!] + productErrors: [ProductError!]! } type ProductVariantClearMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productVariant: ProductVariant } type ProductVariantClearPrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productVariant: ProductVariant } @@ -3432,8 +3599,8 @@ type ProductVariantCountableEdge { } type ProductVariantCreate { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productVariant: ProductVariant } @@ -3449,8 +3616,8 @@ input ProductVariantCreateInput { } type ProductVariantDelete { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productVariant: ProductVariant } @@ -3472,7 +3639,7 @@ type ProductVariantTranslatableContent implements Node { } type ProductVariantTranslate { - errors: [Error!] + errors: [Error!]! productVariant: ProductVariant } @@ -3483,20 +3650,20 @@ type ProductVariantTranslation implements Node { } type ProductVariantUpdate { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productVariant: ProductVariant } type ProductVariantUpdateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productVariant: ProductVariant } type ProductVariantUpdatePrivateMeta { - errors: [Error!] - productErrors: [ProductError!] + errors: [Error!]! + productErrors: [ProductError!]! productVariant: ProductVariant } @@ -3504,14 +3671,14 @@ type Query { webhook(id: ID!): Webhook webhooks(sortBy: WebhookSortingInput, filter: WebhookFilterInput, before: String, after: String, first: Int, last: Int): WebhookCountableConnection webhookEvents: [WebhookEvent] - webhookSamplePayload(eventType: WebhookEventTypeEnum!): JSONString + webhookSamplePayload(eventType: WebhookSampleEventTypeEnum!): JSONString warehouse(id: ID!): Warehouse - warehouses(filter: WarehouseFilterInput, before: String, after: String, first: Int, last: Int): WarehouseCountableConnection + warehouses(filter: WarehouseFilterInput, sortBy: WarehouseSortingInput, before: String, after: String, first: Int, last: Int): WarehouseCountableConnection translations(kind: TranslatableKinds!, before: String, after: String, first: Int, last: Int): TranslatableItemConnection translation(id: ID!, kind: TranslatableKinds!): TranslatableItem stock(id: ID!): Stock stocks(filter: StockFilterInput, before: String, after: String, first: Int, last: Int): StockCountableConnection - shop: Shop + shop: Shop! shippingZone(id: ID!): ShippingZone shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection digitalContent(id: ID!): DigitalContent @@ -3559,6 +3726,8 @@ type Query { addressValidationRules(countryCode: CountryCode!, countryArea: String, city: String, cityArea: String): AddressValidationData address(id: ID!): Address customers(filter: CustomerFilterInput, sortBy: UserSortingInput, before: String, after: String, first: Int, last: Int): UserCountableConnection + permissionGroups(filter: PermissionGroupFilterInput, sortBy: PermissionGroupSortingInput, before: String, after: String, first: Int, last: Int): GroupCountableConnection + permissionGroup(id: ID!): Group me: User staffUsers(filter: StaffUserInput, sortBy: UserSortingInput, before: String, after: String, first: Int, last: Int): UserCountableConnection serviceAccounts(filter: ServiceAccountFilterInput, sortBy: ServiceAccountSortingInput, before: String, after: String, first: Int, last: Int): ServiceAccountCountableConnection @@ -3589,14 +3758,14 @@ enum ReportingPeriod { } type RequestEmailChange { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! } type RequestPasswordReset { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! } type Sale implements Node { @@ -3613,12 +3782,12 @@ type Sale implements Node { } type SaleAddCatalogues { - errors: [Error!] + errors: [Error!]! sale: Sale } type SaleBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! } @@ -3634,12 +3803,12 @@ type SaleCountableEdge { } type SaleCreate { - errors: [Error!] + errors: [Error!]! sale: Sale } type SaleDelete { - errors: [Error!] + errors: [Error!]! sale: Sale } @@ -3662,7 +3831,7 @@ input SaleInput { } type SaleRemoveCatalogues { - errors: [Error!] + errors: [Error!]! sale: Sale } @@ -3687,7 +3856,7 @@ type SaleTranslatableContent implements Node { } type SaleTranslate { - errors: [Error!] + errors: [Error!]! sale: Sale } @@ -3703,7 +3872,7 @@ enum SaleType { } type SaleUpdate { - errors: [Error!] + errors: [Error!]! sale: Sale } @@ -3717,20 +3886,22 @@ input SeoInput { description: String } -type ServiceAccount implements Node { +type ServiceAccount implements Node & ObjectWithMetadata { id: ID! created: DateTime isActive: Boolean tokens: [ServiceAccountToken] - privateMeta: [MetaStore]! - meta: [MetaStore]! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") permissions: [PermissionDisplay] name: String } type ServiceAccountClearPrivateMeta { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! serviceAccount: ServiceAccount } @@ -3746,15 +3917,15 @@ type ServiceAccountCountableEdge { } type ServiceAccountCreate { - errors: [Error!] + errors: [Error!]! authToken: String - accountErrors: [AccountError!] + accountErrors: [AccountError!]! serviceAccount: ServiceAccount } type ServiceAccountDelete { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! serviceAccount: ServiceAccount } @@ -3786,15 +3957,15 @@ type ServiceAccountToken implements Node { } type ServiceAccountTokenCreate { - errors: [Error!] + errors: [Error!]! authToken: String - accountErrors: [AccountError!] + accountErrors: [AccountError!]! serviceAccountToken: ServiceAccountToken } type ServiceAccountTokenDelete { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! serviceAccountToken: ServiceAccountToken } @@ -3804,14 +3975,14 @@ input ServiceAccountTokenInput { } type ServiceAccountUpdate { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! serviceAccount: ServiceAccount } type ServiceAccountUpdatePrivateMeta { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! serviceAccount: ServiceAccount } @@ -3825,7 +3996,7 @@ type SetPassword { type ShippingError { field: String message: String - code: ShippingErrorCode + code: ShippingErrorCode! } enum ShippingErrorCode { @@ -3869,23 +4040,23 @@ enum ShippingMethodTypeEnum { } type ShippingPriceBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - shippingErrors: [ShippingError!] + shippingErrors: [ShippingError!]! } type ShippingPriceCreate { - errors: [Error!] + errors: [Error!]! shippingZone: ShippingZone - shippingErrors: [ShippingError!] + shippingErrors: [ShippingError!]! shippingMethod: ShippingMethod } type ShippingPriceDelete { - errors: [Error!] + errors: [Error!]! shippingMethod: ShippingMethod shippingZone: ShippingZone - shippingErrors: [ShippingError!] + shippingErrors: [ShippingError!]! } input ShippingPriceInput { @@ -3900,14 +4071,14 @@ input ShippingPriceInput { } type ShippingPriceTranslate { - errors: [Error!] + errors: [Error!]! shippingMethod: ShippingMethod } type ShippingPriceUpdate { - errors: [Error!] + errors: [Error!]! shippingZone: ShippingZone - shippingErrors: [ShippingError!] + shippingErrors: [ShippingError!]! shippingMethod: ShippingMethod } @@ -3918,12 +4089,13 @@ type ShippingZone implements Node { priceRange: MoneyRange countries: [CountryDisplay] shippingMethods: [ShippingMethod] + warehouses: [Warehouse] } type ShippingZoneBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - shippingErrors: [ShippingError!] + shippingErrors: [ShippingError!]! } type ShippingZoneCountableConnection { @@ -3938,14 +4110,14 @@ type ShippingZoneCountableEdge { } type ShippingZoneCreate { - errors: [Error!] + errors: [Error!]! shippingZone: ShippingZone - shippingErrors: [ShippingError!] + shippingErrors: [ShippingError!]! } type ShippingZoneDelete { - errors: [Error!] - shippingErrors: [ShippingError!] + errors: [Error!]! + shippingErrors: [ShippingError!]! shippingZone: ShippingZone } @@ -3956,9 +4128,9 @@ input ShippingZoneInput { } type ShippingZoneUpdate { - errors: [Error!] + errors: [Error!]! shippingZone: ShippingZone - shippingErrors: [ShippingError!] + shippingErrors: [ShippingError!]! } type Shop { @@ -3994,21 +4166,21 @@ type Shop { } type ShopAddressUpdate { - errors: [Error!] + errors: [Error!]! shop: Shop - shopErrors: [ShopError!] + shopErrors: [ShopError!]! } type ShopDomainUpdate { - errors: [Error!] + errors: [Error!]! shop: Shop - shopErrors: [ShopError!] + shopErrors: [ShopError!]! } type ShopError { field: String message: String - code: ShopErrorCode + code: ShopErrorCode! } enum ShopErrorCode { @@ -4022,9 +4194,9 @@ enum ShopErrorCode { } type ShopFetchTaxRates { - errors: [Error!] + errors: [Error!]! shop: Shop - shopErrors: [ShopError!] + shopErrors: [ShopError!]! } input ShopSettingsInput { @@ -4044,7 +4216,7 @@ input ShopSettingsInput { } type ShopSettingsTranslate { - errors: [Error!] + errors: [Error!]! shop: Shop } @@ -4054,9 +4226,9 @@ input ShopSettingsTranslationInput { } type ShopSettingsUpdate { - errors: [Error!] + errors: [Error!]! shop: Shop - shopErrors: [ShopError!] + shopErrors: [ShopError!]! } type ShopTranslation implements Node { @@ -4072,14 +4244,14 @@ input SiteDomainInput { } type StaffBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - accountErrors: [AccountError!] + accountErrors: [AccountError!]! } type StaffCreate { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } @@ -4094,8 +4266,8 @@ input StaffCreateInput { } type StaffDelete { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } @@ -4121,14 +4293,14 @@ type StaffNotificationRecipient implements Node { } type StaffNotificationRecipientCreate { - errors: [Error!] - shopErrors: [ShopError!] + errors: [Error!]! + shopErrors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } type StaffNotificationRecipientDelete { - errors: [Error!] - shopErrors: [ShopError!] + errors: [Error!]! + shopErrors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } @@ -4139,14 +4311,14 @@ input StaffNotificationRecipientInput { } type StaffNotificationRecipientUpdate { - errors: [Error!] - shopErrors: [ShopError!] + errors: [Error!]! + shopErrors: [ShopError!]! staffNotificationRecipient: StaffNotificationRecipient } type StaffUpdate { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } @@ -4170,9 +4342,9 @@ enum StockAvailability { } type StockBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! - stockError: [StockError!] + stockError: [StockError!]! } type StockCountableConnection { @@ -4187,13 +4359,13 @@ type StockCountableEdge { } type StockCreate { - errors: [Error!] - stockErrors: [StockError!] + errors: [Error!]! + stockErrors: [StockError!]! stock: Stock } type StockDelete { - errors: [Error!] + errors: [Error!]! stock: Stock } @@ -4209,7 +4381,7 @@ enum StockErorrCode { type StockError { field: String message: String - code: StockErorrCode + code: StockErorrCode! } input StockFilterInput { @@ -4225,8 +4397,8 @@ input StockInput { } type StockUpdate { - errors: [Error!] - stockError: [StockError!] + errors: [Error!]! + stockError: [StockError!]! stock: Stock } @@ -4345,9 +4517,21 @@ input TranslationInput { scalar UUID +type UpdateMetadata { + errors: [Error!]! + metadataErrors: [MetadataError!]! + item: ObjectWithMetadata +} + +type UpdatePrivateMetadata { + errors: [Error!]! + metadataErrors: [MetadataError!]! + item: ObjectWithMetadata +} + scalar Upload -type User implements Node { +type User implements Node & ObjectWithMetadata { id: ID! lastLogin: DateTime email: String! @@ -4359,8 +4543,10 @@ type User implements Node { dateJoined: DateTime! defaultShippingAddress: Address defaultBillingAddress: Address - privateMeta: [MetaStore]! - meta: [MetaStore]! + privateMetadata: [MetadataItem]! + metadata: [MetadataItem]! + privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ") + meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ") addresses: [Address] checkout: Checkout giftCards(before: String, after: String, first: Int, last: Int): GiftCardCountableConnection @@ -4373,32 +4559,32 @@ type User implements Node { } type UserAvatarDelete { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! } type UserAvatarUpdate { - errors: [Error!] + errors: [Error!]! user: User - accountErrors: [AccountError!] + accountErrors: [AccountError!]! } type UserBulkSetActive { - errors: [Error!] + errors: [Error!]! count: Int! - accountErrors: [AccountError!] + accountErrors: [AccountError!]! } type UserClearMeta { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } type UserClearPrivateMeta { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } @@ -4437,14 +4623,14 @@ input UserSortingInput { } type UserUpdateMeta { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } type UserUpdatePrivateMeta { - errors: [Error!] - accountErrors: [AccountError!] + errors: [Error!]! + accountErrors: [AccountError!]! user: User } @@ -4455,17 +4641,17 @@ type VAT { } type VariantImageAssign { - errors: [Error!] + errors: [Error!]! productVariant: ProductVariant image: ProductImage - productErrors: [ProductError!] + productErrors: [ProductError!]! } type VariantImageUnassign { - errors: [Error!] + errors: [Error!]! productVariant: ProductVariant image: ProductImage - productErrors: [ProductError!] + productErrors: [ProductError!]! } type VariantPricingInfo { @@ -4505,12 +4691,12 @@ type Voucher implements Node { } type VoucherAddCatalogues { - errors: [Error!] + errors: [Error!]! voucher: Voucher } type VoucherBulkDelete { - errors: [Error!] + errors: [Error!]! count: Int! } @@ -4526,12 +4712,12 @@ type VoucherCountableEdge { } type VoucherCreate { - errors: [Error!] + errors: [Error!]! voucher: Voucher } type VoucherDelete { - errors: [Error!] + errors: [Error!]! voucher: Voucher } @@ -4569,7 +4755,7 @@ input VoucherInput { } type VoucherRemoveCatalogues { - errors: [Error!] + errors: [Error!]! voucher: Voucher } @@ -4596,7 +4782,7 @@ type VoucherTranslatableContent implements Node { } type VoucherTranslate { - errors: [Error!] + errors: [Error!]! voucher: Voucher } @@ -4613,13 +4799,14 @@ enum VoucherTypeEnum { } type VoucherUpdate { - errors: [Error!] + errors: [Error!]! voucher: Voucher } type Warehouse implements Node { id: ID! name: String! + slug: String! companyName: String! shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection! address: Address! @@ -4649,29 +4836,30 @@ type WarehouseCountableEdge { } type WarehouseCreate { - errors: [Error!] - warehouseErrors: [WarehouseError!] + errors: [Error!]! + warehouseErrors: [WarehouseError!]! warehouse: Warehouse } input WarehouseCreateInput { - name: String! + slug: String companyName: String - shippingZones: [ID] email: String + name: String! address: WarehouseAddressInput! + shippingZones: [ID] } type WarehouseDelete { - errors: [Error!] - warehouseErrors: [WarehouseError!] + errors: [Error!]! + warehouseErrors: [WarehouseError!]! warehouse: Warehouse } type WarehouseError { field: String message: String - code: WarehouseErrorCode + code: WarehouseErrorCode! } enum WarehouseErrorCode { @@ -4687,28 +4875,49 @@ input WarehouseFilterInput { search: String } +type WarehouseShippingZoneAssign { + errors: [Error!]! + warehouse: Warehouse + warehouseErrors: [WarehouseError!]! +} + +type WarehouseShippingZoneUnassign { + errors: [Error!]! + warehouse: Warehouse + warehouseErrors: [WarehouseError!]! +} + +enum WarehouseSortField { + NAME +} + +input WarehouseSortingInput { + direction: OrderDirection! + field: WarehouseSortField! +} + type WarehouseUpdate { - errors: [Error!] - warehouseErrors: [WarehouseError!] + errors: [Error!]! + warehouseErrors: [WarehouseError!]! warehouse: Warehouse } input WarehouseUpdateInput { - name: String! + slug: String companyName: String - shippingZones: [ID] email: String + name: String address: WarehouseAddressInput } type Webhook implements Node { - name: String + name: String! serviceAccount: ServiceAccount! targetUrl: String! isActive: Boolean! secretKey: String id: ID! - events: [WebhookEvent] + events: [WebhookEvent!]! } type WebhookCountableConnection { @@ -4723,8 +4932,8 @@ type WebhookCountableEdge { } type WebhookCreate { - errors: [Error!] - webhookErrors: [WebhookError!] + errors: [Error!]! + webhookErrors: [WebhookError!]! webhook: Webhook } @@ -4738,15 +4947,15 @@ input WebhookCreateInput { } type WebhookDelete { - errors: [Error!] + errors: [Error!]! webhook: Webhook - webhookErrors: [WebhookError!] + webhookErrors: [WebhookError!]! } type WebhookError { field: String message: String - code: WebhookErrorCode + code: WebhookErrorCode! } enum WebhookErrorCode { @@ -4758,8 +4967,8 @@ enum WebhookErrorCode { } type WebhookEvent { - eventType: WebhookEventTypeEnum - name: String + eventType: WebhookEventTypeEnum! + name: String! } enum WebhookEventTypeEnum { @@ -4772,6 +4981,7 @@ enum WebhookEventTypeEnum { CUSTOMER_CREATED PRODUCT_CREATED CHECKOUT_QUANTITY_CHANGED + FULFILLMENT_CREATED } input WebhookFilterInput { @@ -4779,6 +4989,18 @@ input WebhookFilterInput { isActive: Boolean } +enum WebhookSampleEventTypeEnum { + ORDER_CREATED + ORDER_FULLY_PAID + ORDER_UPDATED + ORDER_CANCELLED + ORDER_FULFILLED + CUSTOMER_CREATED + PRODUCT_CREATED + CHECKOUT_QUANTITY_CHANGED + FULFILLMENT_CREATED +} + enum WebhookSortField { NAME SERVICE_ACCOUNT @@ -4791,9 +5013,9 @@ input WebhookSortingInput { } type WebhookUpdate { - errors: [Error!] + errors: [Error!]! webhook: Webhook - webhookErrors: [WebhookError!] + webhookErrors: [WebhookError!]! } input WebhookUpdateInput { @@ -4826,21 +5048,21 @@ type Wishlist implements Node { } type WishlistAddProductMutation { - errors: [Error!] + errors: [Error!]! wishlist: [WishlistItem] - wishlistErrors: [WishlistError!] + wishlistErrors: [WishlistError!]! } type WishlistAddProductVariantMutation { - errors: [Error!] + errors: [Error!]! wishlist: [WishlistItem] - wishlistErrors: [WishlistError!] + wishlistErrors: [WishlistError!]! } type WishlistError { field: String message: String - code: WishlistErrorCode + code: WishlistErrorCode! } enum WishlistErrorCode { @@ -4870,20 +5092,20 @@ type WishlistItemCountableEdge { } type WishlistRemoveProductMutation { - errors: [Error!] + errors: [Error!]! wishlist: [WishlistItem] - wishlistErrors: [WishlistError!] + wishlistErrors: [WishlistError!]! } type WishlistRemoveProductVariantMutation { - errors: [Error!] + errors: [Error!]! wishlist: [WishlistItem] - wishlistErrors: [WishlistError!] + wishlistErrors: [WishlistError!]! } scalar _Any -union _Entity = Address | ServiceAccount | User | ProductVariant | Product | ProductType | Collection | Category | ProductImage +union _Entity = Address | ServiceAccount | User | Group | ProductVariant | Product | ProductType | Collection | Category | ProductImage type _Service { sdl: String diff --git a/src/attributes/types/AttributeBulkDelete.ts b/src/attributes/types/AttributeBulkDelete.ts index 06ff83fd7..6d910e56c 100644 --- a/src/attributes/types/AttributeBulkDelete.ts +++ b/src/attributes/types/AttributeBulkDelete.ts @@ -14,7 +14,7 @@ export interface AttributeBulkDelete_attributeBulkDelete_errors { export interface AttributeBulkDelete_attributeBulkDelete { __typename: "AttributeBulkDelete"; - errors: AttributeBulkDelete_attributeBulkDelete_errors[] | null; + errors: AttributeBulkDelete_attributeBulkDelete_errors[]; } export interface AttributeBulkDelete { diff --git a/src/attributes/types/AttributeCreate.ts b/src/attributes/types/AttributeCreate.ts index 3c7c4f708..5db772935 100644 --- a/src/attributes/types/AttributeCreate.ts +++ b/src/attributes/types/AttributeCreate.ts @@ -39,7 +39,7 @@ export interface AttributeCreate_attributeCreate_attribute { export interface AttributeCreate_attributeCreate { __typename: "AttributeCreate"; - errors: AttributeCreate_attributeCreate_errors[] | null; + errors: AttributeCreate_attributeCreate_errors[]; attribute: AttributeCreate_attributeCreate_attribute | null; } diff --git a/src/attributes/types/AttributeDelete.ts b/src/attributes/types/AttributeDelete.ts index 2cd44da90..e2cd94ff7 100644 --- a/src/attributes/types/AttributeDelete.ts +++ b/src/attributes/types/AttributeDelete.ts @@ -14,7 +14,7 @@ export interface AttributeDelete_attributeDelete_errors { export interface AttributeDelete_attributeDelete { __typename: "AttributeDelete"; - errors: AttributeDelete_attributeDelete_errors[] | null; + errors: AttributeDelete_attributeDelete_errors[]; } export interface AttributeDelete { diff --git a/src/attributes/types/AttributeUpdate.ts b/src/attributes/types/AttributeUpdate.ts index ebc595dbb..3529454ca 100644 --- a/src/attributes/types/AttributeUpdate.ts +++ b/src/attributes/types/AttributeUpdate.ts @@ -39,7 +39,7 @@ export interface AttributeUpdate_attributeUpdate_attribute { export interface AttributeUpdate_attributeUpdate { __typename: "AttributeUpdate"; - errors: AttributeUpdate_attributeUpdate_errors[] | null; + errors: AttributeUpdate_attributeUpdate_errors[]; attribute: AttributeUpdate_attributeUpdate_attribute | null; } diff --git a/src/attributes/types/AttributeValueCreate.ts b/src/attributes/types/AttributeValueCreate.ts index 847026416..c11325fb3 100644 --- a/src/attributes/types/AttributeValueCreate.ts +++ b/src/attributes/types/AttributeValueCreate.ts @@ -39,7 +39,7 @@ export interface AttributeValueCreate_attributeValueCreate_attribute { export interface AttributeValueCreate_attributeValueCreate { __typename: "AttributeValueCreate"; - errors: AttributeValueCreate_attributeValueCreate_errors[] | null; + errors: AttributeValueCreate_attributeValueCreate_errors[]; attribute: AttributeValueCreate_attributeValueCreate_attribute | null; } diff --git a/src/attributes/types/AttributeValueDelete.ts b/src/attributes/types/AttributeValueDelete.ts index da4bbf8ac..8737ed336 100644 --- a/src/attributes/types/AttributeValueDelete.ts +++ b/src/attributes/types/AttributeValueDelete.ts @@ -39,7 +39,7 @@ export interface AttributeValueDelete_attributeValueDelete_attribute { export interface AttributeValueDelete_attributeValueDelete { __typename: "AttributeValueDelete"; - errors: AttributeValueDelete_attributeValueDelete_errors[] | null; + errors: AttributeValueDelete_attributeValueDelete_errors[]; attribute: AttributeValueDelete_attributeValueDelete_attribute | null; } diff --git a/src/attributes/types/AttributeValueReorder.ts b/src/attributes/types/AttributeValueReorder.ts index 492b94e7d..31a50ba08 100644 --- a/src/attributes/types/AttributeValueReorder.ts +++ b/src/attributes/types/AttributeValueReorder.ts @@ -27,7 +27,7 @@ export interface AttributeValueReorder_attributeReorderValues_attribute { export interface AttributeValueReorder_attributeReorderValues { __typename: "AttributeReorderValues"; - errors: AttributeValueReorder_attributeReorderValues_errors[] | null; + errors: AttributeValueReorder_attributeReorderValues_errors[]; attribute: AttributeValueReorder_attributeReorderValues_attribute | null; } diff --git a/src/attributes/types/AttributeValueUpdate.ts b/src/attributes/types/AttributeValueUpdate.ts index e8290d040..90bd6561d 100644 --- a/src/attributes/types/AttributeValueUpdate.ts +++ b/src/attributes/types/AttributeValueUpdate.ts @@ -39,7 +39,7 @@ export interface AttributeValueUpdate_attributeValueUpdate_attribute { export interface AttributeValueUpdate_attributeValueUpdate { __typename: "AttributeValueUpdate"; - errors: AttributeValueUpdate_attributeValueUpdate_errors[] | null; + errors: AttributeValueUpdate_attributeValueUpdate_errors[]; attribute: AttributeValueUpdate_attributeValueUpdate_attribute | null; } diff --git a/src/auth/types/RequestPasswordReset.ts b/src/auth/types/RequestPasswordReset.ts index 6508afa3a..c011b0794 100644 --- a/src/auth/types/RequestPasswordReset.ts +++ b/src/auth/types/RequestPasswordReset.ts @@ -14,7 +14,7 @@ export interface RequestPasswordReset_requestPasswordReset_errors { export interface RequestPasswordReset_requestPasswordReset { __typename: "RequestPasswordReset"; - errors: RequestPasswordReset_requestPasswordReset_errors[] | null; + errors: RequestPasswordReset_requestPasswordReset_errors[]; } export interface RequestPasswordReset { diff --git a/src/categories/types/CategoryBulkDelete.ts b/src/categories/types/CategoryBulkDelete.ts index 7824cbe3f..a5e6d54a9 100644 --- a/src/categories/types/CategoryBulkDelete.ts +++ b/src/categories/types/CategoryBulkDelete.ts @@ -14,7 +14,7 @@ export interface CategoryBulkDelete_categoryBulkDelete_errors { export interface CategoryBulkDelete_categoryBulkDelete { __typename: "CategoryBulkDelete"; - errors: CategoryBulkDelete_categoryBulkDelete_errors[] | null; + errors: CategoryBulkDelete_categoryBulkDelete_errors[]; } export interface CategoryBulkDelete { diff --git a/src/categories/types/CategoryCreate.ts b/src/categories/types/CategoryCreate.ts index 0bd794be3..496872e41 100644 --- a/src/categories/types/CategoryCreate.ts +++ b/src/categories/types/CategoryCreate.ts @@ -38,7 +38,7 @@ export interface CategoryCreate_categoryCreate_category { export interface CategoryCreate_categoryCreate { __typename: "CategoryCreate"; - errors: CategoryCreate_categoryCreate_errors[] | null; + errors: CategoryCreate_categoryCreate_errors[]; category: CategoryCreate_categoryCreate_category | null; } diff --git a/src/categories/types/CategoryDelete.ts b/src/categories/types/CategoryDelete.ts index e68ff91b8..79634e78d 100644 --- a/src/categories/types/CategoryDelete.ts +++ b/src/categories/types/CategoryDelete.ts @@ -14,7 +14,7 @@ export interface CategoryDelete_categoryDelete_errors { export interface CategoryDelete_categoryDelete { __typename: "CategoryDelete"; - errors: CategoryDelete_categoryDelete_errors[] | null; + errors: CategoryDelete_categoryDelete_errors[]; } export interface CategoryDelete { diff --git a/src/categories/types/CategoryUpdate.ts b/src/categories/types/CategoryUpdate.ts index c7d6e36ce..a4621ee45 100644 --- a/src/categories/types/CategoryUpdate.ts +++ b/src/categories/types/CategoryUpdate.ts @@ -38,7 +38,7 @@ export interface CategoryUpdate_categoryUpdate_category { export interface CategoryUpdate_categoryUpdate { __typename: "CategoryUpdate"; - errors: CategoryUpdate_categoryUpdate_errors[] | null; + errors: CategoryUpdate_categoryUpdate_errors[]; category: CategoryUpdate_categoryUpdate_category | null; } diff --git a/src/categories/views/CategoryDetails.tsx b/src/categories/views/CategoryDetails.tsx index 9d20b5224..812b4dc7d 100644 --- a/src/categories/views/CategoryDetails.tsx +++ b/src/categories/views/CategoryDetails.tsx @@ -170,7 +170,7 @@ export const CategoryDetails: React.FC = ({ currentTab={params.activeTab} category={maybe(() => data.category)} disabled={loading} - errors={maybe(() => updateResult.data.categoryUpdate.errors)} + errors={updateResult.data?.categoryUpdate.errors || []} onAddCategory={() => navigate(categoryAddUrl(id))} onAddProduct={() => navigate(productAddUrl)} onBack={() => diff --git a/src/collections/types/CollectionAssignProduct.ts b/src/collections/types/CollectionAssignProduct.ts index dc8fd3839..0fbfa3103 100644 --- a/src/collections/types/CollectionAssignProduct.ts +++ b/src/collections/types/CollectionAssignProduct.ts @@ -59,7 +59,7 @@ export interface CollectionAssignProduct_collectionAddProducts_collection { export interface CollectionAssignProduct_collectionAddProducts { __typename: "CollectionAddProducts"; - errors: CollectionAssignProduct_collectionAddProducts_errors[] | null; + errors: CollectionAssignProduct_collectionAddProducts_errors[]; collection: CollectionAssignProduct_collectionAddProducts_collection | null; } diff --git a/src/collections/types/CollectionBulkDelete.ts b/src/collections/types/CollectionBulkDelete.ts index 3afafab50..84254bc4f 100644 --- a/src/collections/types/CollectionBulkDelete.ts +++ b/src/collections/types/CollectionBulkDelete.ts @@ -14,7 +14,7 @@ export interface CollectionBulkDelete_collectionBulkDelete_errors { export interface CollectionBulkDelete_collectionBulkDelete { __typename: "CollectionBulkDelete"; - errors: CollectionBulkDelete_collectionBulkDelete_errors[] | null; + errors: CollectionBulkDelete_collectionBulkDelete_errors[]; } export interface CollectionBulkDelete { diff --git a/src/collections/types/CollectionBulkPublish.ts b/src/collections/types/CollectionBulkPublish.ts index 9cb56e743..24739b592 100644 --- a/src/collections/types/CollectionBulkPublish.ts +++ b/src/collections/types/CollectionBulkPublish.ts @@ -14,7 +14,7 @@ export interface CollectionBulkPublish_collectionBulkPublish_errors { export interface CollectionBulkPublish_collectionBulkPublish { __typename: "CollectionBulkPublish"; - errors: CollectionBulkPublish_collectionBulkPublish_errors[] | null; + errors: CollectionBulkPublish_collectionBulkPublish_errors[]; } export interface CollectionBulkPublish { diff --git a/src/collections/types/CollectionDetails.ts b/src/collections/types/CollectionDetails.ts index bfbc9441c..4f24c83ce 100644 --- a/src/collections/types/CollectionDetails.ts +++ b/src/collections/types/CollectionDetails.ts @@ -76,7 +76,7 @@ export interface CollectionDetails_shop { export interface CollectionDetails { collection: CollectionDetails_collection | null; - shop: CollectionDetails_shop | null; + shop: CollectionDetails_shop; } export interface CollectionDetailsVariables { diff --git a/src/collections/types/CollectionUpdate.ts b/src/collections/types/CollectionUpdate.ts index 91453df7d..95f216696 100644 --- a/src/collections/types/CollectionUpdate.ts +++ b/src/collections/types/CollectionUpdate.ts @@ -34,7 +34,7 @@ export interface CollectionUpdate_collectionUpdate_collection { export interface CollectionUpdate_collectionUpdate { __typename: "CollectionUpdate"; - errors: CollectionUpdate_collectionUpdate_errors[] | null; + errors: CollectionUpdate_collectionUpdate_errors[]; collection: CollectionUpdate_collectionUpdate_collection | null; } diff --git a/src/collections/types/CollectionUpdateWithHomepage.ts b/src/collections/types/CollectionUpdateWithHomepage.ts index f378cc904..71c2fd396 100644 --- a/src/collections/types/CollectionUpdateWithHomepage.ts +++ b/src/collections/types/CollectionUpdateWithHomepage.ts @@ -26,7 +26,7 @@ export interface CollectionUpdateWithHomepage_homepageCollectionUpdate_shop { export interface CollectionUpdateWithHomepage_homepageCollectionUpdate { __typename: "HomepageCollectionUpdate"; - errors: CollectionUpdateWithHomepage_homepageCollectionUpdate_errors[] | null; + errors: CollectionUpdateWithHomepage_homepageCollectionUpdate_errors[]; shop: CollectionUpdateWithHomepage_homepageCollectionUpdate_shop | null; } @@ -56,7 +56,7 @@ export interface CollectionUpdateWithHomepage_collectionUpdate_collection { export interface CollectionUpdateWithHomepage_collectionUpdate { __typename: "CollectionUpdate"; - errors: CollectionUpdateWithHomepage_collectionUpdate_errors[] | null; + errors: CollectionUpdateWithHomepage_collectionUpdate_errors[]; collection: CollectionUpdateWithHomepage_collectionUpdate_collection | null; } diff --git a/src/collections/types/CreateCollection.ts b/src/collections/types/CreateCollection.ts index 25987de78..de5dc26e9 100644 --- a/src/collections/types/CreateCollection.ts +++ b/src/collections/types/CreateCollection.ts @@ -34,7 +34,7 @@ export interface CreateCollection_collectionCreate_collection { export interface CreateCollection_collectionCreate { __typename: "CollectionCreate"; - errors: CreateCollection_collectionCreate_errors[] | null; + errors: CreateCollection_collectionCreate_errors[]; collection: CreateCollection_collectionCreate_collection | null; } diff --git a/src/collections/types/RemoveCollection.ts b/src/collections/types/RemoveCollection.ts index de2c96483..878406a25 100644 --- a/src/collections/types/RemoveCollection.ts +++ b/src/collections/types/RemoveCollection.ts @@ -14,7 +14,7 @@ export interface RemoveCollection_collectionDelete_errors { export interface RemoveCollection_collectionDelete { __typename: "CollectionDelete"; - errors: RemoveCollection_collectionDelete_errors[] | null; + errors: RemoveCollection_collectionDelete_errors[]; } export interface RemoveCollection { diff --git a/src/collections/types/UnassignCollectionProduct.ts b/src/collections/types/UnassignCollectionProduct.ts index d5bbfc650..054ca97f3 100644 --- a/src/collections/types/UnassignCollectionProduct.ts +++ b/src/collections/types/UnassignCollectionProduct.ts @@ -59,7 +59,7 @@ export interface UnassignCollectionProduct_collectionRemoveProducts_collection { export interface UnassignCollectionProduct_collectionRemoveProducts { __typename: "CollectionRemoveProducts"; - errors: UnassignCollectionProduct_collectionRemoveProducts_errors[] | null; + errors: UnassignCollectionProduct_collectionRemoveProducts_errors[]; collection: UnassignCollectionProduct_collectionRemoveProducts_collection | null; } diff --git a/src/components/Shop/types/ShopInfo.ts b/src/components/Shop/types/ShopInfo.ts index faf61d61c..b4ec90179 100644 --- a/src/components/Shop/types/ShopInfo.ts +++ b/src/components/Shop/types/ShopInfo.ts @@ -54,5 +54,5 @@ export interface ShopInfo_shop { } export interface ShopInfo { - shop: ShopInfo_shop | null; + shop: ShopInfo_shop; } diff --git a/src/customers/types/BulkRemoveCustomers.ts b/src/customers/types/BulkRemoveCustomers.ts index 06251bbbc..5af102d77 100644 --- a/src/customers/types/BulkRemoveCustomers.ts +++ b/src/customers/types/BulkRemoveCustomers.ts @@ -14,7 +14,7 @@ export interface BulkRemoveCustomers_customerBulkDelete_errors { export interface BulkRemoveCustomers_customerBulkDelete { __typename: "CustomerBulkDelete"; - errors: BulkRemoveCustomers_customerBulkDelete_errors[] | null; + errors: BulkRemoveCustomers_customerBulkDelete_errors[]; } export interface BulkRemoveCustomers { diff --git a/src/customers/types/CreateCustomer.ts b/src/customers/types/CreateCustomer.ts index a816a40d0..6f9a4ec3e 100644 --- a/src/customers/types/CreateCustomer.ts +++ b/src/customers/types/CreateCustomer.ts @@ -21,7 +21,7 @@ export interface CreateCustomer_customerCreate_user { export interface CreateCustomer_customerCreate { __typename: "CustomerCreate"; - errors: CreateCustomer_customerCreate_errors[] | null; + errors: CreateCustomer_customerCreate_errors[]; user: CreateCustomer_customerCreate_user | null; } diff --git a/src/customers/types/CreateCustomerAddress.ts b/src/customers/types/CreateCustomerAddress.ts index f49e42228..2dfd3f2d9 100644 --- a/src/customers/types/CreateCustomerAddress.ts +++ b/src/customers/types/CreateCustomerAddress.ts @@ -81,7 +81,7 @@ export interface CreateCustomerAddress_addressCreate_user { export interface CreateCustomerAddress_addressCreate { __typename: "AddressCreate"; - errors: CreateCustomerAddress_addressCreate_errors[] | null; + errors: CreateCustomerAddress_addressCreate_errors[]; address: CreateCustomerAddress_addressCreate_address | null; user: CreateCustomerAddress_addressCreate_user | null; } diff --git a/src/customers/types/CustomerCreateData.ts b/src/customers/types/CustomerCreateData.ts index 2f5029892..7ca532d09 100644 --- a/src/customers/types/CustomerCreateData.ts +++ b/src/customers/types/CustomerCreateData.ts @@ -18,5 +18,5 @@ export interface CustomerCreateData_shop { } export interface CustomerCreateData { - shop: CustomerCreateData_shop | null; + shop: CustomerCreateData_shop; } diff --git a/src/customers/types/RemoveCustomer.ts b/src/customers/types/RemoveCustomer.ts index 70a93326d..ddc504728 100644 --- a/src/customers/types/RemoveCustomer.ts +++ b/src/customers/types/RemoveCustomer.ts @@ -14,7 +14,7 @@ export interface RemoveCustomer_customerDelete_errors { export interface RemoveCustomer_customerDelete { __typename: "CustomerDelete"; - errors: RemoveCustomer_customerDelete_errors[] | null; + errors: RemoveCustomer_customerDelete_errors[]; } export interface RemoveCustomer { diff --git a/src/customers/types/RemoveCustomerAddress.ts b/src/customers/types/RemoveCustomerAddress.ts index a4f6cd9ee..69de7eafa 100644 --- a/src/customers/types/RemoveCustomerAddress.ts +++ b/src/customers/types/RemoveCustomerAddress.ts @@ -57,7 +57,7 @@ export interface RemoveCustomerAddress_addressDelete_user { export interface RemoveCustomerAddress_addressDelete { __typename: "AddressDelete"; - errors: RemoveCustomerAddress_addressDelete_errors[] | null; + errors: RemoveCustomerAddress_addressDelete_errors[]; user: RemoveCustomerAddress_addressDelete_user | null; } diff --git a/src/customers/types/SetCustomerDefaultAddress.ts b/src/customers/types/SetCustomerDefaultAddress.ts index e2732c8c7..eefe47419 100644 --- a/src/customers/types/SetCustomerDefaultAddress.ts +++ b/src/customers/types/SetCustomerDefaultAddress.ts @@ -59,7 +59,7 @@ export interface SetCustomerDefaultAddress_addressSetDefault_user { export interface SetCustomerDefaultAddress_addressSetDefault { __typename: "AddressSetDefault"; - errors: SetCustomerDefaultAddress_addressSetDefault_errors[] | null; + errors: SetCustomerDefaultAddress_addressSetDefault_errors[]; user: SetCustomerDefaultAddress_addressSetDefault_user | null; } diff --git a/src/customers/types/UpdateCustomer.ts b/src/customers/types/UpdateCustomer.ts index 32be22048..f67fe8d00 100644 --- a/src/customers/types/UpdateCustomer.ts +++ b/src/customers/types/UpdateCustomer.ts @@ -74,7 +74,7 @@ export interface UpdateCustomer_customerUpdate_user { export interface UpdateCustomer_customerUpdate { __typename: "CustomerUpdate"; - errors: UpdateCustomer_customerUpdate_errors[] | null; + errors: UpdateCustomer_customerUpdate_errors[]; user: UpdateCustomer_customerUpdate_user | null; } diff --git a/src/customers/types/UpdateCustomerAddress.ts b/src/customers/types/UpdateCustomerAddress.ts index 4cf3ea5c3..73fb000dc 100644 --- a/src/customers/types/UpdateCustomerAddress.ts +++ b/src/customers/types/UpdateCustomerAddress.ts @@ -38,7 +38,7 @@ export interface UpdateCustomerAddress_addressUpdate_address { export interface UpdateCustomerAddress_addressUpdate { __typename: "AddressUpdate"; - errors: UpdateCustomerAddress_addressUpdate_errors[] | null; + errors: UpdateCustomerAddress_addressUpdate_errors[]; address: UpdateCustomerAddress_addressUpdate_address | null; } diff --git a/src/customers/views/CustomerDetails.tsx b/src/customers/views/CustomerDetails.tsx index 08d1533f7..f5d446b88 100644 --- a/src/customers/views/CustomerDetails.tsx +++ b/src/customers/views/CustomerDetails.tsx @@ -86,9 +86,9 @@ export const CustomerDetailsView: React.FC = ({ updateCustomerOpts.loading || removeCustomerOpts.loading } - errors={maybe( - () => updateCustomerOpts.data.customerUpdate.errors - )} + errors={ + updateCustomerOpts.data?.customerUpdate.errors || [] + } saveButtonBar={updateCustomerOpts.status} onAddressManageClick={() => navigate(customerAddressesUrl(id)) diff --git a/src/discounts/types/SaleBulkDelete.ts b/src/discounts/types/SaleBulkDelete.ts index e02fcbac0..ce1450c1e 100644 --- a/src/discounts/types/SaleBulkDelete.ts +++ b/src/discounts/types/SaleBulkDelete.ts @@ -14,7 +14,7 @@ export interface SaleBulkDelete_saleBulkDelete_errors { export interface SaleBulkDelete_saleBulkDelete { __typename: "SaleBulkDelete"; - errors: SaleBulkDelete_saleBulkDelete_errors[] | null; + errors: SaleBulkDelete_saleBulkDelete_errors[]; } export interface SaleBulkDelete { diff --git a/src/discounts/types/SaleCataloguesAdd.ts b/src/discounts/types/SaleCataloguesAdd.ts index 3f1302316..379a0e70d 100644 --- a/src/discounts/types/SaleCataloguesAdd.ts +++ b/src/discounts/types/SaleCataloguesAdd.ts @@ -133,7 +133,7 @@ export interface SaleCataloguesAdd_saleCataloguesAdd_sale { export interface SaleCataloguesAdd_saleCataloguesAdd { __typename: "SaleAddCatalogues"; - errors: SaleCataloguesAdd_saleCataloguesAdd_errors[] | null; + errors: SaleCataloguesAdd_saleCataloguesAdd_errors[]; sale: SaleCataloguesAdd_saleCataloguesAdd_sale | null; } diff --git a/src/discounts/types/SaleCataloguesRemove.ts b/src/discounts/types/SaleCataloguesRemove.ts index 96746e461..c28077190 100644 --- a/src/discounts/types/SaleCataloguesRemove.ts +++ b/src/discounts/types/SaleCataloguesRemove.ts @@ -133,7 +133,7 @@ export interface SaleCataloguesRemove_saleCataloguesRemove_sale { export interface SaleCataloguesRemove_saleCataloguesRemove { __typename: "SaleRemoveCatalogues"; - errors: SaleCataloguesRemove_saleCataloguesRemove_errors[] | null; + errors: SaleCataloguesRemove_saleCataloguesRemove_errors[]; sale: SaleCataloguesRemove_saleCataloguesRemove_sale | null; } diff --git a/src/discounts/types/SaleCreate.ts b/src/discounts/types/SaleCreate.ts index 0f30617fc..f27b8224e 100644 --- a/src/discounts/types/SaleCreate.ts +++ b/src/discounts/types/SaleCreate.ts @@ -26,7 +26,7 @@ export interface SaleCreate_saleCreate_sale { export interface SaleCreate_saleCreate { __typename: "SaleCreate"; - errors: SaleCreate_saleCreate_errors[] | null; + errors: SaleCreate_saleCreate_errors[]; sale: SaleCreate_saleCreate_sale | null; } diff --git a/src/discounts/types/SaleDelete.ts b/src/discounts/types/SaleDelete.ts index b11575381..7c6c03bfb 100644 --- a/src/discounts/types/SaleDelete.ts +++ b/src/discounts/types/SaleDelete.ts @@ -14,7 +14,7 @@ export interface SaleDelete_saleDelete_errors { export interface SaleDelete_saleDelete { __typename: "SaleDelete"; - errors: SaleDelete_saleDelete_errors[] | null; + errors: SaleDelete_saleDelete_errors[]; } export interface SaleDelete { diff --git a/src/discounts/types/SaleUpdate.ts b/src/discounts/types/SaleUpdate.ts index ca835efb5..de26294af 100644 --- a/src/discounts/types/SaleUpdate.ts +++ b/src/discounts/types/SaleUpdate.ts @@ -26,7 +26,7 @@ export interface SaleUpdate_saleUpdate_sale { export interface SaleUpdate_saleUpdate { __typename: "SaleUpdate"; - errors: SaleUpdate_saleUpdate_errors[] | null; + errors: SaleUpdate_saleUpdate_errors[]; sale: SaleUpdate_saleUpdate_sale | null; } diff --git a/src/discounts/types/VoucherBulkDelete.ts b/src/discounts/types/VoucherBulkDelete.ts index ac3277e75..e0fcd4758 100644 --- a/src/discounts/types/VoucherBulkDelete.ts +++ b/src/discounts/types/VoucherBulkDelete.ts @@ -14,7 +14,7 @@ export interface VoucherBulkDelete_voucherBulkDelete_errors { export interface VoucherBulkDelete_voucherBulkDelete { __typename: "VoucherBulkDelete"; - errors: VoucherBulkDelete_voucherBulkDelete_errors[] | null; + errors: VoucherBulkDelete_voucherBulkDelete_errors[]; } export interface VoucherBulkDelete { diff --git a/src/discounts/types/VoucherCataloguesAdd.ts b/src/discounts/types/VoucherCataloguesAdd.ts index 7940f2b92..c4875f8ad 100644 --- a/src/discounts/types/VoucherCataloguesAdd.ts +++ b/src/discounts/types/VoucherCataloguesAdd.ts @@ -153,7 +153,7 @@ export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher { export interface VoucherCataloguesAdd_voucherCataloguesAdd { __typename: "VoucherAddCatalogues"; - errors: VoucherCataloguesAdd_voucherCataloguesAdd_errors[] | null; + errors: VoucherCataloguesAdd_voucherCataloguesAdd_errors[]; voucher: VoucherCataloguesAdd_voucherCataloguesAdd_voucher | null; } diff --git a/src/discounts/types/VoucherCataloguesRemove.ts b/src/discounts/types/VoucherCataloguesRemove.ts index d12cf961d..3c80a2062 100644 --- a/src/discounts/types/VoucherCataloguesRemove.ts +++ b/src/discounts/types/VoucherCataloguesRemove.ts @@ -153,7 +153,7 @@ export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher { export interface VoucherCataloguesRemove_voucherCataloguesRemove { __typename: "VoucherRemoveCatalogues"; - errors: VoucherCataloguesRemove_voucherCataloguesRemove_errors[] | null; + errors: VoucherCataloguesRemove_voucherCataloguesRemove_errors[]; voucher: VoucherCataloguesRemove_voucherCataloguesRemove_voucher | null; } diff --git a/src/discounts/types/VoucherCreate.ts b/src/discounts/types/VoucherCreate.ts index 1ea777017..60d2d1af7 100644 --- a/src/discounts/types/VoucherCreate.ts +++ b/src/discounts/types/VoucherCreate.ts @@ -42,7 +42,7 @@ export interface VoucherCreate_voucherCreate_voucher { export interface VoucherCreate_voucherCreate { __typename: "VoucherCreate"; - errors: VoucherCreate_voucherCreate_errors[] | null; + errors: VoucherCreate_voucherCreate_errors[]; voucher: VoucherCreate_voucherCreate_voucher | null; } diff --git a/src/discounts/types/VoucherDelete.ts b/src/discounts/types/VoucherDelete.ts index 7a0fc7f4c..a903ef9e7 100644 --- a/src/discounts/types/VoucherDelete.ts +++ b/src/discounts/types/VoucherDelete.ts @@ -14,7 +14,7 @@ export interface VoucherDelete_voucherDelete_errors { export interface VoucherDelete_voucherDelete { __typename: "VoucherDelete"; - errors: VoucherDelete_voucherDelete_errors[] | null; + errors: VoucherDelete_voucherDelete_errors[]; } export interface VoucherDelete { diff --git a/src/discounts/types/VoucherUpdate.ts b/src/discounts/types/VoucherUpdate.ts index aa00af646..853f8705d 100644 --- a/src/discounts/types/VoucherUpdate.ts +++ b/src/discounts/types/VoucherUpdate.ts @@ -42,7 +42,7 @@ export interface VoucherUpdate_voucherUpdate_voucher { export interface VoucherUpdate_voucherUpdate { __typename: "VoucherUpdate"; - errors: VoucherUpdate_voucherUpdate_errors[] | null; + errors: VoucherUpdate_voucherUpdate_errors[]; voucher: VoucherUpdate_voucherUpdate_voucher | null; } diff --git a/src/discounts/views/SaleCreate.tsx b/src/discounts/views/SaleCreate.tsx index 829bfff9b..3c237ea83 100644 --- a/src/discounts/views/SaleCreate.tsx +++ b/src/discounts/views/SaleCreate.tsx @@ -44,7 +44,7 @@ export const SaleDetails: React.FC = () => { shop.defaultCurrency)} disabled={saleCreateOpts.loading} - errors={maybe(() => saleCreateOpts.data.saleCreate.errors)} + errors={saleCreateOpts.data?.saleCreate.errors || []} onBack={() => navigate(saleListUrl())} onSubmit={formData => saleCreate({ diff --git a/src/discounts/views/SaleDetails.tsx b/src/discounts/views/SaleDetails.tsx index 3d6eb4967..caa386836 100644 --- a/src/discounts/views/SaleDetails.tsx +++ b/src/discounts/views/SaleDetails.tsx @@ -209,9 +209,9 @@ export const SaleDetails: React.FC = ({ id, params }) => { disabled={ loading || saleCataloguesRemoveOpts.loading } - errors={maybe( - () => saleUpdateOpts.data.saleUpdate.errors - )} + errors={ + saleUpdateOpts.data?.saleUpdate.errors || [] + } pageInfo={pageInfo} onNextPage={loadNextPage} onPreviousPage={loadPreviousPage} diff --git a/src/discounts/views/VoucherCreate.tsx b/src/discounts/views/VoucherCreate.tsx index 660dffb02..4b5b4bb4e 100644 --- a/src/discounts/views/VoucherCreate.tsx +++ b/src/discounts/views/VoucherCreate.tsx @@ -42,7 +42,7 @@ export const VoucherDetails: React.FC = () => { shop.defaultCurrency)} disabled={voucherCreateOpts.loading} - errors={maybe(() => voucherCreateOpts.data.voucherCreate.errors)} + errors={voucherCreateOpts.data?.voucherCreate.errors || []} onBack={() => navigate(voucherListUrl())} onSubmit={formData => voucherCreate({ diff --git a/src/discounts/views/VoucherDetails.tsx b/src/discounts/views/VoucherDetails.tsx index 06e06fb92..61b63e6b5 100644 --- a/src/discounts/views/VoucherDetails.tsx +++ b/src/discounts/views/VoucherDetails.tsx @@ -212,10 +212,10 @@ export const VoucherDetails: React.FC = ({ disabled={ loading || voucherCataloguesRemoveOpts.loading } - errors={maybe( - () => - voucherUpdateOpts.data.voucherUpdate.errors - )} + errors={ + voucherUpdateOpts.data?.voucherUpdate.errors || + [] + } pageInfo={pageInfo} onNextPage={loadNextPage} onPreviousPage={loadPreviousPage} diff --git a/src/navigation/types/MenuBulkDelete.ts b/src/navigation/types/MenuBulkDelete.ts index b253b78b9..17e33b0ec 100644 --- a/src/navigation/types/MenuBulkDelete.ts +++ b/src/navigation/types/MenuBulkDelete.ts @@ -14,7 +14,7 @@ export interface MenuBulkDelete_menuBulkDelete_errors { export interface MenuBulkDelete_menuBulkDelete { __typename: "MenuBulkDelete"; - errors: MenuBulkDelete_menuBulkDelete_errors[] | null; + errors: MenuBulkDelete_menuBulkDelete_errors[]; } export interface MenuBulkDelete { diff --git a/src/navigation/types/MenuCreate.ts b/src/navigation/types/MenuCreate.ts index 77613e784..f5efdffac 100644 --- a/src/navigation/types/MenuCreate.ts +++ b/src/navigation/types/MenuCreate.ts @@ -21,7 +21,7 @@ export interface MenuCreate_menuCreate_menu { export interface MenuCreate_menuCreate { __typename: "MenuCreate"; - errors: MenuCreate_menuCreate_errors[] | null; + errors: MenuCreate_menuCreate_errors[]; menu: MenuCreate_menuCreate_menu | null; } diff --git a/src/navigation/types/MenuDelete.ts b/src/navigation/types/MenuDelete.ts index c5cf072b5..466fff507 100644 --- a/src/navigation/types/MenuDelete.ts +++ b/src/navigation/types/MenuDelete.ts @@ -14,7 +14,7 @@ export interface MenuDelete_menuDelete_errors { export interface MenuDelete_menuDelete { __typename: "MenuDelete"; - errors: MenuDelete_menuDelete_errors[] | null; + errors: MenuDelete_menuDelete_errors[]; } export interface MenuDelete { diff --git a/src/navigation/types/MenuItemCreate.ts b/src/navigation/types/MenuItemCreate.ts index cc2d5ae87..8571b994c 100644 --- a/src/navigation/types/MenuItemCreate.ts +++ b/src/navigation/types/MenuItemCreate.ts @@ -236,7 +236,7 @@ export interface MenuItemCreate_menuItemCreate_menuItem { export interface MenuItemCreate_menuItemCreate { __typename: "MenuItemCreate"; - errors: MenuItemCreate_menuItemCreate_errors[] | null; + errors: MenuItemCreate_menuItemCreate_errors[]; menuItem: MenuItemCreate_menuItemCreate_menuItem | null; } diff --git a/src/navigation/types/MenuItemUpdate.ts b/src/navigation/types/MenuItemUpdate.ts index e6d9cce32..56656119c 100644 --- a/src/navigation/types/MenuItemUpdate.ts +++ b/src/navigation/types/MenuItemUpdate.ts @@ -45,7 +45,7 @@ export interface MenuItemUpdate_menuItemUpdate_menuItem { export interface MenuItemUpdate_menuItemUpdate { __typename: "MenuItemUpdate"; - errors: MenuItemUpdate_menuItemUpdate_errors[] | null; + errors: MenuItemUpdate_menuItemUpdate_errors[]; menuItem: MenuItemUpdate_menuItemUpdate_menuItem | null; } diff --git a/src/navigation/types/MenuUpdate.ts b/src/navigation/types/MenuUpdate.ts index 0ab7d0d56..dadf11956 100644 --- a/src/navigation/types/MenuUpdate.ts +++ b/src/navigation/types/MenuUpdate.ts @@ -16,7 +16,7 @@ export interface MenuUpdate_menuUpdate_errors { export interface MenuUpdate_menuUpdate { __typename: "MenuUpdate"; - errors: MenuUpdate_menuUpdate_errors[] | null; + errors: MenuUpdate_menuUpdate_errors[]; } export interface MenuUpdate_menuItemMove_errors { @@ -27,7 +27,7 @@ export interface MenuUpdate_menuItemMove_errors { export interface MenuUpdate_menuItemMove { __typename: "MenuItemMove"; - errors: MenuUpdate_menuItemMove_errors[] | null; + errors: MenuUpdate_menuItemMove_errors[]; } export interface MenuUpdate_menuItemBulkDelete_errors { @@ -38,7 +38,7 @@ export interface MenuUpdate_menuItemBulkDelete_errors { export interface MenuUpdate_menuItemBulkDelete { __typename: "MenuItemBulkDelete"; - errors: MenuUpdate_menuItemBulkDelete_errors[] | null; + errors: MenuUpdate_menuItemBulkDelete_errors[]; } export interface MenuUpdate { diff --git a/src/orders/types/OrderAddNote.ts b/src/orders/types/OrderAddNote.ts index dc42af7cb..644240699 100644 --- a/src/orders/types/OrderAddNote.ts +++ b/src/orders/types/OrderAddNote.ts @@ -41,7 +41,7 @@ export interface OrderAddNote_orderAddNote_order { export interface OrderAddNote_orderAddNote { __typename: "OrderAddNote"; - errors: OrderAddNote_orderAddNote_errors[] | null; + errors: OrderAddNote_orderAddNote_errors[]; order: OrderAddNote_orderAddNote_order | null; } diff --git a/src/orders/types/OrderBulkCancel.ts b/src/orders/types/OrderBulkCancel.ts index ad442d58e..a41742fd5 100644 --- a/src/orders/types/OrderBulkCancel.ts +++ b/src/orders/types/OrderBulkCancel.ts @@ -14,7 +14,7 @@ export interface OrderBulkCancel_orderBulkCancel_errors { export interface OrderBulkCancel_orderBulkCancel { __typename: "OrderBulkCancel"; - errors: OrderBulkCancel_orderBulkCancel_errors[] | null; + errors: OrderBulkCancel_orderBulkCancel_errors[]; } export interface OrderBulkCancel { diff --git a/src/orders/types/OrderCancel.ts b/src/orders/types/OrderCancel.ts index 4be781645..f5036400c 100644 --- a/src/orders/types/OrderCancel.ts +++ b/src/orders/types/OrderCancel.ts @@ -268,7 +268,7 @@ export interface OrderCancel_orderCancel_order { export interface OrderCancel_orderCancel { __typename: "OrderCancel"; - errors: OrderCancel_orderCancel_errors[] | null; + errors: OrderCancel_orderCancel_errors[]; order: OrderCancel_orderCancel_order | null; } diff --git a/src/orders/types/OrderCapture.ts b/src/orders/types/OrderCapture.ts index 2c3bf0f51..788e91cae 100644 --- a/src/orders/types/OrderCapture.ts +++ b/src/orders/types/OrderCapture.ts @@ -268,7 +268,7 @@ export interface OrderCapture_orderCapture_order { export interface OrderCapture_orderCapture { __typename: "OrderCapture"; - errors: OrderCapture_orderCapture_errors[] | null; + errors: OrderCapture_orderCapture_errors[]; order: OrderCapture_orderCapture_order | null; } diff --git a/src/orders/types/OrderCreateFulfillment.ts b/src/orders/types/OrderCreateFulfillment.ts index 0cba57943..c2d9505c0 100644 --- a/src/orders/types/OrderCreateFulfillment.ts +++ b/src/orders/types/OrderCreateFulfillment.ts @@ -268,7 +268,7 @@ export interface OrderCreateFulfillment_orderFulfillmentCreate_order { export interface OrderCreateFulfillment_orderFulfillmentCreate { __typename: "FulfillmentCreate"; - errors: OrderCreateFulfillment_orderFulfillmentCreate_errors[] | null; + errors: OrderCreateFulfillment_orderFulfillmentCreate_errors[]; order: OrderCreateFulfillment_orderFulfillmentCreate_order | null; } diff --git a/src/orders/types/OrderDetails.ts b/src/orders/types/OrderDetails.ts index b6bb55380..a668e4563 100644 --- a/src/orders/types/OrderDetails.ts +++ b/src/orders/types/OrderDetails.ts @@ -274,7 +274,7 @@ export interface OrderDetails_shop { export interface OrderDetails { order: OrderDetails_order | null; - shop: OrderDetails_shop | null; + shop: OrderDetails_shop; } export interface OrderDetailsVariables { diff --git a/src/orders/types/OrderDraftBulkCancel.ts b/src/orders/types/OrderDraftBulkCancel.ts index e679e9055..7026718cd 100644 --- a/src/orders/types/OrderDraftBulkCancel.ts +++ b/src/orders/types/OrderDraftBulkCancel.ts @@ -14,7 +14,7 @@ export interface OrderDraftBulkCancel_draftOrderBulkDelete_errors { export interface OrderDraftBulkCancel_draftOrderBulkDelete { __typename: "DraftOrderBulkDelete"; - errors: OrderDraftBulkCancel_draftOrderBulkDelete_errors[] | null; + errors: OrderDraftBulkCancel_draftOrderBulkDelete_errors[]; } export interface OrderDraftBulkCancel { diff --git a/src/orders/types/OrderDraftCancel.ts b/src/orders/types/OrderDraftCancel.ts index 675b8bac5..6ff9637ec 100644 --- a/src/orders/types/OrderDraftCancel.ts +++ b/src/orders/types/OrderDraftCancel.ts @@ -268,7 +268,7 @@ export interface OrderDraftCancel_draftOrderDelete_order { export interface OrderDraftCancel_draftOrderDelete { __typename: "DraftOrderDelete"; - errors: OrderDraftCancel_draftOrderDelete_errors[] | null; + errors: OrderDraftCancel_draftOrderDelete_errors[]; order: OrderDraftCancel_draftOrderDelete_order | null; } diff --git a/src/orders/types/OrderDraftCreate.ts b/src/orders/types/OrderDraftCreate.ts index a978459cc..ee17d4143 100644 --- a/src/orders/types/OrderDraftCreate.ts +++ b/src/orders/types/OrderDraftCreate.ts @@ -19,7 +19,7 @@ export interface OrderDraftCreate_draftOrderCreate_order { export interface OrderDraftCreate_draftOrderCreate { __typename: "DraftOrderCreate"; - errors: OrderDraftCreate_draftOrderCreate_errors[] | null; + errors: OrderDraftCreate_draftOrderCreate_errors[]; order: OrderDraftCreate_draftOrderCreate_order | null; } diff --git a/src/orders/types/OrderDraftFinalize.ts b/src/orders/types/OrderDraftFinalize.ts index 5076ae026..9e522d18d 100644 --- a/src/orders/types/OrderDraftFinalize.ts +++ b/src/orders/types/OrderDraftFinalize.ts @@ -268,7 +268,7 @@ export interface OrderDraftFinalize_draftOrderComplete_order { export interface OrderDraftFinalize_draftOrderComplete { __typename: "DraftOrderComplete"; - errors: OrderDraftFinalize_draftOrderComplete_errors[] | null; + errors: OrderDraftFinalize_draftOrderComplete_errors[]; order: OrderDraftFinalize_draftOrderComplete_order | null; } diff --git a/src/orders/types/OrderDraftUpdate.ts b/src/orders/types/OrderDraftUpdate.ts index 6d446e0fe..97353b776 100644 --- a/src/orders/types/OrderDraftUpdate.ts +++ b/src/orders/types/OrderDraftUpdate.ts @@ -268,7 +268,7 @@ export interface OrderDraftUpdate_draftOrderUpdate_order { export interface OrderDraftUpdate_draftOrderUpdate { __typename: "DraftOrderUpdate"; - errors: OrderDraftUpdate_draftOrderUpdate_errors[] | null; + errors: OrderDraftUpdate_draftOrderUpdate_errors[]; order: OrderDraftUpdate_draftOrderUpdate_order | null; } diff --git a/src/orders/types/OrderFulfillmentCancel.ts b/src/orders/types/OrderFulfillmentCancel.ts index 217ddda7b..3c9ff8836 100644 --- a/src/orders/types/OrderFulfillmentCancel.ts +++ b/src/orders/types/OrderFulfillmentCancel.ts @@ -268,7 +268,7 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order { export interface OrderFulfillmentCancel_orderFulfillmentCancel { __typename: "FulfillmentCancel"; - errors: OrderFulfillmentCancel_orderFulfillmentCancel_errors[] | null; + errors: OrderFulfillmentCancel_orderFulfillmentCancel_errors[]; order: OrderFulfillmentCancel_orderFulfillmentCancel_order | null; } diff --git a/src/orders/types/OrderFulfillmentUpdateTracking.ts b/src/orders/types/OrderFulfillmentUpdateTracking.ts index e1a912f15..63debe229 100644 --- a/src/orders/types/OrderFulfillmentUpdateTracking.ts +++ b/src/orders/types/OrderFulfillmentUpdateTracking.ts @@ -268,7 +268,7 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking { __typename: "FulfillmentUpdateTracking"; - errors: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_errors[] | null; + errors: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_errors[]; order: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order | null; } diff --git a/src/orders/types/OrderLineDelete.ts b/src/orders/types/OrderLineDelete.ts index 946439ad2..cd2e88d55 100644 --- a/src/orders/types/OrderLineDelete.ts +++ b/src/orders/types/OrderLineDelete.ts @@ -268,7 +268,7 @@ export interface OrderLineDelete_draftOrderLineDelete_order { export interface OrderLineDelete_draftOrderLineDelete { __typename: "DraftOrderLineDelete"; - errors: OrderLineDelete_draftOrderLineDelete_errors[] | null; + errors: OrderLineDelete_draftOrderLineDelete_errors[]; order: OrderLineDelete_draftOrderLineDelete_order | null; } diff --git a/src/orders/types/OrderLineUpdate.ts b/src/orders/types/OrderLineUpdate.ts index a511163ad..a1061e481 100644 --- a/src/orders/types/OrderLineUpdate.ts +++ b/src/orders/types/OrderLineUpdate.ts @@ -268,7 +268,7 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order { export interface OrderLineUpdate_draftOrderLineUpdate { __typename: "DraftOrderLineUpdate"; - errors: OrderLineUpdate_draftOrderLineUpdate_errors[] | null; + errors: OrderLineUpdate_draftOrderLineUpdate_errors[]; order: OrderLineUpdate_draftOrderLineUpdate_order | null; } diff --git a/src/orders/types/OrderLinesAdd.ts b/src/orders/types/OrderLinesAdd.ts index 763011990..790c031d2 100644 --- a/src/orders/types/OrderLinesAdd.ts +++ b/src/orders/types/OrderLinesAdd.ts @@ -268,7 +268,7 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order { export interface OrderLinesAdd_draftOrderLinesCreate { __typename: "DraftOrderLinesCreate"; - errors: OrderLinesAdd_draftOrderLinesCreate_errors[] | null; + errors: OrderLinesAdd_draftOrderLinesCreate_errors[]; order: OrderLinesAdd_draftOrderLinesCreate_order | null; } diff --git a/src/orders/types/OrderMarkAsPaid.ts b/src/orders/types/OrderMarkAsPaid.ts index 821ed8d39..0e368b568 100644 --- a/src/orders/types/OrderMarkAsPaid.ts +++ b/src/orders/types/OrderMarkAsPaid.ts @@ -268,7 +268,7 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order { export interface OrderMarkAsPaid_orderMarkAsPaid { __typename: "OrderMarkAsPaid"; - errors: OrderMarkAsPaid_orderMarkAsPaid_errors[] | null; + errors: OrderMarkAsPaid_orderMarkAsPaid_errors[]; order: OrderMarkAsPaid_orderMarkAsPaid_order | null; } diff --git a/src/orders/types/OrderRefund.ts b/src/orders/types/OrderRefund.ts index 5fedbe1a9..5c0de2515 100644 --- a/src/orders/types/OrderRefund.ts +++ b/src/orders/types/OrderRefund.ts @@ -268,7 +268,7 @@ export interface OrderRefund_orderRefund_order { export interface OrderRefund_orderRefund { __typename: "OrderRefund"; - errors: OrderRefund_orderRefund_errors[] | null; + errors: OrderRefund_orderRefund_errors[]; order: OrderRefund_orderRefund_order | null; } diff --git a/src/orders/types/OrderShippingMethodUpdate.ts b/src/orders/types/OrderShippingMethodUpdate.ts index abeb03535..e12699812 100644 --- a/src/orders/types/OrderShippingMethodUpdate.ts +++ b/src/orders/types/OrderShippingMethodUpdate.ts @@ -55,7 +55,7 @@ export interface OrderShippingMethodUpdate_orderUpdateShipping_order { export interface OrderShippingMethodUpdate_orderUpdateShipping { __typename: "OrderUpdateShipping"; - errors: OrderShippingMethodUpdate_orderUpdateShipping_errors[] | null; + errors: OrderShippingMethodUpdate_orderUpdateShipping_errors[]; order: OrderShippingMethodUpdate_orderUpdateShipping_order | null; } diff --git a/src/orders/types/OrderUpdate.ts b/src/orders/types/OrderUpdate.ts index 66946aaab..19cdcb37f 100644 --- a/src/orders/types/OrderUpdate.ts +++ b/src/orders/types/OrderUpdate.ts @@ -68,7 +68,7 @@ export interface OrderUpdate_orderUpdate_order { export interface OrderUpdate_orderUpdate { __typename: "OrderUpdate"; - errors: OrderUpdate_orderUpdate_errors[] | null; + errors: OrderUpdate_orderUpdate_errors[]; order: OrderUpdate_orderUpdate_order | null; } diff --git a/src/orders/types/OrderVoid.ts b/src/orders/types/OrderVoid.ts index 1d3e76026..add16db2a 100644 --- a/src/orders/types/OrderVoid.ts +++ b/src/orders/types/OrderVoid.ts @@ -268,7 +268,7 @@ export interface OrderVoid_orderVoid_order { export interface OrderVoid_orderVoid { __typename: "OrderVoid"; - errors: OrderVoid_orderVoid_errors[] | null; + errors: OrderVoid_orderVoid_errors[]; order: OrderVoid_orderVoid_order | null; } diff --git a/src/orders/views/OrderDetails/index.tsx b/src/orders/views/OrderDetails/index.tsx index a0d86fb10..ce8cd23d5 100644 --- a/src/orders/views/OrderDetails/index.tsx +++ b/src/orders/views/OrderDetails/index.tsx @@ -214,9 +214,7 @@ export const OrderDetails: React.FC = ({ id, params }) => { confirmButtonState={getMutationState( orderCancel.opts.called, orderCancel.opts.loading, - maybe( - () => orderCancel.opts.data.orderCancel.errors - ) + orderCancel.opts.data?.orderCancel.errors || [] )} number={maybe(() => order.number)} open={params.action === "cancel"} @@ -281,10 +279,8 @@ export const OrderDetails: React.FC = ({ id, params }) => { confirmButtonState={getMutationState( orderPaymentRefund.opts.called, orderPaymentRefund.opts.loading, - maybe( - () => - orderPaymentRefund.opts.data.orderRefund.errors - ) + orderPaymentRefund.opts.data?.orderRefund.errors || + [] )} initial={maybe(() => order.total.gross.amount)} open={params.action === "refund"} diff --git a/src/pages/types/PageBulkPublish.ts b/src/pages/types/PageBulkPublish.ts index 1a84cab83..616712e69 100644 --- a/src/pages/types/PageBulkPublish.ts +++ b/src/pages/types/PageBulkPublish.ts @@ -14,7 +14,7 @@ export interface PageBulkPublish_pageBulkPublish_errors { export interface PageBulkPublish_pageBulkPublish { __typename: "PageBulkPublish"; - errors: PageBulkPublish_pageBulkPublish_errors[] | null; + errors: PageBulkPublish_pageBulkPublish_errors[]; } export interface PageBulkPublish { diff --git a/src/pages/types/PageBulkRemove.ts b/src/pages/types/PageBulkRemove.ts index be5c1f85b..74b4ff8cc 100644 --- a/src/pages/types/PageBulkRemove.ts +++ b/src/pages/types/PageBulkRemove.ts @@ -14,7 +14,7 @@ export interface PageBulkRemove_pageBulkDelete_errors { export interface PageBulkRemove_pageBulkDelete { __typename: "PageBulkDelete"; - errors: PageBulkRemove_pageBulkDelete_errors[] | null; + errors: PageBulkRemove_pageBulkDelete_errors[]; } export interface PageBulkRemove { diff --git a/src/pages/types/PageCreate.ts b/src/pages/types/PageCreate.ts index b87367761..6a450bb9a 100644 --- a/src/pages/types/PageCreate.ts +++ b/src/pages/types/PageCreate.ts @@ -28,7 +28,7 @@ export interface PageCreate_pageCreate_page { export interface PageCreate_pageCreate { __typename: "PageCreate"; - errors: PageCreate_pageCreate_errors[] | null; + errors: PageCreate_pageCreate_errors[]; page: PageCreate_pageCreate_page | null; } diff --git a/src/pages/types/PageRemove.ts b/src/pages/types/PageRemove.ts index d1f63ed63..721864afc 100644 --- a/src/pages/types/PageRemove.ts +++ b/src/pages/types/PageRemove.ts @@ -14,7 +14,7 @@ export interface PageRemove_pageDelete_errors { export interface PageRemove_pageDelete { __typename: "PageDelete"; - errors: PageRemove_pageDelete_errors[] | null; + errors: PageRemove_pageDelete_errors[]; } export interface PageRemove { diff --git a/src/pages/types/PageUpdate.ts b/src/pages/types/PageUpdate.ts index 853a0a34c..4933d8eb7 100644 --- a/src/pages/types/PageUpdate.ts +++ b/src/pages/types/PageUpdate.ts @@ -28,7 +28,7 @@ export interface PageUpdate_pageUpdate_page { export interface PageUpdate_pageUpdate { __typename: "PageUpdate"; - errors: PageUpdate_pageUpdate_errors[] | null; + errors: PageUpdate_pageUpdate_errors[]; page: PageUpdate_pageUpdate_page | null; } diff --git a/src/plugins/types/PluginUpdate.ts b/src/plugins/types/PluginUpdate.ts index 49a2d0b9e..c420bf0b0 100644 --- a/src/plugins/types/PluginUpdate.ts +++ b/src/plugins/types/PluginUpdate.ts @@ -34,7 +34,7 @@ export interface PluginUpdate_pluginUpdate_plugin { export interface PluginUpdate_pluginUpdate { __typename: "PluginUpdate"; - errors: PluginUpdate_pluginUpdate_errors[] | null; + errors: PluginUpdate_pluginUpdate_errors[]; plugin: PluginUpdate_pluginUpdate_plugin | null; } diff --git a/src/productTypes/types/AssignAttribute.ts b/src/productTypes/types/AssignAttribute.ts index d6ec1df81..2e9d3fb4a 100644 --- a/src/productTypes/types/AssignAttribute.ts +++ b/src/productTypes/types/AssignAttribute.ts @@ -60,7 +60,7 @@ export interface AssignAttribute_attributeAssign_productType { export interface AssignAttribute_attributeAssign { __typename: "AttributeAssign"; - errors: AssignAttribute_attributeAssign_errors[] | null; + errors: AssignAttribute_attributeAssign_errors[]; productType: AssignAttribute_attributeAssign_productType | null; } diff --git a/src/productTypes/types/ProductTypeAttributeReorder.ts b/src/productTypes/types/ProductTypeAttributeReorder.ts index 32bc41c66..6d4ca443d 100644 --- a/src/productTypes/types/ProductTypeAttributeReorder.ts +++ b/src/productTypes/types/ProductTypeAttributeReorder.ts @@ -60,7 +60,7 @@ export interface ProductTypeAttributeReorder_productTypeReorderAttributes_produc export interface ProductTypeAttributeReorder_productTypeReorderAttributes { __typename: "ProductTypeReorderAttributes"; - errors: ProductTypeAttributeReorder_productTypeReorderAttributes_errors[] | null; + errors: ProductTypeAttributeReorder_productTypeReorderAttributes_errors[]; productType: ProductTypeAttributeReorder_productTypeReorderAttributes_productType | null; } diff --git a/src/productTypes/types/ProductTypeBulkDelete.ts b/src/productTypes/types/ProductTypeBulkDelete.ts index 5924436f6..034d3e909 100644 --- a/src/productTypes/types/ProductTypeBulkDelete.ts +++ b/src/productTypes/types/ProductTypeBulkDelete.ts @@ -14,7 +14,7 @@ export interface ProductTypeBulkDelete_productTypeBulkDelete_errors { export interface ProductTypeBulkDelete_productTypeBulkDelete { __typename: "ProductTypeBulkDelete"; - errors: ProductTypeBulkDelete_productTypeBulkDelete_errors[] | null; + errors: ProductTypeBulkDelete_productTypeBulkDelete_errors[]; } export interface ProductTypeBulkDelete { diff --git a/src/productTypes/types/ProductTypeCreate.ts b/src/productTypes/types/ProductTypeCreate.ts index b2c9256c8..5993bbb02 100644 --- a/src/productTypes/types/ProductTypeCreate.ts +++ b/src/productTypes/types/ProductTypeCreate.ts @@ -60,7 +60,7 @@ export interface ProductTypeCreate_productTypeCreate_productType { export interface ProductTypeCreate_productTypeCreate { __typename: "ProductTypeCreate"; - errors: ProductTypeCreate_productTypeCreate_errors[] | null; + errors: ProductTypeCreate_productTypeCreate_errors[]; productType: ProductTypeCreate_productTypeCreate_productType | null; } diff --git a/src/productTypes/types/ProductTypeCreateData.ts b/src/productTypes/types/ProductTypeCreateData.ts index b50c7f29c..dc178c09c 100644 --- a/src/productTypes/types/ProductTypeCreateData.ts +++ b/src/productTypes/types/ProductTypeCreateData.ts @@ -20,6 +20,6 @@ export interface ProductTypeCreateData_taxTypes { } export interface ProductTypeCreateData { - shop: ProductTypeCreateData_shop | null; + shop: ProductTypeCreateData_shop; taxTypes: (ProductTypeCreateData_taxTypes | null)[] | null; } diff --git a/src/productTypes/types/ProductTypeDelete.ts b/src/productTypes/types/ProductTypeDelete.ts index a4b523b6a..ea5c2a1b0 100644 --- a/src/productTypes/types/ProductTypeDelete.ts +++ b/src/productTypes/types/ProductTypeDelete.ts @@ -19,7 +19,7 @@ export interface ProductTypeDelete_productTypeDelete_productType { export interface ProductTypeDelete_productTypeDelete { __typename: "ProductTypeDelete"; - errors: ProductTypeDelete_productTypeDelete_errors[] | null; + errors: ProductTypeDelete_productTypeDelete_errors[]; productType: ProductTypeDelete_productTypeDelete_productType | null; } diff --git a/src/productTypes/types/ProductTypeDetails.ts b/src/productTypes/types/ProductTypeDetails.ts index ec3d8a568..c403f627d 100644 --- a/src/productTypes/types/ProductTypeDetails.ts +++ b/src/productTypes/types/ProductTypeDetails.ts @@ -65,7 +65,7 @@ export interface ProductTypeDetails_taxTypes { export interface ProductTypeDetails { productType: ProductTypeDetails_productType | null; - shop: ProductTypeDetails_shop | null; + shop: ProductTypeDetails_shop; taxTypes: (ProductTypeDetails_taxTypes | null)[] | null; } diff --git a/src/productTypes/types/ProductTypeUpdate.ts b/src/productTypes/types/ProductTypeUpdate.ts index b0859f729..58c66afe2 100644 --- a/src/productTypes/types/ProductTypeUpdate.ts +++ b/src/productTypes/types/ProductTypeUpdate.ts @@ -60,7 +60,7 @@ export interface ProductTypeUpdate_productTypeUpdate_productType { export interface ProductTypeUpdate_productTypeUpdate { __typename: "ProductTypeUpdate"; - errors: ProductTypeUpdate_productTypeUpdate_errors[] | null; + errors: ProductTypeUpdate_productTypeUpdate_errors[]; productType: ProductTypeUpdate_productTypeUpdate_productType | null; } diff --git a/src/productTypes/types/UnassignAttribute.ts b/src/productTypes/types/UnassignAttribute.ts index f47c53826..b042fc6e3 100644 --- a/src/productTypes/types/UnassignAttribute.ts +++ b/src/productTypes/types/UnassignAttribute.ts @@ -58,7 +58,7 @@ export interface UnassignAttribute_attributeUnassign_productType { export interface UnassignAttribute_attributeUnassign { __typename: "AttributeUnassign"; - errors: UnassignAttribute_attributeUnassign_errors[] | null; + errors: UnassignAttribute_attributeUnassign_errors[]; productType: UnassignAttribute_attributeUnassign_productType | null; } diff --git a/src/products/types/ProductCreate.ts b/src/products/types/ProductCreate.ts index d9dea4320..e5a191096 100644 --- a/src/products/types/ProductCreate.ts +++ b/src/products/types/ProductCreate.ts @@ -178,7 +178,7 @@ export interface ProductCreate_productCreate_product { export interface ProductCreate_productCreate { __typename: "ProductCreate"; - errors: ProductCreate_productCreate_errors[] | null; + errors: ProductCreate_productCreate_errors[]; product: ProductCreate_productCreate_product | null; } diff --git a/src/products/types/ProductDelete.ts b/src/products/types/ProductDelete.ts index d5efb26f1..c6c12dacf 100644 --- a/src/products/types/ProductDelete.ts +++ b/src/products/types/ProductDelete.ts @@ -19,7 +19,7 @@ export interface ProductDelete_productDelete_product { export interface ProductDelete_productDelete { __typename: "ProductDelete"; - errors: ProductDelete_productDelete_errors[] | null; + errors: ProductDelete_productDelete_errors[]; product: ProductDelete_productDelete_product | null; } diff --git a/src/products/types/ProductImageCreate.ts b/src/products/types/ProductImageCreate.ts index 3714690b5..12e5fefc0 100644 --- a/src/products/types/ProductImageCreate.ts +++ b/src/products/types/ProductImageCreate.ts @@ -178,7 +178,7 @@ export interface ProductImageCreate_productImageCreate_product { export interface ProductImageCreate_productImageCreate { __typename: "ProductImageCreate"; - errors: ProductImageCreate_productImageCreate_errors[] | null; + errors: ProductImageCreate_productImageCreate_errors[]; product: ProductImageCreate_productImageCreate_product | null; } diff --git a/src/products/types/ProductImageReorder.ts b/src/products/types/ProductImageReorder.ts index 4e5960389..5fc5534f0 100644 --- a/src/products/types/ProductImageReorder.ts +++ b/src/products/types/ProductImageReorder.ts @@ -28,7 +28,7 @@ export interface ProductImageReorder_productImageReorder_product { export interface ProductImageReorder_productImageReorder { __typename: "ProductImageReorder"; - errors: ProductImageReorder_productImageReorder_errors[] | null; + errors: ProductImageReorder_productImageReorder_errors[]; product: ProductImageReorder_productImageReorder_product | null; } diff --git a/src/products/types/ProductImageUpdate.ts b/src/products/types/ProductImageUpdate.ts index ab8e5a51e..3e1b5b5f7 100644 --- a/src/products/types/ProductImageUpdate.ts +++ b/src/products/types/ProductImageUpdate.ts @@ -178,7 +178,7 @@ export interface ProductImageUpdate_productImageUpdate_product { export interface ProductImageUpdate_productImageUpdate { __typename: "ProductImageUpdate"; - errors: ProductImageUpdate_productImageUpdate_errors[] | null; + errors: ProductImageUpdate_productImageUpdate_errors[]; product: ProductImageUpdate_productImageUpdate_product | null; } diff --git a/src/products/types/ProductUpdate.ts b/src/products/types/ProductUpdate.ts index 50e1e6ab5..7bdf6af0d 100644 --- a/src/products/types/ProductUpdate.ts +++ b/src/products/types/ProductUpdate.ts @@ -178,7 +178,7 @@ export interface ProductUpdate_productUpdate_product { export interface ProductUpdate_productUpdate { __typename: "ProductUpdate"; - errors: ProductUpdate_productUpdate_errors[] | null; + errors: ProductUpdate_productUpdate_errors[]; product: ProductUpdate_productUpdate_product | null; } diff --git a/src/products/types/ProductVariantBulkCreate.ts b/src/products/types/ProductVariantBulkCreate.ts index f0a0160ff..8c79b0e15 100644 --- a/src/products/types/ProductVariantBulkCreate.ts +++ b/src/products/types/ProductVariantBulkCreate.ts @@ -12,7 +12,7 @@ export interface ProductVariantBulkCreate_productVariantBulkCreate_bulkProductEr __typename: "BulkProductError"; field: string | null; message: string | null; - code: ProductErrorCode | null; + code: ProductErrorCode; index: number | null; } @@ -24,8 +24,8 @@ export interface ProductVariantBulkCreate_productVariantBulkCreate_errors { export interface ProductVariantBulkCreate_productVariantBulkCreate { __typename: "ProductVariantBulkCreate"; - bulkProductErrors: ProductVariantBulkCreate_productVariantBulkCreate_bulkProductErrors[] | null; - errors: ProductVariantBulkCreate_productVariantBulkCreate_errors[] | null; + bulkProductErrors: ProductVariantBulkCreate_productVariantBulkCreate_bulkProductErrors[]; + errors: ProductVariantBulkCreate_productVariantBulkCreate_errors[]; } export interface ProductVariantBulkCreate { diff --git a/src/products/types/ProductVariantBulkDelete.ts b/src/products/types/ProductVariantBulkDelete.ts index d77fb6ca3..903c21fe1 100644 --- a/src/products/types/ProductVariantBulkDelete.ts +++ b/src/products/types/ProductVariantBulkDelete.ts @@ -14,7 +14,7 @@ export interface ProductVariantBulkDelete_productVariantBulkDelete_errors { export interface ProductVariantBulkDelete_productVariantBulkDelete { __typename: "ProductVariantBulkDelete"; - errors: ProductVariantBulkDelete_productVariantBulkDelete_errors[] | null; + errors: ProductVariantBulkDelete_productVariantBulkDelete_errors[]; } export interface ProductVariantBulkDelete { diff --git a/src/products/types/SimpleProductUpdate.ts b/src/products/types/SimpleProductUpdate.ts index a7d9599a7..861391ead 100644 --- a/src/products/types/SimpleProductUpdate.ts +++ b/src/products/types/SimpleProductUpdate.ts @@ -178,7 +178,7 @@ export interface SimpleProductUpdate_productUpdate_product { export interface SimpleProductUpdate_productUpdate { __typename: "ProductUpdate"; - errors: SimpleProductUpdate_productUpdate_errors[] | null; + errors: SimpleProductUpdate_productUpdate_errors[]; product: SimpleProductUpdate_productUpdate_product | null; } @@ -287,7 +287,7 @@ export interface SimpleProductUpdate_productVariantUpdate_productVariant { export interface SimpleProductUpdate_productVariantUpdate { __typename: "ProductVariantUpdate"; - errors: SimpleProductUpdate_productVariantUpdate_errors[] | null; + errors: SimpleProductUpdate_productVariantUpdate_errors[]; productVariant: SimpleProductUpdate_productVariantUpdate_productVariant | null; } diff --git a/src/products/types/VariantCreate.ts b/src/products/types/VariantCreate.ts index 643ad765c..7523a6121 100644 --- a/src/products/types/VariantCreate.ts +++ b/src/products/types/VariantCreate.ts @@ -10,7 +10,7 @@ import { ProductVariantCreateInput, ProductErrorCode } from "./../../types/globa export interface VariantCreate_productVariantCreate_productErrors { __typename: "ProductError"; - code: ProductErrorCode | null; + code: ProductErrorCode; field: string | null; message: string | null; } @@ -114,7 +114,7 @@ export interface VariantCreate_productVariantCreate_productVariant { export interface VariantCreate_productVariantCreate { __typename: "ProductVariantCreate"; - productErrors: VariantCreate_productVariantCreate_productErrors[] | null; + productErrors: VariantCreate_productVariantCreate_productErrors[]; productVariant: VariantCreate_productVariantCreate_productVariant | null; } diff --git a/src/products/types/VariantDelete.ts b/src/products/types/VariantDelete.ts index 7aceceb21..38f2f0600 100644 --- a/src/products/types/VariantDelete.ts +++ b/src/products/types/VariantDelete.ts @@ -19,7 +19,7 @@ export interface VariantDelete_productVariantDelete_productVariant { export interface VariantDelete_productVariantDelete { __typename: "ProductVariantDelete"; - errors: VariantDelete_productVariantDelete_errors[] | null; + errors: VariantDelete_productVariantDelete_errors[]; productVariant: VariantDelete_productVariantDelete_productVariant | null; } diff --git a/src/products/types/VariantImageAssign.ts b/src/products/types/VariantImageAssign.ts index ef04cdd1e..1894ecbde 100644 --- a/src/products/types/VariantImageAssign.ts +++ b/src/products/types/VariantImageAssign.ts @@ -111,7 +111,7 @@ export interface VariantImageAssign_variantImageAssign_productVariant { export interface VariantImageAssign_variantImageAssign { __typename: "VariantImageAssign"; - errors: VariantImageAssign_variantImageAssign_errors[] | null; + errors: VariantImageAssign_variantImageAssign_errors[]; productVariant: VariantImageAssign_variantImageAssign_productVariant | null; } diff --git a/src/products/types/VariantImageUnassign.ts b/src/products/types/VariantImageUnassign.ts index 6858e294e..e90b5a43b 100644 --- a/src/products/types/VariantImageUnassign.ts +++ b/src/products/types/VariantImageUnassign.ts @@ -111,7 +111,7 @@ export interface VariantImageUnassign_variantImageUnassign_productVariant { export interface VariantImageUnassign_variantImageUnassign { __typename: "VariantImageUnassign"; - errors: VariantImageUnassign_variantImageUnassign_errors[] | null; + errors: VariantImageUnassign_variantImageUnassign_errors[]; productVariant: VariantImageUnassign_variantImageUnassign_productVariant | null; } diff --git a/src/products/types/VariantUpdate.ts b/src/products/types/VariantUpdate.ts index 503439d37..6a4e8bcd6 100644 --- a/src/products/types/VariantUpdate.ts +++ b/src/products/types/VariantUpdate.ts @@ -10,7 +10,7 @@ import { AttributeValueInput, ProductErrorCode } from "./../../types/globalTypes export interface VariantUpdate_productVariantUpdate_productErrors { __typename: "ProductError"; - code: ProductErrorCode | null; + code: ProductErrorCode; field: string | null; message: string | null; } @@ -114,7 +114,7 @@ export interface VariantUpdate_productVariantUpdate_productVariant { export interface VariantUpdate_productVariantUpdate { __typename: "ProductVariantUpdate"; - productErrors: VariantUpdate_productVariantUpdate_productErrors[] | null; + productErrors: VariantUpdate_productVariantUpdate_productErrors[]; productVariant: VariantUpdate_productVariantUpdate_productVariant | null; } diff --git a/src/products/types/productBulkDelete.ts b/src/products/types/productBulkDelete.ts index 51f2e1870..6334e46f7 100644 --- a/src/products/types/productBulkDelete.ts +++ b/src/products/types/productBulkDelete.ts @@ -14,7 +14,7 @@ export interface productBulkDelete_productBulkDelete_errors { export interface productBulkDelete_productBulkDelete { __typename: "ProductBulkDelete"; - errors: productBulkDelete_productBulkDelete_errors[] | null; + errors: productBulkDelete_productBulkDelete_errors[]; } export interface productBulkDelete { diff --git a/src/products/types/productBulkPublish.ts b/src/products/types/productBulkPublish.ts index 2fc358588..da03ab934 100644 --- a/src/products/types/productBulkPublish.ts +++ b/src/products/types/productBulkPublish.ts @@ -14,7 +14,7 @@ export interface productBulkPublish_productBulkPublish_errors { export interface productBulkPublish_productBulkPublish { __typename: "ProductBulkPublish"; - errors: productBulkPublish_productBulkPublish_errors[] | null; + errors: productBulkPublish_productBulkPublish_errors[]; } export interface productBulkPublish { diff --git a/src/services/types/ServiceCreate.ts b/src/services/types/ServiceCreate.ts index d64cbcfec..f9efe54e1 100644 --- a/src/services/types/ServiceCreate.ts +++ b/src/services/types/ServiceCreate.ts @@ -23,7 +23,7 @@ export interface ServiceCreate_serviceAccountCreate_serviceAccount { export interface ServiceCreate_serviceAccountCreate { __typename: "ServiceAccountCreate"; - errors: ServiceCreate_serviceAccountCreate_errors[] | null; + errors: ServiceCreate_serviceAccountCreate_errors[]; authToken: string | null; serviceAccount: ServiceCreate_serviceAccountCreate_serviceAccount | null; } diff --git a/src/services/types/ServiceDelete.ts b/src/services/types/ServiceDelete.ts index c339507d8..71e4c2064 100644 --- a/src/services/types/ServiceDelete.ts +++ b/src/services/types/ServiceDelete.ts @@ -14,7 +14,7 @@ export interface ServiceDelete_serviceAccountDelete_errors { export interface ServiceDelete_serviceAccountDelete { __typename: "ServiceAccountDelete"; - errors: ServiceDelete_serviceAccountDelete_errors[] | null; + errors: ServiceDelete_serviceAccountDelete_errors[]; } export interface ServiceDelete { diff --git a/src/services/types/ServiceTokenCreate.ts b/src/services/types/ServiceTokenCreate.ts index 8d6ba0ed3..3698104a2 100644 --- a/src/services/types/ServiceTokenCreate.ts +++ b/src/services/types/ServiceTokenCreate.ts @@ -16,7 +16,7 @@ export interface ServiceTokenCreate_serviceAccountTokenCreate_errors { export interface ServiceTokenCreate_serviceAccountTokenCreate { __typename: "ServiceAccountTokenCreate"; - errors: ServiceTokenCreate_serviceAccountTokenCreate_errors[] | null; + errors: ServiceTokenCreate_serviceAccountTokenCreate_errors[]; authToken: string | null; } diff --git a/src/services/types/ServiceTokenDelete.ts b/src/services/types/ServiceTokenDelete.ts index d7bc83ead..c0883203a 100644 --- a/src/services/types/ServiceTokenDelete.ts +++ b/src/services/types/ServiceTokenDelete.ts @@ -14,7 +14,7 @@ export interface ServiceTokenDelete_serviceAccountTokenDelete_errors { export interface ServiceTokenDelete_serviceAccountTokenDelete { __typename: "ServiceAccountTokenDelete"; - errors: ServiceTokenDelete_serviceAccountTokenDelete_errors[] | null; + errors: ServiceTokenDelete_serviceAccountTokenDelete_errors[]; } export interface ServiceTokenDelete { diff --git a/src/services/types/ServiceUpdate.ts b/src/services/types/ServiceUpdate.ts index f267ca6c9..eed851a78 100644 --- a/src/services/types/ServiceUpdate.ts +++ b/src/services/types/ServiceUpdate.ts @@ -38,7 +38,7 @@ export interface ServiceUpdate_serviceAccountUpdate_serviceAccount { export interface ServiceUpdate_serviceAccountUpdate { __typename: "ServiceAccountUpdate"; - errors: ServiceUpdate_serviceAccountUpdate_errors[] | null; + errors: ServiceUpdate_serviceAccountUpdate_errors[]; serviceAccount: ServiceUpdate_serviceAccountUpdate_serviceAccount | null; } diff --git a/src/shipping/types/BulkDeleteShippingRate.ts b/src/shipping/types/BulkDeleteShippingRate.ts index f6e958599..b76824672 100644 --- a/src/shipping/types/BulkDeleteShippingRate.ts +++ b/src/shipping/types/BulkDeleteShippingRate.ts @@ -14,7 +14,7 @@ export interface BulkDeleteShippingRate_shippingPriceBulkDelete_errors { export interface BulkDeleteShippingRate_shippingPriceBulkDelete { __typename: "ShippingPriceBulkDelete"; - errors: BulkDeleteShippingRate_shippingPriceBulkDelete_errors[] | null; + errors: BulkDeleteShippingRate_shippingPriceBulkDelete_errors[]; } export interface BulkDeleteShippingRate { diff --git a/src/shipping/types/BulkDeleteShippingZone.ts b/src/shipping/types/BulkDeleteShippingZone.ts index 38f30216d..43525a117 100644 --- a/src/shipping/types/BulkDeleteShippingZone.ts +++ b/src/shipping/types/BulkDeleteShippingZone.ts @@ -14,7 +14,7 @@ export interface BulkDeleteShippingZone_shippingZoneBulkDelete_errors { export interface BulkDeleteShippingZone_shippingZoneBulkDelete { __typename: "ShippingZoneBulkDelete"; - errors: BulkDeleteShippingZone_shippingZoneBulkDelete_errors[] | null; + errors: BulkDeleteShippingZone_shippingZoneBulkDelete_errors[]; } export interface BulkDeleteShippingZone { diff --git a/src/shipping/types/CreateShippingRate.ts b/src/shipping/types/CreateShippingRate.ts index 0d1326c9c..5cb29a52a 100644 --- a/src/shipping/types/CreateShippingRate.ts +++ b/src/shipping/types/CreateShippingRate.ts @@ -73,7 +73,7 @@ export interface CreateShippingRate_shippingPriceCreate_shippingZone { export interface CreateShippingRate_shippingPriceCreate { __typename: "ShippingPriceCreate"; - errors: CreateShippingRate_shippingPriceCreate_errors[] | null; + errors: CreateShippingRate_shippingPriceCreate_errors[]; shippingZone: CreateShippingRate_shippingPriceCreate_shippingZone | null; } diff --git a/src/shipping/types/CreateShippingZone.ts b/src/shipping/types/CreateShippingZone.ts index e82ba553e..a1ad4b836 100644 --- a/src/shipping/types/CreateShippingZone.ts +++ b/src/shipping/types/CreateShippingZone.ts @@ -30,7 +30,7 @@ export interface CreateShippingZone_shippingZoneCreate_shippingZone { export interface CreateShippingZone_shippingZoneCreate { __typename: "ShippingZoneCreate"; - errors: CreateShippingZone_shippingZoneCreate_errors[] | null; + errors: CreateShippingZone_shippingZoneCreate_errors[]; shippingZone: CreateShippingZone_shippingZoneCreate_shippingZone | null; } diff --git a/src/shipping/types/DeleteShippingRate.ts b/src/shipping/types/DeleteShippingRate.ts index cc37e44e2..226130ed7 100644 --- a/src/shipping/types/DeleteShippingRate.ts +++ b/src/shipping/types/DeleteShippingRate.ts @@ -73,7 +73,7 @@ export interface DeleteShippingRate_shippingPriceDelete_shippingZone { export interface DeleteShippingRate_shippingPriceDelete { __typename: "ShippingPriceDelete"; - errors: DeleteShippingRate_shippingPriceDelete_errors[] | null; + errors: DeleteShippingRate_shippingPriceDelete_errors[]; shippingZone: DeleteShippingRate_shippingPriceDelete_shippingZone | null; } diff --git a/src/shipping/types/DeleteShippingZone.ts b/src/shipping/types/DeleteShippingZone.ts index 5f1cbb176..8e7f97edf 100644 --- a/src/shipping/types/DeleteShippingZone.ts +++ b/src/shipping/types/DeleteShippingZone.ts @@ -14,7 +14,7 @@ export interface DeleteShippingZone_shippingZoneDelete_errors { export interface DeleteShippingZone_shippingZoneDelete { __typename: "ShippingZoneDelete"; - errors: DeleteShippingZone_shippingZoneDelete_errors[] | null; + errors: DeleteShippingZone_shippingZoneDelete_errors[]; } export interface DeleteShippingZone { diff --git a/src/shipping/types/UpdateDefaultWeightUnit.ts b/src/shipping/types/UpdateDefaultWeightUnit.ts index b24aab1ab..ffd185544 100644 --- a/src/shipping/types/UpdateDefaultWeightUnit.ts +++ b/src/shipping/types/UpdateDefaultWeightUnit.ts @@ -21,7 +21,7 @@ export interface UpdateDefaultWeightUnit_shopSettingsUpdate_shop { export interface UpdateDefaultWeightUnit_shopSettingsUpdate { __typename: "ShopSettingsUpdate"; - errors: UpdateDefaultWeightUnit_shopSettingsUpdate_errors[] | null; + errors: UpdateDefaultWeightUnit_shopSettingsUpdate_errors[]; shop: UpdateDefaultWeightUnit_shopSettingsUpdate_shop | null; } diff --git a/src/shipping/types/UpdateShippingRate.ts b/src/shipping/types/UpdateShippingRate.ts index 70f1ad65c..4d58de639 100644 --- a/src/shipping/types/UpdateShippingRate.ts +++ b/src/shipping/types/UpdateShippingRate.ts @@ -58,7 +58,7 @@ export interface UpdateShippingRate_shippingPriceUpdate_shippingMethod { export interface UpdateShippingRate_shippingPriceUpdate { __typename: "ShippingPriceUpdate"; - errors: UpdateShippingRate_shippingPriceUpdate_errors[] | null; + errors: UpdateShippingRate_shippingPriceUpdate_errors[]; shippingMethod: UpdateShippingRate_shippingPriceUpdate_shippingMethod | null; } diff --git a/src/shipping/types/UpdateShippingZone.ts b/src/shipping/types/UpdateShippingZone.ts index f6ef4621c..09eeb730f 100644 --- a/src/shipping/types/UpdateShippingZone.ts +++ b/src/shipping/types/UpdateShippingZone.ts @@ -30,7 +30,7 @@ export interface UpdateShippingZone_shippingZoneUpdate_shippingZone { export interface UpdateShippingZone_shippingZoneUpdate { __typename: "ShippingZoneUpdate"; - errors: UpdateShippingZone_shippingZoneUpdate_errors[] | null; + errors: UpdateShippingZone_shippingZoneUpdate_errors[]; shippingZone: UpdateShippingZone_shippingZoneUpdate_shippingZone | null; } diff --git a/src/shipping/views/ShippingZoneCreate.tsx b/src/shipping/views/ShippingZoneCreate.tsx index 5373dc477..bf063090d 100644 --- a/src/shipping/views/ShippingZoneCreate.tsx +++ b/src/shipping/views/ShippingZoneCreate.tsx @@ -31,9 +31,7 @@ const ShippingZoneCreate: React.FC<{}> = () => { shop.countries, [])} disabled={createShippingZoneOpts.loading} - errors={maybe( - () => createShippingZoneOpts.data.shippingZoneCreate.errors - )} + errors={createShippingZoneOpts.data?.shippingZoneCreate.errors || []} onBack={() => navigate(shippingZonesListUrl())} onSubmit={formData => createShippingZone({ diff --git a/src/shipping/views/ShippingZoneDetails/index.tsx b/src/shipping/views/ShippingZoneDetails/index.tsx index 81fde63b9..9d4d81e80 100644 --- a/src/shipping/views/ShippingZoneDetails/index.tsx +++ b/src/shipping/views/ShippingZoneDetails/index.tsx @@ -95,10 +95,10 @@ const ShippingZoneDetails: React.FC = ({ <> - ops.shippingZoneUpdate.opts.data.shippingZoneUpdate.errors - )} + errors={ + ops.shippingZoneUpdate.opts.data?.shippingZoneUpdate.errors || + [] + } onBack={() => navigate(shippingZonesListUrl())} onCountryAdd={() => navigate( diff --git a/src/siteSettings/types/AuthorizationKeyAdd.ts b/src/siteSettings/types/AuthorizationKeyAdd.ts index bc8205925..aa1b21e6f 100644 --- a/src/siteSettings/types/AuthorizationKeyAdd.ts +++ b/src/siteSettings/types/AuthorizationKeyAdd.ts @@ -68,7 +68,7 @@ export interface AuthorizationKeyAdd_authorizationKeyAdd_shop { export interface AuthorizationKeyAdd_authorizationKeyAdd { __typename: "AuthorizationKeyAdd"; - errors: AuthorizationKeyAdd_authorizationKeyAdd_errors[] | null; + errors: AuthorizationKeyAdd_authorizationKeyAdd_errors[]; shop: AuthorizationKeyAdd_authorizationKeyAdd_shop | null; } diff --git a/src/siteSettings/types/AuthorizationKeyDelete.ts b/src/siteSettings/types/AuthorizationKeyDelete.ts index 2e6451869..7c9fcafea 100644 --- a/src/siteSettings/types/AuthorizationKeyDelete.ts +++ b/src/siteSettings/types/AuthorizationKeyDelete.ts @@ -68,7 +68,7 @@ export interface AuthorizationKeyDelete_authorizationKeyDelete_shop { export interface AuthorizationKeyDelete_authorizationKeyDelete { __typename: "AuthorizationKeyDelete"; - errors: AuthorizationKeyDelete_authorizationKeyDelete_errors[] | null; + errors: AuthorizationKeyDelete_authorizationKeyDelete_errors[]; shop: AuthorizationKeyDelete_authorizationKeyDelete_shop | null; } diff --git a/src/siteSettings/types/ShopSettingsUpdate.ts b/src/siteSettings/types/ShopSettingsUpdate.ts index 2b8419636..b7d30e12b 100644 --- a/src/siteSettings/types/ShopSettingsUpdate.ts +++ b/src/siteSettings/types/ShopSettingsUpdate.ts @@ -68,7 +68,7 @@ export interface ShopSettingsUpdate_shopSettingsUpdate_shop { export interface ShopSettingsUpdate_shopSettingsUpdate { __typename: "ShopSettingsUpdate"; - errors: ShopSettingsUpdate_shopSettingsUpdate_errors[] | null; + errors: ShopSettingsUpdate_shopSettingsUpdate_errors[]; shop: ShopSettingsUpdate_shopSettingsUpdate_shop | null; } @@ -91,7 +91,7 @@ export interface ShopSettingsUpdate_shopDomainUpdate_shop { export interface ShopSettingsUpdate_shopDomainUpdate { __typename: "ShopDomainUpdate"; - errors: ShopSettingsUpdate_shopDomainUpdate_errors[] | null; + errors: ShopSettingsUpdate_shopDomainUpdate_errors[]; shop: ShopSettingsUpdate_shopDomainUpdate_shop | null; } @@ -130,7 +130,7 @@ export interface ShopSettingsUpdate_shopAddressUpdate_shop { export interface ShopSettingsUpdate_shopAddressUpdate { __typename: "ShopAddressUpdate"; - errors: ShopSettingsUpdate_shopAddressUpdate_errors[] | null; + errors: ShopSettingsUpdate_shopAddressUpdate_errors[]; shop: ShopSettingsUpdate_shopAddressUpdate_shop | null; } diff --git a/src/siteSettings/types/SiteSettings.ts b/src/siteSettings/types/SiteSettings.ts index 6b0064451..bc9abeea1 100644 --- a/src/siteSettings/types/SiteSettings.ts +++ b/src/siteSettings/types/SiteSettings.ts @@ -61,5 +61,5 @@ export interface SiteSettings_shop { } export interface SiteSettings { - shop: SiteSettings_shop | null; + shop: SiteSettings_shop; } diff --git a/src/staff/types/ChangeStaffPassword.ts b/src/staff/types/ChangeStaffPassword.ts index 18c15db12..0913c8d27 100644 --- a/src/staff/types/ChangeStaffPassword.ts +++ b/src/staff/types/ChangeStaffPassword.ts @@ -14,7 +14,7 @@ export interface ChangeStaffPassword_passwordChange_errors { export interface ChangeStaffPassword_passwordChange { __typename: "PasswordChange"; - errors: ChangeStaffPassword_passwordChange_errors[] | null; + errors: ChangeStaffPassword_passwordChange_errors[]; } export interface ChangeStaffPassword { diff --git a/src/staff/types/StaffAvatarDelete.ts b/src/staff/types/StaffAvatarDelete.ts index 763ee71e6..b92267979 100644 --- a/src/staff/types/StaffAvatarDelete.ts +++ b/src/staff/types/StaffAvatarDelete.ts @@ -25,7 +25,7 @@ export interface StaffAvatarDelete_userAvatarDelete_user { export interface StaffAvatarDelete_userAvatarDelete { __typename: "UserAvatarDelete"; - errors: StaffAvatarDelete_userAvatarDelete_errors[] | null; + errors: StaffAvatarDelete_userAvatarDelete_errors[]; user: StaffAvatarDelete_userAvatarDelete_user | null; } diff --git a/src/staff/types/StaffAvatarUpdate.ts b/src/staff/types/StaffAvatarUpdate.ts index 847f5c80d..c58029384 100644 --- a/src/staff/types/StaffAvatarUpdate.ts +++ b/src/staff/types/StaffAvatarUpdate.ts @@ -25,7 +25,7 @@ export interface StaffAvatarUpdate_userAvatarUpdate_user { export interface StaffAvatarUpdate_userAvatarUpdate { __typename: "UserAvatarUpdate"; - errors: StaffAvatarUpdate_userAvatarUpdate_errors[] | null; + errors: StaffAvatarUpdate_userAvatarUpdate_errors[]; user: StaffAvatarUpdate_userAvatarUpdate_user | null; } diff --git a/src/staff/types/StaffMemberAdd.ts b/src/staff/types/StaffMemberAdd.ts index b19fcddb3..214102425 100644 --- a/src/staff/types/StaffMemberAdd.ts +++ b/src/staff/types/StaffMemberAdd.ts @@ -38,7 +38,7 @@ export interface StaffMemberAdd_staffCreate_user { export interface StaffMemberAdd_staffCreate { __typename: "StaffCreate"; - errors: StaffMemberAdd_staffCreate_errors[] | null; + errors: StaffMemberAdd_staffCreate_errors[]; user: StaffMemberAdd_staffCreate_user | null; } diff --git a/src/staff/types/StaffMemberDelete.ts b/src/staff/types/StaffMemberDelete.ts index 7a238232f..f90ba0d03 100644 --- a/src/staff/types/StaffMemberDelete.ts +++ b/src/staff/types/StaffMemberDelete.ts @@ -14,7 +14,7 @@ export interface StaffMemberDelete_staffDelete_errors { export interface StaffMemberDelete_staffDelete { __typename: "StaffDelete"; - errors: StaffMemberDelete_staffDelete_errors[] | null; + errors: StaffMemberDelete_staffDelete_errors[]; } export interface StaffMemberDelete { diff --git a/src/staff/types/StaffMemberUpdate.ts b/src/staff/types/StaffMemberUpdate.ts index 158b084db..88f3881a2 100644 --- a/src/staff/types/StaffMemberUpdate.ts +++ b/src/staff/types/StaffMemberUpdate.ts @@ -38,7 +38,7 @@ export interface StaffMemberUpdate_staffUpdate_user { export interface StaffMemberUpdate_staffUpdate { __typename: "StaffUpdate"; - errors: StaffMemberUpdate_staffUpdate_errors[] | null; + errors: StaffMemberUpdate_staffUpdate_errors[]; user: StaffMemberUpdate_staffUpdate_user | null; } diff --git a/src/taxes/types/CountryList.ts b/src/taxes/types/CountryList.ts index 42c5c38b4..2d9e75eef 100644 --- a/src/taxes/types/CountryList.ts +++ b/src/taxes/types/CountryList.ts @@ -36,5 +36,5 @@ export interface CountryList_shop { } export interface CountryList { - shop: CountryList_shop | null; + shop: CountryList_shop; } diff --git a/src/taxes/types/FetchTaxes.ts b/src/taxes/types/FetchTaxes.ts index 0de92aa61..4a6269b8e 100644 --- a/src/taxes/types/FetchTaxes.ts +++ b/src/taxes/types/FetchTaxes.ts @@ -25,7 +25,7 @@ export interface FetchTaxes_shopFetchTaxRates_shop { export interface FetchTaxes_shopFetchTaxRates { __typename: "ShopFetchTaxRates"; - errors: FetchTaxes_shopFetchTaxRates_errors[] | null; + errors: FetchTaxes_shopFetchTaxRates_errors[]; shop: FetchTaxes_shopFetchTaxRates_shop | null; } diff --git a/src/taxes/types/UpdateTaxSettings.ts b/src/taxes/types/UpdateTaxSettings.ts index 1150c6a5c..9477d0c13 100644 --- a/src/taxes/types/UpdateTaxSettings.ts +++ b/src/taxes/types/UpdateTaxSettings.ts @@ -23,7 +23,7 @@ export interface UpdateTaxSettings_shopSettingsUpdate_shop { export interface UpdateTaxSettings_shopSettingsUpdate { __typename: "ShopSettingsUpdate"; - errors: UpdateTaxSettings_shopSettingsUpdate_errors[] | null; + errors: UpdateTaxSettings_shopSettingsUpdate_errors[]; shop: UpdateTaxSettings_shopSettingsUpdate_shop | null; } diff --git a/src/translations/types/UpdateAttributeTranslations.ts b/src/translations/types/UpdateAttributeTranslations.ts index 1aae04d1b..29865908e 100644 --- a/src/translations/types/UpdateAttributeTranslations.ts +++ b/src/translations/types/UpdateAttributeTranslations.ts @@ -29,7 +29,7 @@ export interface UpdateAttributeTranslations_attributeTranslate_attribute { export interface UpdateAttributeTranslations_attributeTranslate { __typename: "AttributeTranslate"; - errors: UpdateAttributeTranslations_attributeTranslate_errors[] | null; + errors: UpdateAttributeTranslations_attributeTranslate_errors[]; attribute: UpdateAttributeTranslations_attributeTranslate_attribute | null; } diff --git a/src/translations/types/UpdateAttributeValueTranslations.ts b/src/translations/types/UpdateAttributeValueTranslations.ts index b5c165008..58a073a68 100644 --- a/src/translations/types/UpdateAttributeValueTranslations.ts +++ b/src/translations/types/UpdateAttributeValueTranslations.ts @@ -29,7 +29,7 @@ export interface UpdateAttributeValueTranslations_attributeValueTranslate_attrib export interface UpdateAttributeValueTranslations_attributeValueTranslate { __typename: "AttributeValueTranslate"; - errors: UpdateAttributeValueTranslations_attributeValueTranslate_errors[] | null; + errors: UpdateAttributeValueTranslations_attributeValueTranslate_errors[]; attributeValue: UpdateAttributeValueTranslations_attributeValueTranslate_attributeValue | null; } diff --git a/src/translations/types/UpdateCategoryTranslations.ts b/src/translations/types/UpdateCategoryTranslations.ts index 583049e78..0b3020389 100644 --- a/src/translations/types/UpdateCategoryTranslations.ts +++ b/src/translations/types/UpdateCategoryTranslations.ts @@ -41,7 +41,7 @@ export interface UpdateCategoryTranslations_categoryTranslate_category { export interface UpdateCategoryTranslations_categoryTranslate { __typename: "CategoryTranslate"; - errors: UpdateCategoryTranslations_categoryTranslate_errors[] | null; + errors: UpdateCategoryTranslations_categoryTranslate_errors[]; category: UpdateCategoryTranslations_categoryTranslate_category | null; } diff --git a/src/translations/types/UpdateCollectionTranslations.ts b/src/translations/types/UpdateCollectionTranslations.ts index 8a1ec1523..58f166c7e 100644 --- a/src/translations/types/UpdateCollectionTranslations.ts +++ b/src/translations/types/UpdateCollectionTranslations.ts @@ -41,7 +41,7 @@ export interface UpdateCollectionTranslations_collectionTranslate_collection { export interface UpdateCollectionTranslations_collectionTranslate { __typename: "CollectionTranslate"; - errors: UpdateCollectionTranslations_collectionTranslate_errors[] | null; + errors: UpdateCollectionTranslations_collectionTranslate_errors[]; collection: UpdateCollectionTranslations_collectionTranslate_collection | null; } diff --git a/src/translations/types/UpdatePageTranslations.ts b/src/translations/types/UpdatePageTranslations.ts index 1034ee761..316df7458 100644 --- a/src/translations/types/UpdatePageTranslations.ts +++ b/src/translations/types/UpdatePageTranslations.ts @@ -42,7 +42,7 @@ export interface UpdatePageTranslations_pageTranslate_page { export interface UpdatePageTranslations_pageTranslate { __typename: "PageTranslate"; - errors: UpdatePageTranslations_pageTranslate_errors[] | null; + errors: UpdatePageTranslations_pageTranslate_errors[]; page: UpdatePageTranslations_pageTranslate_page | null; } diff --git a/src/translations/types/UpdateProductTranslations.ts b/src/translations/types/UpdateProductTranslations.ts index d0fb45ded..c0b35ba40 100644 --- a/src/translations/types/UpdateProductTranslations.ts +++ b/src/translations/types/UpdateProductTranslations.ts @@ -42,7 +42,7 @@ export interface UpdateProductTranslations_productTranslate_product { export interface UpdateProductTranslations_productTranslate { __typename: "ProductTranslate"; - errors: UpdateProductTranslations_productTranslate_errors[] | null; + errors: UpdateProductTranslations_productTranslate_errors[]; product: UpdateProductTranslations_productTranslate_product | null; } diff --git a/src/translations/types/UpdateSaleTranslations.ts b/src/translations/types/UpdateSaleTranslations.ts index f503df7f5..05a4d26f9 100644 --- a/src/translations/types/UpdateSaleTranslations.ts +++ b/src/translations/types/UpdateSaleTranslations.ts @@ -36,7 +36,7 @@ export interface UpdateSaleTranslations_saleTranslate_sale { export interface UpdateSaleTranslations_saleTranslate { __typename: "SaleTranslate"; - errors: UpdateSaleTranslations_saleTranslate_errors[] | null; + errors: UpdateSaleTranslations_saleTranslate_errors[]; sale: UpdateSaleTranslations_saleTranslate_sale | null; } diff --git a/src/translations/types/UpdateVoucherTranslations.ts b/src/translations/types/UpdateVoucherTranslations.ts index e5fdf4771..156c5af8c 100644 --- a/src/translations/types/UpdateVoucherTranslations.ts +++ b/src/translations/types/UpdateVoucherTranslations.ts @@ -36,7 +36,7 @@ export interface UpdateVoucherTranslations_voucherTranslate_voucher { export interface UpdateVoucherTranslations_voucherTranslate { __typename: "VoucherTranslate"; - errors: UpdateVoucherTranslations_voucherTranslate_errors[] | null; + errors: UpdateVoucherTranslations_voucherTranslate_errors[]; voucher: UpdateVoucherTranslations_voucherTranslate_voucher | null; } diff --git a/src/types/globalTypes.ts b/src/types/globalTypes.ts index bc8d960d2..2ad3dc59b 100644 --- a/src/types/globalTypes.ts +++ b/src/types/globalTypes.ts @@ -642,6 +642,7 @@ export enum WebhookEventTypeEnum { ANY_EVENTS = "ANY_EVENTS", CHECKOUT_QUANTITY_CHANGED = "CHECKOUT_QUANTITY_CHANGED", CUSTOMER_CREATED = "CUSTOMER_CREATED", + FULFILLMENT_CREATED = "FULFILLMENT_CREATED", ORDER_CANCELLED = "ORDER_CANCELLED", ORDER_CREATED = "ORDER_CREATED", ORDER_FULFILLED = "ORDER_FULFILLED", @@ -1035,6 +1036,7 @@ export interface ProductTypeFilterInput { export interface ProductTypeInput { name?: string | null; + slug?: string | null; hasVariants?: boolean | null; productAttributes?: (string | null)[] | null; variantAttributes?: (string | null)[] | null; diff --git a/src/webhooks/types/WebhookCreate.ts b/src/webhooks/types/WebhookCreate.ts index 326547084..4c4ab1227 100644 --- a/src/webhooks/types/WebhookCreate.ts +++ b/src/webhooks/types/WebhookCreate.ts @@ -16,7 +16,7 @@ export interface WebhookCreate_webhookCreate_errors { export interface WebhookCreate_webhookCreate_webhookErrors { __typename: "WebhookError"; - code: WebhookErrorCode | null; + code: WebhookErrorCode; message: string | null; field: string | null; } @@ -30,15 +30,15 @@ export interface WebhookCreate_webhookCreate_webhook_serviceAccount { export interface WebhookCreate_webhookCreate_webhook { __typename: "Webhook"; id: string; - name: string | null; + name: string; isActive: boolean; serviceAccount: WebhookCreate_webhookCreate_webhook_serviceAccount; } export interface WebhookCreate_webhookCreate { __typename: "WebhookCreate"; - errors: WebhookCreate_webhookCreate_errors[] | null; - webhookErrors: WebhookCreate_webhookCreate_webhookErrors[] | null; + errors: WebhookCreate_webhookCreate_errors[]; + webhookErrors: WebhookCreate_webhookCreate_webhookErrors[]; webhook: WebhookCreate_webhookCreate_webhook | null; } diff --git a/src/webhooks/types/WebhookDelete.ts b/src/webhooks/types/WebhookDelete.ts index 7dcfe4301..d04143498 100644 --- a/src/webhooks/types/WebhookDelete.ts +++ b/src/webhooks/types/WebhookDelete.ts @@ -14,7 +14,7 @@ export interface WebhookDelete_webhookDelete_errors { export interface WebhookDelete_webhookDelete { __typename: "WebhookDelete"; - errors: WebhookDelete_webhookDelete_errors[] | null; + errors: WebhookDelete_webhookDelete_errors[]; } export interface WebhookDelete { diff --git a/src/webhooks/types/WebhookDetails.ts b/src/webhooks/types/WebhookDetails.ts index 0f68b655e..bdaed100f 100644 --- a/src/webhooks/types/WebhookDetails.ts +++ b/src/webhooks/types/WebhookDetails.ts @@ -16,16 +16,16 @@ export interface WebhookDetails_webhook_serviceAccount { export interface WebhookDetails_webhook_events { __typename: "WebhookEvent"; - eventType: WebhookEventTypeEnum | null; + eventType: WebhookEventTypeEnum; } export interface WebhookDetails_webhook { __typename: "Webhook"; id: string; - name: string | null; + name: string; isActive: boolean; serviceAccount: WebhookDetails_webhook_serviceAccount; - events: (WebhookDetails_webhook_events | null)[] | null; + events: WebhookDetails_webhook_events[]; secretKey: string | null; targetUrl: string; } diff --git a/src/webhooks/types/WebhookFragment.ts b/src/webhooks/types/WebhookFragment.ts index ad61edf7b..27bee647d 100644 --- a/src/webhooks/types/WebhookFragment.ts +++ b/src/webhooks/types/WebhookFragment.ts @@ -15,7 +15,7 @@ export interface WebhookFragment_serviceAccount { export interface WebhookFragment { __typename: "Webhook"; id: string; - name: string | null; + name: string; isActive: boolean; serviceAccount: WebhookFragment_serviceAccount; } diff --git a/src/webhooks/types/WebhookUpdate.ts b/src/webhooks/types/WebhookUpdate.ts index 5f8c14667..065a54e7e 100644 --- a/src/webhooks/types/WebhookUpdate.ts +++ b/src/webhooks/types/WebhookUpdate.ts @@ -16,7 +16,7 @@ export interface WebhookUpdate_webhookUpdate_errors { export interface WebhookUpdate_webhookUpdate_webhookErrors { __typename: "WebhookError"; - code: WebhookErrorCode | null; + code: WebhookErrorCode; message: string | null; field: string | null; } @@ -30,15 +30,15 @@ export interface WebhookUpdate_webhookUpdate_webhook_serviceAccount { export interface WebhookUpdate_webhookUpdate_webhook { __typename: "Webhook"; id: string; - name: string | null; + name: string; isActive: boolean; serviceAccount: WebhookUpdate_webhookUpdate_webhook_serviceAccount; } export interface WebhookUpdate_webhookUpdate { __typename: "WebhookUpdate"; - errors: WebhookUpdate_webhookUpdate_errors[] | null; - webhookErrors: WebhookUpdate_webhookUpdate_webhookErrors[] | null; + errors: WebhookUpdate_webhookUpdate_errors[]; + webhookErrors: WebhookUpdate_webhookUpdate_webhookErrors[]; webhook: WebhookUpdate_webhookUpdate_webhook | null; } diff --git a/src/webhooks/types/Webhooks.ts b/src/webhooks/types/Webhooks.ts index 0612d0247..857e2cf1a 100644 --- a/src/webhooks/types/Webhooks.ts +++ b/src/webhooks/types/Webhooks.ts @@ -17,7 +17,7 @@ export interface Webhooks_webhooks_edges_node_serviceAccount { export interface Webhooks_webhooks_edges_node { __typename: "Webhook"; id: string; - name: string | null; + name: string; isActive: boolean; serviceAccount: Webhooks_webhooks_edges_node_serviceAccount; } diff --git a/src/webhooks/types/WebhooksDetailsFragment.ts b/src/webhooks/types/WebhooksDetailsFragment.ts index 777f7875c..8efe55bba 100644 --- a/src/webhooks/types/WebhooksDetailsFragment.ts +++ b/src/webhooks/types/WebhooksDetailsFragment.ts @@ -15,7 +15,7 @@ export interface WebhooksDetailsFragment_serviceAccount { export interface WebhooksDetailsFragment { __typename: "Webhook"; id: string; - name: string | null; + name: string; isActive: boolean; serviceAccount: WebhooksDetailsFragment_serviceAccount; }